]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
* MAINTAINERS (aarch64): Add Marcus and myself.
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
1c710c3c 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
1c710c3c 263
5213506e
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
1c710c3c 410
2aeb72e9
DD
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 417
1c710c3c 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
0b0dc272 519
1c710c3c
DJ
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
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
e7a82751 573READELF_FOR_TARGET
5213506e
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
632e2a07 582GOC_FOR_TARGET
5213506e
RW
583GFORTRAN_FOR_TARGET
584GCJ_FOR_TARGET
585GCC_FOR_TARGET
586CXX_FOR_TARGET
587CC_FOR_TARGET
e7a82751 588READELF
5213506e
RW
589OBJDUMP
590OBJCOPY
591WINDMC
592WINDRES
593STRIP
594RANLIB
595NM
596LIPO
597LD
598DLLTOOL
599AS
600AR
601RUNTEST
602EXPECT
603MAKEINFO
604FLEX
605LEX
606M4
607BISON
608YACC
5213506e
RW
609WINDRES_FOR_BUILD
610WINDMC_FOR_BUILD
611RANLIB_FOR_BUILD
612NM_FOR_BUILD
613LD_FOR_BUILD
614LDFLAGS_FOR_BUILD
632e2a07 615GOC_FOR_BUILD
5213506e
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
aae29963 625target_configdirs
5213506e 626configdirs
5213506e 627build_configdirs
5213506e
RW
628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
ffedf511
RW
635target_configargs
636host_configargs
637build_configargs
e12c4094 638BUILD_CONFIG
6f57bdf6 639LDFLAGS_FOR_TARGET
5213506e
RW
640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
644stage1_languages
d7f09764 645extra_host_libiberty_configure_flags
5213506e
RW
646clooginc
647clooglibs
33ad93b9 648islinc
5213506e 649poststage1_ldflags
ed2eaa9f 650poststage1_libs
5213506e 651stage1_ldflags
0b21f5d3 652stage1_libs
0ff2d841 653extra_isl_gmp_configure_flags
5213506e
RW
654extra_mpc_mpfr_configure_flags
655extra_mpc_gmp_configure_flags
656extra_mpfr_configure_flags
657gmpinc
658gmplibs
659do_compare
660GNATMAKE
661GNATBIND
662ac_ct_CXX
663CXXFLAGS
664CXX
665OBJEXT
666EXEEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
a4a2c37d 672EXTRA_CONFIGARGS_LIBJAVA
5213506e
RW
673target_subdir
674host_subdir
675build_subdir
676build_libsubdir
87264276
PB
677AWK
678SED
5213506e
RW
679LN_S
680LN
681INSTALL_DATA
682INSTALL_SCRIPT
683INSTALL_PROGRAM
684target_os
685target_vendor
686target_cpu
687target
688host_os
689host_vendor
690host_cpu
691host
692target_noncanonical
693host_noncanonical
694build_noncanonical
695build_os
696build_vendor
697build_cpu
698build
699TOPLEVEL_CONFIGURE_ARGUMENTS
700target_alias
701host_alias
702build_alias
703LIBS
704ECHO_T
705ECHO_N
706ECHO_C
707DEFS
708mandir
709localedir
710libdir
711psdir
712pdfdir
713dvidir
714htmldir
715infodir
716docdir
717oldincludedir
718includedir
719localstatedir
720sharedstatedir
721sysconfdir
722datadir
723datarootdir
724libexecdir
725sbindir
726bindir
727program_transform_name
728prefix
729exec_prefix
730PACKAGE_URL
731PACKAGE_BUGREPORT
732PACKAGE_STRING
733PACKAGE_VERSION
734PACKAGE_TARNAME
735PACKAGE_NAME
736PATH_SEPARATOR
737SHELL'
738ac_subst_files='serialization_dependencies
739host_makefile_frag
740target_makefile_frag
741alphaieee_frag
742ospace_frag'
743ac_user_opts='
744enable_option_checking
745with_build_libsubdir
746enable_gold
21539e2e 747enable_ld
87e6d9dc
TB
748enable_libquadmath
749enable_libquadmath_support
5213506e
RW
750enable_libada
751enable_libssp
a4a2c37d 752enable_static_libjava
ff3ac0f4 753enable_bootstrap
5213506e
RW
754with_mpc
755with_mpc_include
756with_mpc_lib
757with_mpfr_dir
758with_mpfr
759with_mpfr_include
760with_mpfr_lib
761with_gmp_dir
762with_gmp
763with_gmp_include
764with_gmp_lib
765with_host_libstdcxx
5213506e 766with_stage1_libs
0b21f5d3 767with_stage1_ldflags
5213506e 768with_boot_libs
ed2eaa9f 769with_boot_ldflags
625afa23 770with_cloog
33ad93b9
RG
771with_isl
772with_isl_include
773with_isl_lib
774enable_isl_version_check
5213506e
RW
775with_cloog_include
776with_cloog_lib
777enable_cloog_version_check
d7f09764 778enable_lto
5213506e
RW
779enable_stage1_languages
780enable_objc_gc
781with_build_sysroot
782with_debug_prefix_map
5646b7b9 783with_build_config
5213506e
RW
784enable_serial_configure
785with_build_time_tools
786enable_maintainer_mode
787enable_stage1_checking
788enable_werror
5213506e
RW
789'
790 ac_precious_vars='build_alias
791host_alias
792target_alias
793CC
794CFLAGS
795LDFLAGS
796LIBS
797CPPFLAGS
798CXX
799CXXFLAGS
800CCC
ffedf511
RW
801build_configargs
802host_configargs
803target_configargs
5213506e
RW
804AR
805AS
806DLLTOOL
807LD
808LIPO
809NM
810RANLIB
811STRIP
812WINDRES
813WINDMC
814OBJCOPY
815OBJDUMP
e7a82751 816READELF
5213506e
RW
817CC_FOR_TARGET
818CXX_FOR_TARGET
819GCC_FOR_TARGET
820GCJ_FOR_TARGET
821GFORTRAN_FOR_TARGET
632e2a07 822GOC_FOR_TARGET
5213506e
RW
823AR_FOR_TARGET
824AS_FOR_TARGET
825DLLTOOL_FOR_TARGET
826LD_FOR_TARGET
827LIPO_FOR_TARGET
828NM_FOR_TARGET
829OBJDUMP_FOR_TARGET
830RANLIB_FOR_TARGET
e7a82751 831READELF_FOR_TARGET
5213506e
RW
832STRIP_FOR_TARGET
833WINDRES_FOR_TARGET
834WINDMC_FOR_TARGET'
835
671aa708
NN
836
837# Initialize some variables set by options.
1c710c3c
DJ
838ac_init_help=
839ac_init_version=false
5213506e
RW
840ac_unrecognized_opts=
841ac_unrecognized_sep=
671aa708
NN
842# The variables have the same names as the options, with
843# dashes changed to underlines.
1c710c3c 844cache_file=/dev/null
671aa708 845exec_prefix=NONE
671aa708 846no_create=
671aa708
NN
847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
671aa708
NN
855verbose=
856x_includes=NONE
857x_libraries=NONE
1c710c3c
DJ
858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 864# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
5213506e
RW
868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
671aa708
NN
870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
671aa708
NN
873includedir='${prefix}/include'
874oldincludedir='/usr/include'
5213506e
RW
875docdir='${datarootdir}/doc/${PACKAGE}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
79c06341 884
671aa708 885ac_prev=
5213506e 886ac_dashdash=
671aa708
NN
887for ac_option
888do
671aa708
NN
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
5213506e 891 eval $ac_prev=\$ac_option
671aa708
NN
892 ac_prev=
893 continue
894 fi
79c06341 895
5213506e
RW
896 case $ac_option in
897 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *) ac_optarg=yes ;;
899 esac
671aa708
NN
900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
5213506e
RW
903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
671aa708
NN
906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 910 bindir=$ac_optarg ;;
671aa708
NN
911
912 -build | --build | --buil | --bui | --bu)
1c710c3c 913 ac_prev=build_alias ;;
671aa708 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 915 build_alias=$ac_optarg ;;
671aa708
NN
916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
671aa708 926
5213506e 927 -datadir | --datadir | --datadi | --datad)
671aa708 928 ac_prev=datadir ;;
5213506e 929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 930 datadir=$ac_optarg ;;
671aa708 931
5213506e
RW
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
671aa708 939 -disable-* | --disable-*)
5213506e 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 941 # Reject names that are not valid shell variable names.
5213506e
RW
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
671aa708
NN
964
965 -enable-* | --enable-*)
5213506e 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 967 # Reject names that are not valid shell variable names.
5213506e
RW
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974"enable_$ac_useropt"
975"*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
2aeb72e9 978 esac
5213506e 979 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
1c710c3c 988 exec_prefix=$ac_optarg ;;
671aa708
NN
989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
1c710c3c
DJ
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
671aa708
NN
1000
1001 -host | --host | --hos | --ho)
1c710c3c 1002 ac_prev=host_alias ;;
671aa708 1003 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1004 host_alias=$ac_optarg ;;
671aa708 1005
5213506e
RW
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
671aa708
NN
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1017 includedir=$ac_optarg ;;
671aa708
NN
1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1022 infodir=$ac_optarg ;;
671aa708
NN
1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1027 libdir=$ac_optarg ;;
671aa708
NN
1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1034 libexecdir=$ac_optarg ;;
671aa708 1035
5213506e
RW
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
671aa708 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1042 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1046 localstatedir=$ac_optarg ;;
671aa708
NN
1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1051 mandir=$ac_optarg ;;
671aa708
NN
1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1058 | --no-cr | --no-c | -n)
671aa708
NN
1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1072 oldincludedir=$ac_optarg ;;
671aa708
NN
1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1077 prefix=$ac_optarg ;;
671aa708
NN
1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1084 program_prefix=$ac_optarg ;;
671aa708
NN
1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1091 program_suffix=$ac_optarg ;;
671aa708
NN
1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1108 program_transform_name=$ac_optarg ;;
671aa708 1109
5213506e
RW
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
671aa708
NN
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1c710c3c 1128 sbindir=$ac_optarg ;;
671aa708
NN
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1c710c3c 1139 sharedstatedir=$ac_optarg ;;
671aa708
NN
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1c710c3c 1144 site=$ac_optarg ;;
671aa708
NN
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1149 srcdir=$ac_optarg ;;
671aa708
NN
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1156 sysconfdir=$ac_optarg ;;
671aa708
NN
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1159 ac_prev=target_alias ;;
671aa708 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1161 target_alias=$ac_optarg ;;
671aa708
NN
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
1c710c3c
DJ
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
671aa708
NN
1168
1169 -with-* | --with-*)
5213506e 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1171 # Reject names that are not valid shell variable names.
5213506e
RW
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178"with_$ac_useropt"
1179"*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
2aeb72e9 1182 esac
5213506e 1183 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1184
1185 -without-* | --without-*)
5213506e 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1187 # Reject names that are not valid shell variable names.
5213506e
RW
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
671aa708
NN
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1210 x_includes=$ac_optarg ;;
671aa708
NN
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1217 x_libraries=$ac_optarg ;;
671aa708 1218
5213506e
RW
1219 -*) as_fn_error "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information."
671aa708
NN
1221 ;;
1222
1c710c3c
DJ
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
5213506e
RW
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1231 export $ac_envvar ;;
1232
671aa708 1233 *)
1c710c3c 1234 # FIXME: should be removed in autoconf 3.0.
5213506e 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1239 ;;
1240
1241 esac
1242done
1243
1244if test -n "$ac_prev"; then
1c710c3c 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1246 as_fn_error "missing argument to $ac_option"
af71363e 1247fi
af71363e 1248
5213506e
RW
1249if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1254 esac
5213506e 1255fi
2aeb72e9 1256
5213506e
RW
1257# Check all directory arguments for consistency.
1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
2aeb72e9 1262do
5213506e
RW
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
2aeb72e9 1271 case $ac_val in
5213506e
RW
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1274 esac
5213506e 1275 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1276done
1277
1c710c3c
DJ
1278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
1280# FIXME: To remove some day.
1281build=$build_alias
1282host=$host_alias
1283target=$target_alias
0b0dc272 1284
1c710c3c
DJ
1285# FIXME: To remove some day.
1286if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
5213506e 1289 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294fi
1295
1296ac_tool_prefix=
1297test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299test "$silent" = yes && exec 6>/dev/null
671aa708 1300
671aa708 1301
5213506e
RW
1302ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303ac_ls_di=`ls -di .` &&
1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error "working directory cannot be determined"
1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error "pwd does not report name of working directory"
1308
1309
671aa708
NN
1310# Find the source files, if location was not specified.
1311if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
5213506e
RW
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319$as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
671aa708 1337 srcdir=$ac_confdir
5213506e 1338 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1339 srcdir=..
1340 fi
1341else
1342 ac_srcdir_defaulted=no
1343fi
5213506e
RW
1344if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1347fi
1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 pwd)`
1352# When building in place, set srcdir=.
1353if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355fi
1356# Remove unnecessary trailing slashes from srcdir.
1357# Double slashes in file names in object file debugging info
1358# mess up M-x gdb in Emacs.
1359case $srcdir in
1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361esac
87841584
AM
1362case $srcdir in
1363 *" "*)
1364 as_fn_error "path to source, $srcdir, contains spaces"
1365 ;;
1366esac
ac9e6043
RW
1367ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1368
5213506e
RW
1369for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374done
1c710c3c
DJ
1375
1376#
1377# Report the --help message.
1378#
1379if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383\`configure' configures this package to adapt to many kinds of systems.
1384
1385Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390Defaults for the options are specified in brackets.
1391
1392Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1c710c3c
DJ
1403Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1405 [$ac_default_prefix]
1c710c3c 1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1407 [PREFIX]
1c710c3c
DJ
1408
1409By default, \`make install' will install all the files in
1410\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412for instance \`--prefix=\$HOME'.
1413
1414For better control, use the options below.
1415
1416Fine tuning of the installation directories:
5213506e
RW
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1436_ACEOF
1437
1438 cat <<\_ACEOF
1439
1440Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444
1445System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 --target=TARGET configure for building compilers for TARGET [HOST]
1449_ACEOF
1450fi
1451
1452if test -n "$ac_init_help"; then
1453
1454 cat <<\_ACEOF
1455
1456Optional Features:
5213506e 1457 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e 1460 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1461 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1462 --disable-libquadmath do not build libquadmath directory
1463 --disable-libquadmath-support
1464 disable libquadmath support for Fortran
30b74385
RW
1465 --enable-libada build libada directory
1466 --enable-libssp build libssp directory
a4a2c37d
MK
1467 --enable-static-libjava[=ARG]
1468 build static libjava [default=no]
ff3ac0f4 1469 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9
RG
1470 --disable-isl-version-check
1471 disable check for ISL version
d32ef397
AS
1472 --disable-cloog-version-check
1473 disable check for CLooG version
d7f09764 1474 --enable-lto enable link time optimization support
33e39b66
AS
1475 --enable-stage1-languages[=all]
1476 choose additional languages to build during stage1.
1477 Mostly useful for compiler development
1478 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1479 Objective-C runtime
30b74385 1480 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1481 force sequential configuration of sub-packages for
1482 the host, target or build machine, or all
1483 sub-packages
1484 --enable-maintainer-mode
1485 enable make rules and dependencies not useful (and
1486 sometimes confusing) to the casual installer
1487 --enable-stage1-checking[=all]
1488 choose additional checking for stage1 of the
1489 compiler
1c710c3c
DJ
1490 --enable-werror enable -Werror in bootstrap stage2 and later
1491
1492Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1496 --with-mpc=PATH specify prefix directory for installed MPC package.
1497 Equivalent to --with-mpc-include=PATH/include plus
1498 --with-mpc-lib=PATH/lib
1499 --with-mpc-include=PATH specify directory for installed MPC include files
1500 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1501 --with-mpfr-dir=PATH this option has been REMOVED
1502 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1503 Equivalent to --with-mpfr-include=PATH/include plus
1504 --with-mpfr-lib=PATH/lib
1c710c3c 1505 --with-mpfr-include=PATH
30b74385
RW
1506 specify directory for installed MPFR include files
1507 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1508 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1509 --with-gmp=PATH specify prefix directory for the installed GMP
1510 package. Equivalent to
1511 --with-gmp-include=PATH/include plus
1512 --with-gmp-lib=PATH/lib
30b74385
RW
1513 --with-gmp-include=PATH specify directory for installed GMP include files
1514 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1515 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1516 linking with PPL
0b21f5d3 1517 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1518 --with-stage1-ldflags=FLAGS
1519 linker flags for stage1
33e39b66
AS
1520 --with-boot-libs=LIBS libraries for stage2 and later
1521 --with-boot-ldflags=FLAGS
1522 linker flags for stage2 and later
625afa23
RG
1523 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1524 package. Equivalent to
1525 --with-cloog-include=PATH/include plus
1526 --with-cloog-lib=PATH/lib
33ad93b9 1527 --with-isl=PATH Specify prefix directory for the installed ISL
33e39b66 1528 package. Equivalent to
33ad93b9
RG
1529 --with-isl-include=PATH/include plus
1530 --with-isl-lib=PATH/lib
1531 --with-isl-include=PATH Specify directory for installed ISL include files
1532 --with-isl-lib=PATH Specify the directory for the installed ISL library
d32ef397
AS
1533 --with-cloog-include=PATH
1534 Specify directory for installed CLooG include files
1535 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1536 library
30b74385 1537 --with-build-sysroot=SYSROOT
1c710c3c 1538 use sysroot as the system root during the build
c8aea42c 1539 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1540 map A to B, C to D ... in debug information
1541 --with-build-config='NAME NAME2...'
1542 use config/NAME.mk build configuration
30b74385 1543 --with-build-time-tools=PATH
1c710c3c 1544 use given path to find target tools during the build
1c710c3c
DJ
1545
1546Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
5213506e
RW
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1554 CXX C++ compiler command
1555 CXXFLAGS C++ compiler flags
ffedf511
RW
1556 build_configargs
1557 additional configure arguments for build directories
1558 host_configargs
1559 additional configure arguments for host directories
1560 target_configargs
1561 additional configure arguments for target directories
278a7a38
AO
1562 AR AR for the host
1563 AS AS for the host
1564 DLLTOOL DLLTOOL for the host
1565 LD LD for the host
1566 LIPO LIPO for the host
1567 NM NM for the host
1568 RANLIB RANLIB for the host
1569 STRIP STRIP for the host
1570 WINDRES WINDRES for the host
901119ae 1571 WINDMC WINDMC for the host
278a7a38
AO
1572 OBJCOPY OBJCOPY for the host
1573 OBJDUMP OBJDUMP for the host
e7a82751 1574 READELF READELF for the host
278a7a38
AO
1575 CC_FOR_TARGET
1576 CC for the target
1577 CXX_FOR_TARGET
1578 CXX for the target
1579 GCC_FOR_TARGET
1580 GCC for the target
1581 GCJ_FOR_TARGET
1582 GCJ for the target
1583 GFORTRAN_FOR_TARGET
1584 GFORTRAN for the target
632e2a07
ILT
1585 GOC_FOR_TARGET
1586 GOC for the target
278a7a38
AO
1587 AR_FOR_TARGET
1588 AR for the target
1589 AS_FOR_TARGET
1590 AS for the target
1591 DLLTOOL_FOR_TARGET
1592 DLLTOOL for the target
1593 LD_FOR_TARGET
1594 LD for the target
1595 LIPO_FOR_TARGET
1596 LIPO for the target
1597 NM_FOR_TARGET
1598 NM for the target
1599 OBJDUMP_FOR_TARGET
1600 OBJDUMP for the target
1601 RANLIB_FOR_TARGET
1602 RANLIB for the target
e7a82751
RM
1603 READELF_FOR_TARGET
1604 READELF for the target
278a7a38
AO
1605 STRIP_FOR_TARGET
1606 STRIP for the target
1607 WINDRES_FOR_TARGET
1608 WINDRES for the target
901119ae
KT
1609 WINDMC_FOR_TARGET
1610 WINDMC for the target
1c710c3c
DJ
1611
1612Use these variables to override the choices made by `configure' or to help
1613it to find libraries and programs with nonstandard names/locations.
1614
5213506e 1615Report bugs to the package provider.
1c710c3c 1616_ACEOF
5213506e 1617ac_status=$?
1c710c3c
DJ
1618fi
1619
1620if test "$ac_init_help" = "recursive"; then
1621 # If there are subdirs, report their specific --help.
1c710c3c 1622 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1623 test -d "$ac_dir" ||
1624 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 continue
1c710c3c
DJ
1626 ac_builddir=.
1627
5213506e
RW
1628case "$ac_dir" in
1629.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630*)
1631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 esac ;;
1638esac
1639ac_abs_top_builddir=$ac_pwd
1640ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641# for backward compatibility:
1642ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1643
1644case $srcdir in
5213506e 1645 .) # We are building in place.
1c710c3c 1646 ac_srcdir=.
5213506e
RW
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1650 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1653 *) # Relative name.
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1657esac
5213506e
RW
1658ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1668 else
5213506e
RW
1669 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 fi || ac_status=$?
1671 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1672 done
1673fi
1674
5213506e 1675test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1676if $ac_init_version; then
1677 cat <<\_ACEOF
5213506e
RW
1678configure
1679generated by GNU Autoconf 2.64
1c710c3c 1680
5213506e 1681Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1682This configure script is free software; the Free Software Foundation
1683gives unlimited permission to copy, distribute and modify it.
1684_ACEOF
5213506e 1685 exit
0b0dc272 1686fi
5213506e
RW
1687
1688## ------------------------ ##
1689## Autoconf initialization. ##
1690## ------------------------ ##
1691
1692# ac_fn_c_try_compile LINENO
1693# --------------------------
1694# Try to compile conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_compile ()
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext
1699 if { { ac_try="$ac_compile"
1700case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_compile") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1712 fi
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest.$ac_objext; then :
1718 ac_retval=0
1719else
1720 $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724fi
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 return $ac_retval
1727
1728} # ac_fn_c_try_compile
1729
1730# ac_fn_cxx_try_compile LINENO
1731# ----------------------------
1732# Try to compile conftest.$ac_ext, and return whether this succeeded.
1733ac_fn_cxx_try_compile ()
1734{
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1738case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_cxx_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext; then :
1756 ac_retval=0
1757else
1758 $as_echo "$as_me: failed program was:" >&5
1759sed 's/^/| /' conftest.$ac_ext >&5
1760
1761 ac_retval=1
1762fi
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1765
1766} # ac_fn_cxx_try_compile
1767
0b21f5d3
EB
1768# ac_fn_cxx_try_link LINENO
1769# -------------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded.
1771ac_fn_cxx_try_link ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1788 fi
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_cxx_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 $as_test_x conftest$ac_exeext
1796 }; then :
1797 ac_retval=0
1798else
1799 $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=1
1803fi
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 return $ac_retval
1811
1812} # ac_fn_cxx_try_link
1813
5213506e
RW
1814# ac_fn_c_try_link LINENO
1815# -----------------------
1816# Try to link conftest.$ac_ext, and return whether this succeeded.
1817ac_fn_c_try_link ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 rm -f conftest.$ac_objext conftest$ac_exeext
1821 if { { ac_try="$ac_link"
1822case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825esac
1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827$as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1834 fi
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest$ac_exeext && {
1840 test "$cross_compiling" = yes ||
1841 $as_test_x conftest$ac_exeext
1842 }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=1
1849fi
1850 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1851 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1852 # interfere with the next link command; also delete a directory that is
1853 # left behind by Apple's compiler. We do this before executing the actions.
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 return $ac_retval
1857
1858} # ac_fn_c_try_link
33ad93b9
RG
1859
1860# ac_fn_c_try_run LINENO
1861# ----------------------
1862# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863# that executables *can* be run.
1864ac_fn_c_try_run ()
1865{
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_link"
1868case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871esac
1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873$as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>&5
1875 ac_status=$?
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878 { { case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_try") 2>&5
1885 ac_status=$?
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; }; }; then :
1888 ac_retval=0
1889else
1890 $as_echo "$as_me: program exited with status $ac_status" >&5
1891 $as_echo "$as_me: failed program was:" >&5
1892sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=$ac_status
1895fi
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898 return $ac_retval
1899
1900} # ac_fn_c_try_run
5213506e 1901cat >config.log <<_ACEOF
1c710c3c
DJ
1902This file contains any messages produced by compilers while
1903running configure, to aid debugging if configure makes a mistake.
1904
1905It was created by $as_me, which was
5213506e 1906generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1907
1908 $ $0 $@
1909
1910_ACEOF
5213506e 1911exec 5>>config.log
1c710c3c
DJ
1912{
1913cat <<_ASUNAME
1914## --------- ##
1915## Platform. ##
1916## --------- ##
1917
1918hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1926
1927/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1930/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1931/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1934
1935_ASUNAME
1936
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
5213506e
RW
1942 $as_echo "PATH: $as_dir"
1943 done
1944IFS=$as_save_IFS
1c710c3c
DJ
1945
1946} >&5
1947
1948cat >&5 <<_ACEOF
1949
1950
1951## ----------- ##
1952## Core tests. ##
1953## ----------- ##
1954
1955_ACEOF
1956
1957
1958# Keep a trace of the command line.
1959# Strip out --no-create and --no-recursion so they do not pile up.
1960# Strip out --silent because we don't want to record it for future runs.
1961# Also quote any args containing shell meta-characters.
1962# Make two passes to allow for proper duplicate-argument suppression.
1963ac_configure_args=
1964ac_configure_args0=
1965ac_configure_args1=
1c710c3c
DJ
1966ac_must_keep_next=false
1967for ac_pass in 1 2
1968do
1969 for ac_arg
1970 do
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
5213506e
RW
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1978 esac
1979 case $ac_pass in
5213506e 1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1981 2)
5213506e 1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1994 ;;
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1997 fi
5213506e 1998 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1999 ;;
2000 esac
2001 done
2002done
5213506e
RW
2003{ ac_configure_args0=; unset ac_configure_args0;}
2004{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2005
2006# When interrupted or exit'd, cleanup temporary files, and complete
2007# config.log. We remove comments because anyway the quotes in there
2008# would cause problems or look ugly.
5213506e
RW
2009# WARNING: Use '\'' to represent an apostrophe within the trap.
2010# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2011trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2013 {
2014 echo
2015
2016 cat <<\_ASBOX
2017## ---------------- ##
2018## Cache variables. ##
2019## ---------------- ##
2020_ASBOX
2021 echo
2022 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2023(
2024 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2025 eval ac_val=\$$ac_var
2026 case $ac_val in #(
2027 *${as_nl}*)
2028 case $ac_var in #(
2029 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2030$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031 esac
2032 case $ac_var in #(
2033 _ | IFS | as_nl) ;; #(
2034 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2035 *) { eval $ac_var=; unset $ac_var;} ;;
2036 esac ;;
2037 esac
2038 done
1c710c3c 2039 (set) 2>&1 |
5213506e
RW
2040 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2041 *${as_nl}ac_space=\ *)
1c710c3c 2042 sed -n \
5213506e
RW
2043 "s/'\''/'\''\\\\'\'''\''/g;
2044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045 ;; #(
1c710c3c 2046 *)
5213506e 2047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2048 ;;
5213506e
RW
2049 esac |
2050 sort
2051)
1c710c3c
DJ
2052 echo
2053
2054 cat <<\_ASBOX
2055## ----------------- ##
2056## Output variables. ##
2057## ----------------- ##
2058_ASBOX
2059 echo
2060 for ac_var in $ac_subst_vars
2061 do
5213506e
RW
2062 eval ac_val=\$$ac_var
2063 case $ac_val in
2064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065 esac
2066 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2067 done | sort
2068 echo
2069
2070 if test -n "$ac_subst_files"; then
2071 cat <<\_ASBOX
5213506e
RW
2072## ------------------- ##
2073## File substitutions. ##
2074## ------------------- ##
1c710c3c
DJ
2075_ASBOX
2076 echo
2077 for ac_var in $ac_subst_files
2078 do
5213506e
RW
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2084 done | sort
2085 echo
2086 fi
2087
2088 if test -s confdefs.h; then
2089 cat <<\_ASBOX
2090## ----------- ##
2091## confdefs.h. ##
2092## ----------- ##
2093_ASBOX
2094 echo
5213506e 2095 cat confdefs.h
1c710c3c
DJ
2096 echo
2097 fi
2098 test "$ac_signal" != 0 &&
5213506e
RW
2099 $as_echo "$as_me: caught signal $ac_signal"
2100 $as_echo "$as_me: exit $exit_status"
1c710c3c 2101 } >&5
5213506e
RW
2102 rm -f core *.core core.conftest.* &&
2103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2104 exit $exit_status
5213506e 2105' 0
1c710c3c 2106for ac_signal in 1 2 13 15; do
5213506e 2107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2108done
2109ac_signal=0
2110
2111# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2112rm -f -r conftest* confdefs.h
2113
2114$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2115
2116# Predefined preprocessor variables.
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_NAME "$PACKAGE_NAME"
2120_ACEOF
2121
1c710c3c
DJ
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2124_ACEOF
2125
1c710c3c
DJ
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_VERSION "$PACKAGE_VERSION"
2128_ACEOF
0b0dc272 2129
1c710c3c
DJ
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_STRING "$PACKAGE_STRING"
2132_ACEOF
2133
1c710c3c
DJ
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2136_ACEOF
2137
5213506e
RW
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_URL "$PACKAGE_URL"
2140_ACEOF
2141
1c710c3c
DJ
2142
2143# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2144# Prefer an explicitly selected file to automatically selected ones.
2145ac_site_file1=NONE
2146ac_site_file2=NONE
2147if test -n "$CONFIG_SITE"; then
2148 ac_site_file1=$CONFIG_SITE
2149elif test "x$prefix" != xNONE; then
2150 ac_site_file1=$prefix/share/config.site
2151 ac_site_file2=$prefix/etc/config.site
2152else
2153 ac_site_file1=$ac_default_prefix/share/config.site
2154 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2155fi
5213506e
RW
2156for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2157do
2158 test "x$ac_site_file" = xNONE && continue
671aa708 2159 if test -r "$ac_site_file"; then
5213506e
RW
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2161$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2162 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2163 . "$ac_site_file"
2164 fi
2165done
2166
2167if test -r "$cache_file"; then
1c710c3c
DJ
2168 # Some versions of bash will fail to source /dev/null (special
2169 # files actually), so we avoid doing that.
2170 if test -f "$cache_file"; then
5213506e
RW
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2172$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2173 case $cache_file in
5213506e
RW
2174 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2175 *) . "./$cache_file";;
1c710c3c
DJ
2176 esac
2177 fi
671aa708 2178else
5213506e
RW
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2180$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2181 >$cache_file
2182fi
2183
2184# Check that the precious variables saved in the cache have kept the same
2185# value.
2186ac_cache_corrupted=false
5213506e 2187for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2188 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2189 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2190 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2191 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2192 case $ac_old_set,$ac_new_set in
2193 set,)
5213506e
RW
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2195$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2196 ac_cache_corrupted=: ;;
2197 ,set)
5213506e
RW
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2199$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2200 ac_cache_corrupted=: ;;
2201 ,);;
2202 *)
2203 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2204 # differences in whitespace do not lead to failure.
2205 ac_old_val_w=`echo x $ac_old_val`
2206 ac_new_val_w=`echo x $ac_new_val`
2207 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2209$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2210 ac_cache_corrupted=:
2211 else
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2213$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2214 eval $ac_var=\$ac_old_val
2215 fi
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2217$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2219$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2220 fi;;
2221 esac
2222 # Pass precious variables to config.status.
2223 if test "$ac_new_set" = set; then
2224 case $ac_new_val in
5213506e 2225 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2226 *) ac_arg=$ac_var=$ac_new_val ;;
2227 esac
2228 case " $ac_configure_args " in
2229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2230 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2231 esac
2232 fi
2233done
2234if $ac_cache_corrupted; then
5213506e
RW
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2238$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2239 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2240fi
5213506e
RW
2241## -------------------- ##
2242## Main body of script. ##
2243## -------------------- ##
671aa708 2244
2aeb72e9
DD
2245ac_ext=c
2246ac_cpp='$CPP $CPPFLAGS'
2247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2249ac_compiler_gnu=$ac_cv_c_compiler_gnu
2250
1c710c3c
DJ
2251
2252
2253
1c710c3c
DJ
2254
2255
0115d4a3 2256
1c710c3c 2257
ad33ff57
RW
2258
2259progname=$0
2260# if PWD already has a value, it is probably wrong.
2261if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2262
2263# Export original configure arguments for use by sub-configures.
2264# Quote arguments with shell meta charatcers.
2265TOPLEVEL_CONFIGURE_ARGUMENTS=
2266set -- "$progname" "$@"
2267for ac_arg
2268do
2269 case "$ac_arg" in
2270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2272 # if the argument is of the form -foo=baz, quote the baz part only
2273 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2274 *) ;;
2275 esac
2276 # Add the quoted argument to the list.
2277 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2278done
2279if test "$silent" = yes; then
2280 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2281fi
2282# Remove the initial space we just introduced and, as these will be
2283# expanded by make, quote '$'.
2284TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2285
1c710c3c
DJ
2286
2287# Find the build, host, and target systems.
671aa708 2288ac_aux_dir=
5213506e
RW
2289for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2290 for ac_t in install-sh install.sh shtool; do
2291 if test -f "$ac_dir/$ac_t"; then
2292 ac_aux_dir=$ac_dir
2293 ac_install_sh="$ac_aux_dir/$ac_t -c"
2294 break 2
2295 fi
2296 done
671aa708
NN
2297done
2298if test -z "$ac_aux_dir"; then
5213506e 2299 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2300fi
5213506e
RW
2301
2302# These three variables are undocumented and unsupported,
2303# and are intended to be withdrawn in a future Autoconf release.
2304# They can cause serious problems if a builder's source tree is in a directory
2305# whose full name contains unusual characters.
2306ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2307ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2308ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2309
671aa708 2310
1c710c3c 2311# Make sure we can run config.sub.
5213506e
RW
2312$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2313 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2314
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2316$as_echo_n "checking build system type... " >&6; }
2317if test "${ac_cv_build+set}" = set; then :
2318 $as_echo_n "(cached) " >&6
2319else
2320 ac_build_alias=$build_alias
2321test "x$ac_build_alias" = x &&
2322 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2323test "x$ac_build_alias" = x &&
2324 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2325ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2326 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2327
2328fi
2329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2330$as_echo "$ac_cv_build" >&6; }
2331case $ac_cv_build in
2332*-*-*) ;;
2333*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2334esac
1c710c3c 2335build=$ac_cv_build
5213506e
RW
2336ac_save_IFS=$IFS; IFS='-'
2337set x $ac_cv_build
2338shift
2339build_cpu=$1
2340build_vendor=$2
2341shift; shift
2342# Remember, the first character of IFS is used to create $*,
2343# except with old shells:
2344build_os=$*
2345IFS=$ac_save_IFS
2346case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2347
671aa708 2348
1c710c3c
DJ
2349 case ${build_alias} in
2350 "") build_noncanonical=${build} ;;
2351 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2352esac
2353
2354
af71363e 2355
1c710c3c
DJ
2356 case ${host_alias} in
2357 "") host_noncanonical=${build_noncanonical} ;;
2358 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2359esac
2360
af71363e 2361
1c710c3c
DJ
2362
2363 case ${target_alias} in
2364 "") target_noncanonical=${host_noncanonical} ;;
2365 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2366esac
2367
af71363e 2368
1c710c3c
DJ
2369
2370
2371test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2372 test "$program_prefix$program_suffix$program_transform_name" = \
2373 NONENONEs,x,x, &&
1c710c3c 2374 program_transform_name=s,y,y,
af71363e 2375
5213506e
RW
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2377$as_echo_n "checking host system type... " >&6; }
2378if test "${ac_cv_host+set}" = set; then :
2379 $as_echo_n "(cached) " >&6
af71363e 2380else
5213506e
RW
2381 if test "x$host_alias" = x; then
2382 ac_cv_host=$ac_cv_build
2383else
2384 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2385 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2386fi
1c710c3c 2387
af71363e 2388fi
5213506e
RW
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2390$as_echo "$ac_cv_host" >&6; }
2391case $ac_cv_host in
2392*-*-*) ;;
2393*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2394esac
1c710c3c 2395host=$ac_cv_host
5213506e
RW
2396ac_save_IFS=$IFS; IFS='-'
2397set x $ac_cv_host
2398shift
2399host_cpu=$1
2400host_vendor=$2
2401shift; shift
2402# Remember, the first character of IFS is used to create $*,
2403# except with old shells:
2404host_os=$*
2405IFS=$ac_save_IFS
2406case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2407
2408
5213506e
RW
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2410$as_echo_n "checking target system type... " >&6; }
2411if test "${ac_cv_target+set}" = set; then :
2412 $as_echo_n "(cached) " >&6
1c710c3c 2413else
5213506e
RW
2414 if test "x$target_alias" = x; then
2415 ac_cv_target=$ac_cv_host
2416else
2417 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2418 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2419fi
1c710c3c
DJ
2420
2421fi
5213506e
RW
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2423$as_echo "$ac_cv_target" >&6; }
2424case $ac_cv_target in
2425*-*-*) ;;
2426*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2427esac
1c710c3c 2428target=$ac_cv_target
5213506e
RW
2429ac_save_IFS=$IFS; IFS='-'
2430set x $ac_cv_target
2431shift
2432target_cpu=$1
2433target_vendor=$2
2434shift; shift
2435# Remember, the first character of IFS is used to create $*,
2436# except with old shells:
2437target_os=$*
2438IFS=$ac_save_IFS
2439case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2440
2441
2442# The aliases save the names the user supplied, while $host etc.
2443# will get canonicalized.
2444test -n "$target_alias" &&
2445 test "$program_prefix$program_suffix$program_transform_name" = \
2446 NONENONEs,x,x, &&
2447 program_prefix=${target_alias}-
5213506e 2448
671aa708 2449test "$program_prefix" != NONE &&
5213506e 2450 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2451# Use a double $ so make ignores it.
2452test "$program_suffix" != NONE &&
5213506e
RW
2453 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2454# Double any \ or $.
1c710c3c 2455# By default was `s,x,x', remove it if useless.
5213506e
RW
2456ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2457program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2458
671aa708
NN
2459
2460
775956d0
NN
2461# Get 'install' or 'install-sh' and its variants.
2462# Find a good install program. We prefer a C program (faster),
2463# so one script is as good as another. But avoid the broken or
2464# incompatible versions:
2465# SysV /etc/install, /usr/sbin/install
2466# SunOS /usr/etc/install
2467# IRIX /sbin/install
2468# AIX /bin/install
1c710c3c 2469# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2470# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2471# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2472# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2473# OS/2's system install, which has a completely different semantic
775956d0 2474# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2475# Reject install programs that cannot install multiple files.
5213506e
RW
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2477$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2478if test -z "$INSTALL"; then
5213506e
RW
2479if test "${ac_cv_path_install+set}" = set; then :
2480 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2481else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
5213506e
RW
2487 # Account for people who put trailing slashes in PATH elements.
2488case $as_dir/ in #((
2489 ./ | .// | /[cC]/* | \
1c710c3c 2490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2491 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2492 /usr/ucb/* ) ;;
2493 *)
2494 # OSF1 and SCO ODT 3.0 have their own names for install.
2495 # Don't use installbsd from OSF since it installs stuff as root
2496 # by default.
2497 for ac_prog in ginstall scoinst install; do
2498 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2499 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2500 if test $ac_prog = install &&
1c710c3c 2501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2502 # AIX install. It has an incompatible calling convention.
2503 :
1c710c3c
DJ
2504 elif test $ac_prog = install &&
2505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2506 # program-specific install script used by HP pwplus--don't use.
2507 :
775956d0 2508 else
38d24731
RW
2509 rm -rf conftest.one conftest.two conftest.dir
2510 echo one > conftest.one
2511 echo two > conftest.two
2512 mkdir conftest.dir
2513 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2514 test -s conftest.one && test -s conftest.two &&
2515 test -s conftest.dir/conftest.one &&
2516 test -s conftest.dir/conftest.two
2517 then
2518 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2519 break 3
2520 fi
775956d0
NN
2521 fi
2522 fi
2523 done
1c710c3c
DJ
2524 done
2525 ;;
2526esac
5213506e
RW
2527
2528 done
2529IFS=$as_save_IFS
1c710c3c 2530
38d24731 2531rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2532
2533fi
2534 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2535 INSTALL=$ac_cv_path_install
775956d0 2536 else
38d24731
RW
2537 # As a last resort, use the slow shell script. Don't cache a
2538 # value for INSTALL within a source directory, because that will
775956d0 2539 # break other packages using the cache if that directory is
38d24731 2540 # removed, or if the value is a relative name.
1c710c3c 2541 INSTALL=$ac_install_sh
775956d0
NN
2542 fi
2543fi
5213506e
RW
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2545$as_echo "$INSTALL" >&6; }
775956d0
NN
2546
2547# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2548# It thinks the first close brace ends the variable substitution.
2549test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2550
1c710c3c 2551test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2552
2553test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2554
5213506e
RW
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2556$as_echo_n "checking whether ln works... " >&6; }
2557if test "${acx_cv_prog_LN+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
ad6717df
PB
2559else
2560 rm -f conftestdata_t
2561echo >conftestdata_f
2562if ln conftestdata_f conftestdata_t 2>/dev/null
2563then
2564 acx_cv_prog_LN=ln
2565else
2566 acx_cv_prog_LN=no
2567fi
2568rm -f conftestdata_f conftestdata_t
2569
2570fi
2571if test $acx_cv_prog_LN = no; then
2572 LN="cp"
5213506e
RW
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2574$as_echo "no, using $LN" >&6; }
ad6717df
PB
2575else
2576 LN="$acx_cv_prog_LN"
5213506e
RW
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578$as_echo "yes" >&6; }
ad6717df
PB
2579fi
2580
5213506e
RW
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2582$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2583LN_S=$as_ln_s
2584if test "$LN_S" = "ln -s"; then
5213506e
RW
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2586$as_echo "yes" >&6; }
fb0103e5 2587else
5213506e
RW
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2589$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2590fi
2591
87264276
PB
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2593$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2594if test "${ac_cv_path_SED+set}" = set; then :
2595 $as_echo_n "(cached) " >&6
2596else
2597 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2598 for ac_i in 1 2 3 4 5 6 7; do
2599 ac_script="$ac_script$as_nl$ac_script"
2600 done
2601 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2602 { ac_script=; unset ac_script;}
2603 if test -z "$SED"; then
2604 ac_path_SED_found=false
2605 # Loop through the user's path and test for each of PROGNAME-LIST
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_prog in sed gsed; do
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2614 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2615# Check for GNU ac_path_SED and select it if it is found.
2616 # Check for GNU $ac_path_SED
2617case `"$ac_path_SED" --version 2>&1` in
2618*GNU*)
2619 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2620*)
2621 ac_count=0
2622 $as_echo_n 0123456789 >"conftest.in"
2623 while :
2624 do
2625 cat "conftest.in" "conftest.in" >"conftest.tmp"
2626 mv "conftest.tmp" "conftest.in"
2627 cp "conftest.in" "conftest.nl"
2628 $as_echo '' >> "conftest.nl"
2629 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2631 as_fn_arith $ac_count + 1 && ac_count=$as_val
2632 if test $ac_count -gt ${ac_path_SED_max-0}; then
2633 # Best one so far, save it but keep looking for a better one
2634 ac_cv_path_SED="$ac_path_SED"
2635 ac_path_SED_max=$ac_count
2636 fi
2637 # 10*(2^10) chars as input seems more than enough
2638 test $ac_count -gt 10 && break
2639 done
2640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2641esac
2642
2643 $ac_path_SED_found && break 3
2644 done
2645 done
2646 done
2647IFS=$as_save_IFS
2648 if test -z "$ac_cv_path_SED"; then
2649 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2650 fi
2651else
2652 ac_cv_path_SED=$SED
2653fi
2654
2655fi
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2657$as_echo "$ac_cv_path_SED" >&6; }
2658 SED="$ac_cv_path_SED"
2659 rm -f conftest.sed
2660
2661for ac_prog in gawk mawk nawk awk
2662do
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664set dummy $ac_prog; ac_word=$2
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666$as_echo_n "checking for $ac_word... " >&6; }
2667if test "${ac_cv_prog_AWK+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2669else
2670 if test -n "$AWK"; then
2671 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_AWK="$ac_prog"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684done
2685 done
2686IFS=$as_save_IFS
2687
2688fi
2689fi
2690AWK=$ac_cv_prog_AWK
2691if test -n "$AWK"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2693$as_echo "$AWK" >&6; }
2694else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696$as_echo "no" >&6; }
2697fi
2698
2699
2700 test -n "$AWK" && break
2701done
2702
775956d0 2703
ee6a22df
L
2704srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2705
2706# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2707# a relative path.
2708if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2709 INSTALL="${srcpwd}/install-sh -c"
2710fi
2711
671aa708
NN
2712# Set srcdir to "." if that's what it is.
2713# This is important for multilib support.
2714pwd=`${PWDCMD-pwd}`
671aa708
NN
2715if test "${pwd}" = "${srcpwd}" ; then
2716 srcdir=.
79c06341
JL
2717fi
2718
671aa708 2719topsrcdir=$srcpwd
5d4a5ee6 2720
671aa708 2721extra_host_args=
afabd8e6 2722
671aa708
NN
2723### To add a new directory to the tree, first choose whether it is a target
2724### or a host dependent tool. Then put it into the appropriate list
2725### (library or tools, host or target), doing a dependency sort.
79c06341 2726
1c710c3c 2727# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2728# configdirs, or target_configdirs; see the serialization section below.
79c06341 2729
1c710c3c
DJ
2730# Dependency sorting is only needed when *configuration* must be done in
2731# a particular order. In all cases a dependency should be specified in
671aa708 2732# the Makefile, whether or not it's implicitly specified here.
79c06341 2733
671aa708
NN
2734# Double entries in build_configdirs, configdirs, or target_configdirs may
2735# cause circular dependencies and break everything horribly.
79c06341 2736
23f6b2f9
PB
2737# these library is used by various programs built for the build
2738# environment
2739#
2740build_libs="build-libiberty"
2741
2742# these tools are built for the build environment
85bfb75e 2743build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2744
671aa708
NN
2745# these libraries are used by various programs built for the host environment
2746#
eff02e4f 2747host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
671aa708 2748
671aa708
NN
2749# these tools are built for the host environment
2750# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2751# know that we are building the simulator.
2752# binutils, gas and ld appear in that order because it makes sense to run
2753# "make check" in that particular order.
38e3d868 2754# If --enable-gold is used, "gold" may replace "ld".
85bfb75e 2755host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
671aa708
NN
2756
2757# libgcj represents the runtime libraries only used by gcj.
2758libgcj="target-libffi \
671aa708 2759 target-zlib \
671aa708
NN
2760 target-libjava"
2761
2762# these libraries are built for the target environment, and are built after
2763# the host libraries and the host tools (which may be a cross compiler)
8499116a 2764# Note that libiberty is not a target library.
291f172e 2765target_libraries="target-libgcc \
eff02e4f 2766 target-libbacktrace \
671aa708
NN
2767 target-libgloss \
2768 target-newlib \
6d3b5aea 2769 target-libgomp \
48310492 2770 target-libatomic \
0a35513e 2771 target-libitm \
cb543528 2772 target-libstdc++-v3 \
6de9cd9a 2773 target-libmudflap \
77008252 2774 target-libssp \
1ec601bf 2775 target-libquadmath \
6de9cd9a 2776 target-libgfortran \
7cd0cf9c 2777 target-boehm-gc \
77d187bc 2778 ${libgcj} \
d9cdb878 2779 target-libobjc \
632e2a07
ILT
2780 target-libada \
2781 target-libgo"
671aa708 2782
4dbda6f0
NN
2783# these tools are built using the target libraries, and are intended to
2784# run only in the target environment
671aa708 2785#
4dbda6f0 2786# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2787# list belongs in this list.
671aa708 2788#
85bfb75e 2789target_tools="target-rda"
79c06341 2790
671aa708 2791################################################################################
79c06341 2792
671aa708
NN
2793## All tools belong in one of the four categories, and are assigned above
2794## We assign ${configdirs} this way to remove all embedded newlines. This
2795## is important because configure will choke if they ever get through.
2796## ${configdirs} is directories we build using the host tools.
2797## ${target_configdirs} is directories we build using the target tools.
671aa708 2798configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2799target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2800build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2801
ac9e6043
RW
2802
2803
671aa708 2804################################################################################
79c06341 2805
671aa708 2806srcname="gnu development package"
79c06341 2807
671aa708
NN
2808# This gets set non-empty for some net releases of packages.
2809appdirs=""
79c06341 2810
671aa708
NN
2811# Define is_cross_compiler to save on calls to 'test'.
2812is_cross_compiler=
2813if test x"${host}" = x"${target}" ; then
2814 is_cross_compiler=no
79c06341 2815else
671aa708 2816 is_cross_compiler=yes
1c710c3c 2817fi
79c06341 2818
b4acb5ef 2819# Find the build and target subdir names.
8b87bb96 2820
2e9e6f68
DJ
2821# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2822# have matching libraries, they should use host libraries: Makefile.tpl
2823# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2824# However, they still use the build modules, because the corresponding
2825# host modules (e.g. bison) are only built for the host when bootstrap
2826# finishes. So:
2827# - build_subdir is where we find build modules, and never changes.
2828# - build_libsubdir is where we find build libraries, and can be overridden.
2829
2830# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2831build_subdir="build-${build_noncanonical}"
1c710c3c 2832
5213506e
RW
2833# Check whether --with-build-libsubdir was given.
2834if test "${with_build_libsubdir+set}" = set; then :
2835 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2836else
2837 build_libsubdir="$build_subdir"
5213506e
RW
2838fi
2839
215c351a
PB
2840# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2841if ( test $srcdir = . && test -d gcc ) \
2842 || test -d $srcdir/../host-${host_noncanonical}; then
2843 host_subdir="host-${host_noncanonical}"
2844else
2845 host_subdir=.
2846fi
8b87bb96
NN
2847# No prefix.
2848target_subdir=${target_noncanonical}
1c710c3c 2849
0db770bd
RW
2850# Be sure to cover against remnants of an in-tree build.
2851if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2852 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2853Use a pristine source tree when building in a separate tree" "$LINENO" 5
2854fi
79c06341 2855
671aa708
NN
2856# Skipdirs are removed silently.
2857skipdirs=
2858# Noconfigdirs are removed loudly.
2859noconfigdirs=""
79c06341 2860
671aa708
NN
2861use_gnu_ld=
2862# Make sure we don't let GNU ld be added if we didn't want it.
2863if test x$with_gnu_ld = xno ; then
2864 use_gnu_ld=no
5afab7ad 2865 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2866fi
2867
671aa708
NN
2868use_gnu_as=
2869# Make sure we don't let GNU as be added if we didn't want it.
2870if test x$with_gnu_as = xno ; then
2871 use_gnu_as=no
2872 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2873fi
2874
d7f09764
DN
2875use_included_zlib=
2876# Make sure we don't let ZLIB be added if we didn't want it.
2877if test x$with_system_zlib = xyes ; then
2878 use_included_zlib=no
2879 noconfigdirs="$noconfigdirs zlib"
2880fi
2881
1c710c3c 2882# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2883# it's not even worth trying to configure, much less build, that tool.
79c06341 2884
671aa708
NN
2885case ${with_x} in
2886 yes | "") ;; # the default value for this tree is that X11 is available
2887 no)
b4f96efe 2888 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2889 # We won't be able to build gdbtk without X.
1c710c3c 2890 enable_gdbtk=no
671aa708
NN
2891 ;;
2892 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2893esac
79c06341 2894
1bcce263 2895# Some are only suitable for cross toolchains.
671aa708
NN
2896# Remove these if host=target.
2897cross_only="target-libgloss target-newlib target-opcodes"
2898
2899case $is_cross_compiler in
2900 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2901esac
79c06341 2902
671aa708
NN
2903# If both --with-headers and --with-libs are specified, default to
2904# --without-newlib.
ee6a22df
L
2905if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2906 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2907 if test x"${with_newlib}" = x ; then
2908 with_newlib=no
2909 fi
79c06341
JL
2910fi
2911
671aa708
NN
2912# Recognize --with-newlib/--without-newlib.
2913case ${with_newlib} in
2914 no) skipdirs="${skipdirs} target-newlib" ;;
2915 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2916esac
79c06341 2917
21539e2e
MK
2918# Handle --enable-gold, --enable-ld.
2919# --disable-gold [--enable-ld]
2920# Build only ld. Default option.
9580395f
L
2921# --enable-gold [--enable-ld]
2922# Build both gold and ld. Install gold as "ld.gold", install ld
2923# as "ld.bfd" and "ld".
2924# --enable-gold=default [--enable-ld]
21539e2e
MK
2925# Build both gold and ld. Install gold as "ld.gold" and "ld",
2926# install ld as "ld.bfd".
2927# --enable-gold[=default] --disable-ld
2928# Build only gold, which is then installed as both "ld.gold" and "ld".
2929# --enable-gold --enable-ld=default
9580395f
L
2930# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2931# and ld.bfd).
21539e2e
MK
2932# In other words, ld is default
2933# --enable-gold=default --enable-ld=default
2934# Error.
2935
2936default_ld=
5213506e
RW
2937# Check whether --enable-gold was given.
2938if test "${enable_gold+set}" = set; then :
2939 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2940else
2941 ENABLE_GOLD=no
5213506e
RW
2942fi
2943
21539e2e
MK
2944case "${ENABLE_GOLD}" in
2945 yes|default)
38e3d868
RM
2946 # Check for ELF target.
2947 is_elf=no
2948 case "${target}" in
2949 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2950 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a
JM
2951 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2952 | *-*-solaris2* | *-*-nto*)
38e3d868
RM
2953 case "${target}" in
2954 *-*-linux*aout* | *-*-linux*oldld*)
2955 ;;
2956 *)
2957 is_elf=yes
2958 ;;
2959 esac
2960 esac
2961
2962 if test "$is_elf" = "yes"; then
2963 # Check for target supported by gold.
5afab7ad 2964 case "${target}" in
8750dfc5 2965 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
21539e2e
MK
2966 configdirs="$configdirs gold"
2967 if test x${ENABLE_GOLD} = xdefault; then
2968 default_ld=gold
2969 fi
38e3d868 2970 ENABLE_GOLD=yes
5afab7ad
ILT
2971 ;;
2972 esac
38e3d868
RM
2973 fi
2974 ;;
2975 no)
2976 ;;
2977 *)
2978 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2979 ;;
21539e2e
MK
2980esac
2981
2982# Check whether --enable-ld was given.
2983if test "${enable_ld+set}" = set; then :
2984 enableval=$enable_ld; ENABLE_LD=$enableval
2985else
2986 ENABLE_LD=yes
2987fi
2988
2989
2990case "${ENABLE_LD}" in
2991 default)
9580395f 2992 if test x${default_ld} != x; then
21539e2e
MK
2993 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2994 fi
2995 ;;
2996 yes)
2997 ;;
2998 no)
2999 if test x${ENABLE_GOLD} != xyes; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3001$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3002 fi
3003 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3004 ;;
3005 *)
3006 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3007 ;;
3008esac
5afab7ad 3009
671aa708 3010# Configure extra directories which are host specific
79c06341 3011
671aa708
NN
3012case "${host}" in
3013 *-cygwin*)
3014 configdirs="$configdirs libtermcap" ;;
3015esac
79c06341 3016
4fab7234
HPN
3017# A target can indicate whether a language isn't supported for some reason.
3018# Only spaces may be used in this macro; not newlines or tabs.
3019unsupported_languages=
3020
1c710c3c 3021# Remove more programs from consideration, based on the host or
671aa708
NN
3022# target this usually means that a port of the program doesn't
3023# exist yet.
ec8d6ddc 3024
671aa708 3025case "${host}" in
111eeb6e 3026 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3027 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3028 ;;
671aa708 3029esac
ec8d6ddc 3030
6de9cd9a 3031
87e6d9dc
TB
3032# Check whether --enable-libquadmath was given.
3033if test "${enable_libquadmath+set}" = set; then :
3034 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3035else
3036 ENABLE_LIBQUADMATH=yes
3037fi
3038
3039if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3040 noconfigdirs="$noconfigdirs target-libquadmath"
3041fi
3042
3043
3044# Check whether --enable-libquadmath-support was given.
3045if test "${enable_libquadmath_support+set}" = set; then :
3046 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3047else
3048 ENABLE_LIBQUADMATH_SUPPORT=yes
3049fi
3050
3051enable_libquadmath_support=
3052if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3053 enable_libquadmath_support=no
3054fi
3055
3056
5213506e
RW
3057# Check whether --enable-libada was given.
3058if test "${enable_libada+set}" = set; then :
3059 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3060else
3061 ENABLE_LIBADA=yes
5213506e
RW
3062fi
3063
d9cdb878 3064if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3065 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3066fi
3067
5213506e
RW
3068# Check whether --enable-libssp was given.
3069if test "${enable_libssp+set}" = set; then :
3070 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3071else
3072 ENABLE_LIBSSP=yes
5213506e
RW
3073fi
3074
ef0087a7 3075
671aa708
NN
3076# Save it here so that, even in case of --enable-libgcj, if the Java
3077# front-end isn't enabled, we still get libgcj disabled.
3078libgcj_saved=$libgcj
3079case $enable_libgcj in
3080yes)
3081 # If we reset it here, it won't get added to noconfigdirs in the
3082 # target-specific build rules, so it will be forcibly enabled
3083 # (unless the Java language itself isn't enabled).
3084 libgcj=
3085 ;;
3086no)
3087 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3088 # Don't disable libffi, though, other languages use it.
3089 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3090 # Clear libgcj_saved so that even if java is enabled libffi won't be
3091 # built.
3092 libgcj_saved=
671aa708
NN
3093 ;;
3094esac
ec8d6ddc 3095
a4a2c37d
MK
3096# Check whether --enable-static-libjava was given.
3097if test "${enable_static_libjava+set}" = set; then :
3098 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3099else
3100 ENABLE_STATIC_LIBJAVA=no
3101fi
3102
3103enable_static_libjava=
3104if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3105 enable_static_libjava=yes
3106fi
3107
3108if test x$enable_static_libjava != xyes ; then
3109 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3110fi
3111
6de9cd9a 3112
27079765
AH
3113# Disable libmudflap on some systems.
3114if test x$enable_libmudflap = x ; then
dfcada9a 3115 case "${target}" in
416ac4d4 3116 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3117 # Enable libmudflap by default in GNU and friends.
dfcada9a 3118 ;;
a3e8d8b4
LR
3119 *-*-freebsd*)
3120 # Enable libmudflap by default in FreeBSD.
3121 ;;
dfcada9a
MM
3122 *)
3123 # Disable it by default everywhere else.
3124 noconfigdirs="$noconfigdirs target-libmudflap"
3125 ;;
3126 esac
27079765 3127fi
6de9cd9a 3128
27079765
AH
3129# Disable libgomp on non POSIX hosted systems.
3130if test x$enable_libgomp = x ; then
953ff289
DN
3131 # Enable libgomp by default on hosted POSIX systems.
3132 case "${target}" in
416ac4d4 3133 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3134 ;;
8c6d158a 3135 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3136 ;;
b24513a1 3137 *-*-solaris2* | *-*-hpux11*)
953ff289 3138 ;;
cac90078 3139 *-*-darwin* | *-*-aix*)
953ff289
DN
3140 ;;
3141 *)
3142 noconfigdirs="$noconfigdirs target-libgomp"
3143 ;;
3144 esac
27079765 3145fi
953ff289 3146
48310492
RH
3147# Disable libatomic on unsupported systems.
3148if test -d ${srcdir}/libatomic; then
3149 if test x$enable_libatomic = x; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3151$as_echo_n "checking for libatomic support... " >&6; }
3152 if (srcdir=${srcdir}/libatomic; \
3153 . ${srcdir}/configure.tgt; \
3154 test -n "$UNSUPPORTED")
3155 then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157$as_echo "no" >&6; }
3158 noconfigdirs="$noconfigdirs target-libatomic"
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161$as_echo "yes" >&6; }
3162 fi
3163 fi
3164fi
3165
e948157d
RH
3166# Disable libitm on unsupported systems.
3167if test -d ${srcdir}/libitm; then
3168 if test x$enable_libitm = x; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3170$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3171 if (srcdir=${srcdir}/libitm; \
3172 . ${srcdir}/configure.tgt; \
3173 test -n "$UNSUPPORTED")
3174 then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3176$as_echo "no" >&6; }
e948157d
RH
3177 noconfigdirs="$noconfigdirs target-libitm"
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3180$as_echo "yes" >&6; }
e948157d
RH
3181 fi
3182 fi
0a35513e
AH
3183fi
3184
d91491e5
SE
3185# Disable libquadmath for some systems.
3186case "${target}" in
3187 # libquadmath is unused on AIX and libquadmath build process use of
3188 # LD_LIBRARY_PATH can break AIX bootstrap.
3189 powerpc-*-aix* | rs6000-*-aix*)
3190 noconfigdirs="$noconfigdirs target-libquadmath"
3191 ;;
3192esac
3193
1e9e0e23
JM
3194# Disable libssp for some systems.
3195case "${target}" in
3196 avr-*-*)
b318fb4b 3197 # No hosted I/O support.
1e9e0e23
JM
3198 noconfigdirs="$noconfigdirs target-libssp"
3199 ;;
3200 powerpc-*-aix* | rs6000-*-aix*)
3201 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3202 ;;
3203 rl78-*-*)
7cb62ef1
EB
3204 # libssp uses a misaligned load to trigger a fault, but the RL78
3205 # doesn't fault for those - instead, it gives a build-time error
3206 # for explicit misaligned loads.
85b8555e 3207 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3208 ;;
1e9e0e23
JM
3209esac
3210
a4cf6e46
GJL
3211# Disable libquadmath for some systems.
3212case "${target}" in
3213 avr-*-*)
3214 noconfigdirs="$noconfigdirs target-libquadmath"
3215 ;;
3216esac
3217
1e9e0e23
JM
3218# Disable libstdc++-v3 for some systems.
3219case "${target}" in
3220 *-*-vxworks*)
3221 # VxWorks uses the Dinkumware C++ library.
3222 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3223 ;;
3224 arm*-wince-pe*)
3225 # the C++ libraries don't build on top of CE's C libraries
3226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3227 ;;
3228 avr-*-*)
3229 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3230 ;;
3231esac
3232
3233# Disable Fortran for some systems.
3234case "${target}" in
3235 mmix-*-*)
3236 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3237 unsupported_languages="$unsupported_languages fortran"
3238 ;;
3239esac
3240
80f81134 3241# Disable Java if libffi is not supported.
2909494b 3242case "${target}" in
80f81134
JM
3243 alpha*-*-*)
3244 ;;
3245 arm*-*-*)
3246 ;;
3247 cris-*-*)
3248 ;;
3249 frv-*-*)
3250 ;;
3251 hppa*-*-linux*)
3252 ;;
3253 hppa*-*-hpux*)
3254 ;;
3255 i?86-*-*)
3256 ;;
3257 ia64*-*-*)
3258 ;;
3259 m32r*-*-*)
3260 ;;
3261 m68k-*-*)
3262 ;;
b24513a1 3263 mips*-*-rtems*)
80f81134
JM
3264 ;;
3265 mips*-*-linux*)
3266 ;;
3267 powerpc*-*-linux*)
3268 ;;
3269 powerpc-*-darwin*)
3270 ;;
3271 powerpc-*-aix* | rs6000-*-aix*)
3272 ;;
3273 powerpc-*-freebsd*)
3274 ;;
3275 powerpc64-*-freebsd*)
3276 ;;
3277 powerpc*-*-rtems*)
2909494b 3278 ;;
80f81134
JM
3279 s390-*-* | s390x-*-*)
3280 ;;
3281 sh-*-* | sh[34]*-*-*)
3282 ;;
3283 sh64-*-* | sh5*-*-*)
3284 ;;
3285 sparc*-*-*)
3286 ;;
3287 x86_64-*-*)
3288 ;;
3289 *-*-*)
3290 unsupported_languages="$unsupported_languages java"
3291 ;;
3292esac
3293
3294# Disable Java, libgcj or related libraries for some systems.
3295case "${target}" in
2909494b
JM
3296 powerpc-*-darwin*)
3297 ;;
3298 i[3456789]86-*-darwin*)
3299 ;;
3300 x86_64-*-darwin[912]*)
3301 ;;
3302 *-*-darwin*)
3303 noconfigdirs="$noconfigdirs ${libgcj}"
3304 ;;
2909494b
JM
3305 *-*-netware*)
3306 noconfigdirs="$noconfigdirs ${libgcj}"
3307 ;;
3308 *-*-rtems*)
3309 noconfigdirs="$noconfigdirs ${libgcj}"
3310 ;;
3311 *-*-tpf*)
3312 noconfigdirs="$noconfigdirs ${libgcj}"
3313 ;;
3314 *-*-uclinux*)
3315 noconfigdirs="$noconfigdirs ${libgcj}"
3316 ;;
3317 *-*-vxworks*)
3318 noconfigdirs="$noconfigdirs ${libgcj}"
3319 ;;
2909494b
JM
3320 alpha*-*-*vms*)
3321 noconfigdirs="$noconfigdirs ${libgcj}"
3322 ;;
80f81134 3323 arm-wince-pe)
2909494b
JM
3324 noconfigdirs="$noconfigdirs ${libgcj}"
3325 ;;
2909494b
JM
3326 arm*-*-symbianelf*)
3327 noconfigdirs="$noconfigdirs ${libgcj}"
3328 ;;
2909494b 3329 bfin-*-*)
2909494b
JM
3330 noconfigdirs="$noconfigdirs target-boehm-gc"
3331 ;;
2909494b
JM
3332 cris-*-* | crisv32-*-*)
3333 unsupported_languages="$unsupported_languages java"
3334 case "${target}" in
3335 *-*-linux*)
3336 ;;
3337 *) # See PR46792 regarding target-libffi.
3338 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3339 esac
3340 ;;
2909494b
JM
3341 hppa*64*-*-linux*)
3342 # In this case, it's because the hppa64-linux target is for
3343 # the kernel only at this point and has no libc, and thus no
3344 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3345 unsupported_languages="$unsupported_languages java"
2909494b 3346 ;;
fddf9ee7 3347 hppa*64*-*-hpux*)
2909494b
JM
3348 noconfigdirs="$noconfigdirs ${libgcj}"
3349 ;;
3350 hppa*-hp-hpux11*)
3351 ;;
fddf9ee7 3352 hppa*-*-hpux*)
2909494b
JM
3353 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3354 # build on HP-UX 10.20.
3355 noconfigdirs="$noconfigdirs ${libgcj}"
3356 ;;
2909494b
JM
3357 ia64*-*-*vms*)
3358 noconfigdirs="$noconfigdirs ${libgcj}"
3359 ;;
2909494b
JM
3360 i[3456789]86-w64-mingw*)
3361 noconfigdirs="$noconfigdirs ${libgcj}"
3362 ;;
3363 i[3456789]86-*-mingw*)
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3365 ;;
3366 x86_64-*-mingw*)
3367 noconfigdirs="$noconfigdirs ${libgcj}"
3368 ;;
2909494b
JM
3369 mmix-*-*)
3370 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3371 ;;
3372 powerpc-*-aix*)
3373 # copied from rs6000-*-* entry
3374 noconfigdirs="$noconfigdirs ${libgcj}"
3375 ;;
2909494b
JM
3376 rs6000-*-aix*)
3377 noconfigdirs="$noconfigdirs ${libgcj}"
3378 ;;
2909494b
JM
3379 *-*-lynxos*)
3380 noconfigdirs="$noconfigdirs ${libgcj}"
3381 ;;
2909494b
JM
3382esac
3383
c03353e2
RIL
3384# Default libgloss CPU subdirectory.
3385libgloss_dir="$target_cpu"
6de9cd9a 3386
fbcf0dca
JM
3387case "${target}" in
3388 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3389 libgloss_dir=wince
3390 ;;
3391 arm*-*-*)
3392 libgloss_dir=arm
3393 ;;
3394 cris-*-* | crisv32-*-*)
3395 libgloss_dir=cris
3396 ;;
3397 hppa*-*-*)
3398 libgloss_dir=pa
3399 ;;
3400 i[3456789]86-*-*)
3401 libgloss_dir=i386
3402 ;;
3403 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3404 libgloss_dir=m68hc11
3405 ;;
3406 m68*-*-* | fido-*-*)
3407 libgloss_dir=m68k
3408 ;;
3409 mips*-*-*)
3410 libgloss_dir=mips
3411 ;;
3412 powerpc*-*-*)
3413 libgloss_dir=rs6000
3414 ;;
3415 sparc*-*-*)
3416 libgloss_dir=sparc
3417 ;;
3418esac
3419
6a789d5e 3420# Disable newlib and libgloss for various target OSes.
671aa708 3421case "${target}" in
6a789d5e
JM
3422 alpha*-dec-osf*)
3423 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3424 ;;
3425 i[3456789]86-*-linux*)
3426 # This section makes it possible to build newlib natively on linux.
3427 # If we are using a cross compiler then don't configure newlib.
3428 if test x${is_cross_compiler} != xno ; then
3429 noconfigdirs="$noconfigdirs target-newlib"
3430 fi
3431 noconfigdirs="$noconfigdirs target-libgloss"
3432 # If we are not using a cross compiler, do configure newlib.
3433 # Note however, that newlib will only be configured in this situation
3434 # if the --with-newlib option has been given, because otherwise
3435 # 'target-newlib' will appear in skipdirs.
3436 ;;
3437 i[3456789]86-*-rdos*)
3438 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3439 ;;
3440 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3441 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3442 ;;
3443 sparc-*-sunos4*)
3444 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3445 ;;
3446 *-*-aix*)
3447 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3448 ;;
3449 *-*-beos*)
3450 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3451 ;;
671aa708 3452 *-*-chorusos)
0036370f 3453 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3454 ;;
6a789d5e
JM
3455 *-*-dragonfly*)
3456 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3457 ;;
3458 *-*-freebsd*)
3459 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3460 ;;
3461 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3462 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3463 ;;
3464 *-*-lynxos*)
3465 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3466 ;;
3467 *-*-mingw*)
3468 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3469 ;;
3470 *-*-netbsd*)
3471 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3472 ;;
3473 *-*-netware*)
3474 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3475 ;;
3476 *-*-tpf*)
3477 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3478 ;;
3479 *-*-uclinux*)
3480 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3481 ;;
3482 *-*-vxworks*)
3483 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3484 ;;
3485esac
3486
3487case "${target}" in
3488 *-*-chorusos)
3489 ;;
75eeae1a 3490 powerpc-*-darwin*)
e1514c3f 3491 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3492 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3493 ;;
354ebf88
RW
3494 i[3456789]86-*-darwin*)
3495 noconfigdirs="$noconfigdirs ld gprof"
3496 noconfigdirs="$noconfigdirs sim target-rda"
3497 ;;
3498 x86_64-*-darwin[912]*)
0db3a858
TG
3499 noconfigdirs="$noconfigdirs ld gas gprof"
3500 noconfigdirs="$noconfigdirs sim target-rda"
3501 ;;
42c1cd8a
AT
3502 *-*-darwin*)
3503 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3504 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3505 ;;
8c6d158a 3506 *-*-dragonfly*)
8c6d158a 3507 ;;
c3f84f61 3508 *-*-freebsd*)
6de9cd9a
DN
3509 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3510 && test -f /usr/local/include/gmp.h; then
3511 with_gmp=/usr/local
3512 fi
6de9cd9a 3513 ;;
ef4e7569
US
3514 *-*-kaos*)
3515 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3516 noconfigdirs="$noconfigdirs target-libgloss"
3517 ;;
671aa708 3518 *-*-netbsd*)
671aa708 3519 ;;
61fec9ff 3520 *-*-netware*)
671aa708
NN
3521 ;;
3522 *-*-rtems*)
2909494b 3523 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3524 ;;
a8ba31f2
EC
3525 # The tpf target doesn't support gdb yet.
3526 *-*-tpf*)
6a789d5e 3527 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3528 ;;
5785c0ed 3529 *-*-uclinux*)
6a789d5e 3530 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3531 ;;
671aa708 3532 *-*-vxworks*)
671aa708
NN
3533 ;;
3534 alpha*-dec-osf*)
3535 # ld works, but does not support shared libraries.
671aa708 3536 # gas doesn't generate exception information.
6a789d5e 3537 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3538 ;;
3539 alpha*-*-*vms*)
2909494b 3540 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3541 ;;
671aa708
NN
3542 alpha*-*-*)
3543 # newlib is not 64 bit ready
2909494b 3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3545 ;;
671aa708 3546 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3547 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3548 ;;
3549 arc-*-*)
ebb9f8b0 3550 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3551 ;;
671aa708 3552 arm-*-pe*)
2909494b 3553 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3554 ;;
671aa708 3555 arm-*-riscix*)
0036370f 3556 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3557 ;;
b588ae30
GJL
3558 avr-*-rtems*)
3559 ;;
3560 avr-*-*)
3561 if test x${with_avrlibc} != xno; then
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 fi
3564 ;;
671aa708 3565 c4x-*-* | tic4x-*-*)
0036370f 3566 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3567 ;;
0036370f
JM
3568 tic54x-*-*)
3569 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3570 ;;
671aa708 3571 d10v-*-*)
0036370f 3572 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3573 ;;
3574 d30v-*-*)
0036370f 3575 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3576 ;;
3577 fr30-*-elf*)
2909494b 3578 noconfigdirs="$noconfigdirs gdb"
671aa708 3579 ;;
55f2d967 3580 moxie-*-*)
55f2d967
AG
3581 noconfigdirs="$noconfigdirs gprof"
3582 ;;
671aa708 3583 h8300*-*-*)
2909494b 3584 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3585 ;;
3586 h8500-*-*)
0036370f 3587 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3588 ;;
ee6a22df 3589 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3590 ;;
4569f85e 3591 hppa*64*-*-linux*)
671aa708 3592 ;;
56f8587a 3593 hppa*-*-linux*)
3e732ba0 3594 ;;
671aa708 3595 hppa*-*-*elf* | \
671aa708
NN
3596 hppa*-*-lites* | \
3597 hppa*-*-openbsd* | \
3598 hppa*64*-*-*)
671aa708 3599 ;;
2a332582 3600 hppa*-hp-hpux11*)
1bcce263 3601 noconfigdirs="$noconfigdirs ld"
2a332582 3602 ;;
c03353e2 3603 hppa*-*-pro*)
c03353e2 3604 ;;
671aa708 3605 hppa*-*-*)
2909494b 3606 noconfigdirs="$noconfigdirs ld"
671aa708 3607 ;;
fb87ad5d 3608 i960-*-*)
0036370f 3609 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3610 ;;
671aa708
NN
3611 ia64*-*-elf*)
3612 # No gdb support yet.
1bcce263 3613 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3614 ;;
3615 ia64*-**-hpux*)
5a2931d1 3616 # No ld support yet.
2909494b 3617 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3618 ;;
52535a64 3619 ia64*-*-*vms*)
091fe9ca
TG
3620 # No ld support yet.
3621 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3622 ;;
ef4c4300 3623 i[3456789]86-w64-mingw*)
ef4c4300
KT
3624 ;;
3625 i[3456789]86-*-mingw*)
b91f0a41 3626 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3627 ;;
671aa708
NN
3628 *-*-cygwin*)
3629 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3630 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3631 # always build newlib if winsup directory is present.
b91f0a41 3632 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3633 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3634 elif test -d "$srcdir/newlib"; then
b91f0a41 3635 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3636 fi
1c710c3c 3637 ;;
f2a0e225 3638 i[3456789]86-*-pe)
ebb9f8b0 3639 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3640 ;;
f2a0e225 3641 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3642 # The linker does not yet know about weak symbols in COFF,
3643 # and is not configured to handle mixed ELF and COFF.
0036370f 3644 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3645 ;;
f2a0e225 3646 i[3456789]86-*-sco*)
0036370f 3647 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3648 ;;
fbdd5d87 3649 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3650 noconfigdirs="$noconfigdirs target-libgloss"
3651 ;;
f2a0e225 3652 i[3456789]86-*-sysv4*)
0036370f 3653 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3654 ;;
f2a0e225 3655 i[3456789]86-*-beos*)
6a789d5e 3656 noconfigdirs="$noconfigdirs gdb"
3aa83176 3657 ;;
d1f8db0c 3658 i[3456789]86-*-rdos*)
6a789d5e 3659 noconfigdirs="$noconfigdirs gdb"
c03353e2 3660 ;;
671aa708 3661 mmix-*-*)
2909494b 3662 noconfigdirs="$noconfigdirs gdb"
671aa708 3663 ;;
ab34901f 3664 mt-*-*)
79dd769c
AH
3665 noconfigdirs="$noconfigdirs sim"
3666 ;;
671aa708
NN
3667 powerpc-*-aix*)
3668 # copied from rs6000-*-* entry
6a789d5e 3669 noconfigdirs="$noconfigdirs gprof"
671aa708 3670 ;;
4569f85e 3671 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3672 target_configdirs="$target_configdirs target-winsup"
0036370f 3673 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3674 # always build newlib.
3675 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3676 ;;
3677 # This is temporary until we can link against shared libraries
3678 powerpcle-*-solaris*)
0036370f 3679 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3680 ;;
3681 powerpc-*-beos*)
6a789d5e 3682 noconfigdirs="$noconfigdirs gdb"
671aa708 3683 ;;
671aa708 3684 rs6000-*-lynxos*)
6a789d5e 3685 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3686 ;;
3687 rs6000-*-aix*)
6a789d5e 3688 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3689 ;;
3690 rs6000-*-*)
2909494b 3691 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3692 ;;
3693 m68k-apollo-*)
0036370f 3694 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3695 ;;
ca9fe997 3696 microblaze*)
2909494b 3697 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3698 ;;
d91491e5 3699 mips*-sde-elf* | mips*-mti-elf*)
d9dced13
RS
3700 if test x$with_newlib = xyes; then
3701 noconfigdirs="$noconfigdirs gprof"
3702 fi
d9dced13 3703 ;;
671aa708 3704 mips*-*-irix5*)
0036370f 3705 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3706 ;;
3707 mips*-*-irix6*)
2909494b 3708 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3709 ;;
671aa708 3710 mips*-*-bsd*)
0036370f 3711 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3712 ;;
671aa708 3713 mips*-*-linux*)
671aa708
NN
3714 ;;
3715 mips*-*-*)
2909494b 3716 noconfigdirs="$noconfigdirs gprof"
671aa708 3717 ;;
669f01d8 3718 sh-*-* | sh64-*-*)
ea2002ba
CB
3719 case "${target}" in
3720 sh*-*-elf)
2909494b 3721 ;;
ea2002ba 3722 *)
2909494b 3723 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3724 esac
671aa708 3725 ;;
671aa708 3726 sparc-*-sunos4*)
6a789d5e 3727 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3728 use_gnu_ld=no
3729 fi
3730 ;;
b42f0d7e 3731 tic6x-*-*)
0d557ff8 3732 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3733 ;;
db1d217c
WL
3734 tilepro-*-* | tilegx-*-*)
3735 noconfigdirs="$noconfigdirs sim"
3736 ;;
671aa708 3737 v810-*-*)
0036370f 3738 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3739 ;;
3740 vax-*-*)
2909494b 3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3742 ;;
671aa708 3743esac
79c06341 3744
671aa708
NN
3745# If we aren't building newlib, then don't build libgloss, since libgloss
3746# depends upon some newlib header files.
3747case "${noconfigdirs}" in
3748 *target-libgloss*) ;;
3749 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3750esac
3751
671aa708 3752# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3753host_makefile_frag=/dev/null
3754if test -d ${srcdir}/config ; then
3755case "${host}" in
f2a0e225 3756 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3757 host_makefile_frag="config/mh-djgpp"
3758 ;;
3759 *-cygwin*)
2a79c47f 3760
5213506e
RW
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3762$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3763echo a >cygwin-cat-check
e25a8c82 3764if test `cat cygwin-cat-check` = a ; then
2a79c47f 3765 rm cygwin-cat-check
5213506e
RW
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3767$as_echo "yes" >&6; }
2a79c47f
NC
3768else
3769 rm cygwin-cat-check
5213506e
RW
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771$as_echo "no" >&6; }
3772 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3773 Please either mount the build directory in binary mode or run the following
3774 commands before running any configure script:
3775set -o igncr
3776export SHELLOPTS
5213506e 3777 " "$LINENO" 5
2a79c47f
NC
3778fi
3779
671aa708
NN
3780 host_makefile_frag="config/mh-cygwin"
3781 ;;
c53a18d3 3782 *-mingw*)
1f5a6b84 3783 host_makefile_frag="config/mh-mingw"
95af8923 3784 ;;
efd41714 3785 hppa*-hp-hpux10*)
efd41714 3786 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3787 ;;
111eeb6e 3788 hppa*-hp-hpux*)
efd41714
PB
3789 host_makefile_frag="config/mh-pa"
3790 ;;
3791 hppa*-*)
3792 host_makefile_frag="config/mh-pa"
3793 ;;
d8ed14ce
IS
3794 *-*-darwin*)
3795 host_makefile_frag="config/mh-darwin"
be8fff81 3796 ;;
d19bca38
PB
3797 powerpc-*-aix*)
3798 host_makefile_frag="config/mh-ppc-aix"
3799 ;;
3800 rs6000-*-aix*)
3801 host_makefile_frag="config/mh-ppc-aix"
3802 ;;
671aa708
NN
3803esac
3804fi
3805
55ffb5ed 3806if test "${build}" != "${host}" ; then
0999159b
PB
3807 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3808 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3809 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3810 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3811 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3812 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3813 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3814 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3815 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3816 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3817 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3818 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3819 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3820else
3821 AR_FOR_BUILD="\$(AR)"
3822 AS_FOR_BUILD="\$(AS)"
fb0103e5 3823 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3824 CXX_FOR_BUILD="\$(CXX)"
3825 GCJ_FOR_BUILD="\$(GCJ)"
3826 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3827 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3828 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3829 LD_FOR_BUILD="\$(LD)"
3830 NM_FOR_BUILD="\$(NM)"
3831 RANLIB_FOR_BUILD="\$(RANLIB)"
3832 WINDRES_FOR_BUILD="\$(WINDRES)"
3833 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3834fi
3835
3836ac_ext=c
1c710c3c
DJ
3837ac_cpp='$CPP $CPPFLAGS'
3838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3843set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845$as_echo_n "checking for $ac_word... " >&6; }
3846if test "${ac_cv_prog_CC+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3848else
3849 if test -n "$CC"; then
3850 ac_cv_prog_CC="$CC" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
5213506e
RW
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3861 break 2
3862 fi
3863done
5213506e
RW
3864 done
3865IFS=$as_save_IFS
1c710c3c
DJ
3866
3867fi
3868fi
3869CC=$ac_cv_prog_CC
3870if test -n "$CC"; then
5213506e
RW
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3872$as_echo "$CC" >&6; }
1c710c3c 3873else
5213506e
RW
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875$as_echo "no" >&6; }
1c710c3c
DJ
3876fi
3877
5213506e 3878
1c710c3c
DJ
3879fi
3880if test -z "$ac_cv_prog_CC"; then
3881 ac_ct_CC=$CC
fb0103e5
RG
3882 # Extract the first word of "gcc", so it can be a program name with args.
3883set dummy gcc; ac_word=$2
5213506e
RW
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885$as_echo_n "checking for $ac_word... " >&6; }
3886if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3888else
3889 if test -n "$ac_ct_CC"; then
3890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3891else
3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
5213506e
RW
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3899 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3901 break 2
3902 fi
3903done
5213506e
RW
3904 done
3905IFS=$as_save_IFS
1c710c3c
DJ
3906
3907fi
3908fi
3909ac_ct_CC=$ac_cv_prog_ac_ct_CC
3910if test -n "$ac_ct_CC"; then
5213506e
RW
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3912$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3913else
5213506e
RW
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915$as_echo "no" >&6; }
1c710c3c
DJ
3916fi
3917
5213506e
RW
3918 if test "x$ac_ct_CC" = x; then
3919 CC=""
3920 else
3921 case $cross_compiling:$ac_tool_warned in
3922yes:)
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925ac_tool_warned=yes ;;
3926esac
3927 CC=$ac_ct_CC
3928 fi
1c710c3c
DJ
3929else
3930 CC="$ac_cv_prog_CC"
3931fi
3932
3933if test -z "$CC"; then
5213506e
RW
3934 if test -n "$ac_tool_prefix"; then
3935 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3936set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938$as_echo_n "checking for $ac_word... " >&6; }
3939if test "${ac_cv_prog_CC+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3941else
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC="$CC" # Let the user override the test.
3944else
1c710c3c
DJ
3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH
3947do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
5213506e
RW
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3952 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3954 break 2
3955 fi
3956done
5213506e
RW
3957 done
3958IFS=$as_save_IFS
1c710c3c 3959
0b0dc272 3960fi
0b0dc272 3961fi
1c710c3c 3962CC=$ac_cv_prog_CC
af71363e 3963if test -n "$CC"; then
5213506e
RW
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965$as_echo "$CC" >&6; }
2aeb72e9 3966else
5213506e
RW
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968$as_echo "no" >&6; }
2aeb72e9
DD
3969fi
3970
2aeb72e9 3971
5213506e 3972 fi
1c710c3c 3973fi
55ffb5ed
NN
3974if test -z "$CC"; then
3975 # Extract the first word of "cc", so it can be a program name with args.
3976set dummy cc; ac_word=$2
5213506e
RW
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978$as_echo_n "checking for $ac_word... " >&6; }
3979if test "${ac_cv_prog_CC+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3981else
3982 if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3984else
0b0dc272 3985 ac_prog_rejected=no
1c710c3c
DJ
3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH
3988do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
5213506e
RW
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3994 ac_prog_rejected=yes
3995 continue
3996 fi
3997 ac_cv_prog_CC="cc"
5213506e 3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3999 break 2
4000 fi
4001done
5213506e
RW
4002 done
4003IFS=$as_save_IFS
1c710c3c 4004
55ffb5ed
NN
4005if test $ac_prog_rejected = yes; then
4006 # We found a bogon in the path, so make sure we never use it.
4007 set dummy $ac_cv_prog_CC
4008 shift
1c710c3c 4009 if test $# != 0; then
55ffb5ed
NN
4010 # We chose a different compiler from the bogus one.
4011 # However, it has the same basename, so the bogon will be chosen
4012 # first if we set CC to just the basename; use the full file name.
4013 shift
1c710c3c 4014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4015 fi
4016fi
4017fi
4018fi
1c710c3c 4019CC=$ac_cv_prog_CC
55ffb5ed 4020if test -n "$CC"; then
5213506e
RW
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4022$as_echo "$CC" >&6; }
55ffb5ed 4023else
5213506e
RW
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025$as_echo "no" >&6; }
55ffb5ed
NN
4026fi
4027
5213506e 4028
1c710c3c
DJ
4029fi
4030if test -z "$CC"; then
4031 if test -n "$ac_tool_prefix"; then
5213506e 4032 for ac_prog in cl.exe
1c710c3c
DJ
4033 do
4034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4035set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037$as_echo_n "checking for $ac_word... " >&6; }
4038if test "${ac_cv_prog_CC+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4040else
4041 if test -n "$CC"; then
4042 ac_cv_prog_CC="$CC" # Let the user override the test.
4043else
1c710c3c
DJ
4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH
4046do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
5213506e
RW
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4053 break 2
4054 fi
4055done
5213506e
RW
4056 done
4057IFS=$as_save_IFS
1c710c3c 4058
55ffb5ed
NN
4059fi
4060fi
1c710c3c 4061CC=$ac_cv_prog_CC
55ffb5ed 4062if test -n "$CC"; then
5213506e
RW
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4064$as_echo "$CC" >&6; }
a4b9e93e 4065else
5213506e
RW
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067$as_echo "no" >&6; }
fb0103e5 4068fi
af71363e 4069
5213506e 4070
1c710c3c
DJ
4071 test -n "$CC" && break
4072 done
af71363e 4073fi
1c710c3c
DJ
4074if test -z "$CC"; then
4075 ac_ct_CC=$CC
5213506e 4076 for ac_prog in cl.exe
1c710c3c
DJ
4077do
4078 # Extract the first word of "$ac_prog", so it can be a program name with args.
4079set dummy $ac_prog; ac_word=$2
5213506e
RW
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081$as_echo_n "checking for $ac_word... " >&6; }
4082if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
0b0dc272 4084else
1c710c3c
DJ
4085 if test -n "$ac_ct_CC"; then
4086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4087else
1c710c3c
DJ
4088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089for as_dir in $PATH
4090do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
5213506e
RW
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4095 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4097 break 2
4098 fi
4099done
5213506e
RW
4100 done
4101IFS=$as_save_IFS
1c710c3c 4102
af71363e
AS
4103fi
4104fi
1c710c3c
DJ
4105ac_ct_CC=$ac_cv_prog_ac_ct_CC
4106if test -n "$ac_ct_CC"; then
5213506e
RW
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4108$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4109else
5213506e
RW
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111$as_echo "no" >&6; }
af71363e 4112fi
0b0dc272 4113
5213506e 4114
1c710c3c
DJ
4115 test -n "$ac_ct_CC" && break
4116done
4117
5213506e
RW
4118 if test "x$ac_ct_CC" = x; then
4119 CC=""
4120 else
4121 case $cross_compiling:$ac_tool_warned in
4122yes:)
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4125ac_tool_warned=yes ;;
4126esac
4127 CC=$ac_ct_CC
4128 fi
1c710c3c
DJ
4129fi
4130
4131fi
4132
4133
5213506e
RW
4134test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4136as_fn_error "no acceptable C compiler found in \$PATH
4137See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4138
4139# Provide some information about the compiler.
5213506e
RW
4140$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4141set X $ac_compile
4142ac_compiler=$2
4143for ac_option in --version -v -V -qversion; do
4144 { { ac_try="$ac_compiler $ac_option >&5"
4145case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148esac
4149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150$as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4152 ac_status=$?
5213506e
RW
4153 if test -s conftest.err; then
4154 sed '10a\
4155... rest of stderr output deleted ...
4156 10q' conftest.err >conftest.er1
4157 cat conftest.er1 >&5
4158 rm -f conftest.er1 conftest.err
4159 fi
4160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }
4162done
1c710c3c 4163
5213506e 4164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4165/* end confdefs.h. */
4166
4167int
4168main ()
4169{
4170
4171 ;
4172 return 0;
4173}
4174_ACEOF
4175ac_clean_files_save=$ac_clean_files
5213506e 4176ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4177# Try to create an executable without -o first, disregard a.out.
4178# It will help us diagnose broken compilers, and finding out an intuition
4179# of exeext.
5213506e
RW
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4181$as_echo_n "checking for C compiler default output file name... " >&6; }
4182ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4183
4184# The possible output files:
4185ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4186
4187ac_rmfiles=
4188for ac_file in $ac_files
4189do
4190 case $ac_file in
4191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4193 esac
4194done
4195rm -f $ac_rmfiles
4196
4197if { { ac_try="$ac_link_default"
4198case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201esac
4202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203$as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_link_default") 2>&5
1c710c3c 4205 ac_status=$?
5213506e
RW
4206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207 test $ac_status = 0; }; then :
4208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4209# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4210# in a Makefile. We should not override ac_cv_exeext if it was cached,
4211# so that the user can short-circuit this test for compilers unknown to
4212# Autoconf.
4213for ac_file in $ac_files ''
1c710c3c
DJ
4214do
4215 test -f "$ac_file" || continue
4216 case $ac_file in
5213506e 4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4218 ;;
4219 [ab].out )
4220 # We found the default executable, but exeext='' is most
4221 # certainly right.
4222 break;;
4223 *.* )
5213506e
RW
4224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4225 then :; else
4226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4227 fi
4228 # We set ac_cv_exeext here because the later test for it is not
4229 # safe: cross compilers may not add the suffix if given an `-o'
4230 # argument, so we may need to know it at that point already.
4231 # Even if this section looks crufty: it has the advantage of
4232 # actually working.
1c710c3c
DJ
4233 break;;
4234 * )
4235 break;;
4236 esac
4237done
5213506e
RW
4238test "$ac_cv_exeext" = no && ac_cv_exeext=
4239
1c710c3c 4240else
5213506e
RW
4241 ac_file=''
4242fi
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4244$as_echo "$ac_file" >&6; }
4245if test -z "$ac_file"; then :
4246 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
5213506e
RW
4249{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4251{ as_fn_set_status 77
4252as_fn_error "C compiler cannot create executables
4253See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4254fi
1c710c3c 4255ac_exeext=$ac_cv_exeext
1c710c3c 4256
5213506e 4257# Check that the compiler produces executables we can run. If not, either
1c710c3c 4258# the compiler is broken, or we cross compile.
5213506e
RW
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4260$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4261# If not cross compiling, check that we can run a simple program.
4262if test "$cross_compiling" != yes; then
4263 if { ac_try='./$ac_file'
5213506e
RW
4264 { { case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269$as_echo "$ac_try_echo"; } >&5
4270 (eval "$ac_try") 2>&5
1c710c3c 4271 ac_status=$?
5213506e
RW
4272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; }; }; then
1c710c3c
DJ
4274 cross_compiling=no
4275 else
4276 if test "$cross_compiling" = maybe; then
4277 cross_compiling=yes
4278 else
5213506e
RW
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281as_fn_error "cannot run C compiled programs.
1c710c3c 4282If you meant to cross compile, use \`--host'.
5213506e 4283See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4284 fi
4285 fi
4286fi
5213506e
RW
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4288$as_echo "yes" >&6; }
1c710c3c 4289
5213506e 4290rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4291ac_clean_files=$ac_clean_files_save
5213506e 4292# Check that the compiler produces executables we can run. If not, either
1c710c3c 4293# the compiler is broken, or we cross compile.
5213506e
RW
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4295$as_echo_n "checking whether we are cross compiling... " >&6; }
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4297$as_echo "$cross_compiling" >&6; }
4298
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4300$as_echo_n "checking for suffix of executables... " >&6; }
4301if { { ac_try="$ac_link"
4302case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305esac
4306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307$as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_link") 2>&5
1c710c3c 4309 ac_status=$?
5213506e
RW
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }; then :
1c710c3c
DJ
4312 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4313# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4314# work properly (i.e., refer to `conftest.exe'), while it won't with
4315# `rm'.
4316for ac_file in conftest.exe conftest conftest.*; do
4317 test -f "$ac_file" || continue
4318 case $ac_file in
5213506e 4319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4321 break;;
4322 * ) break;;
4323 esac
4324done
af71363e 4325else
5213506e
RW
4326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328as_fn_error "cannot compute suffix of executables: cannot compile and link
4329See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4330fi
1c710c3c 4331rm -f conftest$ac_cv_exeext
5213506e
RW
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4333$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4334
4335rm -f conftest.$ac_ext
4336EXEEXT=$ac_cv_exeext
4337ac_exeext=$EXEEXT
5213506e
RW
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4339$as_echo_n "checking for suffix of object files... " >&6; }
4340if test "${ac_cv_objext+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
1c710c3c 4342else
5213506e 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4344/* end confdefs.h. */
4345
4346int
4347main ()
4348{
4349
4350 ;
4351 return 0;
4352}
4353_ACEOF
4354rm -f conftest.o conftest.obj
5213506e
RW
4355if { { ac_try="$ac_compile"
4356case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361$as_echo "$ac_try_echo"; } >&5
4362 (eval "$ac_compile") 2>&5
1c710c3c 4363 ac_status=$?
5213506e
RW
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }; then :
4366 for ac_file in conftest.o conftest.obj conftest.*; do
4367 test -f "$ac_file" || continue;
1c710c3c 4368 case $ac_file in
5213506e 4369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4370 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4371 break;;
4372 esac
4373done
4374else
5213506e 4375 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4376sed 's/^/| /' conftest.$ac_ext >&5
4377
5213506e
RW
4378{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4380as_fn_error "cannot compute suffix of object files: cannot compile
4381See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4382fi
1c710c3c
DJ
4383rm -f conftest.$ac_cv_objext conftest.$ac_ext
4384fi
5213506e
RW
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4386$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4387OBJEXT=$ac_cv_objext
4388ac_objext=$OBJEXT
5213506e
RW
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4390$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4391if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
1c710c3c 4393else
5213506e 4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4395/* end confdefs.h. */
4396
4397int
4398main ()
4399{
4400#ifndef __GNUC__
4401 choke me
4402#endif
4403
4404 ;
4405 return 0;
4406}
4407_ACEOF
5213506e 4408if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4409 ac_compiler_gnu=yes
4410else
5213506e 4411 ac_compiler_gnu=no
1c710c3c 4412fi
5213506e 4413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4414ac_cv_c_compiler_gnu=$ac_compiler_gnu
4415
4416fi
5213506e
RW
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4418$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4419if test $ac_compiler_gnu = yes; then
4420 GCC=yes
4421else
4422 GCC=
4423fi
1c710c3c
DJ
4424ac_test_CFLAGS=${CFLAGS+set}
4425ac_save_CFLAGS=$CFLAGS
5213506e
RW
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4427$as_echo_n "checking whether $CC accepts -g... " >&6; }
4428if test "${ac_cv_prog_cc_g+set}" = set; then :
4429 $as_echo_n "(cached) " >&6
4430else
4431 ac_save_c_werror_flag=$ac_c_werror_flag
4432 ac_c_werror_flag=yes
4433 ac_cv_prog_cc_g=no
4434 CFLAGS="-g"
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4436/* end confdefs.h. */
4437
4438int
4439main ()
4440{
4441
4442 ;
4443 return 0;
4444}
4445_ACEOF
5213506e 4446if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4447 ac_cv_prog_cc_g=yes
4448else
5213506e
RW
4449 CFLAGS=""
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h. */
4452
4453int
4454main ()
4455{
4456
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461if ac_fn_c_try_compile "$LINENO"; then :
4462
4463else
4464 ac_c_werror_flag=$ac_save_c_werror_flag
4465 CFLAGS="-g"
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h. */
af71363e 4468
5213506e
RW
4469int
4470main ()
4471{
4472
4473 ;
4474 return 0;
4475}
4476_ACEOF
4477if ac_fn_c_try_compile "$LINENO"; then :
4478 ac_cv_prog_cc_g=yes
4479fi
4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4481fi
5213506e 4482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4483fi
5213506e
RW
4484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 ac_c_werror_flag=$ac_save_c_werror_flag
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4488$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4489if test "$ac_test_CFLAGS" = set; then
1c710c3c 4490 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4491elif test $ac_cv_prog_cc_g = yes; then
4492 if test "$GCC" = yes; then
4493 CFLAGS="-g -O2"
4494 else
4495 CFLAGS="-g"
4496 fi
4497else
4498 if test "$GCC" = yes; then
4499 CFLAGS="-O2"
4500 else
4501 CFLAGS=
4502 fi
4503fi
5213506e
RW
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4505$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4506if test "${ac_cv_prog_cc_c89+set}" = set; then :
4507 $as_echo_n "(cached) " >&6
1c710c3c 4508else
5213506e 4509 ac_cv_prog_cc_c89=no
1c710c3c 4510ac_save_CC=$CC
5213506e 4511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4512/* end confdefs.h. */
4513#include <stdarg.h>
4514#include <stdio.h>
4515#include <sys/types.h>
4516#include <sys/stat.h>
4517/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4518struct buf { int x; };
4519FILE * (*rcsopen) (struct buf *, struct stat *, int);
4520static char *e (p, i)
4521 char **p;
4522 int i;
4523{
4524 return p[i];
4525}
4526static char *f (char * (*g) (char **, int), char **p, ...)
4527{
4528 char *s;
4529 va_list v;
4530 va_start (v,p);
4531 s = g (p, va_arg (v,int));
4532 va_end (v);
4533 return s;
4534}
4535
4536/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4537 function prototypes and stuff, but not '\xHH' hex character constants.
4538 These don't provoke an error unfortunately, instead are silently treated
5213506e 4539 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4541 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4542 that's true only with -std. */
1c710c3c
DJ
4543int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4544
5213506e
RW
4545/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4546 inside strings and character constants. */
4547#define FOO(x) 'x'
4548int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4549
1c710c3c
DJ
4550int test (int i, double x);
4551struct s1 {int (*f) (int a);};
4552struct s2 {int (*f) (double a);};
4553int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4554int argc;
4555char **argv;
4556int
4557main ()
4558{
4559return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4560 ;
4561 return 0;
4562}
4563_ACEOF
5213506e
RW
4564for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4565 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4566do
4567 CC="$ac_save_CC $ac_arg"
5213506e
RW
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4570fi
5213506e
RW
4571rm -f core conftest.err conftest.$ac_objext
4572 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4573done
5213506e 4574rm -f conftest.$ac_ext
1c710c3c
DJ
4575CC=$ac_save_CC
4576
4577fi
5213506e
RW
4578# AC_CACHE_VAL
4579case "x$ac_cv_prog_cc_c89" in
4580 x)
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4582$as_echo "none needed" >&6; } ;;
4583 xno)
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4585$as_echo "unsupported" >&6; } ;;
1c710c3c 4586 *)
5213506e
RW
4587 CC="$CC $ac_cv_prog_cc_c89"
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4589$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4590esac
5213506e 4591if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4592
2aeb72e9
DD
4593fi
4594
2aeb72e9
DD
4595ac_ext=c
4596ac_cpp='$CPP $CPPFLAGS'
4597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600
5213506e 4601ac_ext=cpp
2aeb72e9
DD
4602ac_cpp='$CXXCPP $CPPFLAGS'
4603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4606if test -z "$CXX"; then
4607 if test -n "$CCC"; then
4608 CXX=$CCC
4609 else
4610 if test -n "$ac_tool_prefix"; then
4611 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4612 do
4613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616$as_echo_n "checking for $ac_word... " >&6; }
4617if test "${ac_cv_prog_CXX+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4619else
4620 if test -n "$CXX"; then
4621 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4622else
4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
5213506e
RW
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4630 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4632 break 2
4633 fi
4634done
5213506e
RW
4635 done
4636IFS=$as_save_IFS
55ffb5ed 4637
c3a86da9
DJ
4638fi
4639fi
4640CXX=$ac_cv_prog_CXX
4641if test -n "$CXX"; then
5213506e
RW
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4643$as_echo "$CXX" >&6; }
c3a86da9 4644else
5213506e
RW
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646$as_echo "no" >&6; }
c3a86da9
DJ
4647fi
4648
5213506e 4649
c3a86da9
DJ
4650 test -n "$CXX" && break
4651 done
4652fi
4653if test -z "$CXX"; then
4654 ac_ct_CXX=$CXX
5213506e 4655 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4656do
4657 # Extract the first word of "$ac_prog", so it can be a program name with args.
4658set dummy $ac_prog; ac_word=$2
5213506e
RW
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660$as_echo_n "checking for $ac_word... " >&6; }
4661if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4663else
4664 if test -n "$ac_ct_CXX"; then
4665 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4666else
4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
5213506e
RW
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4674 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4676 break 2
4677 fi
4678done
5213506e
RW
4679 done
4680IFS=$as_save_IFS
c3a86da9
DJ
4681
4682fi
4683fi
4684ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4685if test -n "$ac_ct_CXX"; then
5213506e
RW
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4687$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4688else
5213506e
RW
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690$as_echo "no" >&6; }
c3a86da9
DJ
4691fi
4692
5213506e 4693
c3a86da9
DJ
4694 test -n "$ac_ct_CXX" && break
4695done
c3a86da9 4696
5213506e
RW
4697 if test "x$ac_ct_CXX" = x; then
4698 CXX="g++"
4699 else
4700 case $cross_compiling:$ac_tool_warned in
4701yes:)
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704ac_tool_warned=yes ;;
4705esac
4706 CXX=$ac_ct_CXX
4707 fi
c3a86da9
DJ
4708fi
4709
5213506e
RW
4710 fi
4711fi
c3a86da9 4712# Provide some information about the compiler.
5213506e
RW
4713$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4714set X $ac_compile
4715ac_compiler=$2
4716for ac_option in --version -v -V -qversion; do
4717 { { ac_try="$ac_compiler $ac_option >&5"
4718case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721esac
4722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723$as_echo "$ac_try_echo"; } >&5
4724 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4725 ac_status=$?
5213506e
RW
4726 if test -s conftest.err; then
4727 sed '10a\
4728... rest of stderr output deleted ...
4729 10q' conftest.err >conftest.er1
4730 cat conftest.er1 >&5
4731 rm -f conftest.er1 conftest.err
4732 fi
4733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4734 test $ac_status = 0; }
4735done
c3a86da9 4736
5213506e
RW
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4738$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4739if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
c3a86da9 4741else
5213506e 4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4743/* end confdefs.h. */
4744
4745int
4746main ()
4747{
4748#ifndef __GNUC__
4749 choke me
4750#endif
4751
4752 ;
4753 return 0;
4754}
4755_ACEOF
5213506e 4756if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4757 ac_compiler_gnu=yes
4758else
5213506e 4759 ac_compiler_gnu=no
c3a86da9 4760fi
5213506e 4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4762ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4763
4764fi
5213506e
RW
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4766$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4767if test $ac_compiler_gnu = yes; then
4768 GXX=yes
4769else
4770 GXX=
4771fi
c3a86da9
DJ
4772ac_test_CXXFLAGS=${CXXFLAGS+set}
4773ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4775$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4776if test "${ac_cv_prog_cxx_g+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778else
4779 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4780 ac_cxx_werror_flag=yes
4781 ac_cv_prog_cxx_g=no
4782 CXXFLAGS="-g"
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4784/* end confdefs.h. */
4785
4786int
4787main ()
4788{
4789
4790 ;
4791 return 0;
4792}
4793_ACEOF
5213506e 4794if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4795 ac_cv_prog_cxx_g=yes
4796else
5213506e
RW
4797 CXXFLAGS=""
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4799/* end confdefs.h. */
5213506e 4800
c3a86da9
DJ
4801int
4802main ()
4803{
5213506e 4804
c3a86da9
DJ
4805 ;
4806 return 0;
4807}
4808_ACEOF
5213506e 4809if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4810
5213506e
RW
4811else
4812 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4813 CXXFLAGS="-g"
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4815/* end confdefs.h. */
5213506e 4816
c3a86da9
DJ
4817int
4818main ()
4819{
5213506e 4820
c3a86da9
DJ
4821 ;
4822 return 0;
4823}
4824_ACEOF
5213506e
RW
4825if ac_fn_cxx_try_compile "$LINENO"; then :
4826 ac_cv_prog_cxx_g=yes
11a67599 4827fi
5213506e
RW
4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829fi
4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831fi
4832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4834fi
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4836$as_echo "$ac_cv_prog_cxx_g" >&6; }
4837if test "$ac_test_CXXFLAGS" = set; then
4838 CXXFLAGS=$ac_save_CXXFLAGS
4839elif test $ac_cv_prog_cxx_g = yes; then
4840 if test "$GXX" = yes; then
4841 CXXFLAGS="-g -O2"
4842 else
4843 CXXFLAGS="-g"
4844 fi
4845else
4846 if test "$GXX" = yes; then
4847 CXXFLAGS="-O2"
4848 else
4849 CXXFLAGS=
4850 fi
c3a86da9 4851fi
c3a86da9
DJ
4852ac_ext=c
4853ac_cpp='$CPP $CPPFLAGS'
4854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857
4858
4859# We must set the default linker to the linker used by gcc for the correct
4860# operation of libtool. If LD is not defined and we are using gcc, try to
4861# set the LD default to the ld used by gcc.
4862if test -z "$LD"; then
4863 if test "$GCC" = yes; then
4864 case $build in
4865 *-*-mingw*)
4866 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4867 *)
4868 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4869 esac
4870 case $gcc_prog_ld in
4871 # Accept absolute paths.
4872 [\\/]* | [A-Za-z]:[\\/]*)
4873 LD="$gcc_prog_ld" ;;
4874 esac
4875 fi
23f6b2f9
PB
4876fi
4877
0b21f5d3
EB
4878# Check whether -static-libstdc++ -static-libgcc is supported.
4879have_static_libs=no
4880if test "$GCC" = yes; then
4881 saved_LDFLAGS="$LDFLAGS"
4882
4883 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4885$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4886 ac_ext=cpp
4887ac_cpp='$CXXCPP $CPPFLAGS'
4888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4891
4892
4893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894/* end confdefs.h. */
4895int main() {}
4896_ACEOF
4897if ac_fn_cxx_try_link "$LINENO"; then :
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4899$as_echo "yes" >&6; }; have_static_libs=yes
4900else
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902$as_echo "no" >&6; }
4903fi
4904rm -f core conftest.err conftest.$ac_objext \
4905 conftest$ac_exeext conftest.$ac_ext
4906 ac_ext=c
4907ac_cpp='$CPP $CPPFLAGS'
4908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911
4912
4913 LDFLAGS="$saved_LDFLAGS"
4914fi
4915
23f6b2f9
PB
4916
4917
55ffb5ed 4918
1c710c3c
DJ
4919if test -n "$ac_tool_prefix"; then
4920 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4921set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923$as_echo_n "checking for $ac_word... " >&6; }
4924if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4926else
4927 if test -n "$GNATBIND"; then
4928 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4929else
1c710c3c
DJ
4930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931for as_dir in $PATH
4932do
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
5213506e
RW
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4937 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4939 break 2
4940 fi
4941done
5213506e
RW
4942 done
4943IFS=$as_save_IFS
1c710c3c 4944
55ffb5ed
NN
4945fi
4946fi
1c710c3c 4947GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4948if test -n "$GNATBIND"; then
5213506e
RW
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4950$as_echo "$GNATBIND" >&6; }
55ffb5ed 4951else
5213506e
RW
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953$as_echo "no" >&6; }
55ffb5ed
NN
4954fi
4955
5213506e 4956
1c710c3c 4957fi
55ffb5ed 4958if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4959 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4960 # Extract the first word of "gnatbind", so it can be a program name with args.
4961set dummy gnatbind; ac_word=$2
5213506e
RW
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963$as_echo_n "checking for $ac_word... " >&6; }
4964if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
55ffb5ed 4966else
1c710c3c
DJ
4967 if test -n "$ac_ct_GNATBIND"; then
4968 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4969else
1c710c3c
DJ
4970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971for as_dir in $PATH
4972do
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
5213506e
RW
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4977 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4979 break 2
4980 fi
4981done
5213506e
RW
4982 done
4983IFS=$as_save_IFS
1c710c3c 4984
55ffb5ed
NN
4985fi
4986fi
1c710c3c
DJ
4987ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4988if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4990$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4991else
5213506e
RW
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993$as_echo "no" >&6; }
55ffb5ed
NN
4994fi
4995
5213506e
RW
4996 if test "x$ac_ct_GNATBIND" = x; then
4997 GNATBIND="no"
4998 else
4999 case $cross_compiling:$ac_tool_warned in
5000yes:)
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5003ac_tool_warned=yes ;;
5004esac
5005 GNATBIND=$ac_ct_GNATBIND
5006 fi
55ffb5ed 5007else
1c710c3c 5008 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5009fi
5010
1c710c3c
DJ
5011if test -n "$ac_tool_prefix"; then
5012 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5013set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015$as_echo_n "checking for $ac_word... " >&6; }
5016if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
5305be7e
RG
5018else
5019 if test -n "$GNATMAKE"; then
5020 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5021else
1c710c3c
DJ
5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5213506e
RW
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5029 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5031 break 2
5032 fi
5033done
5213506e
RW
5034 done
5035IFS=$as_save_IFS
1c710c3c 5036
5305be7e
RG
5037fi
5038fi
1c710c3c 5039GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5040if test -n "$GNATMAKE"; then
5213506e
RW
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5042$as_echo "$GNATMAKE" >&6; }
5305be7e 5043else
5213506e
RW
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045$as_echo "no" >&6; }
5305be7e
RG
5046fi
5047
5213506e 5048
1c710c3c 5049fi
5305be7e 5050if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5051 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5052 # Extract the first word of "gnatmake", so it can be a program name with args.
5053set dummy gnatmake; ac_word=$2
5213506e
RW
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055$as_echo_n "checking for $ac_word... " >&6; }
5056if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5305be7e 5058else
1c710c3c
DJ
5059 if test -n "$ac_ct_GNATMAKE"; then
5060 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5061else
1c710c3c
DJ
5062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063for as_dir in $PATH
5064do
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5213506e
RW
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5069 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5071 break 2
5072 fi
5073done
5213506e
RW
5074 done
5075IFS=$as_save_IFS
1c710c3c 5076
5305be7e
RG
5077fi
5078fi
1c710c3c
DJ
5079ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5080if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5082$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5083else
5213506e
RW
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085$as_echo "no" >&6; }
5305be7e
RG
5086fi
5087
5213506e
RW
5088 if test "x$ac_ct_GNATMAKE" = x; then
5089 GNATMAKE="no"
5090 else
5091 case $cross_compiling:$ac_tool_warned in
5092yes:)
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5095ac_tool_warned=yes ;;
5096esac
5097 GNATMAKE=$ac_ct_GNATMAKE
5098 fi
5305be7e 5099else
1c710c3c 5100 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5101fi
5102
5213506e
RW
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5104$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5105if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5107else
5108 cat >conftest.adb <<EOF
5109procedure conftest is begin null; end conftest;
5110EOF
5111acx_cv_cc_gcc_supports_ada=no
5112# There is a bug in old released versions of GCC which causes the
5113# driver to exit successfully when the appropriate language module
5114# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5115# Therefore we must check for the error message as well as an
5116# unsuccessful exit.
1db673ca
RO
5117# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5118# given a .adb file, but produce no object file. So we must check
5119# if an object file was really produced to guard against this.
55ffb5ed 5120errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5121if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5122 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5123fi
5124rm -f conftest.*
5125fi
5213506e
RW
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5127$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5128
7cb62ef1 5129if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5130 have_gnat=yes
5131else
5132 have_gnat=no
5133fi
5134
5213506e
RW
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5136$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5137if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5138 $as_echo_n "(cached) " >&6
a76494aa
PB
5139else
5140 echo abfoo >t1
5141 echo cdfoo >t2
5142 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5143 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5144 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5145 :
5146 else
5147 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5148 fi
5149 fi
a76494aa
PB
5150 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5151 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5152 :
a76494aa
PB
5153 else
5154 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5155 fi
5156 fi
5157 rm t1 t2
5158
5159fi
5213506e
RW
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5161$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5162do_compare="$gcc_cv_prog_cmp_skip"
5163
5164
55ffb5ed 5165
ff3ac0f4
ILT
5166# Check whether --enable-bootstrap was given.
5167if test "${enable_bootstrap+set}" = set; then :
5168 enableval=$enable_bootstrap;
5169else
5170 enable_bootstrap=default
5171fi
5172
5173
5174# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5175if test -r $srcdir/gcc/configure; then
5176 have_compiler=yes
5177else
5178 have_compiler=no
5179fi
ff3ac0f4
ILT
5180
5181case "$have_compiler:$host:$target:$enable_bootstrap" in
5182 *:*:*:no) ;;
5183
5184 # Default behavior. Enable bootstrap if we have a compiler
5185 # and we are in a native configuration.
5186 yes:$build:$build:default)
5187 enable_bootstrap=yes ;;
5188
5189 *:*:*:default)
5190 enable_bootstrap=no ;;
5191
5192 # We have a compiler and we are in a native configuration, bootstrap is ok
5193 yes:$build:$build:yes)
5194 ;;
5195
5196 # Other configurations, but we have a compiler. Assume the user knows
5197 # what he's doing.
5198 yes:*:*:yes)
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5200$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5201 ;;
5202
5203 # No compiler: if they passed --enable-bootstrap explicitly, fail
5204 no:*:*:yes)
5205 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5206
5207 # Fail if wrong command line
5208 *)
5209 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5210 ;;
5211esac
5212
592c90ff
KG
5213# Used for setting $lt_cv_objdir
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5215$as_echo_n "checking for objdir... " >&6; }
5216if test "${lt_cv_objdir+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218else
5219 rm -f .libs 2>/dev/null
5220mkdir .libs 2>/dev/null
5221if test -d .libs; then
5222 lt_cv_objdir=.libs
5223else
5224 # MS-DOS does not allow filenames that begin with a dot.
5225 lt_cv_objdir=_libs
5226fi
5227rmdir .libs 2>/dev/null
5228fi
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5230$as_echo "$lt_cv_objdir" >&6; }
5231objdir=$lt_cv_objdir
5232
5233
5234
5235
5236
5237cat >>confdefs.h <<_ACEOF
5238#define LT_OBJDIR "$lt_cv_objdir/"
5239_ACEOF
5240
5241
5242
acd26225 5243# Check for GMP, MPFR and MPC
3a5729ea 5244gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5245gmpinc=
e69bf64b 5246have_gmp=no
acd26225
KG
5247
5248# Specify a location for mpc
5249# check for this first so it ends up on the link line before mpfr.
5250
5213506e
RW
5251# Check whether --with-mpc was given.
5252if test "${with_mpc+set}" = set; then :
5253 withval=$with_mpc;
5254fi
acd26225 5255
acd26225 5256
9965e3cd 5257# Check whether --with-mpc-include was given.
5213506e
RW
5258if test "${with_mpc_include+set}" = set; then :
5259 withval=$with_mpc_include;
5260fi
acd26225 5261
acd26225 5262
9965e3cd 5263# Check whether --with-mpc-lib was given.
5213506e
RW
5264if test "${with_mpc_lib+set}" = set; then :
5265 withval=$with_mpc_lib;
5266fi
acd26225 5267
acd26225
KG
5268
5269if test "x$with_mpc" != x; then
3a5729ea
KG
5270 gmplibs="-L$with_mpc/lib $gmplibs"
5271 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5272fi
5273if test "x$with_mpc_include" != x; then
3a5729ea 5274 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5275fi
5276if test "x$with_mpc_lib" != x; then
3a5729ea 5277 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5278fi
5279if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5280 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5281 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5282 # Do not test the mpc version. Assume that it is sufficient, since
5283 # it is in the source tree, and the library has not been built yet
5284 # but it would be included on the link line in the version check below
5285 # hence making the test fail.
3a5729ea 5286 have_gmp=yes
acd26225 5287fi
e69bf64b 5288
bebf829d
PB
5289# Specify a location for mpfr
5290# check for this first so it ends up on the link line before gmp.
1c710c3c 5291
5213506e
RW
5292# Check whether --with-mpfr-dir was given.
5293if test "${with_mpfr_dir+set}" = set; then :
5294 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5295Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5296fi
5297
bebf829d
PB
5298
5299
5213506e
RW
5300# Check whether --with-mpfr was given.
5301if test "${with_mpfr+set}" = set; then :
5302 withval=$with_mpfr;
5303fi
1c710c3c 5304
bebf829d 5305
9965e3cd 5306# Check whether --with-mpfr-include was given.
5213506e
RW
5307if test "${with_mpfr_include+set}" = set; then :
5308 withval=$with_mpfr_include;
5309fi
1c710c3c 5310
8a877c9c 5311
9965e3cd 5312# Check whether --with-mpfr-lib was given.
5213506e
RW
5313if test "${with_mpfr_lib+set}" = set; then :
5314 withval=$with_mpfr_lib;
5315fi
8a877c9c 5316
bebf829d
PB
5317
5318if test "x$with_mpfr" != x; then
5319 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5320 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5321fi
8a877c9c 5322if test "x$with_mpfr_include" != x; then
3a5729ea 5323 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5324fi
5325if test "x$with_mpfr_lib" != x; then
5326 gmplibs="-L$with_mpfr_lib $gmplibs"
5327fi
e69bf64b 5328if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5329 # MPFR v3.1.0 moved the sources into a src sub-directory.
5330 if test -d ${srcdir}/mpfr/src; then
5331 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5332 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5333 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5334 else
5335 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5336 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5337 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5338 fi
e69bf64b
PB
5339 # Do not test the mpfr version. Assume that it is sufficient, since
5340 # it is in the source tree, and the library has not been built yet
5341 # but it would be included on the link line in the version check below
5342 # hence making the test fail.
5343 have_gmp=yes
5344fi
bebf829d 5345
6de9cd9a 5346# Specify a location for gmp
1c710c3c 5347
5213506e
RW
5348# Check whether --with-gmp-dir was given.
5349if test "${with_gmp_dir+set}" = set; then :
5350 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5351Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5352fi
5353
6de9cd9a 5354
6de9cd9a 5355
5213506e
RW
5356# Check whether --with-gmp was given.
5357if test "${with_gmp+set}" = set; then :
5358 withval=$with_gmp;
5359fi
1c710c3c 5360
6de9cd9a 5361
9965e3cd 5362# Check whether --with-gmp-include was given.
5213506e
RW
5363if test "${with_gmp_include+set}" = set; then :
5364 withval=$with_gmp_include;
5365fi
1c710c3c 5366
8a877c9c 5367
9965e3cd 5368# Check whether --with-gmp-lib was given.
5213506e
RW
5369if test "${with_gmp_lib+set}" = set; then :
5370 withval=$with_gmp_lib;
5371fi
8a877c9c
KG
5372
5373
6de9cd9a 5374
bebf829d
PB
5375if test "x$with_gmp" != x; then
5376 gmplibs="-L$with_gmp/lib $gmplibs"
5377 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5378fi
8a877c9c
KG
5379if test "x$with_gmp_include" != x; then
5380 gmpinc="-I$with_gmp_include $gmpinc"
5381fi
5382if test "x$with_gmp_lib" != x; then
5383 gmplibs="-L$with_gmp_lib $gmplibs"
5384fi
e69bf64b 5385if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5386 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5387 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5388 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5389 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5390 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5391 # Do not test the gmp version. Assume that it is sufficient, since
5392 # it is in the source tree, and the library has not been built yet
5393 # but it would be included on the link line in the version check below
5394 # hence making the test fail.
5395 have_gmp=yes
5396fi
6de9cd9a 5397
d943d7c4 5398if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5399 have_gmp=yes
5400 saved_CFLAGS="$CFLAGS"
5401 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5402 # Check for the recommended and required versions of GMP.
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5404$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5405
5406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5407/* end confdefs.h. */
5408#include "gmp.h"
5409int
5410main ()
5411{
5412
5413 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5414 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5415 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5416 choke me
5417 #endif
5418
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5425/* end confdefs.h. */
362c6d2f 5426#include <gmp.h>
1c710c3c
DJ
5427int
5428main ()
5429{
6de9cd9a 5430
362c6d2f
KG
5431 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5432 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5433 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5434 choke me
5435 #endif
1c710c3c
DJ
5436
5437 ;
5438 return 0;
5439}
5440_ACEOF
5213506e
RW
5441if ac_fn_c_try_compile "$LINENO"; then :
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5443$as_echo "yes" >&6; }
362c6d2f
KG
5444else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5446$as_echo "buggy but acceptable" >&6; }
5447fi
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5449else
5213506e
RW
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5452fi
5213506e 5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5454
acd26225 5455 # If we have GMP, check the MPFR version.
e69bf64b 5456 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5457 # Check for the recommended and required versions of MPFR.
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5459$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5461/* end confdefs.h. */
70ec446f 5462#include <gmp.h>
e69bf64b 5463 #include <mpfr.h>
1c710c3c
DJ
5464int
5465main ()
5466{
e48d66a9 5467
f7d6bc01 5468 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5469 choke me
5470 #endif
1c710c3c
DJ
5471
5472 ;
5473 return 0;
5474}
5475_ACEOF
5213506e
RW
5476if ac_fn_c_try_compile "$LINENO"; then :
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5478/* end confdefs.h. */
a3993f33 5479#include <gmp.h>
e69bf64b 5480 #include <mpfr.h>
1c710c3c
DJ
5481int
5482main ()
5483{
a3993f33 5484
362c6d2f 5485 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5486 choke me
5487 #endif
acd26225
KG
5488
5489 ;
5490 return 0;
5491}
5492_ACEOF
5213506e
RW
5493if ac_fn_c_try_compile "$LINENO"; then :
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5495$as_echo "yes" >&6; }
acd26225 5496else
5213506e
RW
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5498$as_echo "buggy but acceptable" >&6; }
acd26225 5499fi
5213506e 5500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5501else
5213506e
RW
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503$as_echo "no" >&6; }; have_gmp=no
acd26225 5504fi
5213506e 5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5506 fi
5507
5508 # Check for the MPC header version.
3a5729ea 5509 if test x"$have_gmp" = xyes ; then
362c6d2f 5510 # Check for the recommended and required versions of MPC.
5213506e
RW
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5512$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5514/* end confdefs.h. */
5515#include <mpc.h>
5516int
5517main ()
5518{
5519
362c6d2f
KG
5520 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5521 choke me
5522 #endif
5523
5524 ;
5525 return 0;
5526}
5527_ACEOF
5528if ac_fn_c_try_compile "$LINENO"; then :
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h. */
5531#include <mpc.h>
5532int
5533main ()
5534{
5535
5536 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5537 choke me
5538 #endif
5539
5540 ;
5541 return 0;
5542}
5543_ACEOF
5213506e
RW
5544if ac_fn_c_try_compile "$LINENO"; then :
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5546$as_echo "yes" >&6; }
362c6d2f
KG
5547else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5549$as_echo "buggy but acceptable" >&6; }
5550fi
5551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5552else
5213506e 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5554$as_echo "no" >&6; }; have_gmp=no
acd26225 5555fi
5213506e 5556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5557 fi
5558
5559 # Now check the MPFR library.
5560 if test x"$have_gmp" = xyes; then
5561 saved_LIBS="$LIBS"
5562 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5564$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5566/* end confdefs.h. */
3a5729ea 5567#include <mpc.h>
acd26225
KG
5568int
5569main ()
5570{
5571
5572 mpfr_t n;
5573 mpfr_t x;
3a5729ea 5574 mpc_t c;
acd26225
KG
5575 int t;
5576 mpfr_init (n);
5577 mpfr_init (x);
5578 mpfr_atan2 (n, n, x, GMP_RNDN);
5579 mpfr_erfc (n, x, GMP_RNDN);
5580 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5581 mpfr_clear(n);
5582 mpfr_clear(x);
5583 mpc_init2 (c, 53);
5584 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5585 mpc_cosh (c, c, MPC_RNDNN);
5586 mpc_pow (c, c, c, MPC_RNDNN);
5587 mpc_acosh (c, c, MPC_RNDNN);
5588 mpc_clear (c);
1c710c3c
DJ
5589
5590 ;
5591 return 0;
5592}
5593_ACEOF
5213506e
RW
5594if ac_fn_c_try_link "$LINENO"; then :
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5596$as_echo "yes" >&6; }
1c710c3c 5597else
5213506e
RW
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5600fi
5213506e
RW
5601rm -f core conftest.err conftest.$ac_objext \
5602 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5603 LIBS="$saved_LIBS"
5604 fi
5605
e69bf64b 5606 CFLAGS="$saved_CFLAGS"
6de9cd9a 5607
362c6d2f
KG
5608# The library versions listed in the error message below should match
5609# the HARD-minimums enforced above.
e69bf64b 5610 if test x$have_gmp != xyes; then
f7d6bc01 5611 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5612Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5613their locations. Source code for these libraries can be found at
5614their respective hosting sites as well as at
5615ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5616http://gcc.gnu.org/install/prerequisites.html for additional info. If
5617you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5618make sure that you have installed both the libraries and the header
5619files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5620 fi
70ec446f
KG
5621fi
5622
acd26225
KG
5623# Flags needed for both GMP, MPFR and/or MPC.
5624
5625
6de9cd9a
DN
5626
5627
5628
9e3eba15 5629
0ff2d841 5630
f38095f3
JM
5631# Allow host libstdc++ to be specified for static linking with PPL.
5632
5213506e
RW
5633# Check whether --with-host-libstdcxx was given.
5634if test "${with_host_libstdcxx+set}" = set; then :
5635 withval=$with_host_libstdcxx;
5636fi
f38095f3 5637
f38095f3
JM
5638
5639case $with_host_libstdcxx in
5640 no|yes)
5213506e 5641 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5642 ;;
5643esac
f8bf9252 5644
0b21f5d3 5645# Libraries to use for stage1 or when not bootstrapping.
00020c16 5646
0b21f5d3
EB
5647# Check whether --with-stage1-libs was given.
5648if test "${with_stage1_libs+set}" = set; then :
5649 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5650 stage1_libs=
00020c16 5651 else
0b21f5d3 5652 stage1_libs=$withval
00020c16
ILT
5653 fi
5654else
0b21f5d3 5655 stage1_libs=$with_host_libstdcxx
5213506e
RW
5656fi
5657
00020c16
ILT
5658
5659
0b21f5d3 5660# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5661
0b21f5d3
EB
5662# Check whether --with-stage1-ldflags was given.
5663if test "${with_stage1_ldflags+set}" = set; then :
5664 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5665 stage1_ldflags=
00020c16 5666 else
0b21f5d3 5667 stage1_ldflags=$withval
00020c16
ILT
5668 fi
5669else
0b21f5d3
EB
5670 stage1_ldflags=
5671 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5672 # if supported. But if the user explicitly specified the libraries to use,
5673 # trust that they are doing what they want.
5674 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5675 stage1_ldflags="-static-libstdc++ -static-libgcc"
5676 fi
5213506e
RW
5677fi
5678
00020c16
ILT
5679
5680
00020c16
ILT
5681# Libraries to use for stage2 and later builds. This defaults to the
5682# argument passed to --with-host-libstdcxx.
5683
5213506e
RW
5684# Check whether --with-boot-libs was given.
5685if test "${with_boot_libs+set}" = set; then :
5686 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5687 poststage1_libs=
5688 else
5689 poststage1_libs=$withval
5690 fi
5691else
00020c16 5692 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5693fi
5694
00020c16
ILT
5695
5696
ed2eaa9f
ILT
5697# Linker flags to use for stage2 and later builds.
5698
5699# Check whether --with-boot-ldflags was given.
5700if test "${with_boot_ldflags+set}" = set; then :
5701 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5702 poststage1_ldflags=
5703 else
5704 poststage1_ldflags=$withval
5705 fi
5706else
5707 poststage1_ldflags=
bec93d73
ILT
5708 # In stages 2 and 3, default to linking libstdc++ and libgcc
5709 # statically. But if the user explicitly specified the libraries to
5710 # use, trust that they are doing what they want.
5711 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5712 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5713 fi
5714fi
5715
5716
5717
625afa23
RG
5718# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5719# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5720# config/isl.m4
5721
5722
5723# Check whether --with-cloog was given.
5724if test "${with_cloog+set}" = set; then :
5725 withval=$with_cloog;
5726fi
f8bf9252
SP
5727
5728
33ad93b9
RG
5729# Check whether --with-isl was given.
5730if test "${with_isl+set}" = set; then :
5731 withval=$with_isl;
5213506e 5732fi
f8bf9252 5733
f8bf9252 5734
625afa23
RG
5735# Treat either --without-cloog or --without-isl as a request to disable
5736# GRAPHITE support and skip all following checks.
5737if test "x$with_isl" != "xno" &&
5738 test "x$with_cloog" != "xno"; then
5739 # Check for ISL
5740
5741
33ad93b9
RG
5742# Check whether --with-isl-include was given.
5743if test "${with_isl_include+set}" = set; then :
5744 withval=$with_isl_include;
5213506e
RW
5745fi
5746
f8bf9252 5747
33ad93b9
RG
5748# Check whether --with-isl-lib was given.
5749if test "${with_isl_lib+set}" = set; then :
5750 withval=$with_isl_lib;
5213506e 5751fi
f8bf9252 5752
f8bf9252 5753
33ad93b9
RG
5754 # Check whether --enable-isl-version-check was given.
5755if test "${enable_isl_version_check+set}" = set; then :
5756 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5757else
5758 ENABLE_ISL_CHECK=yes
7d32a440
SP
5759fi
5760
5761
33ad93b9
RG
5762 # Initialize isllibs and islinc.
5763 case $with_isl in
5764 no)
5765 isllibs=
5766 islinc=
5767 ;;
5768 "" | yes)
5769 ;;
5770 *)
5771 isllibs="-L$with_isl/lib"
5772 islinc="-I$with_isl/include"
5773 ;;
5774 esac
5775 if test "x${with_isl_include}" != x ; then
5776 islinc="-I$with_isl_include"
5777 fi
5778 if test "x${with_isl_lib}" != x; then
5779 isllibs="-L$with_isl_lib"
5780 fi
5781 if test "x${islinc}" = x && test "x${isllibs}" = x \
5782 && test -d ${srcdir}/isl; then
5783 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5784 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5785 ENABLE_ISL_CHECK=no
5786 fi
7d32a440 5787
7d32a440 5788
7d32a440 5789
33ad93b9
RG
5790 if test "${ENABLE_ISL_CHECK}" = yes ; then
5791 _isl_saved_CFLAGS=$CFLAGS
5792 _isl_saved_LDFLAGS=$LDFLAGS
90d4f233 5793 _isl_saved_LIBS=$LIBS
33ad93b9
RG
5794
5795 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
90d4f233
RO
5796 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5797 LIBS="${_isl_saved_LIBS} -lisl"
33ad93b9
RG
5798 echo $CFLAGS
5799
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5801$as_echo_n "checking for version 0.10 of ISL... " >&6; }
5802if test "${gcc_cv_isl+set}" = set; then :
7d32a440
SP
5803 $as_echo_n "(cached) " >&6
5804else
33ad93b9 5805 if test "$cross_compiling" = yes; then :
2b2d7c53 5806 gcc_cv_isl=yes
33ad93b9
RG
5807else
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d32a440 5809/* end confdefs.h. */
33ad93b9
RG
5810#include <isl/version.h>
5811 #include <string.h>
7d32a440
SP
5812int
5813main ()
5814{
8247e8b2
RG
5815if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5816 return 1;
5817
7d32a440
SP
5818 ;
5819 return 0;
5820}
5821_ACEOF
33ad93b9
RG
5822if ac_fn_c_try_run "$LINENO"; then :
5823 gcc_cv_isl=yes
d789184e 5824else
33ad93b9 5825 gcc_cv_isl=no
7d32a440 5826fi
33ad93b9
RG
5827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5828 conftest.$ac_objext conftest.beam conftest.$ac_ext
7d32a440 5829fi
33ad93b9 5830
5213506e 5831fi
33ad93b9
RG
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5833$as_echo "$gcc_cv_isl" >&6; }
5213506e 5834
33ad93b9
RG
5835 CFLAGS=$_isl_saved_CFLAGS
5836 LDFLAGS=$_isl_saved_LDFLAGS
90d4f233 5837 LIBS=$_isl_saved_LIBS
7d32a440 5838 fi
f8bf9252 5839
7d32a440 5840
f8bf9252 5841
f8bf9252 5842
33ad93b9
RG
5843
5844
33ad93b9
RG
5845 if test "x${with_isl}" = xno; then
5846 graphite_requested=no
5847 elif test "x${with_isl}" != x \
5848 || test "x${with_isl_include}" != x \
5849 || test "x${with_isl_lib}" != x ; then
5850 graphite_requested=yes
5851 else
5852 graphite_requested=no
7d32a440 5853 fi
d789184e 5854
d789184e
SP
5855
5856
33ad93b9
RG
5857 if test "${gcc_cv_isl}" = no ; then
5858 isllibs=
5859 islinc=
5860 fi
5861
5862 if test "${graphite_requested}" = yes \
5863 && test "x${isllibs}" = x \
5864 && test "x${islinc}" = x ; then
f8bf9252 5865
33ad93b9
RG
5866 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5867 fi
f8bf9252 5868
d32ef397 5869
d789184e 5870
625afa23
RG
5871 if test "x$gcc_cv_isl" != "xno"; then
5872 # Check for CLOOG
5213506e 5873
d789184e 5874
9965e3cd 5875# Check whether --with-cloog-include was given.
5213506e
RW
5876if test "${with_cloog_include+set}" = set; then :
5877 withval=$with_cloog_include;
5878fi
d789184e 5879
d789184e 5880
9965e3cd 5881# Check whether --with-cloog-lib was given.
5213506e
RW
5882if test "${with_cloog_lib+set}" = set; then :
5883 withval=$with_cloog_lib;
5884fi
d789184e 5885
d789184e 5886
d32ef397
AS
5887 # Check whether --enable-cloog-version-check was given.
5888if test "${enable_cloog_version_check+set}" = set; then :
5889 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5890else
5891 ENABLE_CLOOG_CHECK=yes
5892fi
5893
5894
5895 # Initialize clooglibs and clooginc.
5896 case $with_cloog in
5897 no)
5898 clooglibs=
5899 clooginc=
5900 ;;
5901 "" | yes)
5902 ;;
5903 *)
5904 clooglibs="-L$with_cloog/lib"
5905 clooginc="-I$with_cloog/include"
5906 ;;
5907 esac
5908 if test "x${with_cloog_include}" != x ; then
5909 clooginc="-I$with_cloog_include"
5910 fi
5911 if test "x${with_cloog_lib}" != x; then
5912 clooglibs="-L$with_cloog_lib"
5913 fi
14fbeb6c 5914 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
33ad93b9 5915 && test -d ${srcdir}/cloog; then
33ad93b9
RG
5916 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5917 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
ab4173cf 5918 fi
ad0abd3c 5919
33ad93b9 5920 clooginc="-DCLOOG_INT_GMP ${clooginc}"
625afa23 5921 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
d32ef397
AS
5922
5923
5924
5925
5926
5927 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5928 _cloog_saved_CFLAGS=$CFLAGS
5929 _cloog_saved_LDFLAGS=$LDFLAGS
5930
33ad93b9
RG
5931 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5932 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
d32ef397 5933
6886e444
RG
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5935$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5936if test "${gcc_cv_cloog+set}" = set; then :
d32ef397
AS
5937 $as_echo_n "(cached) " >&6
5938else
5213506e 5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252 5940/* end confdefs.h. */
33ad93b9 5941#include "cloog/version.h"
f8bf9252
SP
5942int
5943main ()
5944{
d32ef397 5945#if CLOOG_VERSION_MAJOR != 0 \
6886e444
RG
5946 || CLOOG_VERSION_MINOR != 17 \
5947 || CLOOG_VERSION_REVISION < 0
d32ef397
AS
5948 choke me
5949 #endif
f8bf9252
SP
5950 ;
5951 return 0;
5952}
5953_ACEOF
0333b9a6 5954if ac_fn_c_try_compile "$LINENO"; then :
6886e444 5955 gcc_cv_cloog=yes
f8bf9252 5956else
6886e444 5957 gcc_cv_cloog=no
f8bf9252 5958fi
5213506e 5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e 5960fi
6886e444
RG
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5962$as_echo "$gcc_cv_cloog" >&6; }
d32ef397
AS
5963
5964 CFLAGS=$_cloog_saved_CFLAGS
5965 LDFLAGS=$_cloog_saved_LDFLAGS
5966 fi
f8bf9252 5967
f8bf9252
SP
5968
5969
5970
d32ef397
AS
5971
5972
5973
6be7b668
JJ
5974 if test "x${with_cloog}" = xno; then
5975 graphite_requested=no
5976 elif test "x${with_cloog}" != x \
d32ef397
AS
5977 || test "x${with_cloog_include}" != x \
5978 || test "x${with_cloog_lib}" != x ; then
5979 graphite_requested=yes
5980 else
5981 graphite_requested=no
5982 fi
5983
5984
5985
6886e444 5986 if test "${gcc_cv_cloog}" = no ; then
d32ef397
AS
5987 clooglibs=
5988 clooginc=
5989 fi
5990
5991 if test "${graphite_requested}" = yes \
5992 && test "x${clooglibs}" = x \
5993 && test "x${clooginc}" = x ; then
5994
625afa23 5995 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
5996 fi
5997
5998
625afa23 5999 fi
d32ef397
AS
6000fi
6001
32d024bf
RG
6002# If either the ISL or the CLooG check failed, disable builds of in-tree
6003# variants of both
625afa23
RG
6004if test "x$with_isl" = xno ||
6005 test "x$with_cloog" = xno ||
6006 test "x$gcc_cv_cloog" = xno ||
6007 test "x$gcc_cv_isl" = xno; then
32d024bf 6008 noconfigdirs="$noconfigdirs cloog isl"
625afa23
RG
6009 islinc=
6010 clooginc=
6011 clooglibs=
32d024bf
RG
6012fi
6013
625afa23
RG
6014
6015
6016
6017
6018
d7f09764
DN
6019# Check for LTO support.
6020# Check whether --enable-lto was given.
6021if test "${enable_lto+set}" = set; then :
6022 enableval=$enable_lto; enable_lto=$enableval
6023else
6024 enable_lto=yes; default_enable_lto=yes
6025fi
6026
6027
7413962d 6028
9a02962b
DK
6029
6030
6031target_elf=no
6032case $target in
6033 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6034 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6035 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6036 target_elf=no
6037 ;;
6038 *)
6039 target_elf=yes
6040 ;;
6041esac
6042
6043if test $target_elf = yes; then :
48215350
DK
6044 # ELF platforms build the lto-plugin always.
6045 build_lto_plugin=yes
9a02962b 6046
9a02962b
DK
6047else
6048 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6049 case $target in
2cd815e7 6050 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6051 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6052 *) enable_lto=no ;;
6053 esac
9a02962b 6054 else
db50fe7d
IS
6055 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6056 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6057 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6058 # warn during gcc/ subconfigure; unless you're bootstrapping with
6059 # -flto it won't be needed until after installation anyway.
6060 case $target in
1cd0b716 6061 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6062 *) if test x"$enable_lto" = x"yes"; then
6063 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6064 fi
6065 ;;
6066 esac
6067 fi
1cd0b716 6068 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6069 # Build it unless LTO was explicitly disabled.
1cd0b716 6070 case $target in
48215350 6071 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6072 *) ;;
6073 esac
48215350 6074
9a02962b
DK
6075fi
6076
d7f09764 6077
f8bf9252 6078
0823efed 6079# By default, C and C++ are the only stage 1 languages.
e1888513 6080stage1_languages=,c,
2805b53a 6081
00020c16 6082# Target libraries that we bootstrap.
ad1e5170 6083bootstrap_target_libs=,target-libgcc,
00020c16 6084
55ffb5ed
NN
6085# Figure out what language subdirectories are present.
6086# Look if the user specified --enable-languages="..."; if not, use
6087# the environment variable $LANGUAGES if defined. $LANGUAGES might
6088# go away some day.
6089# NB: embedded tabs in this IF block -- do not untabify
6090if test -d ${srcdir}/gcc; then
6091 if test x"${enable_languages+set}" != xset; then
6092 if test x"${LANGUAGES+set}" = xset; then
6093 enable_languages="${LANGUAGES}"
6094 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6095 else
6096 enable_languages=all
6097 fi
6098 else
6099 if test x"${enable_languages}" = x ||
6100 test x"${enable_languages}" = xyes;
6101 then
6102 echo configure.in: --enable-languages needs at least one language argument 1>&2
6103 exit 1
6104 fi
6105 fi
6106 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6107
7f26dfa3
FXC
6108 # 'f95' is the old name for the 'fortran' language. We issue a warning
6109 # and make the substitution.
6110 case ,${enable_languages}, in
6111 *,f95,*)
6112 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6113 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6114 ;;
6115 esac
6116
0823efed
DN
6117 # If bootstrapping, C++ must be enabled.
6118 case ",$enable_languages,:$enable_bootstrap" in
6119 *,c++,*:*) ;;
6120 *:yes)
ff3ac0f4
ILT
6121 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6122 enable_languages="${enable_languages},c++"
6123 else
0823efed 6124 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6125 fi
6126 ;;
6127 esac
6128
55ffb5ed
NN
6129 # First scan to see if an enabled language requires some other language.
6130 # We assume that a given config-lang.in will list all the language
6131 # front ends it requires, even if some are required indirectly.
6132 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6133 case ${lang_frag} in
6134 ..) ;;
6135 # The odd quoting in the next line works around
6136 # an apparent bug in bash 1.12 on linux.
6137 ${srcdir}/gcc/[*]/config-lang.in) ;;
6138 *)
69ecd18f
ILT
6139 # From the config-lang.in, get $language, $lang_requires, and
6140 # $lang_requires_boot_languages.
55ffb5ed
NN
6141 language=
6142 lang_requires=
69ecd18f 6143 lang_requires_boot_languages=
55ffb5ed 6144 . ${lang_frag}
69ecd18f 6145 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6146 case ,${enable_languages}, in
6147 *,$other,*) ;;
6148 *,all,*) ;;
6149 *,$language,*)
6150 echo " \`$other' language required by \`$language'; enabling" 1>&2
6151 enable_languages="${enable_languages},${other}"
6152 ;;
6153 esac
6154 done
69ecd18f
ILT
6155 for other in ${lang_requires_boot_languages} ; do
6156 if test "$other" != "c"; then
6157 case ,${enable_stage1_languages}, in
6158 *,$other,*) ;;
6159 *,all,*) ;;
6160 *)
6161 case ,${enable_languages}, in
6162 *,$language,*)
6163 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6164 enable_stage1_languages="$enable_stage1_languages,${other}"
6165 ;;
6166 esac
6167 ;;
6168 esac
6169 fi
6170 done
55ffb5ed
NN
6171 ;;
6172 esac
6173 done
6174
e1888513 6175 new_enable_languages=,c,
d7f09764
DN
6176
6177 # If LTO is enabled, add the LTO front end.
6178 extra_host_libiberty_configure_flags=
6179 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6180 case ,${enable_languages}, in
6181 *,lto,*) ;;
6182 *) enable_languages="${enable_languages},lto" ;;
6183 esac
1cd0b716 6184 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6185 configdirs="$configdirs lto-plugin"
6186 extra_host_libiberty_configure_flags=--enable-shared
6187 fi
6188 fi
6189
6190
55ffb5ed 6191 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6192 potential_languages=,c,
55ffb5ed 6193
4da3b0f8
ILT
6194 enabled_target_libs=
6195 disabled_target_libs=
6196
55ffb5ed
NN
6197 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6198 case ${lang_frag} in
6199 ..) ;;
6200 # The odd quoting in the next line works around
6201 # an apparent bug in bash 1.12 on linux.
6202 ${srcdir}/gcc/[*]/config-lang.in) ;;
6203 *)
1c710c3c 6204 # From the config-lang.in, get $language, $target_libs,
2805b53a 6205 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6206 language=
6207 target_libs=
6208 lang_dirs=
1546bb64 6209 subdir_requires=
e1888513
PB
6210 boot_language=no
6211 build_by_default=yes
55ffb5ed 6212 . ${lang_frag}
e1888513
PB
6213 if test x${language} = x; then
6214 echo "${lang_frag} doesn't set \$language." 1>&2
6215 exit 1
6216 fi
6217
78767fd9 6218 if test "$language" = "c++"; then
0823efed 6219 boot_language=yes
00020c16
ILT
6220 fi
6221
178f875a 6222 add_this_lang=no
e1888513
PB
6223 case ,${enable_languages}, in
6224 *,${language},*)
d4a10d0a
SB
6225 # Language was explicitly selected; include it
6226 # unless it is C, which is enabled by default.
6227 if test "$language" != "c"; then
6228 add_this_lang=yes
6229 fi
55ffb5ed 6230 ;;
e1888513
PB
6231 *,all,*)
6232 # 'all' was selected, select it if it is a default language
178f875a
JM
6233 if test "$language" != "c"; then
6234 add_this_lang=${build_by_default}
6235 fi
55ffb5ed
NN
6236 ;;
6237 esac
6de9cd9a 6238
1546bb64 6239 # Disable languages that need other directories if these aren't available.
95695ad3 6240 for i in $subdir_requires; do
b6348cb3 6241 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6242 case ,${enable_languages}, in
6243 *,${language},*)
6244 # Specifically requested language; tell them.
5213506e 6245 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6246 ;;
6247 *)
6248 # Silently disable.
e1888513 6249 add_this_lang=unsupported
1546bb64
PB
6250 ;;
6251 esac
6252 done
6253
e1888513
PB
6254 # Disable Ada if no preexisting GNAT is available.
6255 case ,${enable_languages},:${language}:${have_gnat} in
6256 *,${language},*:ada:no)
6257 # Specifically requested language; tell them.
5213506e 6258 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6259 ;;
6260 *:ada:no)
6261 # Silently disable.
6262 add_this_lang=unsupported
6263 ;;
6264 esac
6265
4fab7234
HPN
6266 # Disable a language that is unsupported by the target.
6267 case " $unsupported_languages " in
6268 *" $language "*)
e1888513 6269 add_this_lang=unsupported
4fab7234
HPN
6270 ;;
6271 esac
6272
6de9cd9a 6273 case $add_this_lang in
e1888513 6274 unsupported)
55ffb5ed 6275 # Remove language-dependent dirs.
4da3b0f8
ILT
6276 disabled_target_libs="$disabled_target_libs $target_libs"
6277 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6278 ;;
e1888513
PB
6279 no)
6280 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6281 disabled_target_libs="$disabled_target_libs $target_libs"
6282 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6283 potential_languages="${potential_languages}${language},"
6284 ;;
6285 yes)
6286 new_enable_languages="${new_enable_languages}${language},"
6287 potential_languages="${potential_languages}${language},"
2805b53a 6288 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6289 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6290 case "${boot_language}:,$enable_stage1_languages," in
6291 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6292 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6293 case ",$stage1_languages," in
6294 *,$language,* | ,yes, | ,all,) ;;
6295 *) stage1_languages="${stage1_languages}${language}," ;;
6296 esac
00020c16
ILT
6297 # We need to bootstrap any supporting libraries.
6298 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6299 ;;
6300 esac
6301 ;;
55ffb5ed
NN
6302 esac
6303 ;;
6304 esac
6305 done
6306
4da3b0f8
ILT
6307 # Add target libraries which are only needed for disabled languages
6308 # to noconfigdirs.
6309 if test -n "$disabled_target_libs"; then
6310 for dir in $disabled_target_libs; do
6311 case " $enabled_target_libs " in
6312 *" ${dir} "*) ;;
6313 *) noconfigdirs="$noconfigdirs $dir" ;;
6314 esac
6315 done
6316 fi
6317
5213506e
RW
6318 # Check whether --enable-stage1-languages was given.
6319if test "${enable_stage1_languages+set}" = set; then :
6320 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6321 ,no,|,,)
6322 # Set it to something that will have no effect in the loop below
6323 enable_stage1_languages=c ;;
6324 ,yes,)
6325 enable_stage1_languages=`echo $new_enable_languages | \
6326 sed -e "s/^,//" -e "s/,$//" ` ;;
6327 *,all,*)
6328 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6329 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6330 esac
6331
6332 # Add "good" languages from enable_stage1_languages to stage1_languages,
6333 # while "bad" languages go in missing_languages. Leave no duplicates.
6334 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6335 case $potential_languages in
6336 *,$i,*)
6337 case $stage1_languages in
6338 *,$i,*) ;;
6339 *) stage1_languages="$stage1_languages$i," ;;
6340 esac ;;
6341 *)
6342 case $missing_languages in
6343 *,$i,*) ;;
6344 *) missing_languages="$missing_languages$i," ;;
6345 esac ;;
6346 esac
6347 done
5213506e
RW
6348fi
6349
e1888513
PB
6350
6351 # Remove leading/trailing commas that were added for simplicity
6352 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6353 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6354 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6355 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6356
55ffb5ed 6357 if test "x$missing_languages" != x; then
5213506e 6358 as_fn_error "
0cf085e4 6359The following requested languages could not be built: ${missing_languages}
5213506e 6360Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6361 fi
55ffb5ed
NN
6362 if test "x$new_enable_languages" != "x$enable_languages"; then
6363 echo The following languages will be built: ${new_enable_languages}
e1888513 6364 enable_languages="$new_enable_languages"
55ffb5ed 6365 fi
e1888513 6366
1c710c3c 6367
b2eaac4a 6368 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6369fi
6370
27079765
AH
6371# Handle --disable-<component> generically.
6372for dir in $configdirs $build_configdirs $target_configdirs ; do
6373 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6374 varname=`echo $dirname | sed -e s/+/_/g`
6375 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6376 noconfigdirs="$noconfigdirs $dir"
6377 fi
6378done
6379
7cd0cf9c 6380# Check for Boehm's garbage collector
5213506e
RW
6381# Check whether --enable-objc-gc was given.
6382if test "${enable_objc_gc+set}" = set; then :
6383 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6384 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6385 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6386 ;;
6387esac
5213506e
RW
6388fi
6389
7cd0cf9c
DA
6390
6391# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6392case ,${enable_languages},:${enable_objc_gc} in
6393 *,objc,*:yes)
7cd0cf9c
DA
6394 # Keep target-boehm-gc if requested for Objective-C.
6395 ;;
7cd0cf9c 6396 *)
2a79fd67
DA
6397 # Otherwise remove target-boehm-gc depending on target-libjava.
6398 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6399 noconfigdirs="$noconfigdirs target-boehm-gc"
6400 fi
7cd0cf9c
DA
6401 ;;
6402esac
6403
99776ebd
RH
6404# Disable libitm if we're not building C++
6405case ,${enable_languages}, in
9696698a 6406 *,c++,*) ;;
99776ebd
RH
6407 *)
6408 noconfigdirs="$noconfigdirs target-libitm"
6409 ;;
6410esac
6411
ee6a22df
L
6412# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6413# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6414# If we have the source for $noconfigdirs entries, add them to $notsupp.
6415
6416notsupp=""
6417for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6418 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6419 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6420 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6421 if test -r $srcdir/$dirname/configure ; then
6422 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6423 true
6424 else
6425 notsupp="$notsupp $dir"
6426 fi
6427 fi
6428 fi
ee6a22df
L
6429 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6430 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6431 if test -r $srcdir/$dirname/configure ; then
6432 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6433 true
6434 else
6435 notsupp="$notsupp $dir"
6436 fi
6437 fi
6438 fi
55ffb5ed
NN
6439 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6440 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6441 if test -r $srcdir/$dirname/configure ; then
6442 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6443 true
6444 else
6445 notsupp="$notsupp $dir"
6446 fi
6447 fi
6448 fi
6449done
6450
55ffb5ed
NN
6451# Quietly strip out all directories which aren't configurable in this tree.
6452# This relies on all configurable subdirectories being autoconfiscated, which
6453# is now the case.
23f6b2f9
PB
6454build_configdirs_all="$build_configdirs"
6455build_configdirs=
6456for i in ${build_configdirs_all} ; do
1c710c3c 6457 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6458 if test -f ${srcdir}/$j/configure ; then
6459 build_configdirs="${build_configdirs} $i"
6460 fi
6461done
6462
55ffb5ed
NN
6463configdirs_all="$configdirs"
6464configdirs=
6465for i in ${configdirs_all} ; do
6466 if test -f ${srcdir}/$i/configure ; then
6467 configdirs="${configdirs} $i"
6468 fi
6469done
23f6b2f9 6470
55ffb5ed
NN
6471target_configdirs_all="$target_configdirs"
6472target_configdirs=
6473for i in ${target_configdirs_all} ; do
1c710c3c 6474 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6475 if test -f ${srcdir}/$j/configure ; then
6476 target_configdirs="${target_configdirs} $i"
6477 fi
6478done
6479
6480# Produce a warning message for the subdirs we can't configure.
6481# This isn't especially interesting in the Cygnus tree, but in the individual
6482# FSF releases, it's important to let people know when their machine isn't
6483# supported by the one or two programs in a package.
6484
6485if test -n "${notsupp}" && test -z "${norecursion}" ; then
6486 # If $appdirs is non-empty, at least one of those directories must still
6487 # be configured, or we error out. (E.g., if the gas release supports a
6488 # specified target in some subdirs but not the gas subdir, we shouldn't
6489 # pretend that all is well.)
6490 if test -n "$appdirs" ; then
6491 for dir in $appdirs ; do
6492 if test -r $dir/Makefile.in ; then
6493 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6494 appdirs=""
6495 break
6496 fi
23f6b2f9 6497 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6498 appdirs=""
6499 break
6500 fi
6501 fi
6502 done
6503 if test -n "$appdirs" ; then
6504 echo "*** This configuration is not supported by this package." 1>&2
6505 exit 1
6506 fi
6507 fi
6508 # Okay, some application will build, or we don't care to check. Still
6509 # notify of subdirs not getting built.
6510 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6511 echo " ${notsupp}" 1>&2
6512 echo " (Any other directories should still work fine.)" 1>&2
6513fi
6514
6515case "$host" in
6516 *msdosdjgpp*)
6517 enable_gdbtk=no ;;
6518esac
6519
c3a86da9
DJ
6520# To find our prefix, in gcc_cv_tool_prefix.
6521
6522# The user is always right.
6523if test "${PATH_SEPARATOR+set}" != set; then
6524 echo "#! /bin/sh" >conf$$.sh
6525 echo "exit 0" >>conf$$.sh
6526 chmod +x conf$$.sh
6527 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6528 PATH_SEPARATOR=';'
6529 else
6530 PATH_SEPARATOR=:
6531 fi
6532 rm -f conf$$.sh
6533fi
6534
6535
6536
6537if test "x$exec_prefix" = xNONE; then
6538 if test "x$prefix" = xNONE; then
6539 gcc_cv_tool_prefix=$ac_default_prefix
6540 else
6541 gcc_cv_tool_prefix=$prefix
6542 fi
6543else
6544 gcc_cv_tool_prefix=$exec_prefix
6545fi
6546
6547# If there is no compiler in the tree, use the PATH only. In any
6548# case, if there is no compiler in the tree nobody should use
6549# AS_FOR_TARGET and LD_FOR_TARGET.
6550if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6551 gcc_version=`cat $srcdir/gcc/BASE-VER`
6552 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6553 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6554 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6555 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6556 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6557 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6558else
6559 gcc_cv_tool_dirs=
6560fi
6561
6562if test x$build = x$target && test -n "$md_exec_prefix"; then
6563 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6564fi
6565
6566
6567
55ffb5ed
NN
6568copy_dirs=
6569
1c710c3c 6570
5213506e
RW
6571# Check whether --with-build-sysroot was given.
6572if test "${with_build_sysroot+set}" = set; then :
6573 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6574 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6575 fi
6576else
6577 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6578fi
526635cb
MM
6579
6580
c8aea42c 6581
5213506e
RW
6582
6583# Check whether --with-debug-prefix-map was given.
6584if test "${with_debug_prefix_map+set}" = set; then :
6585 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6586 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6587 for debug_map in $withval; do
6588 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6589 done
6590 fi
6591else
6592 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6593fi
6594
c8aea42c
PB
6595
6596
1c8bd6a3
PB
6597# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6598# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6599# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6600# We want to ensure that TARGET libraries (which we know are built with
6601# gcc) are built with "-O2 -g", so include those options when setting
6602# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6603if test "x$CFLAGS_FOR_TARGET" = x; then
6604 CFLAGS_FOR_TARGET=$CFLAGS
6605 case " $CFLAGS " in
6606 *" -O2 "*) ;;
bd8e704f 6607 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6608 esac
6609 case " $CFLAGS " in
6610 *" -g "* | *" -g3 "*) ;;
bd8e704f 6611 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6612 esac
6613fi
6614
6615
6616if test "x$CXXFLAGS_FOR_TARGET" = x; then
6617 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6618 case " $CXXFLAGS " in
6619 *" -O2 "*) ;;
bd8e704f 6620 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6621 esac
6622 case " $CXXFLAGS " in
6623 *" -g "* | *" -g3 "*) ;;
bd8e704f 6624 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6625 esac
6626fi
6627
6628
6f57bdf6
DK
6629
6630
55ffb5ed
NN
6631# Handle --with-headers=XXX. If the value is not "yes", the contents of
6632# the named directory are copied to $(tooldir)/sys-include.
6633if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6634 if test x${is_cross_compiler} = xno ; then
6635 echo 1>&2 '***' --with-headers is only supported when cross compiling
6636 exit 1
6637 fi
6638 if test x"${with_headers}" != xyes ; then
c3a86da9 6639 x=${gcc_cv_tool_prefix}
1c710c3c 6640 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6641 fi
6642fi
6643
6644# Handle --with-libs=XXX. If the value is not "yes", the contents of
6645# the name directories are copied to $(tooldir)/lib. Multiple directories
6646# are permitted.
6647if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6648 if test x${is_cross_compiler} = xno ; then
6649 echo 1>&2 '***' --with-libs is only supported when cross compiling
6650 exit 1
6651 fi
6652 if test x"${with_libs}" != xyes ; then
6653 # Copy the libraries in reverse order, so that files in the first named
6654 # library override files in subsequent libraries.
c3a86da9 6655 x=${gcc_cv_tool_prefix}
55ffb5ed 6656 for l in ${with_libs}; do
1c710c3c 6657 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6658 done
6659 fi
6660fi
6661
d7f09764 6662# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6663#
6664# This is done by determining whether or not the appropriate directory
6665# is available, and by checking whether or not specific configurations
6666# have requested that this magic not happen.
1c710c3c
DJ
6667#
6668# The command line options always override the explicit settings in
e8b05380
PB
6669# configure.in, and the settings in configure.in override this magic.
6670#
1c710c3c 6671# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6672# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6673# --without-gnu-ld options for the configure script. Similarly, if
6674# the default is to use the included zlib and you don't want to do that,
6675# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6676
6677if test x${use_gnu_as} = x &&
6678 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6679 with_gnu_as=yes
6680 extra_host_args="$extra_host_args --with-gnu-as"
6681fi
6682
6683if test x${use_gnu_ld} = x &&
5afab7ad 6684 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6685 with_gnu_ld=yes
6686 extra_host_args="$extra_host_args --with-gnu-ld"
6687fi
6688
d7f09764
DN
6689if test x${use_included_zlib} = x &&
6690 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6691 :
6692else
6693 with_system_zlib=yes
6694 extra_host_args="$extra_host_args --with-system-zlib"
6695fi
6696
e8b05380
PB
6697# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6698# can detect this case.
6699
6700if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6701 with_newlib=yes
6702 extra_host_args="$extra_host_args --with-newlib"
6703fi
6704
55ffb5ed
NN
6705# Handle ${copy_dirs}
6706set fnord ${copy_dirs}
6707shift
6708while test $# != 0 ; do
6709 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6710 :
6711 else
6712 echo Copying $1 to $2
6713
6714 # Use the install script to create the directory and all required
6715 # parent directories.
6716 if test -d $2 ; then
6717 :
6718 else
6719 echo >config.temp
6720 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6721 fi
6722
6723 # Copy the directory, assuming we have tar.
6724 # FIXME: Should we use B in the second tar? Not all systems support it.
6725 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6726
6727 # It is the responsibility of the user to correctly adjust all
6728 # symlinks. If somebody can figure out how to handle them correctly
6729 # here, feel free to add the code.
6730
6731 echo $1 > $2/COPIED
6732 fi
6733 shift; shift
6734done
6735
e8b05380
PB
6736# Determine a target-dependent exec_prefix that the installed
6737# gcc will search in. Keep this list sorted by triplet, with
6738# the *-*-osname triplets last.
6739md_exec_prefix=
6740case "${target}" in
30b74385 6741 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6742 md_exec_prefix=/dev/env/DJDIR/bin
6743 ;;
e8b05380 6744 *-*-hpux* | \
e8b05380 6745 *-*-nto-qnx* | \
6de66370 6746 *-*-solaris2*)
e8b05380
PB
6747 md_exec_prefix=/usr/ccs/bin
6748 ;;
6749esac
6750
671aa708
NN
6751extra_arflags_for_target=
6752extra_nmflags_for_target=
6753extra_ranlibflags_for_target=
6754target_makefile_frag=/dev/null
6755case "${target}" in
58e24147
AM
6756 spu-*-*)
6757 target_makefile_frag="config/mt-spu"
6758 ;;
d91491e5 6759 mips*-sde-elf* | mips*-mti-elf*)
4bf6c438
RS
6760 target_makefile_frag="config/mt-sde"
6761 ;;
1ec3b87b
RS
6762 mipsisa*-*-elfoabi*)
6763 target_makefile_frag="config/mt-mips-elfoabi"
6764 ;;
08d0963a
RS
6765 mips*-*-*linux* | mips*-*-gnu*)
6766 target_makefile_frag="config/mt-mips-gnu"
6767 ;;
416ac4d4 6768 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6769 target_makefile_frag="config/mt-gnu"
671aa708
NN
6770 ;;
6771 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6772 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6773 # commands to handle both 32-bit and 64-bit objects. These flags are
6774 # harmless if we're using GNU nm or ar.
6775 extra_arflags_for_target=" -X32_64"
6776 extra_nmflags_for_target=" -B -X32_64"
6777 ;;
671aa708
NN
6778esac
6779
6780alphaieee_frag=/dev/null
6781case $target in
6782 alpha*-*-*)
6783 # This just makes sure to use the -mieee option to build target libs.
6784 # This should probably be set individually by each library.
6785 alphaieee_frag="config/mt-alphaieee"
6786 ;;
6787esac
6788
6789# If --enable-target-optspace always use -Os instead of -O2 to build
6790# the target libraries, similarly if it is not specified, use -Os
6791# on selected platforms.
6792ospace_frag=/dev/null
6793case "${enable_target_optspace}:${target}" in
6794 yes:*)
6795 ospace_frag="config/mt-ospace"
6796 ;;
6797 :d30v-*)
6798 ospace_frag="config/mt-d30v"
6799 ;;
6800 :m32r-* | :d10v-* | :fr30-*)
6801 ospace_frag="config/mt-ospace"
6802 ;;
6803 no:* | :*)
6804 ;;
6805 *)
6806 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6807 ;;
6808esac
6809
671aa708
NN
6810# Some systems (e.g., one of the i386-aix systems the gas testers are
6811# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6812tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6813build_tooldir=${tooldir}
6814
671aa708
NN
6815# Create a .gdbinit file which runs the one in srcdir
6816# and tells GDB to look there for source files.
6817
6818if test -r ${srcdir}/.gdbinit ; then
6819 case ${srcdir} in
6820 .) ;;
6821 *) cat > ./.gdbinit <<EOF
6822# ${NO_EDIT}
6823dir ${srcdir}
6824dir .
6825source ${srcdir}/.gdbinit
6826EOF
6827 ;;
6828 esac
6829fi
6830
671aa708
NN
6831# Make sure that the compiler is able to generate an executable. If it
6832# can't, we are probably in trouble. We don't care whether we can run the
6833# executable--we might be using a cross compiler--we only care whether it
6834# can be created. At this point the main configure script has set CC.
6835we_are_ok=no
6836echo "int main () { return 0; }" > conftest.c
6837${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6838if test $? = 0 ; then
6839 if test -s conftest || test -s conftest.exe ; then
6840 we_are_ok=yes
6841 fi
1c710c3c 6842fi
671aa708
NN
6843case $we_are_ok in
6844 no)
6845 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6846 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6847 rm -f conftest*
6848 exit 1
6849 ;;
6850esac
6851rm -f conftest*
6852
d89f0ad6 6853# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6854case "${host}" in
6855 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6856 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6857 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6858 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6859esac
6860
d89f0ad6
AL
6861# On systems where the dynamic library environment variable is PATH,
6862# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6863# built executables to PATH.
6864if test "$RPATH_ENVVAR" = PATH; then
6865 GCC_SHLIB_SUBDIR=/shlib
6866else
6867 GCC_SHLIB_SUBDIR=
6868fi
6869
671aa708
NN
6870# Record target_configdirs and the configure arguments for target and
6871# build configuration in Makefile.
6872target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6873build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6874
ad1e5170
JR
6875# If we are building libgomp, bootstrap it.
6876if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6877 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6878fi
6879
671aa708
NN
6880# Determine whether gdb needs tk/tcl or not.
6881# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6882# and in that case we want gdb to be built without tk. Ugh!
6883# In fact I believe gdb is the *only* package directly dependent on tk,
6884# so we should be able to put the 'maybe's in unconditionally and
6885# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6886# 100% sure that that's safe though.
e914a571 6887
b4f96efe 6888gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6889case "$enable_gdbtk" in
6890 no)
6891 GDB_TK="" ;;
e914a571
AC
6892 yes)
6893 GDB_TK="${gdb_tk}" ;;
671aa708 6894 *)
e914a571
AC
6895 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6896 # distro. Eventually someone will fix this and move Insight, nee
6897 # gdbtk to a separate directory.
6898 if test -d ${srcdir}/gdb/gdbtk ; then
6899 GDB_TK="${gdb_tk}"
6900 else
6901 GDB_TK=""
6902 fi
6903 ;;
671aa708 6904esac
ef9db8d5
DJ
6905CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6906INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6907
60975492 6908# Strip out unwanted targets.
8b87bb96
NN
6909
6910# While at that, we remove Makefiles if we were started for recursive
6911# configuration, so that the top-level Makefile reconfigures them,
6912# like we used to do when configure itself was recursive.
8b87bb96 6913
3e54529c
RW
6914# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6915# but now we're fixing up the Makefile ourselves with the additional
6916# commands passed to AC_CONFIG_FILES. Use separate variables
6917# extrasub-{build,host,target} not because there is any reason to split
6918# the substitutions up that way, but only to remain below the limit of
6919# 99 commands in a script, for HP-UX sed.
6920# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6921
79cd2b23
RW
6922case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6923 yes:yes:*\ gold\ *:*,c++,*) ;;
6924 yes:yes:*\ gold\ *:*)
6925 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6926 ;;
6927esac
6928
ce521a9c 6929# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 6930case $enable_bootstrap in
f516a7da 6931 yes)
e12c4094
AO
6932 bootstrap_suffix=bootstrap
6933 BUILD_CONFIG=bootstrap-debug
6934 ;;
f516a7da 6935 no)
e12c4094
AO
6936 bootstrap_suffix=no-bootstrap
6937 BUILD_CONFIG=
6938 ;;
f516a7da
PB
6939esac
6940
e12c4094
AO
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6942$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
6943
6944
6945# Check whether --with-build-config was given.
6946if test "${with_build_config+set}" = set; then :
6947 withval=$with_build_config; case $with_build_config in
6948 yes) with_build_config= ;;
6949 no) with_build_config= BUILD_CONFIG= ;;
6950 esac
6951fi
6952
6953
e12c4094
AO
6954if test "x${with_build_config}" != x; then
6955 BUILD_CONFIG=$with_build_config
6956else
6957 case $BUILD_CONFIG in
6958 bootstrap-debug)
6959 if echo "int f (void) { return 0; }" > conftest.c &&
6960 ${CC} -c conftest.c &&
6961 mv conftest.o conftest.o.g0 &&
6962 ${CC} -c -g conftest.c &&
6963 mv conftest.o conftest.o.g &&
615c8ffa 6964 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
6965 :
6966 else
6967 BUILD_CONFIG=
6968 fi
6969 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6970 ;;
6971 esac
6972fi
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6974$as_echo "$BUILD_CONFIG" >&6; }
6975
6976
3e54529c 6977extrasub_build=
23f6b2f9 6978for module in ${build_configdirs} ; do
5607edfd
PB
6979 if test -z "${no_recursion}" \
6980 && test -f ${build_subdir}/${module}/Makefile; then
6981 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6982 rm -f ${build_subdir}/${module}/Makefile
6983 fi
3e54529c 6984 extrasub_build="$extrasub_build
5607edfd
PB
6985/^@if build-$module\$/d
6986/^@endif build-$module\$/d
6987/^@if build-$module-$bootstrap_suffix\$/d
6988/^@endif build-$module-$bootstrap_suffix\$/d"
6989done
3e54529c 6990extrasub_host=
5607edfd 6991for module in ${configdirs} ; do
a6fbc1e2 6992 if test -z "${no_recursion}"; then
f063a9ed 6993 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
6994 if test -f ${file}; then
6995 echo 1>&2 "*** removing ${file} to force reconfigure"
6996 rm -f ${file}
6997 fi
6998 done
5607edfd 6999 fi
3e54529c 7000 extrasub_host="$extrasub_host
5607edfd
PB
7001/^@if $module\$/d
7002/^@endif $module\$/d
7003/^@if $module-$bootstrap_suffix\$/d
7004/^@endif $module-$bootstrap_suffix\$/d"
7005done
3e54529c 7006extrasub_target=
5607edfd
PB
7007for module in ${target_configdirs} ; do
7008 if test -z "${no_recursion}" \
7009 && test -f ${target_subdir}/${module}/Makefile; then
7010 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7011 rm -f ${target_subdir}/${module}/Makefile
7012 fi
00020c16
ILT
7013
7014 # We only bootstrap target libraries listed in bootstrap_target_libs.
7015 case $bootstrap_target_libs in
7016 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7017 *) target_bootstrap_suffix=no-bootstrap ;;
7018 esac
7019
3e54529c 7020 extrasub_target="$extrasub_target
5607edfd
PB
7021/^@if target-$module\$/d
7022/^@endif target-$module\$/d
00020c16
ILT
7023/^@if target-$module-$target_bootstrap_suffix\$/d
7024/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7025done
7026
3e54529c
RW
7027# Do the final fixup along with target modules.
7028extrasub_target="$extrasub_target
60975492 7029/^@if /,/^@endif /d"
671aa708
NN
7030
7031# Create the serialization dependencies. This uses a temporary file.
7032
5213506e
RW
7033# Check whether --enable-serial-configure was given.
7034if test "${enable_serial_configure+set}" = set; then :
7035 enableval=$enable_serial_configure;
7036fi
ade82b16
AO
7037
7038
bf1d3e81
NN
7039case ${enable_serial_configure} in
7040 yes)
7041 enable_serial_build_configure=yes
7042 enable_serial_host_configure=yes
7043 enable_serial_target_configure=yes
7044 ;;
7045esac
7046
671aa708
NN
7047# These force 'configure's to be done one at a time, to avoid problems
7048# with contention over a shared config.cache.
7049rm -f serdep.tmp
ade82b16 7050echo '# serdep.tmp' > serdep.tmp
671aa708 7051olditem=
bf1d3e81 7052test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7053for item in ${build_configdirs} ; do
7054 case ${olditem} in
7055 "") ;;
ade82b16 7056 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7057 esac
7058 olditem=${item}
7059done
7060olditem=
bf1d3e81 7061test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7062for item in ${configdirs} ; do
7063 case ${olditem} in
7064 "") ;;
ade82b16 7065 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7066 esac
7067 olditem=${item}
7068done
7069olditem=
bf1d3e81 7070test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7071for item in ${target_configdirs} ; do
7072 case ${olditem} in
7073 "") ;;
ade82b16 7074 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7075 esac
7076 olditem=${item}
7077done
7078serialization_dependencies=serdep.tmp
7079
7080
ade82b16 7081# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7082# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7083# might not want to pass down to subconfigures. The exception being
7084# --cache-file=/dev/null, which is used to turn off the use of cache
7085# files altogether, and which should be passed on to subconfigures.
7086# Also strip program-prefix, program-suffix, and program-transform-name,
7087# so that we can pass down a consistent program-transform-name.
1c710c3c 7088baseargs=
29a63921 7089tbaseargs=
1c710c3c
DJ
7090keep_next=no
7091skip_next=no
7092eval "set -- $ac_configure_args"
44bfc3ac
DJ
7093for ac_arg
7094do
1c710c3c
DJ
7095 if test X"$skip_next" = X"yes"; then
7096 skip_next=no
7097 continue
7098 fi
7099 if test X"$keep_next" = X"yes"; then
7100 case $ac_arg in
7101 *\'*)
7102 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7103 esac
7104 baseargs="$baseargs '$ac_arg'"
29a63921 7105 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7106 keep_next=no
7107 continue
7108 fi
7109
7110 # Handle separated arguments. Based on the logic generated by
7111 # autoconf 2.59.
7112 case $ac_arg in
7113 *=* | --config-cache | -C | -disable-* | --disable-* \
7114 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7115 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7116 | -with-* | --with-* | -without-* | --without-* | --x)
7117 separate_arg=no
7118 ;;
7119 -*)
7120 separate_arg=yes
7121 ;;
7122 *)
7123 separate_arg=no
7124 ;;
7125 esac
7126
29a63921
AO
7127 skip_targ=no
7128 case $ac_arg in
7129
7130 --with-* | --without-*)
7131 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7132
7133 case $libopt in
7134 *[-_]include)
7135 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7136 ;;
7137 *[-_]lib)
7138 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7139 ;;
7140 *)
7141 lib=$libopt
7142 ;;
7143 esac
7144
7145
7146 case $lib in
33ad93b9 7147 mpc | mpfr | gmp | cloog)
29a63921
AO
7148 # If we're processing --with-$lib, --with-$lib-include or
7149 # --with-$lib-lib, for one of the libs above, and target is
7150 # different from host, don't pass the current argument to any
7151 # target library's configure.
7152 if test x$is_cross_compiler = xyes; then
7153 skip_targ=yes
7154 fi
7155 ;;
7156 esac
7157 ;;
7158 esac
7159
1c710c3c 7160 case "$ac_arg" in
f1a036e4
NC
7161 --cache-file=/dev/null | \
7162 -cache-file=/dev/null )
7163 # Handled here to avoid the test to skip args below.
7164 baseargs="$baseargs '$ac_arg'"
29a63921 7165 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7166 # Assert: $separate_arg should always be no.
7167 keep_next=$separate_arg
7168 ;;
1c710c3c
DJ
7169 --no*)
7170 continue
7171 ;;
7172 --c* | \
7173 --sr* | \
7174 --ho* | \
7175 --bu* | \
7176 --t* | \
7177 --program-* | \
7178 -cache_file* | \
7179 -srcdir* | \
7180 -host* | \
7181 -build* | \
7182 -target* | \
7183 -program-prefix* | \
7184 -program-suffix* | \
7185 -program-transform-name* )
7186 skip_next=$separate_arg
7187 continue
7188 ;;
7189 -*)
7190 # An option. Add it.
7191 case $ac_arg in
7192 *\'*)
7193 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7194 esac
7195 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7196 if test X"$skip_targ" = Xno; then
7197 tbaseargs="$tbaseargs '$ac_arg'"
7198 fi
1c710c3c
DJ
7199 keep_next=$separate_arg
7200 ;;
7201 *)
7202 # Either a variable assignment, or a nonopt (triplet). Don't
7203 # pass it down; let the Makefile handle this.
7204 continue
7205 ;;
7206 esac
7207done
7208# Remove the initial space we just introduced and, as these will be
7209# expanded by make, quote '$'.
7210baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7211
43bb47c2
DJ
7212# Add in --program-transform-name, after --program-prefix and
7213# --program-suffix have been applied to it. Autoconf has already
7214# doubled dollar signs and backslashes in program_transform_name; we want
7215# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7216# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7217# Also, because we want to override the logic in subdir configure scripts to
7218# choose program_transform_name, replace any s,x,x, with s,y,y,.
7219sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7220${program_transform_name}
7221EOF_SED
7222gcc_transform_name=`cat conftestsed.out`
7223rm -f conftestsed.out
7224baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7225tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7226if test "$silent" = yes; then
7227 baseargs="$baseargs --silent"
29a63921 7228 tbaseargs="$tbaseargs --silent"
d9acb717 7229fi
0115d4a3 7230baseargs="$baseargs --disable-option-checking"
29a63921 7231tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7232
ffedf511
RW
7233# Record and document user additions to sub configure arguments.
7234
7235
7236
7237
671aa708
NN
7238# For the build-side libraries, we just need to pretend we're native,
7239# and not use the same cache file. Multilibs are neither needed nor
7240# desired.
ffedf511 7241build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7242
7243# For host modules, accept cache file option, or specification as blank.
7244case "${cache_file}" in
7245"") # empty
7246 cache_file_option="" ;;
7247/* | [A-Za-z]:[\\/]* ) # absolute path
7248 cache_file_option="--cache-file=${cache_file}" ;;
7249*) # relative path
7250 cache_file_option="--cache-file=../${cache_file}" ;;
7251esac
7252
09438bde
NN
7253# Host dirs don't like to share a cache file either, horribly enough.
7254# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7255host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7256
29a63921 7257target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7258
7259# Passing a --with-cross-host argument lets the target libraries know
7260# whether they are being built with a cross-compiler or being built
7261# native. However, it would be better to use other mechanisms to make the
7262# sorts of decisions they want to make on this basis. Please consider
7263# this option to be deprecated. FIXME.
7264if test x${is_cross_compiler} = xyes ; then
1c710c3c 7265 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7266fi
7267
dc683a3f
RW
7268# Default to --enable-multilib.
7269if test x${enable_multilib} = x ; then
671aa708 7270 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7271fi
671aa708
NN
7272
7273# Pass --with-newlib if appropriate. Note that target_configdirs has
7274# changed from the earlier setting of with_newlib.
7275if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7276 target_configargs="--with-newlib ${target_configargs}"
7277fi
7278
6b9eb62c
NN
7279# Different target subdirs use different values of certain variables
7280# (notably CXX). Worse, multilibs use *lots* of different values.
7281# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7282# it doesn't automatically accept command-line overrides of them.
7283# This means it's not safe for target subdirs to share a cache file,
7284# which is disgusting, but there you have it. Hopefully this can be
7285# fixed in future. It's still worthwhile to use a cache file for each
7286# directory. I think.
7287
bebcd931
MS
7288# Pass the appropriate --build, --host, --target and --cache-file arguments.
7289# We need to pass --target, as newer autoconf's requires consistency
7290# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7291target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7292
671aa708
NN
7293FLAGS_FOR_TARGET=
7294case " $target_configdirs " in
7295 *" newlib "*)
7296 case " $target_configargs " in
7297 *" --with-newlib "*)
7298 case "$target" in
5d571eaa
OS
7299 *-cygwin*)
7300 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'
7301 ;;
671aa708
NN
7302 esac
7303
7304 # If we're not building GCC, don't discard standard headers.
7305 if test -d ${srcdir}/gcc; then
7306 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7307
7308 if test "${build}" != "${host}"; then
7309 # On Canadian crosses, CC_FOR_TARGET will have already been set
7310 # by `configure', so we won't have an opportunity to add -Bgcc/
7311 # to it. This is right: we don't want to search that directory
7312 # for binaries, but we want the header files in there, so add
7313 # them explicitly.
0463992b 7314 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7315
7316 # Someone might think of using the pre-installed headers on
7317 # Canadian crosses, in case the installed compiler is not fully
7318 # compatible with the compiler being built. In this case, it
7319 # would be better to flag an error than risking having
7320 # incompatible object files being constructed. We can't
7321 # guarantee that an error will be flagged, but let's hope the
7322 # compiler will do it, when presented with incompatible header
7323 # files.
7324 fi
7325 fi
7326
7327 case "${target}-${is_cross_compiler}" in
f2a0e225 7328 i[3456789]86-*-linux*-no)
671aa708
NN
7329 # Here host == target, so we don't need to build gcc,
7330 # so we don't want to discard standard headers.
7331 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7332 ;;
7333 *)
7334 # If we're building newlib, use its generic headers last, but search
7335 # for any libc-related directories first (so make it the last -B
7336 # switch).
7337 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7338
7339 # If we're building libgloss, find the startup file, simulator library
7340 # and linker script.
7341 case " $target_configdirs " in
7342 *" libgloss "*)
7343 # Look for startup file, simulator library and maybe linker script.
7344 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7345 # Look for libnosys.a in case the target needs it.
7346 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7347 # Most targets have the linker script in the source directory.
7348 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7349 ;;
7350 esac
671aa708
NN
7351 ;;
7352 esac
7353 ;;
7354 esac
7355 ;;
7356esac
5d571eaa 7357
b91f0a41 7358case "$target" in
5d571eaa
OS
7359 x86_64-*mingw* | *-w64-mingw*)
7360 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7361 # however, use a symlink named 'mingw' in ${prefix} .
7362 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7363 ;;
7364 *-mingw*)
7365 # MinGW can't be handled as Cygwin above since it does not use newlib.
7366 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'
7367 ;;
b91f0a41 7368esac
671aa708 7369
6691a79e
ME
7370# Allow the user to override the flags for
7371# our build compiler if desired.
f019adc1
MF
7372if test x"${build}" = x"${host}" ; then
7373 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7374 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7375 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7376fi
6691a79e 7377
671aa708
NN
7378# On Canadian crosses, we'll be searching the right directories for
7379# the previously-installed cross compiler, so don't bother to add
7380# flags for directories within the install tree of the compiler
7381# being built; programs in there won't even run.
7382if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7383 # Search for pre-installed headers if nothing else fits.
9124bc53 7384 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7385fi
7386
7387if test "x${use_gnu_ld}" = x &&
7388 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7389 # Arrange for us to find uninstalled linker scripts.
215c351a 7390 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7391fi
7392
e88a2c09
DD
7393# Search for other target-specific linker scripts and such.
7394case "${target}" in
3e19841a
PB
7395 mep*)
7396 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7397 ;;
e88a2c09
DD
7398esac
7399
671aa708 7400# Makefile fragments.
7b61653a
PE
7401for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7402do
7403 eval fragval=\$$frag
7404 if test $fragval != /dev/null; then
7405 eval $frag=${srcdir}/$fragval
7406 fi
7407done
671aa708
NN
7408
7409
7410
7411
7412
7413# Miscellanea: directories, flags, etc.
7414
7415
7416
7417
7418
7419
7420
d89f0ad6 7421
23f6b2f9 7422# Build module lists & subconfigure args.
671aa708
NN
7423
7424
7425
2abefe3d
PB
7426# Host module lists & subconfigure args.
7427
7428
7429
aae29963 7430
2abefe3d
PB
7431# Target module lists & subconfigure args.
7432
7433
7434
7435# Build tools.
7436
7437
7438
0999159b
PB
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
2abefe3d
PB
7453# Generate default definitions for YACC, M4, LEX and other programs that run
7454# on the build machine. These are used if the Makefile can't locate these
7455# programs in objdir.
7456MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7457
7458for ac_prog in 'bison -y' byacc yacc
7459do
1c710c3c 7460 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7461set dummy $ac_prog; ac_word=$2
5213506e
RW
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463$as_echo_n "checking for $ac_word... " >&6; }
7464if test "${ac_cv_prog_YACC+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
2abefe3d
PB
7466else
7467 if test -n "$YACC"; then
7468 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7469else
1c710c3c
DJ
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
5213506e
RW
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7477 ac_cv_prog_YACC="$ac_prog"
5213506e 7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7479 break 2
7480 fi
7481done
5213506e
RW
7482 done
7483IFS=$as_save_IFS
1c710c3c 7484
2abefe3d
PB
7485fi
7486fi
1c710c3c 7487YACC=$ac_cv_prog_YACC
2abefe3d 7488if test -n "$YACC"; then
5213506e
RW
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7490$as_echo "$YACC" >&6; }
2abefe3d 7491else
5213506e
RW
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493$as_echo "no" >&6; }
2abefe3d
PB
7494fi
7495
5213506e 7496
1c710c3c 7497 test -n "$YACC" && break
2abefe3d
PB
7498done
7499test -n "$YACC" || YACC="$MISSING bison -y"
7500
7501case " $build_configdirs " in
7502 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7503esac
7504
7505for ac_prog in bison
7506do
1c710c3c 7507 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7508set dummy $ac_prog; ac_word=$2
5213506e
RW
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510$as_echo_n "checking for $ac_word... " >&6; }
7511if test "${ac_cv_prog_BISON+set}" = set; then :
7512 $as_echo_n "(cached) " >&6
2abefe3d
PB
7513else
7514 if test -n "$BISON"; then
7515 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7516else
1c710c3c
DJ
7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
5213506e
RW
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7524 ac_cv_prog_BISON="$ac_prog"
5213506e 7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7526 break 2
7527 fi
7528done
5213506e
RW
7529 done
7530IFS=$as_save_IFS
1c710c3c 7531
2abefe3d
PB
7532fi
7533fi
1c710c3c 7534BISON=$ac_cv_prog_BISON
2abefe3d 7535if test -n "$BISON"; then
5213506e
RW
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7537$as_echo "$BISON" >&6; }
2abefe3d 7538else
5213506e
RW
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540$as_echo "no" >&6; }
2abefe3d
PB
7541fi
7542
5213506e 7543
1c710c3c 7544 test -n "$BISON" && break
2abefe3d
PB
7545done
7546test -n "$BISON" || BISON="$MISSING bison"
7547
7548case " $build_configdirs " in
7549 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7550esac
7551
7552for ac_prog in gm4 gnum4 m4
7553do
1c710c3c 7554 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7555set dummy $ac_prog; ac_word=$2
5213506e
RW
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557$as_echo_n "checking for $ac_word... " >&6; }
7558if test "${ac_cv_prog_M4+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
2abefe3d
PB
7560else
7561 if test -n "$M4"; then
7562 ac_cv_prog_M4="$M4" # Let the user override the test.
7563else
1c710c3c
DJ
7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
5213506e
RW
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7571 ac_cv_prog_M4="$ac_prog"
5213506e 7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7573 break 2
7574 fi
7575done
5213506e
RW
7576 done
7577IFS=$as_save_IFS
1c710c3c 7578
2abefe3d
PB
7579fi
7580fi
1c710c3c 7581M4=$ac_cv_prog_M4
2abefe3d 7582if test -n "$M4"; then
5213506e
RW
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7584$as_echo "$M4" >&6; }
2abefe3d 7585else
5213506e
RW
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587$as_echo "no" >&6; }
2abefe3d
PB
7588fi
7589
5213506e 7590
1c710c3c 7591 test -n "$M4" && break
2abefe3d
PB
7592done
7593test -n "$M4" || M4="$MISSING m4"
7594
7595case " $build_configdirs " in
7596 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7597esac
7598
7599for ac_prog in flex lex
7600do
1c710c3c 7601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7602set dummy $ac_prog; ac_word=$2
5213506e
RW
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604$as_echo_n "checking for $ac_word... " >&6; }
7605if test "${ac_cv_prog_LEX+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
2abefe3d
PB
7607else
7608 if test -n "$LEX"; then
7609 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7610else
1c710c3c
DJ
7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
5213506e
RW
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7618 ac_cv_prog_LEX="$ac_prog"
5213506e 7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7620 break 2
7621 fi
7622done
5213506e
RW
7623 done
7624IFS=$as_save_IFS
1c710c3c 7625
2abefe3d
PB
7626fi
7627fi
1c710c3c 7628LEX=$ac_cv_prog_LEX
2abefe3d 7629if test -n "$LEX"; then
5213506e
RW
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7631$as_echo "$LEX" >&6; }
2abefe3d 7632else
5213506e
RW
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634$as_echo "no" >&6; }
2abefe3d
PB
7635fi
7636
5213506e 7637
1c710c3c 7638 test -n "$LEX" && break
2abefe3d
PB
7639done
7640test -n "$LEX" || LEX="$MISSING flex"
7641
7642case " $build_configdirs " in
7643 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7644 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7645esac
7646
7647for ac_prog in flex
7648do
1c710c3c 7649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7650set dummy $ac_prog; ac_word=$2
5213506e
RW
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652$as_echo_n "checking for $ac_word... " >&6; }
7653if test "${ac_cv_prog_FLEX+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
2abefe3d
PB
7655else
7656 if test -n "$FLEX"; then
7657 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7658else
1c710c3c
DJ
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
5213506e
RW
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7666 ac_cv_prog_FLEX="$ac_prog"
5213506e 7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7668 break 2
7669 fi
7670done
5213506e
RW
7671 done
7672IFS=$as_save_IFS
1c710c3c 7673
2abefe3d
PB
7674fi
7675fi
1c710c3c 7676FLEX=$ac_cv_prog_FLEX
2abefe3d 7677if test -n "$FLEX"; then
5213506e
RW
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7679$as_echo "$FLEX" >&6; }
2abefe3d 7680else
5213506e
RW
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682$as_echo "no" >&6; }
2abefe3d
PB
7683fi
7684
5213506e 7685
1c710c3c 7686 test -n "$FLEX" && break
2abefe3d
PB
7687done
7688test -n "$FLEX" || FLEX="$MISSING flex"
7689
7690case " $build_configdirs " in
7691 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7692esac
7693
7694for ac_prog in makeinfo
7695do
1c710c3c 7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7697set dummy $ac_prog; ac_word=$2
5213506e
RW
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699$as_echo_n "checking for $ac_word... " >&6; }
7700if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
2abefe3d
PB
7702else
7703 if test -n "$MAKEINFO"; then
7704 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7705else
1c710c3c
DJ
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
5213506e
RW
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7713 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7715 break 2
7716 fi
7717done
5213506e
RW
7718 done
7719IFS=$as_save_IFS
1c710c3c 7720
2abefe3d
PB
7721fi
7722fi
1c710c3c 7723MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7724if test -n "$MAKEINFO"; then
5213506e
RW
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7726$as_echo "$MAKEINFO" >&6; }
2abefe3d 7727else
5213506e
RW
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729$as_echo "no" >&6; }
2abefe3d
PB
7730fi
7731
5213506e 7732
1c710c3c 7733 test -n "$MAKEINFO" && break
2abefe3d
PB
7734done
7735test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7736
7737case " $build_configdirs " in
7738 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7739 *)
7740
d18ff35a 7741 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7742 # higher, else we use the "missing" dummy.
7743 if ${MAKEINFO} --version \
d18ff35a 7744 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7745 :
7746 else
7747 MAKEINFO="$MISSING makeinfo"
7748 fi
7749 ;;
7750
7751esac
671aa708 7752
2abefe3d 7753# FIXME: expect and dejagnu may become build tools?
671aa708 7754
2abefe3d
PB
7755for ac_prog in expect
7756do
1c710c3c 7757 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7758set dummy $ac_prog; ac_word=$2
5213506e
RW
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760$as_echo_n "checking for $ac_word... " >&6; }
7761if test "${ac_cv_prog_EXPECT+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
2abefe3d
PB
7763else
7764 if test -n "$EXPECT"; then
7765 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7766else
1c710c3c
DJ
7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
5213506e
RW
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7774 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7776 break 2
7777 fi
7778done
5213506e
RW
7779 done
7780IFS=$as_save_IFS
1c710c3c 7781
2abefe3d
PB
7782fi
7783fi
1c710c3c 7784EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7785if test -n "$EXPECT"; then
5213506e
RW
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7787$as_echo "$EXPECT" >&6; }
2abefe3d 7788else
5213506e
RW
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790$as_echo "no" >&6; }
2abefe3d 7791fi
671aa708 7792
5213506e 7793
1c710c3c 7794 test -n "$EXPECT" && break
2abefe3d
PB
7795done
7796test -n "$EXPECT" || EXPECT="expect"
671aa708 7797
2abefe3d
PB
7798case " $configdirs " in
7799 *" expect "*)
7800 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7801 ;;
7802esac
671aa708 7803
2abefe3d
PB
7804for ac_prog in runtest
7805do
1c710c3c 7806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7807set dummy $ac_prog; ac_word=$2
5213506e
RW
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809$as_echo_n "checking for $ac_word... " >&6; }
7810if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7811 $as_echo_n "(cached) " >&6
2abefe3d
PB
7812else
7813 if test -n "$RUNTEST"; then
7814 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7815else
1c710c3c
DJ
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
5213506e
RW
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7823 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7825 break 2
7826 fi
7827done
5213506e
RW
7828 done
7829IFS=$as_save_IFS
1c710c3c 7830
2abefe3d
PB
7831fi
7832fi
1c710c3c 7833RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7834if test -n "$RUNTEST"; then
5213506e
RW
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7836$as_echo "$RUNTEST" >&6; }
2abefe3d 7837else
5213506e
RW
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
2abefe3d 7840fi
671aa708 7841
5213506e 7842
1c710c3c 7843 test -n "$RUNTEST" && break
2abefe3d
PB
7844done
7845test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7846
2abefe3d
PB
7847case " $configdirs " in
7848 *" dejagnu "*)
c394e891 7849 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7850 ;;
7851esac
671aa708
NN
7852
7853
671aa708 7854# Host tools.
ca9f4b81
AO
7855ncn_tool_prefix=
7856test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7857ncn_target_tool_prefix=
7858test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7859
278a7a38
AO
7860
7861
7862if test -n "$AR"; then
7863 ac_cv_prog_AR=$AR
7864elif test -n "$ac_cv_prog_AR"; then
7865 AR=$ac_cv_prog_AR
7866fi
7867
7868if test -n "$ac_cv_prog_AR"; then
7869 for ncn_progname in ar; do
7870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7871set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873$as_echo_n "checking for $ac_word... " >&6; }
7874if test "${ac_cv_prog_AR+set}" = set; then :
7875 $as_echo_n "(cached) " >&6
278a7a38
AO
7876else
7877 if test -n "$AR"; then
7878 ac_cv_prog_AR="$AR" # Let the user override the test.
7879else
7880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881for as_dir in $PATH
7882do
7883 IFS=$as_save_IFS
7884 test -z "$as_dir" && as_dir=.
5213506e
RW
7885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7887 ac_cv_prog_AR="${ncn_progname}"
5213506e 7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7889 break 2
7890 fi
7891done
5213506e
RW
7892 done
7893IFS=$as_save_IFS
278a7a38
AO
7894
7895fi
7896fi
7897AR=$ac_cv_prog_AR
7898if test -n "$AR"; then
5213506e
RW
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7900$as_echo "$AR" >&6; }
278a7a38 7901else
5213506e
RW
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903$as_echo "no" >&6; }
278a7a38
AO
7904fi
7905
5213506e 7906
278a7a38
AO
7907 done
7908fi
7909
7910for ncn_progname in ar; do
2693c0b0
PB
7911 if test -n "$ncn_tool_prefix"; then
7912 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7913set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915$as_echo_n "checking for $ac_word... " >&6; }
7916if test "${ac_cv_prog_AR+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7918else
7919 if test -n "$AR"; then
7920 ac_cv_prog_AR="$AR" # Let the user override the test.
7921else
1c710c3c
DJ
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
5213506e
RW
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7929 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7931 break 2
7932 fi
7933done
5213506e
RW
7934 done
7935IFS=$as_save_IFS
1c710c3c 7936
ca9f4b81
AO
7937fi
7938fi
1c710c3c 7939AR=$ac_cv_prog_AR
ca9f4b81 7940if test -n "$AR"; then
5213506e
RW
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7942$as_echo "$AR" >&6; }
ca9f4b81 7943else
5213506e
RW
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
ca9f4b81
AO
7946fi
7947
5213506e 7948
2693c0b0
PB
7949 fi
7950 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7952set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954$as_echo_n "checking for $ac_word... " >&6; }
7955if test "${ac_cv_prog_AR+set}" = set; then :
7956 $as_echo_n "(cached) " >&6
ca9f4b81 7957else
2693c0b0 7958 if test -n "$AR"; then
af71363e
AS
7959 ac_cv_prog_AR="$AR" # Let the user override the test.
7960else
1c710c3c
DJ
7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
5213506e
RW
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7968 ac_cv_prog_AR="${ncn_progname}"
5213506e 7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7970 break 2
7971 fi
7972done
5213506e
RW
7973 done
7974IFS=$as_save_IFS
1c710c3c 7975
ca9f4b81
AO
7976fi
7977fi
1c710c3c 7978AR=$ac_cv_prog_AR
2693c0b0 7979if test -n "$AR"; then
5213506e
RW
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7981$as_echo "$AR" >&6; }
ca9f4b81 7982else
5213506e
RW
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984$as_echo "no" >&6; }
ca9f4b81 7985fi
1c710c3c 7986
5213506e 7987
2693c0b0
PB
7988 fi
7989 test -n "$ac_cv_prog_AR" && break
7990done
7991
7992if test -z "$ac_cv_prog_AR" ; then
7993 set dummy ar
7994 if test $build = $host ; then
7995 AR="$2"
ca9f4b81 7996 else
2693c0b0 7997 AR="${ncn_tool_prefix}$2"
ca9f4b81 7998 fi
ca9f4b81
AO
7999fi
8000
278a7a38
AO
8001
8002
8003if test -n "$AS"; then
8004 ac_cv_prog_AS=$AS
8005elif test -n "$ac_cv_prog_AS"; then
8006 AS=$ac_cv_prog_AS
8007fi
8008
8009if test -n "$ac_cv_prog_AS"; then
8010 for ncn_progname in as; do
8011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8012set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014$as_echo_n "checking for $ac_word... " >&6; }
8015if test "${ac_cv_prog_AS+set}" = set; then :
8016 $as_echo_n "(cached) " >&6
278a7a38
AO
8017else
8018 if test -n "$AS"; then
8019 ac_cv_prog_AS="$AS" # Let the user override the test.
8020else
8021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022for as_dir in $PATH
8023do
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
5213506e
RW
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8028 ac_cv_prog_AS="${ncn_progname}"
5213506e 8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8030 break 2
8031 fi
8032done
5213506e
RW
8033 done
8034IFS=$as_save_IFS
278a7a38
AO
8035
8036fi
8037fi
8038AS=$ac_cv_prog_AS
8039if test -n "$AS"; then
5213506e
RW
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8041$as_echo "$AS" >&6; }
278a7a38 8042else
5213506e
RW
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044$as_echo "no" >&6; }
278a7a38
AO
8045fi
8046
5213506e 8047
278a7a38
AO
8048 done
8049fi
8050
8051for ncn_progname in as; do
2693c0b0
PB
8052 if test -n "$ncn_tool_prefix"; then
8053 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8054set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056$as_echo_n "checking for $ac_word... " >&6; }
8057if test "${ac_cv_prog_AS+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8059else
8060 if test -n "$AS"; then
8061 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8062else
1c710c3c
DJ
8063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064for as_dir in $PATH
8065do
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
5213506e
RW
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8070 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8072 break 2
8073 fi
8074done
5213506e
RW
8075 done
8076IFS=$as_save_IFS
1c710c3c 8077
ca9f4b81
AO
8078fi
8079fi
1c710c3c 8080AS=$ac_cv_prog_AS
ca9f4b81 8081if test -n "$AS"; then
5213506e
RW
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8083$as_echo "$AS" >&6; }
ca9f4b81 8084else
5213506e
RW
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086$as_echo "no" >&6; }
ca9f4b81
AO
8087fi
8088
5213506e 8089
2693c0b0
PB
8090 fi
8091 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8093set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095$as_echo_n "checking for $ac_word... " >&6; }
8096if test "${ac_cv_prog_AS+set}" = set; then :
8097 $as_echo_n "(cached) " >&6
ca9f4b81 8098else
2693c0b0
PB
8099 if test -n "$AS"; then
8100 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8101else
1c710c3c
DJ
8102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103for as_dir in $PATH
8104do
8105 IFS=$as_save_IFS
8106 test -z "$as_dir" && as_dir=.
5213506e
RW
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8109 ac_cv_prog_AS="${ncn_progname}"
5213506e 8110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8111 break 2
8112 fi
8113done
5213506e
RW
8114 done
8115IFS=$as_save_IFS
1c710c3c 8116
ca9f4b81
AO
8117fi
8118fi
1c710c3c 8119AS=$ac_cv_prog_AS
2693c0b0 8120if test -n "$AS"; then
5213506e
RW
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8122$as_echo "$AS" >&6; }
ca9f4b81 8123else
5213506e
RW
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125$as_echo "no" >&6; }
ca9f4b81 8126fi
1c710c3c 8127
5213506e 8128
2693c0b0
PB
8129 fi
8130 test -n "$ac_cv_prog_AS" && break
8131done
8132
8133if test -z "$ac_cv_prog_AS" ; then
8134 set dummy as
8135 if test $build = $host ; then
8136 AS="$2"
ca9f4b81 8137 else
2693c0b0 8138 AS="${ncn_tool_prefix}$2"
ca9f4b81 8139 fi
ca9f4b81
AO
8140fi
8141
278a7a38
AO
8142
8143
8144if test -n "$DLLTOOL"; then
8145 ac_cv_prog_DLLTOOL=$DLLTOOL
8146elif test -n "$ac_cv_prog_DLLTOOL"; then
8147 DLLTOOL=$ac_cv_prog_DLLTOOL
8148fi
8149
8150if test -n "$ac_cv_prog_DLLTOOL"; then
8151 for ncn_progname in dlltool; do
8152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8153set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155$as_echo_n "checking for $ac_word... " >&6; }
8156if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
278a7a38
AO
8158else
8159 if test -n "$DLLTOOL"; then
8160 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8161else
8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
5213506e
RW
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8169 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8171 break 2
8172 fi
8173done
5213506e
RW
8174 done
8175IFS=$as_save_IFS
278a7a38
AO
8176
8177fi
8178fi
8179DLLTOOL=$ac_cv_prog_DLLTOOL
8180if test -n "$DLLTOOL"; then
5213506e
RW
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8182$as_echo "$DLLTOOL" >&6; }
278a7a38 8183else
5213506e
RW
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185$as_echo "no" >&6; }
278a7a38
AO
8186fi
8187
5213506e 8188
278a7a38
AO
8189 done
8190fi
8191
8192for ncn_progname in dlltool; do
2693c0b0
PB
8193 if test -n "$ncn_tool_prefix"; then
8194 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8195set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197$as_echo_n "checking for $ac_word... " >&6; }
8198if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8200else
8201 if test -n "$DLLTOOL"; then
8202 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8203else
1c710c3c
DJ
8204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205for as_dir in $PATH
8206do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
5213506e
RW
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8211 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8213 break 2
8214 fi
8215done
5213506e
RW
8216 done
8217IFS=$as_save_IFS
1c710c3c 8218
ca9f4b81
AO
8219fi
8220fi
1c710c3c 8221DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8222if test -n "$DLLTOOL"; then
5213506e
RW
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8224$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8225else
5213506e
RW
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227$as_echo "no" >&6; }
ca9f4b81
AO
8228fi
8229
5213506e 8230
2693c0b0
PB
8231 fi
8232 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8234set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236$as_echo_n "checking for $ac_word... " >&6; }
8237if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
ca9f4b81 8239else
2693c0b0
PB
8240 if test -n "$DLLTOOL"; then
8241 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8242else
1c710c3c
DJ
8243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244for as_dir in $PATH
8245do
8246 IFS=$as_save_IFS
8247 test -z "$as_dir" && as_dir=.
5213506e
RW
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8250 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8252 break 2
8253 fi
8254done
5213506e
RW
8255 done
8256IFS=$as_save_IFS
1c710c3c 8257
ca9f4b81
AO
8258fi
8259fi
1c710c3c 8260DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8261if test -n "$DLLTOOL"; then
5213506e
RW
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8263$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8264else
5213506e
RW
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
ca9f4b81 8267fi
1c710c3c 8268
5213506e 8269
2693c0b0
PB
8270 fi
8271 test -n "$ac_cv_prog_DLLTOOL" && break
8272done
8273
8274if test -z "$ac_cv_prog_DLLTOOL" ; then
8275 set dummy dlltool
8276 if test $build = $host ; then
8277 DLLTOOL="$2"
ca9f4b81 8278 else
2693c0b0 8279 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8280 fi
ca9f4b81
AO
8281fi
8282
278a7a38
AO
8283
8284
8285if test -n "$LD"; then
8286 ac_cv_prog_LD=$LD
8287elif test -n "$ac_cv_prog_LD"; then
8288 LD=$ac_cv_prog_LD
8289fi
8290
8291if test -n "$ac_cv_prog_LD"; then
8292 for ncn_progname in ld; do
8293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8294set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296$as_echo_n "checking for $ac_word... " >&6; }
8297if test "${ac_cv_prog_LD+set}" = set; then :
8298 $as_echo_n "(cached) " >&6
278a7a38
AO
8299else
8300 if test -n "$LD"; then
8301 ac_cv_prog_LD="$LD" # Let the user override the test.
8302else
8303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304for as_dir in $PATH
8305do
8306 IFS=$as_save_IFS
8307 test -z "$as_dir" && as_dir=.
5213506e
RW
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8310 ac_cv_prog_LD="${ncn_progname}"
5213506e 8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8312 break 2
8313 fi
8314done
5213506e
RW
8315 done
8316IFS=$as_save_IFS
278a7a38
AO
8317
8318fi
8319fi
8320LD=$ac_cv_prog_LD
8321if test -n "$LD"; then
5213506e
RW
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8323$as_echo "$LD" >&6; }
278a7a38 8324else
5213506e
RW
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326$as_echo "no" >&6; }
278a7a38
AO
8327fi
8328
5213506e 8329
278a7a38
AO
8330 done
8331fi
8332
8333for ncn_progname in ld; do
2693c0b0
PB
8334 if test -n "$ncn_tool_prefix"; then
8335 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8336set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338$as_echo_n "checking for $ac_word... " >&6; }
8339if test "${ac_cv_prog_LD+set}" = set; then :
8340 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8341else
8342 if test -n "$LD"; then
8343 ac_cv_prog_LD="$LD" # Let the user override the test.
8344else
1c710c3c
DJ
8345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346for as_dir in $PATH
8347do
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
5213506e
RW
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8352 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8354 break 2
8355 fi
8356done
5213506e
RW
8357 done
8358IFS=$as_save_IFS
1c710c3c 8359
ca9f4b81
AO
8360fi
8361fi
1c710c3c 8362LD=$ac_cv_prog_LD
ca9f4b81 8363if test -n "$LD"; then
5213506e
RW
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8365$as_echo "$LD" >&6; }
ca9f4b81 8366else
5213506e
RW
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368$as_echo "no" >&6; }
ca9f4b81
AO
8369fi
8370
5213506e 8371
2693c0b0
PB
8372 fi
8373 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8375set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377$as_echo_n "checking for $ac_word... " >&6; }
8378if test "${ac_cv_prog_LD+set}" = set; then :
8379 $as_echo_n "(cached) " >&6
ca9f4b81 8380else
2693c0b0
PB
8381 if test -n "$LD"; then
8382 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8383else
1c710c3c
DJ
8384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385for as_dir in $PATH
8386do
8387 IFS=$as_save_IFS
8388 test -z "$as_dir" && as_dir=.
5213506e
RW
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8391 ac_cv_prog_LD="${ncn_progname}"
5213506e 8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8393 break 2
8394 fi
8395done
5213506e
RW
8396 done
8397IFS=$as_save_IFS
1c710c3c 8398
ca9f4b81
AO
8399fi
8400fi
1c710c3c 8401LD=$ac_cv_prog_LD
2693c0b0 8402if test -n "$LD"; then
5213506e
RW
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8404$as_echo "$LD" >&6; }
ca9f4b81 8405else
5213506e
RW
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407$as_echo "no" >&6; }
ca9f4b81 8408fi
1c710c3c 8409
5213506e 8410
2693c0b0
PB
8411 fi
8412 test -n "$ac_cv_prog_LD" && break
8413done
8414
8415if test -z "$ac_cv_prog_LD" ; then
8416 set dummy ld
8417 if test $build = $host ; then
8418 LD="$2"
ca9f4b81 8419 else
2693c0b0 8420 LD="${ncn_tool_prefix}$2"
ca9f4b81 8421 fi
ca9f4b81
AO
8422fi
8423
278a7a38
AO
8424
8425
8426if test -n "$LIPO"; then
8427 ac_cv_prog_LIPO=$LIPO
8428elif test -n "$ac_cv_prog_LIPO"; then
8429 LIPO=$ac_cv_prog_LIPO
8430fi
8431
8432if test -n "$ac_cv_prog_LIPO"; then
8433 for ncn_progname in lipo; do
8434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8435set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437$as_echo_n "checking for $ac_word... " >&6; }
8438if test "${ac_cv_prog_LIPO+set}" = set; then :
8439 $as_echo_n "(cached) " >&6
278a7a38
AO
8440else
8441 if test -n "$LIPO"; then
8442 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8443else
8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445for as_dir in $PATH
8446do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
5213506e
RW
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8451 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8453 break 2
8454 fi
8455done
5213506e
RW
8456 done
8457IFS=$as_save_IFS
278a7a38
AO
8458
8459fi
8460fi
8461LIPO=$ac_cv_prog_LIPO
8462if test -n "$LIPO"; then
5213506e
RW
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8464$as_echo "$LIPO" >&6; }
278a7a38 8465else
5213506e
RW
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467$as_echo "no" >&6; }
278a7a38
AO
8468fi
8469
5213506e 8470
278a7a38
AO
8471 done
8472fi
8473
8474for ncn_progname in lipo; do
2abefe3d
PB
8475 if test -n "$ncn_tool_prefix"; then
8476 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8477set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479$as_echo_n "checking for $ac_word... " >&6; }
8480if test "${ac_cv_prog_LIPO+set}" = set; then :
8481 $as_echo_n "(cached) " >&6
2abefe3d
PB
8482else
8483 if test -n "$LIPO"; then
8484 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8485else
1c710c3c
DJ
8486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487for as_dir in $PATH
8488do
8489 IFS=$as_save_IFS
8490 test -z "$as_dir" && as_dir=.
5213506e
RW
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8493 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8495 break 2
8496 fi
8497done
5213506e
RW
8498 done
8499IFS=$as_save_IFS
1c710c3c 8500
2abefe3d
PB
8501fi
8502fi
1c710c3c 8503LIPO=$ac_cv_prog_LIPO
2abefe3d 8504if test -n "$LIPO"; then
5213506e
RW
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8506$as_echo "$LIPO" >&6; }
2abefe3d 8507else
5213506e
RW
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509$as_echo "no" >&6; }
2abefe3d
PB
8510fi
8511
5213506e 8512
2abefe3d
PB
8513 fi
8514 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8516set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518$as_echo_n "checking for $ac_word... " >&6; }
8519if test "${ac_cv_prog_LIPO+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
2abefe3d
PB
8521else
8522 if test -n "$LIPO"; then
8523 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8524else
1c710c3c
DJ
8525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526for as_dir in $PATH
8527do
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
5213506e
RW
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8532 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8534 break 2
8535 fi
8536done
5213506e
RW
8537 done
8538IFS=$as_save_IFS
1c710c3c 8539
2abefe3d
PB
8540fi
8541fi
1c710c3c 8542LIPO=$ac_cv_prog_LIPO
2abefe3d 8543if test -n "$LIPO"; then
5213506e
RW
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8545$as_echo "$LIPO" >&6; }
2abefe3d 8546else
5213506e
RW
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548$as_echo "no" >&6; }
2abefe3d 8549fi
1c710c3c 8550
5213506e 8551
2abefe3d
PB
8552 fi
8553 test -n "$ac_cv_prog_LIPO" && break
8554done
8555
8556if test -z "$ac_cv_prog_LIPO" ; then
8557 set dummy lipo
8558 if test $build = $host ; then
8559 LIPO="$2"
8560 else
8561 LIPO="${ncn_tool_prefix}$2"
8562 fi
8563fi
8564
278a7a38
AO
8565
8566
8567if test -n "$NM"; then
8568 ac_cv_prog_NM=$NM
8569elif test -n "$ac_cv_prog_NM"; then
8570 NM=$ac_cv_prog_NM
8571fi
8572
8573if test -n "$ac_cv_prog_NM"; then
8574 for ncn_progname in nm; do
8575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8576set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578$as_echo_n "checking for $ac_word... " >&6; }
8579if test "${ac_cv_prog_NM+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8581else
8582 if test -n "$NM"; then
8583 ac_cv_prog_NM="$NM" # Let the user override the test.
8584else
1c710c3c
DJ
8585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586for as_dir in $PATH
8587do
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
5213506e
RW
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8592 ac_cv_prog_NM="${ncn_progname}"
5213506e 8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8594 break 2
8595 fi
8596done
5213506e
RW
8597 done
8598IFS=$as_save_IFS
1c710c3c 8599
ca9f4b81
AO
8600fi
8601fi
1c710c3c 8602NM=$ac_cv_prog_NM
ca9f4b81 8603if test -n "$NM"; then
5213506e
RW
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8605$as_echo "$NM" >&6; }
ca9f4b81 8606else
5213506e
RW
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608$as_echo "no" >&6; }
ca9f4b81
AO
8609fi
8610
5213506e 8611
278a7a38
AO
8612 done
8613fi
8614
8615for ncn_progname in nm; do
8616 if test -n "$ncn_tool_prefix"; then
8617 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8618set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620$as_echo_n "checking for $ac_word... " >&6; }
8621if test "${ac_cv_prog_NM+set}" = set; then :
8622 $as_echo_n "(cached) " >&6
ca9f4b81 8623else
2693c0b0
PB
8624 if test -n "$NM"; then
8625 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8626else
1c710c3c
DJ
8627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628for as_dir in $PATH
8629do
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
5213506e
RW
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8634 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8636 break 2
8637 fi
8638done
5213506e
RW
8639 done
8640IFS=$as_save_IFS
1c710c3c 8641
ca9f4b81
AO
8642fi
8643fi
1c710c3c 8644NM=$ac_cv_prog_NM
2693c0b0 8645if test -n "$NM"; then
5213506e
RW
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8647$as_echo "$NM" >&6; }
ca9f4b81 8648else
5213506e
RW
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650$as_echo "no" >&6; }
ca9f4b81 8651fi
1c710c3c 8652
5213506e 8653
2693c0b0 8654 fi
278a7a38
AO
8655 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8657set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8659$as_echo_n "checking for $ac_word... " >&6; }
8660if test "${ac_cv_prog_NM+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
278a7a38
AO
8662else
8663 if test -n "$NM"; then
8664 ac_cv_prog_NM="$NM" # Let the user override the test.
8665else
8666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667for as_dir in $PATH
8668do
8669 IFS=$as_save_IFS
8670 test -z "$as_dir" && as_dir=.
5213506e
RW
8671 for ac_exec_ext in '' $ac_executable_extensions; do
8672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8673 ac_cv_prog_NM="${ncn_progname}"
5213506e 8674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8675 break 2
8676 fi
8677done
5213506e
RW
8678 done
8679IFS=$as_save_IFS
278a7a38
AO
8680
8681fi
8682fi
8683NM=$ac_cv_prog_NM
8684if test -n "$NM"; then
5213506e
RW
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8686$as_echo "$NM" >&6; }
278a7a38 8687else
5213506e
RW
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689$as_echo "no" >&6; }
278a7a38
AO
8690fi
8691
5213506e 8692
278a7a38
AO
8693 fi
8694 test -n "$ac_cv_prog_NM" && break
8695done
8696
8697if test -z "$ac_cv_prog_NM" ; then
8698 set dummy nm
8699 if test $build = $host ; then
8700 NM="$2"
8701 else
8702 NM="${ncn_tool_prefix}$2"
8703 fi
8704fi
8705
8706
8707
8708if test -n "$RANLIB"; then
8709 ac_cv_prog_RANLIB=$RANLIB
8710elif test -n "$ac_cv_prog_RANLIB"; then
8711 RANLIB=$ac_cv_prog_RANLIB
8712fi
8713
8714if test -n "$ac_cv_prog_RANLIB"; then
8715 for ncn_progname in ranlib; do
8716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8717set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719$as_echo_n "checking for $ac_word... " >&6; }
8720if test "${ac_cv_prog_RANLIB+set}" = set; then :
8721 $as_echo_n "(cached) " >&6
278a7a38
AO
8722else
8723 if test -n "$RANLIB"; then
8724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8725else
8726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727for as_dir in $PATH
8728do
8729 IFS=$as_save_IFS
8730 test -z "$as_dir" && as_dir=.
5213506e
RW
8731 for ac_exec_ext in '' $ac_executable_extensions; do
8732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8733 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8735 break 2
8736 fi
8737done
5213506e
RW
8738 done
8739IFS=$as_save_IFS
278a7a38
AO
8740
8741fi
8742fi
8743RANLIB=$ac_cv_prog_RANLIB
8744if test -n "$RANLIB"; then
5213506e
RW
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8746$as_echo "$RANLIB" >&6; }
278a7a38 8747else
5213506e
RW
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749$as_echo "no" >&6; }
278a7a38
AO
8750fi
8751
5213506e 8752
278a7a38
AO
8753 done
8754fi
ca9f4b81 8755
278a7a38 8756for ncn_progname in ranlib; do
2693c0b0
PB
8757 if test -n "$ncn_tool_prefix"; then
8758 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8759set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761$as_echo_n "checking for $ac_word... " >&6; }
8762if test "${ac_cv_prog_RANLIB+set}" = set; then :
8763 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8764else
8765 if test -n "$RANLIB"; then
8766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8767else
1c710c3c
DJ
8768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769for as_dir in $PATH
8770do
8771 IFS=$as_save_IFS
8772 test -z "$as_dir" && as_dir=.
5213506e
RW
8773 for ac_exec_ext in '' $ac_executable_extensions; do
8774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8775 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8777 break 2
8778 fi
8779done
5213506e
RW
8780 done
8781IFS=$as_save_IFS
1c710c3c 8782
ca9f4b81
AO
8783fi
8784fi
1c710c3c 8785RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8786if test -n "$RANLIB"; then
5213506e
RW
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8788$as_echo "$RANLIB" >&6; }
ca9f4b81 8789else
5213506e
RW
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791$as_echo "no" >&6; }
ca9f4b81
AO
8792fi
8793
5213506e 8794
2693c0b0
PB
8795 fi
8796 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8798set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800$as_echo_n "checking for $ac_word... " >&6; }
8801if test "${ac_cv_prog_RANLIB+set}" = set; then :
8802 $as_echo_n "(cached) " >&6
ca9f4b81 8803else
2693c0b0
PB
8804 if test -n "$RANLIB"; then
8805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8806else
1c710c3c
DJ
8807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808for as_dir in $PATH
8809do
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
5213506e
RW
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8814 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8816 break 2
8817 fi
8818done
5213506e
RW
8819 done
8820IFS=$as_save_IFS
1c710c3c 8821
ca9f4b81
AO
8822fi
8823fi
1c710c3c 8824RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8825if test -n "$RANLIB"; then
5213506e
RW
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8827$as_echo "$RANLIB" >&6; }
ca9f4b81 8828else
5213506e
RW
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830$as_echo "no" >&6; }
ca9f4b81 8831fi
1c710c3c 8832
5213506e 8833
ca9f4b81 8834 fi
2693c0b0
PB
8835 test -n "$ac_cv_prog_RANLIB" && break
8836done
8837
8838if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8839 RANLIB="true"
ca9f4b81
AO
8840fi
8841
278a7a38
AO
8842
8843
8844if test -n "$STRIP"; then
8845 ac_cv_prog_STRIP=$STRIP
8846elif test -n "$ac_cv_prog_STRIP"; then
8847 STRIP=$ac_cv_prog_STRIP
8848fi
8849
8850if test -n "$ac_cv_prog_STRIP"; then
8851 for ncn_progname in strip; do
8852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8853set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8855$as_echo_n "checking for $ac_word... " >&6; }
8856if test "${ac_cv_prog_STRIP+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
278a7a38
AO
8858else
8859 if test -n "$STRIP"; then
8860 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8861else
8862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8863for as_dir in $PATH
8864do
8865 IFS=$as_save_IFS
8866 test -z "$as_dir" && as_dir=.
5213506e
RW
8867 for ac_exec_ext in '' $ac_executable_extensions; do
8868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8869 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8871 break 2
8872 fi
8873done
5213506e
RW
8874 done
8875IFS=$as_save_IFS
278a7a38
AO
8876
8877fi
8878fi
8879STRIP=$ac_cv_prog_STRIP
8880if test -n "$STRIP"; then
5213506e
RW
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8882$as_echo "$STRIP" >&6; }
278a7a38 8883else
5213506e
RW
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8885$as_echo "no" >&6; }
278a7a38
AO
8886fi
8887
5213506e 8888
278a7a38
AO
8889 done
8890fi
8891
8892for ncn_progname in strip; do
2abefe3d
PB
8893 if test -n "$ncn_tool_prefix"; then
8894 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8895set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897$as_echo_n "checking for $ac_word... " >&6; }
8898if test "${ac_cv_prog_STRIP+set}" = set; then :
8899 $as_echo_n "(cached) " >&6
2abefe3d
PB
8900else
8901 if test -n "$STRIP"; then
8902 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8903else
1c710c3c
DJ
8904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905for as_dir in $PATH
8906do
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
5213506e
RW
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8911 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8913 break 2
8914 fi
8915done
5213506e
RW
8916 done
8917IFS=$as_save_IFS
1c710c3c 8918
2abefe3d
PB
8919fi
8920fi
1c710c3c 8921STRIP=$ac_cv_prog_STRIP
2abefe3d 8922if test -n "$STRIP"; then
5213506e
RW
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8924$as_echo "$STRIP" >&6; }
2abefe3d 8925else
5213506e
RW
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927$as_echo "no" >&6; }
2abefe3d
PB
8928fi
8929
5213506e 8930
2abefe3d
PB
8931 fi
8932 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8934set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8936$as_echo_n "checking for $ac_word... " >&6; }
8937if test "${ac_cv_prog_STRIP+set}" = set; then :
8938 $as_echo_n "(cached) " >&6
2abefe3d
PB
8939else
8940 if test -n "$STRIP"; then
8941 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8942else
1c710c3c
DJ
8943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944for as_dir in $PATH
8945do
8946 IFS=$as_save_IFS
8947 test -z "$as_dir" && as_dir=.
5213506e
RW
8948 for ac_exec_ext in '' $ac_executable_extensions; do
8949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8950 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8952 break 2
8953 fi
8954done
5213506e
RW
8955 done
8956IFS=$as_save_IFS
1c710c3c 8957
2abefe3d
PB
8958fi
8959fi
1c710c3c 8960STRIP=$ac_cv_prog_STRIP
2abefe3d 8961if test -n "$STRIP"; then
5213506e
RW
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8963$as_echo "$STRIP" >&6; }
2abefe3d 8964else
5213506e
RW
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966$as_echo "no" >&6; }
2abefe3d 8967fi
1c710c3c 8968
5213506e 8969
2abefe3d
PB
8970 fi
8971 test -n "$ac_cv_prog_STRIP" && break
8972done
8973
8974if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 8975 STRIP="true"
2abefe3d
PB
8976fi
8977
278a7a38
AO
8978
8979
8980if test -n "$WINDRES"; then
8981 ac_cv_prog_WINDRES=$WINDRES
8982elif test -n "$ac_cv_prog_WINDRES"; then
8983 WINDRES=$ac_cv_prog_WINDRES
8984fi
8985
8986if test -n "$ac_cv_prog_WINDRES"; then
8987 for ncn_progname in windres; do
8988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8989set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991$as_echo_n "checking for $ac_word... " >&6; }
8992if test "${ac_cv_prog_WINDRES+set}" = set; then :
8993 $as_echo_n "(cached) " >&6
278a7a38
AO
8994else
8995 if test -n "$WINDRES"; then
8996 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8997else
8998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999for as_dir in $PATH
9000do
9001 IFS=$as_save_IFS
9002 test -z "$as_dir" && as_dir=.
5213506e
RW
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9005 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9007 break 2
9008 fi
9009done
5213506e
RW
9010 done
9011IFS=$as_save_IFS
278a7a38
AO
9012
9013fi
9014fi
9015WINDRES=$ac_cv_prog_WINDRES
9016if test -n "$WINDRES"; then
5213506e
RW
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9018$as_echo "$WINDRES" >&6; }
278a7a38 9019else
5213506e
RW
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021$as_echo "no" >&6; }
278a7a38
AO
9022fi
9023
5213506e 9024
278a7a38
AO
9025 done
9026fi
9027
9028for ncn_progname in windres; do
2693c0b0
PB
9029 if test -n "$ncn_tool_prefix"; then
9030 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9031set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033$as_echo_n "checking for $ac_word... " >&6; }
9034if test "${ac_cv_prog_WINDRES+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9036else
9037 if test -n "$WINDRES"; then
9038 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9039else
1c710c3c
DJ
9040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041for as_dir in $PATH
9042do
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
5213506e
RW
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9047 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9049 break 2
9050 fi
9051done
5213506e
RW
9052 done
9053IFS=$as_save_IFS
1c710c3c 9054
ca9f4b81
AO
9055fi
9056fi
1c710c3c 9057WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9058if test -n "$WINDRES"; then
5213506e
RW
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9060$as_echo "$WINDRES" >&6; }
ca9f4b81 9061else
5213506e
RW
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063$as_echo "no" >&6; }
ca9f4b81
AO
9064fi
9065
5213506e 9066
2693c0b0
PB
9067 fi
9068 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9070set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9072$as_echo_n "checking for $ac_word... " >&6; }
9073if test "${ac_cv_prog_WINDRES+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
ca9f4b81 9075else
2693c0b0
PB
9076 if test -n "$WINDRES"; then
9077 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9078else
1c710c3c
DJ
9079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080for as_dir in $PATH
9081do
9082 IFS=$as_save_IFS
9083 test -z "$as_dir" && as_dir=.
5213506e
RW
9084 for ac_exec_ext in '' $ac_executable_extensions; do
9085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9086 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9088 break 2
9089 fi
9090done
5213506e
RW
9091 done
9092IFS=$as_save_IFS
1c710c3c 9093
ca9f4b81
AO
9094fi
9095fi
1c710c3c 9096WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9097if test -n "$WINDRES"; then
5213506e
RW
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9099$as_echo "$WINDRES" >&6; }
ca9f4b81 9100else
5213506e
RW
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102$as_echo "no" >&6; }
ca9f4b81 9103fi
1c710c3c 9104
5213506e 9105
2693c0b0
PB
9106 fi
9107 test -n "$ac_cv_prog_WINDRES" && break
9108done
9109
9110if test -z "$ac_cv_prog_WINDRES" ; then
9111 set dummy windres
9112 if test $build = $host ; then
9113 WINDRES="$2"
ca9f4b81 9114 else
2693c0b0 9115 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9116 fi
ca9f4b81
AO
9117fi
9118
278a7a38
AO
9119
9120
901119ae
KT
9121if test -n "$WINDMC"; then
9122 ac_cv_prog_WINDMC=$WINDMC
9123elif test -n "$ac_cv_prog_WINDMC"; then
9124 WINDMC=$ac_cv_prog_WINDMC
9125fi
9126
9127if test -n "$ac_cv_prog_WINDMC"; then
9128 for ncn_progname in windmc; do
9129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9130set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9132$as_echo_n "checking for $ac_word... " >&6; }
9133if test "${ac_cv_prog_WINDMC+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
901119ae
KT
9135else
9136 if test -n "$WINDMC"; then
9137 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9138else
9139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140for as_dir in $PATH
9141do
9142 IFS=$as_save_IFS
9143 test -z "$as_dir" && as_dir=.
5213506e
RW
9144 for ac_exec_ext in '' $ac_executable_extensions; do
9145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9146 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9148 break 2
9149 fi
9150done
5213506e
RW
9151 done
9152IFS=$as_save_IFS
901119ae
KT
9153
9154fi
9155fi
9156WINDMC=$ac_cv_prog_WINDMC
9157if test -n "$WINDMC"; then
5213506e
RW
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9159$as_echo "$WINDMC" >&6; }
901119ae 9160else
5213506e
RW
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162$as_echo "no" >&6; }
901119ae
KT
9163fi
9164
5213506e 9165
901119ae
KT
9166 done
9167fi
9168
9169for ncn_progname in windmc; do
9170 if test -n "$ncn_tool_prefix"; then
9171 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9172set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174$as_echo_n "checking for $ac_word... " >&6; }
9175if test "${ac_cv_prog_WINDMC+set}" = set; then :
9176 $as_echo_n "(cached) " >&6
901119ae
KT
9177else
9178 if test -n "$WINDMC"; then
9179 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9180else
9181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9182for as_dir in $PATH
9183do
9184 IFS=$as_save_IFS
9185 test -z "$as_dir" && as_dir=.
5213506e
RW
9186 for ac_exec_ext in '' $ac_executable_extensions; do
9187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9188 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9190 break 2
9191 fi
9192done
5213506e
RW
9193 done
9194IFS=$as_save_IFS
901119ae
KT
9195
9196fi
9197fi
9198WINDMC=$ac_cv_prog_WINDMC
9199if test -n "$WINDMC"; then
5213506e
RW
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9201$as_echo "$WINDMC" >&6; }
901119ae 9202else
5213506e
RW
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204$as_echo "no" >&6; }
901119ae
KT
9205fi
9206
5213506e 9207
901119ae
KT
9208 fi
9209 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9211set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213$as_echo_n "checking for $ac_word... " >&6; }
9214if test "${ac_cv_prog_WINDMC+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
901119ae
KT
9216else
9217 if test -n "$WINDMC"; then
9218 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9219else
9220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221for as_dir in $PATH
9222do
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
5213506e
RW
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9227 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9229 break 2
9230 fi
9231done
5213506e
RW
9232 done
9233IFS=$as_save_IFS
901119ae
KT
9234
9235fi
9236fi
9237WINDMC=$ac_cv_prog_WINDMC
9238if test -n "$WINDMC"; then
5213506e
RW
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9240$as_echo "$WINDMC" >&6; }
901119ae 9241else
5213506e
RW
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243$as_echo "no" >&6; }
901119ae
KT
9244fi
9245
5213506e 9246
901119ae
KT
9247 fi
9248 test -n "$ac_cv_prog_WINDMC" && break
9249done
9250
9251if test -z "$ac_cv_prog_WINDMC" ; then
9252 set dummy windmc
9253 if test $build = $host ; then
9254 WINDMC="$2"
9255 else
9256 WINDMC="${ncn_tool_prefix}$2"
9257 fi
9258fi
9259
9260
9261
278a7a38
AO
9262if test -n "$OBJCOPY"; then
9263 ac_cv_prog_OBJCOPY=$OBJCOPY
9264elif test -n "$ac_cv_prog_OBJCOPY"; then
9265 OBJCOPY=$ac_cv_prog_OBJCOPY
9266fi
9267
9268if test -n "$ac_cv_prog_OBJCOPY"; then
9269 for ncn_progname in objcopy; do
9270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9271set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9273$as_echo_n "checking for $ac_word... " >&6; }
9274if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9275 $as_echo_n "(cached) " >&6
278a7a38
AO
9276else
9277 if test -n "$OBJCOPY"; then
9278 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9279else
9280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281for as_dir in $PATH
9282do
9283 IFS=$as_save_IFS
9284 test -z "$as_dir" && as_dir=.
5213506e
RW
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9287 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9289 break 2
9290 fi
9291done
5213506e
RW
9292 done
9293IFS=$as_save_IFS
278a7a38
AO
9294
9295fi
9296fi
9297OBJCOPY=$ac_cv_prog_OBJCOPY
9298if test -n "$OBJCOPY"; then
5213506e
RW
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9300$as_echo "$OBJCOPY" >&6; }
278a7a38 9301else
5213506e
RW
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303$as_echo "no" >&6; }
278a7a38
AO
9304fi
9305
5213506e 9306
278a7a38
AO
9307 done
9308fi
9309
9310for ncn_progname in objcopy; do
2693c0b0
PB
9311 if test -n "$ncn_tool_prefix"; then
9312 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9313set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315$as_echo_n "checking for $ac_word... " >&6; }
9316if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9317 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9318else
9319 if test -n "$OBJCOPY"; then
9320 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9321else
1c710c3c
DJ
9322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323for as_dir in $PATH
9324do
9325 IFS=$as_save_IFS
9326 test -z "$as_dir" && as_dir=.
5213506e
RW
9327 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9329 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9331 break 2
9332 fi
9333done
5213506e
RW
9334 done
9335IFS=$as_save_IFS
1c710c3c 9336
ca9f4b81
AO
9337fi
9338fi
1c710c3c 9339OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9340if test -n "$OBJCOPY"; then
5213506e
RW
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9342$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9343else
5213506e
RW
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345$as_echo "no" >&6; }
ca9f4b81
AO
9346fi
9347
5213506e 9348
2693c0b0
PB
9349 fi
9350 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9352set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9354$as_echo_n "checking for $ac_word... " >&6; }
9355if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9356 $as_echo_n "(cached) " >&6
ca9f4b81 9357else
2693c0b0
PB
9358 if test -n "$OBJCOPY"; then
9359 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9360else
1c710c3c
DJ
9361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9362for as_dir in $PATH
9363do
9364 IFS=$as_save_IFS
9365 test -z "$as_dir" && as_dir=.
5213506e
RW
9366 for ac_exec_ext in '' $ac_executable_extensions; do
9367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9368 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9370 break 2
9371 fi
9372done
5213506e
RW
9373 done
9374IFS=$as_save_IFS
1c710c3c 9375
ca9f4b81
AO
9376fi
9377fi
1c710c3c 9378OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9379if test -n "$OBJCOPY"; then
5213506e
RW
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9381$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9382else
5213506e
RW
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9384$as_echo "no" >&6; }
ca9f4b81 9385fi
1c710c3c 9386
5213506e 9387
2693c0b0
PB
9388 fi
9389 test -n "$ac_cv_prog_OBJCOPY" && break
9390done
9391
9392if test -z "$ac_cv_prog_OBJCOPY" ; then
9393 set dummy objcopy
9394 if test $build = $host ; then
9395 OBJCOPY="$2"
ca9f4b81 9396 else
2693c0b0 9397 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9398 fi
ca9f4b81
AO
9399fi
9400
278a7a38
AO
9401
9402
9403if test -n "$OBJDUMP"; then
9404 ac_cv_prog_OBJDUMP=$OBJDUMP
9405elif test -n "$ac_cv_prog_OBJDUMP"; then
9406 OBJDUMP=$ac_cv_prog_OBJDUMP
9407fi
9408
9409if test -n "$ac_cv_prog_OBJDUMP"; then
9410 for ncn_progname in objdump; do
9411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9412set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414$as_echo_n "checking for $ac_word... " >&6; }
9415if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9416 $as_echo_n "(cached) " >&6
278a7a38
AO
9417else
9418 if test -n "$OBJDUMP"; then
9419 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9420else
9421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422for as_dir in $PATH
9423do
9424 IFS=$as_save_IFS
9425 test -z "$as_dir" && as_dir=.
5213506e
RW
9426 for ac_exec_ext in '' $ac_executable_extensions; do
9427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9428 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9430 break 2
9431 fi
9432done
5213506e
RW
9433 done
9434IFS=$as_save_IFS
278a7a38
AO
9435
9436fi
9437fi
9438OBJDUMP=$ac_cv_prog_OBJDUMP
9439if test -n "$OBJDUMP"; then
5213506e
RW
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9441$as_echo "$OBJDUMP" >&6; }
278a7a38 9442else
5213506e
RW
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9444$as_echo "no" >&6; }
278a7a38
AO
9445fi
9446
5213506e 9447
278a7a38
AO
9448 done
9449fi
9450
9451for ncn_progname in objdump; do
2693c0b0
PB
9452 if test -n "$ncn_tool_prefix"; then
9453 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9454set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456$as_echo_n "checking for $ac_word... " >&6; }
9457if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9458 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9459else
9460 if test -n "$OBJDUMP"; then
9461 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9462else
1c710c3c
DJ
9463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9464for as_dir in $PATH
9465do
9466 IFS=$as_save_IFS
9467 test -z "$as_dir" && as_dir=.
5213506e
RW
9468 for ac_exec_ext in '' $ac_executable_extensions; do
9469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9470 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9472 break 2
9473 fi
9474done
5213506e
RW
9475 done
9476IFS=$as_save_IFS
1c710c3c 9477
ca9f4b81
AO
9478fi
9479fi
1c710c3c 9480OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9481if test -n "$OBJDUMP"; then
5213506e
RW
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9483$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9484else
5213506e
RW
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486$as_echo "no" >&6; }
ca9f4b81
AO
9487fi
9488
5213506e 9489
2693c0b0
PB
9490 fi
9491 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9493set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9495$as_echo_n "checking for $ac_word... " >&6; }
9496if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9497 $as_echo_n "(cached) " >&6
ca9f4b81 9498else
2693c0b0
PB
9499 if test -n "$OBJDUMP"; then
9500 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9501else
1c710c3c
DJ
9502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503for as_dir in $PATH
9504do
9505 IFS=$as_save_IFS
9506 test -z "$as_dir" && as_dir=.
5213506e
RW
9507 for ac_exec_ext in '' $ac_executable_extensions; do
9508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9509 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9511 break 2
9512 fi
9513done
5213506e
RW
9514 done
9515IFS=$as_save_IFS
1c710c3c 9516
ca9f4b81
AO
9517fi
9518fi
1c710c3c 9519OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9520if test -n "$OBJDUMP"; then
5213506e
RW
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9522$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9523else
5213506e
RW
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525$as_echo "no" >&6; }
ca9f4b81 9526fi
1c710c3c 9527
5213506e 9528
2693c0b0
PB
9529 fi
9530 test -n "$ac_cv_prog_OBJDUMP" && break
9531done
9532
9533if test -z "$ac_cv_prog_OBJDUMP" ; then
9534 set dummy objdump
9535 if test $build = $host ; then
9536 OBJDUMP="$2"
ca9f4b81 9537 else
2693c0b0 9538 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9539 fi
ca9f4b81
AO
9540fi
9541
671aa708
NN
9542
9543
e7a82751
RM
9544if test -n "$READELF"; then
9545 ac_cv_prog_READELF=$READELF
9546elif test -n "$ac_cv_prog_READELF"; then
9547 READELF=$ac_cv_prog_READELF
9548fi
9549
9550if test -n "$ac_cv_prog_READELF"; then
9551 for ncn_progname in readelf; do
9552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9553set dummy ${ncn_progname}; ac_word=$2
9554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555$as_echo_n "checking for $ac_word... " >&6; }
9556if test "${ac_cv_prog_READELF+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558else
9559 if test -n "$READELF"; then
9560 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9561else
9562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563for as_dir in $PATH
9564do
9565 IFS=$as_save_IFS
9566 test -z "$as_dir" && as_dir=.
9567 for ac_exec_ext in '' $ac_executable_extensions; do
9568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9569 ac_cv_prog_READELF="${ncn_progname}"
9570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571 break 2
9572 fi
9573done
9574 done
9575IFS=$as_save_IFS
9576
9577fi
9578fi
9579READELF=$ac_cv_prog_READELF
9580if test -n "$READELF"; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9582$as_echo "$READELF" >&6; }
9583else
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585$as_echo "no" >&6; }
9586fi
9587
9588
9589 done
9590fi
9591
9592for ncn_progname in readelf; do
9593 if test -n "$ncn_tool_prefix"; then
9594 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9595set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597$as_echo_n "checking for $ac_word... " >&6; }
9598if test "${ac_cv_prog_READELF+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9600else
9601 if test -n "$READELF"; then
9602 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9603else
9604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605for as_dir in $PATH
9606do
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9611 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 break 2
9614 fi
9615done
9616 done
9617IFS=$as_save_IFS
9618
9619fi
9620fi
9621READELF=$ac_cv_prog_READELF
9622if test -n "$READELF"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9624$as_echo "$READELF" >&6; }
9625else
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627$as_echo "no" >&6; }
9628fi
9629
9630
9631 fi
9632 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9634set dummy ${ncn_progname}; ac_word=$2
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636$as_echo_n "checking for $ac_word... " >&6; }
9637if test "${ac_cv_prog_READELF+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9639else
9640 if test -n "$READELF"; then
9641 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9642else
9643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644for as_dir in $PATH
9645do
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9650 ac_cv_prog_READELF="${ncn_progname}"
9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9653 fi
9654done
9655 done
9656IFS=$as_save_IFS
9657
9658fi
9659fi
9660READELF=$ac_cv_prog_READELF
9661if test -n "$READELF"; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9663$as_echo "$READELF" >&6; }
9664else
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666$as_echo "no" >&6; }
9667fi
9668
9669
9670 fi
9671 test -n "$ac_cv_prog_READELF" && break
9672done
9673
9674if test -z "$ac_cv_prog_READELF" ; then
9675 set dummy readelf
9676 if test $build = $host ; then
9677 READELF="$2"
9678 else
9679 READELF="${ncn_tool_prefix}$2"
9680 fi
9681fi
9682
9683
9684
671aa708
NN
9685
9686
9687
2abefe3d 9688# Target tools.
1c710c3c 9689
5213506e
RW
9690# Check whether --with-build-time-tools was given.
9691if test "${with_build_time_tools+set}" = set; then :
9692 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9693 x/*) ;;
9694 *)
9695 with_build_time_tools=
5213506e
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9697$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9698 ;;
9699 esac
ca9f4b81 9700else
e8b05380 9701 with_build_time_tools=
5213506e
RW
9702fi
9703
ca9f4b81 9704
278a7a38
AO
9705
9706
9707if test -n "$CC_FOR_TARGET"; then
9708 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9709elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9710 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9711fi
9712
9713if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9714 for ncn_progname in cc gcc; do
9715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9716set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9718$as_echo_n "checking for $ac_word... " >&6; }
9719if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9720 $as_echo_n "(cached) " >&6
278a7a38
AO
9721else
9722 if test -n "$CC_FOR_TARGET"; then
9723 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9724else
9725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726for as_dir in $PATH
9727do
9728 IFS=$as_save_IFS
9729 test -z "$as_dir" && as_dir=.
5213506e
RW
9730 for ac_exec_ext in '' $ac_executable_extensions; do
9731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9732 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9734 break 2
9735 fi
9736done
5213506e
RW
9737 done
9738IFS=$as_save_IFS
278a7a38
AO
9739
9740fi
9741fi
9742CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9743if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9745$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9746else
5213506e
RW
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748$as_echo "no" >&6; }
278a7a38
AO
9749fi
9750
5213506e 9751
278a7a38
AO
9752 done
9753fi
9754
9755if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9756 for ncn_progname in cc gcc; do
5213506e
RW
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9758$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9759 if test -x $with_build_time_tools/${ncn_progname}; then
9760 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9762$as_echo "yes" >&6; }
72a7ab82 9763 break
e8b05380 9764 else
5213506e
RW
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766$as_echo "no" >&6; }
72a7ab82
AP
9767 fi
9768 done
4de997d1
PB
9769fi
9770
e8b05380
PB
9771if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9772 for ncn_progname in cc gcc; do
9773 if test -n "$ncn_target_tool_prefix"; then
9774 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9775set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777$as_echo_n "checking for $ac_word... " >&6; }
9778if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9779 $as_echo_n "(cached) " >&6
4de997d1
PB
9780else
9781 if test -n "$CC_FOR_TARGET"; then
9782 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9783else
1c710c3c
DJ
9784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785for as_dir in $PATH
9786do
9787 IFS=$as_save_IFS
9788 test -z "$as_dir" && as_dir=.
5213506e
RW
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9791 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9793 break 2
9794 fi
9795done
5213506e
RW
9796 done
9797IFS=$as_save_IFS
1c710c3c 9798
4de997d1
PB
9799fi
9800fi
1c710c3c 9801CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9802if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9804$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9805else
5213506e
RW
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807$as_echo "no" >&6; }
4de997d1
PB
9808fi
9809
5213506e 9810
e8b05380
PB
9811 fi
9812 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9814set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816$as_echo_n "checking for $ac_word... " >&6; }
9817if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
4de997d1 9819else
2693c0b0
PB
9820 if test -n "$CC_FOR_TARGET"; then
9821 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9822else
1c710c3c
DJ
9823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
5213506e
RW
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9830 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9832 break 2
9833 fi
9834done
5213506e
RW
9835 done
9836IFS=$as_save_IFS
1c710c3c 9837
4de997d1
PB
9838fi
9839fi
1c710c3c 9840CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9841if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9843$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9844else
5213506e
RW
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846$as_echo "no" >&6; }
4de997d1 9847fi
1c710c3c 9848
5213506e 9849
e8b05380
PB
9850 fi
9851 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9852 done
9853fi
1c710c3c 9854
2693c0b0
PB
9855if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9856 set dummy cc gcc
9857 if test $build = $target ; then
9858 CC_FOR_TARGET="$2"
4de997d1 9859 else
2693c0b0 9860 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9861 fi
1c00b503
PB
9862else
9863 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9864fi
9865
278a7a38
AO
9866
9867
9868if test -n "$CXX_FOR_TARGET"; then
9869 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9870elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9871 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9872fi
9873
9874if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9875 for ncn_progname in c++ g++ cxx gxx; do
9876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9877set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879$as_echo_n "checking for $ac_word... " >&6; }
9880if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9881 $as_echo_n "(cached) " >&6
278a7a38
AO
9882else
9883 if test -n "$CXX_FOR_TARGET"; then
9884 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9885else
9886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887for as_dir in $PATH
9888do
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
5213506e
RW
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9893 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9895 break 2
9896 fi
9897done
5213506e
RW
9898 done
9899IFS=$as_save_IFS
278a7a38
AO
9900
9901fi
9902fi
9903CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9904if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9906$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9907else
5213506e
RW
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909$as_echo "no" >&6; }
278a7a38
AO
9910fi
9911
5213506e 9912
278a7a38
AO
9913 done
9914fi
9915
9916if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9917 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9919$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9920 if test -x $with_build_time_tools/${ncn_progname}; then
9921 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9923$as_echo "yes" >&6; }
e8b05380
PB
9924 break
9925 else
5213506e
RW
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927$as_echo "no" >&6; }
e8b05380
PB
9928 fi
9929 done
9930fi
9931
9932if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9933 for ncn_progname in c++ g++ cxx gxx; do
9934 if test -n "$ncn_target_tool_prefix"; then
9935 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9936set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938$as_echo_n "checking for $ac_word... " >&6; }
9939if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9940 $as_echo_n "(cached) " >&6
4de997d1
PB
9941else
9942 if test -n "$CXX_FOR_TARGET"; then
9943 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9944else
1c710c3c
DJ
9945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946for as_dir in $PATH
9947do
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
5213506e
RW
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9952 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9954 break 2
9955 fi
9956done
5213506e
RW
9957 done
9958IFS=$as_save_IFS
1c710c3c 9959
4de997d1
PB
9960fi
9961fi
1c710c3c 9962CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9963if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9965$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9966else
5213506e
RW
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968$as_echo "no" >&6; }
4de997d1
PB
9969fi
9970
5213506e 9971
e8b05380
PB
9972 fi
9973 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9975set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977$as_echo_n "checking for $ac_word... " >&6; }
9978if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9979 $as_echo_n "(cached) " >&6
4de997d1 9980else
2693c0b0
PB
9981 if test -n "$CXX_FOR_TARGET"; then
9982 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9983else
1c710c3c
DJ
9984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985for as_dir in $PATH
9986do
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
5213506e
RW
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9991 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9993 break 2
9994 fi
9995done
5213506e
RW
9996 done
9997IFS=$as_save_IFS
1c710c3c 9998
4de997d1
PB
9999fi
10000fi
1c710c3c 10001CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10002if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10004$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10005else
5213506e
RW
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007$as_echo "no" >&6; }
4de997d1 10008fi
1c710c3c 10009
5213506e 10010
e8b05380
PB
10011 fi
10012 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10013 done
10014fi
1c710c3c 10015
2693c0b0
PB
10016if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10017 set dummy c++ g++ cxx gxx
10018 if test $build = $target ; then
10019 CXX_FOR_TARGET="$2"
4de997d1 10020 else
2693c0b0 10021 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10022 fi
1c00b503
PB
10023else
10024 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10025fi
10026
278a7a38
AO
10027
10028
10029if test -n "$GCC_FOR_TARGET"; then
10030 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10031elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10032 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10033fi
10034
10035if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10036 for ncn_progname in gcc; do
10037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10038set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040$as_echo_n "checking for $ac_word... " >&6; }
10041if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
278a7a38
AO
10043else
10044 if test -n "$GCC_FOR_TARGET"; then
10045 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10046else
10047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048for as_dir in $PATH
10049do
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
5213506e
RW
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10054 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10056 break 2
10057 fi
10058done
5213506e
RW
10059 done
10060IFS=$as_save_IFS
278a7a38
AO
10061
10062fi
10063fi
10064GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10065if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10067$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10068else
5213506e
RW
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070$as_echo "no" >&6; }
278a7a38
AO
10071fi
10072
5213506e 10073
278a7a38
AO
10074 done
10075fi
10076
10077if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10078 for ncn_progname in gcc; do
5213506e
RW
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10080$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10081 if test -x $with_build_time_tools/${ncn_progname}; then
10082 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10084$as_echo "yes" >&6; }
e8b05380
PB
10085 break
10086 else
5213506e
RW
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088$as_echo "no" >&6; }
e8b05380
PB
10089 fi
10090 done
10091fi
10092
10093if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10094 for ncn_progname in gcc; do
10095 if test -n "$ncn_target_tool_prefix"; then
10096 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10097set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099$as_echo_n "checking for $ac_word... " >&6; }
10100if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10101 $as_echo_n "(cached) " >&6
ca9f4b81 10102else
e8b05380
PB
10103 if test -n "$GCC_FOR_TARGET"; then
10104 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10105else
1c710c3c
DJ
10106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107for as_dir in $PATH
10108do
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
5213506e
RW
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10113 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10115 break 2
10116 fi
10117done
5213506e
RW
10118 done
10119IFS=$as_save_IFS
1c710c3c 10120
ca9f4b81
AO
10121fi
10122fi
1c710c3c 10123GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10124if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10126$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10127else
5213506e
RW
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129$as_echo "no" >&6; }
ca9f4b81
AO
10130fi
10131
5213506e 10132
e8b05380
PB
10133 fi
10134 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10136set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138$as_echo_n "checking for $ac_word... " >&6; }
10139if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10140 $as_echo_n "(cached) " >&6
ca9f4b81 10141else
e8b05380
PB
10142 if test -n "$GCC_FOR_TARGET"; then
10143 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10144else
1c710c3c
DJ
10145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146for as_dir in $PATH
10147do
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
5213506e
RW
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10152 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10154 break 2
10155 fi
10156done
5213506e
RW
10157 done
10158IFS=$as_save_IFS
1c710c3c 10159
ca9f4b81
AO
10160fi
10161fi
1c710c3c 10162GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10163if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10165$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10166else
5213506e
RW
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168$as_echo "no" >&6; }
ca9f4b81 10169fi
1c710c3c 10170
5213506e 10171
e8b05380
PB
10172 fi
10173 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10174 done
10175fi
1c710c3c 10176
e8b05380
PB
10177if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10178 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10179else
10180 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10181fi
10182
278a7a38
AO
10183
10184
10185if test -n "$GCJ_FOR_TARGET"; then
10186 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10187elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10188 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10189fi
10190
10191if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10192 for ncn_progname in gcj; do
10193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10194set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10196$as_echo_n "checking for $ac_word... " >&6; }
10197if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
278a7a38
AO
10199else
10200 if test -n "$GCJ_FOR_TARGET"; then
10201 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10202else
10203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204for as_dir in $PATH
10205do
10206 IFS=$as_save_IFS
10207 test -z "$as_dir" && as_dir=.
5213506e
RW
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10210 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10212 break 2
10213 fi
10214done
5213506e
RW
10215 done
10216IFS=$as_save_IFS
278a7a38
AO
10217
10218fi
10219fi
10220GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10221if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10223$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10224else
5213506e
RW
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226$as_echo "no" >&6; }
278a7a38
AO
10227fi
10228
5213506e 10229
278a7a38
AO
10230 done
10231fi
10232
10233if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10234 for ncn_progname in gcj; do
5213506e
RW
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10236$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10237 if test -x $with_build_time_tools/${ncn_progname}; then
10238 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10240$as_echo "yes" >&6; }
e8b05380
PB
10241 break
10242 else
5213506e
RW
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244$as_echo "no" >&6; }
e8b05380
PB
10245 fi
10246 done
10247fi
10248
10249if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10250 for ncn_progname in gcj; do
10251 if test -n "$ncn_target_tool_prefix"; then
10252 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10253set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255$as_echo_n "checking for $ac_word... " >&6; }
10256if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
e8b05380 10258else
fb0103e5
RG
10259 if test -n "$GCJ_FOR_TARGET"; then
10260 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10261else
1c710c3c
DJ
10262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263for as_dir in $PATH
10264do
10265 IFS=$as_save_IFS
10266 test -z "$as_dir" && as_dir=.
5213506e
RW
10267 for ac_exec_ext in '' $ac_executable_extensions; do
10268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10269 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10271 break 2
10272 fi
10273done
5213506e
RW
10274 done
10275IFS=$as_save_IFS
1c710c3c 10276
e8b05380
PB
10277fi
10278fi
278a7a38
AO
10279GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10280if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10282$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10283else
5213506e
RW
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285$as_echo "no" >&6; }
278a7a38
AO
10286fi
10287
5213506e 10288
278a7a38
AO
10289 fi
10290 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10292set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294$as_echo_n "checking for $ac_word... " >&6; }
10295if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10296 $as_echo_n "(cached) " >&6
278a7a38
AO
10297else
10298 if test -n "$GCJ_FOR_TARGET"; then
10299 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10300else
10301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302for as_dir in $PATH
10303do
10304 IFS=$as_save_IFS
10305 test -z "$as_dir" && as_dir=.
5213506e
RW
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10308 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10310 break 2
10311 fi
10312done
5213506e
RW
10313 done
10314IFS=$as_save_IFS
278a7a38
AO
10315
10316fi
10317fi
10318GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10319if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10321$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10322else
5213506e
RW
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324$as_echo "no" >&6; }
278a7a38
AO
10325fi
10326
5213506e 10327
278a7a38
AO
10328 fi
10329 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10330 done
10331fi
10332
10333if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10334 set dummy gcj
10335 if test $build = $target ; then
10336 GCJ_FOR_TARGET="$2"
10337 else
10338 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10339 fi
1c00b503
PB
10340else
10341 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10342fi
10343
10344
10345
10346if test -n "$GFORTRAN_FOR_TARGET"; then
10347 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10348elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10349 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10350fi
10351
278a7a38
AO
10352if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10353 for ncn_progname in gfortran; do
10354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10355set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357$as_echo_n "checking for $ac_word... " >&6; }
10358if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10359 $as_echo_n "(cached) " >&6
e8b05380 10360else
278a7a38
AO
10361 if test -n "$GFORTRAN_FOR_TARGET"; then
10362 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10363else
1c710c3c
DJ
10364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365for as_dir in $PATH
10366do
10367 IFS=$as_save_IFS
10368 test -z "$as_dir" && as_dir=.
5213506e
RW
10369 for ac_exec_ext in '' $ac_executable_extensions; do
10370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10371 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10373 break 2
10374 fi
10375done
5213506e
RW
10376 done
10377IFS=$as_save_IFS
1c710c3c 10378
e8b05380
PB
10379fi
10380fi
278a7a38
AO
10381GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10382if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10384$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10385else
5213506e
RW
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387$as_echo "no" >&6; }
e8b05380 10388fi
1c710c3c 10389
5213506e 10390
e8b05380
PB
10391 done
10392fi
1c710c3c 10393
278a7a38 10394if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10395 for ncn_progname in gfortran; do
5213506e
RW
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10397$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10398 if test -x $with_build_time_tools/${ncn_progname}; then
10399 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10401$as_echo "yes" >&6; }
e8b05380
PB
10402 break
10403 else
5213506e
RW
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405$as_echo "no" >&6; }
e8b05380
PB
10406 fi
10407 done
10408fi
10409
10410if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10411 for ncn_progname in gfortran; do
10412 if test -n "$ncn_target_tool_prefix"; then
10413 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10414set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10416$as_echo_n "checking for $ac_word... " >&6; }
10417if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10418 $as_echo_n "(cached) " >&6
e8b05380
PB
10419else
10420 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10421 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10422else
10423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10424for as_dir in $PATH
10425do
10426 IFS=$as_save_IFS
10427 test -z "$as_dir" && as_dir=.
5213506e
RW
10428 for ac_exec_ext in '' $ac_executable_extensions; do
10429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10430 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10432 break 2
10433 fi
10434done
5213506e
RW
10435 done
10436IFS=$as_save_IFS
1c710c3c 10437
e8b05380
PB
10438fi
10439fi
1c710c3c 10440GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10441if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10443$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10444else
5213506e
RW
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446$as_echo "no" >&6; }
e8b05380
PB
10447fi
10448
5213506e 10449
e8b05380
PB
10450 fi
10451 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10453set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10455$as_echo_n "checking for $ac_word... " >&6; }
10456if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10457 $as_echo_n "(cached) " >&6
e8b05380
PB
10458else
10459 if test -n "$GFORTRAN_FOR_TARGET"; then
10460 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10461else
1c710c3c
DJ
10462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463for as_dir in $PATH
10464do
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
5213506e
RW
10467 for ac_exec_ext in '' $ac_executable_extensions; do
10468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10469 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10471 break 2
10472 fi
10473done
5213506e
RW
10474 done
10475IFS=$as_save_IFS
1c710c3c 10476
e8b05380
PB
10477fi
10478fi
1c710c3c 10479GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10480if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10482$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10483else
5213506e
RW
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485$as_echo "no" >&6; }
e8b05380 10486fi
1c710c3c 10487
5213506e 10488
e8b05380
PB
10489 fi
10490 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10491 done
10492fi
1c710c3c 10493
e8b05380
PB
10494if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10495 set dummy gfortran
2693c0b0 10496 if test $build = $target ; then
e8b05380 10497 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10498 else
e8b05380
PB
10499 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10500 fi
1c00b503
PB
10501else
10502 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10503fi
10504
10505
10506
632e2a07
ILT
10507if test -n "$GOC_FOR_TARGET"; then
10508 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10509elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10510 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10511fi
10512
10513if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10514 for ncn_progname in gccgo; do
10515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10516set dummy ${ncn_progname}; ac_word=$2
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518$as_echo_n "checking for $ac_word... " >&6; }
10519if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10520 $as_echo_n "(cached) " >&6
10521else
10522 if test -n "$GOC_FOR_TARGET"; then
10523 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10524else
10525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526for as_dir in $PATH
10527do
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10532 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 break 2
10535 fi
10536done
10537 done
10538IFS=$as_save_IFS
10539
10540fi
10541fi
10542GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10543if test -n "$GOC_FOR_TARGET"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10545$as_echo "$GOC_FOR_TARGET" >&6; }
10546else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548$as_echo "no" >&6; }
10549fi
10550
10551
10552 done
10553fi
10554
10555if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10556 for ncn_progname in gccgo; do
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10558$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10559 if test -x $with_build_time_tools/${ncn_progname}; then
10560 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10562$as_echo "yes" >&6; }
10563 break
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
10567 fi
10568 done
10569fi
10570
10571if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10572 for ncn_progname in gccgo; do
10573 if test -n "$ncn_target_tool_prefix"; then
10574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10575set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577$as_echo_n "checking for $ac_word... " >&6; }
10578if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10579 $as_echo_n "(cached) " >&6
10580else
10581 if test -n "$GOC_FOR_TARGET"; then
10582 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10583else
10584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585for as_dir in $PATH
10586do
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10591 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 break 2
10594 fi
10595done
10596 done
10597IFS=$as_save_IFS
10598
10599fi
10600fi
10601GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10602if test -n "$GOC_FOR_TARGET"; then
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10604$as_echo "$GOC_FOR_TARGET" >&6; }
10605else
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607$as_echo "no" >&6; }
10608fi
10609
10610
10611 fi
10612 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10614set dummy ${ncn_progname}; ac_word=$2
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616$as_echo_n "checking for $ac_word... " >&6; }
10617if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10618 $as_echo_n "(cached) " >&6
10619else
10620 if test -n "$GOC_FOR_TARGET"; then
10621 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10622else
10623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624for as_dir in $PATH
10625do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10630 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634done
10635 done
10636IFS=$as_save_IFS
10637
10638fi
10639fi
10640GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10641if test -n "$GOC_FOR_TARGET"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10643$as_echo "$GOC_FOR_TARGET" >&6; }
10644else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646$as_echo "no" >&6; }
10647fi
10648
10649
10650 fi
10651 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10652 done
10653fi
10654
10655if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10656 set dummy gccgo
10657 if test $build = $target ; then
10658 GOC_FOR_TARGET="$2"
10659 else
10660 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10661 fi
10662else
10663 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10664fi
10665
10666
10667
e8b05380
PB
10668cat > conftest.c << \EOF
10669#ifdef __GNUC__
10670 gcc_yay;
10671#endif
10672EOF
10673if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10674 have_gcc_for_target=yes
10675else
10676 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10677 have_gcc_for_target=no
10678fi
10679rm conftest.c
10680
10681
10682
10683
10684if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10685 if test -n "$with_build_time_tools"; then
5213506e
RW
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10687$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10688 if test -x $with_build_time_tools/ar; then
10689 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10690 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10692$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10693 else
5213506e
RW
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695$as_echo "no" >&6; }
d1f8db0c 10696 fi
e8b05380
PB
10697 elif test $build != $host && test $have_gcc_for_target = yes; then
10698 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10699 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10700 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10701 fi
10702fi
3e19841a 10703if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10704 # Extract the first word of "ar", so it can be a program name with args.
10705set dummy ar; ac_word=$2
5213506e
RW
10706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10707$as_echo_n "checking for $ac_word... " >&6; }
10708if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10709 $as_echo_n "(cached) " >&6
e8b05380 10710else
1c710c3c
DJ
10711 case $AR_FOR_TARGET in
10712 [\\/]* | ?:[\\/]*)
e8b05380
PB
10713 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10714 ;;
e8b05380 10715 *)
1c710c3c
DJ
10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717for as_dir in $gcc_cv_tool_dirs
10718do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
5213506e
RW
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10723 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10725 break 2
10726 fi
10727done
5213506e
RW
10728 done
10729IFS=$as_save_IFS
1c710c3c 10730
e8b05380
PB
10731 ;;
10732esac
10733fi
1c710c3c 10734AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10735if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10737$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10738else
5213506e
RW
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740$as_echo "no" >&6; }
4de997d1
PB
10741fi
10742
5213506e 10743
e8b05380
PB
10744fi
10745if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10746
10747
10748if test -n "$AR_FOR_TARGET"; then
10749 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10750elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10751 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10752fi
10753
10754if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10755 for ncn_progname in ar; do
10756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10757set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759$as_echo_n "checking for $ac_word... " >&6; }
10760if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10761 $as_echo_n "(cached) " >&6
278a7a38
AO
10762else
10763 if test -n "$AR_FOR_TARGET"; then
10764 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10765else
10766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767for as_dir in $PATH
10768do
10769 IFS=$as_save_IFS
10770 test -z "$as_dir" && as_dir=.
5213506e
RW
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10773 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10775 break 2
10776 fi
10777done
5213506e
RW
10778 done
10779IFS=$as_save_IFS
278a7a38
AO
10780
10781fi
10782fi
10783AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10784if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10786$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10787else
5213506e
RW
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789$as_echo "no" >&6; }
278a7a38
AO
10790fi
10791
5213506e 10792
278a7a38
AO
10793 done
10794fi
10795
10796if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10797 for ncn_progname in ar; do
5213506e
RW
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10799$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10800 if test -x $with_build_time_tools/${ncn_progname}; then
10801 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10803$as_echo "yes" >&6; }
e8b05380
PB
10804 break
10805 else
5213506e
RW
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807$as_echo "no" >&6; }
e8b05380
PB
10808 fi
10809 done
10810fi
10811
10812if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10813 for ncn_progname in ar; do
10814 if test -n "$ncn_target_tool_prefix"; then
10815 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10816set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818$as_echo_n "checking for $ac_word... " >&6; }
10819if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
4de997d1 10821else
e8b05380
PB
10822 if test -n "$AR_FOR_TARGET"; then
10823 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10824else
1c710c3c
DJ
10825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826for as_dir in $PATH
10827do
10828 IFS=$as_save_IFS
10829 test -z "$as_dir" && as_dir=.
5213506e
RW
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10832 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10834 break 2
10835 fi
10836done
5213506e
RW
10837 done
10838IFS=$as_save_IFS
1c710c3c 10839
4de997d1
PB
10840fi
10841fi
1c710c3c 10842AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10843if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10845$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10846else
5213506e
RW
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848$as_echo "no" >&6; }
4de997d1
PB
10849fi
10850
5213506e 10851
e8b05380
PB
10852 fi
10853 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10855set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10857$as_echo_n "checking for $ac_word... " >&6; }
10858if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
e8b05380
PB
10860else
10861 if test -n "$AR_FOR_TARGET"; then
10862 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10863else
1c710c3c
DJ
10864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10865for as_dir in $PATH
10866do
10867 IFS=$as_save_IFS
10868 test -z "$as_dir" && as_dir=.
5213506e
RW
10869 for ac_exec_ext in '' $ac_executable_extensions; do
10870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10871 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10873 break 2
10874 fi
10875done
5213506e
RW
10876 done
10877IFS=$as_save_IFS
1c710c3c 10878
e8b05380
PB
10879fi
10880fi
1c710c3c 10881AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10882if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10884$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10885else
5213506e
RW
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887$as_echo "no" >&6; }
e8b05380 10888fi
1c710c3c 10889
5213506e 10890
e8b05380
PB
10891 fi
10892 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10893 done
10894fi
1c710c3c 10895
e8b05380
PB
10896if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10897 set dummy ar
10898 if test $build = $target ; then
10899 AR_FOR_TARGET="$2"
10900 else
10901 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10902 fi
1c00b503
PB
10903else
10904 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10905fi
10906
d1f8db0c
PB
10907else
10908 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10909fi
10910
10911
10912
10913
10914if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10915 if test -n "$with_build_time_tools"; then
5213506e
RW
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10917$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10918 if test -x $with_build_time_tools/as; then
10919 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10920 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10922$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10923 else
5213506e
RW
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925$as_echo "no" >&6; }
d1f8db0c 10926 fi
e8b05380
PB
10927 elif test $build != $host && test $have_gcc_for_target = yes; then
10928 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10929 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10930 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10931 fi
10932fi
3e19841a 10933if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10934 # Extract the first word of "as", so it can be a program name with args.
10935set dummy as; ac_word=$2
5213506e
RW
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937$as_echo_n "checking for $ac_word... " >&6; }
10938if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
e8b05380 10940else
1c710c3c
DJ
10941 case $AS_FOR_TARGET in
10942 [\\/]* | ?:[\\/]*)
e8b05380
PB
10943 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10944 ;;
e8b05380 10945 *)
1c710c3c
DJ
10946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947for as_dir in $gcc_cv_tool_dirs
10948do
10949 IFS=$as_save_IFS
10950 test -z "$as_dir" && as_dir=.
5213506e
RW
10951 for ac_exec_ext in '' $ac_executable_extensions; do
10952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10953 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10955 break 2
10956 fi
10957done
5213506e
RW
10958 done
10959IFS=$as_save_IFS
1c710c3c 10960
e8b05380
PB
10961 ;;
10962esac
10963fi
1c710c3c 10964AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10965if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10967$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10968else
5213506e
RW
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970$as_echo "no" >&6; }
e8b05380
PB
10971fi
10972
5213506e 10973
e8b05380
PB
10974fi
10975if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10976
10977
10978if test -n "$AS_FOR_TARGET"; then
10979 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10980elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10981 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10982fi
10983
10984if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10985 for ncn_progname in as; do
10986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10987set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10989$as_echo_n "checking for $ac_word... " >&6; }
10990if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10991 $as_echo_n "(cached) " >&6
278a7a38
AO
10992else
10993 if test -n "$AS_FOR_TARGET"; then
10994 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10995else
10996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997for as_dir in $PATH
10998do
10999 IFS=$as_save_IFS
11000 test -z "$as_dir" && as_dir=.
5213506e
RW
11001 for ac_exec_ext in '' $ac_executable_extensions; do
11002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11003 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11005 break 2
11006 fi
11007done
5213506e
RW
11008 done
11009IFS=$as_save_IFS
278a7a38
AO
11010
11011fi
11012fi
11013AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11014if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11016$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11017else
5213506e
RW
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019$as_echo "no" >&6; }
278a7a38
AO
11020fi
11021
5213506e 11022
278a7a38
AO
11023 done
11024fi
11025
11026if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11027 for ncn_progname in as; do
5213506e
RW
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11029$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11030 if test -x $with_build_time_tools/${ncn_progname}; then
11031 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11033$as_echo "yes" >&6; }
e8b05380
PB
11034 break
11035 else
5213506e
RW
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037$as_echo "no" >&6; }
e8b05380
PB
11038 fi
11039 done
11040fi
11041
11042if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11043 for ncn_progname in as; do
11044 if test -n "$ncn_target_tool_prefix"; then
11045 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11046set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11048$as_echo_n "checking for $ac_word... " >&6; }
11049if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11050 $as_echo_n "(cached) " >&6
e8b05380
PB
11051else
11052 if test -n "$AS_FOR_TARGET"; then
11053 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11054else
1c710c3c
DJ
11055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056for as_dir in $PATH
11057do
11058 IFS=$as_save_IFS
11059 test -z "$as_dir" && as_dir=.
5213506e
RW
11060 for ac_exec_ext in '' $ac_executable_extensions; do
11061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11062 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11064 break 2
11065 fi
11066done
5213506e
RW
11067 done
11068IFS=$as_save_IFS
1c710c3c 11069
e8b05380
PB
11070fi
11071fi
1c710c3c 11072AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11073if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11075$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11076else
5213506e
RW
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078$as_echo "no" >&6; }
e8b05380
PB
11079fi
11080
5213506e 11081
e8b05380
PB
11082 fi
11083 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11085set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11087$as_echo_n "checking for $ac_word... " >&6; }
11088if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
4de997d1 11090else
e8b05380
PB
11091 if test -n "$AS_FOR_TARGET"; then
11092 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11093else
1c710c3c
DJ
11094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095for as_dir in $PATH
11096do
11097 IFS=$as_save_IFS
11098 test -z "$as_dir" && as_dir=.
5213506e
RW
11099 for ac_exec_ext in '' $ac_executable_extensions; do
11100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11101 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11103 break 2
11104 fi
11105done
5213506e
RW
11106 done
11107IFS=$as_save_IFS
1c710c3c 11108
4de997d1
PB
11109fi
11110fi
1c710c3c 11111AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11112if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11114$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11115else
5213506e
RW
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117$as_echo "no" >&6; }
4de997d1 11118fi
1c710c3c 11119
5213506e 11120
e8b05380
PB
11121 fi
11122 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11123 done
11124fi
1c710c3c 11125
e8b05380
PB
11126if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11127 set dummy as
11128 if test $build = $target ; then
11129 AS_FOR_TARGET="$2"
11130 else
11131 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11132 fi
1c00b503
PB
11133else
11134 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11135fi
2693c0b0 11136
d1f8db0c
PB
11137else
11138 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11139fi
11140
e8b05380
PB
11141
11142
11143
11144if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11145 if test -n "$with_build_time_tools"; then
5213506e
RW
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11147$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11148 if test -x $with_build_time_tools/dlltool; then
11149 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11150 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11152$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11153 else
5213506e
RW
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155$as_echo "no" >&6; }
d1f8db0c 11156 fi
e8b05380
PB
11157 elif test $build != $host && test $have_gcc_for_target = yes; then
11158 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11159 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11160 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11161 fi
11162fi
3e19841a 11163if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11164 # Extract the first word of "dlltool", so it can be a program name with args.
11165set dummy dlltool; ac_word=$2
5213506e
RW
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167$as_echo_n "checking for $ac_word... " >&6; }
11168if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
4de997d1 11170else
1c710c3c
DJ
11171 case $DLLTOOL_FOR_TARGET in
11172 [\\/]* | ?:[\\/]*)
e8b05380
PB
11173 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11174 ;;
e8b05380 11175 *)
1c710c3c
DJ
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177for as_dir in $gcc_cv_tool_dirs
11178do
11179 IFS=$as_save_IFS
11180 test -z "$as_dir" && as_dir=.
5213506e
RW
11181 for ac_exec_ext in '' $ac_executable_extensions; do
11182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11183 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11185 break 2
11186 fi
11187done
5213506e
RW
11188 done
11189IFS=$as_save_IFS
1c710c3c 11190
e8b05380
PB
11191 ;;
11192esac
4de997d1 11193fi
1c710c3c 11194DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11195if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11197$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11198else
5213506e
RW
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200$as_echo "no" >&6; }
4de997d1
PB
11201fi
11202
5213506e 11203
e8b05380
PB
11204fi
11205if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11206
11207
11208if test -n "$DLLTOOL_FOR_TARGET"; then
11209 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11210elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11211 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11212fi
11213
11214if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11215 for ncn_progname in dlltool; do
11216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11217set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11219$as_echo_n "checking for $ac_word... " >&6; }
11220if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11221 $as_echo_n "(cached) " >&6
278a7a38
AO
11222else
11223 if test -n "$DLLTOOL_FOR_TARGET"; then
11224 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11225else
11226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11227for as_dir in $PATH
11228do
11229 IFS=$as_save_IFS
11230 test -z "$as_dir" && as_dir=.
5213506e
RW
11231 for ac_exec_ext in '' $ac_executable_extensions; do
11232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11233 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11235 break 2
11236 fi
11237done
5213506e
RW
11238 done
11239IFS=$as_save_IFS
278a7a38
AO
11240
11241fi
11242fi
11243DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11244if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11246$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11247else
5213506e
RW
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249$as_echo "no" >&6; }
278a7a38
AO
11250fi
11251
5213506e 11252
278a7a38
AO
11253 done
11254fi
11255
11256if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11257 for ncn_progname in dlltool; do
5213506e
RW
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11259$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11260 if test -x $with_build_time_tools/${ncn_progname}; then
11261 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263$as_echo "yes" >&6; }
e8b05380
PB
11264 break
11265 else
5213506e
RW
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267$as_echo "no" >&6; }
e8b05380
PB
11268 fi
11269 done
11270fi
11271
11272if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11273 for ncn_progname in dlltool; do
11274 if test -n "$ncn_target_tool_prefix"; then
11275 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11276set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11278$as_echo_n "checking for $ac_word... " >&6; }
11279if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11280 $as_echo_n "(cached) " >&6
4de997d1 11281else
e8b05380
PB
11282 if test -n "$DLLTOOL_FOR_TARGET"; then
11283 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11284else
1c710c3c
DJ
11285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286for as_dir in $PATH
11287do
11288 IFS=$as_save_IFS
11289 test -z "$as_dir" && as_dir=.
5213506e
RW
11290 for ac_exec_ext in '' $ac_executable_extensions; do
11291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11292 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11294 break 2
11295 fi
11296done
5213506e
RW
11297 done
11298IFS=$as_save_IFS
1c710c3c 11299
4de997d1
PB
11300fi
11301fi
1c710c3c 11302DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11303if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11305$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11306else
5213506e
RW
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11308$as_echo "no" >&6; }
4de997d1 11309fi
4de997d1 11310
5213506e 11311
e8b05380
PB
11312 fi
11313 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11315set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317$as_echo_n "checking for $ac_word... " >&6; }
11318if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
4de997d1 11320else
e8b05380
PB
11321 if test -n "$DLLTOOL_FOR_TARGET"; then
11322 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11323else
1c710c3c
DJ
11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
5213506e
RW
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11331 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11333 break 2
11334 fi
11335done
5213506e
RW
11336 done
11337IFS=$as_save_IFS
1c710c3c 11338
4de997d1
PB
11339fi
11340fi
1c710c3c 11341DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11342if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11344$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11345else
5213506e
RW
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347$as_echo "no" >&6; }
4de997d1 11348fi
1c710c3c 11349
5213506e 11350
e8b05380
PB
11351 fi
11352 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11353 done
11354fi
1c710c3c 11355
e8b05380
PB
11356if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11357 set dummy dlltool
11358 if test $build = $target ; then
11359 DLLTOOL_FOR_TARGET="$2"
11360 else
11361 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11362 fi
1c00b503
PB
11363else
11364 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11365fi
11366
d1f8db0c
PB
11367else
11368 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11369fi
11370
4de997d1 11371
e8b05380
PB
11372
11373
11374if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11375 if test -n "$with_build_time_tools"; then
5213506e
RW
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11377$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11378 if test -x $with_build_time_tools/ld; then
11379 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11380 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11382$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11383 else
5213506e
RW
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385$as_echo "no" >&6; }
d1f8db0c 11386 fi
e8b05380
PB
11387 elif test $build != $host && test $have_gcc_for_target = yes; then
11388 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11389 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11390 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11391 fi
e8b05380 11392fi
3e19841a 11393if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11394 # Extract the first word of "ld", so it can be a program name with args.
11395set dummy ld; ac_word=$2
5213506e
RW
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397$as_echo_n "checking for $ac_word... " >&6; }
11398if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11399 $as_echo_n "(cached) " >&6
4de997d1 11400else
1c710c3c
DJ
11401 case $LD_FOR_TARGET in
11402 [\\/]* | ?:[\\/]*)
e8b05380
PB
11403 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11404 ;;
e8b05380 11405 *)
1c710c3c
DJ
11406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11407for as_dir in $gcc_cv_tool_dirs
11408do
11409 IFS=$as_save_IFS
11410 test -z "$as_dir" && as_dir=.
5213506e
RW
11411 for ac_exec_ext in '' $ac_executable_extensions; do
11412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11413 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11415 break 2
11416 fi
11417done
5213506e
RW
11418 done
11419IFS=$as_save_IFS
1c710c3c 11420
e8b05380
PB
11421 ;;
11422esac
4de997d1 11423fi
1c710c3c 11424LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11425if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11427$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11428else
5213506e
RW
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430$as_echo "no" >&6; }
4de997d1 11431fi
2693c0b0 11432
5213506e 11433
e8b05380
PB
11434fi
11435if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11436
11437
11438if test -n "$LD_FOR_TARGET"; then
11439 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11440elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11441 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11442fi
11443
11444if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11445 for ncn_progname in ld; do
11446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11447set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11449$as_echo_n "checking for $ac_word... " >&6; }
11450if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11451 $as_echo_n "(cached) " >&6
278a7a38
AO
11452else
11453 if test -n "$LD_FOR_TARGET"; then
11454 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11455else
11456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457for as_dir in $PATH
11458do
11459 IFS=$as_save_IFS
11460 test -z "$as_dir" && as_dir=.
5213506e
RW
11461 for ac_exec_ext in '' $ac_executable_extensions; do
11462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11463 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11465 break 2
11466 fi
11467done
5213506e
RW
11468 done
11469IFS=$as_save_IFS
278a7a38
AO
11470
11471fi
11472fi
11473LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11474if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11476$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11477else
5213506e
RW
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11479$as_echo "no" >&6; }
278a7a38
AO
11480fi
11481
5213506e 11482
278a7a38
AO
11483 done
11484fi
11485
11486if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11487 for ncn_progname in ld; do
5213506e
RW
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11489$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11490 if test -x $with_build_time_tools/${ncn_progname}; then
11491 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11493$as_echo "yes" >&6; }
e8b05380
PB
11494 break
11495 else
5213506e
RW
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497$as_echo "no" >&6; }
e8b05380
PB
11498 fi
11499 done
ca9f4b81
AO
11500fi
11501
e8b05380
PB
11502if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11503 for ncn_progname in ld; do
11504 if test -n "$ncn_target_tool_prefix"; then
11505 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11506set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508$as_echo_n "checking for $ac_word... " >&6; }
11509if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
ca9f4b81 11511else
4de997d1
PB
11512 if test -n "$LD_FOR_TARGET"; then
11513 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11514else
1c710c3c
DJ
11515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516for as_dir in $PATH
11517do
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
5213506e
RW
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11522 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11524 break 2
11525 fi
11526done
5213506e
RW
11527 done
11528IFS=$as_save_IFS
1c710c3c 11529
ca9f4b81
AO
11530fi
11531fi
1c710c3c 11532LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11533if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11535$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11536else
5213506e
RW
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538$as_echo "no" >&6; }
ca9f4b81
AO
11539fi
11540
5213506e 11541
e8b05380
PB
11542 fi
11543 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11545set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547$as_echo_n "checking for $ac_word... " >&6; }
11548if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
ca9f4b81 11550else
2693c0b0
PB
11551 if test -n "$LD_FOR_TARGET"; then
11552 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11553else
1c710c3c
DJ
11554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555for as_dir in $PATH
11556do
11557 IFS=$as_save_IFS
11558 test -z "$as_dir" && as_dir=.
5213506e
RW
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11561 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11563 break 2
11564 fi
11565done
5213506e
RW
11566 done
11567IFS=$as_save_IFS
1c710c3c 11568
ca9f4b81
AO
11569fi
11570fi
1c710c3c 11571LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11572if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11574$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11575else
5213506e
RW
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577$as_echo "no" >&6; }
ca9f4b81 11578fi
1c710c3c 11579
5213506e 11580
e8b05380
PB
11581 fi
11582 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11583 done
11584fi
1c710c3c 11585
2693c0b0
PB
11586if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11587 set dummy ld
11588 if test $build = $target ; then
11589 LD_FOR_TARGET="$2"
ca9f4b81 11590 else
2693c0b0 11591 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11592 fi
1c00b503
PB
11593else
11594 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11595fi
11596
d1f8db0c
PB
11597else
11598 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11599fi
11600
11601
11602
11603
11604if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11605 if test -n "$with_build_time_tools"; then
5213506e
RW
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11607$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11608 if test -x $with_build_time_tools/lipo; then
11609 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11610 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11612$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11613 else
5213506e
RW
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615$as_echo "no" >&6; }
d1f8db0c 11616 fi
e8b05380
PB
11617 elif test $build != $host && test $have_gcc_for_target = yes; then
11618 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11619 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11620 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11621 fi
11622fi
278a7a38
AO
11623if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11624 # Extract the first word of "lipo", so it can be a program name with args.
11625set dummy lipo; ac_word=$2
5213506e
RW
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627$as_echo_n "checking for $ac_word... " >&6; }
11628if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
278a7a38
AO
11630else
11631 case $LIPO_FOR_TARGET in
11632 [\\/]* | ?:[\\/]*)
11633 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11634 ;;
11635 *)
11636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637for as_dir in $gcc_cv_tool_dirs
11638do
11639 IFS=$as_save_IFS
11640 test -z "$as_dir" && as_dir=.
5213506e
RW
11641 for ac_exec_ext in '' $ac_executable_extensions; do
11642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11643 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11645 break 2
11646 fi
11647done
5213506e
RW
11648 done
11649IFS=$as_save_IFS
278a7a38
AO
11650
11651 ;;
11652esac
11653fi
11654LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11655if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11657$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11658else
5213506e
RW
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660$as_echo "no" >&6; }
278a7a38
AO
11661fi
11662
5213506e 11663
278a7a38
AO
11664fi
11665if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11666
11667
11668if test -n "$LIPO_FOR_TARGET"; then
11669 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11670elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11671 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11672fi
11673
11674if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11675 for ncn_progname in lipo; do
11676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11677set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679$as_echo_n "checking for $ac_word... " >&6; }
11680if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
e8b05380 11682else
278a7a38
AO
11683 if test -n "$LIPO_FOR_TARGET"; then
11684 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11685else
11686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687for as_dir in $PATH
1c710c3c
DJ
11688do
11689 IFS=$as_save_IFS
11690 test -z "$as_dir" && as_dir=.
5213506e
RW
11691 for ac_exec_ext in '' $ac_executable_extensions; do
11692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11693 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11695 break 2
11696 fi
11697done
5213506e
RW
11698 done
11699IFS=$as_save_IFS
1c710c3c 11700
e8b05380 11701fi
278a7a38
AO
11702fi
11703LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11704if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11706$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11707else
5213506e
RW
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709$as_echo "no" >&6; }
e8b05380
PB
11710fi
11711
5213506e 11712
278a7a38 11713 done
e8b05380 11714fi
278a7a38
AO
11715
11716if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11717 for ncn_progname in lipo; do
5213506e
RW
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11719$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11720 if test -x $with_build_time_tools/${ncn_progname}; then
11721 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11723$as_echo "yes" >&6; }
e8b05380
PB
11724 break
11725 else
5213506e
RW
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727$as_echo "no" >&6; }
e8b05380
PB
11728 fi
11729 done
11730fi
11731
11732if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11733 for ncn_progname in lipo; do
11734 if test -n "$ncn_target_tool_prefix"; then
11735 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11736set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11738$as_echo_n "checking for $ac_word... " >&6; }
11739if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11740 $as_echo_n "(cached) " >&6
040b1c5a
GK
11741else
11742 if test -n "$LIPO_FOR_TARGET"; then
11743 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11744else
1c710c3c
DJ
11745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746for as_dir in $PATH
11747do
11748 IFS=$as_save_IFS
11749 test -z "$as_dir" && as_dir=.
5213506e
RW
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11752 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11754 break 2
11755 fi
11756done
5213506e
RW
11757 done
11758IFS=$as_save_IFS
1c710c3c 11759
040b1c5a
GK
11760fi
11761fi
1c710c3c 11762LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11763if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11765$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11766else
5213506e
RW
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768$as_echo "no" >&6; }
040b1c5a
GK
11769fi
11770
5213506e 11771
e8b05380
PB
11772 fi
11773 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11775set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11777$as_echo_n "checking for $ac_word... " >&6; }
11778if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11779 $as_echo_n "(cached) " >&6
040b1c5a
GK
11780else
11781 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11782 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11783else
1c710c3c
DJ
11784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785for as_dir in $PATH
11786do
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
5213506e
RW
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11791 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11793 break 2
11794 fi
11795done
5213506e
RW
11796 done
11797IFS=$as_save_IFS
1c710c3c 11798
040b1c5a
GK
11799fi
11800fi
1c710c3c 11801LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11802if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11804$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11805else
5213506e
RW
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807$as_echo "no" >&6; }
040b1c5a 11808fi
1c710c3c 11809
5213506e 11810
e8b05380
PB
11811 fi
11812 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11813 done
11814fi
1c710c3c 11815
040b1c5a
GK
11816if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11817 set dummy lipo
11818 if test $build = $target ; then
11819 LIPO_FOR_TARGET="$2"
11820 else
11821 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11822 fi
1c00b503
PB
11823else
11824 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11825fi
11826
d1f8db0c
PB
11827else
11828 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11829fi
11830
11831
11832
11833
11834if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11835 if test -n "$with_build_time_tools"; then
5213506e
RW
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11837$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11838 if test -x $with_build_time_tools/nm; then
11839 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11840 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11842$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11843 else
5213506e
RW
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845$as_echo "no" >&6; }
d1f8db0c 11846 fi
e8b05380
PB
11847 elif test $build != $host && test $have_gcc_for_target = yes; then
11848 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11849 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11850 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11851 fi
11852fi
3e19841a 11853if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11854 # Extract the first word of "nm", so it can be a program name with args.
11855set dummy nm; ac_word=$2
5213506e
RW
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857$as_echo_n "checking for $ac_word... " >&6; }
11858if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
e8b05380 11860else
1c710c3c
DJ
11861 case $NM_FOR_TARGET in
11862 [\\/]* | ?:[\\/]*)
e8b05380
PB
11863 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11864 ;;
e8b05380 11865 *)
1c710c3c
DJ
11866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867for as_dir in $gcc_cv_tool_dirs
11868do
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
5213506e
RW
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11873 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11875 break 2
11876 fi
11877done
5213506e
RW
11878 done
11879IFS=$as_save_IFS
1c710c3c 11880
e8b05380
PB
11881 ;;
11882esac
11883fi
1c710c3c 11884NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11885if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11887$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11888else
5213506e
RW
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890$as_echo "no" >&6; }
e8b05380
PB
11891fi
11892
5213506e 11893
e8b05380
PB
11894fi
11895if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11896
11897
11898if test -n "$NM_FOR_TARGET"; then
11899 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11900elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11901 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11902fi
11903
11904if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11905 for ncn_progname in nm; do
11906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11907set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909$as_echo_n "checking for $ac_word... " >&6; }
11910if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11911 $as_echo_n "(cached) " >&6
278a7a38
AO
11912else
11913 if test -n "$NM_FOR_TARGET"; then
11914 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11915else
11916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917for as_dir in $PATH
11918do
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
5213506e
RW
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11923 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11925 break 2
11926 fi
11927done
5213506e
RW
11928 done
11929IFS=$as_save_IFS
278a7a38
AO
11930
11931fi
11932fi
11933NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11934if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11936$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11937else
5213506e
RW
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939$as_echo "no" >&6; }
278a7a38
AO
11940fi
11941
5213506e 11942
278a7a38
AO
11943 done
11944fi
11945
11946if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11947 for ncn_progname in nm; do
5213506e
RW
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11949$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11950 if test -x $with_build_time_tools/${ncn_progname}; then
11951 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11953$as_echo "yes" >&6; }
e8b05380
PB
11954 break
11955 else
5213506e
RW
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957$as_echo "no" >&6; }
e8b05380
PB
11958 fi
11959 done
11960fi
11961
11962if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11963 for ncn_progname in nm; do
11964 if test -n "$ncn_target_tool_prefix"; then
11965 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11966set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11968$as_echo_n "checking for $ac_word... " >&6; }
11969if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11970 $as_echo_n "(cached) " >&6
ca9f4b81 11971else
4de997d1
PB
11972 if test -n "$NM_FOR_TARGET"; then
11973 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11974else
1c710c3c
DJ
11975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976for as_dir in $PATH
11977do
11978 IFS=$as_save_IFS
11979 test -z "$as_dir" && as_dir=.
5213506e
RW
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11982 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11984 break 2
11985 fi
11986done
5213506e
RW
11987 done
11988IFS=$as_save_IFS
1c710c3c 11989
ca9f4b81
AO
11990fi
11991fi
1c710c3c 11992NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11993if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11995$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11996else
5213506e
RW
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998$as_echo "no" >&6; }
ca9f4b81
AO
11999fi
12000
5213506e 12001
e8b05380
PB
12002 fi
12003 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12005set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12007$as_echo_n "checking for $ac_word... " >&6; }
12008if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12009 $as_echo_n "(cached) " >&6
ca9f4b81 12010else
2693c0b0
PB
12011 if test -n "$NM_FOR_TARGET"; then
12012 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12013else
1c710c3c
DJ
12014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015for as_dir in $PATH
12016do
12017 IFS=$as_save_IFS
12018 test -z "$as_dir" && as_dir=.
5213506e
RW
12019 for ac_exec_ext in '' $ac_executable_extensions; do
12020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12021 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12023 break 2
12024 fi
12025done
5213506e
RW
12026 done
12027IFS=$as_save_IFS
1c710c3c 12028
ca9f4b81
AO
12029fi
12030fi
1c710c3c 12031NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12032if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12034$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12035else
5213506e
RW
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12037$as_echo "no" >&6; }
ca9f4b81 12038fi
1c710c3c 12039
5213506e 12040
e8b05380
PB
12041 fi
12042 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12043 done
12044fi
1c710c3c 12045
2693c0b0
PB
12046if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12047 set dummy nm
12048 if test $build = $target ; then
12049 NM_FOR_TARGET="$2"
ca9f4b81 12050 else
2693c0b0 12051 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12052 fi
1c00b503
PB
12053else
12054 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12055fi
12056
d1f8db0c
PB
12057else
12058 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12059fi
12060
12061
12062
12063
12064if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12065 if test -n "$with_build_time_tools"; then
5213506e
RW
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12067$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12068 if test -x $with_build_time_tools/objdump; then
12069 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12070 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12072$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12073 else
5213506e
RW
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075$as_echo "no" >&6; }
d1f8db0c 12076 fi
e8b05380
PB
12077 elif test $build != $host && test $have_gcc_for_target = yes; then
12078 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12079 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12080 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12081 fi
12082fi
3e19841a 12083if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12084 # Extract the first word of "objdump", so it can be a program name with args.
12085set dummy objdump; ac_word=$2
5213506e
RW
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087$as_echo_n "checking for $ac_word... " >&6; }
12088if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12089 $as_echo_n "(cached) " >&6
e8b05380 12090else
1c710c3c
DJ
12091 case $OBJDUMP_FOR_TARGET in
12092 [\\/]* | ?:[\\/]*)
e8b05380
PB
12093 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12094 ;;
e8b05380 12095 *)
1c710c3c
DJ
12096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097for as_dir in $gcc_cv_tool_dirs
12098do
12099 IFS=$as_save_IFS
12100 test -z "$as_dir" && as_dir=.
5213506e
RW
12101 for ac_exec_ext in '' $ac_executable_extensions; do
12102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12103 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12105 break 2
12106 fi
12107done
5213506e
RW
12108 done
12109IFS=$as_save_IFS
1c710c3c 12110
e8b05380
PB
12111 ;;
12112esac
12113fi
1c710c3c 12114OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12115if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12117$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12118else
5213506e
RW
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120$as_echo "no" >&6; }
e8b05380
PB
12121fi
12122
5213506e 12123
e8b05380
PB
12124fi
12125if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12126
12127
12128if test -n "$OBJDUMP_FOR_TARGET"; then
12129 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12130elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12131 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12132fi
12133
12134if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12135 for ncn_progname in objdump; do
12136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12137set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139$as_echo_n "checking for $ac_word... " >&6; }
12140if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12141 $as_echo_n "(cached) " >&6
278a7a38
AO
12142else
12143 if test -n "$OBJDUMP_FOR_TARGET"; then
12144 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12145else
12146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147for as_dir in $PATH
12148do
12149 IFS=$as_save_IFS
12150 test -z "$as_dir" && as_dir=.
5213506e
RW
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12153 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12155 break 2
12156 fi
12157done
5213506e
RW
12158 done
12159IFS=$as_save_IFS
278a7a38
AO
12160
12161fi
12162fi
12163OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12164if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12166$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12167else
5213506e
RW
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169$as_echo "no" >&6; }
278a7a38
AO
12170fi
12171
5213506e 12172
278a7a38
AO
12173 done
12174fi
12175
12176if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12177 for ncn_progname in objdump; do
5213506e
RW
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12179$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12180 if test -x $with_build_time_tools/${ncn_progname}; then
12181 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12183$as_echo "yes" >&6; }
e8b05380
PB
12184 break
12185 else
5213506e
RW
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187$as_echo "no" >&6; }
e8b05380
PB
12188 fi
12189 done
12190fi
12191
12192if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12193 for ncn_progname in objdump; do
12194 if test -n "$ncn_target_tool_prefix"; then
12195 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12196set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12198$as_echo_n "checking for $ac_word... " >&6; }
12199if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12200 $as_echo_n "(cached) " >&6
d739199a
DJ
12201else
12202 if test -n "$OBJDUMP_FOR_TARGET"; then
12203 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12204else
1c710c3c
DJ
12205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206for as_dir in $PATH
12207do
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
5213506e
RW
12210 for ac_exec_ext in '' $ac_executable_extensions; do
12211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12212 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12214 break 2
12215 fi
12216done
5213506e
RW
12217 done
12218IFS=$as_save_IFS
1c710c3c 12219
d739199a
DJ
12220fi
12221fi
1c710c3c 12222OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12223if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12225$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12226else
5213506e
RW
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228$as_echo "no" >&6; }
d739199a
DJ
12229fi
12230
5213506e 12231
e8b05380
PB
12232 fi
12233 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12235set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237$as_echo_n "checking for $ac_word... " >&6; }
12238if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
d739199a
DJ
12240else
12241 if test -n "$OBJDUMP_FOR_TARGET"; then
12242 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12243else
1c710c3c
DJ
12244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245for as_dir in $PATH
12246do
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
5213506e
RW
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12251 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12253 break 2
12254 fi
12255done
5213506e
RW
12256 done
12257IFS=$as_save_IFS
1c710c3c 12258
d739199a
DJ
12259fi
12260fi
1c710c3c 12261OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12262if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12264$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12265else
5213506e
RW
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267$as_echo "no" >&6; }
d739199a 12268fi
1c710c3c 12269
5213506e 12270
e8b05380
PB
12271 fi
12272 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12273 done
12274fi
1c710c3c 12275
d739199a
DJ
12276if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12277 set dummy objdump
12278 if test $build = $target ; then
12279 OBJDUMP_FOR_TARGET="$2"
12280 else
12281 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12282 fi
1c00b503
PB
12283else
12284 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12285fi
12286
d1f8db0c
PB
12287else
12288 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12289fi
12290
12291
12292
12293
12294if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12295 if test -n "$with_build_time_tools"; then
5213506e
RW
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12297$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12298 if test -x $with_build_time_tools/ranlib; then
12299 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12300 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12302$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12303 else
5213506e
RW
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305$as_echo "no" >&6; }
d1f8db0c 12306 fi
e8b05380
PB
12307 elif test $build != $host && test $have_gcc_for_target = yes; then
12308 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12309 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12310 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12311 fi
12312fi
3e19841a 12313if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12314 # Extract the first word of "ranlib", so it can be a program name with args.
12315set dummy ranlib; ac_word=$2
5213506e
RW
12316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317$as_echo_n "checking for $ac_word... " >&6; }
12318if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
e8b05380 12320else
1c710c3c
DJ
12321 case $RANLIB_FOR_TARGET in
12322 [\\/]* | ?:[\\/]*)
e8b05380
PB
12323 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12324 ;;
e8b05380 12325 *)
1c710c3c
DJ
12326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327for as_dir in $gcc_cv_tool_dirs
12328do
12329 IFS=$as_save_IFS
12330 test -z "$as_dir" && as_dir=.
5213506e
RW
12331 for ac_exec_ext in '' $ac_executable_extensions; do
12332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12333 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12335 break 2
12336 fi
12337done
5213506e
RW
12338 done
12339IFS=$as_save_IFS
1c710c3c 12340
e8b05380
PB
12341 ;;
12342esac
12343fi
1c710c3c 12344RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12345if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12347$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12348else
5213506e
RW
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350$as_echo "no" >&6; }
e8b05380
PB
12351fi
12352
5213506e 12353
e8b05380
PB
12354fi
12355if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12356
12357
12358if test -n "$RANLIB_FOR_TARGET"; then
12359 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12360elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12361 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12362fi
12363
12364if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12365 for ncn_progname in ranlib; do
12366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12367set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12369$as_echo_n "checking for $ac_word... " >&6; }
12370if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12371 $as_echo_n "(cached) " >&6
278a7a38
AO
12372else
12373 if test -n "$RANLIB_FOR_TARGET"; then
12374 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12375else
12376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377for as_dir in $PATH
12378do
12379 IFS=$as_save_IFS
12380 test -z "$as_dir" && as_dir=.
5213506e
RW
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12383 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12385 break 2
12386 fi
12387done
5213506e
RW
12388 done
12389IFS=$as_save_IFS
278a7a38
AO
12390
12391fi
12392fi
12393RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12394if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12396$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12397else
5213506e
RW
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399$as_echo "no" >&6; }
278a7a38
AO
12400fi
12401
5213506e 12402
278a7a38
AO
12403 done
12404fi
12405
12406if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12407 for ncn_progname in ranlib; do
5213506e
RW
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12409$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12410 if test -x $with_build_time_tools/${ncn_progname}; then
12411 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12413$as_echo "yes" >&6; }
e8b05380
PB
12414 break
12415 else
5213506e
RW
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417$as_echo "no" >&6; }
e8b05380
PB
12418 fi
12419 done
12420fi
12421
12422if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12423 for ncn_progname in ranlib; do
12424 if test -n "$ncn_target_tool_prefix"; then
12425 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12426set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428$as_echo_n "checking for $ac_word... " >&6; }
12429if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12430 $as_echo_n "(cached) " >&6
ca9f4b81 12431else
4de997d1
PB
12432 if test -n "$RANLIB_FOR_TARGET"; then
12433 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12434else
1c710c3c
DJ
12435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436for as_dir in $PATH
12437do
12438 IFS=$as_save_IFS
12439 test -z "$as_dir" && as_dir=.
5213506e
RW
12440 for ac_exec_ext in '' $ac_executable_extensions; do
12441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12442 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12444 break 2
12445 fi
12446done
5213506e
RW
12447 done
12448IFS=$as_save_IFS
1c710c3c 12449
ca9f4b81
AO
12450fi
12451fi
1c710c3c 12452RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12453if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12455$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12456else
5213506e
RW
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458$as_echo "no" >&6; }
ca9f4b81
AO
12459fi
12460
5213506e 12461
e8b05380
PB
12462 fi
12463 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12465set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467$as_echo_n "checking for $ac_word... " >&6; }
12468if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12469 $as_echo_n "(cached) " >&6
ca9f4b81 12470else
2693c0b0
PB
12471 if test -n "$RANLIB_FOR_TARGET"; then
12472 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12473else
1c710c3c
DJ
12474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475for as_dir in $PATH
12476do
12477 IFS=$as_save_IFS
12478 test -z "$as_dir" && as_dir=.
5213506e
RW
12479 for ac_exec_ext in '' $ac_executable_extensions; do
12480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12481 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12483 break 2
12484 fi
12485done
5213506e
RW
12486 done
12487IFS=$as_save_IFS
1c710c3c 12488
ca9f4b81
AO
12489fi
12490fi
1c710c3c 12491RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12492if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12494$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12495else
5213506e
RW
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497$as_echo "no" >&6; }
ca9f4b81 12498fi
1c710c3c 12499
5213506e 12500
e8b05380
PB
12501 fi
12502 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12503 done
12504fi
1c710c3c 12505
e8b05380
PB
12506if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12507 set dummy ranlib
12508 if test $build = $target ; then
12509 RANLIB_FOR_TARGET="$2"
12510 else
12511 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12512 fi
1c00b503
PB
12513else
12514 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12515fi
2693c0b0 12516
d1f8db0c
PB
12517else
12518 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12519fi
12520
e8b05380
PB
12521
12522
12523
e7a82751
RM
12524if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12525 if test -n "$with_build_time_tools"; then
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12527$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12528 if test -x $with_build_time_tools/readelf; then
12529 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12530 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12532$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12533 else
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12535$as_echo "no" >&6; }
12536 fi
12537 elif test $build != $host && test $have_gcc_for_target = yes; then
12538 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12539 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12540 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12541 fi
12542fi
12543if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12544 # Extract the first word of "readelf", so it can be a program name with args.
12545set dummy readelf; ac_word=$2
12546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547$as_echo_n "checking for $ac_word... " >&6; }
12548if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12550else
12551 case $READELF_FOR_TARGET in
12552 [\\/]* | ?:[\\/]*)
12553 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12554 ;;
12555 *)
12556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557for as_dir in $gcc_cv_tool_dirs
12558do
12559 IFS=$as_save_IFS
12560 test -z "$as_dir" && as_dir=.
12561 for ac_exec_ext in '' $ac_executable_extensions; do
12562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12563 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565 break 2
12566 fi
12567done
12568 done
12569IFS=$as_save_IFS
12570
12571 ;;
12572esac
12573fi
12574READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12575if test -n "$READELF_FOR_TARGET"; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12577$as_echo "$READELF_FOR_TARGET" >&6; }
12578else
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580$as_echo "no" >&6; }
12581fi
12582
12583
12584fi
12585if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12586
12587
12588if test -n "$READELF_FOR_TARGET"; then
12589 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12590elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12591 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12592fi
12593
12594if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12595 for ncn_progname in readelf; do
12596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12597set dummy ${ncn_progname}; ac_word=$2
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12599$as_echo_n "checking for $ac_word... " >&6; }
12600if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12601 $as_echo_n "(cached) " >&6
12602else
12603 if test -n "$READELF_FOR_TARGET"; then
12604 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12605else
12606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607for as_dir in $PATH
12608do
12609 IFS=$as_save_IFS
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12613 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 break 2
12616 fi
12617done
12618 done
12619IFS=$as_save_IFS
12620
12621fi
12622fi
12623READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12624if test -n "$READELF_FOR_TARGET"; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12626$as_echo "$READELF_FOR_TARGET" >&6; }
12627else
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629$as_echo "no" >&6; }
12630fi
12631
12632
12633 done
12634fi
12635
12636if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12637 for ncn_progname in readelf; do
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12639$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12640 if test -x $with_build_time_tools/${ncn_progname}; then
12641 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12643$as_echo "yes" >&6; }
12644 break
12645 else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647$as_echo "no" >&6; }
12648 fi
12649 done
12650fi
12651
12652if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12653 for ncn_progname in readelf; do
12654 if test -n "$ncn_target_tool_prefix"; then
12655 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12656set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12658$as_echo_n "checking for $ac_word... " >&6; }
12659if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12660 $as_echo_n "(cached) " >&6
12661else
12662 if test -n "$READELF_FOR_TARGET"; then
12663 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12664else
12665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666for as_dir in $PATH
12667do
12668 IFS=$as_save_IFS
12669 test -z "$as_dir" && as_dir=.
12670 for ac_exec_ext in '' $ac_executable_extensions; do
12671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12672 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674 break 2
12675 fi
12676done
12677 done
12678IFS=$as_save_IFS
12679
12680fi
12681fi
12682READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12683if test -n "$READELF_FOR_TARGET"; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12685$as_echo "$READELF_FOR_TARGET" >&6; }
12686else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688$as_echo "no" >&6; }
12689fi
12690
12691
12692 fi
12693 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12695set dummy ${ncn_progname}; ac_word=$2
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12697$as_echo_n "checking for $ac_word... " >&6; }
12698if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12699 $as_echo_n "(cached) " >&6
12700else
12701 if test -n "$READELF_FOR_TARGET"; then
12702 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12703else
12704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705for as_dir in $PATH
12706do
12707 IFS=$as_save_IFS
12708 test -z "$as_dir" && as_dir=.
12709 for ac_exec_ext in '' $ac_executable_extensions; do
12710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12711 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12713 break 2
12714 fi
12715done
12716 done
12717IFS=$as_save_IFS
12718
12719fi
12720fi
12721READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12722if test -n "$READELF_FOR_TARGET"; then
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12724$as_echo "$READELF_FOR_TARGET" >&6; }
12725else
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727$as_echo "no" >&6; }
12728fi
12729
12730
12731 fi
12732 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12733 done
12734fi
12735
12736if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12737 set dummy readelf
12738 if test $build = $target ; then
12739 READELF_FOR_TARGET="$2"
12740 else
12741 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12742 fi
12743else
12744 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12745fi
12746
12747else
12748 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12749fi
12750
12751
12752
12753
e8b05380
PB
12754if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12755 if test -n "$with_build_time_tools"; then
5213506e
RW
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12757$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12758 if test -x $with_build_time_tools/strip; then
12759 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12760 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12762$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12763 else
5213506e
RW
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765$as_echo "no" >&6; }
d1f8db0c 12766 fi
e8b05380
PB
12767 elif test $build != $host && test $have_gcc_for_target = yes; then
12768 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12769 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12770 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12771 fi
12772fi
3e19841a 12773if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12774 # Extract the first word of "strip", so it can be a program name with args.
12775set dummy strip; ac_word=$2
5213506e
RW
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777$as_echo_n "checking for $ac_word... " >&6; }
12778if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
e8b05380 12780else
1c710c3c
DJ
12781 case $STRIP_FOR_TARGET in
12782 [\\/]* | ?:[\\/]*)
e8b05380
PB
12783 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12784 ;;
e8b05380 12785 *)
1c710c3c
DJ
12786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787for as_dir in $gcc_cv_tool_dirs
12788do
12789 IFS=$as_save_IFS
12790 test -z "$as_dir" && as_dir=.
5213506e
RW
12791 for ac_exec_ext in '' $ac_executable_extensions; do
12792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12793 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12795 break 2
12796 fi
12797done
5213506e
RW
12798 done
12799IFS=$as_save_IFS
1c710c3c 12800
e8b05380
PB
12801 ;;
12802esac
12803fi
1c710c3c 12804STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12805if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12807$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12808else
5213506e
RW
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810$as_echo "no" >&6; }
e8b05380
PB
12811fi
12812
5213506e 12813
e8b05380
PB
12814fi
12815if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12816
12817
12818if test -n "$STRIP_FOR_TARGET"; then
12819 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12820elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12821 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12822fi
12823
12824if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12825 for ncn_progname in strip; do
12826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12827set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829$as_echo_n "checking for $ac_word... " >&6; }
12830if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12831 $as_echo_n "(cached) " >&6
278a7a38
AO
12832else
12833 if test -n "$STRIP_FOR_TARGET"; then
12834 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12835else
12836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837for as_dir in $PATH
12838do
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
5213506e
RW
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12843 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12845 break 2
12846 fi
12847done
5213506e
RW
12848 done
12849IFS=$as_save_IFS
278a7a38
AO
12850
12851fi
12852fi
12853STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12854if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12856$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12857else
5213506e
RW
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859$as_echo "no" >&6; }
278a7a38
AO
12860fi
12861
5213506e 12862
278a7a38
AO
12863 done
12864fi
12865
12866if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12867 for ncn_progname in strip; do
5213506e
RW
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12869$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12870 if test -x $with_build_time_tools/${ncn_progname}; then
12871 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12873$as_echo "yes" >&6; }
e8b05380
PB
12874 break
12875 else
5213506e
RW
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877$as_echo "no" >&6; }
e8b05380
PB
12878 fi
12879 done
12880fi
12881
12882if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12883 for ncn_progname in strip; do
12884 if test -n "$ncn_target_tool_prefix"; then
12885 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12886set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12888$as_echo_n "checking for $ac_word... " >&6; }
12889if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12890 $as_echo_n "(cached) " >&6
af71363e
AS
12891else
12892 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12893 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12894else
12895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896for as_dir in $PATH
12897do
12898 IFS=$as_save_IFS
12899 test -z "$as_dir" && as_dir=.
5213506e
RW
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12902 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12904 break 2
12905 fi
12906done
5213506e
RW
12907 done
12908IFS=$as_save_IFS
1c710c3c 12909
040b1c5a
GK
12910fi
12911fi
1c710c3c 12912STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12913if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12915$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12916else
5213506e
RW
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918$as_echo "no" >&6; }
040b1c5a
GK
12919fi
12920
5213506e 12921
e8b05380
PB
12922 fi
12923 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12924 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12925set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927$as_echo_n "checking for $ac_word... " >&6; }
12928if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12929 $as_echo_n "(cached) " >&6
040b1c5a
GK
12930else
12931 if test -n "$STRIP_FOR_TARGET"; then
12932 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12933else
1c710c3c
DJ
12934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935for as_dir in $PATH
12936do
12937 IFS=$as_save_IFS
12938 test -z "$as_dir" && as_dir=.
5213506e
RW
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12941 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12943 break 2
12944 fi
12945done
5213506e
RW
12946 done
12947IFS=$as_save_IFS
1c710c3c 12948
040b1c5a
GK
12949fi
12950fi
1c710c3c 12951STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12952if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12954$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12955else
5213506e
RW
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12957$as_echo "no" >&6; }
040b1c5a 12958fi
1c710c3c 12959
5213506e 12960
e8b05380
PB
12961 fi
12962 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12963 done
12964fi
1c710c3c 12965
040b1c5a
GK
12966if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12967 set dummy strip
12968 if test $build = $target ; then
12969 STRIP_FOR_TARGET="$2"
12970 else
12971 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12972 fi
1c00b503
PB
12973else
12974 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
12975fi
12976
d1f8db0c
PB
12977else
12978 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
12979fi
12980
12981
12982
12983
12984if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12985 if test -n "$with_build_time_tools"; then
5213506e
RW
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12987$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12988 if test -x $with_build_time_tools/windres; then
12989 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12990 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12992$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 12993 else
5213506e
RW
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12995$as_echo "no" >&6; }
d1f8db0c 12996 fi
e8b05380
PB
12997 elif test $build != $host && test $have_gcc_for_target = yes; then
12998 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
12999 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13000 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13001 fi
13002fi
3e19841a 13003if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13004 # Extract the first word of "windres", so it can be a program name with args.
13005set dummy windres; ac_word=$2
5213506e
RW
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007$as_echo_n "checking for $ac_word... " >&6; }
13008if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
e8b05380 13010else
1c710c3c
DJ
13011 case $WINDRES_FOR_TARGET in
13012 [\\/]* | ?:[\\/]*)
e8b05380
PB
13013 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13014 ;;
e8b05380 13015 *)
1c710c3c
DJ
13016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017for as_dir in $gcc_cv_tool_dirs
13018do
13019 IFS=$as_save_IFS
13020 test -z "$as_dir" && as_dir=.
5213506e
RW
13021 for ac_exec_ext in '' $ac_executable_extensions; do
13022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13023 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13025 break 2
13026 fi
13027done
5213506e
RW
13028 done
13029IFS=$as_save_IFS
1c710c3c 13030
e8b05380
PB
13031 ;;
13032esac
13033fi
1c710c3c 13034WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13035if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13037$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13038else
5213506e
RW
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040$as_echo "no" >&6; }
e8b05380
PB
13041fi
13042
5213506e 13043
e8b05380
PB
13044fi
13045if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13046
13047
13048if test -n "$WINDRES_FOR_TARGET"; then
13049 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13050elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13051 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13052fi
13053
13054if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13055 for ncn_progname in windres; do
13056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13057set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059$as_echo_n "checking for $ac_word... " >&6; }
13060if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13061 $as_echo_n "(cached) " >&6
278a7a38
AO
13062else
13063 if test -n "$WINDRES_FOR_TARGET"; then
13064 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13065else
13066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067for as_dir in $PATH
13068do
13069 IFS=$as_save_IFS
13070 test -z "$as_dir" && as_dir=.
5213506e
RW
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13073 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13075 break 2
13076 fi
13077done
5213506e
RW
13078 done
13079IFS=$as_save_IFS
278a7a38
AO
13080
13081fi
13082fi
13083WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13084if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13086$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13087else
5213506e
RW
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089$as_echo "no" >&6; }
278a7a38
AO
13090fi
13091
5213506e 13092
278a7a38
AO
13093 done
13094fi
13095
13096if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13097 for ncn_progname in windres; do
5213506e
RW
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13099$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13100 if test -x $with_build_time_tools/${ncn_progname}; then
13101 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13103$as_echo "yes" >&6; }
e8b05380
PB
13104 break
13105 else
5213506e
RW
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107$as_echo "no" >&6; }
e8b05380
PB
13108 fi
13109 done
13110fi
13111
13112if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13113 for ncn_progname in windres; do
13114 if test -n "$ncn_target_tool_prefix"; then
13115 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13116set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13118$as_echo_n "checking for $ac_word... " >&6; }
13119if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13120 $as_echo_n "(cached) " >&6
ca9f4b81 13121else
4de997d1
PB
13122 if test -n "$WINDRES_FOR_TARGET"; then
13123 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13124else
1c710c3c
DJ
13125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126for as_dir in $PATH
13127do
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
5213506e
RW
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13132 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13134 break 2
13135 fi
13136done
5213506e
RW
13137 done
13138IFS=$as_save_IFS
1c710c3c 13139
ca9f4b81
AO
13140fi
13141fi
1c710c3c 13142WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13143if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13145$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13146else
5213506e
RW
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148$as_echo "no" >&6; }
ca9f4b81
AO
13149fi
13150
5213506e 13151
e8b05380
PB
13152 fi
13153 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13155set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157$as_echo_n "checking for $ac_word... " >&6; }
13158if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
ca9f4b81 13160else
2693c0b0
PB
13161 if test -n "$WINDRES_FOR_TARGET"; then
13162 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13163else
1c710c3c
DJ
13164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165for as_dir in $PATH
13166do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
5213506e
RW
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13171 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13173 break 2
13174 fi
13175done
5213506e
RW
13176 done
13177IFS=$as_save_IFS
1c710c3c 13178
ca9f4b81
AO
13179fi
13180fi
1c710c3c 13181WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13182if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13184$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13185else
5213506e
RW
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187$as_echo "no" >&6; }
ca9f4b81 13188fi
1c710c3c 13189
5213506e 13190
e8b05380
PB
13191 fi
13192 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13193 done
13194fi
1c710c3c 13195
2693c0b0
PB
13196if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13197 set dummy windres
13198 if test $build = $target ; then
13199 WINDRES_FOR_TARGET="$2"
ca9f4b81 13200 else
2693c0b0 13201 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13202 fi
1c00b503
PB
13203else
13204 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13205fi
13206
d1f8db0c
PB
13207else
13208 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13209fi
13210
4977bab6 13211
901119ae
KT
13212
13213
13214if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13215 if test -n "$with_build_time_tools"; then
5213506e
RW
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13217$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13218 if test -x $with_build_time_tools/windmc; then
13219 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13220 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13222$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13223 else
5213506e
RW
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225$as_echo "no" >&6; }
901119ae
KT
13226 fi
13227 elif test $build != $host && test $have_gcc_for_target = yes; then
13228 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13229 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13230 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13231 fi
13232fi
13233if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13234 # Extract the first word of "windmc", so it can be a program name with args.
13235set dummy windmc; ac_word=$2
5213506e
RW
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237$as_echo_n "checking for $ac_word... " >&6; }
13238if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
901119ae
KT
13240else
13241 case $WINDMC_FOR_TARGET in
13242 [\\/]* | ?:[\\/]*)
13243 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13244 ;;
13245 *)
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247for as_dir in $gcc_cv_tool_dirs
13248do
13249 IFS=$as_save_IFS
13250 test -z "$as_dir" && as_dir=.
5213506e
RW
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13253 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13255 break 2
13256 fi
13257done
5213506e
RW
13258 done
13259IFS=$as_save_IFS
901119ae
KT
13260
13261 ;;
13262esac
13263fi
13264WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13265if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13267$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13268else
5213506e
RW
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270$as_echo "no" >&6; }
901119ae
KT
13271fi
13272
5213506e 13273
901119ae
KT
13274fi
13275if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13276
13277
13278if test -n "$WINDMC_FOR_TARGET"; then
13279 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13280elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13281 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13282fi
13283
13284if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13285 for ncn_progname in windmc; do
13286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13287set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289$as_echo_n "checking for $ac_word... " >&6; }
13290if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13291 $as_echo_n "(cached) " >&6
901119ae
KT
13292else
13293 if test -n "$WINDMC_FOR_TARGET"; then
13294 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13295else
13296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297for as_dir in $PATH
13298do
13299 IFS=$as_save_IFS
13300 test -z "$as_dir" && as_dir=.
5213506e
RW
13301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13303 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13305 break 2
13306 fi
13307done
5213506e
RW
13308 done
13309IFS=$as_save_IFS
901119ae
KT
13310
13311fi
13312fi
13313WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13314if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13316$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13317else
5213506e
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319$as_echo "no" >&6; }
901119ae
KT
13320fi
13321
5213506e 13322
901119ae
KT
13323 done
13324fi
13325
13326if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13327 for ncn_progname in windmc; do
5213506e
RW
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13329$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13330 if test -x $with_build_time_tools/${ncn_progname}; then
13331 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13333$as_echo "yes" >&6; }
901119ae
KT
13334 break
13335 else
5213506e
RW
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337$as_echo "no" >&6; }
901119ae
KT
13338 fi
13339 done
13340fi
13341
13342if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13343 for ncn_progname in windmc; do
13344 if test -n "$ncn_target_tool_prefix"; then
13345 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13346set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348$as_echo_n "checking for $ac_word... " >&6; }
13349if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13350 $as_echo_n "(cached) " >&6
901119ae
KT
13351else
13352 if test -n "$WINDMC_FOR_TARGET"; then
13353 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13354else
13355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356for as_dir in $PATH
13357do
13358 IFS=$as_save_IFS
13359 test -z "$as_dir" && as_dir=.
5213506e
RW
13360 for ac_exec_ext in '' $ac_executable_extensions; do
13361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13362 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13364 break 2
13365 fi
13366done
5213506e
RW
13367 done
13368IFS=$as_save_IFS
901119ae
KT
13369
13370fi
13371fi
13372WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13373if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13375$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13376else
5213506e
RW
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378$as_echo "no" >&6; }
901119ae
KT
13379fi
13380
5213506e 13381
901119ae
KT
13382 fi
13383 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13384 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13385set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13387$as_echo_n "checking for $ac_word... " >&6; }
13388if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13389 $as_echo_n "(cached) " >&6
901119ae
KT
13390else
13391 if test -n "$WINDMC_FOR_TARGET"; then
13392 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13393else
13394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395for as_dir in $PATH
13396do
13397 IFS=$as_save_IFS
13398 test -z "$as_dir" && as_dir=.
5213506e
RW
13399 for ac_exec_ext in '' $ac_executable_extensions; do
13400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13401 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13403 break 2
13404 fi
13405done
5213506e
RW
13406 done
13407IFS=$as_save_IFS
901119ae
KT
13408
13409fi
13410fi
13411WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13412if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13414$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13415else
5213506e
RW
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417$as_echo "no" >&6; }
901119ae
KT
13418fi
13419
5213506e 13420
901119ae
KT
13421 fi
13422 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13423 done
13424fi
13425
13426if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13427 set dummy windmc
13428 if test $build = $target ; then
13429 WINDMC_FOR_TARGET="$2"
13430 else
13431 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13432 fi
1c00b503
PB
13433else
13434 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13435fi
13436
13437else
13438 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13439fi
13440
13441
2abefe3d
PB
13442RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13443
5213506e
RW
13444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13445$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13446if test "x${build}" != "x${host}" ; then
e8b05380
PB
13447 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13448 # We already found the complete path
172e41aa 13449 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13451$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13452 else
13453 # Canadian cross, just use what we found
5213506e
RW
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13455$as_echo "pre-installed" >&6; }
e8b05380 13456 fi
2abefe3d
PB
13457else
13458 ok=yes
13459 case " ${configdirs} " in
13460 *" binutils "*) ;;
13461 *) ok=no ;;
13462 esac
1c710c3c 13463
2abefe3d
PB
13464 if test $ok = yes; then
13465 # An in-tree tool is available and we can use it
13466 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13468$as_echo "just compiled" >&6; }
e8b05380
PB
13469 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13470 # We already found the complete path
172e41aa 13471 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13473$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13474 elif test "x$target" = "x$host"; then
13475 # We can use an host tool
13476 AR_FOR_TARGET='$(AR)'
5213506e
RW
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13478$as_echo "host tool" >&6; }
2abefe3d
PB
13479 else
13480 # We need a cross tool
5213506e
RW
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13482$as_echo "pre-installed" >&6; }
2abefe3d
PB
13483 fi
13484fi
0b0dc272 13485
5213506e
RW
13486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13487$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13488if test "x${build}" != "x${host}" ; then
e8b05380
PB
13489 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13490 # We already found the complete path
172e41aa 13491 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13493$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13494 else
13495 # Canadian cross, just use what we found
5213506e
RW
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13497$as_echo "pre-installed" >&6; }
e8b05380 13498 fi
2abefe3d
PB
13499else
13500 ok=yes
13501 case " ${configdirs} " in
13502 *" gas "*) ;;
13503 *) ok=no ;;
13504 esac
1c710c3c 13505
2abefe3d
PB
13506 if test $ok = yes; then
13507 # An in-tree tool is available and we can use it
13508 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13510$as_echo "just compiled" >&6; }
e8b05380
PB
13511 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13512 # We already found the complete path
172e41aa 13513 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13515$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13516 elif test "x$target" = "x$host"; then
13517 # We can use an host tool
13518 AS_FOR_TARGET='$(AS)'
5213506e
RW
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13520$as_echo "host tool" >&6; }
2abefe3d
PB
13521 else
13522 # We need a cross tool
5213506e
RW
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13524$as_echo "pre-installed" >&6; }
2abefe3d
PB
13525 fi
13526fi
0b0dc272 13527
5213506e
RW
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13529$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13530if test "x${build}" != "x${host}" ; then
e8b05380
PB
13531 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13532 # We already found the complete path
172e41aa 13533 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13535$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13536 else
13537 # Canadian cross, just use what we found
5213506e
RW
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13539$as_echo "pre-installed" >&6; }
e8b05380 13540 fi
2abefe3d
PB
13541else
13542 ok=yes
13543 case " ${configdirs} " in
13544 *" gcc "*) ;;
13545 *) ok=no ;;
13546 esac
1c710c3c 13547
2abefe3d
PB
13548 if test $ok = yes; then
13549 # An in-tree tool is available and we can use it
13550 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13552$as_echo "just compiled" >&6; }
e8b05380
PB
13553 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13554 # We already found the complete path
172e41aa 13555 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13557$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13558 elif test "x$target" = "x$host"; then
13559 # We can use an host tool
13560 CC_FOR_TARGET='$(CC)'
5213506e
RW
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13562$as_echo "host tool" >&6; }
2abefe3d
PB
13563 else
13564 # We need a cross tool
5213506e
RW
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13566$as_echo "pre-installed" >&6; }
2abefe3d
PB
13567 fi
13568fi
0b0dc272 13569
5213506e
RW
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13571$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13572if test "x${build}" != "x${host}" ; then
e8b05380
PB
13573 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13574 # We already found the complete path
172e41aa 13575 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13577$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13578 else
13579 # Canadian cross, just use what we found
5213506e
RW
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13581$as_echo "pre-installed" >&6; }
e8b05380 13582 fi
2abefe3d
PB
13583else
13584 ok=yes
13585 case " ${configdirs} " in
13586 *" gcc "*) ;;
13587 *) ok=no ;;
13588 esac
13589 case ,${enable_languages}, in
13590 *,c++,*) ;;
13591 *) ok=no ;;
13592 esac
13593 if test $ok = yes; then
13594 # An in-tree tool is available and we can use it
9aff220f 13595 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'
5213506e
RW
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13597$as_echo "just compiled" >&6; }
e8b05380
PB
13598 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13599 # We already found the complete path
172e41aa 13600 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13602$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13603 elif test "x$target" = "x$host"; then
13604 # We can use an host tool
13605 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13607$as_echo "host tool" >&6; }
2abefe3d
PB
13608 else
13609 # We need a cross tool
5213506e
RW
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13611$as_echo "pre-installed" >&6; }
2abefe3d
PB
13612 fi
13613fi
0b0dc272 13614
5213506e
RW
13615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13616$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13617if test "x${build}" != "x${host}" ; then
e8b05380
PB
13618 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13619 # We already found the complete path
172e41aa 13620 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13622$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13623 else
13624 # Canadian cross, just use what we found
5213506e
RW
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13626$as_echo "pre-installed" >&6; }
e8b05380 13627 fi
2abefe3d
PB
13628else
13629 ok=yes
13630 case " ${configdirs} " in
13631 *" gcc "*) ;;
13632 *) ok=no ;;
13633 esac
13634 case ,${enable_languages}, in
13635 *,c++,*) ;;
13636 *) ok=no ;;
13637 esac
13638 if test $ok = yes; then
13639 # An in-tree tool is available and we can use it
13640 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'
5213506e
RW
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13642$as_echo "just compiled" >&6; }
e8b05380
PB
13643 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13644 # We already found the complete path
172e41aa 13645 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13647$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13648 elif test "x$target" = "x$host"; then
13649 # We can use an host tool
13650 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13652$as_echo "host tool" >&6; }
2abefe3d
PB
13653 else
13654 # We need a cross tool
5213506e
RW
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13656$as_echo "pre-installed" >&6; }
2abefe3d
PB
13657 fi
13658fi
0b0dc272 13659
5213506e
RW
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13661$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13662if test "x${build}" != "x${host}" ; then
e8b05380
PB
13663 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13664 # We already found the complete path
172e41aa 13665 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13667$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13668 else
13669 # Canadian cross, just use what we found
5213506e
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13671$as_echo "pre-installed" >&6; }
e8b05380 13672 fi
2abefe3d
PB
13673else
13674 ok=yes
13675 case " ${configdirs} " in
13676 *" binutils "*) ;;
13677 *) ok=no ;;
13678 esac
1c710c3c 13679
2abefe3d
PB
13680 if test $ok = yes; then
13681 # An in-tree tool is available and we can use it
13682 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13684$as_echo "just compiled" >&6; }
e8b05380
PB
13685 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13686 # We already found the complete path
172e41aa 13687 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13689$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13690 elif test "x$target" = "x$host"; then
13691 # We can use an host tool
13692 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13694$as_echo "host tool" >&6; }
2abefe3d
PB
13695 else
13696 # We need a cross tool
5213506e
RW
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13698$as_echo "pre-installed" >&6; }
2abefe3d
PB
13699 fi
13700fi
0b0dc272 13701
5213506e
RW
13702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13703$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13704if test "x${build}" != "x${host}" ; then
e8b05380
PB
13705 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13706 # We already found the complete path
172e41aa 13707 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13709$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13710 else
13711 # Canadian cross, just use what we found
5213506e
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13713$as_echo "pre-installed" >&6; }
e8b05380 13714 fi
2abefe3d
PB
13715else
13716 ok=yes
13717 case " ${configdirs} " in
13718 *" gcc "*) ;;
13719 *) ok=no ;;
13720 esac
1c710c3c 13721
2abefe3d
PB
13722 if test $ok = yes; then
13723 # An in-tree tool is available and we can use it
13724 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13726$as_echo "just compiled" >&6; }
e8b05380
PB
13727 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13728 # We already found the complete path
172e41aa 13729 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13731$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13732 elif test "x$target" = "x$host"; then
13733 # We can use an host tool
13734 GCC_FOR_TARGET='$()'
5213506e
RW
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13736$as_echo "host tool" >&6; }
2abefe3d
PB
13737 else
13738 # We need a cross tool
5213506e
RW
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13740$as_echo "pre-installed" >&6; }
2abefe3d
PB
13741 fi
13742fi
0b0dc272 13743
5213506e
RW
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13745$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13746if test "x${build}" != "x${host}" ; then
e8b05380
PB
13747 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13748 # We already found the complete path
172e41aa 13749 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13751$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13752 else
13753 # Canadian cross, just use what we found
5213506e
RW
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13755$as_echo "pre-installed" >&6; }
e8b05380 13756 fi
2abefe3d
PB
13757else
13758 ok=yes
13759 case " ${configdirs} " in
13760 *" gcc "*) ;;
13761 *) ok=no ;;
13762 esac
13763 case ,${enable_languages}, in
13764 *,java,*) ;;
13765 *) ok=no ;;
13766 esac
13767 if test $ok = yes; then
13768 # An in-tree tool is available and we can use it
13769 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13771$as_echo "just compiled" >&6; }
e8b05380
PB
13772 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13773 # We already found the complete path
172e41aa 13774 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13776$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13777 elif test "x$target" = "x$host"; then
13778 # We can use an host tool
13779 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13781$as_echo "host tool" >&6; }
2abefe3d
PB
13782 else
13783 # We need a cross tool
5213506e
RW
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13785$as_echo "pre-installed" >&6; }
2abefe3d
PB
13786 fi
13787fi
0b0dc272 13788
5213506e
RW
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13790$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13791if test "x${build}" != "x${host}" ; then
e8b05380
PB
13792 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13793 # We already found the complete path
172e41aa 13794 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13796$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13797 else
13798 # Canadian cross, just use what we found
5213506e
RW
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13800$as_echo "pre-installed" >&6; }
e8b05380 13801 fi
2abefe3d
PB
13802else
13803 ok=yes
13804 case " ${configdirs} " in
13805 *" gcc "*) ;;
13806 *) ok=no ;;
13807 esac
13808 case ,${enable_languages}, in
13809 *,fortran,*) ;;
13810 *) ok=no ;;
13811 esac
13812 if test $ok = yes; then
13813 # An in-tree tool is available and we can use it
13814 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13816$as_echo "just compiled" >&6; }
e8b05380
PB
13817 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13818 # We already found the complete path
172e41aa 13819 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13821$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13822 elif test "x$target" = "x$host"; then
13823 # We can use an host tool
13824 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13826$as_echo "host tool" >&6; }
2abefe3d
PB
13827 else
13828 # We need a cross tool
5213506e
RW
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13830$as_echo "pre-installed" >&6; }
2abefe3d
PB
13831 fi
13832fi
0b0dc272 13833
632e2a07
ILT
13834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13835$as_echo_n "checking where to find the target gccgo... " >&6; }
13836if test "x${build}" != "x${host}" ; then
13837 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13838 # We already found the complete path
13839 ac_dir=`dirname $GOC_FOR_TARGET`
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13841$as_echo "pre-installed in $ac_dir" >&6; }
13842 else
13843 # Canadian cross, just use what we found
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13845$as_echo "pre-installed" >&6; }
13846 fi
13847else
13848 ok=yes
13849 case " ${configdirs} " in
13850 *" gcc "*) ;;
13851 *) ok=no ;;
13852 esac
13853 case ,${enable_languages}, in
13854 *,go,*) ;;
13855 *) ok=no ;;
13856 esac
13857 if test $ok = yes; then
13858 # An in-tree tool is available and we can use it
13859 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13861$as_echo "just compiled" >&6; }
13862 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13863 # We already found the complete path
13864 ac_dir=`dirname $GOC_FOR_TARGET`
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13866$as_echo "pre-installed in $ac_dir" >&6; }
13867 elif test "x$target" = "x$host"; then
13868 # We can use an host tool
13869 GOC_FOR_TARGET='$(GOC)'
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13871$as_echo "host tool" >&6; }
13872 else
13873 # We need a cross tool
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13875$as_echo "pre-installed" >&6; }
13876 fi
13877fi
13878
5213506e
RW
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13880$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13881if test "x${build}" != "x${host}" ; then
e8b05380
PB
13882 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13883 # We already found the complete path
172e41aa 13884 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13886$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13887 else
13888 # Canadian cross, just use what we found
5213506e
RW
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13890$as_echo "pre-installed" >&6; }
e8b05380 13891 fi
2abefe3d
PB
13892else
13893 ok=yes
13894 case " ${configdirs} " in
13895 *" ld "*) ;;
13896 *) ok=no ;;
13897 esac
1c710c3c 13898
2abefe3d
PB
13899 if test $ok = yes; then
13900 # An in-tree tool is available and we can use it
13901 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13903$as_echo "just compiled" >&6; }
e8b05380
PB
13904 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13905 # We already found the complete path
172e41aa 13906 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13908$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13909 elif test "x$target" = "x$host"; then
13910 # We can use an host tool
13911 LD_FOR_TARGET='$(LD)'
5213506e
RW
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13913$as_echo "host tool" >&6; }
2abefe3d
PB
13914 else
13915 # We need a cross tool
5213506e
RW
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13917$as_echo "pre-installed" >&6; }
2abefe3d
PB
13918 fi
13919fi
0b0dc272 13920
5213506e
RW
13921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13922$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13923if test "x${build}" != "x${host}" ; then
e8b05380
PB
13924 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13925 # We already found the complete path
172e41aa 13926 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13928$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13929 else
13930 # Canadian cross, just use what we found
5213506e
RW
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13932$as_echo "pre-installed" >&6; }
e8b05380 13933 fi
2abefe3d 13934else
e8b05380
PB
13935 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13936 # We already found the complete path
172e41aa 13937 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13939$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 13940 elif test "x$target" = "x$host"; then
2abefe3d
PB
13941 # We can use an host tool
13942 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13944$as_echo "host tool" >&6; }
2abefe3d
PB
13945 else
13946 # We need a cross tool
5213506e
RW
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13948$as_echo "pre-installed" >&6; }
2abefe3d
PB
13949 fi
13950fi
0b0dc272 13951
5213506e
RW
13952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13953$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13954if test "x${build}" != "x${host}" ; then
e8b05380
PB
13955 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13956 # We already found the complete path
172e41aa 13957 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13959$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13960 else
13961 # Canadian cross, just use what we found
5213506e
RW
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963$as_echo "pre-installed" >&6; }
e8b05380 13964 fi
2abefe3d
PB
13965else
13966 ok=yes
13967 case " ${configdirs} " in
13968 *" binutils "*) ;;
13969 *) ok=no ;;
13970 esac
1c710c3c 13971
2abefe3d
PB
13972 if test $ok = yes; then
13973 # An in-tree tool is available and we can use it
13974 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13976$as_echo "just compiled" >&6; }
e8b05380
PB
13977 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13978 # We already found the complete path
172e41aa 13979 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13981$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13982 elif test "x$target" = "x$host"; then
13983 # We can use an host tool
13984 NM_FOR_TARGET='$(NM)'
5213506e
RW
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13986$as_echo "host tool" >&6; }
2abefe3d
PB
13987 else
13988 # We need a cross tool
5213506e
RW
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13990$as_echo "pre-installed" >&6; }
2abefe3d
PB
13991 fi
13992fi
0b0dc272 13993
5213506e
RW
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13995$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 13996if test "x${build}" != "x${host}" ; then
e8b05380
PB
13997 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13998 # We already found the complete path
172e41aa 13999 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14001$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14002 else
14003 # Canadian cross, just use what we found
5213506e
RW
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14005$as_echo "pre-installed" >&6; }
e8b05380 14006 fi
2abefe3d
PB
14007else
14008 ok=yes
14009 case " ${configdirs} " in
14010 *" binutils "*) ;;
14011 *) ok=no ;;
14012 esac
1c710c3c 14013
2abefe3d
PB
14014 if test $ok = yes; then
14015 # An in-tree tool is available and we can use it
14016 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14018$as_echo "just compiled" >&6; }
e8b05380
PB
14019 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14020 # We already found the complete path
172e41aa 14021 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14023$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14024 elif test "x$target" = "x$host"; then
14025 # We can use an host tool
14026 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14028$as_echo "host tool" >&6; }
2abefe3d
PB
14029 else
14030 # We need a cross tool
5213506e
RW
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14032$as_echo "pre-installed" >&6; }
2abefe3d
PB
14033 fi
14034fi
0b0dc272 14035
5213506e
RW
14036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14037$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14038if test "x${build}" != "x${host}" ; then
e8b05380
PB
14039 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14040 # We already found the complete path
172e41aa 14041 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14043$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14044 else
14045 # Canadian cross, just use what we found
5213506e
RW
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14047$as_echo "pre-installed" >&6; }
e8b05380 14048 fi
2abefe3d
PB
14049else
14050 ok=yes
14051 case " ${configdirs} " in
14052 *" binutils "*) ;;
14053 *) ok=no ;;
14054 esac
1c710c3c 14055
2abefe3d
PB
14056 if test $ok = yes; then
14057 # An in-tree tool is available and we can use it
14058 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14060$as_echo "just compiled" >&6; }
e8b05380
PB
14061 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14062 # We already found the complete path
172e41aa 14063 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14065$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14066 elif test "x$target" = "x$host"; then
14067 # We can use an host tool
14068 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14070$as_echo "host tool" >&6; }
2abefe3d
PB
14071 else
14072 # We need a cross tool
5213506e
RW
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14074$as_echo "pre-installed" >&6; }
2abefe3d
PB
14075 fi
14076fi
0b0dc272 14077
e7a82751
RM
14078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14079$as_echo_n "checking where to find the target readelf... " >&6; }
14080if test "x${build}" != "x${host}" ; then
14081 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14082 # We already found the complete path
14083 ac_dir=`dirname $READELF_FOR_TARGET`
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14085$as_echo "pre-installed in $ac_dir" >&6; }
14086 else
14087 # Canadian cross, just use what we found
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14089$as_echo "pre-installed" >&6; }
14090 fi
14091else
14092 ok=yes
14093 case " ${configdirs} " in
14094 *" binutils "*) ;;
14095 *) ok=no ;;
14096 esac
14097
14098 if test $ok = yes; then
14099 # An in-tree tool is available and we can use it
14100 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14102$as_echo "just compiled" >&6; }
14103 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14104 # We already found the complete path
14105 ac_dir=`dirname $READELF_FOR_TARGET`
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14107$as_echo "pre-installed in $ac_dir" >&6; }
14108 elif test "x$target" = "x$host"; then
14109 # We can use an host tool
14110 READELF_FOR_TARGET='$(READELF)'
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14112$as_echo "host tool" >&6; }
14113 else
14114 # We need a cross tool
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116$as_echo "pre-installed" >&6; }
14117 fi
14118fi
14119
5213506e
RW
14120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14121$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14122if test "x${build}" != "x${host}" ; then
e8b05380
PB
14123 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14124 # We already found the complete path
172e41aa 14125 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14127$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14128 else
14129 # Canadian cross, just use what we found
5213506e
RW
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14131$as_echo "pre-installed" >&6; }
e8b05380 14132 fi
2abefe3d
PB
14133else
14134 ok=yes
14135 case " ${configdirs} " in
14136 *" binutils "*) ;;
14137 *) ok=no ;;
14138 esac
1c710c3c 14139
2abefe3d
PB
14140 if test $ok = yes; then
14141 # An in-tree tool is available and we can use it
455c8f48 14142 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14144$as_echo "just compiled" >&6; }
e8b05380
PB
14145 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14146 # We already found the complete path
172e41aa 14147 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14149$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14150 elif test "x$target" = "x$host"; then
14151 # We can use an host tool
14152 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14154$as_echo "host tool" >&6; }
2abefe3d
PB
14155 else
14156 # We need a cross tool
5213506e
RW
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14158$as_echo "pre-installed" >&6; }
2abefe3d
PB
14159 fi
14160fi
0b0dc272 14161
5213506e
RW
14162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14163$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14164if test "x${build}" != "x${host}" ; then
e8b05380
PB
14165 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14166 # We already found the complete path
172e41aa 14167 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14169$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14170 else
14171 # Canadian cross, just use what we found
5213506e
RW
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14173$as_echo "pre-installed" >&6; }
e8b05380 14174 fi
2abefe3d
PB
14175else
14176 ok=yes
14177 case " ${configdirs} " in
14178 *" binutils "*) ;;
14179 *) ok=no ;;
14180 esac
1c710c3c 14181
2abefe3d
PB
14182 if test $ok = yes; then
14183 # An in-tree tool is available and we can use it
14184 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14186$as_echo "just compiled" >&6; }
e8b05380
PB
14187 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14188 # We already found the complete path
172e41aa 14189 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14191$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14192 elif test "x$target" = "x$host"; then
14193 # We can use an host tool
14194 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14196$as_echo "host tool" >&6; }
2abefe3d
PB
14197 else
14198 # We need a cross tool
5213506e
RW
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14200$as_echo "pre-installed" >&6; }
2abefe3d 14201 fi
671aa708 14202fi
be912515 14203
5213506e
RW
14204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14205$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14206if test "x${build}" != "x${host}" ; then
14207 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14208 # We already found the complete path
14209 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14211$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14212 else
14213 # Canadian cross, just use what we found
5213506e
RW
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14215$as_echo "pre-installed" >&6; }
901119ae
KT
14216 fi
14217else
14218 ok=yes
14219 case " ${configdirs} " in
14220 *" binutils "*) ;;
14221 *) ok=no ;;
14222 esac
14223
14224 if test $ok = yes; then
14225 # An in-tree tool is available and we can use it
14226 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14228$as_echo "just compiled" >&6; }
901119ae
KT
14229 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14230 # We already found the complete path
14231 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14233$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14234 elif test "x$target" = "x$host"; then
14235 # We can use an host tool
14236 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14238$as_echo "host tool" >&6; }
901119ae
KT
14239 else
14240 # We need a cross tool
5213506e
RW
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14242$as_echo "pre-installed" >&6; }
901119ae
KT
14243 fi
14244fi
14245
be912515
NN
14246
14247
2abefe3d 14248
0b0dc272 14249
671aa708
NN
14250# Certain tools may need extra flags.
14251AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14252RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14253NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14254
2abefe3d
PB
14255# When building target libraries, except in a Canadian cross, we use
14256# the same toolchain as the compiler we just built.
14257COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14258COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14259COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14260if test $host = $build; then
14261 case " $configdirs " in
14262 *" gcc "*)
14263 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14264 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14265 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14266 ;;
14267 esac
14268fi
14269
14270
14271
14272
14273
5213506e
RW
14274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14275$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14276# Check whether --enable-maintainer-mode was given.
14277if test "${enable_maintainer_mode+set}" = set; then :
14278 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14279else
14280 USE_MAINTAINER_MODE=no
5213506e
RW
14281fi
14282
14283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14284$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14285
14286
14287if test "$USE_MAINTAINER_MODE" = yes; then
14288 MAINTAINER_MODE_TRUE=
14289 MAINTAINER_MODE_FALSE='#'
14290else
14291 MAINTAINER_MODE_TRUE='#'
14292 MAINTAINER_MODE_FALSE=
1c710c3c 14293fi
ee03dc5e
AO
14294MAINT=$MAINTAINER_MODE_TRUE
14295
2805b53a
NN
14296# ---------------------
14297# GCC bootstrap support
14298# ---------------------
14299
14300# Stage specific cflags for build.
14301stage1_cflags="-g"
14302case $build in
14303 vax-*-*)
14304 case ${GCC} in
14305 yes) stage1_cflags="-g -Wa,-J" ;;
14306 *) stage1_cflags="-g -J" ;;
14307 esac ;;
2805b53a
NN
14308esac
14309
0b50988a 14310
2805b53a 14311
8efea775 14312# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14313# Check whether --enable-stage1-checking was given.
14314if test "${enable_stage1_checking+set}" = set; then :
14315 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14316else
e643dc23 14317 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14318 stage1_checking=--enable-checking=yes,types
8efea775 14319else
e643dc23 14320 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14321fi
5213506e 14322fi
8efea775
PB
14323
14324
2aeb72e9 14325
5213506e
RW
14326# Enable -Werror in bootstrap stage2 and later.
14327# Check whether --enable-werror was given.
14328if test "${enable_werror+set}" = set; then :
14329 enableval=$enable_werror;
2805b53a 14330else
416cfb5e 14331 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14332 enable_werror=yes
88fceb68
PB
14333else
14334 enable_werror=no
14335fi
5213506e
RW
14336fi
14337
09a9c095
NN
14338case ${enable_werror} in
14339 yes) stage2_werror_flag="--enable-werror-always" ;;
14340 *) stage2_werror_flag="" ;;
2805b53a
NN
14341esac
14342
14343
f2689b09
SE
14344# Specify what files to not compare during bootstrap.
14345
14346compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14347case "$target" in
14348 hppa*64*-*-hpux*) ;;
14349 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14350 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14351esac
14352
14353
5213506e
RW
14354ac_config_files="$ac_config_files Makefile"
14355
1c710c3c 14356cat >confcache <<\_ACEOF
671aa708
NN
14357# This file is a shell script that caches the results of configure
14358# tests run on this system so they can be shared between configure
1c710c3c
DJ
14359# scripts and configure runs, see configure's option --config-cache.
14360# It is not useful on other systems. If it contains results you don't
14361# want to keep, you may remove or edit it.
671aa708 14362#
1c710c3c
DJ
14363# config.status only pays attention to the cache file if you give it
14364# the --recheck option to rerun configure.
671aa708 14365#
1c710c3c
DJ
14366# `ac_cv_env_foo' variables (set or unset) will be overridden when
14367# loading this file, other *unset* `ac_cv_foo' will be assigned the
14368# following values.
14369
14370_ACEOF
14371
671aa708
NN
14372# The following way of writing the cache mishandles newlines in values,
14373# but we know of no workaround that is simple, portable, and efficient.
5213506e 14374# So, we kill variables containing newlines.
671aa708
NN
14375# Ultrix sh set writes to stderr and can't be redirected directly,
14376# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14377(
14378 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14379 eval ac_val=\$$ac_var
14380 case $ac_val in #(
14381 *${as_nl}*)
14382 case $ac_var in #(
14383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14384$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14385 esac
14386 case $ac_var in #(
14387 _ | IFS | as_nl) ;; #(
14388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14389 *) { eval $ac_var=; unset $ac_var;} ;;
14390 esac ;;
14391 esac
14392 done
14393
1c710c3c 14394 (set) 2>&1 |
5213506e
RW
14395 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14396 *${as_nl}ac_space=\ *)
14397 # `set' does not quote correctly, so add quotes: double-quote
14398 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14399 sed -n \
14400 "s/'/'\\\\''/g;
14401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14402 ;; #(
1c710c3c
DJ
14403 *)
14404 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14406 ;;
5213506e
RW
14407 esac |
14408 sort
14409) |
1c710c3c 14410 sed '
5213506e 14411 /^ac_cv_env_/b end
1c710c3c 14412 t clear
5213506e 14413 :clear
1c710c3c
DJ
14414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14415 t end
5213506e
RW
14416 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14417 :end' >>confcache
14418if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14419 if test -w "$cache_file"; then
14420 test "x$cache_file" != "x/dev/null" &&
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14422$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14423 cat confcache >$cache_file
671aa708 14424 else
5213506e
RW
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14426$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14427 fi
4977bab6 14428fi
671aa708 14429rm -f confcache
79c06341 14430
671aa708
NN
14431test "x$prefix" = xNONE && prefix=$ac_default_prefix
14432# Let make expand exec_prefix.
14433test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14434
671aa708
NN
14435# Transform confdefs.h into DEFS.
14436# Protect against shell expansion while executing Makefile rules.
14437# Protect against Makefile macro expansion.
1c710c3c
DJ
14438#
14439# If the first sed substitution is executed (which looks for macros that
5213506e 14440# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14441# look for a macro that doesn't take arguments.
5213506e
RW
14442ac_script='
14443:mline
14444/\\$/{
14445 N
14446 s,\\\n,,
14447 b mline
14448}
1c710c3c 14449t clear
5213506e
RW
14450:clear
14451s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14452t quote
5213506e 14453s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14454t quote
5213506e
RW
14455b any
14456:quote
14457s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14458s/\[/\\&/g
14459s/\]/\\&/g
14460s/\$/$$/g
14461H
14462:any
14463${
14464 g
14465 s/^\n//
14466 s/\n/ /g
14467 p
14468}
14469'
14470DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14471
14472
14473ac_libobjs=
14474ac_ltlibobjs=
14475for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14476 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14477 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14478 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14480 # will be set to the directory where LIBOBJS objects are built.
14481 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14482 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14483done
14484LIBOBJS=$ac_libobjs
fb0103e5 14485
1c710c3c 14486LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14487
af71363e 14488
1c710c3c
DJ
14489
14490: ${CONFIG_STATUS=./config.status}
5213506e 14491ac_write_fail=0
1c710c3c
DJ
14492ac_clean_files_save=$ac_clean_files
14493ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14494{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14495$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14496as_write_fail=0
14497cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14498#! $SHELL
14499# Generated by $as_me.
671aa708 14500# Run this file to recreate the current configuration.
671aa708 14501# Compiler output produced by configure, useful for debugging
1c710c3c 14502# configure, is in config.log if it exists.
0b0dc272 14503
1c710c3c
DJ
14504debug=false
14505ac_cs_recheck=false
14506ac_cs_silent=false
1c710c3c 14507
5213506e
RW
14508SHELL=\${CONFIG_SHELL-$SHELL}
14509export SHELL
14510_ASEOF
14511cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14512## -------------------- ##
14513## M4sh Initialization. ##
14514## -------------------- ##
14515
14516# Be more Bourne compatible
14517DUALCASE=1; export DUALCASE # for MKS sh
14518if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14519 emulate sh
14520 NULLCMD=:
5213506e 14521 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14522 # is contrary to our usage. Disable this feature.
14523 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14524 setopt NO_GLOB_SUBST
14525else
14526 case `(set -o) 2>/dev/null` in #(
14527 *posix*) :
14528 set -o posix ;; #(
14529 *) :
14530 ;;
14531esac
1c710c3c 14532fi
1c710c3c 14533
5213506e
RW
14534
14535as_nl='
14536'
14537export as_nl
14538# Printing a long string crashes Solaris 7 /usr/bin/printf.
14539as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14540as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14541as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14542# Prefer a ksh shell builtin over an external printf program on Solaris,
14543# but without wasting forks for bash or zsh.
14544if test -z "$BASH_VERSION$ZSH_VERSION" \
14545 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14546 as_echo='print -r --'
14547 as_echo_n='print -rn --'
14548elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14549 as_echo='printf %s\n'
14550 as_echo_n='printf %s'
14551else
14552 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14553 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14554 as_echo_n='/usr/ucb/echo -n'
14555 else
14556 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14557 as_echo_n_body='eval
14558 arg=$1;
14559 case $arg in #(
14560 *"$as_nl"*)
14561 expr "X$arg" : "X\\(.*\\)$as_nl";
14562 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14563 esac;
14564 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14565 '
14566 export as_echo_n_body
14567 as_echo_n='sh -c $as_echo_n_body as_echo'
14568 fi
14569 export as_echo_body
14570 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14571fi
14572
5213506e
RW
14573# The user is always right.
14574if test "${PATH_SEPARATOR+set}" != set; then
14575 PATH_SEPARATOR=:
14576 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14577 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14578 PATH_SEPARATOR=';'
14579 }
14580fi
14581
14582
14583# IFS
14584# We need space, tab and new line, in precisely that order. Quoting is
14585# there to prevent editors from complaining about space-tab.
14586# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14587# splitting by setting IFS to empty value.)
14588IFS=" "" $as_nl"
14589
14590# Find who we are. Look in the path if we contain no directory separator.
14591case $0 in #((
14592 *[\\/]* ) as_myself=$0 ;;
14593 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14594for as_dir in $PATH
14595do
14596 IFS=$as_save_IFS
14597 test -z "$as_dir" && as_dir=.
14598 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14599 done
14600IFS=$as_save_IFS
14601
14602 ;;
14603esac
14604# We did not find ourselves, most probably we were run as `sh COMMAND'
14605# in which case we are not to be found in the path.
14606if test "x$as_myself" = x; then
14607 as_myself=$0
14608fi
14609if test ! -f "$as_myself"; then
14610 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14611 exit 1
14612fi
1c710c3c 14613
5213506e
RW
14614# Unset variables that we do not need and which cause bugs (e.g. in
14615# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14616# suppresses any "Segmentation fault" message there. '((' could
14617# trigger a bug in pdksh 5.2.14.
14618for as_var in BASH_ENV ENV MAIL MAILPATH
14619do eval test x\${$as_var+set} = xset \
14620 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14621done
1c710c3c
DJ
14622PS1='$ '
14623PS2='> '
14624PS4='+ '
14625
14626# NLS nuisances.
5213506e
RW
14627LC_ALL=C
14628export LC_ALL
14629LANGUAGE=C
14630export LANGUAGE
14631
14632# CDPATH.
14633(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14634
14635
14636# as_fn_error ERROR [LINENO LOG_FD]
14637# ---------------------------------
14638# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14639# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14640# script with status $?, using 1 if that was 0.
14641as_fn_error ()
14642{
14643 as_status=$?; test $as_status -eq 0 && as_status=1
14644 if test "$3"; then
14645 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14646 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14647 fi
5213506e
RW
14648 $as_echo "$as_me: error: $1" >&2
14649 as_fn_exit $as_status
14650} # as_fn_error
14651
14652
14653# as_fn_set_status STATUS
14654# -----------------------
14655# Set $? to STATUS, without forking.
14656as_fn_set_status ()
14657{
14658 return $1
14659} # as_fn_set_status
14660
14661# as_fn_exit STATUS
14662# -----------------
14663# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14664as_fn_exit ()
14665{
14666 set +e
14667 as_fn_set_status $1
14668 exit $1
14669} # as_fn_exit
14670
14671# as_fn_unset VAR
14672# ---------------
14673# Portably unset VAR.
14674as_fn_unset ()
14675{
14676 { eval $1=; unset $1;}
14677}
14678as_unset=as_fn_unset
14679# as_fn_append VAR VALUE
14680# ----------------------
14681# Append the text in VALUE to the end of the definition contained in VAR. Take
14682# advantage of any shell optimizations that allow amortized linear growth over
14683# repeated appends, instead of the typical quadratic growth present in naive
14684# implementations.
14685if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14686 eval 'as_fn_append ()
14687 {
14688 eval $1+=\$2
14689 }'
14690else
14691 as_fn_append ()
14692 {
14693 eval $1=\$$1\$2
14694 }
14695fi # as_fn_append
14696
14697# as_fn_arith ARG...
14698# ------------------
14699# Perform arithmetic evaluation on the ARGs, and store the result in the
14700# global $as_val. Take advantage of shells that can avoid forks. The arguments
14701# must be portable across $(()) and expr.
14702if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14703 eval 'as_fn_arith ()
14704 {
14705 as_val=$(( $* ))
14706 }'
14707else
14708 as_fn_arith ()
14709 {
14710 as_val=`expr "$@" || test $? -eq 1`
14711 }
14712fi # as_fn_arith
14713
1c710c3c 14714
5213506e
RW
14715if expr a : '\(a\)' >/dev/null 2>&1 &&
14716 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14717 as_expr=expr
14718else
14719 as_expr=false
14720fi
14721
5213506e 14722if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14723 as_basename=basename
14724else
14725 as_basename=false
14726fi
14727
5213506e
RW
14728if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14729 as_dirname=dirname
14730else
14731 as_dirname=false
14732fi
1c710c3c 14733
5213506e 14734as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14735$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14736 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14738$as_echo X/"$0" |
14739 sed '/^.*\/\([^/][^/]*\)\/*$/{
14740 s//\1/
14741 q
14742 }
14743 /^X\/\(\/\/\)$/{
14744 s//\1/
14745 q
14746 }
14747 /^X\/\(\/\).*/{
14748 s//\1/
14749 q
14750 }
14751 s/.*/./; q'`
2aeb72e9 14752
2aeb72e9
DD
14753# Avoid depending upon Character Ranges.
14754as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14755as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14756as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14757as_cr_digits='0123456789'
14758as_cr_alnum=$as_cr_Letters$as_cr_digits
14759
5213506e
RW
14760ECHO_C= ECHO_N= ECHO_T=
14761case `echo -n x` in #(((((
14762-n*)
14763 case `echo 'xy\c'` in
14764 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14765 xy) ECHO_C='\c';;
14766 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14767 ECHO_T=' ';;
14768 esac;;
14769*)
14770 ECHO_N='-n';;
1c710c3c
DJ
14771esac
14772
5213506e
RW
14773rm -f conf$$ conf$$.exe conf$$.file
14774if test -d conf$$.dir; then
14775 rm -f conf$$.dir/conf$$.file
1c710c3c 14776else
5213506e
RW
14777 rm -f conf$$.dir
14778 mkdir conf$$.dir 2>/dev/null
1c710c3c 14779fi
5213506e
RW
14780if (echo >conf$$.file) 2>/dev/null; then
14781 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14782 as_ln_s='ln -s'
5213506e
RW
14783 # ... but there are two gotchas:
14784 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14785 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14786 # In both cases, we have to default to `cp -p'.
14787 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14788 as_ln_s='cp -p'
14789 elif ln conf$$.file conf$$ 2>/dev/null; then
14790 as_ln_s=ln
14791 else
14792 as_ln_s='cp -p'
2aeb72e9 14793 fi
1c710c3c
DJ
14794else
14795 as_ln_s='cp -p'
14796fi
5213506e
RW
14797rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14798rmdir conf$$.dir 2>/dev/null
14799
14800
14801# as_fn_mkdir_p
14802# -------------
14803# Create "$as_dir" as a directory, including parents if necessary.
14804as_fn_mkdir_p ()
14805{
14806
14807 case $as_dir in #(
14808 -*) as_dir=./$as_dir;;
14809 esac
14810 test -d "$as_dir" || eval $as_mkdir_p || {
14811 as_dirs=
14812 while :; do
14813 case $as_dir in #(
14814 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14815 *) as_qdir=$as_dir;;
14816 esac
14817 as_dirs="'$as_qdir' $as_dirs"
14818 as_dir=`$as_dirname -- "$as_dir" ||
14819$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14820 X"$as_dir" : 'X\(//\)[^/]' \| \
14821 X"$as_dir" : 'X\(//\)$' \| \
14822 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14823$as_echo X"$as_dir" |
14824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14825 s//\1/
14826 q
14827 }
14828 /^X\(\/\/\)[^/].*/{
14829 s//\1/
14830 q
14831 }
14832 /^X\(\/\/\)$/{
14833 s//\1/
14834 q
14835 }
14836 /^X\(\/\).*/{
14837 s//\1/
14838 q
14839 }
14840 s/.*/./; q'`
14841 test -d "$as_dir" && break
14842 done
14843 test -z "$as_dirs" || eval "mkdir $as_dirs"
14844 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14845
1c710c3c 14846
5213506e 14847} # as_fn_mkdir_p
1c710c3c 14848if mkdir -p . 2>/dev/null; then
5213506e 14849 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14850else
14851 test -d ./-p && rmdir ./-p
14852 as_mkdir_p=false
14853fi
14854
5213506e
RW
14855if test -x / >/dev/null 2>&1; then
14856 as_test_x='test -x'
14857else
14858 if ls -dL / >/dev/null 2>&1; then
14859 as_ls_L_option=L
14860 else
14861 as_ls_L_option=
14862 fi
14863 as_test_x='
14864 eval sh -c '\''
14865 if test -d "$1"; then
14866 test -d "$1/.";
14867 else
14868 case $1 in #(
14869 -*)set "./$1";;
14870 esac;
14871 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14872 ???[sx]*):;;*)false;;esac;fi
14873 '\'' sh
14874 '
14875fi
14876as_executable_p=$as_test_x
1c710c3c
DJ
14877
14878# Sed expression to map a string onto a valid CPP name.
14879as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14880
14881# Sed expression to map a string onto a valid variable name.
14882as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14883
14884
1c710c3c 14885exec 6>&1
5213506e
RW
14886## ----------------------------------- ##
14887## Main body of $CONFIG_STATUS script. ##
14888## ----------------------------------- ##
14889_ASEOF
14890test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14891
14892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14893# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14894# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14895# values after options handling.
14896ac_log="
1c710c3c 14897This file was extended by $as_me, which was
5213506e 14898generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14899
14900 CONFIG_FILES = $CONFIG_FILES
14901 CONFIG_HEADERS = $CONFIG_HEADERS
14902 CONFIG_LINKS = $CONFIG_LINKS
14903 CONFIG_COMMANDS = $CONFIG_COMMANDS
14904 $ $0 $@
14905
5213506e
RW
14906on `(hostname || uname -n) 2>/dev/null | sed 1q`
14907"
14908
1c710c3c
DJ
14909_ACEOF
14910
5213506e
RW
14911case $ac_config_files in *"
14912"*) set x $ac_config_files; shift; ac_config_files=$*;;
14913esac
1c710c3c 14914
2aeb72e9 14915
2aeb72e9 14916
5213506e
RW
14917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14918# Files that config.status was made for.
14919config_files="$ac_config_files"
1c710c3c 14920
5213506e 14921_ACEOF
2aeb72e9 14922
5213506e 14923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 14924ac_cs_usage="\
5213506e
RW
14925\`$as_me' instantiates files and other configuration actions
14926from templates according to the current configuration. Unless the files
14927and actions are specified as TAGs, all are instantiated by default.
1c710c3c 14928
5213506e 14929Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
14930
14931 -h, --help print this help, then exit
5213506e
RW
14932 -V, --version print version number and configuration settings, then exit
14933 -q, --quiet, --silent
14934 do not print progress messages
1c710c3c
DJ
14935 -d, --debug don't remove temporary files
14936 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
14937 --file=FILE[:TEMPLATE]
14938 instantiate the configuration file FILE
1c710c3c
DJ
14939
14940Configuration files:
14941$config_files
14942
5213506e 14943Report bugs to the package provider."
2aeb72e9 14944
5213506e
RW
14945_ACEOF
14946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
14947ac_cs_version="\\
14948config.status
5213506e
RW
14949configured by $0, generated by GNU Autoconf 2.64,
14950 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 14951
5213506e 14952Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
14953This config.status script is free software; the Free Software Foundation
14954gives unlimited permission to copy, distribute and modify it."
5213506e
RW
14955
14956ac_pwd='$ac_pwd'
14957srcdir='$srcdir'
14958INSTALL='$INSTALL'
87264276 14959AWK='$AWK'
5213506e 14960test -n "\$AWK" || AWK=awk
1c710c3c
DJ
14961_ACEOF
14962
5213506e
RW
14963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14964# The default lists apply if the user does not specify any file.
1c710c3c
DJ
14965ac_need_defaults=:
14966while test $# != 0
a4b9e93e 14967do
1c710c3c
DJ
14968 case $1 in
14969 --*=*)
5213506e
RW
14970 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14971 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
14972 ac_shift=:
14973 ;;
5213506e 14974 *)
1c710c3c
DJ
14975 ac_option=$1
14976 ac_optarg=$2
14977 ac_shift=shift
14978 ;;
1c710c3c
DJ
14979 esac
14980
14981 case $ac_option in
14982 # Handling of the options.
671aa708 14983 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 14984 ac_cs_recheck=: ;;
5213506e
RW
14985 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14986 $as_echo "$ac_cs_version"; exit ;;
14987 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
14988 debug=: ;;
14989 --file | --fil | --fi | --f )
14990 $ac_shift
5213506e
RW
14991 case $ac_optarg in
14992 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14993 esac
14994 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 14995 ac_need_defaults=false;;
5213506e
RW
14996 --he | --h | --help | --hel | -h )
14997 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
14998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14999 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15000 ac_cs_silent=: ;;
15001
15002 # This is an error.
5213506e
RW
15003 -*) as_fn_error "unrecognized option: \`$1'
15004Try \`$0 --help' for more information." ;;
1c710c3c 15005
5213506e
RW
15006 *) as_fn_append ac_config_targets " $1"
15007 ac_need_defaults=false ;;
1c710c3c 15008
0b0dc272 15009 esac
1c710c3c 15010 shift
0b0dc272
AM
15011done
15012
1c710c3c 15013ac_configure_extra_args=
0b0dc272 15014
1c710c3c
DJ
15015if $ac_cs_silent; then
15016 exec 6>/dev/null
15017 ac_configure_extra_args="$ac_configure_extra_args --silent"
15018fi
0b0dc272 15019
1c710c3c 15020_ACEOF
5213506e 15021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15022if \$ac_cs_recheck; then
5213506e
RW
15023 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15024 shift
15025 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15026 CONFIG_SHELL='$SHELL'
15027 export CONFIG_SHELL
15028 exec "\$@"
1c710c3c
DJ
15029fi
15030
15031_ACEOF
5213506e
RW
15032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15033exec 5>>config.log
15034{
15035 echo
15036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15037## Running $as_me. ##
15038_ASBOX
15039 $as_echo "$ac_log"
15040} >&5
1c710c3c 15041
5213506e
RW
15042_ACEOF
15043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15044#
15045# INIT-COMMANDS
15046#
15047extrasub_build="$extrasub_build"
15048 extrasub_host="$extrasub_host"
15049 extrasub_target="$extrasub_target"
15050
5213506e 15051_ACEOF
1c710c3c 15052
5213506e 15053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15054
5213506e 15055# Handling of arguments.
1c710c3c
DJ
15056for ac_config_target in $ac_config_targets
15057do
5213506e
RW
15058 case $ac_config_target in
15059 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15060
15061 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15062 esac
15063done
15064
5213506e 15065
1c710c3c
DJ
15066# If the user did not use the arguments to specify the items to instantiate,
15067# then the envvar interface is used. Set only those that are not.
15068# We use the long form for the default assignment because of an extremely
15069# bizarre bug on SunOS 4.1.3.
15070if $ac_need_defaults; then
15071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15072fi
15073
15074# Have a temporary directory for convenience. Make it in the build tree
5213506e 15075# simply because there is no reason against having it here, and in addition,
1c710c3c 15076# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15077# Hook for its removal unless debugging.
15078# Note that there is a small window in which the directory will not be cleaned:
15079# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15080$debug ||
15081{
5213506e
RW
15082 tmp=
15083 trap 'exit_status=$?
15084 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15085' 0
15086 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15087}
1c710c3c
DJ
15088# Create a (secure) tmp directory for tmp files.
15089
15090{
5213506e 15091 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15092 test -n "$tmp" && test -d "$tmp"
15093} ||
15094{
5213506e
RW
15095 tmp=./conf$$-$RANDOM
15096 (umask 077 && mkdir "$tmp")
15097} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15098
15099# Set up the scripts for CONFIG_FILES section.
15100# No need to generate them if there are no CONFIG_FILES.
15101# This happens for instance with `./config.status config.h'.
15102if test -n "$CONFIG_FILES"; then
15103
15104if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15105 ac_cs_awk_getline=:
15106 ac_cs_awk_pipe_init=
15107 ac_cs_awk_read_file='
15108 while ((getline aline < (F[key])) > 0)
15109 print(aline)
15110 close(F[key])'
15111 ac_cs_awk_pipe_fini=
15112else
15113 ac_cs_awk_getline=false
15114 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15115 ac_cs_awk_read_file='
15116 print "|#_!!_#|"
15117 print "cat " F[key] " &&"
15118 '$ac_cs_awk_pipe_init
15119 # The final `:' finishes the AND list.
15120 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15121fi
15122ac_cr=`echo X | tr X '\015'`
15123# On cygwin, bash can eat \r inside `` if the user requested igncr.
15124# But we know of no other shell where ac_cr would be empty at this
15125# point, so we can use a bashism as a fallback.
15126if test "x$ac_cr" = x; then
15127 eval ac_cr=\$\'\\r\'
15128fi
15129ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15130if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15131 ac_cs_awk_cr='\r'
15132else
15133 ac_cs_awk_cr=$ac_cr
15134fi
15135
15136echo 'BEGIN {' >"$tmp/subs1.awk" &&
15137_ACEOF
15138
15139# Create commands to substitute file output variables.
1c710c3c 15140{
5213506e
RW
15141 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15142 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15143 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15144 echo "_ACAWK" &&
15145 echo "_ACEOF"
15146} >conf$$files.sh &&
15147. ./conf$$files.sh ||
15148 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15149rm -f conf$$files.sh
1c710c3c 15150
5213506e
RW
15151{
15152 echo "cat >conf$$subs.awk <<_ACEOF" &&
15153 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15154 echo "_ACEOF"
15155} >conf$$subs.sh ||
15156 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15157ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15158ac_delim='%!_!# '
15159for ac_last_try in false false false false false :; do
15160 . ./conf$$subs.sh ||
15161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15162
15163 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15164 if test $ac_delim_n = $ac_delim_num; then
15165 break
15166 elif $ac_last_try; then
15167 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15168 else
15169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15170 fi
15171done
15172rm -f conf$$subs.sh
15173
15174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15175cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15176_ACEOF
5213506e
RW
15177sed -n '
15178h
15179s/^/S["/; s/!.*/"]=/
15180p
15181g
15182s/^[^!]*!//
15183:repl
15184t repl
15185s/'"$ac_delim"'$//
15186t delim
15187:nl
15188h
15189s/\(.\{148\}\).*/\1/
15190t more1
15191s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15192p
15193n
15194b repl
15195:more1
15196s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15197p
15198g
15199s/.\{148\}//
15200t nl
15201:delim
15202h
15203s/\(.\{148\}\).*/\1/
15204t more2
15205s/["\\]/\\&/g; s/^/"/; s/$/"/
15206p
15207b
15208:more2
15209s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15210p
15211g
15212s/.\{148\}//
15213t delim
15214' <conf$$subs.awk | sed '
15215/^[^""]/{
15216 N
15217 s/\n//
15218}
15219' >>$CONFIG_STATUS || ac_write_fail=1
15220rm -f conf$$subs.awk
15221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15222_ACAWK
15223cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15224 for (key in S) S_is_set[key] = 1
15225 FS = "\a"
15226 \$ac_cs_awk_pipe_init
15227}
15228{
15229 line = $ 0
15230 nfields = split(line, field, "@")
15231 substed = 0
15232 len = length(field[1])
15233 for (i = 2; i < nfields; i++) {
15234 key = field[i]
15235 keylen = length(key)
15236 if (S_is_set[key]) {
15237 value = S[key]
15238 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15239 len += length(value) + length(field[++i])
15240 substed = 1
15241 } else
15242 len += 1 + keylen
15243 }
15244 if (nfields == 3 && !substed) {
15245 key = field[2]
15246 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15247 \$ac_cs_awk_read_file
15248 next
15249 }
15250 }
15251 print line
15252}
15253\$ac_cs_awk_pipe_fini
15254_ACAWK
15255_ACEOF
15256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15257if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15258 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15259else
15260 cat
15261fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15262 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15263_ACEOF
15264
15265# VPATH may cause trouble with some makes, so we remove $(srcdir),
15266# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15267# trailing colons and then remove the whole line if VPATH becomes empty
15268# (actually we leave an empty line to preserve line numbers).
15269if test "x$srcdir" = x.; then
15270 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15271s/:*\$(srcdir):*/:/
15272s/:*\${srcdir}:*/:/
15273s/:*@srcdir@:*/:/
15274s/^\([^=]*=[ ]*\):*/\1/
15275s/:*$//
15276s/^[^=]*=[ ]*$//
15277}'
15278fi
2aeb72e9 15279
5213506e
RW
15280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15281fi # test -n "$CONFIG_FILES"
2aeb72e9 15282
1c710c3c 15283
5213506e
RW
15284eval set X " :F $CONFIG_FILES "
15285shift
15286for ac_tag
15287do
15288 case $ac_tag in
15289 :[FHLC]) ac_mode=$ac_tag; continue;;
15290 esac
15291 case $ac_mode$ac_tag in
15292 :[FHL]*:*);;
15293 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15294 :[FH]-) ac_tag=-:-;;
15295 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15296 esac
15297 ac_save_IFS=$IFS
15298 IFS=:
15299 set x $ac_tag
15300 IFS=$ac_save_IFS
15301 shift
15302 ac_file=$1
15303 shift
79c06341 15304
5213506e
RW
15305 case $ac_mode in
15306 :L) ac_source=$1;;
15307 :[FH])
15308 ac_file_inputs=
15309 for ac_f
15310 do
15311 case $ac_f in
15312 -) ac_f="$tmp/stdin";;
15313 *) # Look for the file first in the build tree, then in the source tree
15314 # (if the path is not absolute). The absolute path cannot be DOS-style,
15315 # because $ac_f cannot contain `:'.
15316 test -f "$ac_f" ||
15317 case $ac_f in
15318 [\\/$]*) false;;
15319 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15320 esac ||
15321 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15322 esac
15323 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15324 as_fn_append ac_file_inputs " '$ac_f'"
15325 done
1c710c3c 15326
5213506e
RW
15327 # Let's still pretend it is `configure' which instantiates (i.e., don't
15328 # use $as_me), people would be surprised to read:
15329 # /* config.h. Generated by config.status. */
15330 configure_input='Generated from '`
15331 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15332 `' by configure.'
15333 if test x"$ac_file" != x-; then
15334 configure_input="$ac_file. $configure_input"
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15336$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15337 fi
5213506e
RW
15338 # Neutralize special characters interpreted by sed in replacement strings.
15339 case $configure_input in #(
15340 *\&* | *\|* | *\\* )
15341 ac_sed_conf_input=`$as_echo "$configure_input" |
15342 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15343 *) ac_sed_conf_input=$configure_input;;
15344 esac
11a67599 15345
5213506e
RW
15346 case $ac_tag in
15347 *:-:* | *:-) cat >"$tmp/stdin" \
15348 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15349 esac
15350 ;;
11a67599
ZW
15351 esac
15352
5213506e 15353 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15354$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15355 X"$ac_file" : 'X\(//\)[^/]' \| \
15356 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15358$as_echo X"$ac_file" |
15359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15360 s//\1/
15361 q
15362 }
15363 /^X\(\/\/\)[^/].*/{
15364 s//\1/
15365 q
15366 }
15367 /^X\(\/\/\)$/{
15368 s//\1/
15369 q
15370 }
15371 /^X\(\/\).*/{
15372 s//\1/
15373 q
15374 }
15375 s/.*/./; q'`
15376 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15377 ac_builddir=.
0b0dc272 15378
5213506e
RW
15379case "$ac_dir" in
15380.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15381*)
15382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15383 # A ".." for each directory in $ac_dir_suffix.
15384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15385 case $ac_top_builddir_sub in
15386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15388 esac ;;
15389esac
15390ac_abs_top_builddir=$ac_pwd
15391ac_abs_builddir=$ac_pwd$ac_dir_suffix
15392# for backward compatibility:
15393ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15394
15395case $srcdir in
5213506e 15396 .) # We are building in place.
1c710c3c 15397 ac_srcdir=.
5213506e
RW
15398 ac_top_srcdir=$ac_top_builddir_sub
15399 ac_abs_top_srcdir=$ac_pwd ;;
15400 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15401 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15402 ac_top_srcdir=$srcdir
15403 ac_abs_top_srcdir=$srcdir ;;
15404 *) # Relative name.
15405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15406 ac_top_srcdir=$ac_top_build_prefix$srcdir
15407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15408esac
5213506e 15409ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15410
0b0dc272 15411
5213506e
RW
15412 case $ac_mode in
15413 :F)
15414 #
15415 # CONFIG_FILE
15416 #
1c710c3c
DJ
15417
15418 case $INSTALL in
15419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15420 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15421 esac
5213506e 15422_ACEOF
11a67599 15423
5213506e
RW
15424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15425# If the template does not know about datarootdir, expand it.
15426# FIXME: This hack should be removed a few years after 2.60.
15427ac_datarootdir_hack=; ac_datarootdir_seen=
15428ac_sed_dataroot='
15429/datarootdir/ {
15430 p
15431 q
15432}
15433/@datadir@/p
15434/@docdir@/p
15435/@infodir@/p
15436/@localedir@/p
15437/@mandir@/p'
15438case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15439*datarootdir*) ac_datarootdir_seen=yes;;
15440*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15442$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15443_ACEOF
5213506e
RW
15444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15445 ac_datarootdir_hack='
15446 s&@datadir@&$datadir&g
15447 s&@docdir@&$docdir&g
15448 s&@infodir@&$infodir&g
15449 s&@localedir@&$localedir&g
15450 s&@mandir@&$mandir&g
15451 s&\\\${datarootdir}&$datarootdir&g' ;;
15452esac
15453_ACEOF
15454
15455# Neutralize VPATH when `$srcdir' = `.'.
15456# Shell code in configure.ac might set extrasub.
15457# FIXME: do we really want to maintain this feature?
15458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15459ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15460$extrasub
15461_ACEOF
5213506e 15462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15463:t
15464/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15465s|@configure_input@|$ac_sed_conf_input|;t t
15466s&@top_builddir@&$ac_top_builddir_sub&;t t
15467s&@top_build_prefix@&$ac_top_build_prefix&;t t
15468s&@srcdir@&$ac_srcdir&;t t
15469s&@abs_srcdir@&$ac_abs_srcdir&;t t
15470s&@top_srcdir@&$ac_top_srcdir&;t t
15471s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15472s&@builddir@&$ac_builddir&;t t
15473s&@abs_builddir@&$ac_abs_builddir&;t t
15474s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15475s&@INSTALL@&$ac_INSTALL&;t t
15476$ac_datarootdir_hack
15477"
15478eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15479if $ac_cs_awk_getline; then
15480 $AWK -f "$tmp/subs.awk"
15481else
15482 $AWK -f "$tmp/subs.awk" | $SHELL
15483fi >$tmp/out \
15484 || as_fn_error "could not create $ac_file" "$LINENO" 5
15485
15486test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15487 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15488 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15490which seems to be undefined. Please make sure it is defined." >&5
15491$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15492which seems to be undefined. Please make sure it is defined." >&2;}
15493
15494 rm -f "$tmp/stdin"
15495 case $ac_file in
15496 -) cat "$tmp/out" && rm -f "$tmp/out";;
15497 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15498 esac \
15499 || as_fn_error "could not create $ac_file" "$LINENO" 5
15500 ;;
11a67599 15501
11a67599 15502
79c06341 15503
5213506e
RW
15504 esac
15505
3e54529c
RW
15506
15507 case $ac_file$ac_mode in
15508 "Makefile":F) sed "$extrasub_build" Makefile |
15509 sed "$extrasub_host" |
15510 sed "$extrasub_target" > mf$$
15511 mv -f mf$$ Makefile ;;
15512
15513 esac
5213506e
RW
15514done # for ac_tag
15515
15516
15517as_fn_exit 0
1c710c3c 15518_ACEOF
1c710c3c
DJ
15519ac_clean_files=$ac_clean_files_save
15520
5213506e
RW
15521test $ac_write_fail = 0 ||
15522 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15523
1c710c3c
DJ
15524
15525# configure is writing to config.log, and then calls config.status.
15526# config.status does its own redirection, appending to config.log.
15527# Unfortunately, on DOS this fails, as config.log is still kept open
15528# by configure, so config.status won't be able to write to it; its
15529# output is simply discarded. So we exec the FD to /dev/null,
15530# effectively closing config.log, so it can be properly (re)opened and
15531# appended to by config.status. When coming back to configure, we
15532# need to make the FD available again.
15533if test "$no_create" != yes; then
15534 ac_cs_success=:
15535 ac_config_status_args=
15536 test "$silent" = yes &&
15537 ac_config_status_args="$ac_config_status_args --quiet"
15538 exec 5>/dev/null
15539 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15540 exec 5>>config.log
15541 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15542 # would make configure fail if this is the last instruction.
5213506e
RW
15543 $ac_cs_success || as_fn_exit $?
15544fi
15545if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15547$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15548fi
79c06341 15549