http://sourceware.org/ml/gdb-patches/2012-09/msg00015.html
[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
L
648islinc
649isllibs
81ecdfbb 650poststage1_ldflags
143754cd 651poststage1_libs
81ecdfbb
RW
652stage1_libs
653stage1_ldflags
7ec59b9e 654extra_isl_gmp_configure_flags
81ecdfbb
RW
655extra_mpc_mpfr_configure_flags
656extra_mpc_gmp_configure_flags
657extra_mpfr_configure_flags
658gmpinc
659gmplibs
660do_compare
661GNATMAKE
662GNATBIND
663ac_ct_CXX
664CXXFLAGS
665CXX
666OBJEXT
667EXEEXT
668ac_ct_CC
669CPPFLAGS
670LDFLAGS
671CFLAGS
672CC
ffdd6afc 673EXTRA_CONFIGARGS_LIBJAVA
81ecdfbb
RW
674target_subdir
675host_subdir
676build_subdir
677build_libsubdir
8e957354
PB
678AWK
679SED
81ecdfbb
RW
680LN_S
681LN
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693target_noncanonical
694host_noncanonical
695build_noncanonical
696build_os
697build_vendor
698build_cpu
699build
700TOPLEVEL_CONFIGURE_ARGUMENTS
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files='serialization_dependencies
740host_makefile_frag
741target_makefile_frag
742alphaieee_frag
743ospace_frag'
744ac_user_opts='
745enable_option_checking
746with_build_libsubdir
747enable_gold
c7791212 748enable_ld
89a1e9c3
PB
749enable_libquadmath
750enable_libquadmath_support
81ecdfbb
RW
751enable_libada
752enable_libssp
ffdd6afc
ILT
753enable_static_libjava
754enable_bootstrap
81ecdfbb
RW
755with_mpc
756with_mpc_include
757with_mpc_lib
758with_mpfr_dir
759with_mpfr
760with_mpfr_include
761with_mpfr_lib
762with_gmp_dir
763with_gmp
764with_gmp_include
765with_gmp_lib
766with_host_libstdcxx
767with_stage1_ldflags
768with_stage1_libs
81ecdfbb 769with_boot_libs
143754cd 770with_boot_ldflags
7ec59b9e
L
771with_isl
772with_isl_include
773with_isl_lib
774enable_isl_version_check
81ecdfbb
RW
775with_cloog
776with_cloog_include
777with_cloog_lib
778enable_cloog_version_check
700d40ca 779enable_lto
81ecdfbb
RW
780enable_stage1_languages
781enable_objc_gc
782with_build_sysroot
783with_debug_prefix_map
96655cc4 784with_build_config
81ecdfbb
RW
785enable_serial_configure
786with_build_time_tools
787enable_maintainer_mode
788enable_stage1_checking
789enable_werror
81ecdfbb
RW
790'
791 ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
799CXX
800CXXFLAGS
801CCC
4074d5f2
RW
802build_configargs
803host_configargs
804target_configargs
81ecdfbb
RW
805AR
806AS
807DLLTOOL
808LD
809LIPO
810NM
811RANLIB
812STRIP
813WINDRES
814WINDMC
815OBJCOPY
816OBJDUMP
b121d7d4 817READELF
81ecdfbb
RW
818CC_FOR_TARGET
819CXX_FOR_TARGET
820GCC_FOR_TARGET
821GCJ_FOR_TARGET
822GFORTRAN_FOR_TARGET
e552509b 823GOC_FOR_TARGET
81ecdfbb
RW
824AR_FOR_TARGET
825AS_FOR_TARGET
826DLLTOOL_FOR_TARGET
827LD_FOR_TARGET
828LIPO_FOR_TARGET
829NM_FOR_TARGET
830OBJDUMP_FOR_TARGET
831RANLIB_FOR_TARGET
b121d7d4 832READELF_FOR_TARGET
81ecdfbb
RW
833STRIP_FOR_TARGET
834WINDRES_FOR_TARGET
835WINDMC_FOR_TARGET'
836
a0da8069
NN
837
838# Initialize some variables set by options.
c6b750e1
DJ
839ac_init_help=
840ac_init_version=false
81ecdfbb
RW
841ac_unrecognized_opts=
842ac_unrecognized_sep=
a0da8069
NN
843# The variables have the same names as the options, with
844# dashes changed to underlines.
c6b750e1 845cache_file=/dev/null
a0da8069 846exec_prefix=NONE
a0da8069 847no_create=
a0da8069
NN
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
a0da8069
NN
856verbose=
857x_includes=NONE
858x_libraries=NONE
c6b750e1
DJ
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 865# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
a0da8069
NN
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
a0da8069
NN
874includedir='${prefix}/include'
875oldincludedir='/usr/include'
81ecdfbb
RW
876docdir='${datarootdir}/doc/${PACKAGE}'
877infodir='${datarootdir}/info'
878htmldir='${docdir}'
879dvidir='${docdir}'
880pdfdir='${docdir}'
881psdir='${docdir}'
882libdir='${exec_prefix}/lib'
883localedir='${datarootdir}/locale'
884mandir='${datarootdir}/man'
252b5132 885
a0da8069 886ac_prev=
81ecdfbb 887ac_dashdash=
a0da8069
NN
888for ac_option
889do
a0da8069
NN
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
81ecdfbb 892 eval $ac_prev=\$ac_option
a0da8069
NN
893 ac_prev=
894 continue
895 fi
252b5132 896
81ecdfbb
RW
897 case $ac_option in
898 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *) ac_optarg=yes ;;
900 esac
a0da8069
NN
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
81ecdfbb
RW
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
a0da8069
NN
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 911 bindir=$ac_optarg ;;
a0da8069
NN
912
913 -build | --build | --buil | --bui | --bu)
c6b750e1 914 ac_prev=build_alias ;;
a0da8069 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 916 build_alias=$ac_optarg ;;
a0da8069
NN
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
a0da8069 927
81ecdfbb 928 -datadir | --datadir | --datadi | --datad)
a0da8069 929 ac_prev=datadir ;;
81ecdfbb 930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 931 datadir=$ac_optarg ;;
a0da8069 932
81ecdfbb
RW
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
a0da8069 940 -disable-* | --disable-*)
81ecdfbb 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 942 # Reject names that are not valid shell variable names.
81ecdfbb
RW
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
a0da8069
NN
965
966 -enable-* | --enable-*)
81ecdfbb 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 968 # Reject names that are not valid shell variable names.
81ecdfbb
RW
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975"enable_$ac_useropt"
976"*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
a0da8069 979 esac
81ecdfbb 980 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
c6b750e1 989 exec_prefix=$ac_optarg ;;
a0da8069
NN
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
c6b750e1
DJ
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
a0da8069
NN
1001
1002 -host | --host | --hos | --ho)
c6b750e1 1003 ac_prev=host_alias ;;
a0da8069 1004 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1005 host_alias=$ac_optarg ;;
a0da8069 1006
81ecdfbb
RW
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
a0da8069
NN
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1018 includedir=$ac_optarg ;;
a0da8069
NN
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1023 infodir=$ac_optarg ;;
a0da8069
NN
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1028 libdir=$ac_optarg ;;
a0da8069
NN
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1035 libexecdir=$ac_optarg ;;
a0da8069 1036
81ecdfbb
RW
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
a0da8069 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1043 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1047 localstatedir=$ac_optarg ;;
a0da8069
NN
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1052 mandir=$ac_optarg ;;
a0da8069
NN
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1059 | --no-cr | --no-c | -n)
a0da8069
NN
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1073 oldincludedir=$ac_optarg ;;
a0da8069
NN
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1078 prefix=$ac_optarg ;;
a0da8069
NN
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1085 program_prefix=$ac_optarg ;;
a0da8069
NN
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1092 program_suffix=$ac_optarg ;;
a0da8069
NN
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1109 program_transform_name=$ac_optarg ;;
a0da8069 1110
81ecdfbb
RW
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
a0da8069
NN
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
c6b750e1 1129 sbindir=$ac_optarg ;;
a0da8069
NN
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
c6b750e1 1140 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
c6b750e1 1145 site=$ac_optarg ;;
a0da8069
NN
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1150 srcdir=$ac_optarg ;;
a0da8069
NN
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1157 sysconfdir=$ac_optarg ;;
a0da8069
NN
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1160 ac_prev=target_alias ;;
a0da8069 1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1162 target_alias=$ac_optarg ;;
a0da8069
NN
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
c6b750e1
DJ
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
a0da8069
NN
1169
1170 -with-* | --with-*)
81ecdfbb 1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1172 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
a0da8069 1183 esac
81ecdfbb 1184 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1185
1186 -without-* | --without-*)
81ecdfbb 1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1188 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195"with_$ac_useropt"
1196"*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
a0da8069
NN
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1211 x_includes=$ac_optarg ;;
a0da8069
NN
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1218 x_libraries=$ac_optarg ;;
a0da8069 1219
81ecdfbb
RW
1220 -*) as_fn_error "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information."
a0da8069
NN
1222 ;;
1223
c6b750e1
DJ
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1232 export $ac_envvar ;;
1233
a0da8069 1234 *)
c6b750e1 1235 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1239 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1240 ;;
1241
1242 esac
1243done
1244
1245if test -n "$ac_prev"; then
c6b750e1 1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1247 as_fn_error "missing argument to $ac_option"
a0da8069 1248fi
a0da8069 1249
81ecdfbb
RW
1250if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1255 esac
81ecdfbb 1256fi
a0da8069 1257
81ecdfbb
RW
1258# Check all directory arguments for consistency.
1259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
a0da8069 1263do
81ecdfbb
RW
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
c6b750e1 1272 case $ac_val in
81ecdfbb
RW
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1275 esac
81ecdfbb 1276 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1277done
1278
c6b750e1
DJ
1279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
1281# FIXME: To remove some day.
1282build=$build_alias
1283host=$host_alias
1284target=$target_alias
376a0e54 1285
c6b750e1
DJ
1286# FIXME: To remove some day.
1287if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
81ecdfbb 1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295fi
1296
1297ac_tool_prefix=
1298test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300test "$silent" = yes && exec 6>/dev/null
a0da8069 1301
a0da8069 1302
81ecdfbb
RW
1303ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304ac_ls_di=`ls -di .` &&
1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error "working directory cannot be determined"
1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error "pwd does not report name of working directory"
1309
1310
a0da8069
NN
1311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
81ecdfbb
RW
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320$as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
a0da8069 1338 srcdir=$ac_confdir
81ecdfbb 1339 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1340 srcdir=..
1341 fi
1342else
1343 ac_srcdir_defaulted=no
1344fi
81ecdfbb
RW
1345if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1348fi
1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1352 pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
6d0cd39e
AM
1363case $srcdir in
1364 *" "*)
1365 as_fn_error "path to source, $srcdir, contains spaces"
1366 ;;
1367esac
9cc8ae67
PB
1368ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1369
81ecdfbb
RW
1370for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375done
c6b750e1
DJ
1376
1377#
1378# Report the --help message.
1379#
1380if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1383 cat <<_ACEOF
1384\`configure' configures this package to adapt to many kinds of systems.
1385
1386Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389VAR=VALUE. See below for descriptions of some of the useful variables.
1390
1391Defaults for the options are specified in brackets.
1392
1393Configuration:
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403
c6b750e1
DJ
1404Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1406 [$ac_default_prefix]
c6b750e1 1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1408 [PREFIX]
c6b750e1
DJ
1409
1410By default, \`make install' will install all the files in
1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413for instance \`--prefix=\$HOME'.
1414
1415For better control, use the options below.
1416
1417Fine tuning of the installation directories:
81ecdfbb
RW
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1437_ACEOF
1438
1439 cat <<\_ACEOF
1440
1441Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445
1446System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1450_ACEOF
a0da8069 1451fi
a0da8069 1452
c6b750e1
DJ
1453if test -n "$ac_init_help"; then
1454
1455 cat <<\_ACEOF
1456
1457Optional Features:
81ecdfbb 1458 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1461 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1462 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1463 --disable-libquadmath do not build libquadmath directory
1464 --disable-libquadmath-support
1465 disable libquadmath support for Fortran
521ec477
DD
1466 --enable-libada build libada directory
1467 --enable-libssp build libssp directory
ffdd6afc
ILT
1468 --enable-static-libjava[=ARG]
1469 build static libjava [default=no]
1470 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e
L
1471 --disable-isl-version-check
1472 disable check for ISL version
e552509b
ILT
1473 --disable-cloog-version-check
1474 disable check for CLooG version
700d40ca 1475 --enable-lto enable link time optimization support
7837304f
AS
1476 --enable-stage1-languages[=all]
1477 choose additional languages to build during stage1.
1478 Mostly useful for compiler development
1479 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1480 Objective-C runtime
521ec477 1481 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1482 force sequential configuration of sub-packages for
1483 the host, target or build machine, or all
1484 sub-packages
1485 --enable-maintainer-mode
1486 enable make rules and dependencies not useful (and
1487 sometimes confusing) to the casual installer
1488 --enable-stage1-checking[=all]
1489 choose additional checking for stage1 of the
1490 compiler
c6b750e1
DJ
1491 --enable-werror enable -Werror in bootstrap stage2 and later
1492
1493Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1497 --with-mpc=PATH specify prefix directory for installed MPC package.
1498 Equivalent to --with-mpc-include=PATH/include plus
1499 --with-mpc-lib=PATH/lib
1500 --with-mpc-include=PATH specify directory for installed MPC include files
1501 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1502 --with-mpfr-dir=PATH this option has been REMOVED
1503 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1504 Equivalent to --with-mpfr-include=PATH/include plus
1505 --with-mpfr-lib=PATH/lib
c6b750e1 1506 --with-mpfr-include=PATH
521ec477
DD
1507 specify directory for installed MPFR include files
1508 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1509 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1510 --with-gmp=PATH specify prefix directory for the installed GMP
1511 package. Equivalent to
1512 --with-gmp-include=PATH/include plus
1513 --with-gmp-lib=PATH/lib
521ec477
DD
1514 --with-gmp-include=PATH specify directory for installed GMP include files
1515 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1516 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1517 linking with PPL
1518 --with-stage1-ldflags=FLAGS
1519 linker flags for stage1
1520 --with-stage1-libs=LIBS libraries for stage1
1521 --with-boot-libs=LIBS libraries for stage2 and later
1522 --with-boot-ldflags=FLAGS
1523 linker flags for stage2 and later
7ec59b9e 1524 --with-isl=PATH Specify prefix directory for the installed ISL
7837304f 1525 package. Equivalent to
7ec59b9e
L
1526 --with-isl-include=PATH/include plus
1527 --with-isl-lib=PATH/lib
1528 --with-isl-include=PATH Specify directory for installed ISL include files
1529 --with-isl-lib=PATH Specify the directory for the installed ISL library
e552509b
ILT
1530 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1531 package. Equivalent to
1532 --with-cloog-include=PATH/include plus
1533 --with-cloog-lib=PATH/lib
1534 --with-cloog-include=PATH
1535 Specify directory for installed CLooG include files
1536 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1537 library
521ec477 1538 --with-build-sysroot=SYSROOT
c6b750e1 1539 use sysroot as the system root during the build
8a6ee3ab 1540 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1541 map A to B, C to D ... in debug information
1542 --with-build-config='NAME NAME2...'
1543 use config/NAME.mk build configuration
521ec477 1544 --with-build-time-tools=PATH
c6b750e1 1545 use given path to find target tools during the build
c6b750e1
DJ
1546
1547Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
81ecdfbb
RW
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1555 CXX C++ compiler command
1556 CXXFLAGS C++ compiler flags
4074d5f2
RW
1557 build_configargs
1558 additional configure arguments for build directories
1559 host_configargs
1560 additional configure arguments for host directories
1561 target_configargs
1562 additional configure arguments for target directories
9a819804
AO
1563 AR AR for the host
1564 AS AS for the host
1565 DLLTOOL DLLTOOL for the host
1566 LD LD for the host
1567 LIPO LIPO for the host
1568 NM NM for the host
1569 RANLIB RANLIB for the host
1570 STRIP STRIP for the host
1571 WINDRES WINDRES for the host
0c24b341 1572 WINDMC WINDMC for the host
9a819804
AO
1573 OBJCOPY OBJCOPY for the host
1574 OBJDUMP OBJDUMP for the host
b121d7d4 1575 READELF READELF for the host
9a819804
AO
1576 CC_FOR_TARGET
1577 CC for the target
1578 CXX_FOR_TARGET
1579 CXX for the target
1580 GCC_FOR_TARGET
1581 GCC for the target
1582 GCJ_FOR_TARGET
1583 GCJ for the target
1584 GFORTRAN_FOR_TARGET
1585 GFORTRAN for the target
e552509b
ILT
1586 GOC_FOR_TARGET
1587 GOC for the target
9a819804
AO
1588 AR_FOR_TARGET
1589 AR for the target
1590 AS_FOR_TARGET
1591 AS for the target
1592 DLLTOOL_FOR_TARGET
1593 DLLTOOL for the target
1594 LD_FOR_TARGET
1595 LD for the target
1596 LIPO_FOR_TARGET
1597 LIPO for the target
1598 NM_FOR_TARGET
1599 NM for the target
1600 OBJDUMP_FOR_TARGET
1601 OBJDUMP for the target
1602 RANLIB_FOR_TARGET
1603 RANLIB for the target
b121d7d4
DD
1604 READELF_FOR_TARGET
1605 READELF for the target
9a819804
AO
1606 STRIP_FOR_TARGET
1607 STRIP for the target
1608 WINDRES_FOR_TARGET
1609 WINDRES for the target
0c24b341
NC
1610 WINDMC_FOR_TARGET
1611 WINDMC for the target
c6b750e1
DJ
1612
1613Use these variables to override the choices made by `configure' or to help
1614it to find libraries and programs with nonstandard names/locations.
1615
81ecdfbb 1616Report bugs to the package provider.
c6b750e1 1617_ACEOF
81ecdfbb 1618ac_status=$?
c6b750e1
DJ
1619fi
1620
1621if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
c6b750e1 1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
c6b750e1
DJ
1627 ac_builddir=.
1628
81ecdfbb
RW
1629case "$ac_dir" in
1630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631*)
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639esac
1640ac_abs_top_builddir=$ac_pwd
1641ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642# for backward compatibility:
1643ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1644
1645case $srcdir in
81ecdfbb 1646 .) # We are building in place.
c6b750e1 1647 ac_srcdir=.
81ecdfbb
RW
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1651 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1658esac
81ecdfbb
RW
1659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1669 else
81ecdfbb
RW
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1673 done
1674fi
1675
81ecdfbb 1676test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1677if $ac_init_version; then
1678 cat <<\_ACEOF
81ecdfbb
RW
1679configure
1680generated by GNU Autoconf 2.64
c6b750e1 1681
81ecdfbb 1682Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1683This configure script is free software; the Free Software Foundation
1684gives unlimited permission to copy, distribute and modify it.
1685_ACEOF
81ecdfbb 1686 exit
c6b750e1 1687fi
81ecdfbb
RW
1688
1689## ------------------------ ##
1690## Autoconf initialization. ##
1691## ------------------------ ##
1692
1693# ac_fn_c_try_compile LINENO
1694# --------------------------
1695# Try to compile conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_compile ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1728
1729} # ac_fn_c_try_compile
1730
1731# ac_fn_cxx_try_compile LINENO
1732# ----------------------------
1733# Try to compile conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_cxx_try_compile ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_cxx_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1757 ac_retval=0
1758else
1759 $as_echo "$as_me: failed program was:" >&5
1760sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763fi
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 return $ac_retval
1766
1767} # ac_fn_cxx_try_compile
1768
1769# ac_fn_c_try_link LINENO
1770# -----------------------
1771# Try to link conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_link ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest$ac_exeext
1776 if { { ac_try="$ac_link"
1777case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest$ac_exeext && {
1795 test "$cross_compiling" = yes ||
1796 $as_test_x conftest$ac_exeext
1797 }; then :
1798 ac_retval=0
1799else
1800 $as_echo "$as_me: failed program was:" >&5
1801sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804fi
1805 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807 # interfere with the next link command; also delete a directory that is
1808 # left behind by Apple's compiler. We do this before executing the actions.
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 return $ac_retval
1812
1813} # ac_fn_c_try_link
7ec59b9e
L
1814
1815# ac_fn_c_try_run LINENO
1816# ----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818# that executables *can* be run.
1819ac_fn_c_try_run ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1830 ac_status=$?
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=$ac_status
1850fi
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 return $ac_retval
1854
1855} # ac_fn_c_try_run
81ecdfbb 1856cat >config.log <<_ACEOF
c6b750e1
DJ
1857This file contains any messages produced by compilers while
1858running configure, to aid debugging if configure makes a mistake.
1859
1860It was created by $as_me, which was
81ecdfbb 1861generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1862
1863 $ $0 $@
1864
1865_ACEOF
81ecdfbb 1866exec 5>>config.log
c6b750e1
DJ
1867{
1868cat <<_ASUNAME
1869## --------- ##
1870## Platform. ##
1871## --------- ##
1872
1873hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1874uname -m = `(uname -m) 2>/dev/null || echo unknown`
1875uname -r = `(uname -r) 2>/dev/null || echo unknown`
1876uname -s = `(uname -s) 2>/dev/null || echo unknown`
1877uname -v = `(uname -v) 2>/dev/null || echo unknown`
1878
1879/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1880/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1881
1882/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1883/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1884/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1885/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1886/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1887/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1888/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1889
1890_ASUNAME
1891
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1897 $as_echo "PATH: $as_dir"
1898 done
1899IFS=$as_save_IFS
c6b750e1
DJ
1900
1901} >&5
1902
1903cat >&5 <<_ACEOF
1904
1905
1906## ----------- ##
1907## Core tests. ##
1908## ----------- ##
1909
1910_ACEOF
1911
1912
1913# Keep a trace of the command line.
1914# Strip out --no-create and --no-recursion so they do not pile up.
1915# Strip out --silent because we don't want to record it for future runs.
1916# Also quote any args containing shell meta-characters.
1917# Make two passes to allow for proper duplicate-argument suppression.
1918ac_configure_args=
1919ac_configure_args0=
1920ac_configure_args1=
c6b750e1
DJ
1921ac_must_keep_next=false
1922for ac_pass in 1 2
1923do
1924 for ac_arg
1925 do
1926 case $ac_arg in
1927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1929 | -silent | --silent | --silen | --sile | --sil)
1930 continue ;;
81ecdfbb
RW
1931 *\'*)
1932 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1933 esac
1934 case $ac_pass in
81ecdfbb 1935 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1936 2)
81ecdfbb 1937 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1938 if test $ac_must_keep_next = true; then
1939 ac_must_keep_next=false # Got value, back to normal.
1940 else
1941 case $ac_arg in
1942 *=* | --config-cache | -C | -disable-* | --disable-* \
1943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1945 | -with-* | --with-* | -without-* | --without-* | --x)
1946 case "$ac_configure_args0 " in
1947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1948 esac
1949 ;;
1950 -* ) ac_must_keep_next=true ;;
1951 esac
1952 fi
81ecdfbb 1953 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1954 ;;
1955 esac
1956 done
1957done
81ecdfbb
RW
1958{ ac_configure_args0=; unset ac_configure_args0;}
1959{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1960
1961# When interrupted or exit'd, cleanup temporary files, and complete
1962# config.log. We remove comments because anyway the quotes in there
1963# would cause problems or look ugly.
81ecdfbb
RW
1964# WARNING: Use '\'' to represent an apostrophe within the trap.
1965# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1966trap 'exit_status=$?
1967 # Save into config.log some information that might help in debugging.
1968 {
1969 echo
1970
1971 cat <<\_ASBOX
1972## ---------------- ##
1973## Cache variables. ##
1974## ---------------- ##
1975_ASBOX
1976 echo
1977 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1978(
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1981 case $ac_val in #(
1982 *${as_nl}*)
1983 case $ac_var in #(
1984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1986 esac
1987 case $ac_var in #(
1988 _ | IFS | as_nl) ;; #(
1989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990 *) { eval $ac_var=; unset $ac_var;} ;;
1991 esac ;;
1992 esac
1993 done
c6b750e1 1994 (set) 2>&1 |
81ecdfbb
RW
1995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996 *${as_nl}ac_space=\ *)
c6b750e1 1997 sed -n \
81ecdfbb
RW
1998 "s/'\''/'\''\\\\'\'''\''/g;
1999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2000 ;; #(
c6b750e1 2001 *)
81ecdfbb 2002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2003 ;;
81ecdfbb
RW
2004 esac |
2005 sort
2006)
c6b750e1
DJ
2007 echo
2008
2009 cat <<\_ASBOX
2010## ----------------- ##
2011## Output variables. ##
2012## ----------------- ##
2013_ASBOX
2014 echo
2015 for ac_var in $ac_subst_vars
2016 do
81ecdfbb
RW
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2022 done | sort
2023 echo
2024
2025 if test -n "$ac_subst_files"; then
2026 cat <<\_ASBOX
81ecdfbb
RW
2027## ------------------- ##
2028## File substitutions. ##
2029## ------------------- ##
c6b750e1
DJ
2030_ASBOX
2031 echo
2032 for ac_var in $ac_subst_files
2033 do
81ecdfbb
RW
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 esac
2038 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2039 done | sort
2040 echo
2041 fi
2042
2043 if test -s confdefs.h; then
2044 cat <<\_ASBOX
2045## ----------- ##
2046## confdefs.h. ##
2047## ----------- ##
2048_ASBOX
2049 echo
81ecdfbb 2050 cat confdefs.h
c6b750e1
DJ
2051 echo
2052 fi
2053 test "$ac_signal" != 0 &&
81ecdfbb
RW
2054 $as_echo "$as_me: caught signal $ac_signal"
2055 $as_echo "$as_me: exit $exit_status"
c6b750e1 2056 } >&5
81ecdfbb
RW
2057 rm -f core *.core core.conftest.* &&
2058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2059 exit $exit_status
81ecdfbb 2060' 0
c6b750e1 2061for ac_signal in 1 2 13 15; do
81ecdfbb 2062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2063done
2064ac_signal=0
2065
2066# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2067rm -f -r conftest* confdefs.h
2068
2069$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2070
2071# Predefined preprocessor variables.
2072
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_NAME "$PACKAGE_NAME"
2075_ACEOF
2076
c6b750e1
DJ
2077cat >>confdefs.h <<_ACEOF
2078#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2079_ACEOF
2080
c6b750e1
DJ
2081cat >>confdefs.h <<_ACEOF
2082#define PACKAGE_VERSION "$PACKAGE_VERSION"
2083_ACEOF
2084
c6b750e1
DJ
2085cat >>confdefs.h <<_ACEOF
2086#define PACKAGE_STRING "$PACKAGE_STRING"
2087_ACEOF
2088
c6b750e1
DJ
2089cat >>confdefs.h <<_ACEOF
2090#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2091_ACEOF
2092
81ecdfbb
RW
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_URL "$PACKAGE_URL"
2095_ACEOF
2096
c6b750e1
DJ
2097
2098# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2099# Prefer an explicitly selected file to automatically selected ones.
2100ac_site_file1=NONE
2101ac_site_file2=NONE
2102if test -n "$CONFIG_SITE"; then
2103 ac_site_file1=$CONFIG_SITE
2104elif test "x$prefix" != xNONE; then
2105 ac_site_file1=$prefix/share/config.site
2106 ac_site_file2=$prefix/etc/config.site
2107else
2108 ac_site_file1=$ac_default_prefix/share/config.site
2109 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2110fi
81ecdfbb
RW
2111for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2112do
2113 test "x$ac_site_file" = xNONE && continue
a0da8069 2114 if test -r "$ac_site_file"; then
81ecdfbb
RW
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2117 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2118 . "$ac_site_file"
2119 fi
2120done
2121
2122if test -r "$cache_file"; then
c6b750e1
DJ
2123 # Some versions of bash will fail to source /dev/null (special
2124 # files actually), so we avoid doing that.
2125 if test -f "$cache_file"; then
81ecdfbb
RW
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2128 case $cache_file in
81ecdfbb
RW
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
c6b750e1
DJ
2131 esac
2132 fi
a0da8069 2133else
81ecdfbb
RW
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2136 >$cache_file
2137fi
2138
2139# Check that the precious variables saved in the cache have kept the same
2140# value.
2141ac_cache_corrupted=false
81ecdfbb 2142for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2144 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2145 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2146 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2147 case $ac_old_set,$ac_new_set in
2148 set,)
81ecdfbb
RW
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2150$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2151 ac_cache_corrupted=: ;;
2152 ,set)
81ecdfbb
RW
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2154$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2155 ac_cache_corrupted=: ;;
2156 ,);;
2157 *)
2158 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2159 # differences in whitespace do not lead to failure.
2160 ac_old_val_w=`echo x $ac_old_val`
2161 ac_new_val_w=`echo x $ac_new_val`
2162 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2164$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2165 ac_cache_corrupted=:
2166 else
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2168$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2169 eval $ac_var=\$ac_old_val
2170 fi
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2172$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2174$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2175 fi;;
2176 esac
2177 # Pass precious variables to config.status.
2178 if test "$ac_new_set" = set; then
2179 case $ac_new_val in
81ecdfbb 2180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2181 *) ac_arg=$ac_var=$ac_new_val ;;
2182 esac
2183 case " $ac_configure_args " in
2184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2185 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2186 esac
2187 fi
2188done
2189if $ac_cache_corrupted; then
81ecdfbb
RW
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2193$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2194 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2195fi
81ecdfbb
RW
2196## -------------------- ##
2197## Main body of script. ##
2198## -------------------- ##
a0da8069
NN
2199
2200ac_ext=c
a0da8069 2201ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2204ac_compiler_gnu=$ac_cv_c_compiler_gnu
2205
2206
2207
2208
c6b750e1
DJ
2209
2210
34a0f3cf 2211
c6b750e1 2212
5b553f7e
RW
2213
2214progname=$0
2215# if PWD already has a value, it is probably wrong.
2216if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2217
2218# Export original configure arguments for use by sub-configures.
2219# Quote arguments with shell meta charatcers.
2220TOPLEVEL_CONFIGURE_ARGUMENTS=
2221set -- "$progname" "$@"
2222for ac_arg
2223do
2224 case "$ac_arg" in
2225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2227 # if the argument is of the form -foo=baz, quote the baz part only
2228 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2229 *) ;;
2230 esac
2231 # Add the quoted argument to the list.
2232 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2233done
2234if test "$silent" = yes; then
2235 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2236fi
2237# Remove the initial space we just introduced and, as these will be
2238# expanded by make, quote '$'.
2239TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2240
c6b750e1
DJ
2241
2242# Find the build, host, and target systems.
a0da8069 2243ac_aux_dir=
81ecdfbb
RW
2244for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2245 for ac_t in install-sh install.sh shtool; do
2246 if test -f "$ac_dir/$ac_t"; then
2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/$ac_t -c"
2249 break 2
2250 fi
2251 done
a0da8069
NN
2252done
2253if test -z "$ac_aux_dir"; then
81ecdfbb 2254 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2255fi
81ecdfbb
RW
2256
2257# These three variables are undocumented and unsupported,
2258# and are intended to be withdrawn in a future Autoconf release.
2259# They can cause serious problems if a builder's source tree is in a directory
2260# whose full name contains unusual characters.
2261ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2262ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2263ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2264
a0da8069 2265
c6b750e1 2266# Make sure we can run config.sub.
81ecdfbb
RW
2267$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2268 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2269
2270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2271$as_echo_n "checking build system type... " >&6; }
2272if test "${ac_cv_build+set}" = set; then :
2273 $as_echo_n "(cached) " >&6
2274else
2275 ac_build_alias=$build_alias
2276test "x$ac_build_alias" = x &&
2277 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2278test "x$ac_build_alias" = x &&
2279 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2280ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2281 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2282
2283fi
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2285$as_echo "$ac_cv_build" >&6; }
2286case $ac_cv_build in
2287*-*-*) ;;
2288*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2289esac
c6b750e1 2290build=$ac_cv_build
81ecdfbb
RW
2291ac_save_IFS=$IFS; IFS='-'
2292set x $ac_cv_build
2293shift
2294build_cpu=$1
2295build_vendor=$2
2296shift; shift
2297# Remember, the first character of IFS is used to create $*,
2298# except with old shells:
2299build_os=$*
2300IFS=$ac_save_IFS
2301case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2302
a0da8069 2303
c6b750e1
DJ
2304 case ${build_alias} in
2305 "") build_noncanonical=${build} ;;
2306 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2307esac
2308
2309
cac3d6c4 2310
c6b750e1
DJ
2311 case ${host_alias} in
2312 "") host_noncanonical=${build_noncanonical} ;;
2313 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2314esac
2315
cac3d6c4 2316
c6b750e1
DJ
2317
2318 case ${target_alias} in
2319 "") target_noncanonical=${host_noncanonical} ;;
2320 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2321esac
2322
cac3d6c4 2323
c6b750e1
DJ
2324
2325
2326test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2327 test "$program_prefix$program_suffix$program_transform_name" = \
2328 NONENONEs,x,x, &&
c6b750e1 2329 program_transform_name=s,y,y,
cac3d6c4 2330
81ecdfbb
RW
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2332$as_echo_n "checking host system type... " >&6; }
2333if test "${ac_cv_host+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
cac3d6c4 2335else
81ecdfbb
RW
2336 if test "x$host_alias" = x; then
2337 ac_cv_host=$ac_cv_build
2338else
2339 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2341fi
c6b750e1
DJ
2342
2343fi
81ecdfbb
RW
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2345$as_echo "$ac_cv_host" >&6; }
2346case $ac_cv_host in
2347*-*-*) ;;
2348*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2349esac
c6b750e1 2350host=$ac_cv_host
81ecdfbb
RW
2351ac_save_IFS=$IFS; IFS='-'
2352set x $ac_cv_host
2353shift
2354host_cpu=$1
2355host_vendor=$2
2356shift; shift
2357# Remember, the first character of IFS is used to create $*,
2358# except with old shells:
2359host_os=$*
2360IFS=$ac_save_IFS
2361case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2362
2363
81ecdfbb
RW
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2365$as_echo_n "checking target system type... " >&6; }
2366if test "${ac_cv_target+set}" = set; then :
2367 $as_echo_n "(cached) " >&6
c6b750e1 2368else
81ecdfbb
RW
2369 if test "x$target_alias" = x; then
2370 ac_cv_target=$ac_cv_host
2371else
2372 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2373 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2374fi
c6b750e1 2375
cac3d6c4 2376fi
81ecdfbb
RW
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2378$as_echo "$ac_cv_target" >&6; }
2379case $ac_cv_target in
2380*-*-*) ;;
2381*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2382esac
c6b750e1 2383target=$ac_cv_target
81ecdfbb
RW
2384ac_save_IFS=$IFS; IFS='-'
2385set x $ac_cv_target
2386shift
2387target_cpu=$1
2388target_vendor=$2
2389shift; shift
2390# Remember, the first character of IFS is used to create $*,
2391# except with old shells:
2392target_os=$*
2393IFS=$ac_save_IFS
2394case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2395
2396
2397# The aliases save the names the user supplied, while $host etc.
2398# will get canonicalized.
2399test -n "$target_alias" &&
2400 test "$program_prefix$program_suffix$program_transform_name" = \
2401 NONENONEs,x,x, &&
2402 program_prefix=${target_alias}-
81ecdfbb 2403
a0da8069 2404test "$program_prefix" != NONE &&
81ecdfbb 2405 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2406# Use a double $ so make ignores it.
2407test "$program_suffix" != NONE &&
81ecdfbb
RW
2408 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2409# Double any \ or $.
c6b750e1 2410# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2411ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2412program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2413
a0da8069
NN
2414
2415
e5c3f801
NN
2416# Get 'install' or 'install-sh' and its variants.
2417# Find a good install program. We prefer a C program (faster),
2418# so one script is as good as another. But avoid the broken or
2419# incompatible versions:
2420# SysV /etc/install, /usr/sbin/install
2421# SunOS /usr/etc/install
2422# IRIX /sbin/install
2423# AIX /bin/install
c6b750e1 2424# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2425# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2428# OS/2's system install, which has a completely different semantic
e5c3f801 2429# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2430# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2433if test -z "$INSTALL"; then
81ecdfbb
RW
2434if test "${ac_cv_path_install+set}" = set; then :
2435 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2436else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2442 # Account for people who put trailing slashes in PATH elements.
2443case $as_dir/ in #((
2444 ./ | .// | /[cC]/* | \
c6b750e1 2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2447 /usr/ucb/* ) ;;
2448 *)
2449 # OSF1 and SCO ODT 3.0 have their own names for install.
2450 # Don't use installbsd from OSF since it installs stuff as root
2451 # by default.
2452 for ac_prog in ginstall scoinst install; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2454 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2455 if test $ac_prog = install &&
c6b750e1 2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2457 # AIX install. It has an incompatible calling convention.
2458 :
c6b750e1
DJ
2459 elif test $ac_prog = install &&
2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # program-specific install script used by HP pwplus--don't use.
2462 :
e5c3f801 2463 else
58c85be7
RW
2464 rm -rf conftest.one conftest.two conftest.dir
2465 echo one > conftest.one
2466 echo two > conftest.two
2467 mkdir conftest.dir
2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469 test -s conftest.one && test -s conftest.two &&
2470 test -s conftest.dir/conftest.one &&
2471 test -s conftest.dir/conftest.two
2472 then
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474 break 3
2475 fi
e5c3f801
NN
2476 fi
2477 fi
2478 done
c6b750e1
DJ
2479 done
2480 ;;
2481esac
81ecdfbb
RW
2482
2483 done
2484IFS=$as_save_IFS
c6b750e1 2485
58c85be7 2486rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2487
2488fi
2489 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2490 INSTALL=$ac_cv_path_install
e5c3f801 2491 else
58c85be7
RW
2492 # As a last resort, use the slow shell script. Don't cache a
2493 # value for INSTALL within a source directory, because that will
e5c3f801 2494 # break other packages using the cache if that directory is
58c85be7 2495 # removed, or if the value is a relative name.
c6b750e1 2496 INSTALL=$ac_install_sh
e5c3f801
NN
2497 fi
2498fi
81ecdfbb
RW
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2501
2502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503# It thinks the first close brace ends the variable substitution.
2504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
c6b750e1 2506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2507
2508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
81ecdfbb
RW
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2511$as_echo_n "checking whether ln works... " >&6; }
2512if test "${acx_cv_prog_LN+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
656fdd47
PB
2514else
2515 rm -f conftestdata_t
2516echo >conftestdata_f
2517if ln conftestdata_f conftestdata_t 2>/dev/null
2518then
2519 acx_cv_prog_LN=ln
2520else
2521 acx_cv_prog_LN=no
2522fi
2523rm -f conftestdata_f conftestdata_t
2524
2525fi
2526if test $acx_cv_prog_LN = no; then
2527 LN="cp"
81ecdfbb
RW
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2529$as_echo "no, using $LN" >&6; }
656fdd47
PB
2530else
2531 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533$as_echo "yes" >&6; }
656fdd47
PB
2534fi
2535
81ecdfbb
RW
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2537$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2538LN_S=$as_ln_s
2539if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2541$as_echo "yes" >&6; }
cac3d6c4 2542else
81ecdfbb
RW
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2544$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2545fi
2546
8e957354
PB
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2548$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2549if test "${ac_cv_path_SED+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551else
2552 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2553 for ac_i in 1 2 3 4 5 6 7; do
2554 ac_script="$ac_script$as_nl$ac_script"
2555 done
2556 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2557 { ac_script=; unset ac_script;}
2558 if test -z "$SED"; then
2559 ac_path_SED_found=false
2560 # Loop through the user's path and test for each of PROGNAME-LIST
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_prog in sed gsed; do
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2569 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2570# Check for GNU ac_path_SED and select it if it is found.
2571 # Check for GNU $ac_path_SED
2572case `"$ac_path_SED" --version 2>&1` in
2573*GNU*)
2574 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2575*)
2576 ac_count=0
2577 $as_echo_n 0123456789 >"conftest.in"
2578 while :
2579 do
2580 cat "conftest.in" "conftest.in" >"conftest.tmp"
2581 mv "conftest.tmp" "conftest.in"
2582 cp "conftest.in" "conftest.nl"
2583 $as_echo '' >> "conftest.nl"
2584 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2586 as_fn_arith $ac_count + 1 && ac_count=$as_val
2587 if test $ac_count -gt ${ac_path_SED_max-0}; then
2588 # Best one so far, save it but keep looking for a better one
2589 ac_cv_path_SED="$ac_path_SED"
2590 ac_path_SED_max=$ac_count
2591 fi
2592 # 10*(2^10) chars as input seems more than enough
2593 test $ac_count -gt 10 && break
2594 done
2595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2596esac
2597
2598 $ac_path_SED_found && break 3
2599 done
2600 done
2601 done
2602IFS=$as_save_IFS
2603 if test -z "$ac_cv_path_SED"; then
2604 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2605 fi
2606else
2607 ac_cv_path_SED=$SED
2608fi
2609
2610fi
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2612$as_echo "$ac_cv_path_SED" >&6; }
2613 SED="$ac_cv_path_SED"
2614 rm -f conftest.sed
2615
2616for ac_prog in gawk mawk nawk awk
2617do
2618 # Extract the first word of "$ac_prog", so it can be a program name with args.
2619set dummy $ac_prog; ac_word=$2
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
2622if test "${ac_cv_prog_AWK+set}" = set; then :
2623 $as_echo_n "(cached) " >&6
2624else
2625 if test -n "$AWK"; then
2626 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_AWK="$ac_prog"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639done
2640 done
2641IFS=$as_save_IFS
2642
2643fi
2644fi
2645AWK=$ac_cv_prog_AWK
2646if test -n "$AWK"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2648$as_echo "$AWK" >&6; }
2649else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651$as_echo "no" >&6; }
2652fi
2653
2654
2655 test -n "$AWK" && break
2656done
2657
e5c3f801 2658
0fdbe983
DJ
2659srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2660
2661# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2662# a relative path.
2663if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2664 INSTALL="${srcpwd}/install-sh -c"
2665fi
2666
a0da8069
NN
2667# Set srcdir to "." if that's what it is.
2668# This is important for multilib support.
2669pwd=`${PWDCMD-pwd}`
a0da8069
NN
2670if test "${pwd}" = "${srcpwd}" ; then
2671 srcdir=.
252b5132
RH
2672fi
2673
a0da8069 2674topsrcdir=$srcpwd
252b5132 2675
a0da8069 2676extra_host_args=
afefada0 2677
a0da8069
NN
2678### To add a new directory to the tree, first choose whether it is a target
2679### or a host dependent tool. Then put it into the appropriate list
2680### (library or tools, host or target), doing a dependency sort.
252b5132 2681
c6b750e1 2682# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2683# configdirs, or target_configdirs; see the serialization section below.
252b5132 2684
c6b750e1
DJ
2685# Dependency sorting is only needed when *configuration* must be done in
2686# a particular order. In all cases a dependency should be specified in
a0da8069 2687# the Makefile, whether or not it's implicitly specified here.
252b5132 2688
a0da8069
NN
2689# Double entries in build_configdirs, configdirs, or target_configdirs may
2690# cause circular dependencies and break everything horribly.
252b5132 2691
6a9cf61e
PB
2692# these library is used by various programs built for the build
2693# environment
2694#
2695build_libs="build-libiberty"
2696
2697# these tools are built for the build environment
a90ef4bf 2698build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2699
a0da8069
NN
2700# these libraries are used by various programs built for the host environment
2701#
7ec59b9e 2702host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
a0da8069 2703
a0da8069
NN
2704# these tools are built for the host environment
2705# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2706# know that we are building the simulator.
2707# binutils, gas and ld appear in that order because it makes sense to run
2708# "make check" in that particular order.
e6de499b 2709# If --enable-gold is used, "gold" may replace "ld".
a90ef4bf 2710host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
a0da8069
NN
2711
2712# libgcj represents the runtime libraries only used by gcj.
2713libgcj="target-libffi \
a0da8069 2714 target-zlib \
a0da8069
NN
2715 target-libjava"
2716
2717# these libraries are built for the target environment, and are built after
2718# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2719# Note that libiberty is not a target library.
b1299c4e 2720target_libraries="target-libgcc \
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
e6de499b 2919 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
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
065a5627
JM
3139# Disable libssp for some systems.
3140case "${target}" in
3141 avr-*-*)
c5f5c3c2 3142 # No hosted I/O support.
065a5627
JM
3143 noconfigdirs="$noconfigdirs target-libssp"
3144 ;;
3145 powerpc-*-aix* | rs6000-*-aix*)
3146 noconfigdirs="$noconfigdirs target-libssp"
3147 ;;
99c513f6 3148 rl78-*-*)
202e2356
NC
3149 # libssp uses a misaligned load to trigger a fault, but the RL78
3150 # doesn't fault for those - instead, it gives a build-time error
3151 # for explicit misaligned loads.
99c513f6
DD
3152 noconfigdirs="$noconfigdirs target-libssp"
3153 ;;
065a5627
JM
3154esac
3155
065a5627
JM
3156# Disable libstdc++-v3 for some systems.
3157case "${target}" in
3158 *-*-vxworks*)
3159 # VxWorks uses the Dinkumware C++ library.
3160 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3161 ;;
3162 arm*-wince-pe*)
3163 # the C++ libraries don't build on top of CE's C libraries
3164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3165 ;;
3166 avr-*-*)
3167 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3168 ;;
3169esac
3170
3171# Disable Fortran for some systems.
3172case "${target}" in
3173 mmix-*-*)
3174 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3175 unsupported_languages="$unsupported_languages fortran"
3176 ;;
3177esac
3178
0827f9a6 3179# Disable Java if libffi is not supported.
9863d716 3180case "${target}" in
0827f9a6
JM
3181 alpha*-*-*)
3182 ;;
3183 arm*-*-*)
3184 ;;
3185 cris-*-*)
3186 ;;
3187 frv-*-*)
3188 ;;
3189 hppa*-*-linux*)
3190 ;;
3191 hppa*-*-hpux*)
3192 ;;
3193 i?86-*-*)
3194 ;;
3195 ia64*-*-*)
3196 ;;
3197 m32r*-*-*)
3198 ;;
3199 m68k-*-*)
3200 ;;
2479f722 3201 mips*-*-rtems*)
0827f9a6
JM
3202 ;;
3203 mips*-*-linux*)
3204 ;;
3205 powerpc*-*-linux*)
3206 ;;
3207 powerpc-*-darwin*)
3208 ;;
3209 powerpc-*-aix* | rs6000-*-aix*)
3210 ;;
3211 powerpc-*-freebsd*)
3212 ;;
3213 powerpc64-*-freebsd*)
3214 ;;
3215 powerpc*-*-rtems*)
9863d716 3216 ;;
0827f9a6
JM
3217 s390-*-* | s390x-*-*)
3218 ;;
3219 sh-*-* | sh[34]*-*-*)
3220 ;;
3221 sh64-*-* | sh5*-*-*)
3222 ;;
3223 sparc*-*-*)
3224 ;;
3225 x86_64-*-*)
3226 ;;
3227 *-*-*)
3228 unsupported_languages="$unsupported_languages java"
3229 ;;
3230esac
3231
3232# Disable Java, libgcj or related libraries for some systems.
3233case "${target}" in
9863d716
JM
3234 powerpc-*-darwin*)
3235 ;;
3236 i[3456789]86-*-darwin*)
3237 ;;
3238 x86_64-*-darwin[912]*)
3239 ;;
3240 *-*-darwin*)
3241 noconfigdirs="$noconfigdirs ${libgcj}"
3242 ;;
9863d716
JM
3243 *-*-netware*)
3244 noconfigdirs="$noconfigdirs ${libgcj}"
3245 ;;
3246 *-*-rtems*)
3247 noconfigdirs="$noconfigdirs ${libgcj}"
3248 ;;
3249 *-*-tpf*)
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3251 ;;
3252 *-*-uclinux*)
3253 noconfigdirs="$noconfigdirs ${libgcj}"
3254 ;;
3255 *-*-vxworks*)
3256 noconfigdirs="$noconfigdirs ${libgcj}"
3257 ;;
9863d716
JM
3258 alpha*-*-*vms*)
3259 noconfigdirs="$noconfigdirs ${libgcj}"
3260 ;;
0827f9a6 3261 arm-wince-pe)
9863d716
JM
3262 noconfigdirs="$noconfigdirs ${libgcj}"
3263 ;;
9863d716
JM
3264 arm*-*-symbianelf*)
3265 noconfigdirs="$noconfigdirs ${libgcj}"
3266 ;;
9863d716 3267 bfin-*-*)
9863d716
JM
3268 noconfigdirs="$noconfigdirs target-boehm-gc"
3269 ;;
9863d716
JM
3270 cris-*-* | crisv32-*-*)
3271 unsupported_languages="$unsupported_languages java"
3272 case "${target}" in
3273 *-*-linux*)
3274 ;;
3275 *) # See PR46792 regarding target-libffi.
3276 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3277 esac
3278 ;;
9863d716
JM
3279 hppa*64*-*-linux*)
3280 # In this case, it's because the hppa64-linux target is for
3281 # the kernel only at this point and has no libc, and thus no
3282 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3283 unsupported_languages="$unsupported_languages java"
9863d716 3284 ;;
82ae827f 3285 hppa*64*-*-hpux*)
9863d716
JM
3286 noconfigdirs="$noconfigdirs ${libgcj}"
3287 ;;
3288 hppa*-hp-hpux11*)
3289 ;;
82ae827f 3290 hppa*-*-hpux*)
9863d716
JM
3291 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3292 # build on HP-UX 10.20.
3293 noconfigdirs="$noconfigdirs ${libgcj}"
3294 ;;
9863d716
JM
3295 ia64*-*-*vms*)
3296 noconfigdirs="$noconfigdirs ${libgcj}"
3297 ;;
9863d716
JM
3298 i[3456789]86-w64-mingw*)
3299 noconfigdirs="$noconfigdirs ${libgcj}"
3300 ;;
3301 i[3456789]86-*-mingw*)
3302 noconfigdirs="$noconfigdirs ${libgcj}"
3303 ;;
3304 x86_64-*-mingw*)
3305 noconfigdirs="$noconfigdirs ${libgcj}"
3306 ;;
9863d716
JM
3307 mmix-*-*)
3308 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3309 ;;
3310 powerpc-*-aix*)
3311 # copied from rs6000-*-* entry
3312 noconfigdirs="$noconfigdirs ${libgcj}"
3313 ;;
9863d716
JM
3314 rs6000-*-aix*)
3315 noconfigdirs="$noconfigdirs ${libgcj}"
3316 ;;
9863d716
JM
3317 *-*-lynxos*)
3318 noconfigdirs="$noconfigdirs ${libgcj}"
3319 ;;
9863d716
JM
3320esac
3321
691bb5a1
DD
3322# Default libgloss CPU subdirectory.
3323libgloss_dir="$target_cpu"
4b1cb4fe 3324
ff46fb8f
JM
3325case "${target}" in
3326 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3327 libgloss_dir=wince
3328 ;;
3329 arm*-*-*)
3330 libgloss_dir=arm
3331 ;;
3332 cris-*-* | crisv32-*-*)
3333 libgloss_dir=cris
3334 ;;
3335 hppa*-*-*)
3336 libgloss_dir=pa
3337 ;;
3338 i[3456789]86-*-*)
3339 libgloss_dir=i386
3340 ;;
3341 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3342 libgloss_dir=m68hc11
3343 ;;
3344 m68*-*-* | fido-*-*)
3345 libgloss_dir=m68k
3346 ;;
3347 mips*-*-*)
3348 libgloss_dir=mips
3349 ;;
3350 powerpc*-*-*)
3351 libgloss_dir=rs6000
3352 ;;
3353 sparc*-*-*)
3354 libgloss_dir=sparc
3355 ;;
3356esac
3357
c7e4b184 3358# Disable newlib and libgloss for various target OSes.
a0da8069 3359case "${target}" in
c7e4b184
JM
3360 alpha*-dec-osf*)
3361 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3362 ;;
3363 i[3456789]86-*-linux*)
3364 # This section makes it possible to build newlib natively on linux.
3365 # If we are using a cross compiler then don't configure newlib.
3366 if test x${is_cross_compiler} != xno ; then
3367 noconfigdirs="$noconfigdirs target-newlib"
3368 fi
3369 noconfigdirs="$noconfigdirs target-libgloss"
3370 # If we are not using a cross compiler, do configure newlib.
3371 # Note however, that newlib will only be configured in this situation
3372 # if the --with-newlib option has been given, because otherwise
3373 # 'target-newlib' will appear in skipdirs.
3374 ;;
3375 i[3456789]86-*-rdos*)
3376 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3377 ;;
3378 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3379 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3380 ;;
3381 sparc-*-sunos4*)
3382 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3383 ;;
3384 *-*-aix*)
3385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3386 ;;
3387 *-*-beos*)
3388 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3389 ;;
a0da8069 3390 *-*-chorusos)
b2f14e4a 3391 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3392 ;;
c7e4b184
JM
3393 *-*-dragonfly*)
3394 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3395 ;;
3396 *-*-freebsd*)
3397 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3398 ;;
3399 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3400 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3401 ;;
3402 *-*-lynxos*)
3403 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3404 ;;
3405 *-*-mingw*)
3406 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3407 ;;
3408 *-*-netbsd*)
3409 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3410 ;;
3411 *-*-netware*)
3412 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3413 ;;
3414 *-*-tpf*)
3415 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3416 ;;
3417 *-*-uclinux*)
3418 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3419 ;;
3420 *-*-vxworks*)
3421 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3422 ;;
3423esac
3424
3425case "${target}" in
3426 *-*-chorusos)
3427 ;;
24741ab2 3428 powerpc-*-darwin*)
9d39db92 3429 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3430 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3431 ;;
85bd1942
TG
3432 i[3456789]86-*-darwin*)
3433 noconfigdirs="$noconfigdirs ld gprof"
3434 noconfigdirs="$noconfigdirs sim target-rda"
3435 ;;
e8a5fa9c 3436 x86_64-*-darwin[912]*)
652dec25
TG
3437 noconfigdirs="$noconfigdirs ld gas gprof"
3438 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3439 ;;
04d1ab34 3440 *-*-darwin*)
d320aacb 3441 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3442 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3443 ;;
5b806d27 3444 *-*-dragonfly*)
5b806d27 3445 ;;
de0b4a87 3446 *-*-freebsd*)
4b1cb4fe
DD
3447 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3448 && test -f /usr/local/include/gmp.h; then
3449 with_gmp=/usr/local
3450 fi
4b1cb4fe 3451 ;;
f8a495c8
NC
3452 *-*-kaos*)
3453 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3454 noconfigdirs="$noconfigdirs target-libgloss"
3455 ;;
a0da8069 3456 *-*-netbsd*)
a0da8069 3457 ;;
2a3124ca 3458 *-*-netware*)
a0da8069
NN
3459 ;;
3460 *-*-rtems*)
9863d716 3461 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3462 ;;
1587117a
EC
3463 # The tpf target doesn't support gdb yet.
3464 *-*-tpf*)
c7e4b184 3465 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3466 ;;
c1968181 3467 *-*-uclinux*)
c7e4b184 3468 noconfigdirs="$noconfigdirs target-rda"
c1968181 3469 ;;
a0da8069 3470 *-*-vxworks*)
a0da8069
NN
3471 ;;
3472 alpha*-dec-osf*)
3473 # ld works, but does not support shared libraries.
a0da8069 3474 # gas doesn't generate exception information.
c7e4b184 3475 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3476 ;;
3477 alpha*-*-*vms*)
9863d716 3478 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3479 ;;
a0da8069
NN
3480 alpha*-*-*)
3481 # newlib is not 64 bit ready
9863d716 3482 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3483 ;;
a0da8069 3484 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3485 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3486 ;;
3487 arc-*-*)
782cb41f 3488 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3489 ;;
a0da8069 3490 arm-*-pe*)
9863d716 3491 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3492 ;;
a0da8069 3493 arm-*-riscix*)
b2f14e4a 3494 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3495 ;;
a0da8069 3496 c4x-*-* | tic4x-*-*)
b2f14e4a 3497 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3498 ;;
b2f14e4a
JM
3499 tic54x-*-*)
3500 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3501 ;;
a0da8069 3502 d10v-*-*)
b2f14e4a 3503 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3504 ;;
3505 d30v-*-*)
b2f14e4a 3506 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3507 ;;
3508 fr30-*-elf*)
9863d716 3509 noconfigdirs="$noconfigdirs gdb"
a0da8069 3510 ;;
20135e4c 3511 moxie-*-*)
20135e4c
NC
3512 noconfigdirs="$noconfigdirs gprof"
3513 ;;
a0da8069 3514 h8300*-*-*)
9863d716 3515 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3516 ;;
3517 h8500-*-*)
b2f14e4a 3518 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3519 ;;
caeba88f 3520 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3521 ;;
93cc359e 3522 hppa*64*-*-linux*)
a0da8069 3523 ;;
f0ff0f90 3524 hppa*-*-linux*)
5dcac624 3525 ;;
a0da8069 3526 hppa*-*-*elf* | \
a0da8069
NN
3527 hppa*-*-lites* | \
3528 hppa*-*-openbsd* | \
3529 hppa*64*-*-*)
4f0ef2d8
CD
3530 ;;
3531 hppa*-hp-hpux11*)
0377a422 3532 noconfigdirs="$noconfigdirs ld"
a0da8069 3533 ;;
691bb5a1 3534 hppa*-*-pro*)
691bb5a1 3535 ;;
a0da8069 3536 hppa*-*-*)
9863d716 3537 noconfigdirs="$noconfigdirs ld"
a0da8069 3538 ;;
b07c2aad 3539 i960-*-*)
b2f14e4a 3540 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3541 ;;
a0da8069
NN
3542 ia64*-*-elf*)
3543 # No gdb support yet.
0377a422 3544 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3545 ;;
3546 ia64*-**-hpux*)
92c9a463 3547 # No ld support yet.
9863d716 3548 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3549 ;;
19e99079 3550 ia64*-*-*vms*)
7ec59b9e
L
3551 # No ld support yet.
3552 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3553 ;;
1f53ca9a 3554 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3555 ;;
3556 i[3456789]86-*-mingw*)
45055374 3557 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3558 ;;
a0da8069
NN
3559 *-*-cygwin*)
3560 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3561 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3562 # always build newlib if winsup directory is present.
45055374 3563 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3564 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3565 elif test -d "$srcdir/newlib"; then
45055374 3566 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3567 fi
c6b750e1 3568 ;;
ec11bdc6 3569 i[3456789]86-*-pe)
782cb41f 3570 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3571 ;;
ec11bdc6 3572 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3573 # The linker does not yet know about weak symbols in COFF,
3574 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3575 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3576 ;;
ec11bdc6 3577 i[3456789]86-*-sco*)
b2f14e4a 3578 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3579 ;;
cff32a7c 3580 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3581 noconfigdirs="$noconfigdirs target-libgloss"
3582 ;;
ec11bdc6 3583 i[3456789]86-*-sysv4*)
b2f14e4a 3584 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3585 ;;
ec11bdc6 3586 i[3456789]86-*-beos*)
c7e4b184 3587 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3588 ;;
b59bea8a 3589 i[3456789]86-*-rdos*)
c7e4b184 3590 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3591 ;;
a0da8069 3592 mmix-*-*)
9863d716 3593 noconfigdirs="$noconfigdirs gdb"
a0da8069 3594 ;;
4970f871 3595 mt-*-*)
cdb9b172
AH
3596 noconfigdirs="$noconfigdirs sim"
3597 ;;
a0da8069
NN
3598 powerpc-*-aix*)
3599 # copied from rs6000-*-* entry
c7e4b184 3600 noconfigdirs="$noconfigdirs gprof"
a0da8069 3601 ;;
93cc359e 3602 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3603 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3604 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3605 # always build newlib.
3606 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3607 ;;
3608 # This is temporary until we can link against shared libraries
3609 powerpcle-*-solaris*)
b2f14e4a 3610 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3611 ;;
3612 powerpc-*-beos*)
c7e4b184 3613 noconfigdirs="$noconfigdirs gdb"
a0da8069 3614 ;;
a0da8069 3615 rs6000-*-lynxos*)
c7e4b184 3616 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3617 ;;
3618 rs6000-*-aix*)
c7e4b184 3619 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3620 ;;
3621 rs6000-*-*)
9863d716 3622 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3623 ;;
3624 m68k-apollo-*)
b2f14e4a 3625 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3626 ;;
25a07265 3627 microblaze*)
9863d716 3628 noconfigdirs="$noconfigdirs gprof"
25a07265 3629 ;;
5bd8be13 3630 mips*-sde-elf*)
5bd8be13
RS
3631 if test x$with_newlib = xyes; then
3632 noconfigdirs="$noconfigdirs gprof"
3633 fi
5bd8be13 3634 ;;
a0da8069 3635 mips*-*-irix5*)
b2f14e4a 3636 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3637 ;;
3638 mips*-*-irix6*)
9863d716 3639 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3640 ;;
a0da8069 3641 mips*-*-bsd*)
b2f14e4a 3642 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3643 ;;
a0da8069 3644 mips*-*-linux*)
a0da8069
NN
3645 ;;
3646 mips*-*-*)
9863d716 3647 noconfigdirs="$noconfigdirs gprof"
a0da8069 3648 ;;
dbf85af7 3649 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3650 case "${target}" in
3651 sh*-*-elf)
9863d716 3652 ;;
e8a5fa9c 3653 *)
9863d716 3654 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3655 esac
a0da8069 3656 ;;
a0da8069 3657 sparc-*-sunos4*)
c7e4b184 3658 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3659 use_gnu_ld=no
3660 fi
3661 ;;
619a3713 3662 tic6x-*-*)
40ae9136 3663 noconfigdirs="$noconfigdirs sim"
619a3713 3664 ;;
eb4b2452
NC
3665 tilepro-*-* | tilegx-*-*)
3666 noconfigdirs="$noconfigdirs sim"
3667 ;;
a0da8069 3668 v810-*-*)
b2f14e4a 3669 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3670 ;;
3671 vax-*-*)
9863d716 3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3673 ;;
a0da8069 3674esac
252b5132 3675
a0da8069
NN
3676# If we aren't building newlib, then don't build libgloss, since libgloss
3677# depends upon some newlib header files.
3678case "${noconfigdirs}" in
3679 *target-libgloss*) ;;
3680 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3681esac
3682
a0da8069 3683# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3684host_makefile_frag=/dev/null
3685if test -d ${srcdir}/config ; then
3686case "${host}" in
ec11bdc6 3687 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3688 host_makefile_frag="config/mh-djgpp"
3689 ;;
3690 *-cygwin*)
e33b51a6 3691
81ecdfbb
RW
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3693$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3694echo a >cygwin-cat-check
1f53ca9a 3695if test `cat cygwin-cat-check` = a ; then
8ade07e9 3696 rm cygwin-cat-check
81ecdfbb
RW
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3698$as_echo "yes" >&6; }
e33b51a6 3699else
8ade07e9 3700 rm cygwin-cat-check
81ecdfbb
RW
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702$as_echo "no" >&6; }
3703 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3704 Please either mount the build directory in binary mode or run the following
3705 commands before running any configure script:
3706set -o igncr
3707export SHELLOPTS
81ecdfbb 3708 " "$LINENO" 5
e33b51a6 3709fi
e33b51a6 3710
a0da8069
NN
3711 host_makefile_frag="config/mh-cygwin"
3712 ;;
8a1599ab 3713 *-mingw*)
84e7906e 3714 host_makefile_frag="config/mh-mingw"
2d1e8239 3715 ;;
da888c87 3716 hppa*-hp-hpux10*)
da888c87 3717 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3718 ;;
3516a403 3719 hppa*-hp-hpux*)
da888c87
PB
3720 host_makefile_frag="config/mh-pa"
3721 ;;
3722 hppa*-*)
3723 host_makefile_frag="config/mh-pa"
3724 ;;
e552509b
ILT
3725 *-*-darwin*)
3726 host_makefile_frag="config/mh-darwin"
0df3d27f 3727 ;;
f6d183c0
PB
3728 powerpc-*-aix*)
3729 host_makefile_frag="config/mh-ppc-aix"
3730 ;;
3731 rs6000-*-aix*)
3732 host_makefile_frag="config/mh-ppc-aix"
3733 ;;
a0da8069
NN
3734esac
3735fi
3736
9e07f89d 3737if test "${build}" != "${host}" ; then
1576798e
PB
3738 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3739 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3740 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3741 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3742 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3743 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3744 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3745 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3746 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3747 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3748 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3749 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3750 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3751else
3752 AR_FOR_BUILD="\$(AR)"
3753 AS_FOR_BUILD="\$(AS)"
512b7dfb 3754 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3755 CXX_FOR_BUILD="\$(CXX)"
3756 GCJ_FOR_BUILD="\$(GCJ)"
3757 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3758 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3759 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3760 LD_FOR_BUILD="\$(LD)"
3761 NM_FOR_BUILD="\$(NM)"
3762 RANLIB_FOR_BUILD="\$(RANLIB)"
3763 WINDRES_FOR_BUILD="\$(WINDRES)"
3764 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3765fi
3766
3767ac_ext=c
c6b750e1
DJ
3768ac_cpp='$CPP $CPPFLAGS'
3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772if test -n "$ac_tool_prefix"; then
3773 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3774set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3776$as_echo_n "checking for $ac_word... " >&6; }
3777if test "${ac_cv_prog_CC+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3779else
3780 if test -n "$CC"; then
3781 ac_cv_prog_CC="$CC" # Let the user override the test.
3782else
3783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3790 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3792 break 2
3793 fi
3794done
81ecdfbb
RW
3795 done
3796IFS=$as_save_IFS
c6b750e1
DJ
3797
3798fi
3799fi
3800CC=$ac_cv_prog_CC
3801if test -n "$CC"; then
81ecdfbb
RW
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3803$as_echo "$CC" >&6; }
c6b750e1 3804else
81ecdfbb
RW
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806$as_echo "no" >&6; }
c6b750e1
DJ
3807fi
3808
81ecdfbb 3809
c6b750e1
DJ
3810fi
3811if test -z "$ac_cv_prog_CC"; then
3812 ac_ct_CC=$CC
6a9cf61e 3813 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3814set dummy gcc; ac_word=$2
81ecdfbb
RW
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816$as_echo_n "checking for $ac_word... " >&6; }
3817if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3819else
3820 if test -n "$ac_ct_CC"; then
3821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3822else
3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3830 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3832 break 2
3833 fi
3834done
81ecdfbb
RW
3835 done
3836IFS=$as_save_IFS
c6b750e1
DJ
3837
3838fi
3839fi
3840ac_ct_CC=$ac_cv_prog_ac_ct_CC
3841if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3843$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3844else
81ecdfbb
RW
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846$as_echo "no" >&6; }
c6b750e1
DJ
3847fi
3848
81ecdfbb
RW
3849 if test "x$ac_ct_CC" = x; then
3850 CC=""
3851 else
3852 case $cross_compiling:$ac_tool_warned in
3853yes:)
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3856ac_tool_warned=yes ;;
3857esac
3858 CC=$ac_ct_CC
3859 fi
c6b750e1
DJ
3860else
3861 CC="$ac_cv_prog_CC"
3862fi
3863
3864if test -z "$CC"; then
81ecdfbb
RW
3865 if test -n "$ac_tool_prefix"; then
3866 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3867set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869$as_echo_n "checking for $ac_word... " >&6; }
3870if test "${ac_cv_prog_CC+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
9e07f89d
NN
3872else
3873 if test -n "$CC"; then
3874 ac_cv_prog_CC="$CC" # Let the user override the test.
3875else
c6b750e1
DJ
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3883 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3885 break 2
3886 fi
3887done
81ecdfbb
RW
3888 done
3889IFS=$as_save_IFS
c6b750e1 3890
9e07f89d
NN
3891fi
3892fi
c6b750e1 3893CC=$ac_cv_prog_CC
9e07f89d 3894if test -n "$CC"; then
81ecdfbb
RW
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3896$as_echo "$CC" >&6; }
c6b750e1 3897else
81ecdfbb
RW
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899$as_echo "no" >&6; }
c6b750e1
DJ
3900fi
3901
c6b750e1 3902
81ecdfbb 3903 fi
c6b750e1 3904fi
9e07f89d
NN
3905if test -z "$CC"; then
3906 # Extract the first word of "cc", so it can be a program name with args.
3907set dummy cc; ac_word=$2
81ecdfbb
RW
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909$as_echo_n "checking for $ac_word... " >&6; }
3910if test "${ac_cv_prog_CC+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
9e07f89d
NN
3912else
3913 if test -n "$CC"; then
3914 ac_cv_prog_CC="$CC" # Let the user override the test.
3915else
9e07f89d 3916 ac_prog_rejected=no
c6b750e1
DJ
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3925 ac_prog_rejected=yes
3926 continue
3927 fi
3928 ac_cv_prog_CC="cc"
81ecdfbb 3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3930 break 2
3931 fi
3932done
81ecdfbb
RW
3933 done
3934IFS=$as_save_IFS
c6b750e1 3935
9e07f89d
NN
3936if test $ac_prog_rejected = yes; then
3937 # We found a bogon in the path, so make sure we never use it.
3938 set dummy $ac_cv_prog_CC
3939 shift
c6b750e1 3940 if test $# != 0; then
9e07f89d
NN
3941 # We chose a different compiler from the bogus one.
3942 # However, it has the same basename, so the bogon will be chosen
3943 # first if we set CC to just the basename; use the full file name.
3944 shift
c6b750e1 3945 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3946 fi
3947fi
3948fi
3949fi
c6b750e1 3950CC=$ac_cv_prog_CC
9e07f89d 3951if test -n "$CC"; then
81ecdfbb
RW
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3953$as_echo "$CC" >&6; }
9e07f89d 3954else
81ecdfbb
RW
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956$as_echo "no" >&6; }
9e07f89d
NN
3957fi
3958
81ecdfbb 3959
c6b750e1
DJ
3960fi
3961if test -z "$CC"; then
3962 if test -n "$ac_tool_prefix"; then
81ecdfbb 3963 for ac_prog in cl.exe
c6b750e1
DJ
3964 do
3965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968$as_echo_n "checking for $ac_word... " >&6; }
3969if test "${ac_cv_prog_CC+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
9e07f89d
NN
3971else
3972 if test -n "$CC"; then
3973 ac_cv_prog_CC="$CC" # Let the user override the test.
3974else
c6b750e1
DJ
3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH
3977do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3984 break 2
376a0e54 3985 fi
c6b750e1 3986done
81ecdfbb
RW
3987 done
3988IFS=$as_save_IFS
cac3d6c4 3989
c6b750e1
DJ
3990fi
3991fi
3992CC=$ac_cv_prog_CC
3993if test -n "$CC"; then
81ecdfbb
RW
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3995$as_echo "$CC" >&6; }
cac3d6c4 3996else
81ecdfbb
RW
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998$as_echo "no" >&6; }
9e07f89d 3999fi
cac3d6c4 4000
81ecdfbb 4001
c6b750e1
DJ
4002 test -n "$CC" && break
4003 done
cac3d6c4 4004fi
c6b750e1
DJ
4005if test -z "$CC"; then
4006 ac_ct_CC=$CC
81ecdfbb 4007 for ac_prog in cl.exe
c6b750e1
DJ
4008do
4009 # Extract the first word of "$ac_prog", so it can be a program name with args.
4010set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012$as_echo_n "checking for $ac_word... " >&6; }
4013if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
cac3d6c4 4015else
c6b750e1
DJ
4016 if test -n "$ac_ct_CC"; then
4017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4018else
c6b750e1
DJ
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4026 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4028 break 2
4029 fi
4030done
81ecdfbb
RW
4031 done
4032IFS=$as_save_IFS
c6b750e1 4033
cac3d6c4
CM
4034fi
4035fi
c6b750e1
DJ
4036ac_ct_CC=$ac_cv_prog_ac_ct_CC
4037if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4039$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4040else
81ecdfbb
RW
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042$as_echo "no" >&6; }
cac3d6c4 4043fi
376a0e54 4044
81ecdfbb 4045
c6b750e1
DJ
4046 test -n "$ac_ct_CC" && break
4047done
4048
81ecdfbb
RW
4049 if test "x$ac_ct_CC" = x; then
4050 CC=""
4051 else
4052 case $cross_compiling:$ac_tool_warned in
4053yes:)
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4056ac_tool_warned=yes ;;
4057esac
4058 CC=$ac_ct_CC
4059 fi
c6b750e1
DJ
4060fi
4061
4062fi
4063
4064
81ecdfbb
RW
4065test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067as_fn_error "no acceptable C compiler found in \$PATH
4068See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4069
4070# Provide some information about the compiler.
81ecdfbb
RW
4071$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4072set X $ac_compile
4073ac_compiler=$2
4074for ac_option in --version -v -V -qversion; do
4075 { { ac_try="$ac_compiler $ac_option >&5"
4076case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081$as_echo "$ac_try_echo"; } >&5
4082 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4083 ac_status=$?
81ecdfbb
RW
4084 if test -s conftest.err; then
4085 sed '10a\
4086... rest of stderr output deleted ...
4087 10q' conftest.err >conftest.er1
4088 cat conftest.er1 >&5
4089 rm -f conftest.er1 conftest.err
4090 fi
4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092 test $ac_status = 0; }
4093done
c6b750e1 4094
81ecdfbb 4095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4096/* end confdefs.h. */
4097
4098int
4099main ()
4100{
4101
4102 ;
4103 return 0;
4104}
4105_ACEOF
4106ac_clean_files_save=$ac_clean_files
81ecdfbb 4107ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4108# Try to create an executable without -o first, disregard a.out.
4109# It will help us diagnose broken compilers, and finding out an intuition
4110# of exeext.
81ecdfbb
RW
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4112$as_echo_n "checking for C compiler default output file name... " >&6; }
4113ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4114
4115# The possible output files:
4116ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4117
4118ac_rmfiles=
4119for ac_file in $ac_files
4120do
4121 case $ac_file in
4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4123 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4124 esac
4125done
4126rm -f $ac_rmfiles
4127
4128if { { ac_try="$ac_link_default"
4129case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132esac
4133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4134$as_echo "$ac_try_echo"; } >&5
4135 (eval "$ac_link_default") 2>&5
c6b750e1 4136 ac_status=$?
81ecdfbb
RW
4137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4138 test $ac_status = 0; }; then :
4139 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4140# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4141# in a Makefile. We should not override ac_cv_exeext if it was cached,
4142# so that the user can short-circuit this test for compilers unknown to
4143# Autoconf.
4144for ac_file in $ac_files ''
c6b750e1
DJ
4145do
4146 test -f "$ac_file" || continue
4147 case $ac_file in
81ecdfbb 4148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4149 ;;
4150 [ab].out )
4151 # We found the default executable, but exeext='' is most
4152 # certainly right.
4153 break;;
4154 *.* )
81ecdfbb
RW
4155 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4156 then :; else
4157 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4158 fi
4159 # We set ac_cv_exeext here because the later test for it is not
4160 # safe: cross compilers may not add the suffix if given an `-o'
4161 # argument, so we may need to know it at that point already.
4162 # Even if this section looks crufty: it has the advantage of
4163 # actually working.
c6b750e1
DJ
4164 break;;
4165 * )
4166 break;;
4167 esac
4168done
81ecdfbb
RW
4169test "$ac_cv_exeext" = no && ac_cv_exeext=
4170
c6b750e1 4171else
81ecdfbb
RW
4172 ac_file=''
4173fi
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4175$as_echo "$ac_file" >&6; }
4176if test -z "$ac_file"; then :
4177 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4178sed 's/^/| /' conftest.$ac_ext >&5
4179
81ecdfbb
RW
4180{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182{ as_fn_set_status 77
4183as_fn_error "C compiler cannot create executables
4184See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4185fi
c6b750e1 4186ac_exeext=$ac_cv_exeext
c6b750e1 4187
81ecdfbb 4188# Check that the compiler produces executables we can run. If not, either
c6b750e1 4189# the compiler is broken, or we cross compile.
81ecdfbb
RW
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4191$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4192# If not cross compiling, check that we can run a simple program.
4193if test "$cross_compiling" != yes; then
4194 if { ac_try='./$ac_file'
81ecdfbb
RW
4195 { { case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198esac
4199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4200$as_echo "$ac_try_echo"; } >&5
4201 (eval "$ac_try") 2>&5
c6b750e1 4202 ac_status=$?
81ecdfbb
RW
4203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4204 test $ac_status = 0; }; }; then
c6b750e1
DJ
4205 cross_compiling=no
4206 else
4207 if test "$cross_compiling" = maybe; then
4208 cross_compiling=yes
4209 else
81ecdfbb
RW
4210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4212as_fn_error "cannot run C compiled programs.
c6b750e1 4213If you meant to cross compile, use \`--host'.
81ecdfbb 4214See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4215 fi
4216 fi
4217fi
81ecdfbb
RW
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4219$as_echo "yes" >&6; }
c6b750e1 4220
81ecdfbb 4221rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4222ac_clean_files=$ac_clean_files_save
81ecdfbb 4223# Check that the compiler produces executables we can run. If not, either
c6b750e1 4224# the compiler is broken, or we cross compile.
81ecdfbb
RW
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4226$as_echo_n "checking whether we are cross compiling... " >&6; }
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4228$as_echo "$cross_compiling" >&6; }
4229
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4231$as_echo_n "checking for suffix of executables... " >&6; }
4232if { { ac_try="$ac_link"
4233case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236esac
4237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238$as_echo "$ac_try_echo"; } >&5
4239 (eval "$ac_link") 2>&5
c6b750e1 4240 ac_status=$?
81ecdfbb
RW
4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }; then :
c6b750e1
DJ
4243 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4244# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4245# work properly (i.e., refer to `conftest.exe'), while it won't with
4246# `rm'.
4247for ac_file in conftest.exe conftest conftest.*; do
4248 test -f "$ac_file" || continue
4249 case $ac_file in
81ecdfbb 4250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4251 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4252 break;;
4253 * ) break;;
4254 esac
4255done
4256else
81ecdfbb
RW
4257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4259as_fn_error "cannot compute suffix of executables: cannot compile and link
4260See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4261fi
c6b750e1 4262rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4264$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4265
4266rm -f conftest.$ac_ext
4267EXEEXT=$ac_cv_exeext
4268ac_exeext=$EXEEXT
81ecdfbb
RW
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4270$as_echo_n "checking for suffix of object files... " >&6; }
4271if test "${ac_cv_objext+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
c6b750e1 4273else
81ecdfbb 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4275/* end confdefs.h. */
4276
4277int
4278main ()
4279{
4280
4281 ;
4282 return 0;
4283}
4284_ACEOF
4285rm -f conftest.o conftest.obj
81ecdfbb
RW
4286if { { ac_try="$ac_compile"
4287case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290esac
4291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292$as_echo "$ac_try_echo"; } >&5
4293 (eval "$ac_compile") 2>&5
c6b750e1 4294 ac_status=$?
81ecdfbb
RW
4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; }; then :
4297 for ac_file in conftest.o conftest.obj conftest.*; do
4298 test -f "$ac_file" || continue;
c6b750e1 4299 case $ac_file in
81ecdfbb 4300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4302 break;;
4303 esac
4304done
cac3d6c4 4305else
81ecdfbb 4306 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
81ecdfbb
RW
4309{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4311as_fn_error "cannot compute suffix of object files: cannot compile
4312See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4313fi
c6b750e1
DJ
4314rm -f conftest.$ac_cv_objext conftest.$ac_ext
4315fi
81ecdfbb
RW
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4317$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4318OBJEXT=$ac_cv_objext
4319ac_objext=$OBJEXT
81ecdfbb
RW
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4321$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4322if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
c6b750e1 4324else
81ecdfbb 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4326/* end confdefs.h. */
4327
4328int
4329main ()
4330{
4331#ifndef __GNUC__
4332 choke me
4333#endif
4334
4335 ;
4336 return 0;
4337}
4338_ACEOF
81ecdfbb 4339if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4340 ac_compiler_gnu=yes
4341else
81ecdfbb 4342 ac_compiler_gnu=no
c6b750e1 4343fi
81ecdfbb 4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4345ac_cv_c_compiler_gnu=$ac_compiler_gnu
4346
4347fi
81ecdfbb
RW
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4349$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4350if test $ac_compiler_gnu = yes; then
4351 GCC=yes
4352else
4353 GCC=
4354fi
c6b750e1
DJ
4355ac_test_CFLAGS=${CFLAGS+set}
4356ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4358$as_echo_n "checking whether $CC accepts -g... " >&6; }
4359if test "${ac_cv_prog_cc_g+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4361else
4362 ac_save_c_werror_flag=$ac_c_werror_flag
4363 ac_c_werror_flag=yes
4364 ac_cv_prog_cc_g=no
4365 CFLAGS="-g"
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4367/* end confdefs.h. */
4368
4369int
4370main ()
4371{
4372
4373 ;
4374 return 0;
4375}
4376_ACEOF
81ecdfbb 4377if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4378 ac_cv_prog_cc_g=yes
4379else
81ecdfbb
RW
4380 CFLAGS=""
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382/* end confdefs.h. */
4383
4384int
4385main ()
4386{
4387
4388 ;
4389 return 0;
4390}
4391_ACEOF
4392if ac_fn_c_try_compile "$LINENO"; then :
4393
4394else
4395 ac_c_werror_flag=$ac_save_c_werror_flag
4396 CFLAGS="-g"
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h. */
cac3d6c4 4399
81ecdfbb
RW
4400int
4401main ()
4402{
4403
4404 ;
4405 return 0;
4406}
4407_ACEOF
4408if ac_fn_c_try_compile "$LINENO"; then :
4409 ac_cv_prog_cc_g=yes
4410fi
4411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4412fi
81ecdfbb 4413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4414fi
81ecdfbb
RW
4415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 ac_c_werror_flag=$ac_save_c_werror_flag
4417fi
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4419$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4420if test "$ac_test_CFLAGS" = set; then
c6b750e1 4421 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4422elif test $ac_cv_prog_cc_g = yes; then
4423 if test "$GCC" = yes; then
4424 CFLAGS="-g -O2"
4425 else
4426 CFLAGS="-g"
4427 fi
4428else
4429 if test "$GCC" = yes; then
4430 CFLAGS="-O2"
4431 else
4432 CFLAGS=
4433 fi
4434fi
81ecdfbb
RW
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4436$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4437if test "${ac_cv_prog_cc_c89+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
c6b750e1 4439else
81ecdfbb 4440 ac_cv_prog_cc_c89=no
c6b750e1 4441ac_save_CC=$CC
81ecdfbb 4442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4443/* end confdefs.h. */
4444#include <stdarg.h>
4445#include <stdio.h>
4446#include <sys/types.h>
4447#include <sys/stat.h>
4448/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4449struct buf { int x; };
4450FILE * (*rcsopen) (struct buf *, struct stat *, int);
4451static char *e (p, i)
4452 char **p;
4453 int i;
4454{
4455 return p[i];
4456}
4457static char *f (char * (*g) (char **, int), char **p, ...)
4458{
4459 char *s;
4460 va_list v;
4461 va_start (v,p);
4462 s = g (p, va_arg (v,int));
4463 va_end (v);
4464 return s;
4465}
4466
4467/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4468 function prototypes and stuff, but not '\xHH' hex character constants.
4469 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4470 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4471 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4472 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4473 that's true only with -std. */
c6b750e1
DJ
4474int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4475
81ecdfbb
RW
4476/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4477 inside strings and character constants. */
4478#define FOO(x) 'x'
4479int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4480
c6b750e1
DJ
4481int test (int i, double x);
4482struct s1 {int (*f) (int a);};
4483struct s2 {int (*f) (double a);};
4484int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4485int argc;
4486char **argv;
4487int
4488main ()
4489{
4490return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4491 ;
4492 return 0;
4493}
4494_ACEOF
81ecdfbb
RW
4495for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4496 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4497do
4498 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4499 if ac_fn_c_try_compile "$LINENO"; then :
4500 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4501fi
81ecdfbb
RW
4502rm -f core conftest.err conftest.$ac_objext
4503 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4504done
81ecdfbb 4505rm -f conftest.$ac_ext
c6b750e1
DJ
4506CC=$ac_save_CC
4507
4508fi
81ecdfbb
RW
4509# AC_CACHE_VAL
4510case "x$ac_cv_prog_cc_c89" in
4511 x)
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4513$as_echo "none needed" >&6; } ;;
4514 xno)
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4516$as_echo "unsupported" >&6; } ;;
c6b750e1 4517 *)
81ecdfbb
RW
4518 CC="$CC $ac_cv_prog_cc_c89"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4520$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4521esac
81ecdfbb 4522if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4523
c6b750e1
DJ
4524fi
4525
c6b750e1
DJ
4526ac_ext=c
4527ac_cpp='$CPP $CPPFLAGS'
4528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4531
81ecdfbb 4532ac_ext=cpp
18f6b6ee
PB
4533ac_cpp='$CXXCPP $CPPFLAGS'
4534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4537if test -z "$CXX"; then
4538 if test -n "$CCC"; then
4539 CXX=$CCC
4540 else
4541 if test -n "$ac_tool_prefix"; then
4542 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4543 do
4544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4545set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547$as_echo_n "checking for $ac_word... " >&6; }
4548if test "${ac_cv_prog_CXX+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4550else
4551 if test -n "$CXX"; then
4552 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4561 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4563 break 2
4564 fi
4565done
81ecdfbb
RW
4566 done
4567IFS=$as_save_IFS
512b7dfb 4568
18f6b6ee
PB
4569fi
4570fi
4571CXX=$ac_cv_prog_CXX
4572if test -n "$CXX"; then
81ecdfbb
RW
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4574$as_echo "$CXX" >&6; }
18f6b6ee 4575else
81ecdfbb
RW
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
18f6b6ee
PB
4578fi
4579
81ecdfbb 4580
18f6b6ee
PB
4581 test -n "$CXX" && break
4582 done
4583fi
4584if test -z "$CXX"; then
4585 ac_ct_CXX=$CXX
81ecdfbb 4586 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4587do
4588 # Extract the first word of "$ac_prog", so it can be a program name with args.
4589set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591$as_echo_n "checking for $ac_word... " >&6; }
4592if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4593 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4594else
4595 if test -n "$ac_ct_CXX"; then
4596 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4605 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4607 break 2
512b7dfb 4608 fi
18f6b6ee 4609done
81ecdfbb
RW
4610 done
4611IFS=$as_save_IFS
512b7dfb 4612
18f6b6ee
PB
4613fi
4614fi
4615ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4616if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4618$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4619else
81ecdfbb
RW
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621$as_echo "no" >&6; }
18f6b6ee
PB
4622fi
4623
81ecdfbb 4624
18f6b6ee
PB
4625 test -n "$ac_ct_CXX" && break
4626done
18f6b6ee 4627
81ecdfbb
RW
4628 if test "x$ac_ct_CXX" = x; then
4629 CXX="g++"
4630 else
4631 case $cross_compiling:$ac_tool_warned in
4632yes:)
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4635ac_tool_warned=yes ;;
4636esac
4637 CXX=$ac_ct_CXX
4638 fi
18f6b6ee
PB
4639fi
4640
81ecdfbb
RW
4641 fi
4642fi
18f6b6ee 4643# Provide some information about the compiler.
81ecdfbb
RW
4644$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4645set X $ac_compile
4646ac_compiler=$2
4647for ac_option in --version -v -V -qversion; do
4648 { { ac_try="$ac_compiler $ac_option >&5"
4649case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
4653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654$as_echo "$ac_try_echo"; } >&5
4655 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4656 ac_status=$?
81ecdfbb
RW
4657 if test -s conftest.err; then
4658 sed '10a\
4659... rest of stderr output deleted ...
4660 10q' conftest.err >conftest.er1
4661 cat conftest.er1 >&5
4662 rm -f conftest.er1 conftest.err
4663 fi
4664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4665 test $ac_status = 0; }
4666done
18f6b6ee 4667
81ecdfbb
RW
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4669$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4670if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
18f6b6ee 4672else
81ecdfbb 4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4674/* end confdefs.h. */
4675
4676int
4677main ()
4678{
4679#ifndef __GNUC__
4680 choke me
4681#endif
4682
4683 ;
4684 return 0;
4685}
4686_ACEOF
81ecdfbb 4687if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4688 ac_compiler_gnu=yes
4689else
81ecdfbb 4690 ac_compiler_gnu=no
18f6b6ee 4691fi
81ecdfbb 4692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4693ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4694
4695fi
81ecdfbb
RW
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4697$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4698if test $ac_compiler_gnu = yes; then
4699 GXX=yes
4700else
4701 GXX=
4702fi
18f6b6ee
PB
4703ac_test_CXXFLAGS=${CXXFLAGS+set}
4704ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4706$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4707if test "${ac_cv_prog_cxx_g+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4709else
4710 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4711 ac_cxx_werror_flag=yes
4712 ac_cv_prog_cxx_g=no
4713 CXXFLAGS="-g"
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4715/* end confdefs.h. */
4716
4717int
4718main ()
4719{
4720
4721 ;
4722 return 0;
4723}
4724_ACEOF
81ecdfbb 4725if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4726 ac_cv_prog_cxx_g=yes
4727else
81ecdfbb
RW
4728 CXXFLAGS=""
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4730/* end confdefs.h. */
81ecdfbb 4731
18f6b6ee
PB
4732int
4733main ()
4734{
81ecdfbb 4735
18f6b6ee
PB
4736 ;
4737 return 0;
4738}
4739_ACEOF
81ecdfbb 4740if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4741
81ecdfbb
RW
4742else
4743 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4744 CXXFLAGS="-g"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4746/* end confdefs.h. */
81ecdfbb 4747
18f6b6ee
PB
4748int
4749main ()
4750{
81ecdfbb 4751
18f6b6ee
PB
4752 ;
4753 return 0;
4754}
4755_ACEOF
81ecdfbb
RW
4756if ac_fn_cxx_try_compile "$LINENO"; then :
4757 ac_cv_prog_cxx_g=yes
18f6b6ee 4758fi
81ecdfbb
RW
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760fi
4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762fi
4763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4765fi
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4767$as_echo "$ac_cv_prog_cxx_g" >&6; }
4768if test "$ac_test_CXXFLAGS" = set; then
4769 CXXFLAGS=$ac_save_CXXFLAGS
4770elif test $ac_cv_prog_cxx_g = yes; then
4771 if test "$GXX" = yes; then
4772 CXXFLAGS="-g -O2"
4773 else
4774 CXXFLAGS="-g"
4775 fi
4776else
4777 if test "$GXX" = yes; then
4778 CXXFLAGS="-O2"
4779 else
4780 CXXFLAGS=
4781 fi
18f6b6ee 4782fi
18f6b6ee
PB
4783ac_ext=c
4784ac_cpp='$CPP $CPPFLAGS'
4785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788
4789
4790# We must set the default linker to the linker used by gcc for the correct
4791# operation of libtool. If LD is not defined and we are using gcc, try to
4792# set the LD default to the ld used by gcc.
4793if test -z "$LD"; then
4794 if test "$GCC" = yes; then
4795 case $build in
4796 *-*-mingw*)
4797 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4798 *)
4799 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4800 esac
4801 case $gcc_prog_ld in
4802 # Accept absolute paths.
4803 [\\/]* | [A-Za-z]:[\\/]*)
4804 LD="$gcc_prog_ld" ;;
4805 esac
4806 fi
512b7dfb
PB
4807fi
4808
4809
4810
4811
c6b750e1 4812if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4813 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4814set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816$as_echo_n "checking for $ac_word... " >&6; }
4817if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
9e07f89d 4819else
512b7dfb
PB
4820 if test -n "$GNATBIND"; then
4821 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4822else
c6b750e1
DJ
4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4830 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4832 break 2
4833 fi
4834done
81ecdfbb
RW
4835 done
4836IFS=$as_save_IFS
c6b750e1 4837
9e07f89d
NN
4838fi
4839fi
512b7dfb
PB
4840GNATBIND=$ac_cv_prog_GNATBIND
4841if test -n "$GNATBIND"; then
81ecdfbb
RW
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4843$as_echo "$GNATBIND" >&6; }
9e07f89d 4844else
81ecdfbb
RW
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846$as_echo "no" >&6; }
9e07f89d
NN
4847fi
4848
81ecdfbb 4849
c6b750e1 4850fi
512b7dfb
PB
4851if test -z "$ac_cv_prog_GNATBIND"; then
4852 ac_ct_GNATBIND=$GNATBIND
4853 # Extract the first word of "gnatbind", so it can be a program name with args.
4854set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856$as_echo_n "checking for $ac_word... " >&6; }
4857if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
9e07f89d 4859else
512b7dfb
PB
4860 if test -n "$ac_ct_GNATBIND"; then
4861 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4862else
c6b750e1
DJ
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4870 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4872 break 2
4873 fi
4874done
81ecdfbb
RW
4875 done
4876IFS=$as_save_IFS
c6b750e1 4877
9e07f89d
NN
4878fi
4879fi
512b7dfb
PB
4880ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4881if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4883$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4884else
81ecdfbb
RW
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886$as_echo "no" >&6; }
9e07f89d
NN
4887fi
4888
81ecdfbb
RW
4889 if test "x$ac_ct_GNATBIND" = x; then
4890 GNATBIND="no"
4891 else
4892 case $cross_compiling:$ac_tool_warned in
4893yes:)
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896ac_tool_warned=yes ;;
4897esac
4898 GNATBIND=$ac_ct_GNATBIND
4899 fi
24ff9987 4900else
512b7dfb 4901 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4902fi
4903
7df2cd5d 4904if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4905 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4906set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908$as_echo_n "checking for $ac_word... " >&6; }
4909if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
7df2cd5d 4911else
512b7dfb
PB
4912 if test -n "$GNATMAKE"; then
4913 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4914else
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4922 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4924 break 2
4925 fi
4926done
81ecdfbb
RW
4927 done
4928IFS=$as_save_IFS
7df2cd5d
PB
4929
4930fi
4931fi
512b7dfb
PB
4932GNATMAKE=$ac_cv_prog_GNATMAKE
4933if test -n "$GNATMAKE"; then
81ecdfbb
RW
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4935$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4936else
81ecdfbb
RW
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938$as_echo "no" >&6; }
7df2cd5d
PB
4939fi
4940
81ecdfbb 4941
7df2cd5d 4942fi
512b7dfb
PB
4943if test -z "$ac_cv_prog_GNATMAKE"; then
4944 ac_ct_GNATMAKE=$GNATMAKE
4945 # Extract the first word of "gnatmake", so it can be a program name with args.
4946set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948$as_echo_n "checking for $ac_word... " >&6; }
4949if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
7df2cd5d 4951else
512b7dfb
PB
4952 if test -n "$ac_ct_GNATMAKE"; then
4953 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4954else
4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH
4957do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4962 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4964 break 2
4965 fi
4966done
81ecdfbb
RW
4967 done
4968IFS=$as_save_IFS
7df2cd5d 4969
7df2cd5d
PB
4970fi
4971fi
512b7dfb
PB
4972ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4973if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4975$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4976else
81ecdfbb
RW
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978$as_echo "no" >&6; }
7df2cd5d
PB
4979fi
4980
81ecdfbb
RW
4981 if test "x$ac_ct_GNATMAKE" = x; then
4982 GNATMAKE="no"
4983 else
4984 case $cross_compiling:$ac_tool_warned in
4985yes:)
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4988ac_tool_warned=yes ;;
4989esac
4990 GNATMAKE=$ac_ct_GNATMAKE
4991 fi
7df2cd5d 4992else
512b7dfb 4993 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4994fi
4995
81ecdfbb
RW
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4997$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4998if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
9e07f89d
NN
5000else
5001 cat >conftest.adb <<EOF
5002procedure conftest is begin null; end conftest;
5003EOF
5004acx_cv_cc_gcc_supports_ada=no
5005# There is a bug in old released versions of GCC which causes the
5006# driver to exit successfully when the appropriate language module
5007# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5008# Therefore we must check for the error message as well as an
5009# unsuccessful exit.
b8908782
DD
5010# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5011# given a .adb file, but produce no object file. So we must check
5012# if an object file was really produced to guard against this.
9e07f89d 5013errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5014if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5015 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5016fi
5017rm -f conftest.*
5018fi
81ecdfbb
RW
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5020$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5021
64b986c0 5022if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5023 have_gnat=yes
5024else
5025 have_gnat=no
5026fi
5027
81ecdfbb
RW
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5029$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5030if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5031 $as_echo_n "(cached) " >&6
b8908782
DD
5032else
5033 echo abfoo >t1
5034 echo cdfoo >t2
5035 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5036 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5037 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5038 :
5039 else
5040 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5041 fi
5042 fi
b8908782
DD
5043 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5044 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5045 :
b8908782
DD
5046 else
5047 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5048 fi
5049 fi
5050 rm t1 t2
5051
5052fi
81ecdfbb
RW
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5054$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5055do_compare="$gcc_cv_prog_cmp_skip"
5056
5057
9e07f89d 5058
ffdd6afc
ILT
5059# Check whether --enable-bootstrap was given.
5060if test "${enable_bootstrap+set}" = set; then :
5061 enableval=$enable_bootstrap;
5062else
5063 enable_bootstrap=default
5064fi
5065
5066
5067# Issue errors and warnings for invalid/strange bootstrap combinations.
5068if test -r $srcdir/gcc/configure; then
5069 have_compiler=yes
5070else
5071 have_compiler=no
5072fi
5073
5074case "$have_compiler:$host:$target:$enable_bootstrap" in
5075 *:*:*:no) ;;
5076
5077 # Default behavior. Enable bootstrap if we have a compiler
5078 # and we are in a native configuration.
5079 yes:$build:$build:default)
5080 enable_bootstrap=yes ;;
5081
5082 *:*:*:default)
5083 enable_bootstrap=no ;;
5084
5085 # We have a compiler and we are in a native configuration, bootstrap is ok
5086 yes:$build:$build:yes)
5087 ;;
5088
5089 # Other configurations, but we have a compiler. Assume the user knows
5090 # what he's doing.
5091 yes:*:*:yes)
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5093$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5094 ;;
5095
5096 # No compiler: if they passed --enable-bootstrap explicitly, fail
5097 no:*:*:yes)
5098 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5099
5100 # Fail if wrong command line
5101 *)
5102 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5103 ;;
5104esac
5105
d5f2ee2e
KG
5106# Used for setting $lt_cv_objdir
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5108$as_echo_n "checking for objdir... " >&6; }
5109if test "${lt_cv_objdir+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111else
5112 rm -f .libs 2>/dev/null
5113mkdir .libs 2>/dev/null
5114if test -d .libs; then
5115 lt_cv_objdir=.libs
5116else
5117 # MS-DOS does not allow filenames that begin with a dot.
5118 lt_cv_objdir=_libs
5119fi
5120rmdir .libs 2>/dev/null
5121fi
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5123$as_echo "$lt_cv_objdir" >&6; }
5124objdir=$lt_cv_objdir
5125
5126
5127
5128
5129
5130cat >>confdefs.h <<_ACEOF
5131#define LT_OBJDIR "$lt_cv_objdir/"
5132_ACEOF
5133
5134
5135
e8a5fa9c 5136# Check for GMP, MPFR and MPC
d9b76ff9 5137gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5138gmpinc=
4b900473 5139have_gmp=no
e8a5fa9c
RW
5140
5141# Specify a location for mpc
5142# check for this first so it ends up on the link line before mpfr.
5143
81ecdfbb
RW
5144# Check whether --with-mpc was given.
5145if test "${with_mpc+set}" = set; then :
5146 withval=$with_mpc;
5147fi
e8a5fa9c 5148
e8a5fa9c 5149
e552509b 5150# Check whether --with-mpc-include was given.
81ecdfbb
RW
5151if test "${with_mpc_include+set}" = set; then :
5152 withval=$with_mpc_include;
5153fi
e8a5fa9c 5154
e8a5fa9c 5155
e552509b 5156# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5157if test "${with_mpc_lib+set}" = set; then :
5158 withval=$with_mpc_lib;
5159fi
e8a5fa9c 5160
e8a5fa9c
RW
5161
5162if test "x$with_mpc" != x; then
d9b76ff9
KG
5163 gmplibs="-L$with_mpc/lib $gmplibs"
5164 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5165fi
5166if test "x$with_mpc_include" != x; then
d9b76ff9 5167 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5168fi
5169if test "x$with_mpc_lib" != x; then
d9b76ff9 5170 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5171fi
5172if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5173 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5174 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5175 # Do not test the mpc version. Assume that it is sufficient, since
5176 # it is in the source tree, and the library has not been built yet
5177 # but it would be included on the link line in the version check below
5178 # hence making the test fail.
d9b76ff9 5179 have_gmp=yes
e8a5fa9c 5180fi
4b900473 5181
11b04d1f
DD
5182# Specify a location for mpfr
5183# check for this first so it ends up on the link line before gmp.
c6b750e1 5184
81ecdfbb
RW
5185# Check whether --with-mpfr-dir was given.
5186if test "${with_mpfr_dir+set}" = set; then :
5187 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5188Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5189fi
5190
11b04d1f
DD
5191
5192
81ecdfbb
RW
5193# Check whether --with-mpfr was given.
5194if test "${with_mpfr+set}" = set; then :
5195 withval=$with_mpfr;
5196fi
c6b750e1 5197
11b04d1f 5198
e552509b 5199# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5200if test "${with_mpfr_include+set}" = set; then :
5201 withval=$with_mpfr_include;
5202fi
c6b750e1 5203
8a0d8a5c 5204
e552509b 5205# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5206if test "${with_mpfr_lib+set}" = set; then :
5207 withval=$with_mpfr_lib;
5208fi
8a0d8a5c 5209
11b04d1f
DD
5210
5211if test "x$with_mpfr" != x; then
5212 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5213 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5214fi
8a0d8a5c 5215if test "x$with_mpfr_include" != x; then
d9b76ff9 5216 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5217fi
5218if test "x$with_mpfr_lib" != x; then
5219 gmplibs="-L$with_mpfr_lib $gmplibs"
5220fi
4b900473 5221if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5222 # MPFR v3.1.0 moved the sources into a src sub-directory.
5223 if test -d ${srcdir}/mpfr/src; then
5224 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5225 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5226 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5227 else
5228 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5229 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5230 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5231 fi
4b900473
PB
5232 # Do not test the mpfr version. Assume that it is sufficient, since
5233 # it is in the source tree, and the library has not been built yet
5234 # but it would be included on the link line in the version check below
5235 # hence making the test fail.
5236 have_gmp=yes
5237fi
11b04d1f 5238
4b1cb4fe 5239# Specify a location for gmp
c6b750e1 5240
81ecdfbb
RW
5241# Check whether --with-gmp-dir was given.
5242if test "${with_gmp_dir+set}" = set; then :
5243 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5244Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5245fi
5246
4b1cb4fe
DD
5247
5248
81ecdfbb
RW
5249# Check whether --with-gmp was given.
5250if test "${with_gmp+set}" = set; then :
5251 withval=$with_gmp;
5252fi
c6b750e1 5253
4b1cb4fe 5254
e552509b 5255# Check whether --with-gmp-include was given.
81ecdfbb
RW
5256if test "${with_gmp_include+set}" = set; then :
5257 withval=$with_gmp_include;
5258fi
c6b750e1 5259
8a0d8a5c 5260
e552509b 5261# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5262if test "${with_gmp_lib+set}" = set; then :
5263 withval=$with_gmp_lib;
5264fi
8a0d8a5c
PB
5265
5266
4b1cb4fe 5267
11b04d1f
DD
5268if test "x$with_gmp" != x; then
5269 gmplibs="-L$with_gmp/lib $gmplibs"
5270 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5271fi
8a0d8a5c
PB
5272if test "x$with_gmp_include" != x; then
5273 gmpinc="-I$with_gmp_include $gmpinc"
5274fi
5275if test "x$with_gmp_lib" != x; then
5276 gmplibs="-L$with_gmp_lib $gmplibs"
5277fi
4b900473 5278if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5279 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5280 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5281 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5282 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5283 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5284 # Do not test the gmp version. Assume that it is sufficient, since
5285 # it is in the source tree, and the library has not been built yet
5286 # but it would be included on the link line in the version check below
5287 # hence making the test fail.
5288 have_gmp=yes
5289fi
4b1cb4fe 5290
ceb92e78 5291if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5292 have_gmp=yes
5293 saved_CFLAGS="$CFLAGS"
5294 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5295 # Check for the recommended and required versions of GMP.
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5297$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5298
5299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5300/* end confdefs.h. */
5301#include "gmp.h"
5302int
5303main ()
5304{
5305
5306 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5307 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5308 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5309 choke me
5310 #endif
5311
5312 ;
5313 return 0;
5314}
5315_ACEOF
5316if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5318/* end confdefs.h. */
a6b5846e 5319#include <gmp.h>
c6b750e1
DJ
5320int
5321main ()
5322{
4b1cb4fe 5323
a6b5846e
KG
5324 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5325 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5326 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5327 choke me
5328 #endif
c6b750e1
DJ
5329
5330 ;
5331 return 0;
5332}
5333_ACEOF
81ecdfbb
RW
5334if ac_fn_c_try_compile "$LINENO"; then :
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5336$as_echo "yes" >&6; }
a6b5846e
KG
5337else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5339$as_echo "buggy but acceptable" >&6; }
5340fi
5341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5342else
81ecdfbb
RW
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5345fi
81ecdfbb 5346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5347
e8a5fa9c 5348 # If we have GMP, check the MPFR version.
4b900473 5349 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5350 # Check for the recommended and required versions of MPFR.
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5352$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5354/* end confdefs.h. */
9b134994 5355#include <gmp.h>
4b900473 5356 #include <mpfr.h>
c6b750e1
DJ
5357int
5358main ()
5359{
9b134994 5360
7ec59b9e 5361 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5362 choke me
5363 #endif
c6b750e1
DJ
5364
5365 ;
5366 return 0;
5367}
5368_ACEOF
81ecdfbb
RW
5369if ac_fn_c_try_compile "$LINENO"; then :
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5371/* end confdefs.h. */
4b1cb4fe 5372#include <gmp.h>
4b900473 5373 #include <mpfr.h>
c6b750e1
DJ
5374int
5375main ()
5376{
9dbaa842 5377
a6b5846e 5378 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5379 choke me
5380 #endif
e8a5fa9c
RW
5381
5382 ;
5383 return 0;
5384}
5385_ACEOF
81ecdfbb
RW
5386if ac_fn_c_try_compile "$LINENO"; then :
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5388$as_echo "yes" >&6; }
e8a5fa9c 5389else
81ecdfbb
RW
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5391$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5392fi
81ecdfbb 5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5394else
81ecdfbb
RW
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5397fi
81ecdfbb 5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5399 fi
5400
5401 # Check for the MPC header version.
d9b76ff9 5402 if test x"$have_gmp" = xyes ; then
a6b5846e 5403 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5405$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5407/* end confdefs.h. */
5408#include <mpc.h>
5409int
5410main ()
5411{
5412
a6b5846e
KG
5413 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5414 choke me
5415 #endif
5416
5417 ;
5418 return 0;
5419}
5420_ACEOF
5421if ac_fn_c_try_compile "$LINENO"; then :
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h. */
5424#include <mpc.h>
5425int
5426main ()
5427{
5428
5429 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5430 choke me
5431 #endif
5432
5433 ;
5434 return 0;
5435}
5436_ACEOF
81ecdfbb
RW
5437if ac_fn_c_try_compile "$LINENO"; then :
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5439$as_echo "yes" >&6; }
a6b5846e
KG
5440else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5442$as_echo "buggy but acceptable" >&6; }
5443fi
5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5445else
81ecdfbb 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5447$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5448fi
81ecdfbb 5449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5450 fi
5451
5452 # Now check the MPFR library.
5453 if test x"$have_gmp" = xyes; then
5454 saved_LIBS="$LIBS"
5455 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5457$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5459/* end confdefs.h. */
d9b76ff9 5460#include <mpc.h>
e8a5fa9c
RW
5461int
5462main ()
5463{
5464
5465 mpfr_t n;
5466 mpfr_t x;
d9b76ff9 5467 mpc_t c;
e8a5fa9c
RW
5468 int t;
5469 mpfr_init (n);
5470 mpfr_init (x);
5471 mpfr_atan2 (n, n, x, GMP_RNDN);
5472 mpfr_erfc (n, x, GMP_RNDN);
5473 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5474 mpfr_clear(n);
5475 mpfr_clear(x);
5476 mpc_init2 (c, 53);
5477 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5478 mpc_cosh (c, c, MPC_RNDNN);
5479 mpc_pow (c, c, c, MPC_RNDNN);
5480 mpc_acosh (c, c, MPC_RNDNN);
5481 mpc_clear (c);
c6b750e1
DJ
5482
5483 ;
5484 return 0;
5485}
5486_ACEOF
81ecdfbb
RW
5487if ac_fn_c_try_link "$LINENO"; then :
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5489$as_echo "yes" >&6; }
c6b750e1 5490else
81ecdfbb
RW
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5493fi
81ecdfbb
RW
5494rm -f core conftest.err conftest.$ac_objext \
5495 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5496 LIBS="$saved_LIBS"
5497 fi
5498
4b900473 5499 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5500
a6b5846e
KG
5501# The library versions listed in the error message below should match
5502# the HARD-minimums enforced above.
4b900473 5503 if test x$have_gmp != xyes; then
7ec59b9e 5504 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5505Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5506their locations. Source code for these libraries can be found at
5507their respective hosting sites as well as at
5508ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5509http://gcc.gnu.org/install/prerequisites.html for additional info. If
5510you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5511make sure that you have installed both the libraries and the header
5512files. They may be located in separate packages." "$LINENO" 5
4b900473 5513 fi
9dbaa842
DD
5514fi
5515
e8a5fa9c
RW
5516# Flags needed for both GMP, MPFR and/or MPC.
5517
5518
5519
4b1cb4fe
DD
5520
5521
5522
7ec59b9e 5523
29383458
JM
5524# Allow host libstdc++ to be specified for static linking with PPL.
5525
81ecdfbb
RW
5526# Check whether --with-host-libstdcxx was given.
5527if test "${with_host_libstdcxx+set}" = set; then :
5528 withval=$with_host_libstdcxx;
5529fi
29383458 5530
29383458
JM
5531
5532case $with_host_libstdcxx in
5533 no|yes)
81ecdfbb 5534 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5535 ;;
5536esac
e28c595f 5537
e8a5fa9c
RW
5538# Linker flags to use for stage1 or when not boostrapping.
5539
81ecdfbb
RW
5540# Check whether --with-stage1-ldflags was given.
5541if test "${with_stage1_ldflags+set}" = set; then :
5542 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5543 stage1_ldflags=
5544 else
5545 stage1_ldflags=$withval
5546 fi
5547else
5548 stage1_ldflags=
81ecdfbb
RW
5549fi
5550
e8a5fa9c
RW
5551
5552
5553# Libraries to use for stage1 or when not bootstrapping.
5554
81ecdfbb
RW
5555# Check whether --with-stage1-libs was given.
5556if test "${with_stage1_libs+set}" = set; then :
5557 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5558 stage1_libs=
5559 else
5560 stage1_libs=$withval
5561 fi
5562else
5563 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5564fi
5565
e8a5fa9c
RW
5566
5567
e8a5fa9c
RW
5568# Libraries to use for stage2 and later builds. This defaults to the
5569# argument passed to --with-host-libstdcxx.
5570
81ecdfbb
RW
5571# Check whether --with-boot-libs was given.
5572if test "${with_boot_libs+set}" = set; then :
5573 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5574 poststage1_libs=
5575 else
5576 poststage1_libs=$withval
5577 fi
5578else
5579 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5580fi
5581
e8a5fa9c
RW
5582
5583
143754cd
NC
5584# Linker flags to use for stage2 and later builds.
5585
5586# Check whether --with-boot-ldflags was given.
5587if test "${with_boot_ldflags+set}" = set; then :
5588 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5589 poststage1_ldflags=
5590 else
5591 poststage1_ldflags=$withval
5592 fi
5593else
5594 poststage1_ldflags=
4f11b223
ILT
5595 # In stages 2 and 3, default to linking libstdc++ and libgcc
5596 # statically. But if the user explicitly specified the libraries to
5597 # use, trust that they are doing what they want.
5598 if test "$poststage1_libs" = ""; then
143754cd
NC
5599 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5600 fi
5601fi
5602
5603
5604
7ec59b9e 5605# Check for ISL
e28c595f
JM
5606
5607
7ec59b9e
L
5608# Check whether --with-isl was given.
5609if test "${with_isl+set}" = set; then :
5610 withval=$with_isl;
81ecdfbb 5611fi
e28c595f 5612
e28c595f 5613
7ec59b9e
L
5614# Check whether --with-isl-include was given.
5615if test "${with_isl_include+set}" = set; then :
5616 withval=$with_isl_include;
81ecdfbb
RW
5617fi
5618
e28c595f 5619
7ec59b9e
L
5620# Check whether --with-isl-lib was given.
5621if test "${with_isl_lib+set}" = set; then :
5622 withval=$with_isl_lib;
81ecdfbb 5623fi
e28c595f 5624
e28c595f 5625
7ec59b9e
L
5626 # Check whether --enable-isl-version-check was given.
5627if test "${enable_isl_version_check+set}" = set; then :
5628 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5629else
5630 ENABLE_ISL_CHECK=yes
b123da99
SP
5631fi
5632
5633
7ec59b9e
L
5634 # Initialize isllibs and islinc.
5635 case $with_isl in
5636 no)
5637 isllibs=
5638 islinc=
5639 ;;
5640 "" | yes)
5641 ;;
5642 *)
5643 isllibs="-L$with_isl/lib"
5644 islinc="-I$with_isl/include"
5645 ;;
5646 esac
5647 if test "x${with_isl_include}" != x ; then
5648 islinc="-I$with_isl_include"
5649 fi
5650 if test "x${with_isl_lib}" != x; then
5651 isllibs="-L$with_isl_lib"
5652 fi
5653 if test "x${islinc}" = x && test "x${isllibs}" = x \
5654 && test -d ${srcdir}/isl; then
5655 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5656 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5657 ENABLE_ISL_CHECK=no
5658 fi
b123da99 5659
7ec59b9e 5660 isllibs="${isllibs} -lisl"
b123da99 5661
b123da99 5662
e28c595f 5663
7ec59b9e
L
5664
5665
5666if test "x$with_isl" != "xno"; then
5667
5668 if test "${ENABLE_ISL_CHECK}" = yes ; then
5669 _isl_saved_CFLAGS=$CFLAGS
5670 _isl_saved_LDFLAGS=$LDFLAGS
5671 _isl_saved_LIBS=$LIBS
5672
5673 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5674 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5675 LIBS="${_isl_saved_LIBS} -lisl"
5676 echo $CFLAGS
5677
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5679$as_echo_n "checking for version 0.10 of ISL... " >&6; }
5680if test "${gcc_cv_isl+set}" = set; then :
b123da99
SP
5681 $as_echo_n "(cached) " >&6
5682else
7ec59b9e
L
5683 if test "$cross_compiling" = yes; then :
5684 gcc_cv_isl=yes
5685else
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b123da99 5687/* end confdefs.h. */
7ec59b9e
L
5688#include <isl/version.h>
5689 #include <string.h>
b123da99
SP
5690int
5691main ()
5692{
7ec59b9e
L
5693if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5694 return 1;
5695
b123da99
SP
5696 ;
5697 return 0;
5698}
5699_ACEOF
7ec59b9e
L
5700if ac_fn_c_try_run "$LINENO"; then :
5701 gcc_cv_isl=yes
e28c595f 5702else
7ec59b9e 5703 gcc_cv_isl=no
b123da99 5704fi
7ec59b9e
L
5705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5706 conftest.$ac_objext conftest.beam conftest.$ac_ext
b123da99 5707fi
7ec59b9e 5708
81ecdfbb 5709fi
7ec59b9e
L
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5711$as_echo "$gcc_cv_isl" >&6; }
81ecdfbb 5712
7ec59b9e
L
5713 CFLAGS=$_isl_saved_CFLAGS
5714 LDFLAGS=$_isl_saved_LDFLAGS
5715 LIBS=$_isl_saved_LIBS
b123da99 5716 fi
e28c595f 5717
b123da99 5718
e28c595f 5719
e28c595f 5720
7ec59b9e
L
5721
5722
5723
5724 if test "x${with_isl}" = xno; then
5725 graphite_requested=no
5726 elif test "x${with_isl}" != x \
5727 || test "x${with_isl_include}" != x \
5728 || test "x${with_isl_lib}" != x ; then
5729 graphite_requested=yes
5730 else
5731 graphite_requested=no
b123da99 5732 fi
e28c595f 5733
e28c595f
JM
5734
5735
7ec59b9e
L
5736 if test "${gcc_cv_isl}" = no ; then
5737 isllibs=
5738 islinc=
5739 fi
e28c595f 5740
7ec59b9e
L
5741 if test "${graphite_requested}" = yes \
5742 && test "x${isllibs}" = x \
5743 && test "x${islinc}" = x ; then
e28c595f 5744
7ec59b9e
L
5745 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5746 fi
e552509b 5747
e28c595f 5748
7ec59b9e
L
5749fi
5750
5751# Check for CLOOG
5752
e28c595f 5753
81ecdfbb
RW
5754# Check whether --with-cloog was given.
5755if test "${with_cloog+set}" = set; then :
5756 withval=$with_cloog;
81ecdfbb
RW
5757fi
5758
e28c595f 5759
e552509b 5760# Check whether --with-cloog-include was given.
81ecdfbb
RW
5761if test "${with_cloog_include+set}" = set; then :
5762 withval=$with_cloog_include;
5763fi
e28c595f 5764
e28c595f 5765
e552509b 5766# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5767if test "${with_cloog_lib+set}" = set; then :
5768 withval=$with_cloog_lib;
5769fi
e28c595f 5770
e28c595f 5771
e552509b
ILT
5772 # Check whether --enable-cloog-version-check was given.
5773if test "${enable_cloog_version_check+set}" = set; then :
5774 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5775else
5776 ENABLE_CLOOG_CHECK=yes
5777fi
5778
5779
5780 # Initialize clooglibs and clooginc.
5781 case $with_cloog in
5782 no)
5783 clooglibs=
5784 clooginc=
5785 ;;
5786 "" | yes)
5787 ;;
5788 *)
5789 clooglibs="-L$with_cloog/lib"
5790 clooginc="-I$with_cloog/include"
5791 ;;
5792 esac
5793 if test "x${with_cloog_include}" != x ; then
5794 clooginc="-I$with_cloog_include"
5795 fi
5796 if test "x${with_cloog_lib}" != x; then
5797 clooglibs="-L$with_cloog_lib"
5798 fi
7ec59b9e
L
5799 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5800 && test -d ${srcdir}/cloog; then
5801 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5802 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
8d8eef9a
RW
5803 fi
5804
7ec59b9e
L
5805 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5806 clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
8d8eef9a 5807
e552509b 5808
81ecdfbb 5809
e28c595f 5810
e552509b 5811
7ec59b9e
L
5812if test "x$isllibs" = x && test "x$islinc" = x; then
5813 clooglibs=
5814 clooginc=
5815elif test "x$with_cloog" != "xno"; then
e552509b
ILT
5816
5817
5818
5819 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5820 _cloog_saved_CFLAGS=$CFLAGS
5821 _cloog_saved_LDFLAGS=$LDFLAGS
5822
7ec59b9e
L
5823 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5824 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
e552509b 5825
7ec59b9e
L
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5827$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5828if test "${gcc_cv_cloog+set}" = set; then :
e552509b
ILT
5829 $as_echo_n "(cached) " >&6
5830else
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h. */
7ec59b9e 5833#include "cloog/version.h"
e552509b
ILT
5834int
5835main ()
5836{
5837#if CLOOG_VERSION_MAJOR != 0 \
7ec59b9e
L
5838 || CLOOG_VERSION_MINOR != 17 \
5839 || CLOOG_VERSION_REVISION < 0
e552509b
ILT
5840 choke me
5841 #endif
5842 ;
5843 return 0;
5844}
5845_ACEOF
5846if ac_fn_c_try_compile "$LINENO"; then :
7ec59b9e 5847 gcc_cv_cloog=yes
e552509b 5848else
7ec59b9e 5849 gcc_cv_cloog=no
e552509b
ILT
5850fi
5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852fi
7ec59b9e
L
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5854$as_echo "$gcc_cv_cloog" >&6; }
e552509b
ILT
5855
5856 CFLAGS=$_cloog_saved_CFLAGS
5857 LDFLAGS=$_cloog_saved_LDFLAGS
5858 fi
5859
5860
5861
e28c595f 5862
e28c595f
JM
5863
5864
5865
8d8eef9a
RW
5866 if test "x${with_cloog}" = xno; then
5867 graphite_requested=no
5868 elif test "x${with_cloog}" != x \
e552509b
ILT
5869 || test "x${with_cloog_include}" != x \
5870 || test "x${with_cloog_lib}" != x ; then
5871 graphite_requested=yes
5872 else
5873 graphite_requested=no
5874 fi
5875
5876
5877
7ec59b9e 5878 if test "${gcc_cv_cloog}" = no ; then
e552509b
ILT
5879 clooglibs=
5880 clooginc=
5881 fi
5882
5883 if test "${graphite_requested}" = yes \
5884 && test "x${clooglibs}" = x \
5885 && test "x${clooginc}" = x ; then
5886
8d8eef9a 5887 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
5888 fi
5889
5890
5891fi
5892
7ec59b9e
L
5893# If either the ISL or the CLooG check failed, disable builds of in-tree
5894# variants of both
5895if test "x$clooglibs" = x && test "x$clooginc" = x; then
5896 noconfigdirs="$noconfigdirs cloog isl"
5897fi
5898
700d40ca
ILT
5899# Check for LTO support.
5900# Check whether --enable-lto was given.
5901if test "${enable_lto+set}" = set; then :
5902 enableval=$enable_lto; enable_lto=$enableval
5903else
5904 enable_lto=yes; default_enable_lto=yes
5905fi
5906
5907
143754cd 5908
e49e5c92
DK
5909
5910
5911target_elf=no
5912case $target in
5913 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 5914 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 5915 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
5916 target_elf=no
5917 ;;
5918 *)
5919 target_elf=yes
5920 ;;
5921esac
5922
5923if test $target_elf = yes; then :
74cea91b
DK
5924 # ELF platforms build the lto-plugin always.
5925 build_lto_plugin=yes
e49e5c92 5926
e49e5c92
DK
5927else
5928 if test x"$default_enable_lto" = x"yes" ; then
29821356 5929 case $target in
899b04ef 5930 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 5931 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
5932 *) enable_lto=no ;;
5933 esac
e49e5c92 5934 else
29821356
RW
5935 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5936 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
5937 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5938 # warn during gcc/ subconfigure; unless you're bootstrapping with
5939 # -flto it won't be needed until after installation anyway.
5940 case $target in
a8eb3f0a 5941 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
5942 *) if test x"$enable_lto" = x"yes"; then
5943 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5944 fi
5945 ;;
5946 esac
5947 fi
a8eb3f0a 5948 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 5949 # Build it unless LTO was explicitly disabled.
a8eb3f0a 5950 case $target in
74cea91b 5951 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
5952 *) ;;
5953 esac
74cea91b 5954
e49e5c92
DK
5955fi
5956
700d40ca 5957
e28c595f 5958
7ec59b9e 5959# By default, C and C++ are the only stage 1 languages.
9b134994 5960stage1_languages=,c,
1d39f329 5961
e8a5fa9c 5962# Target libraries that we bootstrap.
2aa2364a 5963bootstrap_target_libs=,target-libgcc,
e8a5fa9c 5964
9e07f89d
NN
5965# Figure out what language subdirectories are present.
5966# Look if the user specified --enable-languages="..."; if not, use
5967# the environment variable $LANGUAGES if defined. $LANGUAGES might
5968# go away some day.
5969# NB: embedded tabs in this IF block -- do not untabify
5970if test -d ${srcdir}/gcc; then
5971 if test x"${enable_languages+set}" != xset; then
5972 if test x"${LANGUAGES+set}" = xset; then
5973 enable_languages="${LANGUAGES}"
5974 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5975 else
5976 enable_languages=all
5977 fi
5978 else
5979 if test x"${enable_languages}" = x ||
5980 test x"${enable_languages}" = xyes;
5981 then
5982 echo configure.in: --enable-languages needs at least one language argument 1>&2
5983 exit 1
5984 fi
5985 fi
5986 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5987
096f7d00
DE
5988 # 'f95' is the old name for the 'fortran' language. We issue a warning
5989 # and make the substitution.
5990 case ,${enable_languages}, in
5991 *,f95,*)
5992 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5993 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5994 ;;
5995 esac
5996
7ec59b9e
L
5997 # If bootstrapping, C++ must be enabled.
5998 case ",$enable_languages,:$enable_bootstrap" in
5999 *,c++,*:*) ;;
6000 *:yes)
ffdd6afc
ILT
6001 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6002 enable_languages="${enable_languages},c++"
6003 else
7ec59b9e 6004 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6005 fi
6006 ;;
6007 esac
6008
9e07f89d
NN
6009 # First scan to see if an enabled language requires some other language.
6010 # We assume that a given config-lang.in will list all the language
6011 # front ends it requires, even if some are required indirectly.
6012 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6013 case ${lang_frag} in
6014 ..) ;;
6015 # The odd quoting in the next line works around
6016 # an apparent bug in bash 1.12 on linux.
6017 ${srcdir}/gcc/[*]/config-lang.in) ;;
6018 *)
e552509b
ILT
6019 # From the config-lang.in, get $language, $lang_requires, and
6020 # $lang_requires_boot_languages.
9e07f89d
NN
6021 language=
6022 lang_requires=
e552509b 6023 lang_requires_boot_languages=
9e07f89d 6024 . ${lang_frag}
e552509b 6025 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6026 case ,${enable_languages}, in
6027 *,$other,*) ;;
6028 *,all,*) ;;
6029 *,$language,*)
6030 echo " \`$other' language required by \`$language'; enabling" 1>&2
6031 enable_languages="${enable_languages},${other}"
6032 ;;
6033 esac
6034 done
e552509b
ILT
6035 for other in ${lang_requires_boot_languages} ; do
6036 if test "$other" != "c"; then
6037 case ,${enable_stage1_languages}, in
6038 *,$other,*) ;;
6039 *,all,*) ;;
6040 *)
6041 case ,${enable_languages}, in
6042 *,$language,*)
6043 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6044 enable_stage1_languages="$enable_stage1_languages,${other}"
6045 ;;
6046 esac
6047 ;;
6048 esac
6049 fi
6050 done
9e07f89d
NN
6051 ;;
6052 esac
6053 done
6054
9b134994 6055 new_enable_languages=,c,
700d40ca
ILT
6056
6057 # If LTO is enabled, add the LTO front end.
6058 extra_host_libiberty_configure_flags=
6059 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6060 case ,${enable_languages}, in
6061 *,lto,*) ;;
6062 *) enable_languages="${enable_languages},lto" ;;
6063 esac
a8eb3f0a 6064 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6065 configdirs="$configdirs lto-plugin"
6066 extra_host_libiberty_configure_flags=--enable-shared
6067 fi
6068 fi
6069
6070
9e07f89d 6071 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6072 potential_languages=,c,
9e07f89d 6073
9e1a94f4
ILT
6074 enabled_target_libs=
6075 disabled_target_libs=
6076
9e07f89d
NN
6077 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6078 case ${lang_frag} in
6079 ..) ;;
6080 # The odd quoting in the next line works around
6081 # an apparent bug in bash 1.12 on linux.
6082 ${srcdir}/gcc/[*]/config-lang.in) ;;
6083 *)
c6b750e1 6084 # From the config-lang.in, get $language, $target_libs,
1d39f329 6085 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6086 language=
6087 target_libs=
6088 lang_dirs=
64ce424c 6089 subdir_requires=
9b134994
PB
6090 boot_language=no
6091 build_by_default=yes
9e07f89d 6092 . ${lang_frag}
9b134994
PB
6093 if test x${language} = x; then
6094 echo "${lang_frag} doesn't set \$language." 1>&2
6095 exit 1
6096 fi
6097
ffdd6afc 6098 if test "$language" = "c++"; then
7ec59b9e 6099 boot_language=yes
e8a5fa9c
RW
6100 fi
6101
9b134994
PB
6102 case ,${enable_languages}, in
6103 *,${language},*)
7ec59b9e
L
6104 # Language was explicitly selected; include it
6105 # unless it is C, which is enabled by default.
6106 if test "$language" != "c"; then
6107 add_this_lang=yes
6108 fi
9e07f89d 6109 ;;
9b134994
PB
6110 *,all,*)
6111 # 'all' was selected, select it if it is a default language
6112 add_this_lang=${build_by_default}
9e07f89d
NN
6113 ;;
6114 *)
6115 add_this_lang=no
6116 ;;
6117 esac
4b1cb4fe 6118
64ce424c 6119 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6120 for i in $subdir_requires; do
3d3adb43 6121 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6122 case ,${enable_languages}, in
6123 *,${language},*)
6124 # Specifically requested language; tell them.
81ecdfbb 6125 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6126 ;;
6127 *)
6128 # Silently disable.
9b134994 6129 add_this_lang=unsupported
64ce424c
PB
6130 ;;
6131 esac
6132 done
6133
9b134994
PB
6134 # Disable Ada if no preexisting GNAT is available.
6135 case ,${enable_languages},:${language}:${have_gnat} in
6136 *,${language},*:ada:no)
6137 # Specifically requested language; tell them.
81ecdfbb 6138 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6139 ;;
6140 *:ada:no)
6141 # Silently disable.
6142 add_this_lang=unsupported
6143 ;;
6144 esac
6145
59f7ec45
HPN
6146 # Disable a language that is unsupported by the target.
6147 case " $unsupported_languages " in
6148 *" $language "*)
9b134994 6149 add_this_lang=unsupported
59f7ec45
HPN
6150 ;;
6151 esac
6152
4b1cb4fe 6153 case $add_this_lang in
9b134994 6154 unsupported)
9e07f89d 6155 # Remove language-dependent dirs.
9e1a94f4
ILT
6156 disabled_target_libs="$disabled_target_libs $target_libs"
6157 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6158 ;;
9b134994
PB
6159 no)
6160 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6161 disabled_target_libs="$disabled_target_libs $target_libs"
6162 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6163 potential_languages="${potential_languages}${language},"
6164 ;;
6165 yes)
6166 new_enable_languages="${new_enable_languages}${language},"
6167 potential_languages="${potential_languages}${language},"
1d39f329 6168 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6169 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6170 case "${boot_language}:,$enable_stage1_languages," in
6171 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6172 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6173 case ",$stage1_languages," in
6174 *,$language,* | ,yes, | ,all,) ;;
6175 *) stage1_languages="${stage1_languages}${language}," ;;
6176 esac
e8a5fa9c
RW
6177 # We need to bootstrap any supporting libraries.
6178 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6179 ;;
6180 esac
6181 ;;
9e07f89d
NN
6182 esac
6183 ;;
6184 esac
6185 done
6186
9e1a94f4
ILT
6187 # Add target libraries which are only needed for disabled languages
6188 # to noconfigdirs.
6189 if test -n "$disabled_target_libs"; then
6190 for dir in $disabled_target_libs; do
6191 case " $enabled_target_libs " in
6192 *" ${dir} "*) ;;
6193 *) noconfigdirs="$noconfigdirs $dir" ;;
6194 esac
6195 done
6196 fi
6197
81ecdfbb
RW
6198 # Check whether --enable-stage1-languages was given.
6199if test "${enable_stage1_languages+set}" = set; then :
6200 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6201 ,no,|,,)
6202 # Set it to something that will have no effect in the loop below
6203 enable_stage1_languages=c ;;
6204 ,yes,)
6205 enable_stage1_languages=`echo $new_enable_languages | \
6206 sed -e "s/^,//" -e "s/,$//" ` ;;
6207 *,all,*)
6208 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6209 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6210 esac
6211
6212 # Add "good" languages from enable_stage1_languages to stage1_languages,
6213 # while "bad" languages go in missing_languages. Leave no duplicates.
6214 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6215 case $potential_languages in
6216 *,$i,*)
6217 case $stage1_languages in
6218 *,$i,*) ;;
6219 *) stage1_languages="$stage1_languages$i," ;;
6220 esac ;;
6221 *)
6222 case $missing_languages in
6223 *,$i,*) ;;
6224 *) missing_languages="$missing_languages$i," ;;
6225 esac ;;
6226 esac
6227 done
81ecdfbb
RW
6228fi
6229
9b134994
PB
6230
6231 # Remove leading/trailing commas that were added for simplicity
6232 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6233 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6234 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6235 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6236
9e07f89d 6237 if test "x$missing_languages" != x; then
81ecdfbb 6238 as_fn_error "
27258dd4 6239The following requested languages could not be built: ${missing_languages}
81ecdfbb 6240Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6241 fi
9e07f89d
NN
6242 if test "x$new_enable_languages" != "x$enable_languages"; then
6243 echo The following languages will be built: ${new_enable_languages}
9b134994 6244 enable_languages="$new_enable_languages"
9e07f89d 6245 fi
9b134994 6246
c6b750e1 6247
81ec575a 6248 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6249fi
6250
a6df5a19
PB
6251# Handle --disable-<component> generically.
6252for dir in $configdirs $build_configdirs $target_configdirs ; do
6253 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6254 varname=`echo $dirname | sed -e s/+/_/g`
6255 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6256 noconfigdirs="$noconfigdirs $dir"
6257 fi
6258done
6259
4f0ef2d8 6260# Check for Boehm's garbage collector
81ecdfbb
RW
6261# Check whether --enable-objc-gc was given.
6262if test "${enable_objc_gc+set}" = set; then :
6263 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6264 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6265 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6266 ;;
6267esac
81ecdfbb
RW
6268fi
6269
4f0ef2d8
CD
6270
6271# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6272case ,${enable_languages},:${enable_objc_gc} in
6273 *,objc,*:yes)
4f0ef2d8
CD
6274 # Keep target-boehm-gc if requested for Objective-C.
6275 ;;
4f0ef2d8 6276 *)
d42c4017
DA
6277 # Otherwise remove target-boehm-gc depending on target-libjava.
6278 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6279 noconfigdirs="$noconfigdirs target-boehm-gc"
6280 fi
4f0ef2d8
CD
6281 ;;
6282esac
6283
7ec59b9e
L
6284# Disable libitm if we're not building C++
6285case ,${enable_languages}, in
6286 *,c++,*) ;;
6287 *)
6288 noconfigdirs="$noconfigdirs target-libitm"
6289 ;;
6290esac
6291
caeba88f
AL
6292# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6293# $build_configdirs and $target_configdirs.
9e07f89d
NN
6294# If we have the source for $noconfigdirs entries, add them to $notsupp.
6295
6296notsupp=""
6297for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6298 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6299 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6300 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6301 if test -r $srcdir/$dirname/configure ; then
6302 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6303 true
6304 else
6305 notsupp="$notsupp $dir"
6306 fi
6307 fi
6308 fi
caeba88f
AL
6309 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6310 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6311 if test -r $srcdir/$dirname/configure ; then
6312 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6313 true
6314 else
6315 notsupp="$notsupp $dir"
6316 fi
6317 fi
6318 fi
9e07f89d
NN
6319 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6320 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6321 if test -r $srcdir/$dirname/configure ; then
6322 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6323 true
6324 else
6325 notsupp="$notsupp $dir"
6326 fi
6327 fi
6328 fi
6329done
6330
9e07f89d
NN
6331# Quietly strip out all directories which aren't configurable in this tree.
6332# This relies on all configurable subdirectories being autoconfiscated, which
6333# is now the case.
6a9cf61e
PB
6334build_configdirs_all="$build_configdirs"
6335build_configdirs=
6336for i in ${build_configdirs_all} ; do
c6b750e1 6337 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6338 if test -f ${srcdir}/$j/configure ; then
6339 build_configdirs="${build_configdirs} $i"
6340 fi
6341done
6342
9e07f89d
NN
6343configdirs_all="$configdirs"
6344configdirs=
6345for i in ${configdirs_all} ; do
6346 if test -f ${srcdir}/$i/configure ; then
6347 configdirs="${configdirs} $i"
6348 fi
6349done
6a9cf61e 6350
9e07f89d
NN
6351target_configdirs_all="$target_configdirs"
6352target_configdirs=
6353for i in ${target_configdirs_all} ; do
c6b750e1 6354 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6355 if test -f ${srcdir}/$j/configure ; then
6356 target_configdirs="${target_configdirs} $i"
6357 fi
6358done
6359
6360# Produce a warning message for the subdirs we can't configure.
6361# This isn't especially interesting in the Cygnus tree, but in the individual
6362# FSF releases, it's important to let people know when their machine isn't
6363# supported by the one or two programs in a package.
6364
6365if test -n "${notsupp}" && test -z "${norecursion}" ; then
6366 # If $appdirs is non-empty, at least one of those directories must still
6367 # be configured, or we error out. (E.g., if the gas release supports a
6368 # specified target in some subdirs but not the gas subdir, we shouldn't
6369 # pretend that all is well.)
6370 if test -n "$appdirs" ; then
6371 for dir in $appdirs ; do
6372 if test -r $dir/Makefile.in ; then
6373 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6374 appdirs=""
6375 break
6376 fi
6a9cf61e 6377 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6378 appdirs=""
6379 break
6380 fi
6381 fi
6382 done
6383 if test -n "$appdirs" ; then
6384 echo "*** This configuration is not supported by this package." 1>&2
6385 exit 1
6386 fi
6387 fi
6388 # Okay, some application will build, or we don't care to check. Still
6389 # notify of subdirs not getting built.
6390 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6391 echo " ${notsupp}" 1>&2
6392 echo " (Any other directories should still work fine.)" 1>&2
6393fi
6394
6395case "$host" in
6396 *msdosdjgpp*)
6397 enable_gdbtk=no ;;
6398esac
6399
18f6b6ee
PB
6400# To find our prefix, in gcc_cv_tool_prefix.
6401
6402# The user is always right.
6403if test "${PATH_SEPARATOR+set}" != set; then
6404 echo "#! /bin/sh" >conf$$.sh
6405 echo "exit 0" >>conf$$.sh
6406 chmod +x conf$$.sh
6407 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6408 PATH_SEPARATOR=';'
6409 else
6410 PATH_SEPARATOR=:
6411 fi
6412 rm -f conf$$.sh
6413fi
6414
6415
6416
6417if test "x$exec_prefix" = xNONE; then
6418 if test "x$prefix" = xNONE; then
6419 gcc_cv_tool_prefix=$ac_default_prefix
6420 else
6421 gcc_cv_tool_prefix=$prefix
6422 fi
6423else
6424 gcc_cv_tool_prefix=$exec_prefix
6425fi
6426
6427# If there is no compiler in the tree, use the PATH only. In any
6428# case, if there is no compiler in the tree nobody should use
6429# AS_FOR_TARGET and LD_FOR_TARGET.
6430if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6431 gcc_version=`cat $srcdir/gcc/BASE-VER`
6432 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6433 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6434 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6435 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6436 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6437 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6438else
6439 gcc_cv_tool_dirs=
6440fi
6441
6442if test x$build = x$target && test -n "$md_exec_prefix"; then
6443 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6444fi
6445
6446
6447
9e07f89d
NN
6448copy_dirs=
6449
c6b750e1 6450
81ecdfbb
RW
6451# Check whether --with-build-sysroot was given.
6452if test "${with_build_sysroot+set}" = set; then :
6453 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6454 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6455 fi
6456else
6457 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6458fi
a19b6204
MM
6459
6460
8a6ee3ab 6461
81ecdfbb
RW
6462
6463# Check whether --with-debug-prefix-map was given.
6464if test "${with_debug_prefix_map+set}" = set; then :
6465 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6466 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6467 for debug_map in $withval; do
6468 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6469 done
6470 fi
6471else
6472 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6473fi
6474
8a6ee3ab
JM
6475
6476
7f6ef0c0
PB
6477# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6478# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6479# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6480# We want to ensure that TARGET libraries (which we know are built with
6481# gcc) are built with "-O2 -g", so include those options when setting
6482# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6483if test "x$CFLAGS_FOR_TARGET" = x; then
6484 CFLAGS_FOR_TARGET=$CFLAGS
6485 case " $CFLAGS " in
6486 *" -O2 "*) ;;
68f107fa 6487 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6488 esac
6489 case " $CFLAGS " in
6490 *" -g "* | *" -g3 "*) ;;
68f107fa 6491 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6492 esac
6493fi
6494
6495
6496if test "x$CXXFLAGS_FOR_TARGET" = x; then
6497 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6498 case " $CXXFLAGS " in
6499 *" -O2 "*) ;;
68f107fa 6500 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6501 esac
6502 case " $CXXFLAGS " in
6503 *" -g "* | *" -g3 "*) ;;
68f107fa 6504 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6505 esac
6506fi
6507
6508
91c1f14c
DK
6509
6510
9e07f89d
NN
6511# Handle --with-headers=XXX. If the value is not "yes", the contents of
6512# the named directory are copied to $(tooldir)/sys-include.
6513if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6514 if test x${is_cross_compiler} = xno ; then
6515 echo 1>&2 '***' --with-headers is only supported when cross compiling
6516 exit 1
6517 fi
6518 if test x"${with_headers}" != xyes ; then
18f6b6ee 6519 x=${gcc_cv_tool_prefix}
c6b750e1 6520 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6521 fi
6522fi
6523
6524# Handle --with-libs=XXX. If the value is not "yes", the contents of
6525# the name directories are copied to $(tooldir)/lib. Multiple directories
6526# are permitted.
6527if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6528 if test x${is_cross_compiler} = xno ; then
6529 echo 1>&2 '***' --with-libs is only supported when cross compiling
6530 exit 1
6531 fi
6532 if test x"${with_libs}" != xyes ; then
6533 # Copy the libraries in reverse order, so that files in the first named
6534 # library override files in subsequent libraries.
18f6b6ee 6535 x=${gcc_cv_tool_prefix}
9e07f89d 6536 for l in ${with_libs}; do
c6b750e1 6537 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6538 done
6539 fi
6540fi
6541
700d40ca 6542# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6543#
6544# This is done by determining whether or not the appropriate directory
6545# is available, and by checking whether or not specific configurations
6546# have requested that this magic not happen.
c6b750e1
DJ
6547#
6548# The command line options always override the explicit settings in
2429c060
PB
6549# configure.in, and the settings in configure.in override this magic.
6550#
c6b750e1 6551# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6552# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6553# --without-gnu-ld options for the configure script. Similarly, if
6554# the default is to use the included zlib and you don't want to do that,
6555# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6556
6557if test x${use_gnu_as} = x &&
6558 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6559 with_gnu_as=yes
6560 extra_host_args="$extra_host_args --with-gnu-as"
6561fi
6562
6563if test x${use_gnu_ld} = x &&
93f9b408 6564 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6565 with_gnu_ld=yes
6566 extra_host_args="$extra_host_args --with-gnu-ld"
6567fi
6568
700d40ca
ILT
6569if test x${use_included_zlib} = x &&
6570 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6571 :
6572else
6573 with_system_zlib=yes
6574 extra_host_args="$extra_host_args --with-system-zlib"
6575fi
6576
2429c060
PB
6577# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6578# can detect this case.
6579
6580if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6581 with_newlib=yes
6582 extra_host_args="$extra_host_args --with-newlib"
6583fi
6584
9e07f89d
NN
6585# Handle ${copy_dirs}
6586set fnord ${copy_dirs}
6587shift
6588while test $# != 0 ; do
6589 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6590 :
6591 else
6592 echo Copying $1 to $2
6593
6594 # Use the install script to create the directory and all required
6595 # parent directories.
6596 if test -d $2 ; then
6597 :
6598 else
6599 echo >config.temp
6600 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6601 fi
6602
6603 # Copy the directory, assuming we have tar.
6604 # FIXME: Should we use B in the second tar? Not all systems support it.
6605 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6606
6607 # It is the responsibility of the user to correctly adjust all
6608 # symlinks. If somebody can figure out how to handle them correctly
6609 # here, feel free to add the code.
6610
6611 echo $1 > $2/COPIED
6612 fi
6613 shift; shift
6614done
6615
2429c060
PB
6616# Determine a target-dependent exec_prefix that the installed
6617# gcc will search in. Keep this list sorted by triplet, with
6618# the *-*-osname triplets last.
6619md_exec_prefix=
6620case "${target}" in
521ec477 6621 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6622 md_exec_prefix=/dev/env/DJDIR/bin
6623 ;;
2429c060 6624 *-*-hpux* | \
2429c060 6625 *-*-nto-qnx* | \
1f111696 6626 *-*-solaris2*)
2429c060
PB
6627 md_exec_prefix=/usr/ccs/bin
6628 ;;
6629esac
6630
a0da8069
NN
6631extra_arflags_for_target=
6632extra_nmflags_for_target=
6633extra_ranlibflags_for_target=
6634target_makefile_frag=/dev/null
6635case "${target}" in
77d7106f
AM
6636 spu-*-*)
6637 target_makefile_frag="config/mt-spu"
6638 ;;
429acdec
RS
6639 mips*-sde-elf*)
6640 target_makefile_frag="config/mt-sde"
6641 ;;
f3b1e08e
RS
6642 mipsisa*-*-elfoabi*)
6643 target_makefile_frag="config/mt-mips-elfoabi"
6644 ;;
e7c8859c
RS
6645 mips*-*-*linux* | mips*-*-gnu*)
6646 target_makefile_frag="config/mt-mips-gnu"
6647 ;;
29383458 6648 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6649 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6650 ;;
6651 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6652 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6653 # commands to handle both 32-bit and 64-bit objects. These flags are
6654 # harmless if we're using GNU nm or ar.
6655 extra_arflags_for_target=" -X32_64"
6656 extra_nmflags_for_target=" -B -X32_64"
6657 ;;
a0da8069
NN
6658esac
6659
6660alphaieee_frag=/dev/null
6661case $target in
6662 alpha*-*-*)
6663 # This just makes sure to use the -mieee option to build target libs.
6664 # This should probably be set individually by each library.
6665 alphaieee_frag="config/mt-alphaieee"
6666 ;;
6667esac
6668
6669# If --enable-target-optspace always use -Os instead of -O2 to build
6670# the target libraries, similarly if it is not specified, use -Os
6671# on selected platforms.
6672ospace_frag=/dev/null
6673case "${enable_target_optspace}:${target}" in
6674 yes:*)
6675 ospace_frag="config/mt-ospace"
6676 ;;
6677 :d30v-*)
6678 ospace_frag="config/mt-d30v"
6679 ;;
6680 :m32r-* | :d10v-* | :fr30-*)
6681 ospace_frag="config/mt-ospace"
6682 ;;
6683 no:* | :*)
6684 ;;
6685 *)
6686 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6687 ;;
6688esac
6689
a0da8069
NN
6690# Some systems (e.g., one of the i386-aix systems the gas testers are
6691# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6692tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6693build_tooldir=${tooldir}
6694
a0da8069
NN
6695# Create a .gdbinit file which runs the one in srcdir
6696# and tells GDB to look there for source files.
6697
6698if test -r ${srcdir}/.gdbinit ; then
6699 case ${srcdir} in
6700 .) ;;
6701 *) cat > ./.gdbinit <<EOF
6702# ${NO_EDIT}
6703dir ${srcdir}
6704dir .
6705source ${srcdir}/.gdbinit
6706EOF
6707 ;;
6708 esac
6709fi
6710
a0da8069
NN
6711# Make sure that the compiler is able to generate an executable. If it
6712# can't, we are probably in trouble. We don't care whether we can run the
6713# executable--we might be using a cross compiler--we only care whether it
6714# can be created. At this point the main configure script has set CC.
6715we_are_ok=no
6716echo "int main () { return 0; }" > conftest.c
6717${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6718if test $? = 0 ; then
6719 if test -s conftest || test -s conftest.exe ; then
6720 we_are_ok=yes
6721 fi
c6b750e1 6722fi
a0da8069
NN
6723case $we_are_ok in
6724 no)
6725 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6726 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6727 rm -f conftest*
6728 exit 1
6729 ;;
6730esac
6731rm -f conftest*
6732
3bbd2f8f 6733# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6734case "${host}" in
6735 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6736 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6737 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6738 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6739esac
6740
3bbd2f8f 6741# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6742# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6743# built executables to PATH.
3bbd2f8f
AL
6744if test "$RPATH_ENVVAR" = PATH; then
6745 GCC_SHLIB_SUBDIR=/shlib
6746else
6747 GCC_SHLIB_SUBDIR=
6748fi
6749
a0da8069
NN
6750# Record target_configdirs and the configure arguments for target and
6751# build configuration in Makefile.
6752target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6753build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6754
2aa2364a
JR
6755# If we are building libgomp, bootstrap it.
6756if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6757 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6758fi
6759
a0da8069
NN
6760# Determine whether gdb needs tk/tcl or not.
6761# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6762# and in that case we want gdb to be built without tk. Ugh!
6763# In fact I believe gdb is the *only* package directly dependent on tk,
6764# so we should be able to put the 'maybe's in unconditionally and
6765# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6766# 100% sure that that's safe though.
c180f501 6767
675c6968 6768gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6769case "$enable_gdbtk" in
6770 no)
6771 GDB_TK="" ;;
c180f501
AC
6772 yes)
6773 GDB_TK="${gdb_tk}" ;;
a0da8069 6774 *)
c180f501
AC
6775 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6776 # distro. Eventually someone will fix this and move Insight, nee
6777 # gdbtk to a separate directory.
6778 if test -d ${srcdir}/gdb/gdbtk ; then
6779 GDB_TK="${gdb_tk}"
6780 else
6781 GDB_TK=""
6782 fi
6783 ;;
a0da8069 6784esac
907be67c
DJ
6785CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6786INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6787
6bd3dfaa 6788# Strip out unwanted targets.
dd12c3a8
NN
6789
6790# While at that, we remove Makefiles if we were started for recursive
6791# configuration, so that the top-level Makefile reconfigures them,
6792# like we used to do when configure itself was recursive.
dd12c3a8 6793
06a51eac
RW
6794# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6795# but now we're fixing up the Makefile ourselves with the additional
6796# commands passed to AC_CONFIG_FILES. Use separate variables
6797# extrasub-{build,host,target} not because there is any reason to split
6798# the substitutions up that way, but only to remain below the limit of
6799# 99 commands in a script, for HP-UX sed.
6800# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6801
16b1ad29
RW
6802case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6803 yes:yes:*\ gold\ *:*,c++,*) ;;
6804 yes:yes:*\ gold\ *:*)
6805 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6806 ;;
6807esac
6808
9cb3fa6f 6809# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 6810case $enable_bootstrap in
319cab08 6811 yes)
96655cc4
AO
6812 bootstrap_suffix=bootstrap
6813 BUILD_CONFIG=bootstrap-debug
6814 ;;
319cab08 6815 no)
96655cc4
AO
6816 bootstrap_suffix=no-bootstrap
6817 BUILD_CONFIG=
6818 ;;
319cab08
PB
6819esac
6820
96655cc4
AO
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6822$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6823
6824
6825# Check whether --with-build-config was given.
6826if test "${with_build_config+set}" = set; then :
6827 withval=$with_build_config; case $with_build_config in
6828 yes) with_build_config= ;;
6829 no) with_build_config= BUILD_CONFIG= ;;
6830 esac
6831fi
6832
6833
6834if test "x${with_build_config}" != x; then
6835 BUILD_CONFIG=$with_build_config
6836else
6837 case $BUILD_CONFIG in
6838 bootstrap-debug)
6839 if echo "int f (void) { return 0; }" > conftest.c &&
6840 ${CC} -c conftest.c &&
6841 mv conftest.o conftest.o.g0 &&
6842 ${CC} -c -g conftest.c &&
6843 mv conftest.o conftest.o.g &&
a009f2e7 6844 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
6845 :
6846 else
6847 BUILD_CONFIG=
6848 fi
6849 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6850 ;;
6851 esac
6852fi
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6854$as_echo "$BUILD_CONFIG" >&6; }
6855
6856
06a51eac 6857extrasub_build=
6a9cf61e 6858for module in ${build_configdirs} ; do
498d4a71
CF
6859 if test -z "${no_recursion}" \
6860 && test -f ${build_subdir}/${module}/Makefile; then
6861 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6862 rm -f ${build_subdir}/${module}/Makefile
6863 fi
06a51eac 6864 extrasub_build="$extrasub_build
498d4a71
CF
6865/^@if build-$module\$/d
6866/^@endif build-$module\$/d
6867/^@if build-$module-$bootstrap_suffix\$/d
6868/^@endif build-$module-$bootstrap_suffix\$/d"
6869done
06a51eac 6870extrasub_host=
498d4a71 6871for module in ${configdirs} ; do
80911fe1 6872 if test -z "${no_recursion}"; then
8cf39b1b 6873 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6874 if test -f ${file}; then
6875 echo 1>&2 "*** removing ${file} to force reconfigure"
6876 rm -f ${file}
6877 fi
6878 done
498d4a71 6879 fi
06a51eac 6880 extrasub_host="$extrasub_host
498d4a71
CF
6881/^@if $module\$/d
6882/^@endif $module\$/d
6883/^@if $module-$bootstrap_suffix\$/d
6884/^@endif $module-$bootstrap_suffix\$/d"
6885done
06a51eac 6886extrasub_target=
498d4a71
CF
6887for module in ${target_configdirs} ; do
6888 if test -z "${no_recursion}" \
6889 && test -f ${target_subdir}/${module}/Makefile; then
6890 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6891 rm -f ${target_subdir}/${module}/Makefile
6892 fi
e8a5fa9c
RW
6893
6894 # We only bootstrap target libraries listed in bootstrap_target_libs.
6895 case $bootstrap_target_libs in
6896 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6897 *) target_bootstrap_suffix=no-bootstrap ;;
6898 esac
6899
06a51eac 6900 extrasub_target="$extrasub_target
498d4a71
CF
6901/^@if target-$module\$/d
6902/^@endif target-$module\$/d
e8a5fa9c
RW
6903/^@if target-$module-$target_bootstrap_suffix\$/d
6904/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
6905done
6906
06a51eac
RW
6907# Do the final fixup along with target modules.
6908extrasub_target="$extrasub_target
6bd3dfaa 6909/^@if /,/^@endif /d"
a0da8069
NN
6910
6911# Create the serialization dependencies. This uses a temporary file.
6912
81ecdfbb
RW
6913# Check whether --enable-serial-configure was given.
6914if test "${enable_serial_configure+set}" = set; then :
6915 enableval=$enable_serial_configure;
6916fi
e6bfb94a
AO
6917
6918
1047cb91
DD
6919case ${enable_serial_configure} in
6920 yes)
6921 enable_serial_build_configure=yes
6922 enable_serial_host_configure=yes
6923 enable_serial_target_configure=yes
6924 ;;
6925esac
6926
a0da8069
NN
6927# These force 'configure's to be done one at a time, to avoid problems
6928# with contention over a shared config.cache.
6929rm -f serdep.tmp
e6bfb94a 6930echo '# serdep.tmp' > serdep.tmp
a0da8069 6931olditem=
1047cb91 6932test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6933for item in ${build_configdirs} ; do
6934 case ${olditem} in
6935 "") ;;
e6bfb94a 6936 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6937 esac
6938 olditem=${item}
6939done
6940olditem=
1047cb91 6941test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6942for item in ${configdirs} ; do
6943 case ${olditem} in
6944 "") ;;
e6bfb94a 6945 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6946 esac
6947 olditem=${item}
6948done
6949olditem=
1047cb91 6950test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6951for item in ${target_configdirs} ; do
6952 case ${olditem} in
6953 "") ;;
e6bfb94a 6954 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6955 esac
6956 olditem=${item}
6957done
6958serialization_dependencies=serdep.tmp
6959
6960
e6bfb94a 6961# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 6962# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
6963# might not want to pass down to subconfigures. The exception being
6964# --cache-file=/dev/null, which is used to turn off the use of cache
6965# files altogether, and which should be passed on to subconfigures.
6966# Also strip program-prefix, program-suffix, and program-transform-name,
6967# so that we can pass down a consistent program-transform-name.
c6b750e1 6968baseargs=
65b4571a 6969tbaseargs=
c6b750e1
DJ
6970keep_next=no
6971skip_next=no
6972eval "set -- $ac_configure_args"
18f6b6ee
PB
6973for ac_arg
6974do
c6b750e1
DJ
6975 if test X"$skip_next" = X"yes"; then
6976 skip_next=no
6977 continue
6978 fi
6979 if test X"$keep_next" = X"yes"; then
6980 case $ac_arg in
6981 *\'*)
6982 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6983 esac
6984 baseargs="$baseargs '$ac_arg'"
65b4571a 6985 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
6986 keep_next=no
6987 continue
6988 fi
6989
6990 # Handle separated arguments. Based on the logic generated by
6991 # autoconf 2.59.
6992 case $ac_arg in
6993 *=* | --config-cache | -C | -disable-* | --disable-* \
6994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6996 | -with-* | --with-* | -without-* | --without-* | --x)
6997 separate_arg=no
6998 ;;
6999 -*)
7000 separate_arg=yes
7001 ;;
7002 *)
7003 separate_arg=no
7004 ;;
7005 esac
7006
65b4571a
AO
7007 skip_targ=no
7008 case $ac_arg in
7009
7010 --with-* | --without-*)
7011 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7012
7013 case $libopt in
7014 *[-_]include)
7015 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7016 ;;
7017 *[-_]lib)
7018 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7019 ;;
7020 *)
7021 lib=$libopt
7022 ;;
7023 esac
7024
7025
7026 case $lib in
7ec59b9e 7027 mpc | mpfr | gmp | cloog)
65b4571a
AO
7028 # If we're processing --with-$lib, --with-$lib-include or
7029 # --with-$lib-lib, for one of the libs above, and target is
7030 # different from host, don't pass the current argument to any
7031 # target library's configure.
7032 if test x$is_cross_compiler = xyes; then
7033 skip_targ=yes
7034 fi
7035 ;;
7036 esac
7037 ;;
7038 esac
7039
c6b750e1 7040 case "$ac_arg" in
30167e0a
NC
7041 --cache-file=/dev/null | \
7042 -cache-file=/dev/null )
7043 # Handled here to avoid the test to skip args below.
7044 baseargs="$baseargs '$ac_arg'"
65b4571a 7045 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7046 # Assert: $separate_arg should always be no.
7047 keep_next=$separate_arg
7048 ;;
c6b750e1
DJ
7049 --no*)
7050 continue
7051 ;;
7052 --c* | \
7053 --sr* | \
7054 --ho* | \
7055 --bu* | \
7056 --t* | \
7057 --program-* | \
7058 -cache_file* | \
7059 -srcdir* | \
7060 -host* | \
7061 -build* | \
7062 -target* | \
7063 -program-prefix* | \
7064 -program-suffix* | \
7065 -program-transform-name* )
7066 skip_next=$separate_arg
7067 continue
7068 ;;
7069 -*)
7070 # An option. Add it.
7071 case $ac_arg in
7072 *\'*)
7073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7074 esac
7075 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7076 if test X"$skip_targ" = Xno; then
7077 tbaseargs="$tbaseargs '$ac_arg'"
7078 fi
c6b750e1
DJ
7079 keep_next=$separate_arg
7080 ;;
7081 *)
7082 # Either a variable assignment, or a nonopt (triplet). Don't
7083 # pass it down; let the Makefile handle this.
7084 continue
7085 ;;
7086 esac
7087done
7088# Remove the initial space we just introduced and, as these will be
7089# expanded by make, quote '$'.
7090baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7091
f27d4f92
DJ
7092# Add in --program-transform-name, after --program-prefix and
7093# --program-suffix have been applied to it. Autoconf has already
7094# doubled dollar signs and backslashes in program_transform_name; we want
7095# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7096# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7097# Also, because we want to override the logic in subdir configure scripts to
7098# choose program_transform_name, replace any s,x,x, with s,y,y,.
7099sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7100${program_transform_name}
7101EOF_SED
7102gcc_transform_name=`cat conftestsed.out`
7103rm -f conftestsed.out
7104baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7105tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7106if test "$silent" = yes; then
7107 baseargs="$baseargs --silent"
65b4571a 7108 tbaseargs="$tbaseargs --silent"
2444379b 7109fi
34a0f3cf 7110baseargs="$baseargs --disable-option-checking"
65b4571a 7111tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7112
4074d5f2
RW
7113# Record and document user additions to sub configure arguments.
7114
7115
7116
7117
a0da8069
NN
7118# For the build-side libraries, we just need to pretend we're native,
7119# and not use the same cache file. Multilibs are neither needed nor
7120# desired.
4074d5f2 7121build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7122
7123# For host modules, accept cache file option, or specification as blank.
7124case "${cache_file}" in
7125"") # empty
7126 cache_file_option="" ;;
7127/* | [A-Za-z]:[\\/]* ) # absolute path
7128 cache_file_option="--cache-file=${cache_file}" ;;
7129*) # relative path
7130 cache_file_option="--cache-file=../${cache_file}" ;;
7131esac
7132
82252c06
NN
7133# Host dirs don't like to share a cache file either, horribly enough.
7134# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7135host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7136
65b4571a 7137target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7138
7139# Passing a --with-cross-host argument lets the target libraries know
7140# whether they are being built with a cross-compiler or being built
7141# native. However, it would be better to use other mechanisms to make the
7142# sorts of decisions they want to make on this basis. Please consider
7143# this option to be deprecated. FIXME.
7144if test x${is_cross_compiler} = xyes ; then
c6b750e1 7145 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7146fi
7147
938d2b74
RW
7148# Default to --enable-multilib.
7149if test x${enable_multilib} = x ; then
a0da8069 7150 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7151fi
a0da8069
NN
7152
7153# Pass --with-newlib if appropriate. Note that target_configdirs has
7154# changed from the earlier setting of with_newlib.
7155if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7156 target_configargs="--with-newlib ${target_configargs}"
7157fi
7158
95036d20
NN
7159# Different target subdirs use different values of certain variables
7160# (notably CXX). Worse, multilibs use *lots* of different values.
7161# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7162# it doesn't automatically accept command-line overrides of them.
7163# This means it's not safe for target subdirs to share a cache file,
7164# which is disgusting, but there you have it. Hopefully this can be
7165# fixed in future. It's still worthwhile to use a cache file for each
7166# directory. I think.
7167
ae380b45
MS
7168# Pass the appropriate --build, --host, --target and --cache-file arguments.
7169# We need to pass --target, as newer autoconf's requires consistency
7170# for target_alias and gcc doesn't manage it consistently.
4b900473 7171target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7172
a0da8069
NN
7173FLAGS_FOR_TARGET=
7174case " $target_configdirs " in
7175 *" newlib "*)
7176 case " $target_configargs " in
7177 *" --with-newlib "*)
7178 case "$target" in
1f53ca9a
AO
7179 *-cygwin*)
7180 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'
7181 ;;
a0da8069
NN
7182 esac
7183
7184 # If we're not building GCC, don't discard standard headers.
7185 if test -d ${srcdir}/gcc; then
7186 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7187
7188 if test "${build}" != "${host}"; then
7189 # On Canadian crosses, CC_FOR_TARGET will have already been set
7190 # by `configure', so we won't have an opportunity to add -Bgcc/
7191 # to it. This is right: we don't want to search that directory
7192 # for binaries, but we want the header files in there, so add
7193 # them explicitly.
e552509b 7194 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7195
7196 # Someone might think of using the pre-installed headers on
7197 # Canadian crosses, in case the installed compiler is not fully
7198 # compatible with the compiler being built. In this case, it
7199 # would be better to flag an error than risking having
7200 # incompatible object files being constructed. We can't
7201 # guarantee that an error will be flagged, but let's hope the
7202 # compiler will do it, when presented with incompatible header
7203 # files.
7204 fi
7205 fi
7206
7207 case "${target}-${is_cross_compiler}" in
ec11bdc6 7208 i[3456789]86-*-linux*-no)
a0da8069
NN
7209 # Here host == target, so we don't need to build gcc,
7210 # so we don't want to discard standard headers.
7211 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7212 ;;
7213 *)
7214 # If we're building newlib, use its generic headers last, but search
7215 # for any libc-related directories first (so make it the last -B
7216 # switch).
7217 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
7218
7219 # If we're building libgloss, find the startup file, simulator library
7220 # and linker script.
7221 case " $target_configdirs " in
7222 *" libgloss "*)
7223 # Look for startup file, simulator library and maybe linker script.
7224 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7225 # Look for libnosys.a in case the target needs it.
7226 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7227 # Most targets have the linker script in the source directory.
7228 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7229 ;;
7230 esac
a0da8069
NN
7231 ;;
7232 esac
7233 ;;
7234 esac
7235 ;;
7236esac
1f53ca9a 7237
45055374 7238case "$target" in
1f53ca9a
AO
7239 x86_64-*mingw* | *-w64-mingw*)
7240 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7241 # however, use a symlink named 'mingw' in ${prefix} .
7242 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7243 ;;
7244 *-mingw*)
7245 # MinGW can't be handled as Cygwin above since it does not use newlib.
7246 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'
7247 ;;
45055374 7248esac
a0da8069 7249
5fbad20a
DD
7250# Allow the user to override the flags for
7251# our build compiler if desired.
c66487f8
NC
7252if test x"${build}" = x"${host}" ; then
7253 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7254 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7255 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7256fi
5fbad20a 7257
a0da8069
NN
7258# On Canadian crosses, we'll be searching the right directories for
7259# the previously-installed cross compiler, so don't bother to add
7260# flags for directories within the install tree of the compiler
7261# being built; programs in there won't even run.
7262if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7263 # Search for pre-installed headers if nothing else fits.
bba45b8b 7264 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
7265fi
7266
7267if test "x${use_gnu_ld}" = x &&
7268 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7269 # Arrange for us to find uninstalled linker scripts.
b00612cc 7270 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7271fi
7272
a481dbb7
DD
7273# Search for other target-specific linker scripts and such.
7274case "${target}" in
4e206d7e
DB
7275 mep*)
7276 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7277 ;;
7278esac
7279
a0da8069 7280# Makefile fragments.
3e707e94
PB
7281for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7282do
7283 eval fragval=\$$frag
7284 if test $fragval != /dev/null; then
7285 eval $frag=${srcdir}/$fragval
7286 fi
7287done
a0da8069
NN
7288
7289
7290
7291
7292
7293# Miscellanea: directories, flags, etc.
7294
7295
7296
7297
7298
7299
7300
3bbd2f8f 7301
6a9cf61e 7302# Build module lists & subconfigure args.
a0da8069
NN
7303
7304
7305
be01d343
PB
7306# Host module lists & subconfigure args.
7307
7308
7309
911e63d0 7310
be01d343
PB
7311# Target module lists & subconfigure args.
7312
7313
7314
7315# Build tools.
7316
7317
7318
1576798e
PB
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
be01d343
PB
7333# Generate default definitions for YACC, M4, LEX and other programs that run
7334# on the build machine. These are used if the Makefile can't locate these
7335# programs in objdir.
7336MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7337
7338for ac_prog in 'bison -y' byacc yacc
7339do
c6b750e1 7340 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7341set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if test "${ac_cv_prog_YACC+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
be01d343
PB
7346else
7347 if test -n "$YACC"; then
7348 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7349else
c6b750e1
DJ
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7357 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7359 break 2
7360 fi
7361done
81ecdfbb
RW
7362 done
7363IFS=$as_save_IFS
c6b750e1 7364
be01d343
PB
7365fi
7366fi
c6b750e1 7367YACC=$ac_cv_prog_YACC
be01d343 7368if test -n "$YACC"; then
81ecdfbb
RW
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7370$as_echo "$YACC" >&6; }
be01d343 7371else
81ecdfbb
RW
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
be01d343
PB
7374fi
7375
81ecdfbb 7376
c6b750e1 7377 test -n "$YACC" && break
be01d343
PB
7378done
7379test -n "$YACC" || YACC="$MISSING bison -y"
7380
7381case " $build_configdirs " in
7382 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7383esac
7384
7385for ac_prog in bison
7386do
c6b750e1 7387 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7388set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390$as_echo_n "checking for $ac_word... " >&6; }
7391if test "${ac_cv_prog_BISON+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
be01d343
PB
7393else
7394 if test -n "$BISON"; then
7395 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7396else
c6b750e1
DJ
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7404 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7406 break 2
7407 fi
7408done
81ecdfbb
RW
7409 done
7410IFS=$as_save_IFS
c6b750e1 7411
be01d343
PB
7412fi
7413fi
c6b750e1 7414BISON=$ac_cv_prog_BISON
be01d343 7415if test -n "$BISON"; then
81ecdfbb
RW
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7417$as_echo "$BISON" >&6; }
be01d343 7418else
81ecdfbb
RW
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420$as_echo "no" >&6; }
be01d343
PB
7421fi
7422
81ecdfbb 7423
c6b750e1 7424 test -n "$BISON" && break
be01d343
PB
7425done
7426test -n "$BISON" || BISON="$MISSING bison"
7427
7428case " $build_configdirs " in
7429 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7430esac
7431
7432for ac_prog in gm4 gnum4 m4
7433do
c6b750e1 7434 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7435set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437$as_echo_n "checking for $ac_word... " >&6; }
7438if test "${ac_cv_prog_M4+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
be01d343
PB
7440else
7441 if test -n "$M4"; then
7442 ac_cv_prog_M4="$M4" # Let the user override the test.
7443else
c6b750e1
DJ
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7451 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7453 break 2
7454 fi
7455done
81ecdfbb
RW
7456 done
7457IFS=$as_save_IFS
c6b750e1 7458
be01d343
PB
7459fi
7460fi
c6b750e1 7461M4=$ac_cv_prog_M4
be01d343 7462if test -n "$M4"; then
81ecdfbb
RW
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7464$as_echo "$M4" >&6; }
be01d343 7465else
81ecdfbb
RW
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
be01d343
PB
7468fi
7469
81ecdfbb 7470
c6b750e1 7471 test -n "$M4" && break
be01d343
PB
7472done
7473test -n "$M4" || M4="$MISSING m4"
7474
7475case " $build_configdirs " in
7476 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7477esac
7478
7479for ac_prog in flex lex
7480do
c6b750e1 7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7482set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484$as_echo_n "checking for $ac_word... " >&6; }
7485if test "${ac_cv_prog_LEX+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
be01d343
PB
7487else
7488 if test -n "$LEX"; then
7489 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7490else
c6b750e1
DJ
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7498 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7500 break 2
7501 fi
7502done
81ecdfbb
RW
7503 done
7504IFS=$as_save_IFS
c6b750e1 7505
be01d343
PB
7506fi
7507fi
c6b750e1 7508LEX=$ac_cv_prog_LEX
be01d343 7509if test -n "$LEX"; then
81ecdfbb
RW
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7511$as_echo "$LEX" >&6; }
be01d343 7512else
81ecdfbb
RW
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
be01d343
PB
7515fi
7516
81ecdfbb 7517
c6b750e1 7518 test -n "$LEX" && break
be01d343
PB
7519done
7520test -n "$LEX" || LEX="$MISSING flex"
7521
7522case " $build_configdirs " in
7523 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7524 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7525esac
7526
7527for ac_prog in flex
7528do
c6b750e1 7529 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7530set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532$as_echo_n "checking for $ac_word... " >&6; }
7533if test "${ac_cv_prog_FLEX+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
be01d343
PB
7535else
7536 if test -n "$FLEX"; then
7537 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7538else
c6b750e1
DJ
7539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7546 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7548 break 2
7549 fi
7550done
81ecdfbb
RW
7551 done
7552IFS=$as_save_IFS
c6b750e1 7553
be01d343
PB
7554fi
7555fi
c6b750e1 7556FLEX=$ac_cv_prog_FLEX
be01d343 7557if test -n "$FLEX"; then
81ecdfbb
RW
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7559$as_echo "$FLEX" >&6; }
be01d343 7560else
81ecdfbb
RW
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562$as_echo "no" >&6; }
be01d343
PB
7563fi
7564
81ecdfbb 7565
c6b750e1 7566 test -n "$FLEX" && break
be01d343
PB
7567done
7568test -n "$FLEX" || FLEX="$MISSING flex"
7569
7570case " $build_configdirs " in
7571 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7572esac
7573
7574for ac_prog in makeinfo
7575do
c6b750e1 7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7577set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
7580if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
be01d343
PB
7582else
7583 if test -n "$MAKEINFO"; then
7584 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7585else
c6b750e1
DJ
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7593 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7595 break 2
7596 fi
7597done
81ecdfbb
RW
7598 done
7599IFS=$as_save_IFS
c6b750e1 7600
be01d343
PB
7601fi
7602fi
c6b750e1 7603MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7604if test -n "$MAKEINFO"; then
81ecdfbb
RW
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7606$as_echo "$MAKEINFO" >&6; }
be01d343 7607else
81ecdfbb
RW
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
be01d343
PB
7610fi
7611
81ecdfbb 7612
c6b750e1 7613 test -n "$MAKEINFO" && break
be01d343
PB
7614done
7615test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7616
7617case " $build_configdirs " in
7618 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7619 *)
7620
10ad8ef3 7621 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7622 # higher, else we use the "missing" dummy.
7623 if ${MAKEINFO} --version \
10ad8ef3 7624 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7625 :
7626 else
7627 MAKEINFO="$MISSING makeinfo"
7628 fi
7629 ;;
7630
7631esac
a0da8069 7632
be01d343 7633# FIXME: expect and dejagnu may become build tools?
a0da8069 7634
be01d343
PB
7635for ac_prog in expect
7636do
c6b750e1 7637 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7638set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640$as_echo_n "checking for $ac_word... " >&6; }
7641if test "${ac_cv_prog_EXPECT+set}" = set; then :
7642 $as_echo_n "(cached) " >&6
be01d343
PB
7643else
7644 if test -n "$EXPECT"; then
7645 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7646else
c6b750e1
DJ
7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7654 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7656 break 2
7657 fi
7658done
81ecdfbb
RW
7659 done
7660IFS=$as_save_IFS
c6b750e1 7661
be01d343
PB
7662fi
7663fi
c6b750e1 7664EXPECT=$ac_cv_prog_EXPECT
be01d343 7665if test -n "$EXPECT"; then
81ecdfbb
RW
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7667$as_echo "$EXPECT" >&6; }
be01d343 7668else
81ecdfbb
RW
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670$as_echo "no" >&6; }
be01d343 7671fi
a0da8069 7672
81ecdfbb 7673
c6b750e1 7674 test -n "$EXPECT" && break
be01d343
PB
7675done
7676test -n "$EXPECT" || EXPECT="expect"
a0da8069 7677
be01d343
PB
7678case " $configdirs " in
7679 *" expect "*)
7680 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7681 ;;
7682esac
a0da8069 7683
be01d343
PB
7684for ac_prog in runtest
7685do
c6b750e1 7686 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7687set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689$as_echo_n "checking for $ac_word... " >&6; }
7690if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7691 $as_echo_n "(cached) " >&6
be01d343
PB
7692else
7693 if test -n "$RUNTEST"; then
7694 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7695else
c6b750e1
DJ
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7703 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7705 break 2
7706 fi
7707done
81ecdfbb
RW
7708 done
7709IFS=$as_save_IFS
c6b750e1 7710
be01d343
PB
7711fi
7712fi
c6b750e1 7713RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7714if test -n "$RUNTEST"; then
81ecdfbb
RW
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7716$as_echo "$RUNTEST" >&6; }
be01d343 7717else
81ecdfbb
RW
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719$as_echo "no" >&6; }
be01d343 7720fi
a0da8069 7721
81ecdfbb 7722
c6b750e1 7723 test -n "$RUNTEST" && break
be01d343
PB
7724done
7725test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7726
be01d343
PB
7727case " $configdirs " in
7728 *" dejagnu "*)
6b89cc21 7729 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7730 ;;
7731esac
a0da8069
NN
7732
7733
a0da8069 7734# Host tools.
859789af
AC
7735ncn_tool_prefix=
7736test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7737ncn_target_tool_prefix=
7738test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7739
9a819804
AO
7740
7741
7742if test -n "$AR"; then
7743 ac_cv_prog_AR=$AR
7744elif test -n "$ac_cv_prog_AR"; then
7745 AR=$ac_cv_prog_AR
7746fi
7747
7748if test -n "$ac_cv_prog_AR"; then
7749 for ncn_progname in ar; do
7750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7751set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753$as_echo_n "checking for $ac_word... " >&6; }
7754if test "${ac_cv_prog_AR+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
9a819804
AO
7756else
7757 if test -n "$AR"; then
7758 ac_cv_prog_AR="$AR" # Let the user override the test.
7759else
7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7767 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7769 break 2
7770 fi
7771done
81ecdfbb
RW
7772 done
7773IFS=$as_save_IFS
9a819804
AO
7774
7775fi
7776fi
7777AR=$ac_cv_prog_AR
7778if test -n "$AR"; then
81ecdfbb
RW
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7780$as_echo "$AR" >&6; }
9a819804 7781else
81ecdfbb
RW
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783$as_echo "no" >&6; }
9a819804
AO
7784fi
7785
81ecdfbb 7786
9a819804
AO
7787 done
7788fi
7789
7790for ncn_progname in ar; do
05cbd757
PB
7791 if test -n "$ncn_tool_prefix"; then
7792 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7793set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795$as_echo_n "checking for $ac_word... " >&6; }
7796if test "${ac_cv_prog_AR+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
859789af
AC
7798else
7799 if test -n "$AR"; then
7800 ac_cv_prog_AR="$AR" # Let the user override the test.
7801else
c6b750e1
DJ
7802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7809 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7811 break 2
7812 fi
7813done
81ecdfbb
RW
7814 done
7815IFS=$as_save_IFS
c6b750e1 7816
859789af
AC
7817fi
7818fi
c6b750e1 7819AR=$ac_cv_prog_AR
859789af 7820if test -n "$AR"; then
81ecdfbb
RW
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7822$as_echo "$AR" >&6; }
859789af 7823else
81ecdfbb
RW
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825$as_echo "no" >&6; }
859789af
AC
7826fi
7827
81ecdfbb 7828
05cbd757
PB
7829 fi
7830 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7832set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834$as_echo_n "checking for $ac_word... " >&6; }
7835if test "${ac_cv_prog_AR+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
859789af 7837else
05cbd757
PB
7838 if test -n "$AR"; then
7839 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7840else
c6b750e1
DJ
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7848 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7850 break 2
7851 fi
7852done
81ecdfbb
RW
7853 done
7854IFS=$as_save_IFS
c6b750e1 7855
859789af
AC
7856fi
7857fi
c6b750e1 7858AR=$ac_cv_prog_AR
05cbd757 7859if test -n "$AR"; then
81ecdfbb
RW
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7861$as_echo "$AR" >&6; }
859789af 7862else
81ecdfbb
RW
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864$as_echo "no" >&6; }
859789af 7865fi
c6b750e1 7866
81ecdfbb 7867
05cbd757
PB
7868 fi
7869 test -n "$ac_cv_prog_AR" && break
7870done
7871
7872if test -z "$ac_cv_prog_AR" ; then
7873 set dummy ar
7874 if test $build = $host ; then
7875 AR="$2"
859789af 7876 else
05cbd757 7877 AR="${ncn_tool_prefix}$2"
859789af 7878 fi
859789af
AC
7879fi
7880
9a819804
AO
7881
7882
7883if test -n "$AS"; then
7884 ac_cv_prog_AS=$AS
7885elif test -n "$ac_cv_prog_AS"; then
7886 AS=$ac_cv_prog_AS
7887fi
7888
7889if test -n "$ac_cv_prog_AS"; then
7890 for ncn_progname in as; do
7891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7892set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
7895if test "${ac_cv_prog_AS+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
9a819804
AO
7897else
7898 if test -n "$AS"; then
7899 ac_cv_prog_AS="$AS" # Let the user override the test.
7900else
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7908 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7910 break 2
7911 fi
7912done
81ecdfbb
RW
7913 done
7914IFS=$as_save_IFS
9a819804
AO
7915
7916fi
7917fi
7918AS=$ac_cv_prog_AS
7919if test -n "$AS"; then
81ecdfbb
RW
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7921$as_echo "$AS" >&6; }
9a819804 7922else
81ecdfbb
RW
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
9a819804
AO
7925fi
7926
81ecdfbb 7927
9a819804
AO
7928 done
7929fi
7930
7931for ncn_progname in as; do
05cbd757
PB
7932 if test -n "$ncn_tool_prefix"; then
7933 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7934set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936$as_echo_n "checking for $ac_word... " >&6; }
7937if test "${ac_cv_prog_AS+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
859789af
AC
7939else
7940 if test -n "$AS"; then
7941 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
7942else
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7950 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7952 break 2
7953 fi
7954done
81ecdfbb
RW
7955 done
7956IFS=$as_save_IFS
c6b750e1 7957
859789af
AC
7958fi
7959fi
c6b750e1 7960AS=$ac_cv_prog_AS
859789af 7961if test -n "$AS"; then
81ecdfbb
RW
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7963$as_echo "$AS" >&6; }
859789af 7964else
81ecdfbb
RW
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966$as_echo "no" >&6; }
859789af
AC
7967fi
7968
81ecdfbb 7969
05cbd757
PB
7970 fi
7971 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7973set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
7976if test "${ac_cv_prog_AS+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
859789af 7978else
05cbd757
PB
7979 if test -n "$AS"; then
7980 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 7981else
c6b750e1
DJ
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7989 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7991 break 2
7992 fi
7993done
81ecdfbb
RW
7994 done
7995IFS=$as_save_IFS
c6b750e1 7996
859789af
AC
7997fi
7998fi
c6b750e1 7999AS=$ac_cv_prog_AS
05cbd757 8000if test -n "$AS"; then
81ecdfbb
RW
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8002$as_echo "$AS" >&6; }
859789af 8003else
81ecdfbb
RW
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
859789af 8006fi
c6b750e1 8007
81ecdfbb 8008
05cbd757
PB
8009 fi
8010 test -n "$ac_cv_prog_AS" && break
8011done
8012
8013if test -z "$ac_cv_prog_AS" ; then
8014 set dummy as
8015 if test $build = $host ; then
8016 AS="$2"
859789af 8017 else
05cbd757 8018 AS="${ncn_tool_prefix}$2"
859789af 8019 fi
859789af
AC
8020fi
8021
9a819804
AO
8022
8023
8024if test -n "$DLLTOOL"; then
8025 ac_cv_prog_DLLTOOL=$DLLTOOL
8026elif test -n "$ac_cv_prog_DLLTOOL"; then
8027 DLLTOOL=$ac_cv_prog_DLLTOOL
8028fi
8029
8030if test -n "$ac_cv_prog_DLLTOOL"; then
8031 for ncn_progname in dlltool; do
8032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8033set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035$as_echo_n "checking for $ac_word... " >&6; }
8036if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
9a819804
AO
8038else
8039 if test -n "$DLLTOOL"; then
8040 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8041else
8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8049 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8051 break 2
8052 fi
8053done
81ecdfbb
RW
8054 done
8055IFS=$as_save_IFS
9a819804
AO
8056
8057fi
8058fi
8059DLLTOOL=$ac_cv_prog_DLLTOOL
8060if test -n "$DLLTOOL"; then
81ecdfbb
RW
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8062$as_echo "$DLLTOOL" >&6; }
9a819804 8063else
81ecdfbb
RW
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
9a819804
AO
8066fi
8067
81ecdfbb 8068
9a819804
AO
8069 done
8070fi
8071
8072for ncn_progname in dlltool; do
05cbd757
PB
8073 if test -n "$ncn_tool_prefix"; then
8074 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8075set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077$as_echo_n "checking for $ac_word... " >&6; }
8078if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
859789af
AC
8080else
8081 if test -n "$DLLTOOL"; then
8082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8083else
c6b750e1
DJ
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8091 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8093 break 2
8094 fi
8095done
81ecdfbb
RW
8096 done
8097IFS=$as_save_IFS
c6b750e1 8098
859789af
AC
8099fi
8100fi
c6b750e1 8101DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8102if test -n "$DLLTOOL"; then
81ecdfbb
RW
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8104$as_echo "$DLLTOOL" >&6; }
859789af 8105else
81ecdfbb
RW
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107$as_echo "no" >&6; }
859789af
AC
8108fi
8109
81ecdfbb 8110
05cbd757
PB
8111 fi
8112 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8114set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116$as_echo_n "checking for $ac_word... " >&6; }
8117if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
859789af 8119else
05cbd757
PB
8120 if test -n "$DLLTOOL"; then
8121 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8122else
c6b750e1
DJ
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8130 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8132 break 2
8133 fi
8134done
81ecdfbb
RW
8135 done
8136IFS=$as_save_IFS
c6b750e1 8137
859789af
AC
8138fi
8139fi
c6b750e1 8140DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8141if test -n "$DLLTOOL"; then
81ecdfbb
RW
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8143$as_echo "$DLLTOOL" >&6; }
859789af 8144else
81ecdfbb
RW
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146$as_echo "no" >&6; }
859789af 8147fi
c6b750e1 8148
81ecdfbb 8149
05cbd757
PB
8150 fi
8151 test -n "$ac_cv_prog_DLLTOOL" && break
8152done
8153
8154if test -z "$ac_cv_prog_DLLTOOL" ; then
8155 set dummy dlltool
8156 if test $build = $host ; then
8157 DLLTOOL="$2"
859789af 8158 else
05cbd757 8159 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8160 fi
859789af
AC
8161fi
8162
9a819804
AO
8163
8164
8165if test -n "$LD"; then
8166 ac_cv_prog_LD=$LD
8167elif test -n "$ac_cv_prog_LD"; then
8168 LD=$ac_cv_prog_LD
8169fi
8170
8171if test -n "$ac_cv_prog_LD"; then
8172 for ncn_progname in ld; do
8173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8174set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176$as_echo_n "checking for $ac_word... " >&6; }
8177if test "${ac_cv_prog_LD+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
9a819804
AO
8179else
8180 if test -n "$LD"; then
8181 ac_cv_prog_LD="$LD" # Let the user override the test.
8182else
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8190 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8192 break 2
8193 fi
8194done
81ecdfbb
RW
8195 done
8196IFS=$as_save_IFS
9a819804
AO
8197
8198fi
8199fi
8200LD=$ac_cv_prog_LD
8201if test -n "$LD"; then
81ecdfbb
RW
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8203$as_echo "$LD" >&6; }
9a819804 8204else
81ecdfbb
RW
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
9a819804
AO
8207fi
8208
81ecdfbb 8209
9a819804
AO
8210 done
8211fi
8212
8213for ncn_progname in ld; do
05cbd757
PB
8214 if test -n "$ncn_tool_prefix"; then
8215 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8216set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218$as_echo_n "checking for $ac_word... " >&6; }
8219if test "${ac_cv_prog_LD+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
859789af
AC
8221else
8222 if test -n "$LD"; then
8223 ac_cv_prog_LD="$LD" # Let the user override the test.
8224else
c6b750e1
DJ
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8232 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8234 break 2
8235 fi
8236done
81ecdfbb
RW
8237 done
8238IFS=$as_save_IFS
c6b750e1 8239
859789af
AC
8240fi
8241fi
c6b750e1 8242LD=$ac_cv_prog_LD
859789af 8243if test -n "$LD"; then
81ecdfbb
RW
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8245$as_echo "$LD" >&6; }
859789af 8246else
81ecdfbb
RW
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248$as_echo "no" >&6; }
859789af
AC
8249fi
8250
81ecdfbb 8251
05cbd757
PB
8252 fi
8253 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8255set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257$as_echo_n "checking for $ac_word... " >&6; }
8258if test "${ac_cv_prog_LD+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
859789af 8260else
05cbd757
PB
8261 if test -n "$LD"; then
8262 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8263else
c6b750e1
DJ
8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265for as_dir in $PATH
8266do
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8271 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8273 break 2
8274 fi
8275done
81ecdfbb
RW
8276 done
8277IFS=$as_save_IFS
c6b750e1 8278
859789af
AC
8279fi
8280fi
c6b750e1 8281LD=$ac_cv_prog_LD
05cbd757 8282if test -n "$LD"; then
81ecdfbb
RW
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8284$as_echo "$LD" >&6; }
859789af 8285else
81ecdfbb
RW
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287$as_echo "no" >&6; }
859789af 8288fi
c6b750e1 8289
81ecdfbb 8290
05cbd757
PB
8291 fi
8292 test -n "$ac_cv_prog_LD" && break
8293done
8294
8295if test -z "$ac_cv_prog_LD" ; then
8296 set dummy ld
8297 if test $build = $host ; then
8298 LD="$2"
859789af 8299 else
05cbd757 8300 LD="${ncn_tool_prefix}$2"
859789af 8301 fi
859789af
AC
8302fi
8303
9a819804
AO
8304
8305
8306if test -n "$LIPO"; then
8307 ac_cv_prog_LIPO=$LIPO
8308elif test -n "$ac_cv_prog_LIPO"; then
8309 LIPO=$ac_cv_prog_LIPO
8310fi
8311
8312if test -n "$ac_cv_prog_LIPO"; then
8313 for ncn_progname in lipo; do
8314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8315set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317$as_echo_n "checking for $ac_word... " >&6; }
8318if test "${ac_cv_prog_LIPO+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
9a819804
AO
8320else
8321 if test -n "$LIPO"; then
8322 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8323else
8324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8331 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8333 break 2
8334 fi
8335done
81ecdfbb
RW
8336 done
8337IFS=$as_save_IFS
9a819804
AO
8338
8339fi
8340fi
8341LIPO=$ac_cv_prog_LIPO
8342if test -n "$LIPO"; then
81ecdfbb
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8344$as_echo "$LIPO" >&6; }
9a819804 8345else
81ecdfbb
RW
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347$as_echo "no" >&6; }
9a819804
AO
8348fi
8349
81ecdfbb 8350
9a819804
AO
8351 done
8352fi
8353
8354for ncn_progname in lipo; do
be01d343
PB
8355 if test -n "$ncn_tool_prefix"; then
8356 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8357set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359$as_echo_n "checking for $ac_word... " >&6; }
8360if test "${ac_cv_prog_LIPO+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
be01d343
PB
8362else
8363 if test -n "$LIPO"; then
8364 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8365else
c6b750e1
DJ
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8373 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8375 break 2
8376 fi
8377done
81ecdfbb
RW
8378 done
8379IFS=$as_save_IFS
c6b750e1 8380
be01d343
PB
8381fi
8382fi
c6b750e1 8383LIPO=$ac_cv_prog_LIPO
be01d343 8384if test -n "$LIPO"; then
81ecdfbb
RW
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8386$as_echo "$LIPO" >&6; }
be01d343 8387else
81ecdfbb
RW
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389$as_echo "no" >&6; }
be01d343
PB
8390fi
8391
81ecdfbb 8392
be01d343
PB
8393 fi
8394 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8396set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398$as_echo_n "checking for $ac_word... " >&6; }
8399if test "${ac_cv_prog_LIPO+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
be01d343
PB
8401else
8402 if test -n "$LIPO"; then
8403 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8404else
c6b750e1
DJ
8405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406for as_dir in $PATH
8407do
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8412 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8414 break 2
8415 fi
8416done
81ecdfbb
RW
8417 done
8418IFS=$as_save_IFS
c6b750e1 8419
be01d343
PB
8420fi
8421fi
c6b750e1 8422LIPO=$ac_cv_prog_LIPO
be01d343 8423if test -n "$LIPO"; then
81ecdfbb
RW
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8425$as_echo "$LIPO" >&6; }
be01d343 8426else
81ecdfbb
RW
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428$as_echo "no" >&6; }
be01d343 8429fi
c6b750e1 8430
81ecdfbb 8431
be01d343
PB
8432 fi
8433 test -n "$ac_cv_prog_LIPO" && break
8434done
8435
8436if test -z "$ac_cv_prog_LIPO" ; then
8437 set dummy lipo
8438 if test $build = $host ; then
8439 LIPO="$2"
8440 else
8441 LIPO="${ncn_tool_prefix}$2"
8442 fi
8443fi
8444
9a819804
AO
8445
8446
8447if test -n "$NM"; then
8448 ac_cv_prog_NM=$NM
8449elif test -n "$ac_cv_prog_NM"; then
8450 NM=$ac_cv_prog_NM
8451fi
8452
8453if test -n "$ac_cv_prog_NM"; then
8454 for ncn_progname in nm; do
8455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8456set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458$as_echo_n "checking for $ac_word... " >&6; }
8459if test "${ac_cv_prog_NM+set}" = set; then :
8460 $as_echo_n "(cached) " >&6
859789af
AC
8461else
8462 if test -n "$NM"; then
8463 ac_cv_prog_NM="$NM" # Let the user override the test.
8464else
c6b750e1
DJ
8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466for as_dir in $PATH
8467do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8472 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8474 break 2
8475 fi
8476done
81ecdfbb
RW
8477 done
8478IFS=$as_save_IFS
c6b750e1 8479
859789af
AC
8480fi
8481fi
c6b750e1 8482NM=$ac_cv_prog_NM
859789af 8483if test -n "$NM"; then
81ecdfbb
RW
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8485$as_echo "$NM" >&6; }
859789af 8486else
81ecdfbb
RW
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
859789af
AC
8489fi
8490
81ecdfbb 8491
9a819804
AO
8492 done
8493fi
8494
8495for ncn_progname in nm; do
8496 if test -n "$ncn_tool_prefix"; then
8497 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8498set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500$as_echo_n "checking for $ac_word... " >&6; }
8501if test "${ac_cv_prog_NM+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
859789af 8503else
05cbd757
PB
8504 if test -n "$NM"; then
8505 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8506else
c6b750e1
DJ
8507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8514 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8516 break 2
8517 fi
8518done
81ecdfbb
RW
8519 done
8520IFS=$as_save_IFS
c6b750e1 8521
859789af
AC
8522fi
8523fi
c6b750e1 8524NM=$ac_cv_prog_NM
05cbd757 8525if test -n "$NM"; then
81ecdfbb
RW
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8527$as_echo "$NM" >&6; }
859789af 8528else
81ecdfbb
RW
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530$as_echo "no" >&6; }
859789af 8531fi
c6b750e1 8532
81ecdfbb 8533
05cbd757 8534 fi
9a819804
AO
8535 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8537set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539$as_echo_n "checking for $ac_word... " >&6; }
8540if test "${ac_cv_prog_NM+set}" = set; then :
8541 $as_echo_n "(cached) " >&6
9a819804
AO
8542else
8543 if test -n "$NM"; then
8544 ac_cv_prog_NM="$NM" # Let the user override the test.
8545else
8546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547for as_dir in $PATH
8548do
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8553 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8555 break 2
8556 fi
8557done
81ecdfbb
RW
8558 done
8559IFS=$as_save_IFS
9a819804
AO
8560
8561fi
8562fi
8563NM=$ac_cv_prog_NM
8564if test -n "$NM"; then
81ecdfbb
RW
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8566$as_echo "$NM" >&6; }
9a819804 8567else
81ecdfbb
RW
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569$as_echo "no" >&6; }
9a819804
AO
8570fi
8571
81ecdfbb 8572
9a819804
AO
8573 fi
8574 test -n "$ac_cv_prog_NM" && break
8575done
8576
8577if test -z "$ac_cv_prog_NM" ; then
8578 set dummy nm
8579 if test $build = $host ; then
8580 NM="$2"
8581 else
8582 NM="${ncn_tool_prefix}$2"
8583 fi
8584fi
8585
8586
8587
8588if test -n "$RANLIB"; then
8589 ac_cv_prog_RANLIB=$RANLIB
8590elif test -n "$ac_cv_prog_RANLIB"; then
8591 RANLIB=$ac_cv_prog_RANLIB
8592fi
8593
8594if test -n "$ac_cv_prog_RANLIB"; then
8595 for ncn_progname in ranlib; do
8596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8597set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599$as_echo_n "checking for $ac_word... " >&6; }
8600if test "${ac_cv_prog_RANLIB+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
9a819804
AO
8602else
8603 if test -n "$RANLIB"; then
8604 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8605else
8606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607for as_dir in $PATH
8608do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8613 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8615 break 2
8616 fi
8617done
81ecdfbb
RW
8618 done
8619IFS=$as_save_IFS
9a819804
AO
8620
8621fi
8622fi
8623RANLIB=$ac_cv_prog_RANLIB
8624if test -n "$RANLIB"; then
81ecdfbb
RW
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8626$as_echo "$RANLIB" >&6; }
9a819804 8627else
81ecdfbb
RW
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
9a819804
AO
8630fi
8631
81ecdfbb 8632
9a819804
AO
8633 done
8634fi
859789af 8635
9a819804 8636for ncn_progname in ranlib; do
05cbd757
PB
8637 if test -n "$ncn_tool_prefix"; then
8638 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8639set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641$as_echo_n "checking for $ac_word... " >&6; }
8642if test "${ac_cv_prog_RANLIB+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
859789af
AC
8644else
8645 if test -n "$RANLIB"; then
8646 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8647else
c6b750e1
DJ
8648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8655 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8657 break 2
8658 fi
8659done
81ecdfbb
RW
8660 done
8661IFS=$as_save_IFS
c6b750e1 8662
859789af
AC
8663fi
8664fi
c6b750e1 8665RANLIB=$ac_cv_prog_RANLIB
859789af 8666if test -n "$RANLIB"; then
81ecdfbb
RW
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8668$as_echo "$RANLIB" >&6; }
859789af 8669else
81ecdfbb
RW
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671$as_echo "no" >&6; }
859789af
AC
8672fi
8673
81ecdfbb 8674
05cbd757
PB
8675 fi
8676 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8678set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680$as_echo_n "checking for $ac_word... " >&6; }
8681if test "${ac_cv_prog_RANLIB+set}" = set; then :
8682 $as_echo_n "(cached) " >&6
859789af 8683else
05cbd757
PB
8684 if test -n "$RANLIB"; then
8685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8686else
c6b750e1
DJ
8687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688for as_dir in $PATH
8689do
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8694 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8696 break 2
8697 fi
8698done
81ecdfbb
RW
8699 done
8700IFS=$as_save_IFS
c6b750e1 8701
859789af
AC
8702fi
8703fi
c6b750e1 8704RANLIB=$ac_cv_prog_RANLIB
05cbd757 8705if test -n "$RANLIB"; then
81ecdfbb
RW
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8707$as_echo "$RANLIB" >&6; }
859789af 8708else
81ecdfbb
RW
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710$as_echo "no" >&6; }
859789af 8711fi
c6b750e1 8712
81ecdfbb 8713
859789af 8714 fi
05cbd757
PB
8715 test -n "$ac_cv_prog_RANLIB" && break
8716done
8717
8718if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8719 RANLIB="true"
859789af
AC
8720fi
8721
9a819804
AO
8722
8723
8724if test -n "$STRIP"; then
8725 ac_cv_prog_STRIP=$STRIP
8726elif test -n "$ac_cv_prog_STRIP"; then
8727 STRIP=$ac_cv_prog_STRIP
8728fi
8729
8730if test -n "$ac_cv_prog_STRIP"; then
8731 for ncn_progname in strip; do
8732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8733set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735$as_echo_n "checking for $ac_word... " >&6; }
8736if test "${ac_cv_prog_STRIP+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
9a819804
AO
8738else
8739 if test -n "$STRIP"; then
8740 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8741else
8742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743for as_dir in $PATH
8744do
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8749 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8751 break 2
8752 fi
8753done
81ecdfbb
RW
8754 done
8755IFS=$as_save_IFS
9a819804
AO
8756
8757fi
8758fi
8759STRIP=$ac_cv_prog_STRIP
8760if test -n "$STRIP"; then
81ecdfbb
RW
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8762$as_echo "$STRIP" >&6; }
9a819804 8763else
81ecdfbb
RW
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765$as_echo "no" >&6; }
9a819804
AO
8766fi
8767
81ecdfbb 8768
9a819804
AO
8769 done
8770fi
8771
8772for ncn_progname in strip; do
be01d343
PB
8773 if test -n "$ncn_tool_prefix"; then
8774 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8775set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777$as_echo_n "checking for $ac_word... " >&6; }
8778if test "${ac_cv_prog_STRIP+set}" = set; then :
8779 $as_echo_n "(cached) " >&6
be01d343
PB
8780else
8781 if test -n "$STRIP"; then
8782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8783else
c6b750e1
DJ
8784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785for as_dir in $PATH
8786do
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8791 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8793 break 2
8794 fi
8795done
81ecdfbb
RW
8796 done
8797IFS=$as_save_IFS
c6b750e1 8798
be01d343
PB
8799fi
8800fi
c6b750e1 8801STRIP=$ac_cv_prog_STRIP
be01d343 8802if test -n "$STRIP"; then
81ecdfbb
RW
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8804$as_echo "$STRIP" >&6; }
be01d343 8805else
81ecdfbb
RW
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807$as_echo "no" >&6; }
be01d343
PB
8808fi
8809
81ecdfbb 8810
be01d343
PB
8811 fi
8812 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8814set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816$as_echo_n "checking for $ac_word... " >&6; }
8817if test "${ac_cv_prog_STRIP+set}" = set; then :
8818 $as_echo_n "(cached) " >&6
be01d343
PB
8819else
8820 if test -n "$STRIP"; then
8821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8822else
c6b750e1
DJ
8823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824for as_dir in $PATH
8825do
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8830 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8832 break 2
8833 fi
8834done
81ecdfbb
RW
8835 done
8836IFS=$as_save_IFS
c6b750e1 8837
be01d343
PB
8838fi
8839fi
c6b750e1 8840STRIP=$ac_cv_prog_STRIP
be01d343 8841if test -n "$STRIP"; then
81ecdfbb
RW
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8843$as_echo "$STRIP" >&6; }
be01d343 8844else
81ecdfbb
RW
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846$as_echo "no" >&6; }
be01d343 8847fi
c6b750e1 8848
81ecdfbb 8849
be01d343
PB
8850 fi
8851 test -n "$ac_cv_prog_STRIP" && break
8852done
8853
8854if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 8855 STRIP="true"
be01d343
PB
8856fi
8857
9a819804
AO
8858
8859
8860if test -n "$WINDRES"; then
8861 ac_cv_prog_WINDRES=$WINDRES
8862elif test -n "$ac_cv_prog_WINDRES"; then
8863 WINDRES=$ac_cv_prog_WINDRES
8864fi
8865
8866if test -n "$ac_cv_prog_WINDRES"; then
8867 for ncn_progname in windres; do
8868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8869set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871$as_echo_n "checking for $ac_word... " >&6; }
8872if test "${ac_cv_prog_WINDRES+set}" = set; then :
8873 $as_echo_n "(cached) " >&6
9a819804
AO
8874else
8875 if test -n "$WINDRES"; then
8876 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8877else
8878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879for as_dir in $PATH
8880do
8881 IFS=$as_save_IFS
8882 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8883 for ac_exec_ext in '' $ac_executable_extensions; do
8884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8885 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8887 break 2
8888 fi
8889done
81ecdfbb
RW
8890 done
8891IFS=$as_save_IFS
9a819804
AO
8892
8893fi
8894fi
8895WINDRES=$ac_cv_prog_WINDRES
8896if test -n "$WINDRES"; then
81ecdfbb
RW
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8898$as_echo "$WINDRES" >&6; }
9a819804 8899else
81ecdfbb
RW
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901$as_echo "no" >&6; }
9a819804
AO
8902fi
8903
81ecdfbb 8904
9a819804
AO
8905 done
8906fi
8907
8908for ncn_progname in windres; do
05cbd757
PB
8909 if test -n "$ncn_tool_prefix"; then
8910 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8911set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913$as_echo_n "checking for $ac_word... " >&6; }
8914if test "${ac_cv_prog_WINDRES+set}" = set; then :
8915 $as_echo_n "(cached) " >&6
859789af
AC
8916else
8917 if test -n "$WINDRES"; then
8918 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8919else
c6b750e1
DJ
8920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921for as_dir in $PATH
8922do
8923 IFS=$as_save_IFS
8924 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8927 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8929 break 2
8930 fi
8931done
81ecdfbb
RW
8932 done
8933IFS=$as_save_IFS
c6b750e1 8934
859789af
AC
8935fi
8936fi
c6b750e1 8937WINDRES=$ac_cv_prog_WINDRES
859789af 8938if test -n "$WINDRES"; then
81ecdfbb
RW
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8940$as_echo "$WINDRES" >&6; }
859789af 8941else
81ecdfbb
RW
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943$as_echo "no" >&6; }
859789af
AC
8944fi
8945
81ecdfbb 8946
05cbd757
PB
8947 fi
8948 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8950set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952$as_echo_n "checking for $ac_word... " >&6; }
8953if test "${ac_cv_prog_WINDRES+set}" = set; then :
8954 $as_echo_n "(cached) " >&6
859789af 8955else
05cbd757
PB
8956 if test -n "$WINDRES"; then
8957 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 8958else
c6b750e1
DJ
8959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960for as_dir in $PATH
8961do
8962 IFS=$as_save_IFS
8963 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8966 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8968 break 2
8969 fi
8970done
81ecdfbb
RW
8971 done
8972IFS=$as_save_IFS
c6b750e1 8973
859789af
AC
8974fi
8975fi
c6b750e1 8976WINDRES=$ac_cv_prog_WINDRES
05cbd757 8977if test -n "$WINDRES"; then
81ecdfbb
RW
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8979$as_echo "$WINDRES" >&6; }
859789af 8980else
81ecdfbb
RW
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982$as_echo "no" >&6; }
859789af 8983fi
c6b750e1 8984
81ecdfbb 8985
05cbd757
PB
8986 fi
8987 test -n "$ac_cv_prog_WINDRES" && break
8988done
8989
8990if test -z "$ac_cv_prog_WINDRES" ; then
8991 set dummy windres
8992 if test $build = $host ; then
8993 WINDRES="$2"
859789af 8994 else
05cbd757 8995 WINDRES="${ncn_tool_prefix}$2"
859789af 8996 fi
859789af
AC
8997fi
8998
9a819804
AO
8999
9000
0c24b341
NC
9001if test -n "$WINDMC"; then
9002 ac_cv_prog_WINDMC=$WINDMC
9003elif test -n "$ac_cv_prog_WINDMC"; then
9004 WINDMC=$ac_cv_prog_WINDMC
9005fi
9006
9007if test -n "$ac_cv_prog_WINDMC"; then
9008 for ncn_progname in windmc; do
9009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9010set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012$as_echo_n "checking for $ac_word... " >&6; }
9013if test "${ac_cv_prog_WINDMC+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
0c24b341
NC
9015else
9016 if test -n "$WINDMC"; then
9017 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9018else
9019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020for as_dir in $PATH
9021do
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9026 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9028 break 2
9029 fi
9030done
81ecdfbb
RW
9031 done
9032IFS=$as_save_IFS
0c24b341
NC
9033
9034fi
9035fi
9036WINDMC=$ac_cv_prog_WINDMC
9037if test -n "$WINDMC"; then
81ecdfbb
RW
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9039$as_echo "$WINDMC" >&6; }
0c24b341 9040else
81ecdfbb
RW
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042$as_echo "no" >&6; }
0c24b341
NC
9043fi
9044
81ecdfbb 9045
0c24b341
NC
9046 done
9047fi
9048
9049for ncn_progname in windmc; do
9050 if test -n "$ncn_tool_prefix"; then
9051 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9052set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9054$as_echo_n "checking for $ac_word... " >&6; }
9055if test "${ac_cv_prog_WINDMC+set}" = set; then :
9056 $as_echo_n "(cached) " >&6
0c24b341
NC
9057else
9058 if test -n "$WINDMC"; then
9059 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9060else
9061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062for as_dir in $PATH
9063do
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9068 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9070 break 2
9071 fi
9072done
81ecdfbb
RW
9073 done
9074IFS=$as_save_IFS
0c24b341
NC
9075
9076fi
9077fi
9078WINDMC=$ac_cv_prog_WINDMC
9079if test -n "$WINDMC"; then
81ecdfbb
RW
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9081$as_echo "$WINDMC" >&6; }
0c24b341 9082else
81ecdfbb
RW
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084$as_echo "no" >&6; }
0c24b341
NC
9085fi
9086
81ecdfbb 9087
0c24b341
NC
9088 fi
9089 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9091set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9093$as_echo_n "checking for $ac_word... " >&6; }
9094if test "${ac_cv_prog_WINDMC+set}" = set; then :
9095 $as_echo_n "(cached) " >&6
0c24b341
NC
9096else
9097 if test -n "$WINDMC"; then
9098 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9099else
9100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101for as_dir in $PATH
9102do
9103 IFS=$as_save_IFS
9104 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9107 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9109 break 2
9110 fi
9111done
81ecdfbb
RW
9112 done
9113IFS=$as_save_IFS
0c24b341
NC
9114
9115fi
9116fi
9117WINDMC=$ac_cv_prog_WINDMC
9118if test -n "$WINDMC"; then
81ecdfbb
RW
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9120$as_echo "$WINDMC" >&6; }
0c24b341 9121else
81ecdfbb
RW
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123$as_echo "no" >&6; }
0c24b341
NC
9124fi
9125
81ecdfbb 9126
0c24b341
NC
9127 fi
9128 test -n "$ac_cv_prog_WINDMC" && break
9129done
9130
9131if test -z "$ac_cv_prog_WINDMC" ; then
9132 set dummy windmc
9133 if test $build = $host ; then
9134 WINDMC="$2"
9135 else
9136 WINDMC="${ncn_tool_prefix}$2"
9137 fi
9138fi
9139
9140
9141
9a819804
AO
9142if test -n "$OBJCOPY"; then
9143 ac_cv_prog_OBJCOPY=$OBJCOPY
9144elif test -n "$ac_cv_prog_OBJCOPY"; then
9145 OBJCOPY=$ac_cv_prog_OBJCOPY
9146fi
9147
9148if test -n "$ac_cv_prog_OBJCOPY"; then
9149 for ncn_progname in objcopy; do
9150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9151set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153$as_echo_n "checking for $ac_word... " >&6; }
9154if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9a819804
AO
9156else
9157 if test -n "$OBJCOPY"; then
9158 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9159else
9160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161for as_dir in $PATH
9162do
9163 IFS=$as_save_IFS
9164 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9165 for ac_exec_ext in '' $ac_executable_extensions; do
9166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9167 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9169 break 2
9170 fi
9171done
81ecdfbb
RW
9172 done
9173IFS=$as_save_IFS
9a819804
AO
9174
9175fi
9176fi
9177OBJCOPY=$ac_cv_prog_OBJCOPY
9178if test -n "$OBJCOPY"; then
81ecdfbb
RW
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9180$as_echo "$OBJCOPY" >&6; }
9a819804 9181else
81ecdfbb
RW
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183$as_echo "no" >&6; }
9a819804
AO
9184fi
9185
81ecdfbb 9186
9a819804
AO
9187 done
9188fi
9189
9190for ncn_progname in objcopy; do
05cbd757
PB
9191 if test -n "$ncn_tool_prefix"; then
9192 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9193set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195$as_echo_n "checking for $ac_word... " >&6; }
9196if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
859789af
AC
9198else
9199 if test -n "$OBJCOPY"; then
9200 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9201else
c6b750e1
DJ
9202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203for as_dir in $PATH
9204do
9205 IFS=$as_save_IFS
9206 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9207 for ac_exec_ext in '' $ac_executable_extensions; do
9208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9209 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9211 break 2
9212 fi
9213done
81ecdfbb
RW
9214 done
9215IFS=$as_save_IFS
c6b750e1 9216
859789af
AC
9217fi
9218fi
c6b750e1 9219OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9220if test -n "$OBJCOPY"; then
81ecdfbb
RW
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9222$as_echo "$OBJCOPY" >&6; }
859789af 9223else
81ecdfbb
RW
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225$as_echo "no" >&6; }
859789af
AC
9226fi
9227
81ecdfbb 9228
05cbd757
PB
9229 fi
9230 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9232set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234$as_echo_n "checking for $ac_word... " >&6; }
9235if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
859789af 9237else
05cbd757
PB
9238 if test -n "$OBJCOPY"; then
9239 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9240else
c6b750e1
DJ
9241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242for as_dir in $PATH
9243do
9244 IFS=$as_save_IFS
9245 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9246 for ac_exec_ext in '' $ac_executable_extensions; do
9247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9248 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9250 break 2
9251 fi
9252done
81ecdfbb
RW
9253 done
9254IFS=$as_save_IFS
c6b750e1 9255
859789af
AC
9256fi
9257fi
c6b750e1 9258OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9259if test -n "$OBJCOPY"; then
81ecdfbb
RW
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9261$as_echo "$OBJCOPY" >&6; }
859789af 9262else
81ecdfbb
RW
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264$as_echo "no" >&6; }
859789af 9265fi
c6b750e1 9266
81ecdfbb 9267
05cbd757
PB
9268 fi
9269 test -n "$ac_cv_prog_OBJCOPY" && break
9270done
9271
9272if test -z "$ac_cv_prog_OBJCOPY" ; then
9273 set dummy objcopy
9274 if test $build = $host ; then
9275 OBJCOPY="$2"
859789af 9276 else
05cbd757 9277 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9278 fi
859789af
AC
9279fi
9280
9a819804
AO
9281
9282
9283if test -n "$OBJDUMP"; then
9284 ac_cv_prog_OBJDUMP=$OBJDUMP
9285elif test -n "$ac_cv_prog_OBJDUMP"; then
9286 OBJDUMP=$ac_cv_prog_OBJDUMP
9287fi
9288
9289if test -n "$ac_cv_prog_OBJDUMP"; then
9290 for ncn_progname in objdump; do
9291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9292set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294$as_echo_n "checking for $ac_word... " >&6; }
9295if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
9a819804
AO
9297else
9298 if test -n "$OBJDUMP"; then
9299 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9300else
9301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302for as_dir in $PATH
9303do
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9308 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9310 break 2
9311 fi
9312done
81ecdfbb
RW
9313 done
9314IFS=$as_save_IFS
9a819804
AO
9315
9316fi
9317fi
9318OBJDUMP=$ac_cv_prog_OBJDUMP
9319if test -n "$OBJDUMP"; then
81ecdfbb
RW
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9321$as_echo "$OBJDUMP" >&6; }
9a819804 9322else
81ecdfbb
RW
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324$as_echo "no" >&6; }
9a819804
AO
9325fi
9326
81ecdfbb 9327
9a819804
AO
9328 done
9329fi
9330
9331for ncn_progname in objdump; do
05cbd757
PB
9332 if test -n "$ncn_tool_prefix"; then
9333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9334set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336$as_echo_n "checking for $ac_word... " >&6; }
9337if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
859789af
AC
9339else
9340 if test -n "$OBJDUMP"; then
9341 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9342else
c6b750e1
DJ
9343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344for as_dir in $PATH
9345do
9346 IFS=$as_save_IFS
9347 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9350 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9352 break 2
9353 fi
9354done
81ecdfbb
RW
9355 done
9356IFS=$as_save_IFS
c6b750e1 9357
859789af
AC
9358fi
9359fi
c6b750e1 9360OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9361if test -n "$OBJDUMP"; then
81ecdfbb
RW
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9363$as_echo "$OBJDUMP" >&6; }
859789af 9364else
81ecdfbb
RW
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366$as_echo "no" >&6; }
859789af
AC
9367fi
9368
81ecdfbb 9369
05cbd757
PB
9370 fi
9371 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9373set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375$as_echo_n "checking for $ac_word... " >&6; }
9376if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9377 $as_echo_n "(cached) " >&6
859789af 9378else
05cbd757
PB
9379 if test -n "$OBJDUMP"; then
9380 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9381else
c6b750e1
DJ
9382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383for as_dir in $PATH
9384do
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9389 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9391 break 2
9392 fi
9393done
81ecdfbb
RW
9394 done
9395IFS=$as_save_IFS
c6b750e1 9396
859789af
AC
9397fi
9398fi
c6b750e1 9399OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9400if test -n "$OBJDUMP"; then
81ecdfbb
RW
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9402$as_echo "$OBJDUMP" >&6; }
859789af 9403else
81ecdfbb
RW
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405$as_echo "no" >&6; }
859789af 9406fi
c6b750e1 9407
81ecdfbb 9408
05cbd757
PB
9409 fi
9410 test -n "$ac_cv_prog_OBJDUMP" && break
9411done
9412
9413if test -z "$ac_cv_prog_OBJDUMP" ; then
9414 set dummy objdump
9415 if test $build = $host ; then
9416 OBJDUMP="$2"
859789af 9417 else
05cbd757 9418 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9419 fi
859789af
AC
9420fi
9421
a0da8069
NN
9422
9423
b121d7d4
DD
9424if test -n "$READELF"; then
9425 ac_cv_prog_READELF=$READELF
9426elif test -n "$ac_cv_prog_READELF"; then
9427 READELF=$ac_cv_prog_READELF
9428fi
9429
9430if test -n "$ac_cv_prog_READELF"; then
9431 for ncn_progname in readelf; do
9432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9433set dummy ${ncn_progname}; ac_word=$2
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435$as_echo_n "checking for $ac_word... " >&6; }
9436if test "${ac_cv_prog_READELF+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438else
9439 if test -n "$READELF"; then
9440 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9441else
9442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443for as_dir in $PATH
9444do
9445 IFS=$as_save_IFS
9446 test -z "$as_dir" && as_dir=.
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9449 ac_cv_prog_READELF="${ncn_progname}"
9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 break 2
9452 fi
9453done
9454 done
9455IFS=$as_save_IFS
9456
9457fi
9458fi
9459READELF=$ac_cv_prog_READELF
9460if test -n "$READELF"; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9462$as_echo "$READELF" >&6; }
9463else
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465$as_echo "no" >&6; }
9466fi
9467
9468
9469 done
9470fi
9471
9472for ncn_progname in readelf; do
9473 if test -n "$ncn_tool_prefix"; then
9474 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9475set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477$as_echo_n "checking for $ac_word... " >&6; }
9478if test "${ac_cv_prog_READELF+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9480else
9481 if test -n "$READELF"; then
9482 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9483else
9484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485for as_dir in $PATH
9486do
9487 IFS=$as_save_IFS
9488 test -z "$as_dir" && as_dir=.
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9491 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493 break 2
9494 fi
9495done
9496 done
9497IFS=$as_save_IFS
9498
9499fi
9500fi
9501READELF=$ac_cv_prog_READELF
9502if test -n "$READELF"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9504$as_echo "$READELF" >&6; }
9505else
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507$as_echo "no" >&6; }
9508fi
9509
9510
9511 fi
9512 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9514set dummy ${ncn_progname}; ac_word=$2
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516$as_echo_n "checking for $ac_word... " >&6; }
9517if test "${ac_cv_prog_READELF+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
9519else
9520 if test -n "$READELF"; then
9521 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9522else
9523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524for as_dir in $PATH
9525do
9526 IFS=$as_save_IFS
9527 test -z "$as_dir" && as_dir=.
9528 for ac_exec_ext in '' $ac_executable_extensions; do
9529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9530 ac_cv_prog_READELF="${ncn_progname}"
9531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 break 2
9533 fi
9534done
9535 done
9536IFS=$as_save_IFS
9537
9538fi
9539fi
9540READELF=$ac_cv_prog_READELF
9541if test -n "$READELF"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9543$as_echo "$READELF" >&6; }
9544else
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546$as_echo "no" >&6; }
9547fi
9548
9549
9550 fi
9551 test -n "$ac_cv_prog_READELF" && break
9552done
9553
9554if test -z "$ac_cv_prog_READELF" ; then
9555 set dummy readelf
9556 if test $build = $host ; then
9557 READELF="$2"
9558 else
9559 READELF="${ncn_tool_prefix}$2"
9560 fi
9561fi
9562
9563
9564
a0da8069
NN
9565
9566
9567
be01d343 9568# Target tools.
c6b750e1 9569
81ecdfbb
RW
9570# Check whether --with-build-time-tools was given.
9571if test "${with_build_time_tools+set}" = set; then :
9572 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9573 x/*) ;;
9574 *)
9575 with_build_time_tools=
81ecdfbb
RW
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9577$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9578 ;;
9579 esac
859789af 9580else
2429c060 9581 with_build_time_tools=
81ecdfbb
RW
9582fi
9583
859789af 9584
9a819804
AO
9585
9586
9587if test -n "$CC_FOR_TARGET"; then
9588 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9589elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9590 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9591fi
9592
9593if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9594 for ncn_progname in cc gcc; do
9595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9596set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598$as_echo_n "checking for $ac_word... " >&6; }
9599if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
9a819804
AO
9601else
9602 if test -n "$CC_FOR_TARGET"; then
9603 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9604else
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9612 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9614 break 2
9615 fi
9616done
81ecdfbb
RW
9617 done
9618IFS=$as_save_IFS
9a819804
AO
9619
9620fi
9621fi
9622CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9623if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9625$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9626else
81ecdfbb
RW
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628$as_echo "no" >&6; }
9a819804
AO
9629fi
9630
81ecdfbb 9631
9a819804
AO
9632 done
9633fi
9634
9635if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9636 for ncn_progname in cc gcc; do
81ecdfbb
RW
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9638$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9639 if test -x $with_build_time_tools/${ncn_progname}; then
9640 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9642$as_echo "yes" >&6; }
cac3d6c4 9643 break
2429c060 9644 else
81ecdfbb
RW
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646$as_echo "no" >&6; }
cac3d6c4
CM
9647 fi
9648 done
55db4b87
PB
9649fi
9650
2429c060
PB
9651if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9652 for ncn_progname in cc gcc; do
9653 if test -n "$ncn_target_tool_prefix"; then
9654 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9655set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657$as_echo_n "checking for $ac_word... " >&6; }
9658if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
55db4b87
PB
9660else
9661 if test -n "$CC_FOR_TARGET"; then
9662 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9663else
c6b750e1
DJ
9664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665for as_dir in $PATH
9666do
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9671 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9673 break 2
9674 fi
9675done
81ecdfbb
RW
9676 done
9677IFS=$as_save_IFS
c6b750e1 9678
55db4b87
PB
9679fi
9680fi
c6b750e1 9681CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9682if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9684$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9685else
81ecdfbb
RW
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687$as_echo "no" >&6; }
55db4b87
PB
9688fi
9689
81ecdfbb 9690
2429c060
PB
9691 fi
9692 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9694set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9696$as_echo_n "checking for $ac_word... " >&6; }
9697if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9698 $as_echo_n "(cached) " >&6
55db4b87 9699else
05cbd757
PB
9700 if test -n "$CC_FOR_TARGET"; then
9701 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9702else
c6b750e1
DJ
9703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704for as_dir in $PATH
9705do
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9710 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9712 break 2
9713 fi
9714done
81ecdfbb
RW
9715 done
9716IFS=$as_save_IFS
c6b750e1 9717
55db4b87
PB
9718fi
9719fi
c6b750e1 9720CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9721if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9723$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9724else
81ecdfbb
RW
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9726$as_echo "no" >&6; }
55db4b87 9727fi
c6b750e1 9728
81ecdfbb 9729
2429c060
PB
9730 fi
9731 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9732 done
9733fi
c6b750e1 9734
05cbd757
PB
9735if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9736 set dummy cc gcc
9737 if test $build = $target ; then
9738 CC_FOR_TARGET="$2"
55db4b87 9739 else
05cbd757 9740 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9741 fi
d3f5afc4
MS
9742else
9743 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9744fi
9745
9a819804
AO
9746
9747
9748if test -n "$CXX_FOR_TARGET"; then
9749 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9750elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9751 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9752fi
9753
9754if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9755 for ncn_progname in c++ g++ cxx gxx; do
9756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9757set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759$as_echo_n "checking for $ac_word... " >&6; }
9760if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9a819804
AO
9762else
9763 if test -n "$CXX_FOR_TARGET"; then
9764 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9765else
9766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767for as_dir in $PATH
9768do
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9773 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9775 break 2
9776 fi
9777done
81ecdfbb
RW
9778 done
9779IFS=$as_save_IFS
9a819804
AO
9780
9781fi
9782fi
9783CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9784if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9786$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9787else
81ecdfbb
RW
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789$as_echo "no" >&6; }
9a819804
AO
9790fi
9791
81ecdfbb 9792
9a819804
AO
9793 done
9794fi
9795
9796if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9797 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9799$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9800 if test -x $with_build_time_tools/${ncn_progname}; then
9801 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9803$as_echo "yes" >&6; }
2429c060
PB
9804 break
9805 else
81ecdfbb
RW
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807$as_echo "no" >&6; }
2429c060
PB
9808 fi
9809 done
9810fi
9811
9812if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9813 for ncn_progname in c++ g++ cxx gxx; do
9814 if test -n "$ncn_target_tool_prefix"; then
9815 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9816set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818$as_echo_n "checking for $ac_word... " >&6; }
9819if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
55db4b87
PB
9821else
9822 if test -n "$CXX_FOR_TARGET"; then
9823 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9824else
c6b750e1
DJ
9825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826for as_dir in $PATH
9827do
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9832 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9834 break 2
9835 fi
9836done
81ecdfbb
RW
9837 done
9838IFS=$as_save_IFS
c6b750e1 9839
55db4b87
PB
9840fi
9841fi
c6b750e1 9842CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9843if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9845$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9846else
81ecdfbb
RW
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848$as_echo "no" >&6; }
55db4b87
PB
9849fi
9850
81ecdfbb 9851
2429c060
PB
9852 fi
9853 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9855set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857$as_echo_n "checking for $ac_word... " >&6; }
9858if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
55db4b87 9860else
05cbd757
PB
9861 if test -n "$CXX_FOR_TARGET"; then
9862 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9863else
c6b750e1
DJ
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
9866do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9871 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9873 break 2
9874 fi
9875done
81ecdfbb
RW
9876 done
9877IFS=$as_save_IFS
c6b750e1 9878
55db4b87
PB
9879fi
9880fi
c6b750e1 9881CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9882if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9884$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9885else
81ecdfbb
RW
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887$as_echo "no" >&6; }
55db4b87 9888fi
c6b750e1 9889
81ecdfbb 9890
2429c060
PB
9891 fi
9892 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9893 done
9894fi
c6b750e1 9895
05cbd757
PB
9896if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9897 set dummy c++ g++ cxx gxx
9898 if test $build = $target ; then
9899 CXX_FOR_TARGET="$2"
55db4b87 9900 else
05cbd757 9901 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9902 fi
d3f5afc4
MS
9903else
9904 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9905fi
9906
9a819804
AO
9907
9908
9909if test -n "$GCC_FOR_TARGET"; then
9910 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9911elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9912 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9913fi
9914
9915if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9916 for ncn_progname in gcc; do
9917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9918set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920$as_echo_n "checking for $ac_word... " >&6; }
9921if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
9a819804
AO
9923else
9924 if test -n "$GCC_FOR_TARGET"; then
9925 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9926else
9927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928for as_dir in $PATH
9929do
9930 IFS=$as_save_IFS
9931 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9934 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9936 break 2
9937 fi
9938done
81ecdfbb
RW
9939 done
9940IFS=$as_save_IFS
9a819804
AO
9941
9942fi
9943fi
9944GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9945if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9947$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 9948else
81ecdfbb
RW
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950$as_echo "no" >&6; }
9a819804
AO
9951fi
9952
81ecdfbb 9953
9a819804
AO
9954 done
9955fi
9956
9957if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9958 for ncn_progname in gcc; do
81ecdfbb
RW
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9960$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9961 if test -x $with_build_time_tools/${ncn_progname}; then
9962 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9964$as_echo "yes" >&6; }
2429c060
PB
9965 break
9966 else
81ecdfbb
RW
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968$as_echo "no" >&6; }
2429c060
PB
9969 fi
9970 done
9971fi
9972
9973if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9974 for ncn_progname in gcc; do
9975 if test -n "$ncn_target_tool_prefix"; then
9976 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9977set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979$as_echo_n "checking for $ac_word... " >&6; }
9980if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
859789af 9982else
2429c060
PB
9983 if test -n "$GCC_FOR_TARGET"; then
9984 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9985else
c6b750e1
DJ
9986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987for as_dir in $PATH
9988do
9989 IFS=$as_save_IFS
9990 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9993 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9995 break 2
9996 fi
9997done
81ecdfbb
RW
9998 done
9999IFS=$as_save_IFS
c6b750e1 10000
55db4b87
PB
10001fi
10002fi
c6b750e1 10003GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10004if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10006$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10007else
81ecdfbb
RW
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009$as_echo "no" >&6; }
55db4b87
PB
10010fi
10011
81ecdfbb 10012
2429c060
PB
10013 fi
10014 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10016set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018$as_echo_n "checking for $ac_word... " >&6; }
10019if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
55db4b87 10021else
05cbd757
PB
10022 if test -n "$GCC_FOR_TARGET"; then
10023 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10024else
c6b750e1
DJ
10025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026for as_dir in $PATH
10027do
10028 IFS=$as_save_IFS
10029 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10032 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10034 break 2
10035 fi
10036done
81ecdfbb
RW
10037 done
10038IFS=$as_save_IFS
c6b750e1 10039
55db4b87
PB
10040fi
10041fi
c6b750e1 10042GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10043if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10045$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10046else
81ecdfbb
RW
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048$as_echo "no" >&6; }
55db4b87 10049fi
c6b750e1 10050
81ecdfbb 10051
2429c060
PB
10052 fi
10053 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10054 done
10055fi
c6b750e1 10056
05cbd757
PB
10057if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10058 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10059else
10060 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10061fi
10062
9a819804
AO
10063
10064
10065if test -n "$GCJ_FOR_TARGET"; then
10066 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10067elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10068 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10069fi
10070
10071if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10072 for ncn_progname in gcj; do
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10074set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076$as_echo_n "checking for $ac_word... " >&6; }
10077if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
9a819804
AO
10079else
10080 if test -n "$GCJ_FOR_TARGET"; then
10081 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10082else
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10090 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10092 break 2
10093 fi
10094done
81ecdfbb
RW
10095 done
10096IFS=$as_save_IFS
9a819804
AO
10097
10098fi
10099fi
10100GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10101if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10103$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10104else
81ecdfbb
RW
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106$as_echo "no" >&6; }
9a819804
AO
10107fi
10108
81ecdfbb 10109
9a819804
AO
10110 done
10111fi
10112
10113if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10114 for ncn_progname in gcj; do
81ecdfbb
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10116$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10117 if test -x $with_build_time_tools/${ncn_progname}; then
10118 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10120$as_echo "yes" >&6; }
2429c060
PB
10121 break
10122 else
81ecdfbb
RW
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124$as_echo "no" >&6; }
2429c060
PB
10125 fi
10126 done
10127fi
10128
10129if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10130 for ncn_progname in gcj; do
10131 if test -n "$ncn_target_tool_prefix"; then
10132 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10133set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135$as_echo_n "checking for $ac_word... " >&6; }
10136if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10137 $as_echo_n "(cached) " >&6
55db4b87
PB
10138else
10139 if test -n "$GCJ_FOR_TARGET"; then
10140 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10141else
c6b750e1
DJ
10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143for as_dir in $PATH
10144do
10145 IFS=$as_save_IFS
10146 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10147 for ac_exec_ext in '' $ac_executable_extensions; do
10148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10149 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10151 break 2
10152 fi
10153done
81ecdfbb
RW
10154 done
10155IFS=$as_save_IFS
c6b750e1 10156
55db4b87
PB
10157fi
10158fi
9a819804
AO
10159GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10160if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10162$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10163else
81ecdfbb
RW
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165$as_echo "no" >&6; }
9a819804
AO
10166fi
10167
81ecdfbb 10168
9a819804
AO
10169 fi
10170 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10172set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174$as_echo_n "checking for $ac_word... " >&6; }
10175if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
9a819804
AO
10177else
10178 if test -n "$GCJ_FOR_TARGET"; then
10179 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10180else
10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10188 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10190 break 2
10191 fi
10192done
81ecdfbb
RW
10193 done
10194IFS=$as_save_IFS
9a819804
AO
10195
10196fi
10197fi
10198GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10199if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10201$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10202else
81ecdfbb
RW
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204$as_echo "no" >&6; }
9a819804
AO
10205fi
10206
81ecdfbb 10207
9a819804
AO
10208 fi
10209 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10210 done
10211fi
10212
10213if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10214 set dummy gcj
10215 if test $build = $target ; then
10216 GCJ_FOR_TARGET="$2"
10217 else
10218 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10219 fi
d3f5afc4
MS
10220else
10221 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10222fi
10223
10224
10225
10226if test -n "$GFORTRAN_FOR_TARGET"; then
10227 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10228elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10229 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10230fi
10231
9a819804
AO
10232if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10233 for ncn_progname in gfortran; do
10234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10235set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237$as_echo_n "checking for $ac_word... " >&6; }
10238if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
55db4b87 10240else
9a819804
AO
10241 if test -n "$GFORTRAN_FOR_TARGET"; then
10242 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10243else
c6b750e1
DJ
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10251 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10253 break 2
10254 fi
10255done
81ecdfbb
RW
10256 done
10257IFS=$as_save_IFS
c6b750e1 10258
55db4b87
PB
10259fi
10260fi
9a819804
AO
10261GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10262if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10264$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10265else
81ecdfbb
RW
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
55db4b87 10268fi
c6b750e1 10269
81ecdfbb 10270
2429c060
PB
10271 done
10272fi
c6b750e1 10273
9a819804 10274if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10275 for ncn_progname in gfortran; do
81ecdfbb
RW
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10277$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10278 if test -x $with_build_time_tools/${ncn_progname}; then
10279 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10281$as_echo "yes" >&6; }
2429c060
PB
10282 break
10283 else
81ecdfbb
RW
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285$as_echo "no" >&6; }
2429c060
PB
10286 fi
10287 done
10288fi
10289
10290if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10291 for ncn_progname in gfortran; do
10292 if test -n "$ncn_target_tool_prefix"; then
10293 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10294set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10296$as_echo_n "checking for $ac_word... " >&6; }
10297if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10298 $as_echo_n "(cached) " >&6
55db4b87
PB
10299else
10300 if test -n "$GFORTRAN_FOR_TARGET"; then
10301 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10302else
c6b750e1
DJ
10303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304for as_dir in $PATH
10305do
10306 IFS=$as_save_IFS
10307 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10310 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10312 break 2
10313 fi
10314done
81ecdfbb
RW
10315 done
10316IFS=$as_save_IFS
c6b750e1 10317
55db4b87
PB
10318fi
10319fi
c6b750e1 10320GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10321if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10323$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10324else
81ecdfbb
RW
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326$as_echo "no" >&6; }
55db4b87
PB
10327fi
10328
81ecdfbb 10329
2429c060
PB
10330 fi
10331 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10333set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335$as_echo_n "checking for $ac_word... " >&6; }
10336if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10337 $as_echo_n "(cached) " >&6
55db4b87 10338else
05cbd757 10339 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10340 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10341else
10342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343for as_dir in $PATH
10344do
10345 IFS=$as_save_IFS
10346 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10347 for ac_exec_ext in '' $ac_executable_extensions; do
10348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10349 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10351 break 2
10352 fi
10353done
81ecdfbb
RW
10354 done
10355IFS=$as_save_IFS
c6b750e1 10356
55db4b87
PB
10357fi
10358fi
c6b750e1 10359GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10360if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10362$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10363else
81ecdfbb
RW
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365$as_echo "no" >&6; }
55db4b87 10366fi
c6b750e1 10367
81ecdfbb 10368
2429c060
PB
10369 fi
10370 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10371 done
10372fi
c6b750e1 10373
05cbd757
PB
10374if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10375 set dummy gfortran
10376 if test $build = $target ; then
10377 GFORTRAN_FOR_TARGET="$2"
55db4b87 10378 else
05cbd757 10379 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10380 fi
d3f5afc4
MS
10381else
10382 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10383fi
10384
2429c060
PB
10385
10386
e552509b
ILT
10387if test -n "$GOC_FOR_TARGET"; then
10388 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10389elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10390 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10391fi
10392
10393if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10394 for ncn_progname in gccgo; do
10395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10396set dummy ${ncn_progname}; ac_word=$2
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398$as_echo_n "checking for $ac_word... " >&6; }
10399if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
10401else
10402 if test -n "$GOC_FOR_TARGET"; then
10403 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10404else
10405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406for as_dir in $PATH
10407do
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10415 fi
10416done
10417 done
10418IFS=$as_save_IFS
10419
10420fi
10421fi
10422GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10423if test -n "$GOC_FOR_TARGET"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10425$as_echo "$GOC_FOR_TARGET" >&6; }
10426else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428$as_echo "no" >&6; }
10429fi
10430
10431
10432 done
10433fi
10434
10435if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10436 for ncn_progname in gccgo; do
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10438$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10439 if test -x $with_build_time_tools/${ncn_progname}; then
10440 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10442$as_echo "yes" >&6; }
10443 break
10444 else
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446$as_echo "no" >&6; }
10447 fi
10448 done
10449fi
10450
10451if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10452 for ncn_progname in gccgo; do
10453 if test -n "$ncn_target_tool_prefix"; then
10454 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10455set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457$as_echo_n "checking for $ac_word... " >&6; }
10458if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10460else
10461 if test -n "$GOC_FOR_TARGET"; then
10462 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10463else
10464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10471 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475done
10476 done
10477IFS=$as_save_IFS
10478
10479fi
10480fi
10481GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10482if test -n "$GOC_FOR_TARGET"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10484$as_echo "$GOC_FOR_TARGET" >&6; }
10485else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487$as_echo "no" >&6; }
10488fi
10489
10490
10491 fi
10492 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10494set dummy ${ncn_progname}; ac_word=$2
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496$as_echo_n "checking for $ac_word... " >&6; }
10497if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499else
10500 if test -n "$GOC_FOR_TARGET"; then
10501 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10502else
10503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10504for as_dir in $PATH
10505do
10506 IFS=$as_save_IFS
10507 test -z "$as_dir" && as_dir=.
10508 for ac_exec_ext in '' $ac_executable_extensions; do
10509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10510 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10512 break 2
10513 fi
10514done
10515 done
10516IFS=$as_save_IFS
10517
10518fi
10519fi
10520GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10521if test -n "$GOC_FOR_TARGET"; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10523$as_echo "$GOC_FOR_TARGET" >&6; }
10524else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526$as_echo "no" >&6; }
10527fi
10528
10529
10530 fi
10531 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10532 done
10533fi
10534
10535if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10536 set dummy gccgo
10537 if test $build = $target ; then
10538 GOC_FOR_TARGET="$2"
10539 else
10540 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10541 fi
10542else
10543 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10544fi
10545
10546
10547
2429c060
PB
10548cat > conftest.c << \EOF
10549#ifdef __GNUC__
10550 gcc_yay;
10551#endif
10552EOF
10553if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10554 have_gcc_for_target=yes
859789af 10555else
2429c060
PB
10556 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10557 have_gcc_for_target=no
859789af 10558fi
2429c060
PB
10559rm conftest.c
10560
10561
10562
859789af 10563
2429c060
PB
10564if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10565 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10567$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10568 if test -x $with_build_time_tools/ar; then
10569 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10570 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10572$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10573 else
81ecdfbb
RW
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575$as_echo "no" >&6; }
3a35eeb3 10576 fi
2429c060
PB
10577 elif test $build != $host && test $have_gcc_for_target = yes; then
10578 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10579 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10580 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10581 fi
2429c060 10582fi
c6b750e1 10583if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10584 # Extract the first word of "ar", so it can be a program name with args.
10585set dummy ar; ac_word=$2
81ecdfbb
RW
10586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587$as_echo_n "checking for $ac_word... " >&6; }
10588if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10589 $as_echo_n "(cached) " >&6
859789af 10590else
c6b750e1
DJ
10591 case $AR_FOR_TARGET in
10592 [\\/]* | ?:[\\/]*)
2429c060
PB
10593 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10594 ;;
2429c060 10595 *)
c6b750e1
DJ
10596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597for as_dir in $gcc_cv_tool_dirs
10598do
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10603 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10605 break 2
10606 fi
10607done
81ecdfbb
RW
10608 done
10609IFS=$as_save_IFS
c6b750e1 10610
2429c060
PB
10611 ;;
10612esac
859789af 10613fi
c6b750e1 10614AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10615if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10617$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10618else
81ecdfbb
RW
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620$as_echo "no" >&6; }
859789af 10621fi
05cbd757 10622
81ecdfbb 10623
2429c060
PB
10624fi
10625if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10626
10627
10628if test -n "$AR_FOR_TARGET"; then
10629 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10630elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10631 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10632fi
10633
10634if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10635 for ncn_progname in ar; do
10636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10637set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10639$as_echo_n "checking for $ac_word... " >&6; }
10640if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
9a819804
AO
10642else
10643 if test -n "$AR_FOR_TARGET"; then
10644 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10645else
10646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647for as_dir in $PATH
10648do
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10653 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10655 break 2
10656 fi
10657done
81ecdfbb
RW
10658 done
10659IFS=$as_save_IFS
9a819804
AO
10660
10661fi
10662fi
10663AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10664if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10666$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10667else
81ecdfbb
RW
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669$as_echo "no" >&6; }
9a819804
AO
10670fi
10671
81ecdfbb 10672
9a819804
AO
10673 done
10674fi
10675
10676if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10677 for ncn_progname in ar; do
81ecdfbb
RW
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10679$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10680 if test -x $with_build_time_tools/${ncn_progname}; then
10681 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10683$as_echo "yes" >&6; }
2429c060
PB
10684 break
10685 else
81ecdfbb
RW
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687$as_echo "no" >&6; }
2429c060
PB
10688 fi
10689 done
859789af
AC
10690fi
10691
2429c060
PB
10692if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10693 for ncn_progname in ar; do
10694 if test -n "$ncn_target_tool_prefix"; then
10695 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10696set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698$as_echo_n "checking for $ac_word... " >&6; }
10699if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
7e0f7140 10701else
2429c060
PB
10702 if test -n "$AR_FOR_TARGET"; then
10703 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10704else
c6b750e1
DJ
10705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706for as_dir in $PATH
10707do
10708 IFS=$as_save_IFS
10709 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10710 for ac_exec_ext in '' $ac_executable_extensions; do
10711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10712 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10714 break 2
10715 fi
10716done
81ecdfbb
RW
10717 done
10718IFS=$as_save_IFS
c6b750e1 10719
7e0f7140
GK
10720fi
10721fi
c6b750e1 10722AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10723if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10725$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10726else
81ecdfbb
RW
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728$as_echo "no" >&6; }
7e0f7140
GK
10729fi
10730
81ecdfbb 10731
2429c060
PB
10732 fi
10733 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10735set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737$as_echo_n "checking for $ac_word... " >&6; }
10738if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
7e0f7140 10740else
2429c060
PB
10741 if test -n "$AR_FOR_TARGET"; then
10742 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10743else
c6b750e1
DJ
10744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745for as_dir in $PATH
10746do
10747 IFS=$as_save_IFS
10748 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10751 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10753 break 2
10754 fi
10755done
81ecdfbb
RW
10756 done
10757IFS=$as_save_IFS
c6b750e1 10758
7e0f7140
GK
10759fi
10760fi
c6b750e1 10761AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10762if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10764$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10765else
81ecdfbb
RW
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767$as_echo "no" >&6; }
7e0f7140 10768fi
c6b750e1 10769
81ecdfbb 10770
2429c060
PB
10771 fi
10772 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10773 done
10774fi
c6b750e1 10775
2429c060
PB
10776if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10777 set dummy ar
7e0f7140 10778 if test $build = $target ; then
2429c060 10779 AR_FOR_TARGET="$2"
7e0f7140 10780 else
2429c060 10781 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10782 fi
d3f5afc4
MS
10783else
10784 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10785fi
10786
3a35eeb3
PB
10787else
10788 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10789fi
10790
10791
10792
10793
10794if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10795 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10797$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10798 if test -x $with_build_time_tools/as; then
10799 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10800 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10802$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10803 else
81ecdfbb
RW
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805$as_echo "no" >&6; }
3a35eeb3 10806 fi
2429c060
PB
10807 elif test $build != $host && test $have_gcc_for_target = yes; then
10808 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10809 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10810 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10811 fi
10812fi
c6b750e1 10813if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10814 # Extract the first word of "as", so it can be a program name with args.
10815set dummy as; ac_word=$2
81ecdfbb
RW
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817$as_echo_n "checking for $ac_word... " >&6; }
10818if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
2429c060 10820else
c6b750e1
DJ
10821 case $AS_FOR_TARGET in
10822 [\\/]* | ?:[\\/]*)
2429c060
PB
10823 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10824 ;;
2429c060 10825 *)
c6b750e1
DJ
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $gcc_cv_tool_dirs
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10833 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10835 break 2
10836 fi
10837done
81ecdfbb
RW
10838 done
10839IFS=$as_save_IFS
c6b750e1 10840
2429c060
PB
10841 ;;
10842esac
10843fi
c6b750e1 10844AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10845if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10847$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10848else
81ecdfbb
RW
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850$as_echo "no" >&6; }
2429c060
PB
10851fi
10852
81ecdfbb 10853
2429c060
PB
10854fi
10855if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10856
10857
10858if test -n "$AS_FOR_TARGET"; then
10859 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10860elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10861 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10862fi
10863
10864if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10865 for ncn_progname in as; do
10866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10867set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869$as_echo_n "checking for $ac_word... " >&6; }
10870if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
9a819804
AO
10872else
10873 if test -n "$AS_FOR_TARGET"; then
10874 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10875else
10876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877for as_dir in $PATH
10878do
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10881 for ac_exec_ext in '' $ac_executable_extensions; do
10882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10883 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10885 break 2
10886 fi
10887done
81ecdfbb
RW
10888 done
10889IFS=$as_save_IFS
9a819804
AO
10890
10891fi
10892fi
10893AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10894if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10896$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10897else
81ecdfbb
RW
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899$as_echo "no" >&6; }
9a819804
AO
10900fi
10901
81ecdfbb 10902
9a819804
AO
10903 done
10904fi
10905
10906if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10907 for ncn_progname in as; do
81ecdfbb
RW
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10909$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10910 if test -x $with_build_time_tools/${ncn_progname}; then
10911 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10913$as_echo "yes" >&6; }
2429c060
PB
10914 break
10915 else
81ecdfbb
RW
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917$as_echo "no" >&6; }
2429c060
PB
10918 fi
10919 done
10920fi
10921
10922if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10923 for ncn_progname in as; do
10924 if test -n "$ncn_target_tool_prefix"; then
10925 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10926set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10928$as_echo_n "checking for $ac_word... " >&6; }
10929if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10930 $as_echo_n "(cached) " >&6
2429c060
PB
10931else
10932 if test -n "$AS_FOR_TARGET"; then
10933 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10934else
c6b750e1
DJ
10935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936for as_dir in $PATH
10937do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10942 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10944 break 2
10945 fi
10946done
81ecdfbb
RW
10947 done
10948IFS=$as_save_IFS
c6b750e1 10949
2429c060
PB
10950fi
10951fi
c6b750e1 10952AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10953if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10955$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10956else
81ecdfbb
RW
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958$as_echo "no" >&6; }
2429c060
PB
10959fi
10960
81ecdfbb 10961
2429c060
PB
10962 fi
10963 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10965set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967$as_echo_n "checking for $ac_word... " >&6; }
10968if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
2429c060
PB
10970else
10971 if test -n "$AS_FOR_TARGET"; then
10972 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10973else
c6b750e1
DJ
10974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975for as_dir in $PATH
10976do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10981 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10983 break 2
10984 fi
10985done
81ecdfbb
RW
10986 done
10987IFS=$as_save_IFS
c6b750e1 10988
2429c060
PB
10989fi
10990fi
c6b750e1 10991AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10992if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10994$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10995else
81ecdfbb
RW
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997$as_echo "no" >&6; }
2429c060 10998fi
c6b750e1 10999
81ecdfbb 11000
2429c060
PB
11001 fi
11002 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11003 done
11004fi
c6b750e1 11005
2429c060
PB
11006if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11007 set dummy as
11008 if test $build = $target ; then
11009 AS_FOR_TARGET="$2"
11010 else
11011 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11012 fi
d3f5afc4
MS
11013else
11014 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11015fi
11016
3a35eeb3
PB
11017else
11018 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11019fi
11020
11021
11022
11023
11024if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11025 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11027$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11028 if test -x $with_build_time_tools/dlltool; then
11029 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11030 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11032$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11033 else
81ecdfbb
RW
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035$as_echo "no" >&6; }
3a35eeb3 11036 fi
2429c060
PB
11037 elif test $build != $host && test $have_gcc_for_target = yes; then
11038 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11039 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11040 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11041 fi
11042fi
c6b750e1 11043if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11044 # Extract the first word of "dlltool", so it can be a program name with args.
11045set dummy dlltool; ac_word=$2
81ecdfbb
RW
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047$as_echo_n "checking for $ac_word... " >&6; }
11048if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
2429c060 11050else
c6b750e1
DJ
11051 case $DLLTOOL_FOR_TARGET in
11052 [\\/]* | ?:[\\/]*)
2429c060
PB
11053 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11054 ;;
2429c060 11055 *)
c6b750e1
DJ
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $gcc_cv_tool_dirs
11058do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11063 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11065 break 2
11066 fi
11067done
81ecdfbb
RW
11068 done
11069IFS=$as_save_IFS
c6b750e1 11070
2429c060
PB
11071 ;;
11072esac
11073fi
c6b750e1 11074DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11075if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11077$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11078else
81ecdfbb
RW
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080$as_echo "no" >&6; }
2429c060
PB
11081fi
11082
81ecdfbb 11083
2429c060
PB
11084fi
11085if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11086
11087
11088if test -n "$DLLTOOL_FOR_TARGET"; then
11089 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11090elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11091 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11092fi
11093
11094if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11095 for ncn_progname in dlltool; do
11096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11097set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099$as_echo_n "checking for $ac_word... " >&6; }
11100if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
9a819804
AO
11102else
11103 if test -n "$DLLTOOL_FOR_TARGET"; then
11104 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11105else
11106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107for as_dir in $PATH
11108do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11113 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11115 break 2
11116 fi
11117done
81ecdfbb
RW
11118 done
11119IFS=$as_save_IFS
9a819804
AO
11120
11121fi
11122fi
11123DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11124if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11126$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11127else
81ecdfbb
RW
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129$as_echo "no" >&6; }
9a819804
AO
11130fi
11131
81ecdfbb 11132
9a819804
AO
11133 done
11134fi
11135
11136if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11137 for ncn_progname in dlltool; do
81ecdfbb
RW
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11139$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11140 if test -x $with_build_time_tools/${ncn_progname}; then
11141 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11143$as_echo "yes" >&6; }
2429c060
PB
11144 break
11145 else
81ecdfbb
RW
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147$as_echo "no" >&6; }
2429c060
PB
11148 fi
11149 done
11150fi
11151
11152if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11153 for ncn_progname in dlltool; do
11154 if test -n "$ncn_target_tool_prefix"; then
11155 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11156set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11158$as_echo_n "checking for $ac_word... " >&6; }
11159if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11160 $as_echo_n "(cached) " >&6
2429c060
PB
11161else
11162 if test -n "$DLLTOOL_FOR_TARGET"; then
11163 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11164else
c6b750e1
DJ
11165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166for as_dir in $PATH
11167do
11168 IFS=$as_save_IFS
11169 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11170 for ac_exec_ext in '' $ac_executable_extensions; do
11171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11172 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11174 break 2
11175 fi
11176done
81ecdfbb
RW
11177 done
11178IFS=$as_save_IFS
c6b750e1 11179
2429c060
PB
11180fi
11181fi
c6b750e1 11182DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11183if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11185$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11186else
81ecdfbb
RW
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188$as_echo "no" >&6; }
2429c060
PB
11189fi
11190
81ecdfbb 11191
2429c060
PB
11192 fi
11193 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11195set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197$as_echo_n "checking for $ac_word... " >&6; }
11198if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
2429c060
PB
11200else
11201 if test -n "$DLLTOOL_FOR_TARGET"; then
11202 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11203else
c6b750e1
DJ
11204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205for as_dir in $PATH
11206do
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11211 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11213 break 2
11214 fi
11215done
81ecdfbb
RW
11216 done
11217IFS=$as_save_IFS
c6b750e1 11218
2429c060
PB
11219fi
11220fi
c6b750e1 11221DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11222if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11224$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11225else
81ecdfbb
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; }
2429c060 11228fi
c6b750e1 11229
81ecdfbb 11230
2429c060
PB
11231 fi
11232 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11233 done
11234fi
c6b750e1 11235
2429c060
PB
11236if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11237 set dummy dlltool
11238 if test $build = $target ; then
11239 DLLTOOL_FOR_TARGET="$2"
11240 else
11241 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11242 fi
d3f5afc4
MS
11243else
11244 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11245fi
11246
3a35eeb3
PB
11247else
11248 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11249fi
11250
11251
11252
11253
11254if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11255 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11257$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11258 if test -x $with_build_time_tools/ld; then
11259 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11260 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11262$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11263 else
81ecdfbb
RW
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265$as_echo "no" >&6; }
3a35eeb3 11266 fi
2429c060
PB
11267 elif test $build != $host && test $have_gcc_for_target = yes; then
11268 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11269 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11270 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11271 fi
11272fi
c6b750e1 11273if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11274 # Extract the first word of "ld", so it can be a program name with args.
11275set dummy ld; ac_word=$2
81ecdfbb
RW
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277$as_echo_n "checking for $ac_word... " >&6; }
11278if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
2429c060 11280else
c6b750e1
DJ
11281 case $LD_FOR_TARGET in
11282 [\\/]* | ?:[\\/]*)
2429c060
PB
11283 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11284 ;;
2429c060 11285 *)
c6b750e1
DJ
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287for as_dir in $gcc_cv_tool_dirs
11288do
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11293 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11295 break 2
11296 fi
11297done
81ecdfbb
RW
11298 done
11299IFS=$as_save_IFS
c6b750e1 11300
2429c060
PB
11301 ;;
11302esac
11303fi
c6b750e1 11304LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11305if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11307$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11308else
81ecdfbb
RW
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310$as_echo "no" >&6; }
2429c060
PB
11311fi
11312
81ecdfbb 11313
2429c060
PB
11314fi
11315if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11316
11317
11318if test -n "$LD_FOR_TARGET"; then
11319 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11320elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11321 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11322fi
11323
11324if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11325 for ncn_progname in ld; do
11326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11327set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329$as_echo_n "checking for $ac_word... " >&6; }
11330if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11331 $as_echo_n "(cached) " >&6
9a819804
AO
11332else
11333 if test -n "$LD_FOR_TARGET"; then
11334 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11335else
11336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337for as_dir in $PATH
11338do
11339 IFS=$as_save_IFS
11340 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11341 for ac_exec_ext in '' $ac_executable_extensions; do
11342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11343 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11345 break 2
11346 fi
11347done
81ecdfbb
RW
11348 done
11349IFS=$as_save_IFS
9a819804
AO
11350
11351fi
11352fi
11353LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11354if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11356$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11357else
81ecdfbb
RW
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359$as_echo "no" >&6; }
9a819804
AO
11360fi
11361
81ecdfbb 11362
9a819804
AO
11363 done
11364fi
11365
11366if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11367 for ncn_progname in ld; do
81ecdfbb
RW
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11369$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11370 if test -x $with_build_time_tools/${ncn_progname}; then
11371 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11373$as_echo "yes" >&6; }
2429c060
PB
11374 break
11375 else
81ecdfbb
RW
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
2429c060
PB
11378 fi
11379 done
11380fi
11381
11382if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11383 for ncn_progname in ld; do
11384 if test -n "$ncn_target_tool_prefix"; then
11385 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11386set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388$as_echo_n "checking for $ac_word... " >&6; }
11389if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11390 $as_echo_n "(cached) " >&6
2429c060
PB
11391else
11392 if test -n "$LD_FOR_TARGET"; then
11393 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11394else
c6b750e1
DJ
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11402 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11404 break 2
11405 fi
11406done
81ecdfbb
RW
11407 done
11408IFS=$as_save_IFS
c6b750e1 11409
2429c060
PB
11410fi
11411fi
c6b750e1 11412LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11413if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11415$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11416else
81ecdfbb
RW
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
2429c060
PB
11419fi
11420
81ecdfbb 11421
2429c060
PB
11422 fi
11423 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11425set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427$as_echo_n "checking for $ac_word... " >&6; }
11428if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
2429c060
PB
11430else
11431 if test -n "$LD_FOR_TARGET"; then
11432 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11433else
c6b750e1
DJ
11434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435for as_dir in $PATH
11436do
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11441 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11443 break 2
11444 fi
11445done
81ecdfbb
RW
11446 done
11447IFS=$as_save_IFS
c6b750e1 11448
2429c060
PB
11449fi
11450fi
c6b750e1 11451LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11452if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11454$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11455else
81ecdfbb
RW
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457$as_echo "no" >&6; }
2429c060 11458fi
c6b750e1 11459
81ecdfbb 11460
2429c060
PB
11461 fi
11462 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11463 done
11464fi
c6b750e1 11465
2429c060
PB
11466if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11467 set dummy ld
11468 if test $build = $target ; then
11469 LD_FOR_TARGET="$2"
11470 else
11471 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11472 fi
d3f5afc4
MS
11473else
11474 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11475fi
11476
3a35eeb3
PB
11477else
11478 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11479fi
11480
11481
11482
11483
11484if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11485 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11487$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11488 if test -x $with_build_time_tools/lipo; then
11489 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11490 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11492$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11493 else
81ecdfbb
RW
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495$as_echo "no" >&6; }
3a35eeb3 11496 fi
2429c060
PB
11497 elif test $build != $host && test $have_gcc_for_target = yes; then
11498 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11499 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11500 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11501 fi
11502fi
9a819804
AO
11503if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11504 # Extract the first word of "lipo", so it can be a program name with args.
11505set dummy lipo; ac_word=$2
81ecdfbb
RW
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507$as_echo_n "checking for $ac_word... " >&6; }
11508if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
9a819804
AO
11510else
11511 case $LIPO_FOR_TARGET in
11512 [\\/]* | ?:[\\/]*)
11513 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11514 ;;
11515 *)
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $gcc_cv_tool_dirs
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11523 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11525 break 2
11526 fi
11527done
81ecdfbb
RW
11528 done
11529IFS=$as_save_IFS
9a819804
AO
11530
11531 ;;
11532esac
11533fi
11534LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11535if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11537$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11538else
81ecdfbb
RW
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540$as_echo "no" >&6; }
9a819804
AO
11541fi
11542
81ecdfbb 11543
9a819804
AO
11544fi
11545if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11546
11547
11548if test -n "$LIPO_FOR_TARGET"; then
11549 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11550elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11551 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11552fi
11553
11554if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11555 for ncn_progname in lipo; do
11556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11557set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559$as_echo_n "checking for $ac_word... " >&6; }
11560if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11561 $as_echo_n "(cached) " >&6
2429c060 11562else
9a819804
AO
11563 if test -n "$LIPO_FOR_TARGET"; then
11564 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11565else
11566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567for as_dir in $PATH
c6b750e1
DJ
11568do
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11573 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11575 break 2
11576 fi
11577done
81ecdfbb
RW
11578 done
11579IFS=$as_save_IFS
c6b750e1 11580
2429c060 11581fi
9a819804
AO
11582fi
11583LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11584if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11586$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11587else
81ecdfbb
RW
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589$as_echo "no" >&6; }
2429c060
PB
11590fi
11591
81ecdfbb 11592
9a819804 11593 done
2429c060 11594fi
9a819804
AO
11595
11596if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11597 for ncn_progname in lipo; do
81ecdfbb
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11599$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11600 if test -x $with_build_time_tools/${ncn_progname}; then
11601 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11603$as_echo "yes" >&6; }
2429c060
PB
11604 break
11605 else
81ecdfbb
RW
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607$as_echo "no" >&6; }
2429c060
PB
11608 fi
11609 done
11610fi
11611
11612if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11613 for ncn_progname in lipo; do
11614 if test -n "$ncn_target_tool_prefix"; then
11615 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11616set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618$as_echo_n "checking for $ac_word... " >&6; }
11619if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
2429c060
PB
11621else
11622 if test -n "$LIPO_FOR_TARGET"; then
11623 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11624else
c6b750e1
DJ
11625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626for as_dir in $PATH
11627do
11628 IFS=$as_save_IFS
11629 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11632 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11634 break 2
11635 fi
11636done
81ecdfbb
RW
11637 done
11638IFS=$as_save_IFS
c6b750e1 11639
2429c060
PB
11640fi
11641fi
c6b750e1 11642LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11643if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11645$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11646else
81ecdfbb
RW
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648$as_echo "no" >&6; }
2429c060
PB
11649fi
11650
81ecdfbb 11651
2429c060
PB
11652 fi
11653 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11655set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657$as_echo_n "checking for $ac_word... " >&6; }
11658if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
2429c060
PB
11660else
11661 if test -n "$LIPO_FOR_TARGET"; then
11662 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11663else
c6b750e1
DJ
11664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665for as_dir in $PATH
11666do
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11671 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11673 break 2
11674 fi
11675done
81ecdfbb
RW
11676 done
11677IFS=$as_save_IFS
c6b750e1 11678
2429c060
PB
11679fi
11680fi
c6b750e1 11681LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11682if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11684$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11685else
81ecdfbb
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687$as_echo "no" >&6; }
2429c060 11688fi
c6b750e1 11689
81ecdfbb 11690
2429c060
PB
11691 fi
11692 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11693 done
11694fi
c6b750e1 11695
2429c060
PB
11696if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11697 set dummy lipo
11698 if test $build = $target ; then
11699 LIPO_FOR_TARGET="$2"
11700 else
11701 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11702 fi
d3f5afc4
MS
11703else
11704 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11705fi
11706
3a35eeb3
PB
11707else
11708 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11709fi
11710
11711
11712
11713
11714if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11715 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11717$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11718 if test -x $with_build_time_tools/nm; then
11719 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11720 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11722$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11723 else
81ecdfbb
RW
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725$as_echo "no" >&6; }
3a35eeb3 11726 fi
2429c060
PB
11727 elif test $build != $host && test $have_gcc_for_target = yes; then
11728 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11729 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11730 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11731 fi
11732fi
c6b750e1 11733if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11734 # Extract the first word of "nm", so it can be a program name with args.
11735set dummy nm; ac_word=$2
81ecdfbb
RW
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737$as_echo_n "checking for $ac_word... " >&6; }
11738if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11739 $as_echo_n "(cached) " >&6
2429c060 11740else
c6b750e1
DJ
11741 case $NM_FOR_TARGET in
11742 [\\/]* | ?:[\\/]*)
2429c060
PB
11743 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11744 ;;
2429c060 11745 *)
c6b750e1
DJ
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $gcc_cv_tool_dirs
11748do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11753 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11755 break 2
11756 fi
11757done
81ecdfbb
RW
11758 done
11759IFS=$as_save_IFS
c6b750e1 11760
2429c060
PB
11761 ;;
11762esac
11763fi
c6b750e1 11764NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11765if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11767$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11768else
81ecdfbb
RW
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
2429c060
PB
11771fi
11772
81ecdfbb 11773
2429c060
PB
11774fi
11775if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11776
11777
11778if test -n "$NM_FOR_TARGET"; then
11779 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11780elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11781 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11782fi
11783
11784if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11785 for ncn_progname in nm; do
11786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11787set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789$as_echo_n "checking for $ac_word... " >&6; }
11790if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11791 $as_echo_n "(cached) " >&6
9a819804
AO
11792else
11793 if test -n "$NM_FOR_TARGET"; then
11794 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11803 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11805 break 2
11806 fi
11807done
81ecdfbb
RW
11808 done
11809IFS=$as_save_IFS
9a819804
AO
11810
11811fi
11812fi
11813NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11814if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11816$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11817else
81ecdfbb
RW
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819$as_echo "no" >&6; }
9a819804
AO
11820fi
11821
81ecdfbb 11822
9a819804
AO
11823 done
11824fi
11825
11826if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11827 for ncn_progname in nm; do
81ecdfbb
RW
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11829$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11830 if test -x $with_build_time_tools/${ncn_progname}; then
11831 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11833$as_echo "yes" >&6; }
2429c060
PB
11834 break
11835 else
81ecdfbb
RW
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
2429c060
PB
11838 fi
11839 done
11840fi
11841
11842if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11843 for ncn_progname in nm; do
11844 if test -n "$ncn_target_tool_prefix"; then
11845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11846set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848$as_echo_n "checking for $ac_word... " >&6; }
11849if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
859789af 11851else
55db4b87
PB
11852 if test -n "$NM_FOR_TARGET"; then
11853 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11854else
c6b750e1
DJ
11855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856for as_dir in $PATH
11857do
11858 IFS=$as_save_IFS
11859 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11860 for ac_exec_ext in '' $ac_executable_extensions; do
11861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11862 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11864 break 2
11865 fi
11866done
81ecdfbb
RW
11867 done
11868IFS=$as_save_IFS
c6b750e1 11869
859789af
AC
11870fi
11871fi
c6b750e1 11872NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11873if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11875$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11876else
81ecdfbb
RW
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878$as_echo "no" >&6; }
859789af
AC
11879fi
11880
81ecdfbb 11881
2429c060
PB
11882 fi
11883 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11885set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887$as_echo_n "checking for $ac_word... " >&6; }
11888if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
859789af 11890else
05cbd757
PB
11891 if test -n "$NM_FOR_TARGET"; then
11892 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11893else
c6b750e1
DJ
11894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895for as_dir in $PATH
11896do
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11901 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11903 break 2
11904 fi
11905done
81ecdfbb
RW
11906 done
11907IFS=$as_save_IFS
c6b750e1 11908
859789af
AC
11909fi
11910fi
c6b750e1 11911NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11912if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11914$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11915else
81ecdfbb
RW
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917$as_echo "no" >&6; }
859789af 11918fi
c6b750e1 11919
81ecdfbb 11920
2429c060
PB
11921 fi
11922 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11923 done
11924fi
c6b750e1 11925
05cbd757
PB
11926if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11927 set dummy nm
11928 if test $build = $target ; then
11929 NM_FOR_TARGET="$2"
859789af 11930 else
05cbd757 11931 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11932 fi
d3f5afc4
MS
11933else
11934 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11935fi
11936
3a35eeb3
PB
11937else
11938 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11939fi
11940
11941
11942
11943
11944if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11945 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11947$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11948 if test -x $with_build_time_tools/objdump; then
11949 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11950 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11952$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 11953 else
81ecdfbb
RW
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955$as_echo "no" >&6; }
3a35eeb3 11956 fi
2429c060
PB
11957 elif test $build != $host && test $have_gcc_for_target = yes; then
11958 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
11959 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11960 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
11961 fi
11962fi
c6b750e1 11963if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11964 # Extract the first word of "objdump", so it can be a program name with args.
11965set dummy objdump; ac_word=$2
81ecdfbb
RW
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967$as_echo_n "checking for $ac_word... " >&6; }
11968if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
2429c060 11970else
c6b750e1
DJ
11971 case $OBJDUMP_FOR_TARGET in
11972 [\\/]* | ?:[\\/]*)
2429c060
PB
11973 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11974 ;;
2429c060 11975 *)
c6b750e1
DJ
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977for as_dir in $gcc_cv_tool_dirs
11978do
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11983 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11985 break 2
11986 fi
11987done
81ecdfbb
RW
11988 done
11989IFS=$as_save_IFS
c6b750e1 11990
2429c060
PB
11991 ;;
11992esac
11993fi
c6b750e1 11994OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 11995if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11997$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 11998else
81ecdfbb
RW
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
2429c060
PB
12001fi
12002
81ecdfbb 12003
2429c060
PB
12004fi
12005if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12006
12007
12008if test -n "$OBJDUMP_FOR_TARGET"; then
12009 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12010elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12011 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12012fi
12013
12014if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12015 for ncn_progname in objdump; do
12016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12017set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12019$as_echo_n "checking for $ac_word... " >&6; }
12020if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
9a819804
AO
12022else
12023 if test -n "$OBJDUMP_FOR_TARGET"; then
12024 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12025else
12026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027for as_dir in $PATH
12028do
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12031 for ac_exec_ext in '' $ac_executable_extensions; do
12032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12033 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12035 break 2
12036 fi
12037done
81ecdfbb
RW
12038 done
12039IFS=$as_save_IFS
9a819804
AO
12040
12041fi
12042fi
12043OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12044if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12046$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12047else
81ecdfbb
RW
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049$as_echo "no" >&6; }
9a819804
AO
12050fi
12051
81ecdfbb 12052
9a819804
AO
12053 done
12054fi
12055
12056if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12057 for ncn_progname in objdump; do
81ecdfbb
RW
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12059$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12060 if test -x $with_build_time_tools/${ncn_progname}; then
12061 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12063$as_echo "yes" >&6; }
2429c060
PB
12064 break
12065 else
81ecdfbb
RW
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067$as_echo "no" >&6; }
2429c060
PB
12068 fi
12069 done
12070fi
12071
12072if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12073 for ncn_progname in objdump; do
12074 if test -n "$ncn_target_tool_prefix"; then
12075 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12076set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12078$as_echo_n "checking for $ac_word... " >&6; }
12079if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12080 $as_echo_n "(cached) " >&6
5ae72758
DJ
12081else
12082 if test -n "$OBJDUMP_FOR_TARGET"; then
12083 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12084else
c6b750e1
DJ
12085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086for as_dir in $PATH
12087do
12088 IFS=$as_save_IFS
12089 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12092 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12094 break 2
12095 fi
12096done
81ecdfbb
RW
12097 done
12098IFS=$as_save_IFS
c6b750e1 12099
5ae72758
DJ
12100fi
12101fi
c6b750e1 12102OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12103if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12105$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12106else
81ecdfbb
RW
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108$as_echo "no" >&6; }
5ae72758
DJ
12109fi
12110
81ecdfbb 12111
2429c060
PB
12112 fi
12113 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12114 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12115set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
12118if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
5ae72758
DJ
12120else
12121 if test -n "$OBJDUMP_FOR_TARGET"; then
12122 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12123else
c6b750e1
DJ
12124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $PATH
12126do
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12131 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12133 break 2
12134 fi
12135done
81ecdfbb
RW
12136 done
12137IFS=$as_save_IFS
c6b750e1 12138
5ae72758
DJ
12139fi
12140fi
c6b750e1 12141OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12142if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12144$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12145else
81ecdfbb
RW
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
5ae72758 12148fi
c6b750e1 12149
81ecdfbb 12150
2429c060
PB
12151 fi
12152 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12153 done
12154fi
c6b750e1 12155
5ae72758
DJ
12156if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12157 set dummy objdump
12158 if test $build = $target ; then
12159 OBJDUMP_FOR_TARGET="$2"
12160 else
12161 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12162 fi
d3f5afc4
MS
12163else
12164 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12165fi
12166
3a35eeb3
PB
12167else
12168 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12169fi
12170
12171
12172
12173
12174if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12175 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12177$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12178 if test -x $with_build_time_tools/ranlib; then
12179 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12180 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12182$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12183 else
81ecdfbb
RW
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185$as_echo "no" >&6; }
3a35eeb3 12186 fi
2429c060
PB
12187 elif test $build != $host && test $have_gcc_for_target = yes; then
12188 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12189 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12190 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12191 fi
12192fi
c6b750e1 12193if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12194 # Extract the first word of "ranlib", so it can be a program name with args.
12195set dummy ranlib; ac_word=$2
81ecdfbb
RW
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197$as_echo_n "checking for $ac_word... " >&6; }
12198if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12199 $as_echo_n "(cached) " >&6
2429c060 12200else
c6b750e1
DJ
12201 case $RANLIB_FOR_TARGET in
12202 [\\/]* | ?:[\\/]*)
2429c060
PB
12203 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12204 ;;
2429c060 12205 *)
c6b750e1
DJ
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $gcc_cv_tool_dirs
12208do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12213 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12215 break 2
12216 fi
12217done
81ecdfbb
RW
12218 done
12219IFS=$as_save_IFS
c6b750e1 12220
2429c060
PB
12221 ;;
12222esac
12223fi
c6b750e1 12224RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12225if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12227$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12228else
81ecdfbb
RW
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230$as_echo "no" >&6; }
2429c060
PB
12231fi
12232
81ecdfbb 12233
2429c060
PB
12234fi
12235if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12236
12237
12238if test -n "$RANLIB_FOR_TARGET"; then
12239 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12240elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12241 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12242fi
12243
12244if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12245 for ncn_progname in ranlib; do
12246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12247set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249$as_echo_n "checking for $ac_word... " >&6; }
12250if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
9a819804
AO
12252else
12253 if test -n "$RANLIB_FOR_TARGET"; then
12254 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12255else
12256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12257for as_dir in $PATH
12258do
12259 IFS=$as_save_IFS
12260 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12261 for ac_exec_ext in '' $ac_executable_extensions; do
12262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12263 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12265 break 2
12266 fi
12267done
81ecdfbb
RW
12268 done
12269IFS=$as_save_IFS
9a819804
AO
12270
12271fi
12272fi
12273RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12274if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12276$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12277else
81ecdfbb
RW
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279$as_echo "no" >&6; }
9a819804
AO
12280fi
12281
81ecdfbb 12282
9a819804
AO
12283 done
12284fi
12285
12286if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12287 for ncn_progname in ranlib; do
81ecdfbb
RW
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12289$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12290 if test -x $with_build_time_tools/${ncn_progname}; then
12291 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293$as_echo "yes" >&6; }
2429c060
PB
12294 break
12295 else
81ecdfbb
RW
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
2429c060
PB
12298 fi
12299 done
12300fi
12301
12302if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12303 for ncn_progname in ranlib; do
12304 if test -n "$ncn_target_tool_prefix"; then
12305 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12306set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308$as_echo_n "checking for $ac_word... " >&6; }
12309if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
859789af 12311else
55db4b87
PB
12312 if test -n "$RANLIB_FOR_TARGET"; then
12313 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12314else
c6b750e1
DJ
12315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316for as_dir in $PATH
12317do
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12322 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12324 break 2
12325 fi
12326done
81ecdfbb
RW
12327 done
12328IFS=$as_save_IFS
c6b750e1 12329
859789af
AC
12330fi
12331fi
c6b750e1 12332RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12333if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12335$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12336else
81ecdfbb
RW
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338$as_echo "no" >&6; }
859789af
AC
12339fi
12340
81ecdfbb 12341
2429c060
PB
12342 fi
12343 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12345set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347$as_echo_n "checking for $ac_word... " >&6; }
12348if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
859789af 12350else
05cbd757
PB
12351 if test -n "$RANLIB_FOR_TARGET"; then
12352 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12353else
c6b750e1
DJ
12354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355for as_dir in $PATH
12356do
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12361 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12363 break 2
12364 fi
12365done
81ecdfbb
RW
12366 done
12367IFS=$as_save_IFS
c6b750e1 12368
859789af
AC
12369fi
12370fi
c6b750e1 12371RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12372if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12374$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12375else
81ecdfbb
RW
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377$as_echo "no" >&6; }
859789af 12378fi
c6b750e1 12379
81ecdfbb 12380
2429c060
PB
12381 fi
12382 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12383 done
12384fi
c6b750e1 12385
2429c060
PB
12386if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12387 set dummy ranlib
12388 if test $build = $target ; then
12389 RANLIB_FOR_TARGET="$2"
12390 else
12391 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12392 fi
d3f5afc4
MS
12393else
12394 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12395fi
05cbd757 12396
3a35eeb3
PB
12397else
12398 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12399fi
12400
2429c060
PB
12401
12402
12403
b121d7d4
DD
12404if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12405 if test -n "$with_build_time_tools"; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12407$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12408 if test -x $with_build_time_tools/readelf; then
12409 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12410 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12412$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415$as_echo "no" >&6; }
12416 fi
12417 elif test $build != $host && test $have_gcc_for_target = yes; then
12418 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12419 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12420 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12421 fi
12422fi
12423if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12424 # Extract the first word of "readelf", so it can be a program name with args.
12425set dummy readelf; ac_word=$2
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427$as_echo_n "checking for $ac_word... " >&6; }
12428if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430else
12431 case $READELF_FOR_TARGET in
12432 [\\/]* | ?:[\\/]*)
12433 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12434 ;;
12435 *)
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437for as_dir in $gcc_cv_tool_dirs
12438do
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12443 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445 break 2
12446 fi
12447done
12448 done
12449IFS=$as_save_IFS
12450
12451 ;;
12452esac
12453fi
12454READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12455if test -n "$READELF_FOR_TARGET"; then
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12457$as_echo "$READELF_FOR_TARGET" >&6; }
12458else
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460$as_echo "no" >&6; }
12461fi
12462
12463
12464fi
12465if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12466
12467
12468if test -n "$READELF_FOR_TARGET"; then
12469 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12470elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12471 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12472fi
12473
12474if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12475 for ncn_progname in readelf; do
12476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12477set dummy ${ncn_progname}; ac_word=$2
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479$as_echo_n "checking for $ac_word... " >&6; }
12480if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12481 $as_echo_n "(cached) " >&6
12482else
12483 if test -n "$READELF_FOR_TARGET"; then
12484 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12485else
12486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487for as_dir in $PATH
12488do
12489 IFS=$as_save_IFS
12490 test -z "$as_dir" && as_dir=.
12491 for ac_exec_ext in '' $ac_executable_extensions; do
12492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12493 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 break 2
12496 fi
12497done
12498 done
12499IFS=$as_save_IFS
12500
12501fi
12502fi
12503READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12504if test -n "$READELF_FOR_TARGET"; then
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12506$as_echo "$READELF_FOR_TARGET" >&6; }
12507else
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509$as_echo "no" >&6; }
12510fi
12511
12512
12513 done
12514fi
12515
12516if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12517 for ncn_progname in readelf; do
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12519$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12520 if test -x $with_build_time_tools/${ncn_progname}; then
12521 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12523$as_echo "yes" >&6; }
12524 break
12525 else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528 fi
12529 done
12530fi
12531
12532if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12533 for ncn_progname in readelf; do
12534 if test -n "$ncn_target_tool_prefix"; then
12535 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12536set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538$as_echo_n "checking for $ac_word... " >&6; }
12539if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12540 $as_echo_n "(cached) " >&6
12541else
12542 if test -n "$READELF_FOR_TARGET"; then
12543 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12544else
12545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546for as_dir in $PATH
12547do
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12552 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12554 break 2
12555 fi
12556done
12557 done
12558IFS=$as_save_IFS
12559
12560fi
12561fi
12562READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12563if test -n "$READELF_FOR_TARGET"; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12565$as_echo "$READELF_FOR_TARGET" >&6; }
12566else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568$as_echo "no" >&6; }
12569fi
12570
12571
12572 fi
12573 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12575set dummy ${ncn_progname}; ac_word=$2
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577$as_echo_n "checking for $ac_word... " >&6; }
12578if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12580else
12581 if test -n "$READELF_FOR_TARGET"; then
12582 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12583else
12584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585for as_dir in $PATH
12586do
12587 IFS=$as_save_IFS
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12591 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12593 break 2
12594 fi
12595done
12596 done
12597IFS=$as_save_IFS
12598
12599fi
12600fi
12601READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12602if test -n "$READELF_FOR_TARGET"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12604$as_echo "$READELF_FOR_TARGET" >&6; }
12605else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607$as_echo "no" >&6; }
12608fi
12609
12610
12611 fi
12612 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12613 done
12614fi
12615
12616if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12617 set dummy readelf
12618 if test $build = $target ; then
12619 READELF_FOR_TARGET="$2"
12620 else
12621 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12622 fi
12623else
12624 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12625fi
12626
12627else
12628 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12629fi
12630
12631
12632
12633
2429c060
PB
12634if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12635 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12637$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12638 if test -x $with_build_time_tools/strip; then
12639 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12640 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12642$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12643 else
81ecdfbb
RW
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645$as_echo "no" >&6; }
3a35eeb3 12646 fi
2429c060
PB
12647 elif test $build != $host && test $have_gcc_for_target = yes; then
12648 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12649 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12650 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12651 fi
12652fi
c6b750e1 12653if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12654 # Extract the first word of "strip", so it can be a program name with args.
12655set dummy strip; ac_word=$2
81ecdfbb
RW
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657$as_echo_n "checking for $ac_word... " >&6; }
12658if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
2429c060 12660else
c6b750e1
DJ
12661 case $STRIP_FOR_TARGET in
12662 [\\/]* | ?:[\\/]*)
2429c060
PB
12663 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12664 ;;
2429c060 12665 *)
c6b750e1
DJ
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667for as_dir in $gcc_cv_tool_dirs
12668do
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12673 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12675 break 2
12676 fi
12677done
81ecdfbb
RW
12678 done
12679IFS=$as_save_IFS
c6b750e1 12680
2429c060
PB
12681 ;;
12682esac
12683fi
c6b750e1 12684STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12685if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12687$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12688else
81ecdfbb
RW
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690$as_echo "no" >&6; }
2429c060
PB
12691fi
12692
81ecdfbb 12693
2429c060
PB
12694fi
12695if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12696
12697
12698if test -n "$STRIP_FOR_TARGET"; then
12699 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12700elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12701 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12702fi
12703
12704if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12705 for ncn_progname in strip; do
12706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12707set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709$as_echo_n "checking for $ac_word... " >&6; }
12710if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12711 $as_echo_n "(cached) " >&6
9a819804
AO
12712else
12713 if test -n "$STRIP_FOR_TARGET"; then
12714 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12715else
12716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717for as_dir in $PATH
12718do
12719 IFS=$as_save_IFS
12720 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12721 for ac_exec_ext in '' $ac_executable_extensions; do
12722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12723 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12725 break 2
12726 fi
12727done
81ecdfbb
RW
12728 done
12729IFS=$as_save_IFS
9a819804
AO
12730
12731fi
12732fi
12733STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12734if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12736$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12737else
81ecdfbb
RW
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739$as_echo "no" >&6; }
9a819804
AO
12740fi
12741
81ecdfbb 12742
9a819804
AO
12743 done
12744fi
12745
12746if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12747 for ncn_progname in strip; do
81ecdfbb
RW
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12749$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12750 if test -x $with_build_time_tools/${ncn_progname}; then
12751 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12753$as_echo "yes" >&6; }
2429c060
PB
12754 break
12755 else
81ecdfbb
RW
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757$as_echo "no" >&6; }
2429c060
PB
12758 fi
12759 done
12760fi
12761
12762if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12763 for ncn_progname in strip; do
12764 if test -n "$ncn_target_tool_prefix"; then
12765 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12766set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12768$as_echo_n "checking for $ac_word... " >&6; }
12769if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
7e0f7140
GK
12771else
12772 if test -n "$STRIP_FOR_TARGET"; then
12773 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12774else
12775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776for as_dir in $PATH
12777do
12778 IFS=$as_save_IFS
12779 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12782 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12784 break 2
12785 fi
12786done
81ecdfbb
RW
12787 done
12788IFS=$as_save_IFS
c6b750e1 12789
7e0f7140
GK
12790fi
12791fi
c6b750e1 12792STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12793if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12795$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12796else
81ecdfbb
RW
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798$as_echo "no" >&6; }
7e0f7140
GK
12799fi
12800
81ecdfbb 12801
2429c060
PB
12802 fi
12803 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12805set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807$as_echo_n "checking for $ac_word... " >&6; }
12808if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
7e0f7140
GK
12810else
12811 if test -n "$STRIP_FOR_TARGET"; then
12812 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12813else
c6b750e1
DJ
12814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815for as_dir in $PATH
12816do
12817 IFS=$as_save_IFS
12818 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12819 for ac_exec_ext in '' $ac_executable_extensions; do
12820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12821 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12823 break 2
12824 fi
12825done
81ecdfbb
RW
12826 done
12827IFS=$as_save_IFS
c6b750e1 12828
7e0f7140
GK
12829fi
12830fi
c6b750e1 12831STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12832if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12834$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12835else
81ecdfbb
RW
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837$as_echo "no" >&6; }
7e0f7140 12838fi
c6b750e1 12839
81ecdfbb 12840
2429c060
PB
12841 fi
12842 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12843 done
12844fi
c6b750e1 12845
7e0f7140
GK
12846if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12847 set dummy strip
12848 if test $build = $target ; then
12849 STRIP_FOR_TARGET="$2"
12850 else
12851 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12852 fi
d3f5afc4
MS
12853else
12854 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12855fi
12856
3a35eeb3
PB
12857else
12858 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12859fi
12860
12861
12862
12863
12864if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12865 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12867$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12868 if test -x $with_build_time_tools/windres; then
12869 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12870 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12872$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12873 else
81ecdfbb
RW
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875$as_echo "no" >&6; }
3a35eeb3 12876 fi
2429c060
PB
12877 elif test $build != $host && test $have_gcc_for_target = yes; then
12878 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12879 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12880 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12881 fi
12882fi
c6b750e1 12883if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12884 # Extract the first word of "windres", so it can be a program name with args.
12885set dummy windres; ac_word=$2
81ecdfbb
RW
12886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887$as_echo_n "checking for $ac_word... " >&6; }
12888if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12889 $as_echo_n "(cached) " >&6
2429c060 12890else
c6b750e1
DJ
12891 case $WINDRES_FOR_TARGET in
12892 [\\/]* | ?:[\\/]*)
2429c060
PB
12893 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12894 ;;
2429c060 12895 *)
c6b750e1
DJ
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897for as_dir in $gcc_cv_tool_dirs
12898do
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12903 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12905 break 2
12906 fi
12907done
81ecdfbb
RW
12908 done
12909IFS=$as_save_IFS
c6b750e1 12910
2429c060
PB
12911 ;;
12912esac
12913fi
c6b750e1 12914WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12915if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12917$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12918else
81ecdfbb
RW
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920$as_echo "no" >&6; }
2429c060
PB
12921fi
12922
81ecdfbb 12923
2429c060
PB
12924fi
12925if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12926
12927
12928if test -n "$WINDRES_FOR_TARGET"; then
12929 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12930elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12931 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12932fi
12933
12934if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12935 for ncn_progname in windres; do
12936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12937set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939$as_echo_n "checking for $ac_word... " >&6; }
12940if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12941 $as_echo_n "(cached) " >&6
9a819804
AO
12942else
12943 if test -n "$WINDRES_FOR_TARGET"; then
12944 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12945else
12946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947for as_dir in $PATH
12948do
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12953 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12955 break 2
12956 fi
12957done
81ecdfbb
RW
12958 done
12959IFS=$as_save_IFS
9a819804
AO
12960
12961fi
12962fi
12963WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12964if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12966$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12967else
81ecdfbb
RW
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969$as_echo "no" >&6; }
9a819804
AO
12970fi
12971
81ecdfbb 12972
9a819804
AO
12973 done
12974fi
12975
12976if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12977 for ncn_progname in windres; do
81ecdfbb
RW
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12979$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12980 if test -x $with_build_time_tools/${ncn_progname}; then
12981 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12983$as_echo "yes" >&6; }
2429c060
PB
12984 break
12985 else
81ecdfbb
RW
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
2429c060
PB
12988 fi
12989 done
12990fi
12991
12992if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12993 for ncn_progname in windres; do
12994 if test -n "$ncn_target_tool_prefix"; then
12995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12996set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
12999if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
859789af 13001else
55db4b87
PB
13002 if test -n "$WINDRES_FOR_TARGET"; then
13003 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13004else
c6b750e1
DJ
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13012 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13014 break 2
13015 fi
13016done
81ecdfbb
RW
13017 done
13018IFS=$as_save_IFS
c6b750e1 13019
859789af
AC
13020fi
13021fi
c6b750e1 13022WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13023if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13025$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13026else
81ecdfbb
RW
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028$as_echo "no" >&6; }
859789af
AC
13029fi
13030
81ecdfbb 13031
2429c060
PB
13032 fi
13033 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13035set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037$as_echo_n "checking for $ac_word... " >&6; }
13038if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13039 $as_echo_n "(cached) " >&6
859789af 13040else
05cbd757
PB
13041 if test -n "$WINDRES_FOR_TARGET"; then
13042 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13043else
c6b750e1
DJ
13044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045for as_dir in $PATH
13046do
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13051 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13053 break 2
13054 fi
13055done
81ecdfbb
RW
13056 done
13057IFS=$as_save_IFS
c6b750e1 13058
859789af
AC
13059fi
13060fi
c6b750e1 13061WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13062if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13064$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13065else
81ecdfbb
RW
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067$as_echo "no" >&6; }
859789af 13068fi
c6b750e1 13069
81ecdfbb 13070
2429c060
PB
13071 fi
13072 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13073 done
13074fi
c6b750e1 13075
05cbd757
PB
13076if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13077 set dummy windres
13078 if test $build = $target ; then
13079 WINDRES_FOR_TARGET="$2"
859789af 13080 else
05cbd757 13081 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13082 fi
d3f5afc4
MS
13083else
13084 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13085fi
13086
3a35eeb3
PB
13087else
13088 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13089fi
13090
852e5f18 13091
0c24b341
NC
13092
13093
13094if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13095 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13097$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13098 if test -x $with_build_time_tools/windmc; then
13099 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13100 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13102$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13103 else
81ecdfbb
RW
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105$as_echo "no" >&6; }
0c24b341
NC
13106 fi
13107 elif test $build != $host && test $have_gcc_for_target = yes; then
13108 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13109 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13110 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13111 fi
13112fi
13113if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13114 # Extract the first word of "windmc", so it can be a program name with args.
13115set dummy windmc; ac_word=$2
81ecdfbb
RW
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117$as_echo_n "checking for $ac_word... " >&6; }
13118if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
0c24b341
NC
13120else
13121 case $WINDMC_FOR_TARGET in
13122 [\\/]* | ?:[\\/]*)
13123 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13124 ;;
13125 *)
13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127for as_dir in $gcc_cv_tool_dirs
13128do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13133 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13135 break 2
13136 fi
13137done
81ecdfbb
RW
13138 done
13139IFS=$as_save_IFS
0c24b341
NC
13140
13141 ;;
13142esac
13143fi
13144WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13145if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13147$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13148else
81ecdfbb
RW
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150$as_echo "no" >&6; }
0c24b341
NC
13151fi
13152
81ecdfbb 13153
0c24b341
NC
13154fi
13155if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13156
13157
13158if test -n "$WINDMC_FOR_TARGET"; then
13159 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13160elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13161 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13162fi
13163
13164if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13165 for ncn_progname in windmc; do
13166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13167set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13169$as_echo_n "checking for $ac_word... " >&6; }
13170if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
0c24b341
NC
13172else
13173 if test -n "$WINDMC_FOR_TARGET"; then
13174 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13175else
13176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177for as_dir in $PATH
13178do
13179 IFS=$as_save_IFS
13180 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13181 for ac_exec_ext in '' $ac_executable_extensions; do
13182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13183 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13185 break 2
13186 fi
13187done
81ecdfbb
RW
13188 done
13189IFS=$as_save_IFS
0c24b341
NC
13190
13191fi
13192fi
13193WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13194if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13196$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13197else
81ecdfbb
RW
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199$as_echo "no" >&6; }
0c24b341
NC
13200fi
13201
81ecdfbb 13202
0c24b341
NC
13203 done
13204fi
13205
13206if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13207 for ncn_progname in windmc; do
81ecdfbb
RW
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13209$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13210 if test -x $with_build_time_tools/${ncn_progname}; then
13211 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13213$as_echo "yes" >&6; }
0c24b341
NC
13214 break
13215 else
81ecdfbb
RW
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217$as_echo "no" >&6; }
0c24b341
NC
13218 fi
13219 done
13220fi
13221
13222if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13223 for ncn_progname in windmc; do
13224 if test -n "$ncn_target_tool_prefix"; then
13225 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13226set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228$as_echo_n "checking for $ac_word... " >&6; }
13229if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13230 $as_echo_n "(cached) " >&6
0c24b341
NC
13231else
13232 if test -n "$WINDMC_FOR_TARGET"; then
13233 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13234else
13235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236for as_dir in $PATH
13237do
13238 IFS=$as_save_IFS
13239 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13240 for ac_exec_ext in '' $ac_executable_extensions; do
13241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13242 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13244 break 2
13245 fi
13246done
81ecdfbb
RW
13247 done
13248IFS=$as_save_IFS
0c24b341
NC
13249
13250fi
13251fi
13252WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13253if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13255$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13256else
81ecdfbb
RW
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258$as_echo "no" >&6; }
0c24b341
NC
13259fi
13260
81ecdfbb 13261
0c24b341
NC
13262 fi
13263 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13265set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267$as_echo_n "checking for $ac_word... " >&6; }
13268if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
0c24b341
NC
13270else
13271 if test -n "$WINDMC_FOR_TARGET"; then
13272 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13273else
13274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $PATH
13276do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13281 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13283 break 2
13284 fi
13285done
81ecdfbb
RW
13286 done
13287IFS=$as_save_IFS
0c24b341
NC
13288
13289fi
13290fi
13291WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13292if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13294$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13295else
81ecdfbb
RW
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297$as_echo "no" >&6; }
0c24b341
NC
13298fi
13299
81ecdfbb 13300
0c24b341
NC
13301 fi
13302 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13303 done
13304fi
13305
13306if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13307 set dummy windmc
13308 if test $build = $target ; then
13309 WINDMC_FOR_TARGET="$2"
13310 else
13311 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13312 fi
13313else
13314 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13315fi
13316
13317else
13318 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13319fi
13320
13321
be01d343
PB
13322RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13323
81ecdfbb
RW
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13325$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13326if test "x${build}" != "x${host}" ; then
2429c060
PB
13327 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13328 # We already found the complete path
b8025f34 13329 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13331$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13332 else
13333 # Canadian cross, just use what we found
81ecdfbb
RW
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13335$as_echo "pre-installed" >&6; }
2429c060 13336 fi
be01d343
PB
13337else
13338 ok=yes
13339 case " ${configdirs} " in
13340 *" binutils "*) ;;
13341 *) ok=no ;;
13342 esac
c6b750e1 13343
be01d343
PB
13344 if test $ok = yes; then
13345 # An in-tree tool is available and we can use it
13346 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13348$as_echo "just compiled" >&6; }
2429c060
PB
13349 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13350 # We already found the complete path
b8025f34 13351 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13353$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13354 elif test "x$target" = "x$host"; then
13355 # We can use an host tool
13356 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13358$as_echo "host tool" >&6; }
be01d343
PB
13359 else
13360 # We need a cross tool
81ecdfbb
RW
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13362$as_echo "pre-installed" >&6; }
be01d343
PB
13363 fi
13364fi
4b900473 13365
81ecdfbb
RW
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13367$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13368if test "x${build}" != "x${host}" ; then
2429c060
PB
13369 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13370 # We already found the complete path
b8025f34 13371 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13373$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13374 else
13375 # Canadian cross, just use what we found
81ecdfbb
RW
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13377$as_echo "pre-installed" >&6; }
2429c060 13378 fi
be01d343
PB
13379else
13380 ok=yes
13381 case " ${configdirs} " in
13382 *" gas "*) ;;
13383 *) ok=no ;;
13384 esac
c6b750e1 13385
be01d343
PB
13386 if test $ok = yes; then
13387 # An in-tree tool is available and we can use it
13388 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13390$as_echo "just compiled" >&6; }
2429c060
PB
13391 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13392 # We already found the complete path
b8025f34 13393 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13395$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13396 elif test "x$target" = "x$host"; then
13397 # We can use an host tool
13398 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13400$as_echo "host tool" >&6; }
be01d343
PB
13401 else
13402 # We need a cross tool
81ecdfbb
RW
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13404$as_echo "pre-installed" >&6; }
be01d343
PB
13405 fi
13406fi
4b900473 13407
81ecdfbb
RW
13408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13409$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13410if test "x${build}" != "x${host}" ; then
2429c060
PB
13411 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13412 # We already found the complete path
b8025f34 13413 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13415$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13416 else
13417 # Canadian cross, just use what we found
81ecdfbb
RW
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13419$as_echo "pre-installed" >&6; }
2429c060 13420 fi
be01d343
PB
13421else
13422 ok=yes
13423 case " ${configdirs} " in
13424 *" gcc "*) ;;
13425 *) ok=no ;;
13426 esac
c6b750e1 13427
be01d343
PB
13428 if test $ok = yes; then
13429 # An in-tree tool is available and we can use it
13430 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13432$as_echo "just compiled" >&6; }
2429c060
PB
13433 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13434 # We already found the complete path
b8025f34 13435 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13437$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13438 elif test "x$target" = "x$host"; then
13439 # We can use an host tool
13440 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13442$as_echo "host tool" >&6; }
be01d343
PB
13443 else
13444 # We need a cross tool
81ecdfbb
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13446$as_echo "pre-installed" >&6; }
be01d343
PB
13447 fi
13448fi
4b900473 13449
81ecdfbb
RW
13450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13451$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13452if test "x${build}" != "x${host}" ; then
2429c060
PB
13453 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13454 # We already found the complete path
b8025f34 13455 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13457$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13458 else
13459 # Canadian cross, just use what we found
81ecdfbb
RW
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13461$as_echo "pre-installed" >&6; }
2429c060 13462 fi
be01d343
PB
13463else
13464 ok=yes
13465 case " ${configdirs} " in
13466 *" gcc "*) ;;
13467 *) ok=no ;;
13468 esac
13469 case ,${enable_languages}, in
13470 *,c++,*) ;;
13471 *) ok=no ;;
13472 esac
13473 if test $ok = yes; then
13474 # An in-tree tool is available and we can use it
87cda2cf 13475 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
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13477$as_echo "just compiled" >&6; }
2429c060
PB
13478 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13479 # We already found the complete path
b8025f34 13480 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13482$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13483 elif test "x$target" = "x$host"; then
13484 # We can use an host tool
13485 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13487$as_echo "host tool" >&6; }
be01d343
PB
13488 else
13489 # We need a cross tool
81ecdfbb
RW
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13491$as_echo "pre-installed" >&6; }
be01d343
PB
13492 fi
13493fi
4b900473 13494
81ecdfbb
RW
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13496$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13497if test "x${build}" != "x${host}" ; then
2429c060
PB
13498 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13499 # We already found the complete path
b8025f34 13500 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13502$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13503 else
13504 # Canadian cross, just use what we found
81ecdfbb
RW
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13506$as_echo "pre-installed" >&6; }
2429c060 13507 fi
be01d343
PB
13508else
13509 ok=yes
13510 case " ${configdirs} " in
13511 *" gcc "*) ;;
13512 *) ok=no ;;
13513 esac
13514 case ,${enable_languages}, in
13515 *,c++,*) ;;
13516 *) ok=no ;;
13517 esac
13518 if test $ok = yes; then
13519 # An in-tree tool is available and we can use it
13520 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
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13522$as_echo "just compiled" >&6; }
2429c060
PB
13523 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13524 # We already found the complete path
b8025f34 13525 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13527$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13528 elif test "x$target" = "x$host"; then
13529 # We can use an host tool
13530 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13532$as_echo "host tool" >&6; }
be01d343
PB
13533 else
13534 # We need a cross tool
81ecdfbb
RW
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13536$as_echo "pre-installed" >&6; }
be01d343
PB
13537 fi
13538fi
4b900473 13539
81ecdfbb
RW
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13541$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13542if test "x${build}" != "x${host}" ; then
2429c060
PB
13543 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13544 # We already found the complete path
b8025f34 13545 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13547$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13548 else
13549 # Canadian cross, just use what we found
81ecdfbb
RW
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13551$as_echo "pre-installed" >&6; }
2429c060 13552 fi
be01d343
PB
13553else
13554 ok=yes
13555 case " ${configdirs} " in
13556 *" binutils "*) ;;
13557 *) ok=no ;;
13558 esac
c6b750e1 13559
be01d343
PB
13560 if test $ok = yes; then
13561 # An in-tree tool is available and we can use it
13562 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13564$as_echo "just compiled" >&6; }
2429c060
PB
13565 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13566 # We already found the complete path
b8025f34 13567 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13569$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13570 elif test "x$target" = "x$host"; then
13571 # We can use an host tool
13572 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13574$as_echo "host tool" >&6; }
be01d343
PB
13575 else
13576 # We need a cross tool
81ecdfbb
RW
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13578$as_echo "pre-installed" >&6; }
be01d343
PB
13579 fi
13580fi
4b900473 13581
81ecdfbb
RW
13582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13583$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13584if test "x${build}" != "x${host}" ; then
2429c060
PB
13585 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13586 # We already found the complete path
b8025f34 13587 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13589$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13590 else
13591 # Canadian cross, just use what we found
81ecdfbb
RW
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13593$as_echo "pre-installed" >&6; }
2429c060 13594 fi
be01d343
PB
13595else
13596 ok=yes
13597 case " ${configdirs} " in
13598 *" gcc "*) ;;
13599 *) ok=no ;;
13600 esac
c6b750e1 13601
be01d343
PB
13602 if test $ok = yes; then
13603 # An in-tree tool is available and we can use it
13604 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13606$as_echo "just compiled" >&6; }
2429c060
PB
13607 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13608 # We already found the complete path
b8025f34 13609 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13611$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13612 elif test "x$target" = "x$host"; then
13613 # We can use an host tool
13614 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13616$as_echo "host tool" >&6; }
be01d343
PB
13617 else
13618 # We need a cross tool
81ecdfbb
RW
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13620$as_echo "pre-installed" >&6; }
be01d343
PB
13621 fi
13622fi
4b900473 13623
81ecdfbb
RW
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13625$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13626if test "x${build}" != "x${host}" ; then
2429c060
PB
13627 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13628 # We already found the complete path
b8025f34 13629 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13631$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13632 else
13633 # Canadian cross, just use what we found
81ecdfbb
RW
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13635$as_echo "pre-installed" >&6; }
2429c060 13636 fi
be01d343
PB
13637else
13638 ok=yes
13639 case " ${configdirs} " in
13640 *" gcc "*) ;;
13641 *) ok=no ;;
13642 esac
13643 case ,${enable_languages}, in
13644 *,java,*) ;;
13645 *) ok=no ;;
13646 esac
13647 if test $ok = yes; then
13648 # An in-tree tool is available and we can use it
13649 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13651$as_echo "just compiled" >&6; }
2429c060
PB
13652 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13653 # We already found the complete path
b8025f34 13654 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13656$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13657 elif test "x$target" = "x$host"; then
13658 # We can use an host tool
13659 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13661$as_echo "host tool" >&6; }
be01d343
PB
13662 else
13663 # We need a cross tool
81ecdfbb
RW
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13665$as_echo "pre-installed" >&6; }
be01d343
PB
13666 fi
13667fi
4b900473 13668
81ecdfbb
RW
13669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13670$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13671if test "x${build}" != "x${host}" ; then
2429c060
PB
13672 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13673 # We already found the complete path
b8025f34 13674 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13676$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13677 else
13678 # Canadian cross, just use what we found
81ecdfbb
RW
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13680$as_echo "pre-installed" >&6; }
2429c060 13681 fi
be01d343
PB
13682else
13683 ok=yes
13684 case " ${configdirs} " in
13685 *" gcc "*) ;;
13686 *) ok=no ;;
13687 esac
13688 case ,${enable_languages}, in
13689 *,fortran,*) ;;
13690 *) ok=no ;;
13691 esac
13692 if test $ok = yes; then
13693 # An in-tree tool is available and we can use it
13694 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13696$as_echo "just compiled" >&6; }
2429c060
PB
13697 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13698 # We already found the complete path
b8025f34 13699 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13701$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13702 elif test "x$target" = "x$host"; then
13703 # We can use an host tool
13704 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13706$as_echo "host tool" >&6; }
be01d343
PB
13707 else
13708 # We need a cross tool
81ecdfbb
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13710$as_echo "pre-installed" >&6; }
be01d343
PB
13711 fi
13712fi
4b900473 13713
e552509b
ILT
13714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13715$as_echo_n "checking where to find the target gccgo... " >&6; }
13716if test "x${build}" != "x${host}" ; then
13717 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13718 # We already found the complete path
13719 ac_dir=`dirname $GOC_FOR_TARGET`
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13721$as_echo "pre-installed in $ac_dir" >&6; }
13722 else
13723 # Canadian cross, just use what we found
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13725$as_echo "pre-installed" >&6; }
13726 fi
13727else
13728 ok=yes
13729 case " ${configdirs} " in
13730 *" gcc "*) ;;
13731 *) ok=no ;;
13732 esac
13733 case ,${enable_languages}, in
13734 *,go,*) ;;
13735 *) ok=no ;;
13736 esac
13737 if test $ok = yes; then
13738 # An in-tree tool is available and we can use it
13739 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13741$as_echo "just compiled" >&6; }
13742 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13743 # We already found the complete path
13744 ac_dir=`dirname $GOC_FOR_TARGET`
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13746$as_echo "pre-installed in $ac_dir" >&6; }
13747 elif test "x$target" = "x$host"; then
13748 # We can use an host tool
13749 GOC_FOR_TARGET='$(GOC)'
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13751$as_echo "host tool" >&6; }
13752 else
13753 # We need a cross tool
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13755$as_echo "pre-installed" >&6; }
13756 fi
13757fi
13758
81ecdfbb
RW
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13760$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13761if test "x${build}" != "x${host}" ; then
2429c060
PB
13762 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13763 # We already found the complete path
b8025f34 13764 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13766$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13767 else
13768 # Canadian cross, just use what we found
81ecdfbb
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13770$as_echo "pre-installed" >&6; }
2429c060 13771 fi
be01d343
PB
13772else
13773 ok=yes
13774 case " ${configdirs} " in
13775 *" ld "*) ;;
13776 *) ok=no ;;
13777 esac
c6b750e1 13778
be01d343
PB
13779 if test $ok = yes; then
13780 # An in-tree tool is available and we can use it
13781 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13783$as_echo "just compiled" >&6; }
2429c060
PB
13784 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13785 # We already found the complete path
b8025f34 13786 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13788$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13789 elif test "x$target" = "x$host"; then
13790 # We can use an host tool
13791 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13793$as_echo "host tool" >&6; }
be01d343
PB
13794 else
13795 # We need a cross tool
81ecdfbb
RW
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13797$as_echo "pre-installed" >&6; }
be01d343
PB
13798 fi
13799fi
4b900473 13800
81ecdfbb
RW
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13802$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13803if test "x${build}" != "x${host}" ; then
2429c060
PB
13804 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13805 # We already found the complete path
b8025f34 13806 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13808$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13809 else
13810 # Canadian cross, just use what we found
81ecdfbb
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13812$as_echo "pre-installed" >&6; }
2429c060 13813 fi
be01d343 13814else
2429c060
PB
13815 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13816 # We already found the complete path
b8025f34 13817 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13819$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13820 elif test "x$target" = "x$host"; then
be01d343
PB
13821 # We can use an host tool
13822 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13824$as_echo "host tool" >&6; }
be01d343
PB
13825 else
13826 # We need a cross tool
81ecdfbb
RW
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13828$as_echo "pre-installed" >&6; }
be01d343
PB
13829 fi
13830fi
4b900473 13831
81ecdfbb
RW
13832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13833$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13834if test "x${build}" != "x${host}" ; then
2429c060
PB
13835 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13836 # We already found the complete path
b8025f34 13837 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13839$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13840 else
13841 # Canadian cross, just use what we found
81ecdfbb
RW
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13843$as_echo "pre-installed" >&6; }
2429c060 13844 fi
be01d343
PB
13845else
13846 ok=yes
13847 case " ${configdirs} " in
13848 *" binutils "*) ;;
13849 *) ok=no ;;
13850 esac
c6b750e1 13851
be01d343
PB
13852 if test $ok = yes; then
13853 # An in-tree tool is available and we can use it
13854 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13856$as_echo "just compiled" >&6; }
2429c060
PB
13857 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13858 # We already found the complete path
b8025f34 13859 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13861$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13862 elif test "x$target" = "x$host"; then
13863 # We can use an host tool
13864 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13866$as_echo "host tool" >&6; }
be01d343
PB
13867 else
13868 # We need a cross tool
81ecdfbb
RW
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13870$as_echo "pre-installed" >&6; }
be01d343
PB
13871 fi
13872fi
4b900473 13873
81ecdfbb
RW
13874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13875$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13876if test "x${build}" != "x${host}" ; then
2429c060
PB
13877 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13878 # We already found the complete path
b8025f34 13879 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13881$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13882 else
13883 # Canadian cross, just use what we found
81ecdfbb
RW
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13885$as_echo "pre-installed" >&6; }
2429c060 13886 fi
be01d343
PB
13887else
13888 ok=yes
13889 case " ${configdirs} " in
13890 *" binutils "*) ;;
13891 *) ok=no ;;
13892 esac
c6b750e1 13893
be01d343
PB
13894 if test $ok = yes; then
13895 # An in-tree tool is available and we can use it
13896 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13898$as_echo "just compiled" >&6; }
2429c060
PB
13899 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13900 # We already found the complete path
b8025f34 13901 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13903$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13904 elif test "x$target" = "x$host"; then
13905 # We can use an host tool
13906 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13908$as_echo "host tool" >&6; }
be01d343
PB
13909 else
13910 # We need a cross tool
81ecdfbb
RW
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13912$as_echo "pre-installed" >&6; }
be01d343
PB
13913 fi
13914fi
4b900473 13915
81ecdfbb
RW
13916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13917$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13918if test "x${build}" != "x${host}" ; then
2429c060
PB
13919 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13920 # We already found the complete path
b8025f34 13921 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13923$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13924 else
13925 # Canadian cross, just use what we found
81ecdfbb
RW
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13927$as_echo "pre-installed" >&6; }
2429c060 13928 fi
be01d343
PB
13929else
13930 ok=yes
13931 case " ${configdirs} " in
13932 *" binutils "*) ;;
13933 *) ok=no ;;
13934 esac
c6b750e1 13935
be01d343
PB
13936 if test $ok = yes; then
13937 # An in-tree tool is available and we can use it
13938 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13940$as_echo "just compiled" >&6; }
2429c060
PB
13941 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13942 # We already found the complete path
b8025f34 13943 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13945$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13946 elif test "x$target" = "x$host"; then
13947 # We can use an host tool
13948 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13950$as_echo "host tool" >&6; }
be01d343
PB
13951 else
13952 # We need a cross tool
81ecdfbb
RW
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13954$as_echo "pre-installed" >&6; }
be01d343
PB
13955 fi
13956fi
4b900473 13957
b121d7d4
DD
13958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13959$as_echo_n "checking where to find the target readelf... " >&6; }
13960if test "x${build}" != "x${host}" ; then
13961 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13962 # We already found the complete path
13963 ac_dir=`dirname $READELF_FOR_TARGET`
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13965$as_echo "pre-installed in $ac_dir" >&6; }
13966 else
13967 # Canadian cross, just use what we found
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13969$as_echo "pre-installed" >&6; }
13970 fi
13971else
13972 ok=yes
13973 case " ${configdirs} " in
13974 *" binutils "*) ;;
13975 *) ok=no ;;
13976 esac
13977
13978 if test $ok = yes; then
13979 # An in-tree tool is available and we can use it
13980 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13982$as_echo "just compiled" >&6; }
13983 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
13985 ac_dir=`dirname $READELF_FOR_TARGET`
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987$as_echo "pre-installed in $ac_dir" >&6; }
13988 elif test "x$target" = "x$host"; then
13989 # We can use an host tool
13990 READELF_FOR_TARGET='$(READELF)'
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13992$as_echo "host tool" >&6; }
13993 else
13994 # We need a cross tool
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13996$as_echo "pre-installed" >&6; }
13997 fi
13998fi
13999
81ecdfbb
RW
14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14001$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14002if test "x${build}" != "x${host}" ; then
2429c060
PB
14003 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
b8025f34 14005 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14008 else
14009 # Canadian cross, just use what we found
81ecdfbb
RW
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14011$as_echo "pre-installed" >&6; }
2429c060 14012 fi
be01d343
PB
14013else
14014 ok=yes
14015 case " ${configdirs} " in
14016 *" binutils "*) ;;
14017 *) ok=no ;;
14018 esac
c6b750e1 14019
be01d343
PB
14020 if test $ok = yes; then
14021 # An in-tree tool is available and we can use it
9b980aa1 14022 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14024$as_echo "just compiled" >&6; }
2429c060
PB
14025 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14026 # We already found the complete path
b8025f34 14027 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14029$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14030 elif test "x$target" = "x$host"; then
14031 # We can use an host tool
14032 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14034$as_echo "host tool" >&6; }
be01d343
PB
14035 else
14036 # We need a cross tool
81ecdfbb
RW
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14038$as_echo "pre-installed" >&6; }
be01d343
PB
14039 fi
14040fi
4b900473 14041
81ecdfbb
RW
14042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14043$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14044if test "x${build}" != "x${host}" ; then
2429c060
PB
14045 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14046 # We already found the complete path
b8025f34 14047 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14049$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14050 else
14051 # Canadian cross, just use what we found
81ecdfbb
RW
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14053$as_echo "pre-installed" >&6; }
2429c060 14054 fi
be01d343
PB
14055else
14056 ok=yes
14057 case " ${configdirs} " in
14058 *" binutils "*) ;;
14059 *) ok=no ;;
14060 esac
c6b750e1 14061
be01d343
PB
14062 if test $ok = yes; then
14063 # An in-tree tool is available and we can use it
14064 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14066$as_echo "just compiled" >&6; }
2429c060
PB
14067 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14068 # We already found the complete path
b8025f34 14069 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14071$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14072 elif test "x$target" = "x$host"; then
14073 # We can use an host tool
14074 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14076$as_echo "host tool" >&6; }
be01d343
PB
14077 else
14078 # We need a cross tool
81ecdfbb
RW
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080$as_echo "pre-installed" >&6; }
be01d343 14081 fi
a0da8069 14082fi
54752a6b 14083
81ecdfbb
RW
14084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14085$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14086if test "x${build}" != "x${host}" ; then
14087 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14088 # We already found the complete path
14089 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14091$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14092 else
14093 # Canadian cross, just use what we found
81ecdfbb
RW
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14095$as_echo "pre-installed" >&6; }
0c24b341
NC
14096 fi
14097else
14098 ok=yes
14099 case " ${configdirs} " in
14100 *" binutils "*) ;;
14101 *) ok=no ;;
14102 esac
14103
14104 if test $ok = yes; then
14105 # An in-tree tool is available and we can use it
14106 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14108$as_echo "just compiled" >&6; }
0c24b341
NC
14109 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14110 # We already found the complete path
14111 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14113$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14114 elif test "x$target" = "x$host"; then
14115 # We can use an host tool
14116 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14118$as_echo "host tool" >&6; }
0c24b341
NC
14119 else
14120 # We need a cross tool
81ecdfbb
RW
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14122$as_echo "pre-installed" >&6; }
0c24b341
NC
14123 fi
14124fi
14125
54752a6b
NN
14126
14127
be01d343 14128
4b900473 14129
a0da8069
NN
14130# Certain tools may need extra flags.
14131AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14132RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14133NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14134
be01d343
PB
14135# When building target libraries, except in a Canadian cross, we use
14136# the same toolchain as the compiler we just built.
14137COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14138COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14139COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14140if test $host = $build; then
14141 case " $configdirs " in
14142 *" gcc "*)
14143 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14144 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14145 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14146 ;;
14147 esac
14148fi
14149
14150
14151
14152
14153
81ecdfbb
RW
14154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14155$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14156# Check whether --enable-maintainer-mode was given.
14157if test "${enable_maintainer_mode+set}" = set; then :
14158 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14159else
14160 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14161fi
14162
14163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14164$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14165
14166
14167if test "$USE_MAINTAINER_MODE" = yes; then
14168 MAINTAINER_MODE_TRUE=
14169 MAINTAINER_MODE_FALSE='#'
14170else
14171 MAINTAINER_MODE_TRUE='#'
14172 MAINTAINER_MODE_FALSE=
c6b750e1 14173fi
3d5e36ae
AO
14174MAINT=$MAINTAINER_MODE_TRUE
14175
1d39f329
NN
14176# ---------------------
14177# GCC bootstrap support
14178# ---------------------
14179
14180# Stage specific cflags for build.
14181stage1_cflags="-g"
14182case $build in
14183 vax-*-*)
14184 case ${GCC} in
14185 yes) stage1_cflags="-g -Wa,-J" ;;
14186 *) stage1_cflags="-g -J" ;;
14187 esac ;;
1d39f329
NN
14188esac
14189
1d89b610 14190
1d39f329 14191
8a0d8a5c 14192# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14193# Check whether --enable-stage1-checking was given.
14194if test "${enable_stage1_checking+set}" = set; then :
14195 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14196else
5566c1fa 14197 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14198 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14199else
5566c1fa 14200 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14201fi
81ecdfbb 14202fi
8a0d8a5c
PB
14203
14204
c6b750e1 14205
81ecdfbb
RW
14206# Enable -Werror in bootstrap stage2 and later.
14207# Check whether --enable-werror was given.
14208if test "${enable_werror+set}" = set; then :
14209 enableval=$enable_werror;
1d39f329 14210else
a0323144 14211 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14212 enable_werror=yes
79fcd0ec
PB
14213else
14214 enable_werror=no
14215fi
81ecdfbb
RW
14216fi
14217
1a6f2dc7
NN
14218case ${enable_werror} in
14219 yes) stage2_werror_flag="--enable-werror-always" ;;
14220 *) stage2_werror_flag="" ;;
1d39f329
NN
14221esac
14222
14223
e8a5fa9c
RW
14224# Specify what files to not compare during bootstrap.
14225
14226compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14227case "$target" in
14228 hppa*64*-*-hpux*) ;;
14229 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14230esac
14231
14232
81ecdfbb
RW
14233ac_config_files="$ac_config_files Makefile"
14234
c6b750e1 14235cat >confcache <<\_ACEOF
a0da8069
NN
14236# This file is a shell script that caches the results of configure
14237# tests run on this system so they can be shared between configure
c6b750e1
DJ
14238# scripts and configure runs, see configure's option --config-cache.
14239# It is not useful on other systems. If it contains results you don't
14240# want to keep, you may remove or edit it.
a0da8069 14241#
c6b750e1
DJ
14242# config.status only pays attention to the cache file if you give it
14243# the --recheck option to rerun configure.
a0da8069 14244#
c6b750e1
DJ
14245# `ac_cv_env_foo' variables (set or unset) will be overridden when
14246# loading this file, other *unset* `ac_cv_foo' will be assigned the
14247# following values.
14248
14249_ACEOF
14250
a0da8069
NN
14251# The following way of writing the cache mishandles newlines in values,
14252# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14253# So, we kill variables containing newlines.
a0da8069
NN
14254# Ultrix sh set writes to stderr and can't be redirected directly,
14255# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14256(
14257 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14258 eval ac_val=\$$ac_var
14259 case $ac_val in #(
14260 *${as_nl}*)
14261 case $ac_var in #(
14262 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14263$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14264 esac
14265 case $ac_var in #(
14266 _ | IFS | as_nl) ;; #(
14267 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14268 *) { eval $ac_var=; unset $ac_var;} ;;
14269 esac ;;
14270 esac
14271 done
14272
c6b750e1 14273 (set) 2>&1 |
81ecdfbb
RW
14274 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14275 *${as_nl}ac_space=\ *)
14276 # `set' does not quote correctly, so add quotes: double-quote
14277 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14278 sed -n \
14279 "s/'/'\\\\''/g;
14280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14281 ;; #(
c6b750e1
DJ
14282 *)
14283 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14284 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14285 ;;
81ecdfbb
RW
14286 esac |
14287 sort
14288) |
c6b750e1 14289 sed '
81ecdfbb 14290 /^ac_cv_env_/b end
c6b750e1 14291 t clear
81ecdfbb 14292 :clear
c6b750e1
DJ
14293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14294 t end
81ecdfbb
RW
14295 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14296 :end' >>confcache
14297if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14298 if test -w "$cache_file"; then
14299 test "x$cache_file" != "x/dev/null" &&
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14301$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14302 cat confcache >$cache_file
a0da8069 14303 else
81ecdfbb
RW
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14305$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14306 fi
852e5f18 14307fi
a0da8069 14308rm -f confcache
852e5f18 14309
a0da8069
NN
14310test "x$prefix" = xNONE && prefix=$ac_default_prefix
14311# Let make expand exec_prefix.
14312test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14313
a0da8069
NN
14314# Transform confdefs.h into DEFS.
14315# Protect against shell expansion while executing Makefile rules.
14316# Protect against Makefile macro expansion.
c6b750e1
DJ
14317#
14318# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14319# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14320# look for a macro that doesn't take arguments.
81ecdfbb
RW
14321ac_script='
14322:mline
14323/\\$/{
14324 N
14325 s,\\\n,,
14326 b mline
14327}
c6b750e1 14328t clear
81ecdfbb
RW
14329:clear
14330s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14331t quote
81ecdfbb 14332s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14333t quote
81ecdfbb
RW
14334b any
14335:quote
14336s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14337s/\[/\\&/g
14338s/\]/\\&/g
14339s/\$/$$/g
14340H
14341:any
14342${
14343 g
14344 s/^\n//
14345 s/\n/ /g
14346 p
14347}
14348'
14349DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14350
14351
14352ac_libobjs=
14353ac_ltlibobjs=
14354for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14355 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14356 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14357 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14358 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14359 # will be set to the directory where LIBOBJS objects are built.
14360 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14361 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14362done
14363LIBOBJS=$ac_libobjs
852e5f18 14364
c6b750e1 14365LTLIBOBJS=$ac_ltlibobjs
376a0e54 14366
cac3d6c4 14367
c6b750e1
DJ
14368
14369: ${CONFIG_STATUS=./config.status}
81ecdfbb 14370ac_write_fail=0
c6b750e1
DJ
14371ac_clean_files_save=$ac_clean_files
14372ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14374$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14375as_write_fail=0
14376cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14377#! $SHELL
14378# Generated by $as_me.
a0da8069 14379# Run this file to recreate the current configuration.
a0da8069 14380# Compiler output produced by configure, useful for debugging
c6b750e1 14381# configure, is in config.log if it exists.
376a0e54 14382
c6b750e1
DJ
14383debug=false
14384ac_cs_recheck=false
14385ac_cs_silent=false
c6b750e1 14386
81ecdfbb
RW
14387SHELL=\${CONFIG_SHELL-$SHELL}
14388export SHELL
14389_ASEOF
14390cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14391## -------------------- ##
14392## M4sh Initialization. ##
14393## -------------------- ##
14394
14395# Be more Bourne compatible
14396DUALCASE=1; export DUALCASE # for MKS sh
14397if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14398 emulate sh
14399 NULLCMD=:
81ecdfbb 14400 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14401 # is contrary to our usage. Disable this feature.
14402 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14403 setopt NO_GLOB_SUBST
14404else
14405 case `(set -o) 2>/dev/null` in #(
14406 *posix*) :
14407 set -o posix ;; #(
14408 *) :
14409 ;;
14410esac
c6b750e1 14411fi
c6b750e1 14412
81ecdfbb
RW
14413
14414as_nl='
14415'
14416export as_nl
14417# Printing a long string crashes Solaris 7 /usr/bin/printf.
14418as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14419as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14420as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14421# Prefer a ksh shell builtin over an external printf program on Solaris,
14422# but without wasting forks for bash or zsh.
14423if test -z "$BASH_VERSION$ZSH_VERSION" \
14424 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14425 as_echo='print -r --'
14426 as_echo_n='print -rn --'
14427elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14428 as_echo='printf %s\n'
14429 as_echo_n='printf %s'
14430else
14431 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14432 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14433 as_echo_n='/usr/ucb/echo -n'
14434 else
14435 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14436 as_echo_n_body='eval
14437 arg=$1;
14438 case $arg in #(
14439 *"$as_nl"*)
14440 expr "X$arg" : "X\\(.*\\)$as_nl";
14441 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14442 esac;
14443 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14444 '
14445 export as_echo_n_body
14446 as_echo_n='sh -c $as_echo_n_body as_echo'
14447 fi
14448 export as_echo_body
14449 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14450fi
14451
81ecdfbb
RW
14452# The user is always right.
14453if test "${PATH_SEPARATOR+set}" != set; then
14454 PATH_SEPARATOR=:
14455 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14456 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14457 PATH_SEPARATOR=';'
14458 }
14459fi
14460
14461
14462# IFS
14463# We need space, tab and new line, in precisely that order. Quoting is
14464# there to prevent editors from complaining about space-tab.
14465# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14466# splitting by setting IFS to empty value.)
14467IFS=" "" $as_nl"
14468
14469# Find who we are. Look in the path if we contain no directory separator.
14470case $0 in #((
14471 *[\\/]* ) as_myself=$0 ;;
14472 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14473for as_dir in $PATH
14474do
14475 IFS=$as_save_IFS
14476 test -z "$as_dir" && as_dir=.
14477 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14478 done
14479IFS=$as_save_IFS
14480
14481 ;;
14482esac
14483# We did not find ourselves, most probably we were run as `sh COMMAND'
14484# in which case we are not to be found in the path.
14485if test "x$as_myself" = x; then
14486 as_myself=$0
14487fi
14488if test ! -f "$as_myself"; then
14489 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14490 exit 1
14491fi
c6b750e1 14492
81ecdfbb
RW
14493# Unset variables that we do not need and which cause bugs (e.g. in
14494# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14495# suppresses any "Segmentation fault" message there. '((' could
14496# trigger a bug in pdksh 5.2.14.
14497for as_var in BASH_ENV ENV MAIL MAILPATH
14498do eval test x\${$as_var+set} = xset \
14499 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14500done
c6b750e1
DJ
14501PS1='$ '
14502PS2='> '
14503PS4='+ '
14504
14505# NLS nuisances.
81ecdfbb
RW
14506LC_ALL=C
14507export LC_ALL
14508LANGUAGE=C
14509export LANGUAGE
14510
14511# CDPATH.
14512(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14513
14514
14515# as_fn_error ERROR [LINENO LOG_FD]
14516# ---------------------------------
14517# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14518# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14519# script with status $?, using 1 if that was 0.
14520as_fn_error ()
14521{
14522 as_status=$?; test $as_status -eq 0 && as_status=1
14523 if test "$3"; then
14524 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14525 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14526 fi
81ecdfbb
RW
14527 $as_echo "$as_me: error: $1" >&2
14528 as_fn_exit $as_status
14529} # as_fn_error
14530
14531
14532# as_fn_set_status STATUS
14533# -----------------------
14534# Set $? to STATUS, without forking.
14535as_fn_set_status ()
14536{
14537 return $1
14538} # as_fn_set_status
14539
14540# as_fn_exit STATUS
14541# -----------------
14542# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14543as_fn_exit ()
14544{
14545 set +e
14546 as_fn_set_status $1
14547 exit $1
14548} # as_fn_exit
14549
14550# as_fn_unset VAR
14551# ---------------
14552# Portably unset VAR.
14553as_fn_unset ()
14554{
14555 { eval $1=; unset $1;}
14556}
14557as_unset=as_fn_unset
14558# as_fn_append VAR VALUE
14559# ----------------------
14560# Append the text in VALUE to the end of the definition contained in VAR. Take
14561# advantage of any shell optimizations that allow amortized linear growth over
14562# repeated appends, instead of the typical quadratic growth present in naive
14563# implementations.
14564if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14565 eval 'as_fn_append ()
14566 {
14567 eval $1+=\$2
14568 }'
14569else
14570 as_fn_append ()
14571 {
14572 eval $1=\$$1\$2
14573 }
14574fi # as_fn_append
14575
14576# as_fn_arith ARG...
14577# ------------------
14578# Perform arithmetic evaluation on the ARGs, and store the result in the
14579# global $as_val. Take advantage of shells that can avoid forks. The arguments
14580# must be portable across $(()) and expr.
14581if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14582 eval 'as_fn_arith ()
14583 {
14584 as_val=$(( $* ))
14585 }'
14586else
14587 as_fn_arith ()
14588 {
14589 as_val=`expr "$@" || test $? -eq 1`
14590 }
14591fi # as_fn_arith
14592
c6b750e1 14593
81ecdfbb
RW
14594if expr a : '\(a\)' >/dev/null 2>&1 &&
14595 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14596 as_expr=expr
14597else
14598 as_expr=false
14599fi
14600
81ecdfbb 14601if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14602 as_basename=basename
14603else
14604 as_basename=false
14605fi
14606
81ecdfbb
RW
14607if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14608 as_dirname=dirname
14609else
14610 as_dirname=false
14611fi
c6b750e1 14612
81ecdfbb 14613as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14614$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14615 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14616 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14617$as_echo X/"$0" |
14618 sed '/^.*\/\([^/][^/]*\)\/*$/{
14619 s//\1/
14620 q
14621 }
14622 /^X\/\(\/\/\)$/{
14623 s//\1/
14624 q
14625 }
14626 /^X\/\(\/\).*/{
14627 s//\1/
14628 q
14629 }
14630 s/.*/./; q'`
c6b750e1 14631
c6b750e1
DJ
14632# Avoid depending upon Character Ranges.
14633as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14634as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14635as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14636as_cr_digits='0123456789'
14637as_cr_alnum=$as_cr_Letters$as_cr_digits
14638
81ecdfbb
RW
14639ECHO_C= ECHO_N= ECHO_T=
14640case `echo -n x` in #(((((
14641-n*)
14642 case `echo 'xy\c'` in
14643 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14644 xy) ECHO_C='\c';;
14645 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14646 ECHO_T=' ';;
14647 esac;;
14648*)
14649 ECHO_N='-n';;
c6b750e1
DJ
14650esac
14651
81ecdfbb
RW
14652rm -f conf$$ conf$$.exe conf$$.file
14653if test -d conf$$.dir; then
14654 rm -f conf$$.dir/conf$$.file
c6b750e1 14655else
81ecdfbb
RW
14656 rm -f conf$$.dir
14657 mkdir conf$$.dir 2>/dev/null
c6b750e1 14658fi
81ecdfbb
RW
14659if (echo >conf$$.file) 2>/dev/null; then
14660 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14661 as_ln_s='ln -s'
81ecdfbb
RW
14662 # ... but there are two gotchas:
14663 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14664 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14665 # In both cases, we have to default to `cp -p'.
14666 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14667 as_ln_s='cp -p'
14668 elif ln conf$$.file conf$$ 2>/dev/null; then
14669 as_ln_s=ln
14670 else
14671 as_ln_s='cp -p'
c6b750e1 14672 fi
c6b750e1
DJ
14673else
14674 as_ln_s='cp -p'
14675fi
81ecdfbb
RW
14676rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14677rmdir conf$$.dir 2>/dev/null
14678
14679
14680# as_fn_mkdir_p
14681# -------------
14682# Create "$as_dir" as a directory, including parents if necessary.
14683as_fn_mkdir_p ()
14684{
14685
14686 case $as_dir in #(
14687 -*) as_dir=./$as_dir;;
14688 esac
14689 test -d "$as_dir" || eval $as_mkdir_p || {
14690 as_dirs=
14691 while :; do
14692 case $as_dir in #(
14693 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14694 *) as_qdir=$as_dir;;
14695 esac
14696 as_dirs="'$as_qdir' $as_dirs"
14697 as_dir=`$as_dirname -- "$as_dir" ||
14698$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14699 X"$as_dir" : 'X\(//\)[^/]' \| \
14700 X"$as_dir" : 'X\(//\)$' \| \
14701 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14702$as_echo X"$as_dir" |
14703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14704 s//\1/
14705 q
14706 }
14707 /^X\(\/\/\)[^/].*/{
14708 s//\1/
14709 q
14710 }
14711 /^X\(\/\/\)$/{
14712 s//\1/
14713 q
14714 }
14715 /^X\(\/\).*/{
14716 s//\1/
14717 q
14718 }
14719 s/.*/./; q'`
14720 test -d "$as_dir" && break
14721 done
14722 test -z "$as_dirs" || eval "mkdir $as_dirs"
14723 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14724
c6b750e1 14725
81ecdfbb 14726} # as_fn_mkdir_p
c6b750e1 14727if mkdir -p . 2>/dev/null; then
81ecdfbb 14728 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14729else
14730 test -d ./-p && rmdir ./-p
14731 as_mkdir_p=false
14732fi
14733
81ecdfbb
RW
14734if test -x / >/dev/null 2>&1; then
14735 as_test_x='test -x'
14736else
14737 if ls -dL / >/dev/null 2>&1; then
14738 as_ls_L_option=L
14739 else
14740 as_ls_L_option=
14741 fi
14742 as_test_x='
14743 eval sh -c '\''
14744 if test -d "$1"; then
14745 test -d "$1/.";
14746 else
14747 case $1 in #(
14748 -*)set "./$1";;
14749 esac;
14750 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14751 ???[sx]*):;;*)false;;esac;fi
14752 '\'' sh
14753 '
14754fi
14755as_executable_p=$as_test_x
c6b750e1
DJ
14756
14757# Sed expression to map a string onto a valid CPP name.
14758as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14759
14760# Sed expression to map a string onto a valid variable name.
14761as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14762
14763
c6b750e1 14764exec 6>&1
81ecdfbb
RW
14765## ----------------------------------- ##
14766## Main body of $CONFIG_STATUS script. ##
14767## ----------------------------------- ##
14768_ASEOF
14769test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14770
14771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14772# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14773# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14774# values after options handling.
14775ac_log="
c6b750e1 14776This file was extended by $as_me, which was
81ecdfbb 14777generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14778
14779 CONFIG_FILES = $CONFIG_FILES
14780 CONFIG_HEADERS = $CONFIG_HEADERS
14781 CONFIG_LINKS = $CONFIG_LINKS
14782 CONFIG_COMMANDS = $CONFIG_COMMANDS
14783 $ $0 $@
14784
81ecdfbb
RW
14785on `(hostname || uname -n) 2>/dev/null | sed 1q`
14786"
14787
c6b750e1
DJ
14788_ACEOF
14789
81ecdfbb
RW
14790case $ac_config_files in *"
14791"*) set x $ac_config_files; shift; ac_config_files=$*;;
14792esac
c6b750e1 14793
c6b750e1 14794
c6b750e1 14795
81ecdfbb
RW
14796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14797# Files that config.status was made for.
14798config_files="$ac_config_files"
c6b750e1 14799
81ecdfbb 14800_ACEOF
c6b750e1 14801
81ecdfbb 14802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14803ac_cs_usage="\
81ecdfbb
RW
14804\`$as_me' instantiates files and other configuration actions
14805from templates according to the current configuration. Unless the files
14806and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14807
81ecdfbb 14808Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14809
14810 -h, --help print this help, then exit
81ecdfbb
RW
14811 -V, --version print version number and configuration settings, then exit
14812 -q, --quiet, --silent
14813 do not print progress messages
c6b750e1
DJ
14814 -d, --debug don't remove temporary files
14815 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14816 --file=FILE[:TEMPLATE]
14817 instantiate the configuration file FILE
c6b750e1
DJ
14818
14819Configuration files:
14820$config_files
14821
81ecdfbb 14822Report bugs to the package provider."
c6b750e1 14823
81ecdfbb
RW
14824_ACEOF
14825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14826ac_cs_version="\\
14827config.status
81ecdfbb
RW
14828configured by $0, generated by GNU Autoconf 2.64,
14829 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14830
81ecdfbb 14831Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14832This config.status script is free software; the Free Software Foundation
14833gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14834
14835ac_pwd='$ac_pwd'
14836srcdir='$srcdir'
14837INSTALL='$INSTALL'
8e957354 14838AWK='$AWK'
81ecdfbb 14839test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14840_ACEOF
14841
81ecdfbb
RW
14842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14843# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14844ac_need_defaults=:
14845while test $# != 0
a0da8069 14846do
c6b750e1
DJ
14847 case $1 in
14848 --*=*)
81ecdfbb
RW
14849 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14850 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14851 ac_shift=:
14852 ;;
81ecdfbb 14853 *)
c6b750e1
DJ
14854 ac_option=$1
14855 ac_optarg=$2
14856 ac_shift=shift
14857 ;;
c6b750e1
DJ
14858 esac
14859
14860 case $ac_option in
14861 # Handling of the options.
a0da8069 14862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14863 ac_cs_recheck=: ;;
81ecdfbb
RW
14864 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14865 $as_echo "$ac_cs_version"; exit ;;
14866 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14867 debug=: ;;
14868 --file | --fil | --fi | --f )
14869 $ac_shift
81ecdfbb
RW
14870 case $ac_optarg in
14871 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14872 esac
14873 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14874 ac_need_defaults=false;;
81ecdfbb
RW
14875 --he | --h | --help | --hel | -h )
14876 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14879 ac_cs_silent=: ;;
14880
14881 # This is an error.
81ecdfbb
RW
14882 -*) as_fn_error "unrecognized option: \`$1'
14883Try \`$0 --help' for more information." ;;
c6b750e1 14884
81ecdfbb
RW
14885 *) as_fn_append ac_config_targets " $1"
14886 ac_need_defaults=false ;;
c6b750e1 14887
376a0e54 14888 esac
c6b750e1 14889 shift
376a0e54
CM
14890done
14891
c6b750e1 14892ac_configure_extra_args=
376a0e54 14893
c6b750e1
DJ
14894if $ac_cs_silent; then
14895 exec 6>/dev/null
14896 ac_configure_extra_args="$ac_configure_extra_args --silent"
14897fi
376a0e54 14898
c6b750e1 14899_ACEOF
81ecdfbb 14900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14901if \$ac_cs_recheck; then
81ecdfbb
RW
14902 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14903 shift
14904 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14905 CONFIG_SHELL='$SHELL'
14906 export CONFIG_SHELL
14907 exec "\$@"
c6b750e1
DJ
14908fi
14909
14910_ACEOF
81ecdfbb
RW
14911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14912exec 5>>config.log
14913{
14914 echo
14915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14916## Running $as_me. ##
14917_ASBOX
14918 $as_echo "$ac_log"
14919} >&5
c6b750e1 14920
81ecdfbb
RW
14921_ACEOF
14922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14923#
14924# INIT-COMMANDS
14925#
14926extrasub_build="$extrasub_build"
14927 extrasub_host="$extrasub_host"
14928 extrasub_target="$extrasub_target"
14929
81ecdfbb 14930_ACEOF
c6b750e1 14931
81ecdfbb 14932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14933
81ecdfbb 14934# Handling of arguments.
c6b750e1
DJ
14935for ac_config_target in $ac_config_targets
14936do
81ecdfbb
RW
14937 case $ac_config_target in
14938 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14939
14940 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14941 esac
14942done
14943
81ecdfbb 14944
c6b750e1
DJ
14945# If the user did not use the arguments to specify the items to instantiate,
14946# then the envvar interface is used. Set only those that are not.
14947# We use the long form for the default assignment because of an extremely
14948# bizarre bug on SunOS 4.1.3.
14949if $ac_need_defaults; then
14950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14951fi
14952
14953# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14954# simply because there is no reason against having it here, and in addition,
c6b750e1 14955# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14956# Hook for its removal unless debugging.
14957# Note that there is a small window in which the directory will not be cleaned:
14958# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14959$debug ||
14960{
81ecdfbb
RW
14961 tmp=
14962 trap 'exit_status=$?
14963 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14964' 0
14965 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14966}
c6b750e1
DJ
14967# Create a (secure) tmp directory for tmp files.
14968
14969{
81ecdfbb 14970 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14971 test -n "$tmp" && test -d "$tmp"
14972} ||
14973{
81ecdfbb
RW
14974 tmp=./conf$$-$RANDOM
14975 (umask 077 && mkdir "$tmp")
14976} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14977
14978# Set up the scripts for CONFIG_FILES section.
14979# No need to generate them if there are no CONFIG_FILES.
14980# This happens for instance with `./config.status config.h'.
14981if test -n "$CONFIG_FILES"; then
14982
14983if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14984 ac_cs_awk_getline=:
14985 ac_cs_awk_pipe_init=
14986 ac_cs_awk_read_file='
14987 while ((getline aline < (F[key])) > 0)
14988 print(aline)
14989 close(F[key])'
14990 ac_cs_awk_pipe_fini=
14991else
14992 ac_cs_awk_getline=false
14993 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14994 ac_cs_awk_read_file='
14995 print "|#_!!_#|"
14996 print "cat " F[key] " &&"
14997 '$ac_cs_awk_pipe_init
14998 # The final `:' finishes the AND list.
14999 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15000fi
15001ac_cr=`echo X | tr X '\015'`
15002# On cygwin, bash can eat \r inside `` if the user requested igncr.
15003# But we know of no other shell where ac_cr would be empty at this
15004# point, so we can use a bashism as a fallback.
15005if test "x$ac_cr" = x; then
15006 eval ac_cr=\$\'\\r\'
15007fi
15008ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15009if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15010 ac_cs_awk_cr='\r'
15011else
15012 ac_cs_awk_cr=$ac_cr
15013fi
15014
15015echo 'BEGIN {' >"$tmp/subs1.awk" &&
15016_ACEOF
15017
15018# Create commands to substitute file output variables.
c6b750e1 15019{
81ecdfbb
RW
15020 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15021 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15022 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15023 echo "_ACAWK" &&
15024 echo "_ACEOF"
15025} >conf$$files.sh &&
15026. ./conf$$files.sh ||
15027 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15028rm -f conf$$files.sh
c6b750e1 15029
81ecdfbb
RW
15030{
15031 echo "cat >conf$$subs.awk <<_ACEOF" &&
15032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15033 echo "_ACEOF"
15034} >conf$$subs.sh ||
15035 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15036ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15037ac_delim='%!_!# '
15038for ac_last_try in false false false false false :; do
15039 . ./conf$$subs.sh ||
15040 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15041
15042 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15043 if test $ac_delim_n = $ac_delim_num; then
15044 break
15045 elif $ac_last_try; then
15046 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15047 else
15048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15049 fi
15050done
15051rm -f conf$$subs.sh
15052
15053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15054cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15055_ACEOF
81ecdfbb
RW
15056sed -n '
15057h
15058s/^/S["/; s/!.*/"]=/
15059p
15060g
15061s/^[^!]*!//
15062:repl
15063t repl
15064s/'"$ac_delim"'$//
15065t delim
15066:nl
15067h
15068s/\(.\{148\}\).*/\1/
15069t more1
15070s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15071p
15072n
15073b repl
15074:more1
15075s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15076p
15077g
15078s/.\{148\}//
15079t nl
15080:delim
15081h
15082s/\(.\{148\}\).*/\1/
15083t more2
15084s/["\\]/\\&/g; s/^/"/; s/$/"/
15085p
15086b
15087:more2
15088s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15089p
15090g
15091s/.\{148\}//
15092t delim
15093' <conf$$subs.awk | sed '
15094/^[^""]/{
15095 N
15096 s/\n//
15097}
15098' >>$CONFIG_STATUS || ac_write_fail=1
15099rm -f conf$$subs.awk
15100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15101_ACAWK
15102cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15103 for (key in S) S_is_set[key] = 1
15104 FS = "\a"
15105 \$ac_cs_awk_pipe_init
15106}
15107{
15108 line = $ 0
15109 nfields = split(line, field, "@")
15110 substed = 0
15111 len = length(field[1])
15112 for (i = 2; i < nfields; i++) {
15113 key = field[i]
15114 keylen = length(key)
15115 if (S_is_set[key]) {
15116 value = S[key]
15117 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15118 len += length(value) + length(field[++i])
15119 substed = 1
15120 } else
15121 len += 1 + keylen
15122 }
15123 if (nfields == 3 && !substed) {
15124 key = field[2]
15125 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15126 \$ac_cs_awk_read_file
15127 next
15128 }
15129 }
15130 print line
15131}
15132\$ac_cs_awk_pipe_fini
15133_ACAWK
15134_ACEOF
15135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15136if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15137 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15138else
15139 cat
15140fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15141 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15142_ACEOF
15143
15144# VPATH may cause trouble with some makes, so we remove $(srcdir),
15145# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15146# trailing colons and then remove the whole line if VPATH becomes empty
15147# (actually we leave an empty line to preserve line numbers).
15148if test "x$srcdir" = x.; then
15149 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15150s/:*\$(srcdir):*/:/
15151s/:*\${srcdir}:*/:/
15152s/:*@srcdir@:*/:/
15153s/^\([^=]*=[ ]*\):*/\1/
15154s/:*$//
15155s/^[^=]*=[ ]*$//
15156}'
15157fi
c6b750e1 15158
81ecdfbb
RW
15159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15160fi # test -n "$CONFIG_FILES"
c6b750e1 15161
c6b750e1 15162
81ecdfbb
RW
15163eval set X " :F $CONFIG_FILES "
15164shift
15165for ac_tag
15166do
15167 case $ac_tag in
15168 :[FHLC]) ac_mode=$ac_tag; continue;;
15169 esac
15170 case $ac_mode$ac_tag in
15171 :[FHL]*:*);;
15172 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15173 :[FH]-) ac_tag=-:-;;
15174 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15175 esac
15176 ac_save_IFS=$IFS
15177 IFS=:
15178 set x $ac_tag
15179 IFS=$ac_save_IFS
15180 shift
15181 ac_file=$1
15182 shift
252b5132 15183
81ecdfbb
RW
15184 case $ac_mode in
15185 :L) ac_source=$1;;
15186 :[FH])
15187 ac_file_inputs=
15188 for ac_f
15189 do
15190 case $ac_f in
15191 -) ac_f="$tmp/stdin";;
15192 *) # Look for the file first in the build tree, then in the source tree
15193 # (if the path is not absolute). The absolute path cannot be DOS-style,
15194 # because $ac_f cannot contain `:'.
15195 test -f "$ac_f" ||
15196 case $ac_f in
15197 [\\/$]*) false;;
15198 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15199 esac ||
15200 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15201 esac
15202 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15203 as_fn_append ac_file_inputs " '$ac_f'"
15204 done
c6b750e1 15205
81ecdfbb
RW
15206 # Let's still pretend it is `configure' which instantiates (i.e., don't
15207 # use $as_me), people would be surprised to read:
15208 # /* config.h. Generated by config.status. */
15209 configure_input='Generated from '`
15210 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15211 `' by configure.'
15212 if test x"$ac_file" != x-; then
15213 configure_input="$ac_file. $configure_input"
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15215$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15216 fi
81ecdfbb
RW
15217 # Neutralize special characters interpreted by sed in replacement strings.
15218 case $configure_input in #(
15219 *\&* | *\|* | *\\* )
15220 ac_sed_conf_input=`$as_echo "$configure_input" |
15221 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15222 *) ac_sed_conf_input=$configure_input;;
15223 esac
cac3d6c4 15224
81ecdfbb
RW
15225 case $ac_tag in
15226 *:-:* | *:-) cat >"$tmp/stdin" \
15227 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15228 esac
15229 ;;
a0da8069 15230 esac
252b5132 15231
81ecdfbb 15232 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15233$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15234 X"$ac_file" : 'X\(//\)[^/]' \| \
15235 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15236 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15237$as_echo X"$ac_file" |
15238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15239 s//\1/
15240 q
15241 }
15242 /^X\(\/\/\)[^/].*/{
15243 s//\1/
15244 q
15245 }
15246 /^X\(\/\/\)$/{
15247 s//\1/
15248 q
15249 }
15250 /^X\(\/\).*/{
15251 s//\1/
15252 q
15253 }
15254 s/.*/./; q'`
15255 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15256 ac_builddir=.
252b5132 15257
81ecdfbb
RW
15258case "$ac_dir" in
15259.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15260*)
15261 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15262 # A ".." for each directory in $ac_dir_suffix.
15263 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15264 case $ac_top_builddir_sub in
15265 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15266 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15267 esac ;;
15268esac
15269ac_abs_top_builddir=$ac_pwd
15270ac_abs_builddir=$ac_pwd$ac_dir_suffix
15271# for backward compatibility:
15272ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15273
15274case $srcdir in
81ecdfbb 15275 .) # We are building in place.
c6b750e1 15276 ac_srcdir=.
81ecdfbb
RW
15277 ac_top_srcdir=$ac_top_builddir_sub
15278 ac_abs_top_srcdir=$ac_pwd ;;
15279 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15280 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15281 ac_top_srcdir=$srcdir
15282 ac_abs_top_srcdir=$srcdir ;;
15283 *) # Relative name.
15284 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15285 ac_top_srcdir=$ac_top_build_prefix$srcdir
15286 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15287esac
81ecdfbb 15288ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15289
252b5132 15290
81ecdfbb
RW
15291 case $ac_mode in
15292 :F)
15293 #
15294 # CONFIG_FILE
15295 #
c6b750e1
DJ
15296
15297 case $INSTALL in
15298 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15299 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15300 esac
81ecdfbb 15301_ACEOF
252b5132 15302
81ecdfbb
RW
15303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15304# If the template does not know about datarootdir, expand it.
15305# FIXME: This hack should be removed a few years after 2.60.
15306ac_datarootdir_hack=; ac_datarootdir_seen=
15307ac_sed_dataroot='
15308/datarootdir/ {
15309 p
15310 q
15311}
15312/@datadir@/p
15313/@docdir@/p
15314/@infodir@/p
15315/@localedir@/p
15316/@mandir@/p'
15317case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15318*datarootdir*) ac_datarootdir_seen=yes;;
15319*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15321$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15322_ACEOF
81ecdfbb
RW
15323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15324 ac_datarootdir_hack='
15325 s&@datadir@&$datadir&g
15326 s&@docdir@&$docdir&g
15327 s&@infodir@&$infodir&g
15328 s&@localedir@&$localedir&g
15329 s&@mandir@&$mandir&g
15330 s&\\\${datarootdir}&$datarootdir&g' ;;
15331esac
15332_ACEOF
15333
15334# Neutralize VPATH when `$srcdir' = `.'.
15335# Shell code in configure.ac might set extrasub.
15336# FIXME: do we really want to maintain this feature?
15337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15338ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15339$extrasub
15340_ACEOF
81ecdfbb 15341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15342:t
15343/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15344s|@configure_input@|$ac_sed_conf_input|;t t
15345s&@top_builddir@&$ac_top_builddir_sub&;t t
15346s&@top_build_prefix@&$ac_top_build_prefix&;t t
15347s&@srcdir@&$ac_srcdir&;t t
15348s&@abs_srcdir@&$ac_abs_srcdir&;t t
15349s&@top_srcdir@&$ac_top_srcdir&;t t
15350s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15351s&@builddir@&$ac_builddir&;t t
15352s&@abs_builddir@&$ac_abs_builddir&;t t
15353s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15354s&@INSTALL@&$ac_INSTALL&;t t
15355$ac_datarootdir_hack
15356"
15357eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15358if $ac_cs_awk_getline; then
15359 $AWK -f "$tmp/subs.awk"
15360else
15361 $AWK -f "$tmp/subs.awk" | $SHELL
15362fi >$tmp/out \
15363 || as_fn_error "could not create $ac_file" "$LINENO" 5
15364
15365test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15369which seems to be undefined. Please make sure it is defined." >&5
15370$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15371which seems to be undefined. Please make sure it is defined." >&2;}
15372
15373 rm -f "$tmp/stdin"
15374 case $ac_file in
15375 -) cat "$tmp/out" && rm -f "$tmp/out";;
15376 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15377 esac \
15378 || as_fn_error "could not create $ac_file" "$LINENO" 5
15379 ;;
c148b4cb 15380
c148b4cb 15381
c148b4cb 15382
81ecdfbb
RW
15383 esac
15384
06a51eac
RW
15385
15386 case $ac_file$ac_mode in
15387 "Makefile":F) sed "$extrasub_build" Makefile |
15388 sed "$extrasub_host" |
15389 sed "$extrasub_target" > mf$$
15390 mv -f mf$$ Makefile ;;
15391
15392 esac
81ecdfbb
RW
15393done # for ac_tag
15394
15395
15396as_fn_exit 0
c6b750e1 15397_ACEOF
c6b750e1
DJ
15398ac_clean_files=$ac_clean_files_save
15399
81ecdfbb
RW
15400test $ac_write_fail = 0 ||
15401 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15402
c6b750e1
DJ
15403
15404# configure is writing to config.log, and then calls config.status.
15405# config.status does its own redirection, appending to config.log.
15406# Unfortunately, on DOS this fails, as config.log is still kept open
15407# by configure, so config.status won't be able to write to it; its
15408# output is simply discarded. So we exec the FD to /dev/null,
15409# effectively closing config.log, so it can be properly (re)opened and
15410# appended to by config.status. When coming back to configure, we
15411# need to make the FD available again.
15412if test "$no_create" != yes; then
15413 ac_cs_success=:
15414 ac_config_status_args=
15415 test "$silent" = yes &&
15416 ac_config_status_args="$ac_config_status_args --quiet"
15417 exec 5>/dev/null
15418 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15419 exec 5>>config.log
15420 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15421 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15422 $ac_cs_success || as_fn_exit $?
15423fi
15424if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15426$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15427fi
c148b4cb 15428
This page took 1.576031 seconds and 4 git commands to generate.