]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Fix 48262
[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
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
632e2a07 581GOC_FOR_TARGET
5213506e
RW
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
5213506e
RW
607WINDRES_FOR_BUILD
608WINDMC_FOR_BUILD
609RANLIB_FOR_BUILD
610NM_FOR_BUILD
611LD_FOR_BUILD
612LDFLAGS_FOR_BUILD
632e2a07 613GOC_FOR_BUILD
5213506e
RW
614GFORTRAN_FOR_BUILD
615GCJ_FOR_BUILD
616DLLTOOL_FOR_BUILD
617CXX_FOR_BUILD
618CXXFLAGS_FOR_BUILD
619CFLAGS_FOR_BUILD
620CC_FOR_BUILD
621AS_FOR_BUILD
622AR_FOR_BUILD
aae29963 623target_configdirs
5213506e 624configdirs
5213506e 625build_configdirs
5213506e
RW
626INSTALL_GDB_TK
627GDB_TK
628CONFIGURE_GDB_TK
629build_tooldir
630tooldir
631GCC_SHLIB_SUBDIR
632RPATH_ENVVAR
ffedf511
RW
633target_configargs
634host_configargs
635build_configargs
e12c4094 636BUILD_CONFIG
5213506e
RW
637CXXFLAGS_FOR_TARGET
638CFLAGS_FOR_TARGET
639DEBUG_PREFIX_CFLAGS_FOR_TARGET
640SYSROOT_CFLAGS_FOR_TARGET
641stage1_languages
d7f09764 642extra_host_libiberty_configure_flags
5213506e
RW
643clooginc
644clooglibs
645pplinc
646ppllibs
5213506e 647poststage1_ldflags
ed2eaa9f 648poststage1_libs
5213506e
RW
649stage1_libs
650stage1_ldflags
651extra_mpc_mpfr_configure_flags
652extra_mpc_gmp_configure_flags
653extra_mpfr_configure_flags
654gmpinc
655gmplibs
656do_compare
657GNATMAKE
658GNATBIND
659ac_ct_CXX
660CXXFLAGS
661CXX
662OBJEXT
663EXEEXT
664ac_ct_CC
665CPPFLAGS
666LDFLAGS
667CFLAGS
668CC
669target_subdir
670host_subdir
671build_subdir
672build_libsubdir
87264276
PB
673AWK
674SED
5213506e
RW
675LN_S
676LN
677INSTALL_DATA
678INSTALL_SCRIPT
679INSTALL_PROGRAM
680target_os
681target_vendor
682target_cpu
683target
684host_os
685host_vendor
686host_cpu
687host
688target_noncanonical
689host_noncanonical
690build_noncanonical
691build_os
692build_vendor
693build_cpu
694build
695TOPLEVEL_CONFIGURE_ARGUMENTS
696target_alias
697host_alias
698build_alias
699LIBS
700ECHO_T
701ECHO_N
702ECHO_C
703DEFS
704mandir
705localedir
706libdir
707psdir
708pdfdir
709dvidir
710htmldir
711infodir
712docdir
713oldincludedir
714includedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files='serialization_dependencies
735host_makefile_frag
736target_makefile_frag
737alphaieee_frag
738ospace_frag'
739ac_user_opts='
740enable_option_checking
741with_build_libsubdir
742enable_gold
21539e2e 743enable_ld
87e6d9dc
TB
744enable_libquadmath
745enable_libquadmath_support
5213506e
RW
746enable_libada
747enable_libssp
748enable_build_with_cxx
749with_mpc
750with_mpc_include
751with_mpc_lib
752with_mpfr_dir
753with_mpfr
754with_mpfr_include
755with_mpfr_lib
756with_gmp_dir
757with_gmp
758with_gmp_include
759with_gmp_lib
760with_host_libstdcxx
761with_stage1_ldflags
762with_stage1_libs
5213506e 763with_boot_libs
ed2eaa9f 764with_boot_ldflags
5213506e
RW
765with_ppl
766with_ppl_include
767with_ppl_lib
768enable_ppl_version_check
769with_cloog
770with_cloog_include
771with_cloog_lib
f16e2237 772enable_cloog_backend
5213506e 773enable_cloog_version_check
d7f09764 774enable_lto
5213506e
RW
775enable_stage1_languages
776enable_objc_gc
777with_build_sysroot
778with_debug_prefix_map
779enable_bootstrap
5646b7b9 780with_build_config
5213506e
RW
781enable_serial_configure
782with_build_time_tools
783enable_maintainer_mode
784enable_stage1_checking
785enable_werror
5213506e
RW
786'
787 ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795CXX
796CXXFLAGS
797CCC
ffedf511
RW
798build_configargs
799host_configargs
800target_configargs
5213506e
RW
801AR
802AS
803DLLTOOL
804LD
805LIPO
806NM
807RANLIB
808STRIP
809WINDRES
810WINDMC
811OBJCOPY
812OBJDUMP
813CC_FOR_TARGET
814CXX_FOR_TARGET
815GCC_FOR_TARGET
816GCJ_FOR_TARGET
817GFORTRAN_FOR_TARGET
632e2a07 818GOC_FOR_TARGET
5213506e
RW
819AR_FOR_TARGET
820AS_FOR_TARGET
821DLLTOOL_FOR_TARGET
822LD_FOR_TARGET
823LIPO_FOR_TARGET
824NM_FOR_TARGET
825OBJDUMP_FOR_TARGET
826RANLIB_FOR_TARGET
827STRIP_FOR_TARGET
828WINDRES_FOR_TARGET
829WINDMC_FOR_TARGET'
830
671aa708
NN
831
832# Initialize some variables set by options.
1c710c3c
DJ
833ac_init_help=
834ac_init_version=false
5213506e
RW
835ac_unrecognized_opts=
836ac_unrecognized_sep=
671aa708
NN
837# The variables have the same names as the options, with
838# dashes changed to underlines.
1c710c3c 839cache_file=/dev/null
671aa708 840exec_prefix=NONE
671aa708 841no_create=
671aa708
NN
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
671aa708
NN
850verbose=
851x_includes=NONE
852x_libraries=NONE
1c710c3c
DJ
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 859# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
5213506e
RW
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
671aa708
NN
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
671aa708
NN
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
5213506e
RW
870docdir='${datarootdir}/doc/${PACKAGE}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
79c06341 879
671aa708 880ac_prev=
5213506e 881ac_dashdash=
671aa708
NN
882for ac_option
883do
671aa708
NN
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
5213506e 886 eval $ac_prev=\$ac_option
671aa708
NN
887 ac_prev=
888 continue
889 fi
79c06341 890
5213506e
RW
891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
671aa708
NN
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
5213506e
RW
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
671aa708
NN
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 905 bindir=$ac_optarg ;;
671aa708
NN
906
907 -build | --build | --buil | --bui | --bu)
1c710c3c 908 ac_prev=build_alias ;;
671aa708 909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 910 build_alias=$ac_optarg ;;
671aa708
NN
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
671aa708 921
5213506e 922 -datadir | --datadir | --datadi | --datad)
671aa708 923 ac_prev=datadir ;;
5213506e 924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 925 datadir=$ac_optarg ;;
671aa708 926
5213506e
RW
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
671aa708 934 -disable-* | --disable-*)
5213506e 935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 936 # Reject names that are not valid shell variable names.
5213506e
RW
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943"enable_$ac_useropt"
944"*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
671aa708
NN
959
960 -enable-* | --enable-*)
5213506e 961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 962 # Reject names that are not valid shell variable names.
5213506e
RW
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969"enable_$ac_useropt"
970"*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
2aeb72e9 973 esac
5213506e 974 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
1c710c3c 983 exec_prefix=$ac_optarg ;;
671aa708
NN
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
1c710c3c
DJ
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
671aa708
NN
995
996 -host | --host | --hos | --ho)
1c710c3c 997 ac_prev=host_alias ;;
671aa708 998 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 999 host_alias=$ac_optarg ;;
671aa708 1000
5213506e
RW
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
671aa708
NN
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1012 includedir=$ac_optarg ;;
671aa708
NN
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1017 infodir=$ac_optarg ;;
671aa708
NN
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1022 libdir=$ac_optarg ;;
671aa708
NN
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1029 libexecdir=$ac_optarg ;;
671aa708 1030
5213506e
RW
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
671aa708 1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1037 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1041 localstatedir=$ac_optarg ;;
671aa708
NN
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1046 mandir=$ac_optarg ;;
671aa708
NN
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1053 | --no-cr | --no-c | -n)
671aa708
NN
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1067 oldincludedir=$ac_optarg ;;
671aa708
NN
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1072 prefix=$ac_optarg ;;
671aa708
NN
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1079 program_prefix=$ac_optarg ;;
671aa708
NN
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1086 program_suffix=$ac_optarg ;;
671aa708
NN
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1103 program_transform_name=$ac_optarg ;;
671aa708 1104
5213506e
RW
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
671aa708
NN
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1c710c3c 1123 sbindir=$ac_optarg ;;
671aa708
NN
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1c710c3c 1134 sharedstatedir=$ac_optarg ;;
671aa708
NN
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1c710c3c 1139 site=$ac_optarg ;;
671aa708
NN
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1144 srcdir=$ac_optarg ;;
671aa708
NN
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1151 sysconfdir=$ac_optarg ;;
671aa708
NN
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1154 ac_prev=target_alias ;;
671aa708 1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1156 target_alias=$ac_optarg ;;
671aa708
NN
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1c710c3c
DJ
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
671aa708
NN
1163
1164 -with-* | --with-*)
5213506e 1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1166 # Reject names that are not valid shell variable names.
5213506e
RW
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173"with_$ac_useropt"
1174"*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
2aeb72e9 1177 esac
5213506e 1178 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1179
1180 -without-* | --without-*)
5213506e 1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1182 # Reject names that are not valid shell variable names.
5213506e
RW
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"with_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
671aa708
NN
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1205 x_includes=$ac_optarg ;;
671aa708
NN
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1212 x_libraries=$ac_optarg ;;
671aa708 1213
5213506e
RW
1214 -*) as_fn_error "unrecognized option: \`$ac_option'
1215Try \`$0 --help' for more information."
671aa708
NN
1216 ;;
1217
1c710c3c
DJ
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
5213506e
RW
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1226 export $ac_envvar ;;
1227
671aa708 1228 *)
1c710c3c 1229 # FIXME: should be removed in autoconf 3.0.
5213506e 1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1234 ;;
1235
1236 esac
1237done
1238
1239if test -n "$ac_prev"; then
1c710c3c 1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1241 as_fn_error "missing argument to $ac_option"
af71363e 1242fi
af71363e 1243
5213506e
RW
1244if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1249 esac
5213506e 1250fi
2aeb72e9 1251
5213506e
RW
1252# Check all directory arguments for consistency.
1253for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
2aeb72e9 1257do
5213506e
RW
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
2aeb72e9 1266 case $ac_val in
5213506e
RW
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1269 esac
5213506e 1270 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1271done
1272
1c710c3c
DJ
1273# There might be people who depend on the old broken behavior: `$host'
1274# used to hold the argument of --host etc.
1275# FIXME: To remove some day.
1276build=$build_alias
1277host=$host_alias
1278target=$target_alias
0b0dc272 1279
1c710c3c
DJ
1280# FIXME: To remove some day.
1281if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
5213506e 1284 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289fi
1290
1291ac_tool_prefix=
1292test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294test "$silent" = yes && exec 6>/dev/null
671aa708 1295
671aa708 1296
5213506e
RW
1297ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298ac_ls_di=`ls -di .` &&
1299ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error "working directory cannot be determined"
1301test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error "pwd does not report name of working directory"
1303
1304
671aa708
NN
1305# Find the source files, if location was not specified.
1306if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
5213506e
RW
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314$as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
671aa708 1332 srcdir=$ac_confdir
5213506e 1333 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1334 srcdir=..
1335 fi
1336else
1337 ac_srcdir_defaulted=no
1338fi
5213506e
RW
1339if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342fi
1343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346 pwd)`
1347# When building in place, set srcdir=.
1348if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350fi
1351# Remove unnecessary trailing slashes from srcdir.
1352# Double slashes in file names in object file debugging info
1353# mess up M-x gdb in Emacs.
1354case $srcdir in
1355*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356esac
87841584
AM
1357case $srcdir in
1358 *" "*)
1359 as_fn_error "path to source, $srcdir, contains spaces"
1360 ;;
1361esac
ac9e6043
RW
1362ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1363
5213506e
RW
1364for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369done
1c710c3c
DJ
1370
1371#
1372# Report the --help message.
1373#
1374if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378\`configure' configures this package to adapt to many kinds of systems.
1379
1380Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385Defaults for the options are specified in brackets.
1386
1387Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
1c710c3c
DJ
1398Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1400 [$ac_default_prefix]
1c710c3c 1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1402 [PREFIX]
1c710c3c
DJ
1403
1404By default, \`make install' will install all the files in
1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407for instance \`--prefix=\$HOME'.
1408
1409For better control, use the options below.
1410
1411Fine tuning of the installation directories:
5213506e
RW
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1431_ACEOF
1432
1433 cat <<\_ACEOF
1434
1435Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439
1440System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 --target=TARGET configure for building compilers for TARGET [HOST]
1444_ACEOF
1445fi
1446
1447if test -n "$ac_init_help"; then
1448
1449 cat <<\_ACEOF
1450
1451Optional Features:
5213506e 1452 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e 1455 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1456 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1457 --disable-libquadmath do not build libquadmath directory
1458 --disable-libquadmath-support
1459 disable libquadmath support for Fortran
30b74385
RW
1460 --enable-libada build libada directory
1461 --enable-libssp build libssp directory
00020c16 1462 --enable-build-with-cxx build with C++ compiler instead of C compiler
33e39b66
AS
1463 --disable-ppl-version-check
1464 disable check for PPL version
39986460
TG
1465 --enable-cloog-backend[=BACKEND]
1466 set the CLooG BACKEND used to either isl, ppl or
1467 ppl-legacy (default)
d32ef397
AS
1468 --disable-cloog-version-check
1469 disable check for CLooG version
d7f09764 1470 --enable-lto enable link time optimization support
33e39b66
AS
1471 --enable-stage1-languages[=all]
1472 choose additional languages to build during stage1.
1473 Mostly useful for compiler development
1474 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1475 Objective-C runtime
30b74385
RW
1476 --enable-bootstrap enable bootstrapping [yes if native build]
1477 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1478 force sequential configuration of sub-packages for
1479 the host, target or build machine, or all
1480 sub-packages
1481 --enable-maintainer-mode
1482 enable make rules and dependencies not useful (and
1483 sometimes confusing) to the casual installer
1484 --enable-stage1-checking[=all]
1485 choose additional checking for stage1 of the
1486 compiler
1c710c3c
DJ
1487 --enable-werror enable -Werror in bootstrap stage2 and later
1488
1489Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1493 --with-mpc=PATH specify prefix directory for installed MPC package.
1494 Equivalent to --with-mpc-include=PATH/include plus
1495 --with-mpc-lib=PATH/lib
1496 --with-mpc-include=PATH specify directory for installed MPC include files
1497 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1498 --with-mpfr-dir=PATH this option has been REMOVED
1499 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1500 Equivalent to --with-mpfr-include=PATH/include plus
1501 --with-mpfr-lib=PATH/lib
1c710c3c 1502 --with-mpfr-include=PATH
30b74385
RW
1503 specify directory for installed MPFR include files
1504 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1505 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1506 --with-gmp=PATH specify prefix directory for the installed GMP
1507 package. Equivalent to
1508 --with-gmp-include=PATH/include plus
1509 --with-gmp-lib=PATH/lib
30b74385
RW
1510 --with-gmp-include=PATH specify directory for installed GMP include files
1511 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1512 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1513 linking with PPL
1514 --with-stage1-ldflags=FLAGS
1515 linker flags for stage1
1516 --with-stage1-libs=LIBS libraries for stage1
1517 --with-boot-libs=LIBS libraries for stage2 and later
1518 --with-boot-ldflags=FLAGS
1519 linker flags for stage2 and later
1520 --with-ppl=PATH specify prefix directory for the installed PPL
1521 package. Equivalent to
1522 --with-ppl-include=PATH/include plus
1523 --with-ppl-lib=PATH/lib
1524 --with-ppl-include=PATH specify directory for installed PPL include files
1525 --with-ppl-lib=PATH specify directory for the installed PPL library
d32ef397
AS
1526 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1527 package. Equivalent to
1528 --with-cloog-include=PATH/include plus
1529 --with-cloog-lib=PATH/lib
1530 --with-cloog-include=PATH
1531 Specify directory for installed CLooG include files
1532 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1533 library
30b74385 1534 --with-build-sysroot=SYSROOT
1c710c3c 1535 use sysroot as the system root during the build
c8aea42c 1536 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1537 map A to B, C to D ... in debug information
1538 --with-build-config='NAME NAME2...'
1539 use config/NAME.mk build configuration
30b74385 1540 --with-build-time-tools=PATH
1c710c3c 1541 use given path to find target tools during the build
1c710c3c
DJ
1542
1543Some influential environment variables:
1544 CC C compiler command
1545 CFLAGS C compiler flags
1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1547 nonstandard directory <lib dir>
5213506e
RW
1548 LIBS libraries to pass to the linker, e.g. -l<library>
1549 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1550 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1551 CXX C++ compiler command
1552 CXXFLAGS C++ compiler flags
ffedf511
RW
1553 build_configargs
1554 additional configure arguments for build directories
1555 host_configargs
1556 additional configure arguments for host directories
1557 target_configargs
1558 additional configure arguments for target directories
278a7a38
AO
1559 AR AR for the host
1560 AS AS for the host
1561 DLLTOOL DLLTOOL for the host
1562 LD LD for the host
1563 LIPO LIPO for the host
1564 NM NM for the host
1565 RANLIB RANLIB for the host
1566 STRIP STRIP for the host
1567 WINDRES WINDRES for the host
901119ae 1568 WINDMC WINDMC for the host
278a7a38
AO
1569 OBJCOPY OBJCOPY for the host
1570 OBJDUMP OBJDUMP for the host
1571 CC_FOR_TARGET
1572 CC for the target
1573 CXX_FOR_TARGET
1574 CXX for the target
1575 GCC_FOR_TARGET
1576 GCC for the target
1577 GCJ_FOR_TARGET
1578 GCJ for the target
1579 GFORTRAN_FOR_TARGET
1580 GFORTRAN for the target
632e2a07
ILT
1581 GOC_FOR_TARGET
1582 GOC for the target
278a7a38
AO
1583 AR_FOR_TARGET
1584 AR for the target
1585 AS_FOR_TARGET
1586 AS for the target
1587 DLLTOOL_FOR_TARGET
1588 DLLTOOL for the target
1589 LD_FOR_TARGET
1590 LD for the target
1591 LIPO_FOR_TARGET
1592 LIPO for the target
1593 NM_FOR_TARGET
1594 NM for the target
1595 OBJDUMP_FOR_TARGET
1596 OBJDUMP for the target
1597 RANLIB_FOR_TARGET
1598 RANLIB for the target
1599 STRIP_FOR_TARGET
1600 STRIP for the target
1601 WINDRES_FOR_TARGET
1602 WINDRES for the target
901119ae
KT
1603 WINDMC_FOR_TARGET
1604 WINDMC for the target
1c710c3c
DJ
1605
1606Use these variables to override the choices made by `configure' or to help
1607it to find libraries and programs with nonstandard names/locations.
1608
5213506e 1609Report bugs to the package provider.
1c710c3c 1610_ACEOF
5213506e 1611ac_status=$?
1c710c3c
DJ
1612fi
1613
1614if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
1c710c3c 1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 continue
1c710c3c
DJ
1620 ac_builddir=.
1621
5213506e
RW
1622case "$ac_dir" in
1623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624*)
1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631 esac ;;
1632esac
1633ac_abs_top_builddir=$ac_pwd
1634ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635# for backward compatibility:
1636ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1637
1638case $srcdir in
5213506e 1639 .) # We are building in place.
1c710c3c 1640 ac_srcdir=.
5213506e
RW
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1644 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1647 *) # Relative name.
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1651esac
5213506e
RW
1652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1662 else
5213506e
RW
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1666 done
1667fi
1668
5213506e 1669test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1670if $ac_init_version; then
1671 cat <<\_ACEOF
5213506e
RW
1672configure
1673generated by GNU Autoconf 2.64
1c710c3c 1674
5213506e 1675Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
1678_ACEOF
5213506e 1679 exit
0b0dc272 1680fi
5213506e
RW
1681
1682## ------------------------ ##
1683## Autoconf initialization. ##
1684## ------------------------ ##
1685
1686# ac_fn_c_try_compile LINENO
1687# --------------------------
1688# Try to compile conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_compile ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext
1693 if { { ac_try="$ac_compile"
1694case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext; then :
1712 ac_retval=0
1713else
1714 $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718fi
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 return $ac_retval
1721
1722} # ac_fn_c_try_compile
1723
1724# ac_fn_cxx_try_compile LINENO
1725# ----------------------------
1726# Try to compile conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_cxx_try_compile ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751else
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756fi
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 return $ac_retval
1759
1760} # ac_fn_cxx_try_compile
1761
1762# ac_fn_c_try_link LINENO
1763# -----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_link ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 $as_test_x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 return $ac_retval
1805
1806} # ac_fn_c_try_link
1807cat >config.log <<_ACEOF
1c710c3c
DJ
1808This file contains any messages produced by compilers while
1809running configure, to aid debugging if configure makes a mistake.
1810
1811It was created by $as_me, which was
5213506e 1812generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1813
1814 $ $0 $@
1815
1816_ACEOF
5213506e 1817exec 5>>config.log
1c710c3c
DJ
1818{
1819cat <<_ASUNAME
1820## --------- ##
1821## Platform. ##
1822## --------- ##
1823
1824hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1825uname -m = `(uname -m) 2>/dev/null || echo unknown`
1826uname -r = `(uname -r) 2>/dev/null || echo unknown`
1827uname -s = `(uname -s) 2>/dev/null || echo unknown`
1828uname -v = `(uname -v) 2>/dev/null || echo unknown`
1829
1830/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1831/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1832
1833/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1834/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1835/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1836/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1837/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1838/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1839/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1840
1841_ASUNAME
1842
1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844for as_dir in $PATH
1845do
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
5213506e
RW
1848 $as_echo "PATH: $as_dir"
1849 done
1850IFS=$as_save_IFS
1c710c3c
DJ
1851
1852} >&5
1853
1854cat >&5 <<_ACEOF
1855
1856
1857## ----------- ##
1858## Core tests. ##
1859## ----------- ##
1860
1861_ACEOF
1862
1863
1864# Keep a trace of the command line.
1865# Strip out --no-create and --no-recursion so they do not pile up.
1866# Strip out --silent because we don't want to record it for future runs.
1867# Also quote any args containing shell meta-characters.
1868# Make two passes to allow for proper duplicate-argument suppression.
1869ac_configure_args=
1870ac_configure_args0=
1871ac_configure_args1=
1c710c3c
DJ
1872ac_must_keep_next=false
1873for ac_pass in 1 2
1874do
1875 for ac_arg
1876 do
1877 case $ac_arg in
1878 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1880 | -silent | --silent | --silen | --sile | --sil)
1881 continue ;;
5213506e
RW
1882 *\'*)
1883 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1884 esac
1885 case $ac_pass in
5213506e 1886 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1887 2)
5213506e 1888 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1889 if test $ac_must_keep_next = true; then
1890 ac_must_keep_next=false # Got value, back to normal.
1891 else
1892 case $ac_arg in
1893 *=* | --config-cache | -C | -disable-* | --disable-* \
1894 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1895 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1896 | -with-* | --with-* | -without-* | --without-* | --x)
1897 case "$ac_configure_args0 " in
1898 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1899 esac
1900 ;;
1901 -* ) ac_must_keep_next=true ;;
1902 esac
1903 fi
5213506e 1904 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1905 ;;
1906 esac
1907 done
1908done
5213506e
RW
1909{ ac_configure_args0=; unset ac_configure_args0;}
1910{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1911
1912# When interrupted or exit'd, cleanup temporary files, and complete
1913# config.log. We remove comments because anyway the quotes in there
1914# would cause problems or look ugly.
5213506e
RW
1915# WARNING: Use '\'' to represent an apostrophe within the trap.
1916# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1917trap 'exit_status=$?
1918 # Save into config.log some information that might help in debugging.
1919 {
1920 echo
1921
1922 cat <<\_ASBOX
1923## ---------------- ##
1924## Cache variables. ##
1925## ---------------- ##
1926_ASBOX
1927 echo
1928 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1929(
1930 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1931 eval ac_val=\$$ac_var
1932 case $ac_val in #(
1933 *${as_nl}*)
1934 case $ac_var in #(
1935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1936$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1937 esac
1938 case $ac_var in #(
1939 _ | IFS | as_nl) ;; #(
1940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1941 *) { eval $ac_var=; unset $ac_var;} ;;
1942 esac ;;
1943 esac
1944 done
1c710c3c 1945 (set) 2>&1 |
5213506e
RW
1946 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947 *${as_nl}ac_space=\ *)
1c710c3c 1948 sed -n \
5213506e
RW
1949 "s/'\''/'\''\\\\'\'''\''/g;
1950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951 ;; #(
1c710c3c 1952 *)
5213506e 1953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 1954 ;;
5213506e
RW
1955 esac |
1956 sort
1957)
1c710c3c
DJ
1958 echo
1959
1960 cat <<\_ASBOX
1961## ----------------- ##
1962## Output variables. ##
1963## ----------------- ##
1964_ASBOX
1965 echo
1966 for ac_var in $ac_subst_vars
1967 do
5213506e
RW
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1973 done | sort
1974 echo
1975
1976 if test -n "$ac_subst_files"; then
1977 cat <<\_ASBOX
5213506e
RW
1978## ------------------- ##
1979## File substitutions. ##
1980## ------------------- ##
1c710c3c
DJ
1981_ASBOX
1982 echo
1983 for ac_var in $ac_subst_files
1984 do
5213506e
RW
1985 eval ac_val=\$$ac_var
1986 case $ac_val in
1987 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988 esac
1989 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1990 done | sort
1991 echo
1992 fi
1993
1994 if test -s confdefs.h; then
1995 cat <<\_ASBOX
1996## ----------- ##
1997## confdefs.h. ##
1998## ----------- ##
1999_ASBOX
2000 echo
5213506e 2001 cat confdefs.h
1c710c3c
DJ
2002 echo
2003 fi
2004 test "$ac_signal" != 0 &&
5213506e
RW
2005 $as_echo "$as_me: caught signal $ac_signal"
2006 $as_echo "$as_me: exit $exit_status"
1c710c3c 2007 } >&5
5213506e
RW
2008 rm -f core *.core core.conftest.* &&
2009 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2010 exit $exit_status
5213506e 2011' 0
1c710c3c 2012for ac_signal in 1 2 13 15; do
5213506e 2013 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2014done
2015ac_signal=0
2016
2017# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2018rm -f -r conftest* confdefs.h
2019
2020$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2021
2022# Predefined preprocessor variables.
2023
2024cat >>confdefs.h <<_ACEOF
2025#define PACKAGE_NAME "$PACKAGE_NAME"
2026_ACEOF
2027
1c710c3c
DJ
2028cat >>confdefs.h <<_ACEOF
2029#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2030_ACEOF
2031
1c710c3c
DJ
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_VERSION "$PACKAGE_VERSION"
2034_ACEOF
0b0dc272 2035
1c710c3c
DJ
2036cat >>confdefs.h <<_ACEOF
2037#define PACKAGE_STRING "$PACKAGE_STRING"
2038_ACEOF
2039
1c710c3c
DJ
2040cat >>confdefs.h <<_ACEOF
2041#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2042_ACEOF
2043
5213506e
RW
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_URL "$PACKAGE_URL"
2046_ACEOF
2047
1c710c3c
DJ
2048
2049# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2050# Prefer an explicitly selected file to automatically selected ones.
2051ac_site_file1=NONE
2052ac_site_file2=NONE
2053if test -n "$CONFIG_SITE"; then
2054 ac_site_file1=$CONFIG_SITE
2055elif test "x$prefix" != xNONE; then
2056 ac_site_file1=$prefix/share/config.site
2057 ac_site_file2=$prefix/etc/config.site
2058else
2059 ac_site_file1=$ac_default_prefix/share/config.site
2060 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2061fi
5213506e
RW
2062for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2063do
2064 test "x$ac_site_file" = xNONE && continue
671aa708 2065 if test -r "$ac_site_file"; then
5213506e
RW
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2067$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2068 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2069 . "$ac_site_file"
2070 fi
2071done
2072
2073if test -r "$cache_file"; then
1c710c3c
DJ
2074 # Some versions of bash will fail to source /dev/null (special
2075 # files actually), so we avoid doing that.
2076 if test -f "$cache_file"; then
5213506e
RW
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2079 case $cache_file in
5213506e
RW
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
1c710c3c
DJ
2082 esac
2083 fi
671aa708 2084else
5213506e
RW
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2087 >$cache_file
2088fi
2089
2090# Check that the precious variables saved in the cache have kept the same
2091# value.
2092ac_cache_corrupted=false
5213506e 2093for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2098 case $ac_old_set,$ac_new_set in
2099 set,)
5213506e
RW
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2101$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2102 ac_cache_corrupted=: ;;
2103 ,set)
5213506e
RW
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2105$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2106 ac_cache_corrupted=: ;;
2107 ,);;
2108 *)
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2110 # differences in whitespace do not lead to failure.
2111 ac_old_val_w=`echo x $ac_old_val`
2112 ac_new_val_w=`echo x $ac_new_val`
2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2115$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2116 ac_cache_corrupted=:
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2119$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2120 eval $ac_var=\$ac_old_val
2121 fi
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2123$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2125$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2126 fi;;
2127 esac
2128 # Pass precious variables to config.status.
2129 if test "$ac_new_set" = set; then
2130 case $ac_new_val in
5213506e 2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2132 *) ac_arg=$ac_var=$ac_new_val ;;
2133 esac
2134 case " $ac_configure_args " in
2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2137 esac
2138 fi
2139done
2140if $ac_cache_corrupted; then
5213506e
RW
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2144$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2145 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2146fi
5213506e
RW
2147## -------------------- ##
2148## Main body of script. ##
2149## -------------------- ##
671aa708 2150
2aeb72e9
DD
2151ac_ext=c
2152ac_cpp='$CPP $CPPFLAGS'
2153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156
1c710c3c
DJ
2157
2158
2159
1c710c3c
DJ
2160
2161
0115d4a3 2162
1c710c3c 2163
ad33ff57
RW
2164
2165progname=$0
2166# if PWD already has a value, it is probably wrong.
2167if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2168
2169# Export original configure arguments for use by sub-configures.
2170# Quote arguments with shell meta charatcers.
2171TOPLEVEL_CONFIGURE_ARGUMENTS=
2172set -- "$progname" "$@"
2173for ac_arg
2174do
2175 case "$ac_arg" in
2176 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2177 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2178 # if the argument is of the form -foo=baz, quote the baz part only
2179 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2180 *) ;;
2181 esac
2182 # Add the quoted argument to the list.
2183 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2184done
2185if test "$silent" = yes; then
2186 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2187fi
2188# Remove the initial space we just introduced and, as these will be
2189# expanded by make, quote '$'.
2190TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2191
1c710c3c
DJ
2192
2193# Find the build, host, and target systems.
671aa708 2194ac_aux_dir=
5213506e
RW
2195for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2196 for ac_t in install-sh install.sh shtool; do
2197 if test -f "$ac_dir/$ac_t"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/$ac_t -c"
2200 break 2
2201 fi
2202 done
671aa708
NN
2203done
2204if test -z "$ac_aux_dir"; then
5213506e 2205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2206fi
5213506e
RW
2207
2208# These three variables are undocumented and unsupported,
2209# and are intended to be withdrawn in a future Autoconf release.
2210# They can cause serious problems if a builder's source tree is in a directory
2211# whose full name contains unusual characters.
2212ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2213ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2214ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2215
671aa708 2216
1c710c3c 2217# Make sure we can run config.sub.
5213506e
RW
2218$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2220
2221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2222$as_echo_n "checking build system type... " >&6; }
2223if test "${ac_cv_build+set}" = set; then :
2224 $as_echo_n "(cached) " >&6
2225else
2226 ac_build_alias=$build_alias
2227test "x$ac_build_alias" = x &&
2228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2229test "x$ac_build_alias" = x &&
2230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2231ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2233
2234fi
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2236$as_echo "$ac_cv_build" >&6; }
2237case $ac_cv_build in
2238*-*-*) ;;
2239*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2240esac
1c710c3c 2241build=$ac_cv_build
5213506e
RW
2242ac_save_IFS=$IFS; IFS='-'
2243set x $ac_cv_build
2244shift
2245build_cpu=$1
2246build_vendor=$2
2247shift; shift
2248# Remember, the first character of IFS is used to create $*,
2249# except with old shells:
2250build_os=$*
2251IFS=$ac_save_IFS
2252case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2253
671aa708 2254
1c710c3c
DJ
2255 case ${build_alias} in
2256 "") build_noncanonical=${build} ;;
2257 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2258esac
2259
2260
af71363e 2261
1c710c3c
DJ
2262 case ${host_alias} in
2263 "") host_noncanonical=${build_noncanonical} ;;
2264 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2265esac
2266
af71363e 2267
1c710c3c
DJ
2268
2269 case ${target_alias} in
2270 "") target_noncanonical=${host_noncanonical} ;;
2271 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2272esac
2273
af71363e 2274
1c710c3c
DJ
2275
2276
2277test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2278 test "$program_prefix$program_suffix$program_transform_name" = \
2279 NONENONEs,x,x, &&
1c710c3c 2280 program_transform_name=s,y,y,
af71363e 2281
5213506e
RW
2282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2283$as_echo_n "checking host system type... " >&6; }
2284if test "${ac_cv_host+set}" = set; then :
2285 $as_echo_n "(cached) " >&6
af71363e 2286else
5213506e
RW
2287 if test "x$host_alias" = x; then
2288 ac_cv_host=$ac_cv_build
2289else
2290 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2291 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2292fi
1c710c3c 2293
af71363e 2294fi
5213506e
RW
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2296$as_echo "$ac_cv_host" >&6; }
2297case $ac_cv_host in
2298*-*-*) ;;
2299*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2300esac
1c710c3c 2301host=$ac_cv_host
5213506e
RW
2302ac_save_IFS=$IFS; IFS='-'
2303set x $ac_cv_host
2304shift
2305host_cpu=$1
2306host_vendor=$2
2307shift; shift
2308# Remember, the first character of IFS is used to create $*,
2309# except with old shells:
2310host_os=$*
2311IFS=$ac_save_IFS
2312case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2313
2314
5213506e
RW
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2316$as_echo_n "checking target system type... " >&6; }
2317if test "${ac_cv_target+set}" = set; then :
2318 $as_echo_n "(cached) " >&6
1c710c3c 2319else
5213506e
RW
2320 if test "x$target_alias" = x; then
2321 ac_cv_target=$ac_cv_host
2322else
2323 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2324 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2325fi
1c710c3c
DJ
2326
2327fi
5213506e
RW
2328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2329$as_echo "$ac_cv_target" >&6; }
2330case $ac_cv_target in
2331*-*-*) ;;
2332*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2333esac
1c710c3c 2334target=$ac_cv_target
5213506e
RW
2335ac_save_IFS=$IFS; IFS='-'
2336set x $ac_cv_target
2337shift
2338target_cpu=$1
2339target_vendor=$2
2340shift; shift
2341# Remember, the first character of IFS is used to create $*,
2342# except with old shells:
2343target_os=$*
2344IFS=$ac_save_IFS
2345case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2346
2347
2348# The aliases save the names the user supplied, while $host etc.
2349# will get canonicalized.
2350test -n "$target_alias" &&
2351 test "$program_prefix$program_suffix$program_transform_name" = \
2352 NONENONEs,x,x, &&
2353 program_prefix=${target_alias}-
5213506e 2354
671aa708 2355test "$program_prefix" != NONE &&
5213506e 2356 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2357# Use a double $ so make ignores it.
2358test "$program_suffix" != NONE &&
5213506e
RW
2359 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2360# Double any \ or $.
1c710c3c 2361# By default was `s,x,x', remove it if useless.
5213506e
RW
2362ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2363program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2364
671aa708
NN
2365
2366
775956d0
NN
2367# Get 'install' or 'install-sh' and its variants.
2368# Find a good install program. We prefer a C program (faster),
2369# so one script is as good as another. But avoid the broken or
2370# incompatible versions:
2371# SysV /etc/install, /usr/sbin/install
2372# SunOS /usr/etc/install
2373# IRIX /sbin/install
2374# AIX /bin/install
1c710c3c 2375# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2376# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2377# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2378# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2379# OS/2's system install, which has a completely different semantic
775956d0 2380# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2381# Reject install programs that cannot install multiple files.
5213506e
RW
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2383$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2384if test -z "$INSTALL"; then
5213506e
RW
2385if test "${ac_cv_path_install+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2387else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389for as_dir in $PATH
2390do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
5213506e
RW
2393 # Account for people who put trailing slashes in PATH elements.
2394case $as_dir/ in #((
2395 ./ | .// | /[cC]/* | \
1c710c3c 2396 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2397 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2398 /usr/ucb/* ) ;;
2399 *)
2400 # OSF1 and SCO ODT 3.0 have their own names for install.
2401 # Don't use installbsd from OSF since it installs stuff as root
2402 # by default.
2403 for ac_prog in ginstall scoinst install; do
2404 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2405 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2406 if test $ac_prog = install &&
1c710c3c 2407 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2408 # AIX install. It has an incompatible calling convention.
2409 :
1c710c3c
DJ
2410 elif test $ac_prog = install &&
2411 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2412 # program-specific install script used by HP pwplus--don't use.
2413 :
775956d0 2414 else
38d24731
RW
2415 rm -rf conftest.one conftest.two conftest.dir
2416 echo one > conftest.one
2417 echo two > conftest.two
2418 mkdir conftest.dir
2419 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2420 test -s conftest.one && test -s conftest.two &&
2421 test -s conftest.dir/conftest.one &&
2422 test -s conftest.dir/conftest.two
2423 then
2424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2425 break 3
2426 fi
775956d0
NN
2427 fi
2428 fi
2429 done
1c710c3c
DJ
2430 done
2431 ;;
2432esac
5213506e
RW
2433
2434 done
2435IFS=$as_save_IFS
1c710c3c 2436
38d24731 2437rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2438
2439fi
2440 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2441 INSTALL=$ac_cv_path_install
775956d0 2442 else
38d24731
RW
2443 # As a last resort, use the slow shell script. Don't cache a
2444 # value for INSTALL within a source directory, because that will
775956d0 2445 # break other packages using the cache if that directory is
38d24731 2446 # removed, or if the value is a relative name.
1c710c3c 2447 INSTALL=$ac_install_sh
775956d0
NN
2448 fi
2449fi
5213506e
RW
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2451$as_echo "$INSTALL" >&6; }
775956d0
NN
2452
2453# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2454# It thinks the first close brace ends the variable substitution.
2455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2456
1c710c3c 2457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2458
2459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2460
5213506e
RW
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2462$as_echo_n "checking whether ln works... " >&6; }
2463if test "${acx_cv_prog_LN+set}" = set; then :
2464 $as_echo_n "(cached) " >&6
ad6717df
PB
2465else
2466 rm -f conftestdata_t
2467echo >conftestdata_f
2468if ln conftestdata_f conftestdata_t 2>/dev/null
2469then
2470 acx_cv_prog_LN=ln
2471else
2472 acx_cv_prog_LN=no
2473fi
2474rm -f conftestdata_f conftestdata_t
2475
2476fi
2477if test $acx_cv_prog_LN = no; then
2478 LN="cp"
5213506e
RW
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2480$as_echo "no, using $LN" >&6; }
ad6717df
PB
2481else
2482 LN="$acx_cv_prog_LN"
5213506e
RW
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484$as_echo "yes" >&6; }
ad6717df
PB
2485fi
2486
5213506e
RW
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2488$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2489LN_S=$as_ln_s
2490if test "$LN_S" = "ln -s"; then
5213506e
RW
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2492$as_echo "yes" >&6; }
fb0103e5 2493else
5213506e
RW
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2495$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2496fi
2497
87264276
PB
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2499$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2500if test "${ac_cv_path_SED+set}" = set; then :
2501 $as_echo_n "(cached) " >&6
2502else
2503 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2504 for ac_i in 1 2 3 4 5 6 7; do
2505 ac_script="$ac_script$as_nl$ac_script"
2506 done
2507 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2508 { ac_script=; unset ac_script;}
2509 if test -z "$SED"; then
2510 ac_path_SED_found=false
2511 # Loop through the user's path and test for each of PROGNAME-LIST
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_prog in sed gsed; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2520 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2521# Check for GNU ac_path_SED and select it if it is found.
2522 # Check for GNU $ac_path_SED
2523case `"$ac_path_SED" --version 2>&1` in
2524*GNU*)
2525 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2526*)
2527 ac_count=0
2528 $as_echo_n 0123456789 >"conftest.in"
2529 while :
2530 do
2531 cat "conftest.in" "conftest.in" >"conftest.tmp"
2532 mv "conftest.tmp" "conftest.in"
2533 cp "conftest.in" "conftest.nl"
2534 $as_echo '' >> "conftest.nl"
2535 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2537 as_fn_arith $ac_count + 1 && ac_count=$as_val
2538 if test $ac_count -gt ${ac_path_SED_max-0}; then
2539 # Best one so far, save it but keep looking for a better one
2540 ac_cv_path_SED="$ac_path_SED"
2541 ac_path_SED_max=$ac_count
2542 fi
2543 # 10*(2^10) chars as input seems more than enough
2544 test $ac_count -gt 10 && break
2545 done
2546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2547esac
2548
2549 $ac_path_SED_found && break 3
2550 done
2551 done
2552 done
2553IFS=$as_save_IFS
2554 if test -z "$ac_cv_path_SED"; then
2555 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2556 fi
2557else
2558 ac_cv_path_SED=$SED
2559fi
2560
2561fi
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2563$as_echo "$ac_cv_path_SED" >&6; }
2564 SED="$ac_cv_path_SED"
2565 rm -f conftest.sed
2566
2567for ac_prog in gawk mawk nawk awk
2568do
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570set dummy $ac_prog; ac_word=$2
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
2573if test "${ac_cv_prog_AWK+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575else
2576 if test -n "$AWK"; then
2577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AWK="$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590done
2591 done
2592IFS=$as_save_IFS
2593
2594fi
2595fi
2596AWK=$ac_cv_prog_AWK
2597if test -n "$AWK"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599$as_echo "$AWK" >&6; }
2600else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603fi
2604
2605
2606 test -n "$AWK" && break
2607done
2608
775956d0 2609
ee6a22df
L
2610srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2611
2612# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2613# a relative path.
2614if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2615 INSTALL="${srcpwd}/install-sh -c"
2616fi
2617
671aa708
NN
2618# Set srcdir to "." if that's what it is.
2619# This is important for multilib support.
2620pwd=`${PWDCMD-pwd}`
671aa708
NN
2621if test "${pwd}" = "${srcpwd}" ; then
2622 srcdir=.
79c06341
JL
2623fi
2624
671aa708 2625topsrcdir=$srcpwd
5d4a5ee6 2626
671aa708 2627extra_host_args=
afabd8e6 2628
671aa708
NN
2629### To add a new directory to the tree, first choose whether it is a target
2630### or a host dependent tool. Then put it into the appropriate list
2631### (library or tools, host or target), doing a dependency sort.
79c06341 2632
1c710c3c 2633# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2634# configdirs, or target_configdirs; see the serialization section below.
79c06341 2635
1c710c3c
DJ
2636# Dependency sorting is only needed when *configuration* must be done in
2637# a particular order. In all cases a dependency should be specified in
671aa708 2638# the Makefile, whether or not it's implicitly specified here.
79c06341 2639
671aa708
NN
2640# Double entries in build_configdirs, configdirs, or target_configdirs may
2641# cause circular dependencies and break everything horribly.
79c06341 2642
23f6b2f9
PB
2643# these library is used by various programs built for the build
2644# environment
2645#
2646build_libs="build-libiberty"
2647
2648# these tools are built for the build environment
71b5d516 2649build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2650
671aa708
NN
2651# these libraries are used by various programs built for the host environment
2652#
f61428ed 2653host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
671aa708 2654
671aa708
NN
2655# these tools are built for the host environment
2656# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2657# know that we are building the simulator.
2658# binutils, gas and ld appear in that order because it makes sense to run
2659# "make check" in that particular order.
38e3d868 2660# If --enable-gold is used, "gold" may replace "ld".
8c32c9f0 2661host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
2662
2663# libgcj represents the runtime libraries only used by gcj.
2664libgcj="target-libffi \
671aa708
NN
2665 target-zlib \
2666 target-qthreads \
2667 target-libjava"
2668
2669# these libraries are built for the target environment, and are built after
2670# the host libraries and the host tools (which may be a cross compiler)
2671#
291f172e
DJ
2672target_libraries="target-libgcc \
2673 target-libiberty \
671aa708
NN
2674 target-libgloss \
2675 target-newlib \
6d3b5aea 2676 target-libgomp \
cb543528 2677 target-libstdc++-v3 \
6de9cd9a 2678 target-libmudflap \
77008252 2679 target-libssp \
1ec601bf 2680 target-libquadmath \
6de9cd9a 2681 target-libgfortran \
7cd0cf9c 2682 target-boehm-gc \
77d187bc 2683 ${libgcj} \
d9cdb878 2684 target-libobjc \
632e2a07
ILT
2685 target-libada \
2686 target-libgo"
671aa708 2687
4dbda6f0
NN
2688# these tools are built using the target libraries, and are intended to
2689# run only in the target environment
671aa708 2690#
4dbda6f0 2691# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2692# list belongs in this list.
671aa708 2693#
8d4c5ac6 2694target_tools="target-examples target-gperf target-rda"
79c06341 2695
671aa708 2696################################################################################
79c06341 2697
671aa708
NN
2698## All tools belong in one of the four categories, and are assigned above
2699## We assign ${configdirs} this way to remove all embedded newlines. This
2700## is important because configure will choke if they ever get through.
2701## ${configdirs} is directories we build using the host tools.
2702## ${target_configdirs} is directories we build using the target tools.
671aa708 2703configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2704target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2705build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2706
ac9e6043
RW
2707
2708
671aa708 2709################################################################################
79c06341 2710
671aa708 2711srcname="gnu development package"
79c06341 2712
671aa708
NN
2713# This gets set non-empty for some net releases of packages.
2714appdirs=""
79c06341 2715
671aa708
NN
2716# Define is_cross_compiler to save on calls to 'test'.
2717is_cross_compiler=
2718if test x"${host}" = x"${target}" ; then
2719 is_cross_compiler=no
79c06341 2720else
671aa708 2721 is_cross_compiler=yes
1c710c3c 2722fi
79c06341 2723
b4acb5ef 2724# Find the build and target subdir names.
8b87bb96 2725
2e9e6f68
DJ
2726# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2727# have matching libraries, they should use host libraries: Makefile.tpl
2728# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2729# However, they still use the build modules, because the corresponding
2730# host modules (e.g. bison) are only built for the host when bootstrap
2731# finishes. So:
2732# - build_subdir is where we find build modules, and never changes.
2733# - build_libsubdir is where we find build libraries, and can be overridden.
2734
2735# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2736build_subdir="build-${build_noncanonical}"
1c710c3c 2737
5213506e
RW
2738# Check whether --with-build-libsubdir was given.
2739if test "${with_build_libsubdir+set}" = set; then :
2740 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2741else
2742 build_libsubdir="$build_subdir"
5213506e
RW
2743fi
2744
215c351a
PB
2745# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2746if ( test $srcdir = . && test -d gcc ) \
2747 || test -d $srcdir/../host-${host_noncanonical}; then
2748 host_subdir="host-${host_noncanonical}"
2749else
2750 host_subdir=.
2751fi
8b87bb96
NN
2752# No prefix.
2753target_subdir=${target_noncanonical}
1c710c3c 2754
0db770bd
RW
2755# Be sure to cover against remnants of an in-tree build.
2756if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2757 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2758Use a pristine source tree when building in a separate tree" "$LINENO" 5
2759fi
79c06341 2760
671aa708
NN
2761# Skipdirs are removed silently.
2762skipdirs=
2763# Noconfigdirs are removed loudly.
2764noconfigdirs=""
79c06341 2765
671aa708
NN
2766use_gnu_ld=
2767# Make sure we don't let GNU ld be added if we didn't want it.
2768if test x$with_gnu_ld = xno ; then
2769 use_gnu_ld=no
5afab7ad 2770 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2771fi
2772
671aa708
NN
2773use_gnu_as=
2774# Make sure we don't let GNU as be added if we didn't want it.
2775if test x$with_gnu_as = xno ; then
2776 use_gnu_as=no
2777 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2778fi
2779
d7f09764
DN
2780use_included_zlib=
2781# Make sure we don't let ZLIB be added if we didn't want it.
2782if test x$with_system_zlib = xyes ; then
2783 use_included_zlib=no
2784 noconfigdirs="$noconfigdirs zlib"
2785fi
2786
1c710c3c 2787# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2788# it's not even worth trying to configure, much less build, that tool.
79c06341 2789
671aa708
NN
2790case ${with_x} in
2791 yes | "") ;; # the default value for this tree is that X11 is available
2792 no)
b4f96efe 2793 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2794 # We won't be able to build gdbtk without X.
1c710c3c 2795 enable_gdbtk=no
671aa708
NN
2796 ;;
2797 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2798esac
79c06341 2799
1bcce263 2800# Some are only suitable for cross toolchains.
671aa708
NN
2801# Remove these if host=target.
2802cross_only="target-libgloss target-newlib target-opcodes"
2803
2804case $is_cross_compiler in
2805 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2806esac
79c06341 2807
671aa708
NN
2808# If both --with-headers and --with-libs are specified, default to
2809# --without-newlib.
ee6a22df
L
2810if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2811 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2812 if test x"${with_newlib}" = x ; then
2813 with_newlib=no
2814 fi
79c06341
JL
2815fi
2816
671aa708
NN
2817# Recognize --with-newlib/--without-newlib.
2818case ${with_newlib} in
2819 no) skipdirs="${skipdirs} target-newlib" ;;
2820 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2821esac
79c06341 2822
21539e2e
MK
2823# Handle --enable-gold, --enable-ld.
2824# --disable-gold [--enable-ld]
2825# Build only ld. Default option.
9580395f
L
2826# --enable-gold [--enable-ld]
2827# Build both gold and ld. Install gold as "ld.gold", install ld
2828# as "ld.bfd" and "ld".
2829# --enable-gold=default [--enable-ld]
21539e2e
MK
2830# Build both gold and ld. Install gold as "ld.gold" and "ld",
2831# install ld as "ld.bfd".
2832# --enable-gold[=default] --disable-ld
2833# Build only gold, which is then installed as both "ld.gold" and "ld".
2834# --enable-gold --enable-ld=default
9580395f
L
2835# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2836# and ld.bfd).
21539e2e
MK
2837# In other words, ld is default
2838# --enable-gold=default --enable-ld=default
2839# Error.
2840
2841default_ld=
5213506e
RW
2842# Check whether --enable-gold was given.
2843if test "${enable_gold+set}" = set; then :
2844 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2845else
2846 ENABLE_GOLD=no
5213506e
RW
2847fi
2848
21539e2e
MK
2849case "${ENABLE_GOLD}" in
2850 yes|default)
38e3d868
RM
2851 # Check for ELF target.
2852 is_elf=no
2853 case "${target}" in
2854 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2855 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a
JM
2856 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2857 | *-*-solaris2* | *-*-nto*)
38e3d868
RM
2858 case "${target}" in
2859 *-*-linux*aout* | *-*-linux*oldld*)
2860 ;;
2861 *)
2862 is_elf=yes
2863 ;;
2864 esac
2865 esac
2866
2867 if test "$is_elf" = "yes"; then
2868 # Check for target supported by gold.
5afab7ad 2869 case "${target}" in
38e3d868 2870 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
21539e2e
MK
2871 configdirs="$configdirs gold"
2872 if test x${ENABLE_GOLD} = xdefault; then
2873 default_ld=gold
2874 fi
38e3d868 2875 ENABLE_GOLD=yes
5afab7ad
ILT
2876 ;;
2877 esac
38e3d868
RM
2878 fi
2879 ;;
2880 no)
2881 ;;
2882 *)
2883 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2884 ;;
21539e2e
MK
2885esac
2886
2887# Check whether --enable-ld was given.
2888if test "${enable_ld+set}" = set; then :
2889 enableval=$enable_ld; ENABLE_LD=$enableval
2890else
2891 ENABLE_LD=yes
2892fi
2893
2894
2895case "${ENABLE_LD}" in
2896 default)
9580395f 2897 if test x${default_ld} != x; then
21539e2e
MK
2898 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2899 fi
2900 ;;
2901 yes)
2902 ;;
2903 no)
2904 if test x${ENABLE_GOLD} != xyes; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2906$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2907 fi
2908 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2909 ;;
2910 *)
2911 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2912 ;;
2913esac
5afab7ad 2914
671aa708 2915# Configure extra directories which are host specific
79c06341 2916
671aa708
NN
2917case "${host}" in
2918 *-cygwin*)
2919 configdirs="$configdirs libtermcap" ;;
2920esac
79c06341 2921
4fab7234
HPN
2922# A target can indicate whether a language isn't supported for some reason.
2923# Only spaces may be used in this macro; not newlines or tabs.
2924unsupported_languages=
2925
1c710c3c 2926# Remove more programs from consideration, based on the host or
671aa708
NN
2927# target this usually means that a port of the program doesn't
2928# exist yet.
ec8d6ddc 2929
671aa708 2930case "${host}" in
111eeb6e 2931 i[3456789]86-*-msdosdjgpp*)
c9bdb152 2932 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 2933 ;;
671aa708 2934esac
ec8d6ddc 2935
6de9cd9a 2936
87e6d9dc
TB
2937# Check whether --enable-libquadmath was given.
2938if test "${enable_libquadmath+set}" = set; then :
2939 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2940else
2941 ENABLE_LIBQUADMATH=yes
2942fi
2943
2944if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2945 noconfigdirs="$noconfigdirs target-libquadmath"
2946fi
2947
2948
2949# Check whether --enable-libquadmath-support was given.
2950if test "${enable_libquadmath_support+set}" = set; then :
2951 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2952else
2953 ENABLE_LIBQUADMATH_SUPPORT=yes
2954fi
2955
2956enable_libquadmath_support=
2957if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2958 enable_libquadmath_support=no
2959fi
2960
2961
5213506e
RW
2962# Check whether --enable-libada was given.
2963if test "${enable_libada+set}" = set; then :
2964 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
2965else
2966 ENABLE_LIBADA=yes
5213506e
RW
2967fi
2968
d9cdb878 2969if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2970 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2971fi
2972
5213506e
RW
2973# Check whether --enable-libssp was given.
2974if test "${enable_libssp+set}" = set; then :
2975 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
2976else
2977 ENABLE_LIBSSP=yes
5213506e
RW
2978fi
2979
ef0087a7 2980
671aa708
NN
2981# Save it here so that, even in case of --enable-libgcj, if the Java
2982# front-end isn't enabled, we still get libgcj disabled.
2983libgcj_saved=$libgcj
2984case $enable_libgcj in
2985yes)
2986 # If we reset it here, it won't get added to noconfigdirs in the
2987 # target-specific build rules, so it will be forcibly enabled
2988 # (unless the Java language itself isn't enabled).
2989 libgcj=
2990 ;;
2991no)
2992 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
2993 # Don't disable libffi, though, other languages use it.
2994 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
2995 # Clear libgcj_saved so that even if java is enabled libffi won't be
2996 # built.
2997 libgcj_saved=
671aa708
NN
2998 ;;
2999esac
ec8d6ddc 3000
6de9cd9a 3001
27079765
AH
3002# Disable libmudflap on some systems.
3003if test x$enable_libmudflap = x ; then
dfcada9a 3004 case "${target}" in
416ac4d4 3005 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3006 # Enable libmudflap by default in GNU and friends.
dfcada9a 3007 ;;
a3e8d8b4
LR
3008 *-*-freebsd*)
3009 # Enable libmudflap by default in FreeBSD.
3010 ;;
dfcada9a
MM
3011 *)
3012 # Disable it by default everywhere else.
3013 noconfigdirs="$noconfigdirs target-libmudflap"
3014 ;;
3015 esac
27079765 3016fi
6de9cd9a 3017
27079765
AH
3018# Disable libgomp on non POSIX hosted systems.
3019if test x$enable_libgomp = x ; then
953ff289
DN
3020 # Enable libgomp by default on hosted POSIX systems.
3021 case "${target}" in
416ac4d4 3022 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3023 ;;
8c6d158a 3024 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3025 ;;
6de66370 3026 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 3027 ;;
cac90078 3028 *-*-darwin* | *-*-aix*)
953ff289
DN
3029 ;;
3030 *)
3031 noconfigdirs="$noconfigdirs target-libgomp"
3032 ;;
3033 esac
27079765 3034fi
953ff289 3035
1e9e0e23
JM
3036# Disable libssp for some systems.
3037case "${target}" in
3038 avr-*-*)
3039 noconfigdirs="$noconfigdirs target-libssp"
3040 ;;
3041 powerpc-*-aix* | rs6000-*-aix*)
3042 noconfigdirs="$noconfigdirs target-libssp"
3043 ;;
3044 microblaze*)
3045 noconfigdirs="$noconfigdirs target-libssp"
3046 ;;
3047esac
3048
3049# Disable target libiberty for some systems.
3050case "${target}" in
3051 *-*-kaos*)
3052 # Remove unsupported stuff on all kaOS configurations.
3053 skipdirs="target-libiberty"
3054 ;;
3055 *-*-netbsd*)
3056 # Skip some stuff on all NetBSD configurations.
3057 noconfigdirs="$noconfigdirs target-libiberty"
3058 ;;
3059 *-*-netware*)
3060 noconfigdirs="$noconfigdirs target-libiberty"
3061 ;;
3062 *-*-rtems*)
3063 skipdirs="${skipdirs} target-libiberty"
3064 ;;
3065 *-*-tpf*)
3066 noconfigdirs="$noconfigdirs target-libiberty"
3067 ;;
3068 *-*-vxworks*)
3069 noconfigdirs="$noconfigdirs target-libiberty"
3070 ;;
3071 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3072 noconfigdirs="$noconfigdirs target-libiberty"
3073 ;;
3074 arm*-*-symbianelf*)
3075 noconfigdirs="$noconfigdirs target-libiberty"
3076 ;;
3077 avr-*-*)
3078 noconfigdirs="$noconfigdirs target-libiberty"
3079 ;;
3080 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3081 noconfigdirs="$noconfigdirs target-libiberty"
3082 ;;
3083 picochip-*-*)
3084 noconfigdirs="$noconfigdirs target-libiberty"
3085 ;;
3086 mips*-sde-elf*)
3087 skipdirs="$skipdirs target-libiberty"
3088 ;;
3089 ip2k-*-*)
3090 noconfigdirs="$noconfigdirs target-libiberty"
3091 ;;
3092esac
3093
3094# Disable libstdc++-v3 for some systems.
3095case "${target}" in
3096 *-*-vxworks*)
3097 # VxWorks uses the Dinkumware C++ library.
3098 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3099 ;;
3100 arm*-wince-pe*)
3101 # the C++ libraries don't build on top of CE's C libraries
3102 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3103 ;;
3104 avr-*-*)
3105 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3106 ;;
3107esac
3108
3109# Disable Fortran for some systems.
3110case "${target}" in
3111 mmix-*-*)
3112 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3113 unsupported_languages="$unsupported_languages fortran"
3114 ;;
3115esac
3116
c03353e2
RIL
3117# Default libgloss CPU subdirectory.
3118libgloss_dir="$target_cpu"
6de9cd9a 3119
671aa708
NN
3120case "${target}" in
3121 *-*-chorusos)
0036370f 3122 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3123 ;;
75eeae1a 3124 powerpc-*-darwin*)
e1514c3f 3125 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3126 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3127 ;;
354ebf88
RW
3128 i[3456789]86-*-darwin*)
3129 noconfigdirs="$noconfigdirs ld gprof"
3130 noconfigdirs="$noconfigdirs sim target-rda"
3131 ;;
3132 x86_64-*-darwin[912]*)
0db3a858
TG
3133 noconfigdirs="$noconfigdirs ld gas gprof"
3134 noconfigdirs="$noconfigdirs sim target-rda"
3135 ;;
42c1cd8a
AT
3136 *-*-darwin*)
3137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3138 noconfigdirs="$noconfigdirs sim target-rda"
3139 noconfigdirs="$noconfigdirs ${libgcj}"
3140 ;;
8c6d158a
JM
3141 *-*-dragonfly*)
3142 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3143 ;;
c3f84f61 3144 *-*-freebsd*)
6de9cd9a
DN
3145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3147 && test -f /usr/local/include/gmp.h; then
3148 with_gmp=/usr/local
3149 fi
3150
3151 # Skip some stuff that's unsupported on some FreeBSD configurations.
3152 case "${target}" in
3153 i*86-*-*) ;;
3154 alpha*-*-*) ;;
f3f623ae 3155 x86_64-*-*) ;;
6de9cd9a 3156 *)
cb253473 3157 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
3158 ;;
3159 esac
3160 ;;
ef4e7569
US
3161 *-*-kaos*)
3162 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3163 noconfigdirs="$noconfigdirs target-libgloss"
3164 ;;
671aa708
NN
3165 *-*-netbsd*)
3166 # Skip some stuff on all NetBSD configurations.
1e9e0e23 3167 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708
NN
3168
3169 # Skip some stuff that's unsupported on some NetBSD configurations.
3170 case "${target}" in
3171 i*86-*-netbsdelf*) ;;
0590b963 3172 arm*-*-netbsdelf*) ;;
671aa708 3173 *)
cb253473 3174 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3175 ;;
3176 esac
3177 ;;
61fec9ff 3178 *-*-netware*)
1e9e0e23 3179 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708
NN
3180 ;;
3181 *-*-rtems*)
cb253473 3182 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3183 ;;
a8ba31f2
EC
3184 # The tpf target doesn't support gdb yet.
3185 *-*-tpf*)
1e9e0e23 3186 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj} gdb tcl tk libgui itcl"
a8ba31f2 3187 ;;
5785c0ed 3188 *-*-uclinux*)
cb253473 3189 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 3190 ;;
671aa708 3191 *-*-vxworks*)
1e9e0e23 3192 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708
NN
3193 ;;
3194 alpha*-dec-osf*)
3195 # ld works, but does not support shared libraries.
1bcce263 3196 # newlib is not 64 bit ready.
671aa708 3197 # gas doesn't generate exception information.
1bcce263 3198 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
671aa708
NN
3199 ;;
3200 alpha*-*-*vms*)
8406cb62 3201 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708
NN
3202 ;;
3203 alpha*-*-linux*)
3204 # newlib is not 64 bit ready
3205 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3206 ;;
671aa708
NN
3207 alpha*-*-*)
3208 # newlib is not 64 bit ready
cb253473 3209 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3210 ;;
33952f6f 3211 am33_2.0-*-linux*)
cb253473 3212 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 3213 ;;
671aa708 3214 sh-*-linux*)
cb253473 3215 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 3216 ;;
671aa708 3217 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 3218 noconfigdirs="$noconfigdirs ${libgcj}"
b4f96efe 3219 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3220 noconfigdirs="$noconfigdirs target-newlib"
c03353e2 3221 libgloss_dir=wince
671aa708
NN
3222 ;;
3223 arc-*-*)
ebb9f8b0 3224 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3225 ;;
4569f85e 3226 arm-*-coff)
c03353e2 3227 libgloss_dir=arm
671aa708 3228 ;;
4569f85e 3229 arm-*-elf* | arm*-*-eabi* )
1bcce263 3230 noconfigdirs="$noconfigdirs target-libffi"
c03353e2 3231 libgloss_dir=arm
671aa708 3232 ;;
077fc835 3233 arm*-*-linux-gnueabi)
1c00b503
PB
3234 case ${with_newlib} in
3235 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3236 esac
c03353e2 3237 libgloss_dir=arm
077fc835 3238 ;;
972974fc 3239 arm*-*-symbianelf*)
1e9e0e23 3240 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3241 libgloss_dir=arm
972974fc 3242 ;;
671aa708 3243 arm-*-pe*)
cb253473 3244 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3245 ;;
671aa708 3246 arm-*-riscix*)
0036370f 3247 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708
NN
3248 ;;
3249 avr-*-*)
1e9e0e23 3250 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3251 ;;
6b65a26d 3252 bfin-*-*)
1c3c9f12 3253 unsupported_languages="$unsupported_languages java"
fb701687 3254 noconfigdirs="$noconfigdirs target-boehm-gc"
6b65a26d 3255 ;;
671aa708 3256 c4x-*-* | tic4x-*-*)
0036370f 3257 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3258 ;;
0036370f
JM
3259 tic54x-*-*)
3260 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3261 ;;
c993ae60
SR
3262 cr16-*-*)
3263 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3264 ;;
40d64b5a 3265 cris-*-* | crisv32-*-*)
4fab7234 3266 unsupported_languages="$unsupported_languages java"
40d64b5a 3267 case "${target}" in
c2e0d3a9 3268 *-*-linux*)
789ec619 3269 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
0036370f
JM
3270 *) # See PR46792 regarding target-libffi.
3271 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
40d64b5a 3272 esac
c03353e2 3273 libgloss_dir=cris
671aa708
NN
3274 ;;
3275 d10v-*-*)
0036370f 3276 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3277 ;;
3278 d30v-*-*)
0036370f 3279 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3280 ;;
3281 fr30-*-elf*)
cb253473 3282 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3283 ;;
3284 frv-*-*)
cb253473 3285 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3286 ;;
55f2d967
AG
3287 moxie-*-*)
3288 noconfigdirs="$noconfigdirs ${libgcj}"
3289 noconfigdirs="$noconfigdirs gprof"
3290 ;;
671aa708 3291 h8300*-*-*)
cb253473 3292 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3293 ;;
3294 h8500-*-*)
0036370f 3295 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3296 ;;
ee6a22df 3297 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3298 ;;
4569f85e 3299 hppa*64*-*-linux*)
671aa708
NN
3300 # In this case, it's because the hppa64-linux target is for
3301 # the kernel only at this point and has no libc, and thus no
3302 # headers, crt*.o, etc., all of which are needed by these.
3303 noconfigdirs="$noconfigdirs target-zlib"
3304 ;;
56f8587a 3305 hppa*-*-linux*)
3e732ba0 3306 ;;
671aa708 3307 hppa*-*-*elf* | \
671aa708
NN
3308 hppa*-*-lites* | \
3309 hppa*-*-openbsd* | \
3310 hppa*64*-*-*)
cb253473 3311 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3312 ;;
2a332582 3313 hppa*-hp-hpux11*)
1bcce263 3314 noconfigdirs="$noconfigdirs ld"
2a332582 3315 ;;
c03353e2
RIL
3316 hppa*-*-pro*)
3317 libgloss_dir=pa
3318 ;;
671aa708
NN
3319 hppa*-*-*)
3320 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3321 # build on HP-UX 10.20.
1bcce263 3322 noconfigdirs="$noconfigdirs ld ${libgcj}"
671aa708 3323 ;;
fb87ad5d 3324 i960-*-*)
0036370f 3325 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3326 ;;
671aa708
NN
3327 ia64*-*-elf*)
3328 # No gdb support yet.
1bcce263 3329 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3330 ;;
3331 ia64*-**-hpux*)
5a2931d1
JB
3332 # No ld support yet.
3333 noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
671aa708 3334 ;;
52535a64
DR
3335 ia64*-*-*vms*)
3336 # No gdb or ld support yet.
1bcce263 3337 noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
52535a64 3338 ;;
f2a0e225 3339 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 3340 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3341 libgloss_dir=i386
671aa708 3342 ;;
f2a0e225 3343 i[3456789]86-*-linux*)
671aa708
NN
3344 # This section makes it possible to build newlib natively on linux.
3345 # If we are using a cross compiler then don't configure newlib.
3346 if test x${is_cross_compiler} != xno ; then
3aa83176 3347 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
3348 fi
3349 noconfigdirs="$noconfigdirs target-libgloss"
3350 # If we are not using a cross compiler, do configure newlib.
3351 # Note however, that newlib will only be configured in this situation
3352 # if the --with-newlib option has been given, because otherwise
3353 # 'target-newlib' will appear in skipdirs.
3354 ;;
ef4c4300 3355 i[3456789]86-w64-mingw*)
1bcce263 3356 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
ef4c4300
KT
3357 ;;
3358 i[3456789]86-*-mingw*)
b91f0a41 3359 target_configdirs="$target_configdirs target-winsup"
1bcce263 3360 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
1c710c3c 3361 ;;
95af8923 3362 x86_64-*-mingw*)
1bcce263 3363 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
1c710c3c 3364 ;;
671aa708
NN
3365 *-*-cygwin*)
3366 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3367 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3368 # always build newlib if winsup directory is present.
b91f0a41 3369 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3370 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3371 elif test -d "$srcdir/newlib"; then
b91f0a41 3372 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3373 fi
1c710c3c 3374 ;;
56f8587a 3375 i[3456789]86-*-interix* )
ee6a22df 3376 ;;
f2a0e225 3377 i[3456789]86-*-pe)
ebb9f8b0 3378 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3379 ;;
f2a0e225 3380 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3381 # The linker does not yet know about weak symbols in COFF,
3382 # and is not configured to handle mixed ELF and COFF.
0036370f 3383 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3384 ;;
f2a0e225 3385 i[3456789]86-*-sco*)
0036370f 3386 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3387 ;;
f2a0e225 3388 i[3456789]86-*-solaris2*)
671aa708
NN
3389 noconfigdirs="$noconfigdirs target-libgloss"
3390 ;;
f2a0e225 3391 i[3456789]86-*-sysv4*)
0036370f 3392 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3393 ;;
f2a0e225 3394 i[3456789]86-*-beos*)
0036370f 3395 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3aa83176 3396 ;;
d1f8db0c
PB
3397 i[3456789]86-*-rdos*)
3398 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3399 ;;
fb87ad5d 3400 m32r-*-*)
cb253473 3401 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 3402 ;;
671aa708 3403 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
c03353e2 3404 libgloss_dir=m68hc11
671aa708
NN
3405 ;;
3406 m68k-*-elf*)
cb253473 3407 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3408 ;;
c03353e2
RIL
3409 m68*-*-* | fido-*-*)
3410 libgloss_dir=m68k
3411 ;;
671aa708 3412 mmix-*-*)
0036370f 3413 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb"
1e9e0e23 3414 unsupported_languages="$unsupported_languages java"
671aa708 3415 ;;
ab34901f 3416 mt-*-*)
79dd769c
AH
3417 noconfigdirs="$noconfigdirs sim"
3418 ;;
671aa708
NN
3419 powerpc-*-aix*)
3420 # copied from rs6000-*-* entry
1e9e0e23 3421 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib ${libgcj}"
671aa708 3422 ;;
4569f85e 3423 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3424 target_configdirs="$target_configdirs target-winsup"
0036370f 3425 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3426 # always build newlib.
3427 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3428 ;;
3429 # This is temporary until we can link against shared libraries
3430 powerpcle-*-solaris*)
0036370f 3431 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
c03353e2 3432 libgloss_dir=rs6000
671aa708
NN
3433 ;;
3434 powerpc-*-beos*)
0036370f 3435 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3436 ;;
671aa708 3437 powerpc-*-eabi)
cb253473 3438 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3439 libgloss_dir=rs6000
ee6a22df
L
3440 ;;
3441 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 3442 libgloss_dir=rs6000
671aa708 3443 ;;
671aa708 3444 rs6000-*-lynxos*)
cb253473 3445 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
3446 ;;
3447 rs6000-*-aix*)
1e9e0e23 3448 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib ${libgcj}"
671aa708
NN
3449 ;;
3450 rs6000-*-*)
cb253473 3451 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
3452 ;;
3453 m68k-apollo-*)
0036370f 3454 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3455 ;;
ca9fe997 3456 microblaze*)
1e9e0e23 3457 noconfigdirs="$noconfigdirs gprof ${libgcj}"
ca9fe997 3458 ;;
d9dced13 3459 mips*-sde-elf*)
d9dced13
RS
3460 noconfigdirs="$noconfigdirs ${libgcj}"
3461 if test x$with_newlib = xyes; then
3462 noconfigdirs="$noconfigdirs gprof"
3463 fi
3464 libgloss_dir=mips
3465 ;;
671aa708 3466 mips*-*-irix5*)
0036370f 3467 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3468 ;;
3469 mips*-*-irix6*)
671aa708
NN
3470 # Linking libjava exceeds command-line length limits on at least
3471 # IRIX 6.2, but not on IRIX 6.5.
3472 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3473 # <oldham@codesourcery.com>
cb253473 3474 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3475 ;;
671aa708 3476 mips*-*-bsd*)
0036370f 3477 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3478 ;;
671aa708
NN
3479 mips*-*-linux*)
3480 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3481 ;;
3482 mips*-*-*)
cb253473 3483 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 3484 libgloss_dir=mips
671aa708 3485 ;;
669f01d8 3486 sh-*-* | sh64-*-*)
ea2002ba
CB
3487 case "${target}" in
3488 sh*-*-elf)
3489 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3490 *)
3491 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3492 esac
671aa708 3493 ;;
c03353e2
RIL
3494 sparclet-*-aout* | sparc86x-*-*)
3495 libgloss_dir=sparc
3496 ;;
671aa708 3497 sparc-*-elf*)
cb253473 3498 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3499 ;;
3500 sparc64-*-elf*)
cb253473 3501 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3502 libgloss_dir=sparc
671aa708
NN
3503 ;;
3504 sparclite-*-*)
c03353e2 3505 libgloss_dir=sparc
671aa708
NN
3506 ;;
3507 sparc-*-sunos4*)
671aa708
NN
3508 if test x${is_cross_compiler} != xno ; then
3509 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3510 else
3511 use_gnu_ld=no
3512 fi
3513 ;;
3514 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3515 ;;
b42f0d7e
JM
3516 tic6x-*-*)
3517 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3518 ;;
671aa708 3519 v810-*-*)
0036370f 3520 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3521 ;;
3522 vax-*-*)
cb253473 3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3524 ;;
416ac4d4 3525 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
3526 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 ;;
3528 *-*-lynxos*)
cb253473 3529 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 3530 ;;
671aa708 3531 *-*-*)
cb253473 3532 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3533 ;;
3534esac
79c06341 3535
671aa708
NN
3536# If we aren't building newlib, then don't build libgloss, since libgloss
3537# depends upon some newlib header files.
3538case "${noconfigdirs}" in
3539 *target-libgloss*) ;;
3540 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3541esac
3542
671aa708 3543# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3544host_makefile_frag=/dev/null
3545if test -d ${srcdir}/config ; then
3546case "${host}" in
f2a0e225 3547 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3548 host_makefile_frag="config/mh-djgpp"
3549 ;;
3550 *-cygwin*)
2a79c47f 3551
5213506e
RW
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3553$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3554echo a >cygwin-cat-check
e25a8c82 3555if test `cat cygwin-cat-check` = a ; then
2a79c47f 3556 rm cygwin-cat-check
5213506e
RW
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3558$as_echo "yes" >&6; }
2a79c47f
NC
3559else
3560 rm cygwin-cat-check
5213506e
RW
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562$as_echo "no" >&6; }
3563 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3564 Please either mount the build directory in binary mode or run the following
3565 commands before running any configure script:
3566set -o igncr
3567export SHELLOPTS
5213506e 3568 " "$LINENO" 5
2a79c47f
NC
3569fi
3570
671aa708
NN
3571 host_makefile_frag="config/mh-cygwin"
3572 ;;
c53a18d3 3573 *-mingw*)
1f5a6b84 3574 host_makefile_frag="config/mh-mingw"
95af8923 3575 ;;
671aa708
NN
3576 *-interix*)
3577 host_makefile_frag="config/mh-interix"
3578 ;;
efd41714 3579 hppa*-hp-hpux10*)
efd41714 3580 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3581 ;;
111eeb6e 3582 hppa*-hp-hpux*)
efd41714
PB
3583 host_makefile_frag="config/mh-pa"
3584 ;;
3585 hppa*-*)
3586 host_makefile_frag="config/mh-pa"
3587 ;;
d8ed14ce
IS
3588 *-*-darwin*)
3589 host_makefile_frag="config/mh-darwin"
be8fff81 3590 ;;
d19bca38
PB
3591 powerpc-*-aix*)
3592 host_makefile_frag="config/mh-ppc-aix"
3593 ;;
3594 rs6000-*-aix*)
3595 host_makefile_frag="config/mh-ppc-aix"
3596 ;;
671aa708
NN
3597esac
3598fi
3599
55ffb5ed 3600if test "${build}" != "${host}" ; then
0999159b
PB
3601 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3602 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3603 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3604 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3605 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3606 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3607 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3608 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3609 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3610 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3611 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3612 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3613 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3614else
3615 AR_FOR_BUILD="\$(AR)"
3616 AS_FOR_BUILD="\$(AS)"
fb0103e5 3617 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3618 CXX_FOR_BUILD="\$(CXX)"
3619 GCJ_FOR_BUILD="\$(GCJ)"
3620 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3621 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3622 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3623 LD_FOR_BUILD="\$(LD)"
3624 NM_FOR_BUILD="\$(NM)"
3625 RANLIB_FOR_BUILD="\$(RANLIB)"
3626 WINDRES_FOR_BUILD="\$(WINDRES)"
3627 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3628fi
3629
3630ac_ext=c
1c710c3c
DJ
3631ac_cpp='$CPP $CPPFLAGS'
3632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635if test -n "$ac_tool_prefix"; then
3636 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3637set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639$as_echo_n "checking for $ac_word... " >&6; }
3640if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3642else
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC="$CC" # Let the user override the test.
3645else
3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647for as_dir in $PATH
3648do
3649 IFS=$as_save_IFS
3650 test -z "$as_dir" && as_dir=.
5213506e
RW
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3653 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3655 break 2
3656 fi
3657done
5213506e
RW
3658 done
3659IFS=$as_save_IFS
1c710c3c
DJ
3660
3661fi
3662fi
3663CC=$ac_cv_prog_CC
3664if test -n "$CC"; then
5213506e
RW
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3666$as_echo "$CC" >&6; }
1c710c3c 3667else
5213506e
RW
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669$as_echo "no" >&6; }
1c710c3c
DJ
3670fi
3671
5213506e 3672
1c710c3c
DJ
3673fi
3674if test -z "$ac_cv_prog_CC"; then
3675 ac_ct_CC=$CC
fb0103e5
RG
3676 # Extract the first word of "gcc", so it can be a program name with args.
3677set dummy gcc; ac_word=$2
5213506e
RW
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679$as_echo_n "checking for $ac_word... " >&6; }
3680if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3682else
3683 if test -n "$ac_ct_CC"; then
3684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3685else
3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687for as_dir in $PATH
3688do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
5213506e
RW
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3693 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3695 break 2
3696 fi
3697done
5213506e
RW
3698 done
3699IFS=$as_save_IFS
1c710c3c
DJ
3700
3701fi
3702fi
3703ac_ct_CC=$ac_cv_prog_ac_ct_CC
3704if test -n "$ac_ct_CC"; then
5213506e
RW
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3706$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3707else
5213506e
RW
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709$as_echo "no" >&6; }
1c710c3c
DJ
3710fi
3711
5213506e
RW
3712 if test "x$ac_ct_CC" = x; then
3713 CC=""
3714 else
3715 case $cross_compiling:$ac_tool_warned in
3716yes:)
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3719ac_tool_warned=yes ;;
3720esac
3721 CC=$ac_ct_CC
3722 fi
1c710c3c
DJ
3723else
3724 CC="$ac_cv_prog_CC"
3725fi
3726
3727if test -z "$CC"; then
5213506e
RW
3728 if test -n "$ac_tool_prefix"; then
3729 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3730set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732$as_echo_n "checking for $ac_word... " >&6; }
3733if test "${ac_cv_prog_CC+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3735else
3736 if test -n "$CC"; then
3737 ac_cv_prog_CC="$CC" # Let the user override the test.
3738else
1c710c3c
DJ
3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740for as_dir in $PATH
3741do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
5213506e
RW
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3746 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3748 break 2
3749 fi
3750done
5213506e
RW
3751 done
3752IFS=$as_save_IFS
1c710c3c 3753
0b0dc272 3754fi
0b0dc272 3755fi
1c710c3c 3756CC=$ac_cv_prog_CC
af71363e 3757if test -n "$CC"; then
5213506e
RW
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3759$as_echo "$CC" >&6; }
2aeb72e9 3760else
5213506e
RW
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762$as_echo "no" >&6; }
2aeb72e9
DD
3763fi
3764
2aeb72e9 3765
5213506e 3766 fi
1c710c3c 3767fi
55ffb5ed
NN
3768if test -z "$CC"; then
3769 # Extract the first word of "cc", so it can be a program name with args.
3770set dummy cc; ac_word=$2
5213506e
RW
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772$as_echo_n "checking for $ac_word... " >&6; }
3773if test "${ac_cv_prog_CC+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3775else
3776 if test -n "$CC"; then
3777 ac_cv_prog_CC="$CC" # Let the user override the test.
3778else
0b0dc272 3779 ac_prog_rejected=no
1c710c3c
DJ
3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781for as_dir in $PATH
3782do
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
5213506e
RW
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3788 ac_prog_rejected=yes
3789 continue
3790 fi
3791 ac_cv_prog_CC="cc"
5213506e 3792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3793 break 2
3794 fi
3795done
5213506e
RW
3796 done
3797IFS=$as_save_IFS
1c710c3c 3798
55ffb5ed
NN
3799if test $ac_prog_rejected = yes; then
3800 # We found a bogon in the path, so make sure we never use it.
3801 set dummy $ac_cv_prog_CC
3802 shift
1c710c3c 3803 if test $# != 0; then
55ffb5ed
NN
3804 # We chose a different compiler from the bogus one.
3805 # However, it has the same basename, so the bogon will be chosen
3806 # first if we set CC to just the basename; use the full file name.
3807 shift
1c710c3c 3808 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3809 fi
3810fi
3811fi
3812fi
1c710c3c 3813CC=$ac_cv_prog_CC
55ffb5ed 3814if test -n "$CC"; then
5213506e
RW
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3816$as_echo "$CC" >&6; }
55ffb5ed 3817else
5213506e
RW
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819$as_echo "no" >&6; }
55ffb5ed
NN
3820fi
3821
5213506e 3822
1c710c3c
DJ
3823fi
3824if test -z "$CC"; then
3825 if test -n "$ac_tool_prefix"; then
5213506e 3826 for ac_prog in cl.exe
1c710c3c
DJ
3827 do
3828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831$as_echo_n "checking for $ac_word... " >&6; }
3832if test "${ac_cv_prog_CC+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3834else
3835 if test -n "$CC"; then
3836 ac_cv_prog_CC="$CC" # Let the user override the test.
3837else
1c710c3c
DJ
3838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839for as_dir in $PATH
3840do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
5213506e
RW
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3847 break 2
3848 fi
3849done
5213506e
RW
3850 done
3851IFS=$as_save_IFS
1c710c3c 3852
55ffb5ed
NN
3853fi
3854fi
1c710c3c 3855CC=$ac_cv_prog_CC
55ffb5ed 3856if test -n "$CC"; then
5213506e
RW
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3858$as_echo "$CC" >&6; }
a4b9e93e 3859else
5213506e
RW
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861$as_echo "no" >&6; }
fb0103e5 3862fi
af71363e 3863
5213506e 3864
1c710c3c
DJ
3865 test -n "$CC" && break
3866 done
af71363e 3867fi
1c710c3c
DJ
3868if test -z "$CC"; then
3869 ac_ct_CC=$CC
5213506e 3870 for ac_prog in cl.exe
1c710c3c
DJ
3871do
3872 # Extract the first word of "$ac_prog", so it can be a program name with args.
3873set dummy $ac_prog; ac_word=$2
5213506e
RW
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875$as_echo_n "checking for $ac_word... " >&6; }
3876if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
0b0dc272 3878else
1c710c3c
DJ
3879 if test -n "$ac_ct_CC"; then
3880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3881else
1c710c3c
DJ
3882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH
3884do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
5213506e
RW
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3889 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3891 break 2
3892 fi
3893done
5213506e
RW
3894 done
3895IFS=$as_save_IFS
1c710c3c 3896
af71363e
AS
3897fi
3898fi
1c710c3c
DJ
3899ac_ct_CC=$ac_cv_prog_ac_ct_CC
3900if test -n "$ac_ct_CC"; then
5213506e
RW
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3902$as_echo "$ac_ct_CC" >&6; }
fb0103e5 3903else
5213506e
RW
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905$as_echo "no" >&6; }
af71363e 3906fi
0b0dc272 3907
5213506e 3908
1c710c3c
DJ
3909 test -n "$ac_ct_CC" && break
3910done
3911
5213506e
RW
3912 if test "x$ac_ct_CC" = x; then
3913 CC=""
3914 else
3915 case $cross_compiling:$ac_tool_warned in
3916yes:)
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3919ac_tool_warned=yes ;;
3920esac
3921 CC=$ac_ct_CC
3922 fi
1c710c3c
DJ
3923fi
3924
3925fi
3926
3927
5213506e
RW
3928test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930as_fn_error "no acceptable C compiler found in \$PATH
3931See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
3932
3933# Provide some information about the compiler.
5213506e
RW
3934$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3935set X $ac_compile
3936ac_compiler=$2
3937for ac_option in --version -v -V -qversion; do
3938 { { ac_try="$ac_compiler $ac_option >&5"
3939case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942esac
3943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944$as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 3946 ac_status=$?
5213506e
RW
3947 if test -s conftest.err; then
3948 sed '10a\
3949... rest of stderr output deleted ...
3950 10q' conftest.err >conftest.er1
3951 cat conftest.er1 >&5
3952 rm -f conftest.er1 conftest.err
3953 fi
3954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955 test $ac_status = 0; }
3956done
1c710c3c 3957
5213506e 3958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
3959/* end confdefs.h. */
3960
3961int
3962main ()
3963{
3964
3965 ;
3966 return 0;
3967}
3968_ACEOF
3969ac_clean_files_save=$ac_clean_files
5213506e 3970ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
3971# Try to create an executable without -o first, disregard a.out.
3972# It will help us diagnose broken compilers, and finding out an intuition
3973# of exeext.
5213506e
RW
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3975$as_echo_n "checking for C compiler default output file name... " >&6; }
3976ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3977
3978# The possible output files:
3979ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3980
3981ac_rmfiles=
3982for ac_file in $ac_files
3983do
3984 case $ac_file in
3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3986 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3987 esac
3988done
3989rm -f $ac_rmfiles
3990
3991if { { ac_try="$ac_link_default"
3992case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995esac
3996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997$as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_link_default") 2>&5
1c710c3c 3999 ac_status=$?
5213506e
RW
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }; then :
4002 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4003# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4004# in a Makefile. We should not override ac_cv_exeext if it was cached,
4005# so that the user can short-circuit this test for compilers unknown to
4006# Autoconf.
4007for ac_file in $ac_files ''
1c710c3c
DJ
4008do
4009 test -f "$ac_file" || continue
4010 case $ac_file in
5213506e 4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4012 ;;
4013 [ab].out )
4014 # We found the default executable, but exeext='' is most
4015 # certainly right.
4016 break;;
4017 *.* )
5213506e
RW
4018 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4019 then :; else
4020 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4021 fi
4022 # We set ac_cv_exeext here because the later test for it is not
4023 # safe: cross compilers may not add the suffix if given an `-o'
4024 # argument, so we may need to know it at that point already.
4025 # Even if this section looks crufty: it has the advantage of
4026 # actually working.
1c710c3c
DJ
4027 break;;
4028 * )
4029 break;;
4030 esac
4031done
5213506e
RW
4032test "$ac_cv_exeext" = no && ac_cv_exeext=
4033
1c710c3c 4034else
5213506e
RW
4035 ac_file=''
4036fi
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4038$as_echo "$ac_file" >&6; }
4039if test -z "$ac_file"; then :
4040 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
5213506e
RW
4043{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4045{ as_fn_set_status 77
4046as_fn_error "C compiler cannot create executables
4047See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4048fi
1c710c3c 4049ac_exeext=$ac_cv_exeext
1c710c3c 4050
5213506e 4051# Check that the compiler produces executables we can run. If not, either
1c710c3c 4052# the compiler is broken, or we cross compile.
5213506e
RW
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4054$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4055# If not cross compiling, check that we can run a simple program.
4056if test "$cross_compiling" != yes; then
4057 if { ac_try='./$ac_file'
5213506e
RW
4058 { { case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061esac
4062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063$as_echo "$ac_try_echo"; } >&5
4064 (eval "$ac_try") 2>&5
1c710c3c 4065 ac_status=$?
5213506e
RW
4066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }; }; then
1c710c3c
DJ
4068 cross_compiling=no
4069 else
4070 if test "$cross_compiling" = maybe; then
4071 cross_compiling=yes
4072 else
5213506e
RW
4073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075as_fn_error "cannot run C compiled programs.
1c710c3c 4076If you meant to cross compile, use \`--host'.
5213506e 4077See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4078 fi
4079 fi
4080fi
5213506e
RW
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4082$as_echo "yes" >&6; }
1c710c3c 4083
5213506e 4084rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4085ac_clean_files=$ac_clean_files_save
5213506e 4086# Check that the compiler produces executables we can run. If not, either
1c710c3c 4087# the compiler is broken, or we cross compile.
5213506e
RW
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4089$as_echo_n "checking whether we are cross compiling... " >&6; }
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4091$as_echo "$cross_compiling" >&6; }
4092
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4094$as_echo_n "checking for suffix of executables... " >&6; }
4095if { { ac_try="$ac_link"
4096case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101$as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_link") 2>&5
1c710c3c 4103 ac_status=$?
5213506e
RW
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
1c710c3c
DJ
4106 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4107# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4108# work properly (i.e., refer to `conftest.exe'), while it won't with
4109# `rm'.
4110for ac_file in conftest.exe conftest conftest.*; do
4111 test -f "$ac_file" || continue
4112 case $ac_file in
5213506e 4113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4115 break;;
4116 * ) break;;
4117 esac
4118done
af71363e 4119else
5213506e
RW
4120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4122as_fn_error "cannot compute suffix of executables: cannot compile and link
4123See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4124fi
1c710c3c 4125rm -f conftest$ac_cv_exeext
5213506e
RW
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4127$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4128
4129rm -f conftest.$ac_ext
4130EXEEXT=$ac_cv_exeext
4131ac_exeext=$EXEEXT
5213506e
RW
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4133$as_echo_n "checking for suffix of object files... " >&6; }
4134if test "${ac_cv_objext+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
1c710c3c 4136else
5213506e 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4138/* end confdefs.h. */
4139
4140int
4141main ()
4142{
4143
4144 ;
4145 return 0;
4146}
4147_ACEOF
4148rm -f conftest.o conftest.obj
5213506e
RW
4149if { { ac_try="$ac_compile"
4150case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153esac
4154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4155$as_echo "$ac_try_echo"; } >&5
4156 (eval "$ac_compile") 2>&5
1c710c3c 4157 ac_status=$?
5213506e
RW
4158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4159 test $ac_status = 0; }; then :
4160 for ac_file in conftest.o conftest.obj conftest.*; do
4161 test -f "$ac_file" || continue;
1c710c3c 4162 case $ac_file in
5213506e 4163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4164 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4165 break;;
4166 esac
4167done
4168else
5213506e 4169 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4170sed 's/^/| /' conftest.$ac_ext >&5
4171
5213506e
RW
4172{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4174as_fn_error "cannot compute suffix of object files: cannot compile
4175See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4176fi
1c710c3c
DJ
4177rm -f conftest.$ac_cv_objext conftest.$ac_ext
4178fi
5213506e
RW
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4180$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4181OBJEXT=$ac_cv_objext
4182ac_objext=$OBJEXT
5213506e
RW
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4184$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4185if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
1c710c3c 4187else
5213506e 4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4189/* end confdefs.h. */
4190
4191int
4192main ()
4193{
4194#ifndef __GNUC__
4195 choke me
4196#endif
4197
4198 ;
4199 return 0;
4200}
4201_ACEOF
5213506e 4202if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4203 ac_compiler_gnu=yes
4204else
5213506e 4205 ac_compiler_gnu=no
1c710c3c 4206fi
5213506e 4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4208ac_cv_c_compiler_gnu=$ac_compiler_gnu
4209
4210fi
5213506e
RW
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4212$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4213if test $ac_compiler_gnu = yes; then
4214 GCC=yes
4215else
4216 GCC=
4217fi
1c710c3c
DJ
4218ac_test_CFLAGS=${CFLAGS+set}
4219ac_save_CFLAGS=$CFLAGS
5213506e
RW
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4221$as_echo_n "checking whether $CC accepts -g... " >&6; }
4222if test "${ac_cv_prog_cc_g+set}" = set; then :
4223 $as_echo_n "(cached) " >&6
4224else
4225 ac_save_c_werror_flag=$ac_c_werror_flag
4226 ac_c_werror_flag=yes
4227 ac_cv_prog_cc_g=no
4228 CFLAGS="-g"
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4230/* end confdefs.h. */
4231
4232int
4233main ()
4234{
4235
4236 ;
4237 return 0;
4238}
4239_ACEOF
5213506e 4240if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4241 ac_cv_prog_cc_g=yes
4242else
5213506e
RW
4243 CFLAGS=""
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245/* end confdefs.h. */
4246
4247int
4248main ()
4249{
4250
4251 ;
4252 return 0;
4253}
4254_ACEOF
4255if ac_fn_c_try_compile "$LINENO"; then :
4256
4257else
4258 ac_c_werror_flag=$ac_save_c_werror_flag
4259 CFLAGS="-g"
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261/* end confdefs.h. */
af71363e 4262
5213506e
RW
4263int
4264main ()
4265{
4266
4267 ;
4268 return 0;
4269}
4270_ACEOF
4271if ac_fn_c_try_compile "$LINENO"; then :
4272 ac_cv_prog_cc_g=yes
4273fi
4274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4275fi
5213506e 4276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4277fi
5213506e
RW
4278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 ac_c_werror_flag=$ac_save_c_werror_flag
4280fi
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4282$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4283if test "$ac_test_CFLAGS" = set; then
1c710c3c 4284 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4285elif test $ac_cv_prog_cc_g = yes; then
4286 if test "$GCC" = yes; then
4287 CFLAGS="-g -O2"
4288 else
4289 CFLAGS="-g"
4290 fi
4291else
4292 if test "$GCC" = yes; then
4293 CFLAGS="-O2"
4294 else
4295 CFLAGS=
4296 fi
4297fi
5213506e
RW
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4299$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4300if test "${ac_cv_prog_cc_c89+set}" = set; then :
4301 $as_echo_n "(cached) " >&6
1c710c3c 4302else
5213506e 4303 ac_cv_prog_cc_c89=no
1c710c3c 4304ac_save_CC=$CC
5213506e 4305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4306/* end confdefs.h. */
4307#include <stdarg.h>
4308#include <stdio.h>
4309#include <sys/types.h>
4310#include <sys/stat.h>
4311/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4312struct buf { int x; };
4313FILE * (*rcsopen) (struct buf *, struct stat *, int);
4314static char *e (p, i)
4315 char **p;
4316 int i;
4317{
4318 return p[i];
4319}
4320static char *f (char * (*g) (char **, int), char **p, ...)
4321{
4322 char *s;
4323 va_list v;
4324 va_start (v,p);
4325 s = g (p, va_arg (v,int));
4326 va_end (v);
4327 return s;
4328}
4329
4330/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4331 function prototypes and stuff, but not '\xHH' hex character constants.
4332 These don't provoke an error unfortunately, instead are silently treated
5213506e 4333 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4335 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4336 that's true only with -std. */
1c710c3c
DJ
4337int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4338
5213506e
RW
4339/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4340 inside strings and character constants. */
4341#define FOO(x) 'x'
4342int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4343
1c710c3c
DJ
4344int test (int i, double x);
4345struct s1 {int (*f) (int a);};
4346struct s2 {int (*f) (double a);};
4347int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4348int argc;
4349char **argv;
4350int
4351main ()
4352{
4353return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4354 ;
4355 return 0;
4356}
4357_ACEOF
5213506e
RW
4358for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4359 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4360do
4361 CC="$ac_save_CC $ac_arg"
5213506e
RW
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4364fi
5213506e
RW
4365rm -f core conftest.err conftest.$ac_objext
4366 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4367done
5213506e 4368rm -f conftest.$ac_ext
1c710c3c
DJ
4369CC=$ac_save_CC
4370
4371fi
5213506e
RW
4372# AC_CACHE_VAL
4373case "x$ac_cv_prog_cc_c89" in
4374 x)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4376$as_echo "none needed" >&6; } ;;
4377 xno)
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4379$as_echo "unsupported" >&6; } ;;
1c710c3c 4380 *)
5213506e
RW
4381 CC="$CC $ac_cv_prog_cc_c89"
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4383$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4384esac
5213506e 4385if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4386
2aeb72e9
DD
4387fi
4388
2aeb72e9
DD
4389ac_ext=c
4390ac_cpp='$CPP $CPPFLAGS'
4391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394
5213506e 4395ac_ext=cpp
2aeb72e9
DD
4396ac_cpp='$CXXCPP $CPPFLAGS'
4397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4400if test -z "$CXX"; then
4401 if test -n "$CCC"; then
4402 CXX=$CCC
4403 else
4404 if test -n "$ac_tool_prefix"; then
4405 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4406 do
4407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4408set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410$as_echo_n "checking for $ac_word... " >&6; }
4411if test "${ac_cv_prog_CXX+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4413else
4414 if test -n "$CXX"; then
4415 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4416else
4417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH
4419do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
5213506e
RW
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4424 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4426 break 2
4427 fi
4428done
5213506e
RW
4429 done
4430IFS=$as_save_IFS
55ffb5ed 4431
c3a86da9
DJ
4432fi
4433fi
4434CXX=$ac_cv_prog_CXX
4435if test -n "$CXX"; then
5213506e
RW
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4437$as_echo "$CXX" >&6; }
c3a86da9 4438else
5213506e
RW
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440$as_echo "no" >&6; }
c3a86da9
DJ
4441fi
4442
5213506e 4443
c3a86da9
DJ
4444 test -n "$CXX" && break
4445 done
4446fi
4447if test -z "$CXX"; then
4448 ac_ct_CXX=$CXX
5213506e 4449 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4450do
4451 # Extract the first word of "$ac_prog", so it can be a program name with args.
4452set dummy $ac_prog; ac_word=$2
5213506e
RW
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454$as_echo_n "checking for $ac_word... " >&6; }
4455if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4457else
4458 if test -n "$ac_ct_CXX"; then
4459 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
5213506e
RW
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4468 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4470 break 2
4471 fi
4472done
5213506e
RW
4473 done
4474IFS=$as_save_IFS
c3a86da9
DJ
4475
4476fi
4477fi
4478ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4479if test -n "$ac_ct_CXX"; then
5213506e
RW
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4481$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4482else
5213506e
RW
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
c3a86da9
DJ
4485fi
4486
5213506e 4487
c3a86da9
DJ
4488 test -n "$ac_ct_CXX" && break
4489done
c3a86da9 4490
5213506e
RW
4491 if test "x$ac_ct_CXX" = x; then
4492 CXX="g++"
4493 else
4494 case $cross_compiling:$ac_tool_warned in
4495yes:)
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4498ac_tool_warned=yes ;;
4499esac
4500 CXX=$ac_ct_CXX
4501 fi
c3a86da9
DJ
4502fi
4503
5213506e
RW
4504 fi
4505fi
c3a86da9 4506# Provide some information about the compiler.
5213506e
RW
4507$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4508set X $ac_compile
4509ac_compiler=$2
4510for ac_option in --version -v -V -qversion; do
4511 { { ac_try="$ac_compiler $ac_option >&5"
4512case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515esac
4516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517$as_echo "$ac_try_echo"; } >&5
4518 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4519 ac_status=$?
5213506e
RW
4520 if test -s conftest.err; then
4521 sed '10a\
4522... rest of stderr output deleted ...
4523 10q' conftest.err >conftest.er1
4524 cat conftest.er1 >&5
4525 rm -f conftest.er1 conftest.err
4526 fi
4527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528 test $ac_status = 0; }
4529done
c3a86da9 4530
5213506e
RW
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4532$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4533if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
c3a86da9 4535else
5213506e 4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4537/* end confdefs.h. */
4538
4539int
4540main ()
4541{
4542#ifndef __GNUC__
4543 choke me
4544#endif
4545
4546 ;
4547 return 0;
4548}
4549_ACEOF
5213506e 4550if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4551 ac_compiler_gnu=yes
4552else
5213506e 4553 ac_compiler_gnu=no
c3a86da9 4554fi
5213506e 4555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4556ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4557
4558fi
5213506e
RW
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4560$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4561if test $ac_compiler_gnu = yes; then
4562 GXX=yes
4563else
4564 GXX=
4565fi
c3a86da9
DJ
4566ac_test_CXXFLAGS=${CXXFLAGS+set}
4567ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4569$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4570if test "${ac_cv_prog_cxx_g+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572else
4573 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4574 ac_cxx_werror_flag=yes
4575 ac_cv_prog_cxx_g=no
4576 CXXFLAGS="-g"
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4578/* end confdefs.h. */
4579
4580int
4581main ()
4582{
4583
4584 ;
4585 return 0;
4586}
4587_ACEOF
5213506e 4588if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4589 ac_cv_prog_cxx_g=yes
4590else
5213506e
RW
4591 CXXFLAGS=""
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4593/* end confdefs.h. */
5213506e 4594
c3a86da9
DJ
4595int
4596main ()
4597{
5213506e 4598
c3a86da9
DJ
4599 ;
4600 return 0;
4601}
4602_ACEOF
5213506e 4603if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4604
5213506e
RW
4605else
4606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4607 CXXFLAGS="-g"
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4609/* end confdefs.h. */
5213506e 4610
c3a86da9
DJ
4611int
4612main ()
4613{
5213506e 4614
c3a86da9
DJ
4615 ;
4616 return 0;
4617}
4618_ACEOF
5213506e
RW
4619if ac_fn_cxx_try_compile "$LINENO"; then :
4620 ac_cv_prog_cxx_g=yes
11a67599 4621fi
5213506e
RW
4622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623fi
4624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625fi
4626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4628fi
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4630$as_echo "$ac_cv_prog_cxx_g" >&6; }
4631if test "$ac_test_CXXFLAGS" = set; then
4632 CXXFLAGS=$ac_save_CXXFLAGS
4633elif test $ac_cv_prog_cxx_g = yes; then
4634 if test "$GXX" = yes; then
4635 CXXFLAGS="-g -O2"
4636 else
4637 CXXFLAGS="-g"
4638 fi
4639else
4640 if test "$GXX" = yes; then
4641 CXXFLAGS="-O2"
4642 else
4643 CXXFLAGS=
4644 fi
c3a86da9 4645fi
c3a86da9
DJ
4646ac_ext=c
4647ac_cpp='$CPP $CPPFLAGS'
4648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651
4652
4653# We must set the default linker to the linker used by gcc for the correct
4654# operation of libtool. If LD is not defined and we are using gcc, try to
4655# set the LD default to the ld used by gcc.
4656if test -z "$LD"; then
4657 if test "$GCC" = yes; then
4658 case $build in
4659 *-*-mingw*)
4660 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4661 *)
4662 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4663 esac
4664 case $gcc_prog_ld in
4665 # Accept absolute paths.
4666 [\\/]* | [A-Za-z]:[\\/]*)
4667 LD="$gcc_prog_ld" ;;
4668 esac
4669 fi
23f6b2f9
PB
4670fi
4671
23f6b2f9
PB
4672
4673
55ffb5ed 4674
1c710c3c
DJ
4675if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4677set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679$as_echo_n "checking for $ac_word... " >&6; }
4680if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4682else
4683 if test -n "$GNATBIND"; then
4684 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4685else
1c710c3c
DJ
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
5213506e
RW
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4693 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4695 break 2
4696 fi
4697done
5213506e
RW
4698 done
4699IFS=$as_save_IFS
1c710c3c 4700
55ffb5ed
NN
4701fi
4702fi
1c710c3c 4703GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4704if test -n "$GNATBIND"; then
5213506e
RW
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4706$as_echo "$GNATBIND" >&6; }
55ffb5ed 4707else
5213506e
RW
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709$as_echo "no" >&6; }
55ffb5ed
NN
4710fi
4711
5213506e 4712
1c710c3c 4713fi
55ffb5ed 4714if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4715 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4716 # Extract the first word of "gnatbind", so it can be a program name with args.
4717set dummy gnatbind; ac_word=$2
5213506e
RW
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719$as_echo_n "checking for $ac_word... " >&6; }
4720if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
55ffb5ed 4722else
1c710c3c
DJ
4723 if test -n "$ac_ct_GNATBIND"; then
4724 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4725else
1c710c3c
DJ
4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
5213506e
RW
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4733 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4735 break 2
4736 fi
4737done
5213506e
RW
4738 done
4739IFS=$as_save_IFS
1c710c3c 4740
55ffb5ed
NN
4741fi
4742fi
1c710c3c
DJ
4743ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4744if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4746$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4747else
5213506e
RW
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749$as_echo "no" >&6; }
55ffb5ed
NN
4750fi
4751
5213506e
RW
4752 if test "x$ac_ct_GNATBIND" = x; then
4753 GNATBIND="no"
4754 else
4755 case $cross_compiling:$ac_tool_warned in
4756yes:)
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759ac_tool_warned=yes ;;
4760esac
4761 GNATBIND=$ac_ct_GNATBIND
4762 fi
55ffb5ed 4763else
1c710c3c 4764 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4765fi
4766
1c710c3c
DJ
4767if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4769set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771$as_echo_n "checking for $ac_word... " >&6; }
4772if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
5305be7e
RG
4774else
4775 if test -n "$GNATMAKE"; then
4776 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4777else
1c710c3c
DJ
4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
5213506e
RW
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4785 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4787 break 2
4788 fi
4789done
5213506e
RW
4790 done
4791IFS=$as_save_IFS
1c710c3c 4792
5305be7e
RG
4793fi
4794fi
1c710c3c 4795GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4796if test -n "$GNATMAKE"; then
5213506e
RW
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4798$as_echo "$GNATMAKE" >&6; }
5305be7e 4799else
5213506e
RW
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801$as_echo "no" >&6; }
5305be7e
RG
4802fi
4803
5213506e 4804
1c710c3c 4805fi
5305be7e 4806if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4807 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4808 # Extract the first word of "gnatmake", so it can be a program name with args.
4809set dummy gnatmake; ac_word=$2
5213506e
RW
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811$as_echo_n "checking for $ac_word... " >&6; }
4812if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
5305be7e 4814else
1c710c3c
DJ
4815 if test -n "$ac_ct_GNATMAKE"; then
4816 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4817else
1c710c3c
DJ
4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
5213506e
RW
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4825 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4827 break 2
4828 fi
4829done
5213506e
RW
4830 done
4831IFS=$as_save_IFS
1c710c3c 4832
5305be7e
RG
4833fi
4834fi
1c710c3c
DJ
4835ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4836if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4838$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 4839else
5213506e
RW
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841$as_echo "no" >&6; }
5305be7e
RG
4842fi
4843
5213506e
RW
4844 if test "x$ac_ct_GNATMAKE" = x; then
4845 GNATMAKE="no"
4846 else
4847 case $cross_compiling:$ac_tool_warned in
4848yes:)
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4851ac_tool_warned=yes ;;
4852esac
4853 GNATMAKE=$ac_ct_GNATMAKE
4854 fi
5305be7e 4855else
1c710c3c 4856 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4857fi
4858
5213506e
RW
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4860$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4861if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4863else
4864 cat >conftest.adb <<EOF
4865procedure conftest is begin null; end conftest;
4866EOF
4867acx_cv_cc_gcc_supports_ada=no
4868# There is a bug in old released versions of GCC which causes the
4869# driver to exit successfully when the appropriate language module
4870# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4871# Therefore we must check for the error message as well as an
4872# unsuccessful exit.
1db673ca
RO
4873# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4874# given a .adb file, but produce no object file. So we must check
4875# if an object file was really produced to guard against this.
55ffb5ed 4876errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4877if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4878 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4879fi
4880rm -f conftest.*
4881fi
5213506e
RW
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4883$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 4884
5305be7e 4885if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4886 have_gnat=yes
4887else
4888 have_gnat=no
4889fi
4890
5213506e
RW
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4892$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4893if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
a76494aa
PB
4895else
4896 echo abfoo >t1
4897 echo cdfoo >t2
4898 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4899 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4900 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4901 :
4902 else
4903 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4904 fi
4905 fi
a76494aa
PB
4906 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4907 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4908 :
a76494aa
PB
4909 else
4910 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4911 fi
4912 fi
4913 rm t1 t2
4914
4915fi
5213506e
RW
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4917$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
4918do_compare="$gcc_cv_prog_cmp_skip"
4919
4920
55ffb5ed 4921
00020c16 4922# See if we are building gcc with C++.
5213506e
RW
4923# Check whether --enable-build-with-cxx was given.
4924if test "${enable_build_with_cxx+set}" = set; then :
4925 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
4926else
4927 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
4928fi
4929
00020c16 4930
592c90ff
KG
4931# Used for setting $lt_cv_objdir
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
4933$as_echo_n "checking for objdir... " >&6; }
4934if test "${lt_cv_objdir+set}" = set; then :
4935 $as_echo_n "(cached) " >&6
4936else
4937 rm -f .libs 2>/dev/null
4938mkdir .libs 2>/dev/null
4939if test -d .libs; then
4940 lt_cv_objdir=.libs
4941else
4942 # MS-DOS does not allow filenames that begin with a dot.
4943 lt_cv_objdir=_libs
4944fi
4945rmdir .libs 2>/dev/null
4946fi
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
4948$as_echo "$lt_cv_objdir" >&6; }
4949objdir=$lt_cv_objdir
4950
4951
4952
4953
4954
4955cat >>confdefs.h <<_ACEOF
4956#define LT_OBJDIR "$lt_cv_objdir/"
4957_ACEOF
4958
4959
4960
acd26225 4961# Check for GMP, MPFR and MPC
3a5729ea 4962gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 4963gmpinc=
e69bf64b 4964have_gmp=no
acd26225
KG
4965
4966# Specify a location for mpc
4967# check for this first so it ends up on the link line before mpfr.
4968
5213506e
RW
4969# Check whether --with-mpc was given.
4970if test "${with_mpc+set}" = set; then :
4971 withval=$with_mpc;
4972fi
acd26225 4973
acd26225 4974
9965e3cd 4975# Check whether --with-mpc-include was given.
5213506e
RW
4976if test "${with_mpc_include+set}" = set; then :
4977 withval=$with_mpc_include;
4978fi
acd26225 4979
acd26225 4980
9965e3cd 4981# Check whether --with-mpc-lib was given.
5213506e
RW
4982if test "${with_mpc_lib+set}" = set; then :
4983 withval=$with_mpc_lib;
4984fi
acd26225 4985
acd26225
KG
4986
4987if test "x$with_mpc" != x; then
3a5729ea
KG
4988 gmplibs="-L$with_mpc/lib $gmplibs"
4989 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
4990fi
4991if test "x$with_mpc_include" != x; then
3a5729ea 4992 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
4993fi
4994if test "x$with_mpc_lib" != x; then
3a5729ea 4995 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
4996fi
4997if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 4998 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 4999 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5000 # Do not test the mpc version. Assume that it is sufficient, since
5001 # it is in the source tree, and the library has not been built yet
5002 # but it would be included on the link line in the version check below
5003 # hence making the test fail.
3a5729ea 5004 have_gmp=yes
acd26225 5005fi
e69bf64b 5006
bebf829d
PB
5007# Specify a location for mpfr
5008# check for this first so it ends up on the link line before gmp.
1c710c3c 5009
5213506e
RW
5010# Check whether --with-mpfr-dir was given.
5011if test "${with_mpfr_dir+set}" = set; then :
5012 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5013Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5014fi
5015
bebf829d
PB
5016
5017
5213506e
RW
5018# Check whether --with-mpfr was given.
5019if test "${with_mpfr+set}" = set; then :
5020 withval=$with_mpfr;
5021fi
1c710c3c 5022
bebf829d 5023
9965e3cd 5024# Check whether --with-mpfr-include was given.
5213506e
RW
5025if test "${with_mpfr_include+set}" = set; then :
5026 withval=$with_mpfr_include;
5027fi
1c710c3c 5028
8a877c9c 5029
9965e3cd 5030# Check whether --with-mpfr-lib was given.
5213506e
RW
5031if test "${with_mpfr_lib+set}" = set; then :
5032 withval=$with_mpfr_lib;
5033fi
8a877c9c 5034
bebf829d
PB
5035
5036if test "x$with_mpfr" != x; then
5037 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5038 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5039fi
8a877c9c 5040if test "x$with_mpfr_include" != x; then
3a5729ea 5041 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5042fi
5043if test "x$with_mpfr_lib" != x; then
5044 gmplibs="-L$with_mpfr_lib $gmplibs"
5045fi
e69bf64b 5046if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
592c90ff 5047 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
e69bf64b 5048 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
592c90ff 5049 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
e69bf64b
PB
5050 # Do not test the mpfr version. Assume that it is sufficient, since
5051 # it is in the source tree, and the library has not been built yet
5052 # but it would be included on the link line in the version check below
5053 # hence making the test fail.
5054 have_gmp=yes
5055fi
bebf829d 5056
6de9cd9a 5057# Specify a location for gmp
1c710c3c 5058
5213506e
RW
5059# Check whether --with-gmp-dir was given.
5060if test "${with_gmp_dir+set}" = set; then :
5061 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5062Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5063fi
5064
6de9cd9a 5065
6de9cd9a 5066
5213506e
RW
5067# Check whether --with-gmp was given.
5068if test "${with_gmp+set}" = set; then :
5069 withval=$with_gmp;
5070fi
1c710c3c 5071
6de9cd9a 5072
9965e3cd 5073# Check whether --with-gmp-include was given.
5213506e
RW
5074if test "${with_gmp_include+set}" = set; then :
5075 withval=$with_gmp_include;
5076fi
1c710c3c 5077
8a877c9c 5078
9965e3cd 5079# Check whether --with-gmp-lib was given.
5213506e
RW
5080if test "${with_gmp_lib+set}" = set; then :
5081 withval=$with_gmp_lib;
5082fi
8a877c9c
KG
5083
5084
6de9cd9a 5085
bebf829d
PB
5086if test "x$with_gmp" != x; then
5087 gmplibs="-L$with_gmp/lib $gmplibs"
5088 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5089fi
8a877c9c
KG
5090if test "x$with_gmp_include" != x; then
5091 gmpinc="-I$with_gmp_include $gmpinc"
5092fi
5093if test "x$with_gmp_lib" != x; then
5094 gmplibs="-L$with_gmp_lib $gmplibs"
5095fi
e69bf64b 5096if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5097 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5098 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5099 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5100 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e69bf64b
PB
5101 # Do not test the gmp version. Assume that it is sufficient, since
5102 # it is in the source tree, and the library has not been built yet
5103 # but it would be included on the link line in the version check below
5104 # hence making the test fail.
5105 have_gmp=yes
5106fi
6de9cd9a 5107
d943d7c4 5108if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5109 have_gmp=yes
5110 saved_CFLAGS="$CFLAGS"
5111 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5112 # Check for the recommended and required versions of GMP.
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5114$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5115
5116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5117/* end confdefs.h. */
5118#include "gmp.h"
5119int
5120main ()
5121{
5122
5123 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5124 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5125 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5126 choke me
5127 #endif
5128
5129 ;
5130 return 0;
5131}
5132_ACEOF
5133if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5135/* end confdefs.h. */
362c6d2f 5136#include <gmp.h>
1c710c3c
DJ
5137int
5138main ()
5139{
6de9cd9a 5140
362c6d2f
KG
5141 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5142 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5143 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5144 choke me
5145 #endif
1c710c3c
DJ
5146
5147 ;
5148 return 0;
5149}
5150_ACEOF
5213506e
RW
5151if ac_fn_c_try_compile "$LINENO"; then :
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5153$as_echo "yes" >&6; }
362c6d2f
KG
5154else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5156$as_echo "buggy but acceptable" >&6; }
5157fi
5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5159else
5213506e
RW
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5162fi
5213506e 5163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5164
acd26225 5165 # If we have GMP, check the MPFR version.
e69bf64b 5166 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5167 # Check for the recommended and required versions of MPFR.
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5169$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5171/* end confdefs.h. */
70ec446f 5172#include <gmp.h>
e69bf64b 5173 #include <mpfr.h>
1c710c3c
DJ
5174int
5175main ()
5176{
e48d66a9 5177
a3337ea2 5178 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5179 choke me
5180 #endif
1c710c3c
DJ
5181
5182 ;
5183 return 0;
5184}
5185_ACEOF
5213506e
RW
5186if ac_fn_c_try_compile "$LINENO"; then :
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5188/* end confdefs.h. */
a3993f33 5189#include <gmp.h>
e69bf64b 5190 #include <mpfr.h>
1c710c3c
DJ
5191int
5192main ()
5193{
a3993f33 5194
362c6d2f 5195 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5196 choke me
5197 #endif
acd26225
KG
5198
5199 ;
5200 return 0;
5201}
5202_ACEOF
5213506e
RW
5203if ac_fn_c_try_compile "$LINENO"; then :
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5205$as_echo "yes" >&6; }
acd26225 5206else
5213506e
RW
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5208$as_echo "buggy but acceptable" >&6; }
acd26225 5209fi
5213506e 5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5211else
5213506e
RW
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213$as_echo "no" >&6; }; have_gmp=no
acd26225 5214fi
5213506e 5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5216 fi
5217
5218 # Check for the MPC header version.
3a5729ea 5219 if test x"$have_gmp" = xyes ; then
362c6d2f 5220 # Check for the recommended and required versions of MPC.
5213506e
RW
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5222$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5224/* end confdefs.h. */
5225#include <mpc.h>
5226int
5227main ()
5228{
5229
362c6d2f
KG
5230 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5231 choke me
5232 #endif
5233
5234 ;
5235 return 0;
5236}
5237_ACEOF
5238if ac_fn_c_try_compile "$LINENO"; then :
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240/* end confdefs.h. */
5241#include <mpc.h>
5242int
5243main ()
5244{
5245
5246 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5247 choke me
5248 #endif
5249
5250 ;
5251 return 0;
5252}
5253_ACEOF
5213506e
RW
5254if ac_fn_c_try_compile "$LINENO"; then :
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5256$as_echo "yes" >&6; }
362c6d2f
KG
5257else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5259$as_echo "buggy but acceptable" >&6; }
5260fi
5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5262else
5213506e 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5264$as_echo "no" >&6; }; have_gmp=no
acd26225 5265fi
5213506e 5266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5267 fi
5268
5269 # Now check the MPFR library.
5270 if test x"$have_gmp" = xyes; then
5271 saved_LIBS="$LIBS"
5272 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5274$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5276/* end confdefs.h. */
3a5729ea 5277#include <mpc.h>
acd26225
KG
5278int
5279main ()
5280{
5281
5282 mpfr_t n;
5283 mpfr_t x;
3a5729ea 5284 mpc_t c;
acd26225
KG
5285 int t;
5286 mpfr_init (n);
5287 mpfr_init (x);
5288 mpfr_atan2 (n, n, x, GMP_RNDN);
5289 mpfr_erfc (n, x, GMP_RNDN);
5290 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5291 mpfr_clear(n);
5292 mpfr_clear(x);
5293 mpc_init2 (c, 53);
5294 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5295 mpc_cosh (c, c, MPC_RNDNN);
5296 mpc_pow (c, c, c, MPC_RNDNN);
5297 mpc_acosh (c, c, MPC_RNDNN);
5298 mpc_clear (c);
1c710c3c
DJ
5299
5300 ;
5301 return 0;
5302}
5303_ACEOF
5213506e
RW
5304if ac_fn_c_try_link "$LINENO"; then :
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306$as_echo "yes" >&6; }
1c710c3c 5307else
5213506e
RW
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5310fi
5213506e
RW
5311rm -f core conftest.err conftest.$ac_objext \
5312 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5313 LIBS="$saved_LIBS"
5314 fi
5315
e69bf64b 5316 CFLAGS="$saved_CFLAGS"
6de9cd9a 5317
362c6d2f
KG
5318# The library versions listed in the error message below should match
5319# the HARD-minimums enforced above.
e69bf64b 5320 if test x$have_gmp != xyes; then
362c6d2f 5321 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
3a5729ea
KG
5322Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5323their locations. Source code for these libraries can be found at
5324their respective hosting sites as well as at
5325ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5326http://gcc.gnu.org/install/prerequisites.html for additional info. If
5327you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5328make sure that you have installed both the libraries and the header
5329files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5330 fi
70ec446f
KG
5331fi
5332
acd26225
KG
5333# Flags needed for both GMP, MPFR and/or MPC.
5334
5335
6de9cd9a
DN
5336
5337
5338
9e3eba15 5339
f38095f3
JM
5340# Allow host libstdc++ to be specified for static linking with PPL.
5341
5213506e
RW
5342# Check whether --with-host-libstdcxx was given.
5343if test "${with_host_libstdcxx+set}" = set; then :
5344 withval=$with_host_libstdcxx;
5345fi
f38095f3 5346
f38095f3
JM
5347
5348case $with_host_libstdcxx in
5349 no|yes)
5213506e 5350 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5351 ;;
5352esac
f8bf9252 5353
00020c16
ILT
5354# Linker flags to use for stage1 or when not boostrapping.
5355
5213506e
RW
5356# Check whether --with-stage1-ldflags was given.
5357if test "${with_stage1_ldflags+set}" = set; then :
5358 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5359 stage1_ldflags=
5360 else
5361 stage1_ldflags=$withval
5362 fi
5363else
5364 stage1_ldflags=
5213506e
RW
5365fi
5366
00020c16
ILT
5367
5368
5369# Libraries to use for stage1 or when not bootstrapping.
5370
5213506e
RW
5371# Check whether --with-stage1-libs was given.
5372if test "${with_stage1_libs+set}" = set; then :
5373 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5374 stage1_libs=
5375 else
5376 stage1_libs=$withval
5377 fi
5378else
5379 stage1_libs=$with_host_libstdcxx
5213506e
RW
5380fi
5381
00020c16
ILT
5382
5383
00020c16
ILT
5384# Libraries to use for stage2 and later builds. This defaults to the
5385# argument passed to --with-host-libstdcxx.
5386
5213506e
RW
5387# Check whether --with-boot-libs was given.
5388if test "${with_boot_libs+set}" = set; then :
5389 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5390 poststage1_libs=
5391 else
5392 poststage1_libs=$withval
5393 fi
5394else
00020c16 5395 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5396fi
5397
00020c16
ILT
5398
5399
ed2eaa9f
ILT
5400# Linker flags to use for stage2 and later builds.
5401
5402# Check whether --with-boot-ldflags was given.
5403if test "${with_boot_ldflags+set}" = set; then :
5404 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5405 poststage1_ldflags=
5406 else
5407 poststage1_ldflags=$withval
5408 fi
5409else
5410 poststage1_ldflags=
bec93d73
ILT
5411 # In stages 2 and 3, default to linking libstdc++ and libgcc
5412 # statically. But if the user explicitly specified the libraries to
5413 # use, trust that they are doing what they want.
5414 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5415 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5416 fi
5417fi
5418
5419
5420
f8bf9252 5421# Check for PPL
7d32a440 5422ppllibs=
f8bf9252 5423pplinc=
7d32a440 5424pwllib=
f8bf9252
SP
5425
5426
5213506e
RW
5427# Check whether --with-ppl was given.
5428if test "${with_ppl+set}" = set; then :
5429 withval=$with_ppl;
5213506e 5430fi
f8bf9252 5431
f8bf9252 5432
9965e3cd 5433# Check whether --with-ppl-include was given.
5213506e
RW
5434if test "${with_ppl_include+set}" = set; then :
5435 withval=$with_ppl_include;
5436fi
5437
f8bf9252 5438
9965e3cd 5439# Check whether --with-ppl-lib was given.
5213506e
RW
5440if test "${with_ppl_lib+set}" = set; then :
5441 withval=$with_ppl_lib;
5442fi
f8bf9252 5443
f8bf9252 5444
7d32a440
SP
5445# Check whether --enable-ppl-version-check was given.
5446if test "${enable_ppl_version_check+set}" = set; then :
5447 enableval=$enable_ppl_version_check;
5448fi
5449
5450
53095c56 5451case $with_ppl in
7d32a440 5452 yes | no | "")
ad0abd3c 5453 ;;
53095c56 5454 *)
7d32a440 5455 ppllibs="-L$with_ppl/lib"
53095c56 5456 pplinc="-I$with_ppl/include $pplinc"
7d32a440
SP
5457 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5458 with_ppl=yes
5459 else
5460 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5461 fi
53095c56
SP
5462 ;;
5463esac
7d32a440
SP
5464
5465if test x"$with_ppl_include" != x; then
f8bf9252 5466 pplinc="-I$with_ppl_include $pplinc"
7d32a440 5467 with_ppl=yes
f8bf9252 5468fi
7d32a440 5469
f8bf9252 5470if test "x$with_ppl_lib" != x; then
7d32a440
SP
5471 ppllibs="-L$with_ppl_lib"
5472 with_ppl=yes
f8bf9252 5473fi
7d32a440
SP
5474
5475if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5476 if test x"$enable_watchdog" = xyes; then
5477 pwllib="-lpwl"
5478 fi
5479 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
f61428ed
AO
5480 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5481 enable_ppl_version_check=no
7d32a440 5482 with_ppl=yes
f8bf9252
SP
5483fi
5484
f158c8d0 5485if test "x$with_ppl" != xno; then
7d32a440 5486 if test "x$pwllib" = x; then
474ee908
RO
5487 saved_LIBS="$LIBS"
5488 LIBS="$LIBS $ppllibs -lstdc++ -lm"
7d32a440
SP
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5490$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5491if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493else
5494 ac_check_lib_save_LIBS=$LIBS
5495LIBS="-lpwl $LIBS"
5496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h. */
5498
5499/* Override any GCC internal prototype to avoid an error.
5500 Use char because int might match the return type of a GCC
5501 builtin and then its argument prototype would still apply. */
5502#ifdef __cplusplus
5503extern "C"
5504#endif
5505char PWL_handle_timeout ();
5506int
5507main ()
5508{
5509return PWL_handle_timeout ();
5510 ;
5511 return 0;
5512}
5513_ACEOF
5514if ac_fn_c_try_link "$LINENO"; then :
5515 ac_cv_lib_pwl_PWL_handle_timeout=yes
d789184e 5516else
7d32a440
SP
5517 ac_cv_lib_pwl_PWL_handle_timeout=no
5518fi
5519rm -f core conftest.err conftest.$ac_objext \
5520 conftest$ac_exeext conftest.$ac_ext
5521LIBS=$ac_check_lib_save_LIBS
5522fi
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5524$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5525if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5526 pwllib="-lpwl"
5213506e
RW
5527fi
5528
474ee908 5529 LIBS="$saved_LIBS"
7d32a440 5530 fi
f8bf9252 5531
7d32a440
SP
5532 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5533
5534 if test "$enable_ppl_version_check" != no; then
5535 saved_CFLAGS="$CFLAGS"
5536 CFLAGS="$CFLAGS $pplinc $gmpinc"
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5538$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5540/* end confdefs.h. */
5541#include "ppl_c.h"
5542int
5543main ()
5544{
5545
7d32a440
SP
5546 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5547 choke me
5548 #endif
f8bf9252
SP
5549
5550 ;
5551 return 0;
5552}
5553_ACEOF
5213506e
RW
5554if ac_fn_c_try_compile "$LINENO"; then :
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5556$as_echo "yes" >&6; }
f8bf9252 5557else
5213506e 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ed3a56f3 5559$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
f8bf9252 5560fi
5213506e 5561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d32a440
SP
5562 CFLAGS="$saved_CFLAGS"
5563 fi
d789184e
SP
5564fi
5565
5566# Flags needed for PPL
5567
5568
f8bf9252 5569
f8bf9252 5570
d789184e 5571# Check for CLOOG
d32ef397 5572
d789184e
SP
5573
5574
5213506e
RW
5575# Check whether --with-cloog was given.
5576if test "${with_cloog+set}" = set; then :
5577 withval=$with_cloog;
5213506e
RW
5578fi
5579
d789184e 5580
9965e3cd 5581# Check whether --with-cloog-include was given.
5213506e
RW
5582if test "${with_cloog_include+set}" = set; then :
5583 withval=$with_cloog_include;
5584fi
d789184e 5585
d789184e 5586
9965e3cd 5587# Check whether --with-cloog-lib was given.
5213506e
RW
5588if test "${with_cloog_lib+set}" = set; then :
5589 withval=$with_cloog_lib;
5590fi
d789184e 5591
d789184e 5592
f16e2237
TG
5593 # Check whether --enable-cloog-backend was given.
5594if test "${enable_cloog_backend+set}" = set; then :
5595 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5596 cloog_backend=isl
5597 elif test "x${enableval}" = "xppl"; then
5598 cloog_backend=ppl
5599 else
5600 cloog_backend=ppl-legacy
5601 fi
5602else
5603 cloog_backend=ppl-legacy
5604fi
5605
d32ef397
AS
5606 # Check whether --enable-cloog-version-check was given.
5607if test "${enable_cloog_version_check+set}" = set; then :
5608 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5609else
5610 ENABLE_CLOOG_CHECK=yes
5611fi
5612
5613
5614 # Initialize clooglibs and clooginc.
5615 case $with_cloog in
5616 no)
5617 clooglibs=
5618 clooginc=
5619 ;;
5620 "" | yes)
5621 ;;
5622 *)
5623 clooglibs="-L$with_cloog/lib"
5624 clooginc="-I$with_cloog/include"
5625 ;;
5626 esac
5627 if test "x${with_cloog_include}" != x ; then
5628 clooginc="-I$with_cloog_include"
5629 fi
5630 if test "x${with_cloog_lib}" != x; then
5631 clooglibs="-L$with_cloog_lib"
5632 fi
5633
5634
5635
5636
5637
17e72e5d 5638if test "x$with_ppl" = "xno"; then
ab4173cf
SP
5639
5640
5641
6be7b668
JJ
5642 if test "x${with_cloog}" = xno; then
5643 graphite_requested=no
5644 elif test "x${with_cloog}" != x \
ab4173cf
SP
5645 || test "x${with_cloog_include}" != x \
5646 || test "x${with_cloog_lib}" != x ; then
5647 graphite_requested=yes
5648 else
5649 graphite_requested=no
5650 fi
5651
5652
5653 if test "${graphite_requested}" = yes; then
f33d8408 5654 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
ab4173cf 5655 fi
6be7b668 5656 with_cloog=no
ad0abd3c 5657fi
d32ef397
AS
5658if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5659 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5660 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5661 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5662fi
5663if test "x$with_cloog" != "xno"; then
ad0abd3c 5664
d32ef397
AS
5665
5666
5667 _cloog_saved_CFLAGS=$CFLAGS
5668 _cloog_saved_CPPFLAGS=$CPPFLAGS
5669 _cloog_saved_LDFLAGS=$LDFLAGS
5670 _cloog_saved_LIBS=$LIBS
5671
d32ef397
AS
5672 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5673
f16e2237 5674 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
0bb52d68 5675 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
f16e2237
TG
5676 LDFLAGS="${LDFLAGS} ${clooglibs}"
5677
5678 case $cloog_backend in
5679 "ppl-legacy")
5680 CFLAGS="${CFLAGS} ${pplinc}"
5681 LDFLAGS="${LDFLAGS} ${ppllibs}"
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5683$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
d32ef397
AS
5684if test "${gcc_cv_cloog_type+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686else
5687 LIBS="-lcloog ${_cloog_saved_LIBS}"
f16e2237 5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5689/* end confdefs.h. */
0bb52d68 5690#include "cloog/cloog.h"
d32ef397
AS
5691int
5692main ()
5693{
0bb52d68
TG
5694#ifndef CLOOG_PPL_BACKEND
5695 choke me
5696 #endif
d32ef397
AS
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701if ac_fn_c_try_link "$LINENO"; then :
5702 gcc_cv_cloog_type="PPL Legacy"
5703else
f16e2237
TG
5704 gcc_cv_cloog_type=no
5705fi
5706rm -f core conftest.err conftest.$ac_objext \
5707 conftest$ac_exeext conftest.$ac_ext
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5710$as_echo "$gcc_cv_cloog_type" >&6; }
5711 ;;
5712 "isl")
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5714$as_echo_n "checking for installed CLooG ISL... " >&6; }
5715if test "${gcc_cv_cloog_type+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5717else
5718 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5720/* end confdefs.h. */
0bb52d68 5721#include "cloog/cloog.h"
d32ef397
AS
5722int
5723main ()
5724{
5725cloog_version ()
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730if ac_fn_c_try_link "$LINENO"; then :
f16e2237
TG
5731 gcc_cv_cloog_type="ISL"
5732else
5733 gcc_cv_cloog_type=no
5734fi
5735rm -f core conftest.err conftest.$ac_objext \
5736 conftest$ac_exeext conftest.$ac_ext
5737fi
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5739$as_echo "$gcc_cv_cloog_type" >&6; }
5740 ;;
5741 "ppl")
5742 CFLAGS="${CFLAGS} ${pplinc}"
5743 LDFLAGS="${LDFLAGS} ${ppllibs}"
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5745$as_echo_n "checking for installed CLooG PPL... " >&6; }
5746if test "${gcc_cv_cloog_type+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
d32ef397
AS
5748else
5749 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
f16e2237 5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5751/* end confdefs.h. */
0bb52d68 5752#include "cloog/cloog.h"
f16e2237 5753 #include "cloog/ppl/cloog.h"
d32ef397
AS
5754int
5755main ()
5756{
5757cloog_version ()
5758 ;
5759 return 0;
5760}
5761_ACEOF
5762if ac_fn_c_try_link "$LINENO"; then :
f16e2237 5763 gcc_cv_cloog_type="PPL"
d32ef397
AS
5764else
5765 gcc_cv_cloog_type=no
d789184e 5766fi
d32ef397
AS
5767rm -f core conftest.err conftest.$ac_objext \
5768 conftest$ac_exeext conftest.$ac_ext
d789184e 5769fi
d32ef397
AS
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5771$as_echo "$gcc_cv_cloog_type" >&6; }
f16e2237
TG
5772 ;;
5773 *)
5774 gcc_cv_cloog_type=""
5775 esac
5213506e 5776
d32ef397
AS
5777 case $gcc_cv_cloog_type in
5778 "PPL Legacy")
0bb52d68 5779 clooginc="${clooginc}"
d32ef397
AS
5780 clooglibs="${clooglibs} -lcloog"
5781 cloog_org=no
5782 ;;
5783 "ISL")
5784 clooginc="${clooginc} ${_cloogorginc}"
3d2bc11b 5785 clooglibs="${clooglibs} -lcloog-isl -lisl"
d32ef397
AS
5786 cloog_org=yes
5787 ;;
5788 "PPL")
5789 clooginc="${clooginc} ${_cloogorginc}"
5790 clooglibs="${clooglibs} -lcloog-ppl"
5791 cloog_org=yes
5792 ;;
5793 *)
5794 clooglibs=
5795 clooginc=
5796 cloog_org=
5797 ;;
5798 esac
d789184e 5799
d32ef397
AS
5800 LIBS=$_cloog_saved_LIBS
5801 CFLAGS=$_cloog_saved_CFLAGS
5802 CPPFLAGS=$_cloog_saved_CPPFLAGS
5803 LDFLAGS=$_cloog_saved_LDFLAGS
5804
5805
5806
5807
5808
5809 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5810 _cloog_saved_CFLAGS=$CFLAGS
5811 _cloog_saved_LDFLAGS=$LDFLAGS
5812
5813 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
27882098 5814 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
d32ef397
AS
5815
5816 if test "${cloog_org}" = yes ; then
27b9aa80
TG
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5818$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
d32ef397
AS
5819if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821else
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h. */
5824#include "cloog/cloog.h"
5825int
5826main ()
5827{
5828#if CLOOG_VERSION_MAJOR != 0 \
27b9aa80
TG
5829 || CLOOG_VERSION_MINOR != 16 \
5830 || CLOOG_VERSION_REVISION < 1
d32ef397
AS
5831 choke me
5832 #endif
5833 ;
5834 return 0;
5835}
5836_ACEOF
5837if ac_fn_c_try_compile "$LINENO"; then :
5838 gcc_cv_cloog_ct_0_14_0=yes
5839else
5840 gcc_cv_cloog_ct_0_14_0=no
5841fi
5842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843fi
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5845$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5846 elif test "${cloog_org}" = no ; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
f264ed56 5848$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
d32ef397
AS
5849if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5851else
5213506e 5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5853/* end confdefs.h. */
5854#include "cloog/cloog.h"
5855int
5856main ()
5857{
d32ef397
AS
5858#if CLOOG_VERSION_MAJOR != 0 \
5859 || CLOOG_VERSION_MINOR != 15 \
5860 || CLOOG_VERSION_REVISION < 5
5861 choke me
5862 #endif
f8bf9252
SP
5863 ;
5864 return 0;
5865}
5866_ACEOF
0333b9a6
SP
5867if ac_fn_c_try_compile "$LINENO"; then :
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h. */
5870#include "cloog/cloog.h"
5871int
5872main ()
5873{
d32ef397
AS
5874#if CLOOG_VERSION_MAJOR != 0 \
5875 || CLOOG_VERSION_MINOR != 15 \
5876 || CLOOG_VERSION_REVISION < 9
5877 choke me
5878 #endif
0333b9a6
SP
5879 ;
5880 return 0;
5881}
5882_ACEOF
5213506e 5883if ac_fn_c_try_compile "$LINENO"; then :
d32ef397 5884 gcc_cv_cloog_ct_0_15_5=yes
0333b9a6 5885else
d32ef397 5886 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
0333b9a6
SP
5887fi
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8bf9252 5889else
d32ef397 5890 gcc_cv_cloog_ct_0_15_5=no
f8bf9252 5891fi
5213506e 5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e 5893fi
d32ef397
AS
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5895$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5896 fi
5897
5898 CFLAGS=$_cloog_saved_CFLAGS
5899 LDFLAGS=$_cloog_saved_LDFLAGS
5900 fi
f8bf9252 5901
f8bf9252
SP
5902
5903
5904
d32ef397
AS
5905
5906
5907
6be7b668
JJ
5908 if test "x${with_cloog}" = xno; then
5909 graphite_requested=no
5910 elif test "x${with_cloog}" != x \
d32ef397
AS
5911 || test "x${with_cloog_include}" != x \
5912 || test "x${with_cloog_lib}" != x ; then
5913 graphite_requested=yes
5914 else
5915 graphite_requested=no
5916 fi
5917
5918
5919
5920 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5921 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5922 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5923 clooglibs=
5924 clooginc=
5925 fi
5926
5927 if test "${graphite_requested}" = yes \
5928 && test "x${clooglibs}" = x \
5929 && test "x${clooginc}" = x ; then
5930
ab4173cf 5931 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
5932 fi
5933
5934
5935fi
5936
d7f09764
DN
5937# Check for LTO support.
5938# Check whether --enable-lto was given.
5939if test "${enable_lto+set}" = set; then :
5940 enableval=$enable_lto; enable_lto=$enableval
5941else
5942 enable_lto=yes; default_enable_lto=yes
5943fi
5944
5945
7413962d 5946
9a02962b
DK
5947
5948
5949target_elf=no
5950case $target in
5951 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5952 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
5953 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5954 target_elf=no
5955 ;;
5956 *)
5957 target_elf=yes
5958 ;;
5959esac
5960
5961if test $target_elf = yes; then :
48215350
DK
5962 # ELF platforms build the lto-plugin always.
5963 build_lto_plugin=yes
9a02962b 5964
9a02962b
DK
5965else
5966 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 5967 case $target in
51fd6b90 5968 *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
48215350 5969 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
5970 *) enable_lto=no ;;
5971 esac
9a02962b 5972 else
db50fe7d
IS
5973 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5974 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
5975 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5976 # warn during gcc/ subconfigure; unless you're bootstrapping with
5977 # -flto it won't be needed until after installation anyway.
5978 case $target in
1cd0b716 5979 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
5980 *) if test x"$enable_lto" = x"yes"; then
5981 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5982 fi
5983 ;;
5984 esac
5985 fi
1cd0b716 5986 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 5987 # Build it unless LTO was explicitly disabled.
1cd0b716 5988 case $target in
48215350 5989 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
5990 *) ;;
5991 esac
48215350 5992
9a02962b
DK
5993fi
5994
d7f09764 5995
f8bf9252 5996
1e0f07d3 5997# By default, C is the only stage 1 language.
e1888513 5998stage1_languages=,c,
2805b53a 5999
00020c16 6000# Target libraries that we bootstrap.
ad1e5170 6001bootstrap_target_libs=,target-libgcc,
00020c16 6002
55ffb5ed
NN
6003# Figure out what language subdirectories are present.
6004# Look if the user specified --enable-languages="..."; if not, use
6005# the environment variable $LANGUAGES if defined. $LANGUAGES might
6006# go away some day.
6007# NB: embedded tabs in this IF block -- do not untabify
6008if test -d ${srcdir}/gcc; then
6009 if test x"${enable_languages+set}" != xset; then
6010 if test x"${LANGUAGES+set}" = xset; then
6011 enable_languages="${LANGUAGES}"
6012 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6013 else
6014 enable_languages=all
6015 fi
6016 else
6017 if test x"${enable_languages}" = x ||
6018 test x"${enable_languages}" = xyes;
6019 then
6020 echo configure.in: --enable-languages needs at least one language argument 1>&2
6021 exit 1
6022 fi
6023 fi
6024 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6025
7f26dfa3
FXC
6026 # 'f95' is the old name for the 'fortran' language. We issue a warning
6027 # and make the substitution.
6028 case ,${enable_languages}, in
6029 *,f95,*)
6030 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6031 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6032 ;;
6033 esac
6034
55ffb5ed
NN
6035 # First scan to see if an enabled language requires some other language.
6036 # We assume that a given config-lang.in will list all the language
6037 # front ends it requires, even if some are required indirectly.
6038 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6039 case ${lang_frag} in
6040 ..) ;;
6041 # The odd quoting in the next line works around
6042 # an apparent bug in bash 1.12 on linux.
6043 ${srcdir}/gcc/[*]/config-lang.in) ;;
6044 *)
69ecd18f
ILT
6045 # From the config-lang.in, get $language, $lang_requires, and
6046 # $lang_requires_boot_languages.
55ffb5ed
NN
6047 language=
6048 lang_requires=
69ecd18f 6049 lang_requires_boot_languages=
55ffb5ed 6050 . ${lang_frag}
69ecd18f 6051 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6052 case ,${enable_languages}, in
6053 *,$other,*) ;;
6054 *,all,*) ;;
6055 *,$language,*)
6056 echo " \`$other' language required by \`$language'; enabling" 1>&2
6057 enable_languages="${enable_languages},${other}"
6058 ;;
6059 esac
6060 done
69ecd18f
ILT
6061 for other in ${lang_requires_boot_languages} ; do
6062 if test "$other" != "c"; then
6063 case ,${enable_stage1_languages}, in
6064 *,$other,*) ;;
6065 *,all,*) ;;
6066 *)
6067 case ,${enable_languages}, in
6068 *,$language,*)
6069 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6070 enable_stage1_languages="$enable_stage1_languages,${other}"
6071 ;;
6072 esac
6073 ;;
6074 esac
6075 fi
6076 done
55ffb5ed
NN
6077 ;;
6078 esac
6079 done
6080
e1888513 6081 new_enable_languages=,c,
d7f09764
DN
6082
6083 # If LTO is enabled, add the LTO front end.
6084 extra_host_libiberty_configure_flags=
6085 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6086 case ,${enable_languages}, in
6087 *,lto,*) ;;
6088 *) enable_languages="${enable_languages},lto" ;;
6089 esac
1cd0b716 6090 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6091 configdirs="$configdirs lto-plugin"
6092 extra_host_libiberty_configure_flags=--enable-shared
6093 fi
6094 fi
6095
6096
55ffb5ed 6097 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6098 potential_languages=,c,
55ffb5ed 6099
4da3b0f8
ILT
6100 enabled_target_libs=
6101 disabled_target_libs=
6102
55ffb5ed
NN
6103 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6104 case ${lang_frag} in
6105 ..) ;;
6106 # The odd quoting in the next line works around
6107 # an apparent bug in bash 1.12 on linux.
6108 ${srcdir}/gcc/[*]/config-lang.in) ;;
6109 *)
1c710c3c 6110 # From the config-lang.in, get $language, $target_libs,
2805b53a 6111 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6112 language=
6113 target_libs=
6114 lang_dirs=
1546bb64 6115 subdir_requires=
e1888513
PB
6116 boot_language=no
6117 build_by_default=yes
55ffb5ed 6118 . ${lang_frag}
e1888513
PB
6119 if test x${language} = x; then
6120 echo "${lang_frag} doesn't set \$language." 1>&2
6121 exit 1
6122 fi
6123
f61428ed
AO
6124 if test "$language" = "c++" \
6125 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
00020c16
ILT
6126 boot_language=yes
6127 fi
6128
e1888513
PB
6129 case ,${enable_languages}, in
6130 *,${language},*)
55ffb5ed
NN
6131 # Language was explicitly selected; include it.
6132 add_this_lang=yes
6133 ;;
e1888513
PB
6134 *,all,*)
6135 # 'all' was selected, select it if it is a default language
6136 add_this_lang=${build_by_default}
55ffb5ed
NN
6137 ;;
6138 *)
6139 add_this_lang=no
6140 ;;
6141 esac
6de9cd9a 6142
1546bb64 6143 # Disable languages that need other directories if these aren't available.
95695ad3 6144 for i in $subdir_requires; do
b6348cb3 6145 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6146 case ,${enable_languages}, in
6147 *,${language},*)
6148 # Specifically requested language; tell them.
5213506e 6149 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6150 ;;
6151 *)
6152 # Silently disable.
e1888513 6153 add_this_lang=unsupported
1546bb64
PB
6154 ;;
6155 esac
6156 done
6157
e1888513
PB
6158 # Disable Ada if no preexisting GNAT is available.
6159 case ,${enable_languages},:${language}:${have_gnat} in
6160 *,${language},*:ada:no)
6161 # Specifically requested language; tell them.
5213506e 6162 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6163 ;;
6164 *:ada:no)
6165 # Silently disable.
6166 add_this_lang=unsupported
6167 ;;
6168 esac
6169
4fab7234
HPN
6170 # Disable a language that is unsupported by the target.
6171 case " $unsupported_languages " in
6172 *" $language "*)
e1888513 6173 add_this_lang=unsupported
4fab7234
HPN
6174 ;;
6175 esac
6176
6de9cd9a 6177 case $add_this_lang in
e1888513 6178 unsupported)
55ffb5ed 6179 # Remove language-dependent dirs.
4da3b0f8
ILT
6180 disabled_target_libs="$disabled_target_libs $target_libs"
6181 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6182 ;;
e1888513
PB
6183 no)
6184 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6185 disabled_target_libs="$disabled_target_libs $target_libs"
6186 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6187 potential_languages="${potential_languages}${language},"
6188 ;;
6189 yes)
6190 new_enable_languages="${new_enable_languages}${language},"
6191 potential_languages="${potential_languages}${language},"
2805b53a 6192 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6193 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6194 case "${boot_language}:,$enable_stage1_languages," in
6195 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6196 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6197 case ",$stage1_languages," in
6198 *,$language,* | ,yes, | ,all,) ;;
6199 *) stage1_languages="${stage1_languages}${language}," ;;
6200 esac
00020c16
ILT
6201 # We need to bootstrap any supporting libraries.
6202 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6203 ;;
6204 esac
6205 ;;
55ffb5ed
NN
6206 esac
6207 ;;
6208 esac
6209 done
6210
4da3b0f8
ILT
6211 # Add target libraries which are only needed for disabled languages
6212 # to noconfigdirs.
6213 if test -n "$disabled_target_libs"; then
6214 for dir in $disabled_target_libs; do
6215 case " $enabled_target_libs " in
6216 *" ${dir} "*) ;;
6217 *) noconfigdirs="$noconfigdirs $dir" ;;
6218 esac
6219 done
6220 fi
6221
5213506e
RW
6222 # Check whether --enable-stage1-languages was given.
6223if test "${enable_stage1_languages+set}" = set; then :
6224 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6225 ,no,|,,)
6226 # Set it to something that will have no effect in the loop below
6227 enable_stage1_languages=c ;;
6228 ,yes,)
6229 enable_stage1_languages=`echo $new_enable_languages | \
6230 sed -e "s/^,//" -e "s/,$//" ` ;;
6231 *,all,*)
6232 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6233 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6234 esac
6235
6236 # Add "good" languages from enable_stage1_languages to stage1_languages,
6237 # while "bad" languages go in missing_languages. Leave no duplicates.
6238 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6239 case $potential_languages in
6240 *,$i,*)
6241 case $stage1_languages in
6242 *,$i,*) ;;
6243 *) stage1_languages="$stage1_languages$i," ;;
6244 esac ;;
6245 *)
6246 case $missing_languages in
6247 *,$i,*) ;;
6248 *) missing_languages="$missing_languages$i," ;;
6249 esac ;;
6250 esac
6251 done
5213506e
RW
6252fi
6253
e1888513
PB
6254
6255 # Remove leading/trailing commas that were added for simplicity
6256 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6257 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6258 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6259 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6260
55ffb5ed 6261 if test "x$missing_languages" != x; then
5213506e 6262 as_fn_error "
0cf085e4 6263The following requested languages could not be built: ${missing_languages}
5213506e 6264Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6265 fi
55ffb5ed
NN
6266 if test "x$new_enable_languages" != "x$enable_languages"; then
6267 echo The following languages will be built: ${new_enable_languages}
e1888513 6268 enable_languages="$new_enable_languages"
55ffb5ed 6269 fi
e1888513 6270
1c710c3c 6271
b2eaac4a 6272 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6273fi
6274
27079765
AH
6275# Handle --disable-<component> generically.
6276for dir in $configdirs $build_configdirs $target_configdirs ; do
6277 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6278 varname=`echo $dirname | sed -e s/+/_/g`
6279 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6280 noconfigdirs="$noconfigdirs $dir"
6281 fi
6282done
6283
7cd0cf9c 6284# Check for Boehm's garbage collector
5213506e
RW
6285# Check whether --enable-objc-gc was given.
6286if test "${enable_objc_gc+set}" = set; then :
6287 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6288 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6289 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6290 ;;
6291esac
5213506e
RW
6292fi
6293
7cd0cf9c
DA
6294
6295# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6296case ,${enable_languages},:${enable_objc_gc} in
6297 *,objc,*:yes)
7cd0cf9c
DA
6298 # Keep target-boehm-gc if requested for Objective-C.
6299 ;;
7cd0cf9c 6300 *)
2a79fd67
DA
6301 # Otherwise remove target-boehm-gc depending on target-libjava.
6302 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6303 noconfigdirs="$noconfigdirs target-boehm-gc"
6304 fi
7cd0cf9c
DA
6305 ;;
6306esac
6307
ee6a22df
L
6308# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6309# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6310# If we have the source for $noconfigdirs entries, add them to $notsupp.
6311
6312notsupp=""
6313for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6314 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6315 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6316 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6317 if test -r $srcdir/$dirname/configure ; then
6318 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6319 true
6320 else
6321 notsupp="$notsupp $dir"
6322 fi
6323 fi
6324 fi
ee6a22df
L
6325 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6326 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6327 if test -r $srcdir/$dirname/configure ; then
6328 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6329 true
6330 else
6331 notsupp="$notsupp $dir"
6332 fi
6333 fi
6334 fi
55ffb5ed
NN
6335 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6336 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6337 if test -r $srcdir/$dirname/configure ; then
6338 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6339 true
6340 else
6341 notsupp="$notsupp $dir"
6342 fi
6343 fi
6344 fi
6345done
6346
6347# Sometimes the tools are distributed with libiberty but with no other
6348# libraries. In that case, we don't want to build target-libiberty.
54fdc474 6349# Don't let libgcc imply libiberty either.
55ffb5ed 6350if test -n "${target_configdirs}" ; then
54fdc474 6351 libgcc=
55ffb5ed
NN
6352 others=
6353 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
6354 if test "$i" = "libgcc"; then
6355 libgcc=target-libgcc
6356 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
6357 if test -r $srcdir/$i/configure ; then
6358 others=yes;
6359 break;
6360 fi
6361 fi
6362 done
6363 if test -z "${others}" ; then
54fdc474 6364 target_configdirs=$libgcc
55ffb5ed
NN
6365 fi
6366fi
6367
6368# Quietly strip out all directories which aren't configurable in this tree.
6369# This relies on all configurable subdirectories being autoconfiscated, which
6370# is now the case.
23f6b2f9
PB
6371build_configdirs_all="$build_configdirs"
6372build_configdirs=
6373for i in ${build_configdirs_all} ; do
1c710c3c 6374 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6375 if test -f ${srcdir}/$j/configure ; then
6376 build_configdirs="${build_configdirs} $i"
6377 fi
6378done
6379
55ffb5ed
NN
6380configdirs_all="$configdirs"
6381configdirs=
6382for i in ${configdirs_all} ; do
6383 if test -f ${srcdir}/$i/configure ; then
6384 configdirs="${configdirs} $i"
6385 fi
6386done
23f6b2f9 6387
55ffb5ed
NN
6388target_configdirs_all="$target_configdirs"
6389target_configdirs=
6390for i in ${target_configdirs_all} ; do
1c710c3c 6391 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6392 if test -f ${srcdir}/$j/configure ; then
6393 target_configdirs="${target_configdirs} $i"
6394 fi
6395done
6396
6397# Produce a warning message for the subdirs we can't configure.
6398# This isn't especially interesting in the Cygnus tree, but in the individual
6399# FSF releases, it's important to let people know when their machine isn't
6400# supported by the one or two programs in a package.
6401
6402if test -n "${notsupp}" && test -z "${norecursion}" ; then
6403 # If $appdirs is non-empty, at least one of those directories must still
6404 # be configured, or we error out. (E.g., if the gas release supports a
6405 # specified target in some subdirs but not the gas subdir, we shouldn't
6406 # pretend that all is well.)
6407 if test -n "$appdirs" ; then
6408 for dir in $appdirs ; do
6409 if test -r $dir/Makefile.in ; then
6410 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6411 appdirs=""
6412 break
6413 fi
23f6b2f9 6414 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6415 appdirs=""
6416 break
6417 fi
6418 fi
6419 done
6420 if test -n "$appdirs" ; then
6421 echo "*** This configuration is not supported by this package." 1>&2
6422 exit 1
6423 fi
6424 fi
6425 # Okay, some application will build, or we don't care to check. Still
6426 # notify of subdirs not getting built.
6427 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6428 echo " ${notsupp}" 1>&2
6429 echo " (Any other directories should still work fine.)" 1>&2
6430fi
6431
6432case "$host" in
6433 *msdosdjgpp*)
6434 enable_gdbtk=no ;;
6435esac
6436
c3a86da9
DJ
6437# To find our prefix, in gcc_cv_tool_prefix.
6438
6439# The user is always right.
6440if test "${PATH_SEPARATOR+set}" != set; then
6441 echo "#! /bin/sh" >conf$$.sh
6442 echo "exit 0" >>conf$$.sh
6443 chmod +x conf$$.sh
6444 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6445 PATH_SEPARATOR=';'
6446 else
6447 PATH_SEPARATOR=:
6448 fi
6449 rm -f conf$$.sh
6450fi
6451
6452
6453
6454if test "x$exec_prefix" = xNONE; then
6455 if test "x$prefix" = xNONE; then
6456 gcc_cv_tool_prefix=$ac_default_prefix
6457 else
6458 gcc_cv_tool_prefix=$prefix
6459 fi
6460else
6461 gcc_cv_tool_prefix=$exec_prefix
6462fi
6463
6464# If there is no compiler in the tree, use the PATH only. In any
6465# case, if there is no compiler in the tree nobody should use
6466# AS_FOR_TARGET and LD_FOR_TARGET.
6467if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6468 gcc_version=`cat $srcdir/gcc/BASE-VER`
6469 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6470 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6471 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6472 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6473 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6474 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6475else
6476 gcc_cv_tool_dirs=
6477fi
6478
6479if test x$build = x$target && test -n "$md_exec_prefix"; then
6480 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6481fi
6482
6483
6484
55ffb5ed
NN
6485copy_dirs=
6486
1c710c3c 6487
5213506e
RW
6488# Check whether --with-build-sysroot was given.
6489if test "${with_build_sysroot+set}" = set; then :
6490 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6491 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6492 fi
6493else
6494 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6495fi
526635cb
MM
6496
6497
c8aea42c 6498
5213506e
RW
6499
6500# Check whether --with-debug-prefix-map was given.
6501if test "${with_debug_prefix_map+set}" = set; then :
6502 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6503 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6504 for debug_map in $withval; do
6505 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6506 done
6507 fi
6508else
6509 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6510fi
6511
c8aea42c
PB
6512
6513
1c8bd6a3
PB
6514# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6515# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6516# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6517# We want to ensure that TARGET libraries (which we know are built with
6518# gcc) are built with "-O2 -g", so include those options when setting
6519# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6520if test "x$CFLAGS_FOR_TARGET" = x; then
6521 CFLAGS_FOR_TARGET=$CFLAGS
6522 case " $CFLAGS " in
6523 *" -O2 "*) ;;
6524 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6525 esac
6526 case " $CFLAGS " in
6527 *" -g "* | *" -g3 "*) ;;
6528 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6529 esac
6530fi
6531
6532
6533if test "x$CXXFLAGS_FOR_TARGET" = x; then
6534 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6535 case " $CXXFLAGS " in
6536 *" -O2 "*) ;;
6537 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6538 esac
6539 case " $CXXFLAGS " in
6540 *" -g "* | *" -g3 "*) ;;
6541 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6542 esac
6543fi
6544
6545
55ffb5ed
NN
6546# Handle --with-headers=XXX. If the value is not "yes", the contents of
6547# the named directory are copied to $(tooldir)/sys-include.
6548if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6549 if test x${is_cross_compiler} = xno ; then
6550 echo 1>&2 '***' --with-headers is only supported when cross compiling
6551 exit 1
6552 fi
6553 if test x"${with_headers}" != xyes ; then
c3a86da9 6554 x=${gcc_cv_tool_prefix}
1c710c3c 6555 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6556 fi
6557fi
6558
6559# Handle --with-libs=XXX. If the value is not "yes", the contents of
6560# the name directories are copied to $(tooldir)/lib. Multiple directories
6561# are permitted.
6562if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6563 if test x${is_cross_compiler} = xno ; then
6564 echo 1>&2 '***' --with-libs is only supported when cross compiling
6565 exit 1
6566 fi
6567 if test x"${with_libs}" != xyes ; then
6568 # Copy the libraries in reverse order, so that files in the first named
6569 # library override files in subsequent libraries.
c3a86da9 6570 x=${gcc_cv_tool_prefix}
55ffb5ed 6571 for l in ${with_libs}; do
1c710c3c 6572 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6573 done
6574 fi
6575fi
6576
d7f09764 6577# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6578#
6579# This is done by determining whether or not the appropriate directory
6580# is available, and by checking whether or not specific configurations
6581# have requested that this magic not happen.
1c710c3c
DJ
6582#
6583# The command line options always override the explicit settings in
e8b05380
PB
6584# configure.in, and the settings in configure.in override this magic.
6585#
1c710c3c 6586# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6587# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6588# --without-gnu-ld options for the configure script. Similarly, if
6589# the default is to use the included zlib and you don't want to do that,
6590# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6591
6592if test x${use_gnu_as} = x &&
6593 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6594 with_gnu_as=yes
6595 extra_host_args="$extra_host_args --with-gnu-as"
6596fi
6597
6598if test x${use_gnu_ld} = x &&
5afab7ad 6599 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6600 with_gnu_ld=yes
6601 extra_host_args="$extra_host_args --with-gnu-ld"
6602fi
6603
d7f09764
DN
6604if test x${use_included_zlib} = x &&
6605 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6606 :
6607else
6608 with_system_zlib=yes
6609 extra_host_args="$extra_host_args --with-system-zlib"
6610fi
6611
e8b05380
PB
6612# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6613# can detect this case.
6614
6615if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6616 with_newlib=yes
6617 extra_host_args="$extra_host_args --with-newlib"
6618fi
6619
55ffb5ed
NN
6620# Handle ${copy_dirs}
6621set fnord ${copy_dirs}
6622shift
6623while test $# != 0 ; do
6624 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6625 :
6626 else
6627 echo Copying $1 to $2
6628
6629 # Use the install script to create the directory and all required
6630 # parent directories.
6631 if test -d $2 ; then
6632 :
6633 else
6634 echo >config.temp
6635 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6636 fi
6637
6638 # Copy the directory, assuming we have tar.
6639 # FIXME: Should we use B in the second tar? Not all systems support it.
6640 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6641
6642 # It is the responsibility of the user to correctly adjust all
6643 # symlinks. If somebody can figure out how to handle them correctly
6644 # here, feel free to add the code.
6645
6646 echo $1 > $2/COPIED
6647 fi
6648 shift; shift
6649done
6650
e8b05380
PB
6651# Determine a target-dependent exec_prefix that the installed
6652# gcc will search in. Keep this list sorted by triplet, with
6653# the *-*-osname triplets last.
6654md_exec_prefix=
6655case "${target}" in
30b74385 6656 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6657 md_exec_prefix=/dev/env/DJDIR/bin
6658 ;;
e8b05380 6659 *-*-hpux* | \
e8b05380 6660 *-*-nto-qnx* | \
6de66370 6661 *-*-solaris2*)
e8b05380
PB
6662 md_exec_prefix=/usr/ccs/bin
6663 ;;
6664esac
6665
671aa708
NN
6666extra_arflags_for_target=
6667extra_nmflags_for_target=
6668extra_ranlibflags_for_target=
6669target_makefile_frag=/dev/null
6670case "${target}" in
58e24147
AM
6671 spu-*-*)
6672 target_makefile_frag="config/mt-spu"
6673 ;;
4bf6c438
RS
6674 mips*-sde-elf*)
6675 target_makefile_frag="config/mt-sde"
6676 ;;
1ec3b87b
RS
6677 mipsisa*-*-elfoabi*)
6678 target_makefile_frag="config/mt-mips-elfoabi"
6679 ;;
08d0963a
RS
6680 mips*-*-*linux* | mips*-*-gnu*)
6681 target_makefile_frag="config/mt-mips-gnu"
6682 ;;
416ac4d4 6683 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6684 target_makefile_frag="config/mt-gnu"
671aa708
NN
6685 ;;
6686 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6687 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6688 # commands to handle both 32-bit and 64-bit objects. These flags are
6689 # harmless if we're using GNU nm or ar.
6690 extra_arflags_for_target=" -X32_64"
6691 extra_nmflags_for_target=" -B -X32_64"
6692 ;;
0aeb3cc6
JH
6693 *-*-darwin[3-9]*)
6694 # ranlib before Darwin10 requires the -c flag to look at common symbols.
671aa708
NN
6695 extra_ranlibflags_for_target=" -c"
6696 ;;
671aa708
NN
6697esac
6698
6699alphaieee_frag=/dev/null
6700case $target in
6701 alpha*-*-*)
6702 # This just makes sure to use the -mieee option to build target libs.
6703 # This should probably be set individually by each library.
6704 alphaieee_frag="config/mt-alphaieee"
6705 ;;
6706esac
6707
6708# If --enable-target-optspace always use -Os instead of -O2 to build
6709# the target libraries, similarly if it is not specified, use -Os
6710# on selected platforms.
6711ospace_frag=/dev/null
6712case "${enable_target_optspace}:${target}" in
6713 yes:*)
6714 ospace_frag="config/mt-ospace"
6715 ;;
6716 :d30v-*)
6717 ospace_frag="config/mt-d30v"
6718 ;;
6719 :m32r-* | :d10v-* | :fr30-*)
6720 ospace_frag="config/mt-ospace"
6721 ;;
6722 no:* | :*)
6723 ;;
6724 *)
6725 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6726 ;;
6727esac
6728
671aa708
NN
6729# Default to using --with-stabs for certain targets.
6730if test x${with_stabs} = x ; then
6731 case "${target}" in
89a95129 6732 mips*-*-irix[56]*)
671aa708
NN
6733 ;;
6734 mips*-*-* | alpha*-*-osf*)
6735 with_stabs=yes;
6736 extra_host_args="${extra_host_args} --with-stabs"
6737 ;;
6738 esac
6739fi
6740
6741# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6742# them automatically.
6743case "${host}" in
1c710c3c 6744 hppa*64*-*-hpux11*)
671aa708
NN
6745 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6746 ;;
6747esac
6748
671aa708
NN
6749# Some systems (e.g., one of the i386-aix systems the gas testers are
6750# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6751tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6752build_tooldir=${tooldir}
6753
671aa708
NN
6754# Create a .gdbinit file which runs the one in srcdir
6755# and tells GDB to look there for source files.
6756
6757if test -r ${srcdir}/.gdbinit ; then
6758 case ${srcdir} in
6759 .) ;;
6760 *) cat > ./.gdbinit <<EOF
6761# ${NO_EDIT}
6762dir ${srcdir}
6763dir .
6764source ${srcdir}/.gdbinit
6765EOF
6766 ;;
6767 esac
6768fi
6769
671aa708
NN
6770# Make sure that the compiler is able to generate an executable. If it
6771# can't, we are probably in trouble. We don't care whether we can run the
6772# executable--we might be using a cross compiler--we only care whether it
6773# can be created. At this point the main configure script has set CC.
6774we_are_ok=no
6775echo "int main () { return 0; }" > conftest.c
6776${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6777if test $? = 0 ; then
6778 if test -s conftest || test -s conftest.exe ; then
6779 we_are_ok=yes
6780 fi
1c710c3c 6781fi
671aa708
NN
6782case $we_are_ok in
6783 no)
6784 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6785 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6786 rm -f conftest*
6787 exit 1
6788 ;;
6789esac
6790rm -f conftest*
6791
6792# The Solaris /usr/ucb/cc compiler does not appear to work.
6793case "${host}" in
6794 sparc-sun-solaris2*)
6795 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6796 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6797 could_use=
6798 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6799 if test -d /opt/cygnus/bin ; then
6800 if test "$could_use" = "" ; then
6801 could_use="/opt/cygnus/bin"
6802 else
6803 could_use="$could_use or /opt/cygnus/bin"
6804 fi
6805 fi
6806 if test "$could_use" = "" ; then
6807 echo "Warning: compilation may fail because you're using"
6808 echo "/usr/ucb/cc. You should change your PATH or CC "
6809 echo "variable and rerun configure."
6810 else
6811 echo "Warning: compilation may fail because you're using"
6812 echo "/usr/ucb/cc, when you should use the C compiler from"
6813 echo "$could_use. You should change your"
6814 echo "PATH or CC variable and rerun configure."
6815 fi
6816 fi
6817 ;;
6818esac
6819
d89f0ad6 6820# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6821case "${host}" in
6822 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6823 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6824 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6825 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6826esac
6827
d89f0ad6
AL
6828# On systems where the dynamic library environment variable is PATH,
6829# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6830# built executables to PATH.
6831if test "$RPATH_ENVVAR" = PATH; then
6832 GCC_SHLIB_SUBDIR=/shlib
6833else
6834 GCC_SHLIB_SUBDIR=
6835fi
6836
671aa708
NN
6837# Record target_configdirs and the configure arguments for target and
6838# build configuration in Makefile.
6839target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6840build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6841
ad1e5170
JR
6842# If we are building libgomp, bootstrap it.
6843if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6844 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6845fi
6846
671aa708
NN
6847# Determine whether gdb needs tk/tcl or not.
6848# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6849# and in that case we want gdb to be built without tk. Ugh!
6850# In fact I believe gdb is the *only* package directly dependent on tk,
6851# so we should be able to put the 'maybe's in unconditionally and
6852# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6853# 100% sure that that's safe though.
e914a571 6854
b4f96efe 6855gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6856case "$enable_gdbtk" in
6857 no)
6858 GDB_TK="" ;;
e914a571
AC
6859 yes)
6860 GDB_TK="${gdb_tk}" ;;
671aa708 6861 *)
e914a571
AC
6862 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6863 # distro. Eventually someone will fix this and move Insight, nee
6864 # gdbtk to a separate directory.
6865 if test -d ${srcdir}/gdb/gdbtk ; then
6866 GDB_TK="${gdb_tk}"
6867 else
6868 GDB_TK=""
6869 fi
6870 ;;
671aa708 6871esac
ef9db8d5
DJ
6872CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6873INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6874
60975492 6875# Strip out unwanted targets.
8b87bb96
NN
6876
6877# While at that, we remove Makefiles if we were started for recursive
6878# configuration, so that the top-level Makefile reconfigures them,
6879# like we used to do when configure itself was recursive.
8b87bb96 6880
3e54529c
RW
6881# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6882# but now we're fixing up the Makefile ourselves with the additional
6883# commands passed to AC_CONFIG_FILES. Use separate variables
6884# extrasub-{build,host,target} not because there is any reason to split
6885# the substitutions up that way, but only to remain below the limit of
6886# 99 commands in a script, for HP-UX sed.
6887# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6888
5213506e
RW
6889# Check whether --enable-bootstrap was given.
6890if test "${enable_bootstrap+set}" = set; then :
6891 enableval=$enable_bootstrap;
f516a7da 6892else
ce521a9c 6893 enable_bootstrap=default
5213506e
RW
6894fi
6895
f516a7da 6896
ce521a9c
PB
6897# Issue errors and warnings for invalid/strange bootstrap combinations.
6898case "$configdirs" in
6899 *gcc*) have_compiler=yes ;;
6900 *) have_compiler=no ;;
6901esac
6902
6903case "$have_compiler:$host:$target:$enable_bootstrap" in
6904 *:*:*:no) ;;
6905
1ca26cd2 6906 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
6907 # and we are in a native configuration.
6908 yes:$build:$build:default)
1ca26cd2 6909 enable_bootstrap=yes ;;
ce521a9c
PB
6910
6911 *:*:*:default)
6912 enable_bootstrap=no ;;
6913
6914 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 6915 yes:$build:$build:yes)
ce521a9c
PB
6916 ;;
6917
6918 # Other configurations, but we have a compiler. Assume the user knows
6919 # what he's doing.
2d309510 6920 yes:*:*:yes)
5213506e
RW
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6922$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
6923 ;;
6924
6925 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 6926 no:*:*:yes)
5213506e 6927 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ce521a9c
PB
6928
6929 # Fail if wrong command line
6930 *)
5213506e 6931 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
ce521a9c
PB
6932 ;;
6933esac
6934
ca6d0d62
RW
6935case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6936 *,c++,*:yes:yes) ;;
6937 *:yes:yes)
6938 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6939 ;;
6940esac
6941
79cd2b23
RW
6942case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6943 yes:yes:*\ gold\ *:*,c++,*) ;;
6944 yes:yes:*\ gold\ *:*)
6945 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6946 ;;
6947esac
6948
ce521a9c 6949# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 6950case $enable_bootstrap in
f516a7da 6951 yes)
e12c4094
AO
6952 bootstrap_suffix=bootstrap
6953 BUILD_CONFIG=bootstrap-debug
6954 ;;
f516a7da 6955 no)
e12c4094
AO
6956 bootstrap_suffix=no-bootstrap
6957 BUILD_CONFIG=
6958 ;;
f516a7da
PB
6959esac
6960
e12c4094
AO
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6962$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
6963
6964
6965# Check whether --with-build-config was given.
6966if test "${with_build_config+set}" = set; then :
6967 withval=$with_build_config; case $with_build_config in
6968 yes) with_build_config= ;;
6969 no) with_build_config= BUILD_CONFIG= ;;
6970 esac
6971fi
6972
6973
e12c4094
AO
6974if test "x${with_build_config}" != x; then
6975 BUILD_CONFIG=$with_build_config
6976else
6977 case $BUILD_CONFIG in
6978 bootstrap-debug)
6979 if echo "int f (void) { return 0; }" > conftest.c &&
6980 ${CC} -c conftest.c &&
6981 mv conftest.o conftest.o.g0 &&
6982 ${CC} -c -g conftest.c &&
6983 mv conftest.o conftest.o.g &&
615c8ffa 6984 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
6985 :
6986 else
6987 BUILD_CONFIG=
6988 fi
6989 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6990 ;;
6991 esac
6992fi
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6994$as_echo "$BUILD_CONFIG" >&6; }
6995
6996
3e54529c 6997extrasub_build=
23f6b2f9 6998for module in ${build_configdirs} ; do
5607edfd
PB
6999 if test -z "${no_recursion}" \
7000 && test -f ${build_subdir}/${module}/Makefile; then
7001 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7002 rm -f ${build_subdir}/${module}/Makefile
7003 fi
3e54529c 7004 extrasub_build="$extrasub_build
5607edfd
PB
7005/^@if build-$module\$/d
7006/^@endif build-$module\$/d
7007/^@if build-$module-$bootstrap_suffix\$/d
7008/^@endif build-$module-$bootstrap_suffix\$/d"
7009done
3e54529c 7010extrasub_host=
5607edfd 7011for module in ${configdirs} ; do
a6fbc1e2 7012 if test -z "${no_recursion}"; then
f063a9ed 7013 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7014 if test -f ${file}; then
7015 echo 1>&2 "*** removing ${file} to force reconfigure"
7016 rm -f ${file}
7017 fi
7018 done
5607edfd 7019 fi
3e54529c 7020 extrasub_host="$extrasub_host
5607edfd
PB
7021/^@if $module\$/d
7022/^@endif $module\$/d
7023/^@if $module-$bootstrap_suffix\$/d
7024/^@endif $module-$bootstrap_suffix\$/d"
7025done
3e54529c 7026extrasub_target=
5607edfd
PB
7027for module in ${target_configdirs} ; do
7028 if test -z "${no_recursion}" \
7029 && test -f ${target_subdir}/${module}/Makefile; then
7030 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7031 rm -f ${target_subdir}/${module}/Makefile
7032 fi
00020c16
ILT
7033
7034 # We only bootstrap target libraries listed in bootstrap_target_libs.
7035 case $bootstrap_target_libs in
7036 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7037 *) target_bootstrap_suffix=no-bootstrap ;;
7038 esac
7039
3e54529c 7040 extrasub_target="$extrasub_target
5607edfd
PB
7041/^@if target-$module\$/d
7042/^@endif target-$module\$/d
00020c16
ILT
7043/^@if target-$module-$target_bootstrap_suffix\$/d
7044/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7045done
7046
3e54529c
RW
7047# Do the final fixup along with target modules.
7048extrasub_target="$extrasub_target
60975492 7049/^@if /,/^@endif /d"
671aa708
NN
7050
7051# Create the serialization dependencies. This uses a temporary file.
7052
5213506e
RW
7053# Check whether --enable-serial-configure was given.
7054if test "${enable_serial_configure+set}" = set; then :
7055 enableval=$enable_serial_configure;
7056fi
ade82b16
AO
7057
7058
bf1d3e81
NN
7059case ${enable_serial_configure} in
7060 yes)
7061 enable_serial_build_configure=yes
7062 enable_serial_host_configure=yes
7063 enable_serial_target_configure=yes
7064 ;;
7065esac
7066
671aa708
NN
7067# These force 'configure's to be done one at a time, to avoid problems
7068# with contention over a shared config.cache.
7069rm -f serdep.tmp
ade82b16 7070echo '# serdep.tmp' > serdep.tmp
671aa708 7071olditem=
bf1d3e81 7072test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7073for item in ${build_configdirs} ; do
7074 case ${olditem} in
7075 "") ;;
ade82b16 7076 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7077 esac
7078 olditem=${item}
7079done
7080olditem=
bf1d3e81 7081test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7082for item in ${configdirs} ; do
7083 case ${olditem} in
7084 "") ;;
ade82b16 7085 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7086 esac
7087 olditem=${item}
7088done
7089olditem=
bf1d3e81 7090test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7091for item in ${target_configdirs} ; do
7092 case ${olditem} in
7093 "") ;;
ade82b16 7094 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7095 esac
7096 olditem=${item}
7097done
7098serialization_dependencies=serdep.tmp
7099
7100
ade82b16 7101# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7102# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7103# might not want to pass down to subconfigures. The exception being
7104# --cache-file=/dev/null, which is used to turn off the use of cache
7105# files altogether, and which should be passed on to subconfigures.
7106# Also strip program-prefix, program-suffix, and program-transform-name,
7107# so that we can pass down a consistent program-transform-name.
1c710c3c 7108baseargs=
29a63921 7109tbaseargs=
1c710c3c
DJ
7110keep_next=no
7111skip_next=no
7112eval "set -- $ac_configure_args"
44bfc3ac
DJ
7113for ac_arg
7114do
1c710c3c
DJ
7115 if test X"$skip_next" = X"yes"; then
7116 skip_next=no
7117 continue
7118 fi
7119 if test X"$keep_next" = X"yes"; then
7120 case $ac_arg in
7121 *\'*)
7122 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7123 esac
7124 baseargs="$baseargs '$ac_arg'"
29a63921 7125 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7126 keep_next=no
7127 continue
7128 fi
7129
7130 # Handle separated arguments. Based on the logic generated by
7131 # autoconf 2.59.
7132 case $ac_arg in
7133 *=* | --config-cache | -C | -disable-* | --disable-* \
7134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7136 | -with-* | --with-* | -without-* | --without-* | --x)
7137 separate_arg=no
7138 ;;
7139 -*)
7140 separate_arg=yes
7141 ;;
7142 *)
7143 separate_arg=no
7144 ;;
7145 esac
7146
29a63921
AO
7147 skip_targ=no
7148 case $ac_arg in
7149
7150 --with-* | --without-*)
7151 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7152
7153 case $libopt in
7154 *[-_]include)
7155 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7156 ;;
7157 *[-_]lib)
7158 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7159 ;;
7160 *)
7161 lib=$libopt
7162 ;;
7163 esac
7164
7165
7166 case $lib in
7167 mpc | mpfr | gmp | ppl | cloog)
7168 # If we're processing --with-$lib, --with-$lib-include or
7169 # --with-$lib-lib, for one of the libs above, and target is
7170 # different from host, don't pass the current argument to any
7171 # target library's configure.
7172 if test x$is_cross_compiler = xyes; then
7173 skip_targ=yes
7174 fi
7175 ;;
7176 esac
7177 ;;
7178 esac
7179
1c710c3c 7180 case "$ac_arg" in
f1a036e4
NC
7181 --cache-file=/dev/null | \
7182 -cache-file=/dev/null )
7183 # Handled here to avoid the test to skip args below.
7184 baseargs="$baseargs '$ac_arg'"
29a63921 7185 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7186 # Assert: $separate_arg should always be no.
7187 keep_next=$separate_arg
7188 ;;
1c710c3c
DJ
7189 --no*)
7190 continue
7191 ;;
7192 --c* | \
7193 --sr* | \
7194 --ho* | \
7195 --bu* | \
7196 --t* | \
7197 --program-* | \
7198 -cache_file* | \
7199 -srcdir* | \
7200 -host* | \
7201 -build* | \
7202 -target* | \
7203 -program-prefix* | \
7204 -program-suffix* | \
7205 -program-transform-name* )
7206 skip_next=$separate_arg
7207 continue
7208 ;;
7209 -*)
7210 # An option. Add it.
7211 case $ac_arg in
7212 *\'*)
7213 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7214 esac
7215 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7216 if test X"$skip_targ" = Xno; then
7217 tbaseargs="$tbaseargs '$ac_arg'"
7218 fi
1c710c3c
DJ
7219 keep_next=$separate_arg
7220 ;;
7221 *)
7222 # Either a variable assignment, or a nonopt (triplet). Don't
7223 # pass it down; let the Makefile handle this.
7224 continue
7225 ;;
7226 esac
7227done
7228# Remove the initial space we just introduced and, as these will be
7229# expanded by make, quote '$'.
7230baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7231
43bb47c2
DJ
7232# Add in --program-transform-name, after --program-prefix and
7233# --program-suffix have been applied to it. Autoconf has already
7234# doubled dollar signs and backslashes in program_transform_name; we want
7235# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7236# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7237# Also, because we want to override the logic in subdir configure scripts to
7238# choose program_transform_name, replace any s,x,x, with s,y,y,.
7239sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7240${program_transform_name}
7241EOF_SED
7242gcc_transform_name=`cat conftestsed.out`
7243rm -f conftestsed.out
7244baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7245tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7246if test "$silent" = yes; then
7247 baseargs="$baseargs --silent"
29a63921 7248 tbaseargs="$tbaseargs --silent"
d9acb717 7249fi
0115d4a3 7250baseargs="$baseargs --disable-option-checking"
29a63921 7251tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7252
ffedf511
RW
7253# Record and document user additions to sub configure arguments.
7254
7255
7256
7257
671aa708
NN
7258# For the build-side libraries, we just need to pretend we're native,
7259# and not use the same cache file. Multilibs are neither needed nor
7260# desired.
ffedf511 7261build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7262
7263# For host modules, accept cache file option, or specification as blank.
7264case "${cache_file}" in
7265"") # empty
7266 cache_file_option="" ;;
7267/* | [A-Za-z]:[\\/]* ) # absolute path
7268 cache_file_option="--cache-file=${cache_file}" ;;
7269*) # relative path
7270 cache_file_option="--cache-file=../${cache_file}" ;;
7271esac
7272
09438bde
NN
7273# Host dirs don't like to share a cache file either, horribly enough.
7274# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7275host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7276
29a63921 7277target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7278
7279# Passing a --with-cross-host argument lets the target libraries know
7280# whether they are being built with a cross-compiler or being built
7281# native. However, it would be better to use other mechanisms to make the
7282# sorts of decisions they want to make on this basis. Please consider
7283# this option to be deprecated. FIXME.
7284if test x${is_cross_compiler} = xyes ; then
1c710c3c 7285 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7286fi
7287
dc683a3f
RW
7288# Default to --enable-multilib.
7289if test x${enable_multilib} = x ; then
671aa708 7290 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7291fi
671aa708
NN
7292
7293# Pass --with-newlib if appropriate. Note that target_configdirs has
7294# changed from the earlier setting of with_newlib.
7295if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7296 target_configargs="--with-newlib ${target_configargs}"
7297fi
7298
6b9eb62c
NN
7299# Different target subdirs use different values of certain variables
7300# (notably CXX). Worse, multilibs use *lots* of different values.
7301# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7302# it doesn't automatically accept command-line overrides of them.
7303# This means it's not safe for target subdirs to share a cache file,
7304# which is disgusting, but there you have it. Hopefully this can be
7305# fixed in future. It's still worthwhile to use a cache file for each
7306# directory. I think.
7307
bebcd931
MS
7308# Pass the appropriate --build, --host, --target and --cache-file arguments.
7309# We need to pass --target, as newer autoconf's requires consistency
7310# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7311target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7312
671aa708
NN
7313FLAGS_FOR_TARGET=
7314case " $target_configdirs " in
7315 *" newlib "*)
7316 case " $target_configargs " in
7317 *" --with-newlib "*)
7318 case "$target" in
5d571eaa
OS
7319 *-cygwin*)
7320 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'
7321 ;;
671aa708
NN
7322 esac
7323
7324 # If we're not building GCC, don't discard standard headers.
7325 if test -d ${srcdir}/gcc; then
7326 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7327
7328 if test "${build}" != "${host}"; then
7329 # On Canadian crosses, CC_FOR_TARGET will have already been set
7330 # by `configure', so we won't have an opportunity to add -Bgcc/
7331 # to it. This is right: we don't want to search that directory
7332 # for binaries, but we want the header files in there, so add
7333 # them explicitly.
0463992b 7334 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7335
7336 # Someone might think of using the pre-installed headers on
7337 # Canadian crosses, in case the installed compiler is not fully
7338 # compatible with the compiler being built. In this case, it
7339 # would be better to flag an error than risking having
7340 # incompatible object files being constructed. We can't
7341 # guarantee that an error will be flagged, but let's hope the
7342 # compiler will do it, when presented with incompatible header
7343 # files.
7344 fi
7345 fi
7346
7347 case "${target}-${is_cross_compiler}" in
f2a0e225 7348 i[3456789]86-*-linux*-no)
671aa708
NN
7349 # Here host == target, so we don't need to build gcc,
7350 # so we don't want to discard standard headers.
7351 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7352 ;;
7353 *)
7354 # If we're building newlib, use its generic headers last, but search
7355 # for any libc-related directories first (so make it the last -B
7356 # switch).
7357 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
7358
7359 # If we're building libgloss, find the startup file, simulator library
7360 # and linker script.
7361 case " $target_configdirs " in
7362 *" libgloss "*)
7363 # Look for startup file, simulator library and maybe linker script.
7364 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7365 # Look for libnosys.a in case the target needs it.
7366 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7367 # Most targets have the linker script in the source directory.
7368 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7369 ;;
7370 esac
671aa708
NN
7371 ;;
7372 esac
7373 ;;
7374 esac
7375 ;;
7376esac
5d571eaa 7377
b91f0a41 7378case "$target" in
5d571eaa
OS
7379 x86_64-*mingw* | *-w64-mingw*)
7380 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7381 # however, use a symlink named 'mingw' in ${prefix} .
7382 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7383 ;;
7384 *-mingw*)
7385 # MinGW can't be handled as Cygwin above since it does not use newlib.
7386 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'
7387 ;;
b91f0a41 7388esac
671aa708 7389
6691a79e
ME
7390# Allow the user to override the flags for
7391# our build compiler if desired.
f019adc1
MF
7392if test x"${build}" = x"${host}" ; then
7393 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7394 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7395 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7396fi
6691a79e 7397
671aa708
NN
7398# On Canadian crosses, we'll be searching the right directories for
7399# the previously-installed cross compiler, so don't bother to add
7400# flags for directories within the install tree of the compiler
7401# being built; programs in there won't even run.
7402if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7403 # Search for pre-installed headers if nothing else fits.
9124bc53 7404 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
7405fi
7406
7407if test "x${use_gnu_ld}" = x &&
7408 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7409 # Arrange for us to find uninstalled linker scripts.
215c351a 7410 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7411fi
7412
e88a2c09
DD
7413# Search for other target-specific linker scripts and such.
7414case "${target}" in
3e19841a
PB
7415 mep*)
7416 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7417 ;;
e88a2c09
DD
7418esac
7419
671aa708 7420# Makefile fragments.
7b61653a
PE
7421for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7422do
7423 eval fragval=\$$frag
7424 if test $fragval != /dev/null; then
7425 eval $frag=${srcdir}/$fragval
7426 fi
7427done
671aa708
NN
7428
7429
7430
7431
7432
7433# Miscellanea: directories, flags, etc.
7434
7435
7436
7437
7438
7439
7440
d89f0ad6 7441
23f6b2f9 7442# Build module lists & subconfigure args.
671aa708
NN
7443
7444
7445
2abefe3d
PB
7446# Host module lists & subconfigure args.
7447
7448
7449
aae29963 7450
2abefe3d
PB
7451# Target module lists & subconfigure args.
7452
7453
7454
7455# Build tools.
7456
7457
7458
0999159b
PB
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
2abefe3d
PB
7473# Generate default definitions for YACC, M4, LEX and other programs that run
7474# on the build machine. These are used if the Makefile can't locate these
7475# programs in objdir.
7476MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7477
7478for ac_prog in 'bison -y' byacc yacc
7479do
1c710c3c 7480 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7481set dummy $ac_prog; ac_word=$2
5213506e
RW
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483$as_echo_n "checking for $ac_word... " >&6; }
7484if test "${ac_cv_prog_YACC+set}" = set; then :
7485 $as_echo_n "(cached) " >&6
2abefe3d
PB
7486else
7487 if test -n "$YACC"; then
7488 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7489else
1c710c3c
DJ
7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
5213506e
RW
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7497 ac_cv_prog_YACC="$ac_prog"
5213506e 7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7499 break 2
7500 fi
7501done
5213506e
RW
7502 done
7503IFS=$as_save_IFS
1c710c3c 7504
2abefe3d
PB
7505fi
7506fi
1c710c3c 7507YACC=$ac_cv_prog_YACC
2abefe3d 7508if test -n "$YACC"; then
5213506e
RW
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7510$as_echo "$YACC" >&6; }
2abefe3d 7511else
5213506e
RW
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513$as_echo "no" >&6; }
2abefe3d
PB
7514fi
7515
5213506e 7516
1c710c3c 7517 test -n "$YACC" && break
2abefe3d
PB
7518done
7519test -n "$YACC" || YACC="$MISSING bison -y"
7520
7521case " $build_configdirs " in
7522 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7523 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7524esac
7525
7526for ac_prog in bison
7527do
1c710c3c 7528 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7529set dummy $ac_prog; ac_word=$2
5213506e
RW
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531$as_echo_n "checking for $ac_word... " >&6; }
7532if test "${ac_cv_prog_BISON+set}" = set; then :
7533 $as_echo_n "(cached) " >&6
2abefe3d
PB
7534else
7535 if test -n "$BISON"; then
7536 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7537else
1c710c3c
DJ
7538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
5213506e
RW
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7545 ac_cv_prog_BISON="$ac_prog"
5213506e 7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7547 break 2
7548 fi
7549done
5213506e
RW
7550 done
7551IFS=$as_save_IFS
1c710c3c 7552
2abefe3d
PB
7553fi
7554fi
1c710c3c 7555BISON=$ac_cv_prog_BISON
2abefe3d 7556if test -n "$BISON"; then
5213506e
RW
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7558$as_echo "$BISON" >&6; }
2abefe3d 7559else
5213506e
RW
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561$as_echo "no" >&6; }
2abefe3d
PB
7562fi
7563
5213506e 7564
1c710c3c 7565 test -n "$BISON" && break
2abefe3d
PB
7566done
7567test -n "$BISON" || BISON="$MISSING bison"
7568
7569case " $build_configdirs " in
7570 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7571esac
7572
7573for ac_prog in gm4 gnum4 m4
7574do
1c710c3c 7575 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7576set dummy $ac_prog; ac_word=$2
5213506e
RW
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578$as_echo_n "checking for $ac_word... " >&6; }
7579if test "${ac_cv_prog_M4+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
2abefe3d
PB
7581else
7582 if test -n "$M4"; then
7583 ac_cv_prog_M4="$M4" # Let the user override the test.
7584else
1c710c3c
DJ
7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
5213506e
RW
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7592 ac_cv_prog_M4="$ac_prog"
5213506e 7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7594 break 2
7595 fi
7596done
5213506e
RW
7597 done
7598IFS=$as_save_IFS
1c710c3c 7599
2abefe3d
PB
7600fi
7601fi
1c710c3c 7602M4=$ac_cv_prog_M4
2abefe3d 7603if test -n "$M4"; then
5213506e
RW
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7605$as_echo "$M4" >&6; }
2abefe3d 7606else
5213506e
RW
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608$as_echo "no" >&6; }
2abefe3d
PB
7609fi
7610
5213506e 7611
1c710c3c 7612 test -n "$M4" && break
2abefe3d
PB
7613done
7614test -n "$M4" || M4="$MISSING m4"
7615
7616case " $build_configdirs " in
7617 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7618esac
7619
7620for ac_prog in flex lex
7621do
1c710c3c 7622 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7623set dummy $ac_prog; ac_word=$2
5213506e
RW
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625$as_echo_n "checking for $ac_word... " >&6; }
7626if test "${ac_cv_prog_LEX+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
2abefe3d
PB
7628else
7629 if test -n "$LEX"; then
7630 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7631else
1c710c3c
DJ
7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
5213506e
RW
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7639 ac_cv_prog_LEX="$ac_prog"
5213506e 7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7641 break 2
7642 fi
7643done
5213506e
RW
7644 done
7645IFS=$as_save_IFS
1c710c3c 7646
2abefe3d
PB
7647fi
7648fi
1c710c3c 7649LEX=$ac_cv_prog_LEX
2abefe3d 7650if test -n "$LEX"; then
5213506e
RW
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7652$as_echo "$LEX" >&6; }
2abefe3d 7653else
5213506e
RW
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655$as_echo "no" >&6; }
2abefe3d
PB
7656fi
7657
5213506e 7658
1c710c3c 7659 test -n "$LEX" && break
2abefe3d
PB
7660done
7661test -n "$LEX" || LEX="$MISSING flex"
7662
7663case " $build_configdirs " in
7664 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7665 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7666esac
7667
7668for ac_prog in flex
7669do
1c710c3c 7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7671set dummy $ac_prog; ac_word=$2
5213506e
RW
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673$as_echo_n "checking for $ac_word... " >&6; }
7674if test "${ac_cv_prog_FLEX+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
2abefe3d
PB
7676else
7677 if test -n "$FLEX"; then
7678 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7679else
1c710c3c
DJ
7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
5213506e
RW
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7687 ac_cv_prog_FLEX="$ac_prog"
5213506e 7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7689 break 2
7690 fi
7691done
5213506e
RW
7692 done
7693IFS=$as_save_IFS
1c710c3c 7694
2abefe3d
PB
7695fi
7696fi
1c710c3c 7697FLEX=$ac_cv_prog_FLEX
2abefe3d 7698if test -n "$FLEX"; then
5213506e
RW
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7700$as_echo "$FLEX" >&6; }
2abefe3d 7701else
5213506e
RW
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703$as_echo "no" >&6; }
2abefe3d
PB
7704fi
7705
5213506e 7706
1c710c3c 7707 test -n "$FLEX" && break
2abefe3d
PB
7708done
7709test -n "$FLEX" || FLEX="$MISSING flex"
7710
7711case " $build_configdirs " in
7712 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7713esac
7714
7715for ac_prog in makeinfo
7716do
1c710c3c 7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7718set dummy $ac_prog; ac_word=$2
5213506e
RW
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720$as_echo_n "checking for $ac_word... " >&6; }
7721if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
2abefe3d
PB
7723else
7724 if test -n "$MAKEINFO"; then
7725 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7726else
1c710c3c
DJ
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
5213506e
RW
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7734 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7736 break 2
7737 fi
7738done
5213506e
RW
7739 done
7740IFS=$as_save_IFS
1c710c3c 7741
2abefe3d
PB
7742fi
7743fi
1c710c3c 7744MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7745if test -n "$MAKEINFO"; then
5213506e
RW
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7747$as_echo "$MAKEINFO" >&6; }
2abefe3d 7748else
5213506e
RW
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
2abefe3d
PB
7751fi
7752
5213506e 7753
1c710c3c 7754 test -n "$MAKEINFO" && break
2abefe3d
PB
7755done
7756test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7757
7758case " $build_configdirs " in
7759 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7760 *)
7761
d18ff35a 7762 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7763 # higher, else we use the "missing" dummy.
7764 if ${MAKEINFO} --version \
d18ff35a 7765 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7766 :
7767 else
7768 MAKEINFO="$MISSING makeinfo"
7769 fi
7770 ;;
7771
7772esac
671aa708 7773
2abefe3d 7774# FIXME: expect and dejagnu may become build tools?
671aa708 7775
2abefe3d
PB
7776for ac_prog in expect
7777do
1c710c3c 7778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7779set dummy $ac_prog; ac_word=$2
5213506e
RW
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781$as_echo_n "checking for $ac_word... " >&6; }
7782if test "${ac_cv_prog_EXPECT+set}" = set; then :
7783 $as_echo_n "(cached) " >&6
2abefe3d
PB
7784else
7785 if test -n "$EXPECT"; then
7786 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7787else
1c710c3c
DJ
7788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789for as_dir in $PATH
7790do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
5213506e
RW
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7795 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7797 break 2
7798 fi
7799done
5213506e
RW
7800 done
7801IFS=$as_save_IFS
1c710c3c 7802
2abefe3d
PB
7803fi
7804fi
1c710c3c 7805EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7806if test -n "$EXPECT"; then
5213506e
RW
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7808$as_echo "$EXPECT" >&6; }
2abefe3d 7809else
5213506e
RW
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811$as_echo "no" >&6; }
2abefe3d 7812fi
671aa708 7813
5213506e 7814
1c710c3c 7815 test -n "$EXPECT" && break
2abefe3d
PB
7816done
7817test -n "$EXPECT" || EXPECT="expect"
671aa708 7818
2abefe3d
PB
7819case " $configdirs " in
7820 *" expect "*)
7821 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7822 ;;
7823esac
671aa708 7824
2abefe3d
PB
7825for ac_prog in runtest
7826do
1c710c3c 7827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7828set dummy $ac_prog; ac_word=$2
5213506e
RW
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830$as_echo_n "checking for $ac_word... " >&6; }
7831if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
2abefe3d
PB
7833else
7834 if test -n "$RUNTEST"; then
7835 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7836else
1c710c3c
DJ
7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
5213506e
RW
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7844 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7846 break 2
7847 fi
7848done
5213506e
RW
7849 done
7850IFS=$as_save_IFS
1c710c3c 7851
2abefe3d
PB
7852fi
7853fi
1c710c3c 7854RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7855if test -n "$RUNTEST"; then
5213506e
RW
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7857$as_echo "$RUNTEST" >&6; }
2abefe3d 7858else
5213506e
RW
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860$as_echo "no" >&6; }
2abefe3d 7861fi
671aa708 7862
5213506e 7863
1c710c3c 7864 test -n "$RUNTEST" && break
2abefe3d
PB
7865done
7866test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7867
2abefe3d
PB
7868case " $configdirs " in
7869 *" dejagnu "*)
c394e891 7870 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7871 ;;
7872esac
671aa708
NN
7873
7874
671aa708 7875# Host tools.
ca9f4b81
AO
7876ncn_tool_prefix=
7877test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7878ncn_target_tool_prefix=
7879test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7880
278a7a38
AO
7881
7882
7883if test -n "$AR"; then
7884 ac_cv_prog_AR=$AR
7885elif test -n "$ac_cv_prog_AR"; then
7886 AR=$ac_cv_prog_AR
7887fi
7888
7889if test -n "$ac_cv_prog_AR"; then
7890 for ncn_progname in ar; do
7891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7892set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
7895if test "${ac_cv_prog_AR+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
278a7a38
AO
7897else
7898 if test -n "$AR"; then
7899 ac_cv_prog_AR="$AR" # Let the user override the test.
7900else
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
5213506e
RW
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7908 ac_cv_prog_AR="${ncn_progname}"
5213506e 7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7910 break 2
7911 fi
7912done
5213506e
RW
7913 done
7914IFS=$as_save_IFS
278a7a38
AO
7915
7916fi
7917fi
7918AR=$ac_cv_prog_AR
7919if test -n "$AR"; then
5213506e
RW
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7921$as_echo "$AR" >&6; }
278a7a38 7922else
5213506e
RW
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
278a7a38
AO
7925fi
7926
5213506e 7927
278a7a38
AO
7928 done
7929fi
7930
7931for ncn_progname in ar; do
2693c0b0
PB
7932 if test -n "$ncn_tool_prefix"; then
7933 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7934set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936$as_echo_n "checking for $ac_word... " >&6; }
7937if test "${ac_cv_prog_AR+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7939else
7940 if test -n "$AR"; then
7941 ac_cv_prog_AR="$AR" # Let the user override the test.
7942else
1c710c3c
DJ
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
5213506e
RW
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7950 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7952 break 2
7953 fi
7954done
5213506e
RW
7955 done
7956IFS=$as_save_IFS
1c710c3c 7957
ca9f4b81
AO
7958fi
7959fi
1c710c3c 7960AR=$ac_cv_prog_AR
ca9f4b81 7961if test -n "$AR"; then
5213506e
RW
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7963$as_echo "$AR" >&6; }
ca9f4b81 7964else
5213506e
RW
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966$as_echo "no" >&6; }
ca9f4b81
AO
7967fi
7968
5213506e 7969
2693c0b0
PB
7970 fi
7971 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7973set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
7976if test "${ac_cv_prog_AR+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
ca9f4b81 7978else
2693c0b0 7979 if test -n "$AR"; then
af71363e
AS
7980 ac_cv_prog_AR="$AR" # Let the user override the test.
7981else
1c710c3c
DJ
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
5213506e
RW
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7989 ac_cv_prog_AR="${ncn_progname}"
5213506e 7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7991 break 2
7992 fi
7993done
5213506e
RW
7994 done
7995IFS=$as_save_IFS
1c710c3c 7996
ca9f4b81
AO
7997fi
7998fi
1c710c3c 7999AR=$ac_cv_prog_AR
2693c0b0 8000if test -n "$AR"; then
5213506e
RW
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8002$as_echo "$AR" >&6; }
ca9f4b81 8003else
5213506e
RW
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
ca9f4b81 8006fi
1c710c3c 8007
5213506e 8008
2693c0b0
PB
8009 fi
8010 test -n "$ac_cv_prog_AR" && break
8011done
8012
8013if test -z "$ac_cv_prog_AR" ; then
8014 set dummy ar
8015 if test $build = $host ; then
8016 AR="$2"
ca9f4b81 8017 else
2693c0b0 8018 AR="${ncn_tool_prefix}$2"
ca9f4b81 8019 fi
ca9f4b81
AO
8020fi
8021
278a7a38
AO
8022
8023
8024if test -n "$AS"; then
8025 ac_cv_prog_AS=$AS
8026elif test -n "$ac_cv_prog_AS"; then
8027 AS=$ac_cv_prog_AS
8028fi
8029
8030if test -n "$ac_cv_prog_AS"; then
8031 for ncn_progname in as; do
8032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8033set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035$as_echo_n "checking for $ac_word... " >&6; }
8036if test "${ac_cv_prog_AS+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
278a7a38
AO
8038else
8039 if test -n "$AS"; then
8040 ac_cv_prog_AS="$AS" # Let the user override the test.
8041else
8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
5213506e
RW
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8049 ac_cv_prog_AS="${ncn_progname}"
5213506e 8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8051 break 2
8052 fi
8053done
5213506e
RW
8054 done
8055IFS=$as_save_IFS
278a7a38
AO
8056
8057fi
8058fi
8059AS=$ac_cv_prog_AS
8060if test -n "$AS"; then
5213506e
RW
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8062$as_echo "$AS" >&6; }
278a7a38 8063else
5213506e
RW
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
278a7a38
AO
8066fi
8067
5213506e 8068
278a7a38
AO
8069 done
8070fi
8071
8072for ncn_progname in as; do
2693c0b0
PB
8073 if test -n "$ncn_tool_prefix"; then
8074 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8075set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077$as_echo_n "checking for $ac_word... " >&6; }
8078if test "${ac_cv_prog_AS+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8080else
8081 if test -n "$AS"; then
8082 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8083else
1c710c3c
DJ
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
5213506e
RW
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8091 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8093 break 2
8094 fi
8095done
5213506e
RW
8096 done
8097IFS=$as_save_IFS
1c710c3c 8098
ca9f4b81
AO
8099fi
8100fi
1c710c3c 8101AS=$ac_cv_prog_AS
ca9f4b81 8102if test -n "$AS"; then
5213506e
RW
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8104$as_echo "$AS" >&6; }
ca9f4b81 8105else
5213506e
RW
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107$as_echo "no" >&6; }
ca9f4b81
AO
8108fi
8109
5213506e 8110
2693c0b0
PB
8111 fi
8112 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8114set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116$as_echo_n "checking for $ac_word... " >&6; }
8117if test "${ac_cv_prog_AS+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
ca9f4b81 8119else
2693c0b0
PB
8120 if test -n "$AS"; then
8121 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8122else
1c710c3c
DJ
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
5213506e
RW
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8130 ac_cv_prog_AS="${ncn_progname}"
5213506e 8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8132 break 2
8133 fi
8134done
5213506e
RW
8135 done
8136IFS=$as_save_IFS
1c710c3c 8137
ca9f4b81
AO
8138fi
8139fi
1c710c3c 8140AS=$ac_cv_prog_AS
2693c0b0 8141if test -n "$AS"; then
5213506e
RW
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8143$as_echo "$AS" >&6; }
ca9f4b81 8144else
5213506e
RW
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146$as_echo "no" >&6; }
ca9f4b81 8147fi
1c710c3c 8148
5213506e 8149
2693c0b0
PB
8150 fi
8151 test -n "$ac_cv_prog_AS" && break
8152done
8153
8154if test -z "$ac_cv_prog_AS" ; then
8155 set dummy as
8156 if test $build = $host ; then
8157 AS="$2"
ca9f4b81 8158 else
2693c0b0 8159 AS="${ncn_tool_prefix}$2"
ca9f4b81 8160 fi
ca9f4b81
AO
8161fi
8162
278a7a38
AO
8163
8164
8165if test -n "$DLLTOOL"; then
8166 ac_cv_prog_DLLTOOL=$DLLTOOL
8167elif test -n "$ac_cv_prog_DLLTOOL"; then
8168 DLLTOOL=$ac_cv_prog_DLLTOOL
8169fi
8170
8171if test -n "$ac_cv_prog_DLLTOOL"; then
8172 for ncn_progname in dlltool; do
8173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8174set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176$as_echo_n "checking for $ac_word... " >&6; }
8177if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
278a7a38
AO
8179else
8180 if test -n "$DLLTOOL"; then
8181 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8182else
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
5213506e
RW
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8190 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8192 break 2
8193 fi
8194done
5213506e
RW
8195 done
8196IFS=$as_save_IFS
278a7a38
AO
8197
8198fi
8199fi
8200DLLTOOL=$ac_cv_prog_DLLTOOL
8201if test -n "$DLLTOOL"; then
5213506e
RW
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8203$as_echo "$DLLTOOL" >&6; }
278a7a38 8204else
5213506e
RW
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
278a7a38
AO
8207fi
8208
5213506e 8209
278a7a38
AO
8210 done
8211fi
8212
8213for ncn_progname in dlltool; do
2693c0b0
PB
8214 if test -n "$ncn_tool_prefix"; then
8215 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8216set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218$as_echo_n "checking for $ac_word... " >&6; }
8219if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8221else
8222 if test -n "$DLLTOOL"; then
8223 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8224else
1c710c3c
DJ
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
5213506e
RW
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8232 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8234 break 2
8235 fi
8236done
5213506e
RW
8237 done
8238IFS=$as_save_IFS
1c710c3c 8239
ca9f4b81
AO
8240fi
8241fi
1c710c3c 8242DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8243if test -n "$DLLTOOL"; then
5213506e
RW
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8245$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8246else
5213506e
RW
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248$as_echo "no" >&6; }
ca9f4b81
AO
8249fi
8250
5213506e 8251
2693c0b0
PB
8252 fi
8253 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8255set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257$as_echo_n "checking for $ac_word... " >&6; }
8258if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
ca9f4b81 8260else
2693c0b0
PB
8261 if test -n "$DLLTOOL"; then
8262 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8263else
1c710c3c
DJ
8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265for as_dir in $PATH
8266do
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
5213506e
RW
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8271 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8273 break 2
8274 fi
8275done
5213506e
RW
8276 done
8277IFS=$as_save_IFS
1c710c3c 8278
ca9f4b81
AO
8279fi
8280fi
1c710c3c 8281DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8282if test -n "$DLLTOOL"; then
5213506e
RW
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8284$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8285else
5213506e
RW
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287$as_echo "no" >&6; }
ca9f4b81 8288fi
1c710c3c 8289
5213506e 8290
2693c0b0
PB
8291 fi
8292 test -n "$ac_cv_prog_DLLTOOL" && break
8293done
8294
8295if test -z "$ac_cv_prog_DLLTOOL" ; then
8296 set dummy dlltool
8297 if test $build = $host ; then
8298 DLLTOOL="$2"
ca9f4b81 8299 else
2693c0b0 8300 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8301 fi
ca9f4b81
AO
8302fi
8303
278a7a38
AO
8304
8305
8306if test -n "$LD"; then
8307 ac_cv_prog_LD=$LD
8308elif test -n "$ac_cv_prog_LD"; then
8309 LD=$ac_cv_prog_LD
8310fi
8311
8312if test -n "$ac_cv_prog_LD"; then
8313 for ncn_progname in ld; do
8314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8315set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317$as_echo_n "checking for $ac_word... " >&6; }
8318if test "${ac_cv_prog_LD+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
278a7a38
AO
8320else
8321 if test -n "$LD"; then
8322 ac_cv_prog_LD="$LD" # Let the user override the test.
8323else
8324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
5213506e
RW
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8331 ac_cv_prog_LD="${ncn_progname}"
5213506e 8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8333 break 2
8334 fi
8335done
5213506e
RW
8336 done
8337IFS=$as_save_IFS
278a7a38
AO
8338
8339fi
8340fi
8341LD=$ac_cv_prog_LD
8342if test -n "$LD"; then
5213506e
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8344$as_echo "$LD" >&6; }
278a7a38 8345else
5213506e
RW
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347$as_echo "no" >&6; }
278a7a38
AO
8348fi
8349
5213506e 8350
278a7a38
AO
8351 done
8352fi
8353
8354for ncn_progname in ld; do
2693c0b0
PB
8355 if test -n "$ncn_tool_prefix"; then
8356 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8357set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359$as_echo_n "checking for $ac_word... " >&6; }
8360if test "${ac_cv_prog_LD+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8362else
8363 if test -n "$LD"; then
8364 ac_cv_prog_LD="$LD" # Let the user override the test.
8365else
1c710c3c
DJ
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
5213506e
RW
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8373 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8375 break 2
8376 fi
8377done
5213506e
RW
8378 done
8379IFS=$as_save_IFS
1c710c3c 8380
ca9f4b81
AO
8381fi
8382fi
1c710c3c 8383LD=$ac_cv_prog_LD
ca9f4b81 8384if test -n "$LD"; then
5213506e
RW
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8386$as_echo "$LD" >&6; }
ca9f4b81 8387else
5213506e
RW
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389$as_echo "no" >&6; }
ca9f4b81
AO
8390fi
8391
5213506e 8392
2693c0b0
PB
8393 fi
8394 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8396set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398$as_echo_n "checking for $ac_word... " >&6; }
8399if test "${ac_cv_prog_LD+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
ca9f4b81 8401else
2693c0b0
PB
8402 if test -n "$LD"; then
8403 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8404else
1c710c3c
DJ
8405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406for as_dir in $PATH
8407do
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
5213506e
RW
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8412 ac_cv_prog_LD="${ncn_progname}"
5213506e 8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8414 break 2
8415 fi
8416done
5213506e
RW
8417 done
8418IFS=$as_save_IFS
1c710c3c 8419
ca9f4b81
AO
8420fi
8421fi
1c710c3c 8422LD=$ac_cv_prog_LD
2693c0b0 8423if test -n "$LD"; then
5213506e
RW
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8425$as_echo "$LD" >&6; }
ca9f4b81 8426else
5213506e
RW
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428$as_echo "no" >&6; }
ca9f4b81 8429fi
1c710c3c 8430
5213506e 8431
2693c0b0
PB
8432 fi
8433 test -n "$ac_cv_prog_LD" && break
8434done
8435
8436if test -z "$ac_cv_prog_LD" ; then
8437 set dummy ld
8438 if test $build = $host ; then
8439 LD="$2"
ca9f4b81 8440 else
2693c0b0 8441 LD="${ncn_tool_prefix}$2"
ca9f4b81 8442 fi
ca9f4b81
AO
8443fi
8444
278a7a38
AO
8445
8446
8447if test -n "$LIPO"; then
8448 ac_cv_prog_LIPO=$LIPO
8449elif test -n "$ac_cv_prog_LIPO"; then
8450 LIPO=$ac_cv_prog_LIPO
8451fi
8452
8453if test -n "$ac_cv_prog_LIPO"; then
8454 for ncn_progname in lipo; do
8455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8456set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458$as_echo_n "checking for $ac_word... " >&6; }
8459if test "${ac_cv_prog_LIPO+set}" = set; then :
8460 $as_echo_n "(cached) " >&6
278a7a38
AO
8461else
8462 if test -n "$LIPO"; then
8463 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8464else
8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466for as_dir in $PATH
8467do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
5213506e
RW
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8472 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8474 break 2
8475 fi
8476done
5213506e
RW
8477 done
8478IFS=$as_save_IFS
278a7a38
AO
8479
8480fi
8481fi
8482LIPO=$ac_cv_prog_LIPO
8483if test -n "$LIPO"; then
5213506e
RW
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8485$as_echo "$LIPO" >&6; }
278a7a38 8486else
5213506e
RW
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
278a7a38
AO
8489fi
8490
5213506e 8491
278a7a38
AO
8492 done
8493fi
8494
8495for ncn_progname in lipo; do
2abefe3d
PB
8496 if test -n "$ncn_tool_prefix"; then
8497 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8498set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500$as_echo_n "checking for $ac_word... " >&6; }
8501if test "${ac_cv_prog_LIPO+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
2abefe3d
PB
8503else
8504 if test -n "$LIPO"; then
8505 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8506else
1c710c3c
DJ
8507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
5213506e
RW
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8514 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8516 break 2
8517 fi
8518done
5213506e
RW
8519 done
8520IFS=$as_save_IFS
1c710c3c 8521
2abefe3d
PB
8522fi
8523fi
1c710c3c 8524LIPO=$ac_cv_prog_LIPO
2abefe3d 8525if test -n "$LIPO"; then
5213506e
RW
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8527$as_echo "$LIPO" >&6; }
2abefe3d 8528else
5213506e
RW
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530$as_echo "no" >&6; }
2abefe3d
PB
8531fi
8532
5213506e 8533
2abefe3d
PB
8534 fi
8535 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8537set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539$as_echo_n "checking for $ac_word... " >&6; }
8540if test "${ac_cv_prog_LIPO+set}" = set; then :
8541 $as_echo_n "(cached) " >&6
2abefe3d
PB
8542else
8543 if test -n "$LIPO"; then
8544 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8545else
1c710c3c
DJ
8546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547for as_dir in $PATH
8548do
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
5213506e
RW
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8553 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8555 break 2
8556 fi
8557done
5213506e
RW
8558 done
8559IFS=$as_save_IFS
1c710c3c 8560
2abefe3d
PB
8561fi
8562fi
1c710c3c 8563LIPO=$ac_cv_prog_LIPO
2abefe3d 8564if test -n "$LIPO"; then
5213506e
RW
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8566$as_echo "$LIPO" >&6; }
2abefe3d 8567else
5213506e
RW
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569$as_echo "no" >&6; }
2abefe3d 8570fi
1c710c3c 8571
5213506e 8572
2abefe3d
PB
8573 fi
8574 test -n "$ac_cv_prog_LIPO" && break
8575done
8576
8577if test -z "$ac_cv_prog_LIPO" ; then
8578 set dummy lipo
8579 if test $build = $host ; then
8580 LIPO="$2"
8581 else
8582 LIPO="${ncn_tool_prefix}$2"
8583 fi
8584fi
8585
278a7a38
AO
8586
8587
8588if test -n "$NM"; then
8589 ac_cv_prog_NM=$NM
8590elif test -n "$ac_cv_prog_NM"; then
8591 NM=$ac_cv_prog_NM
8592fi
8593
8594if test -n "$ac_cv_prog_NM"; then
8595 for ncn_progname in nm; do
8596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8597set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599$as_echo_n "checking for $ac_word... " >&6; }
8600if test "${ac_cv_prog_NM+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8602else
8603 if test -n "$NM"; then
8604 ac_cv_prog_NM="$NM" # Let the user override the test.
8605else
1c710c3c
DJ
8606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607for as_dir in $PATH
8608do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
5213506e
RW
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8613 ac_cv_prog_NM="${ncn_progname}"
5213506e 8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8615 break 2
8616 fi
8617done
5213506e
RW
8618 done
8619IFS=$as_save_IFS
1c710c3c 8620
ca9f4b81
AO
8621fi
8622fi
1c710c3c 8623NM=$ac_cv_prog_NM
ca9f4b81 8624if test -n "$NM"; then
5213506e
RW
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8626$as_echo "$NM" >&6; }
ca9f4b81 8627else
5213506e
RW
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
ca9f4b81
AO
8630fi
8631
5213506e 8632
278a7a38
AO
8633 done
8634fi
8635
8636for ncn_progname in nm; do
8637 if test -n "$ncn_tool_prefix"; then
8638 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8639set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641$as_echo_n "checking for $ac_word... " >&6; }
8642if test "${ac_cv_prog_NM+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
ca9f4b81 8644else
2693c0b0
PB
8645 if test -n "$NM"; then
8646 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8647else
1c710c3c
DJ
8648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
5213506e
RW
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8655 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8657 break 2
8658 fi
8659done
5213506e
RW
8660 done
8661IFS=$as_save_IFS
1c710c3c 8662
ca9f4b81
AO
8663fi
8664fi
1c710c3c 8665NM=$ac_cv_prog_NM
2693c0b0 8666if test -n "$NM"; then
5213506e
RW
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8668$as_echo "$NM" >&6; }
ca9f4b81 8669else
5213506e
RW
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671$as_echo "no" >&6; }
ca9f4b81 8672fi
1c710c3c 8673
5213506e 8674
2693c0b0 8675 fi
278a7a38
AO
8676 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8678set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680$as_echo_n "checking for $ac_word... " >&6; }
8681if test "${ac_cv_prog_NM+set}" = set; then :
8682 $as_echo_n "(cached) " >&6
278a7a38
AO
8683else
8684 if test -n "$NM"; then
8685 ac_cv_prog_NM="$NM" # Let the user override the test.
8686else
8687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688for as_dir in $PATH
8689do
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
5213506e
RW
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8694 ac_cv_prog_NM="${ncn_progname}"
5213506e 8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8696 break 2
8697 fi
8698done
5213506e
RW
8699 done
8700IFS=$as_save_IFS
278a7a38
AO
8701
8702fi
8703fi
8704NM=$ac_cv_prog_NM
8705if test -n "$NM"; then
5213506e
RW
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8707$as_echo "$NM" >&6; }
278a7a38 8708else
5213506e
RW
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710$as_echo "no" >&6; }
278a7a38
AO
8711fi
8712
5213506e 8713
278a7a38
AO
8714 fi
8715 test -n "$ac_cv_prog_NM" && break
8716done
8717
8718if test -z "$ac_cv_prog_NM" ; then
8719 set dummy nm
8720 if test $build = $host ; then
8721 NM="$2"
8722 else
8723 NM="${ncn_tool_prefix}$2"
8724 fi
8725fi
8726
8727
8728
8729if test -n "$RANLIB"; then
8730 ac_cv_prog_RANLIB=$RANLIB
8731elif test -n "$ac_cv_prog_RANLIB"; then
8732 RANLIB=$ac_cv_prog_RANLIB
8733fi
8734
8735if test -n "$ac_cv_prog_RANLIB"; then
8736 for ncn_progname in ranlib; do
8737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8738set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740$as_echo_n "checking for $ac_word... " >&6; }
8741if test "${ac_cv_prog_RANLIB+set}" = set; then :
8742 $as_echo_n "(cached) " >&6
278a7a38
AO
8743else
8744 if test -n "$RANLIB"; then
8745 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8746else
8747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748for as_dir in $PATH
8749do
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
5213506e
RW
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8754 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8756 break 2
8757 fi
8758done
5213506e
RW
8759 done
8760IFS=$as_save_IFS
278a7a38
AO
8761
8762fi
8763fi
8764RANLIB=$ac_cv_prog_RANLIB
8765if test -n "$RANLIB"; then
5213506e
RW
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8767$as_echo "$RANLIB" >&6; }
278a7a38 8768else
5213506e
RW
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770$as_echo "no" >&6; }
278a7a38
AO
8771fi
8772
5213506e 8773
278a7a38
AO
8774 done
8775fi
ca9f4b81 8776
278a7a38 8777for ncn_progname in ranlib; do
2693c0b0
PB
8778 if test -n "$ncn_tool_prefix"; then
8779 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8780set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782$as_echo_n "checking for $ac_word... " >&6; }
8783if test "${ac_cv_prog_RANLIB+set}" = set; then :
8784 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8785else
8786 if test -n "$RANLIB"; then
8787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8788else
1c710c3c
DJ
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
5213506e
RW
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8796 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8798 break 2
8799 fi
8800done
5213506e
RW
8801 done
8802IFS=$as_save_IFS
1c710c3c 8803
ca9f4b81
AO
8804fi
8805fi
1c710c3c 8806RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8807if test -n "$RANLIB"; then
5213506e
RW
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8809$as_echo "$RANLIB" >&6; }
ca9f4b81 8810else
5213506e
RW
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
ca9f4b81
AO
8813fi
8814
5213506e 8815
2693c0b0
PB
8816 fi
8817 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8819set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821$as_echo_n "checking for $ac_word... " >&6; }
8822if test "${ac_cv_prog_RANLIB+set}" = set; then :
8823 $as_echo_n "(cached) " >&6
ca9f4b81 8824else
2693c0b0
PB
8825 if test -n "$RANLIB"; then
8826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8827else
1c710c3c
DJ
8828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829for as_dir in $PATH
8830do
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
5213506e
RW
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8835 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8837 break 2
8838 fi
8839done
5213506e
RW
8840 done
8841IFS=$as_save_IFS
1c710c3c 8842
ca9f4b81
AO
8843fi
8844fi
1c710c3c 8845RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8846if test -n "$RANLIB"; then
5213506e
RW
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8848$as_echo "$RANLIB" >&6; }
ca9f4b81 8849else
5213506e
RW
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851$as_echo "no" >&6; }
ca9f4b81 8852fi
1c710c3c 8853
5213506e 8854
ca9f4b81 8855 fi
2693c0b0
PB
8856 test -n "$ac_cv_prog_RANLIB" && break
8857done
8858
8859if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8860 RANLIB="true"
ca9f4b81
AO
8861fi
8862
278a7a38
AO
8863
8864
8865if test -n "$STRIP"; then
8866 ac_cv_prog_STRIP=$STRIP
8867elif test -n "$ac_cv_prog_STRIP"; then
8868 STRIP=$ac_cv_prog_STRIP
8869fi
8870
8871if test -n "$ac_cv_prog_STRIP"; then
8872 for ncn_progname in strip; do
8873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8874set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876$as_echo_n "checking for $ac_word... " >&6; }
8877if test "${ac_cv_prog_STRIP+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
278a7a38
AO
8879else
8880 if test -n "$STRIP"; then
8881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8882else
8883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884for as_dir in $PATH
8885do
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
5213506e
RW
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8890 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8892 break 2
8893 fi
8894done
5213506e
RW
8895 done
8896IFS=$as_save_IFS
278a7a38
AO
8897
8898fi
8899fi
8900STRIP=$ac_cv_prog_STRIP
8901if test -n "$STRIP"; then
5213506e
RW
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8903$as_echo "$STRIP" >&6; }
278a7a38 8904else
5213506e
RW
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
278a7a38
AO
8907fi
8908
5213506e 8909
278a7a38
AO
8910 done
8911fi
8912
8913for ncn_progname in strip; do
2abefe3d
PB
8914 if test -n "$ncn_tool_prefix"; then
8915 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8916set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918$as_echo_n "checking for $ac_word... " >&6; }
8919if test "${ac_cv_prog_STRIP+set}" = set; then :
8920 $as_echo_n "(cached) " >&6
2abefe3d
PB
8921else
8922 if test -n "$STRIP"; then
8923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8924else
1c710c3c
DJ
8925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926for as_dir in $PATH
8927do
8928 IFS=$as_save_IFS
8929 test -z "$as_dir" && as_dir=.
5213506e
RW
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8932 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8934 break 2
8935 fi
8936done
5213506e
RW
8937 done
8938IFS=$as_save_IFS
1c710c3c 8939
2abefe3d
PB
8940fi
8941fi
1c710c3c 8942STRIP=$ac_cv_prog_STRIP
2abefe3d 8943if test -n "$STRIP"; then
5213506e
RW
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8945$as_echo "$STRIP" >&6; }
2abefe3d 8946else
5213506e
RW
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948$as_echo "no" >&6; }
2abefe3d
PB
8949fi
8950
5213506e 8951
2abefe3d
PB
8952 fi
8953 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8955set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957$as_echo_n "checking for $ac_word... " >&6; }
8958if test "${ac_cv_prog_STRIP+set}" = set; then :
8959 $as_echo_n "(cached) " >&6
2abefe3d
PB
8960else
8961 if test -n "$STRIP"; then
8962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8963else
1c710c3c
DJ
8964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965for as_dir in $PATH
8966do
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
5213506e
RW
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8971 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8973 break 2
8974 fi
8975done
5213506e
RW
8976 done
8977IFS=$as_save_IFS
1c710c3c 8978
2abefe3d
PB
8979fi
8980fi
1c710c3c 8981STRIP=$ac_cv_prog_STRIP
2abefe3d 8982if test -n "$STRIP"; then
5213506e
RW
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8984$as_echo "$STRIP" >&6; }
2abefe3d 8985else
5213506e
RW
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987$as_echo "no" >&6; }
2abefe3d 8988fi
1c710c3c 8989
5213506e 8990
2abefe3d
PB
8991 fi
8992 test -n "$ac_cv_prog_STRIP" && break
8993done
8994
8995if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 8996 STRIP="true"
2abefe3d
PB
8997fi
8998
278a7a38
AO
8999
9000
9001if test -n "$WINDRES"; then
9002 ac_cv_prog_WINDRES=$WINDRES
9003elif test -n "$ac_cv_prog_WINDRES"; then
9004 WINDRES=$ac_cv_prog_WINDRES
9005fi
9006
9007if test -n "$ac_cv_prog_WINDRES"; then
9008 for ncn_progname in windres; do
9009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9010set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012$as_echo_n "checking for $ac_word... " >&6; }
9013if test "${ac_cv_prog_WINDRES+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
278a7a38
AO
9015else
9016 if test -n "$WINDRES"; then
9017 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9018else
9019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020for as_dir in $PATH
9021do
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
5213506e
RW
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9026 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9028 break 2
9029 fi
9030done
5213506e
RW
9031 done
9032IFS=$as_save_IFS
278a7a38
AO
9033
9034fi
9035fi
9036WINDRES=$ac_cv_prog_WINDRES
9037if test -n "$WINDRES"; then
5213506e
RW
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9039$as_echo "$WINDRES" >&6; }
278a7a38 9040else
5213506e
RW
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042$as_echo "no" >&6; }
278a7a38
AO
9043fi
9044
5213506e 9045
278a7a38
AO
9046 done
9047fi
9048
9049for ncn_progname in windres; do
2693c0b0
PB
9050 if test -n "$ncn_tool_prefix"; then
9051 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9052set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9054$as_echo_n "checking for $ac_word... " >&6; }
9055if test "${ac_cv_prog_WINDRES+set}" = set; then :
9056 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9057else
9058 if test -n "$WINDRES"; then
9059 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9060else
1c710c3c
DJ
9061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062for as_dir in $PATH
9063do
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
5213506e
RW
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9068 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9070 break 2
9071 fi
9072done
5213506e
RW
9073 done
9074IFS=$as_save_IFS
1c710c3c 9075
ca9f4b81
AO
9076fi
9077fi
1c710c3c 9078WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9079if test -n "$WINDRES"; then
5213506e
RW
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9081$as_echo "$WINDRES" >&6; }
ca9f4b81 9082else
5213506e
RW
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084$as_echo "no" >&6; }
ca9f4b81
AO
9085fi
9086
5213506e 9087
2693c0b0
PB
9088 fi
9089 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9091set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9093$as_echo_n "checking for $ac_word... " >&6; }
9094if test "${ac_cv_prog_WINDRES+set}" = set; then :
9095 $as_echo_n "(cached) " >&6
ca9f4b81 9096else
2693c0b0
PB
9097 if test -n "$WINDRES"; then
9098 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9099else
1c710c3c
DJ
9100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101for as_dir in $PATH
9102do
9103 IFS=$as_save_IFS
9104 test -z "$as_dir" && as_dir=.
5213506e
RW
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9107 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9109 break 2
9110 fi
9111done
5213506e
RW
9112 done
9113IFS=$as_save_IFS
1c710c3c 9114
ca9f4b81
AO
9115fi
9116fi
1c710c3c 9117WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9118if test -n "$WINDRES"; then
5213506e
RW
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9120$as_echo "$WINDRES" >&6; }
ca9f4b81 9121else
5213506e
RW
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123$as_echo "no" >&6; }
ca9f4b81 9124fi
1c710c3c 9125
5213506e 9126
2693c0b0
PB
9127 fi
9128 test -n "$ac_cv_prog_WINDRES" && break
9129done
9130
9131if test -z "$ac_cv_prog_WINDRES" ; then
9132 set dummy windres
9133 if test $build = $host ; then
9134 WINDRES="$2"
ca9f4b81 9135 else
2693c0b0 9136 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9137 fi
ca9f4b81
AO
9138fi
9139
278a7a38
AO
9140
9141
901119ae
KT
9142if test -n "$WINDMC"; then
9143 ac_cv_prog_WINDMC=$WINDMC
9144elif test -n "$ac_cv_prog_WINDMC"; then
9145 WINDMC=$ac_cv_prog_WINDMC
9146fi
9147
9148if test -n "$ac_cv_prog_WINDMC"; then
9149 for ncn_progname in windmc; do
9150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9151set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153$as_echo_n "checking for $ac_word... " >&6; }
9154if test "${ac_cv_prog_WINDMC+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
901119ae
KT
9156else
9157 if test -n "$WINDMC"; then
9158 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9159else
9160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161for as_dir in $PATH
9162do
9163 IFS=$as_save_IFS
9164 test -z "$as_dir" && as_dir=.
5213506e
RW
9165 for ac_exec_ext in '' $ac_executable_extensions; do
9166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9167 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9169 break 2
9170 fi
9171done
5213506e
RW
9172 done
9173IFS=$as_save_IFS
901119ae
KT
9174
9175fi
9176fi
9177WINDMC=$ac_cv_prog_WINDMC
9178if test -n "$WINDMC"; then
5213506e
RW
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9180$as_echo "$WINDMC" >&6; }
901119ae 9181else
5213506e
RW
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183$as_echo "no" >&6; }
901119ae
KT
9184fi
9185
5213506e 9186
901119ae
KT
9187 done
9188fi
9189
9190for ncn_progname in windmc; do
9191 if test -n "$ncn_tool_prefix"; then
9192 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9193set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195$as_echo_n "checking for $ac_word... " >&6; }
9196if test "${ac_cv_prog_WINDMC+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
901119ae
KT
9198else
9199 if test -n "$WINDMC"; then
9200 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9201else
9202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203for as_dir in $PATH
9204do
9205 IFS=$as_save_IFS
9206 test -z "$as_dir" && as_dir=.
5213506e
RW
9207 for ac_exec_ext in '' $ac_executable_extensions; do
9208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9209 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9211 break 2
9212 fi
9213done
5213506e
RW
9214 done
9215IFS=$as_save_IFS
901119ae
KT
9216
9217fi
9218fi
9219WINDMC=$ac_cv_prog_WINDMC
9220if test -n "$WINDMC"; then
5213506e
RW
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9222$as_echo "$WINDMC" >&6; }
901119ae 9223else
5213506e
RW
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225$as_echo "no" >&6; }
901119ae
KT
9226fi
9227
5213506e 9228
901119ae
KT
9229 fi
9230 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9232set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234$as_echo_n "checking for $ac_word... " >&6; }
9235if test "${ac_cv_prog_WINDMC+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
901119ae
KT
9237else
9238 if test -n "$WINDMC"; then
9239 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9240else
9241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242for as_dir in $PATH
9243do
9244 IFS=$as_save_IFS
9245 test -z "$as_dir" && as_dir=.
5213506e
RW
9246 for ac_exec_ext in '' $ac_executable_extensions; do
9247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9248 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9250 break 2
9251 fi
9252done
5213506e
RW
9253 done
9254IFS=$as_save_IFS
901119ae
KT
9255
9256fi
9257fi
9258WINDMC=$ac_cv_prog_WINDMC
9259if test -n "$WINDMC"; then
5213506e
RW
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9261$as_echo "$WINDMC" >&6; }
901119ae 9262else
5213506e
RW
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264$as_echo "no" >&6; }
901119ae
KT
9265fi
9266
5213506e 9267
901119ae
KT
9268 fi
9269 test -n "$ac_cv_prog_WINDMC" && break
9270done
9271
9272if test -z "$ac_cv_prog_WINDMC" ; then
9273 set dummy windmc
9274 if test $build = $host ; then
9275 WINDMC="$2"
9276 else
9277 WINDMC="${ncn_tool_prefix}$2"
9278 fi
9279fi
9280
9281
9282
278a7a38
AO
9283if test -n "$OBJCOPY"; then
9284 ac_cv_prog_OBJCOPY=$OBJCOPY
9285elif test -n "$ac_cv_prog_OBJCOPY"; then
9286 OBJCOPY=$ac_cv_prog_OBJCOPY
9287fi
9288
9289if test -n "$ac_cv_prog_OBJCOPY"; then
9290 for ncn_progname in objcopy; do
9291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9292set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294$as_echo_n "checking for $ac_word... " >&6; }
9295if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
278a7a38
AO
9297else
9298 if test -n "$OBJCOPY"; then
9299 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9300else
9301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302for as_dir in $PATH
9303do
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
5213506e
RW
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9308 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9310 break 2
9311 fi
9312done
5213506e
RW
9313 done
9314IFS=$as_save_IFS
278a7a38
AO
9315
9316fi
9317fi
9318OBJCOPY=$ac_cv_prog_OBJCOPY
9319if test -n "$OBJCOPY"; then
5213506e
RW
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9321$as_echo "$OBJCOPY" >&6; }
278a7a38 9322else
5213506e
RW
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324$as_echo "no" >&6; }
278a7a38
AO
9325fi
9326
5213506e 9327
278a7a38
AO
9328 done
9329fi
9330
9331for ncn_progname in objcopy; do
2693c0b0
PB
9332 if test -n "$ncn_tool_prefix"; then
9333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9334set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336$as_echo_n "checking for $ac_word... " >&6; }
9337if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9339else
9340 if test -n "$OBJCOPY"; then
9341 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9342else
1c710c3c
DJ
9343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344for as_dir in $PATH
9345do
9346 IFS=$as_save_IFS
9347 test -z "$as_dir" && as_dir=.
5213506e
RW
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9350 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9352 break 2
9353 fi
9354done
5213506e
RW
9355 done
9356IFS=$as_save_IFS
1c710c3c 9357
ca9f4b81
AO
9358fi
9359fi
1c710c3c 9360OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9361if test -n "$OBJCOPY"; then
5213506e
RW
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9363$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9364else
5213506e
RW
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366$as_echo "no" >&6; }
ca9f4b81
AO
9367fi
9368
5213506e 9369
2693c0b0
PB
9370 fi
9371 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9373set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375$as_echo_n "checking for $ac_word... " >&6; }
9376if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9377 $as_echo_n "(cached) " >&6
ca9f4b81 9378else
2693c0b0
PB
9379 if test -n "$OBJCOPY"; then
9380 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9381else
1c710c3c
DJ
9382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383for as_dir in $PATH
9384do
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
5213506e
RW
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9389 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9391 break 2
9392 fi
9393done
5213506e
RW
9394 done
9395IFS=$as_save_IFS
1c710c3c 9396
ca9f4b81
AO
9397fi
9398fi
1c710c3c 9399OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9400if test -n "$OBJCOPY"; then
5213506e
RW
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9402$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9403else
5213506e
RW
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405$as_echo "no" >&6; }
ca9f4b81 9406fi
1c710c3c 9407
5213506e 9408
2693c0b0
PB
9409 fi
9410 test -n "$ac_cv_prog_OBJCOPY" && break
9411done
9412
9413if test -z "$ac_cv_prog_OBJCOPY" ; then
9414 set dummy objcopy
9415 if test $build = $host ; then
9416 OBJCOPY="$2"
ca9f4b81 9417 else
2693c0b0 9418 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9419 fi
ca9f4b81
AO
9420fi
9421
278a7a38
AO
9422
9423
9424if test -n "$OBJDUMP"; then
9425 ac_cv_prog_OBJDUMP=$OBJDUMP
9426elif test -n "$ac_cv_prog_OBJDUMP"; then
9427 OBJDUMP=$ac_cv_prog_OBJDUMP
9428fi
9429
9430if test -n "$ac_cv_prog_OBJDUMP"; then
9431 for ncn_progname in objdump; do
9432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9433set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435$as_echo_n "checking for $ac_word... " >&6; }
9436if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
278a7a38
AO
9438else
9439 if test -n "$OBJDUMP"; then
9440 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9441else
9442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443for as_dir in $PATH
9444do
9445 IFS=$as_save_IFS
9446 test -z "$as_dir" && as_dir=.
5213506e
RW
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9449 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9451 break 2
9452 fi
9453done
5213506e
RW
9454 done
9455IFS=$as_save_IFS
278a7a38
AO
9456
9457fi
9458fi
9459OBJDUMP=$ac_cv_prog_OBJDUMP
9460if test -n "$OBJDUMP"; then
5213506e
RW
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9462$as_echo "$OBJDUMP" >&6; }
278a7a38 9463else
5213506e
RW
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465$as_echo "no" >&6; }
278a7a38
AO
9466fi
9467
5213506e 9468
278a7a38
AO
9469 done
9470fi
9471
9472for ncn_progname in objdump; do
2693c0b0
PB
9473 if test -n "$ncn_tool_prefix"; then
9474 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9475set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477$as_echo_n "checking for $ac_word... " >&6; }
9478if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9480else
9481 if test -n "$OBJDUMP"; then
9482 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9483else
1c710c3c
DJ
9484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485for as_dir in $PATH
9486do
9487 IFS=$as_save_IFS
9488 test -z "$as_dir" && as_dir=.
5213506e
RW
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9491 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9493 break 2
9494 fi
9495done
5213506e
RW
9496 done
9497IFS=$as_save_IFS
1c710c3c 9498
ca9f4b81
AO
9499fi
9500fi
1c710c3c 9501OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9502if test -n "$OBJDUMP"; then
5213506e
RW
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9504$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9505else
5213506e
RW
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507$as_echo "no" >&6; }
ca9f4b81
AO
9508fi
9509
5213506e 9510
2693c0b0
PB
9511 fi
9512 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9514set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516$as_echo_n "checking for $ac_word... " >&6; }
9517if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
ca9f4b81 9519else
2693c0b0
PB
9520 if test -n "$OBJDUMP"; then
9521 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9522else
1c710c3c
DJ
9523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524for as_dir in $PATH
9525do
9526 IFS=$as_save_IFS
9527 test -z "$as_dir" && as_dir=.
5213506e
RW
9528 for ac_exec_ext in '' $ac_executable_extensions; do
9529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9530 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9532 break 2
9533 fi
9534done
5213506e
RW
9535 done
9536IFS=$as_save_IFS
1c710c3c 9537
ca9f4b81
AO
9538fi
9539fi
1c710c3c 9540OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9541if test -n "$OBJDUMP"; then
5213506e
RW
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9543$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9544else
5213506e
RW
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546$as_echo "no" >&6; }
ca9f4b81 9547fi
1c710c3c 9548
5213506e 9549
2693c0b0
PB
9550 fi
9551 test -n "$ac_cv_prog_OBJDUMP" && break
9552done
9553
9554if test -z "$ac_cv_prog_OBJDUMP" ; then
9555 set dummy objdump
9556 if test $build = $host ; then
9557 OBJDUMP="$2"
ca9f4b81 9558 else
2693c0b0 9559 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9560 fi
ca9f4b81
AO
9561fi
9562
671aa708
NN
9563
9564
9565
9566
9567
2abefe3d 9568# Target tools.
1c710c3c 9569
5213506e
RW
9570# Check whether --with-build-time-tools was given.
9571if test "${with_build_time_tools+set}" = set; then :
9572 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9573 x/*) ;;
9574 *)
9575 with_build_time_tools=
5213506e
RW
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9577$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9578 ;;
9579 esac
ca9f4b81 9580else
e8b05380 9581 with_build_time_tools=
5213506e
RW
9582fi
9583
ca9f4b81 9584
278a7a38
AO
9585
9586
9587if test -n "$CC_FOR_TARGET"; then
9588 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9589elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9590 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9591fi
9592
9593if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9594 for ncn_progname in cc gcc; do
9595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9596set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598$as_echo_n "checking for $ac_word... " >&6; }
9599if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
278a7a38
AO
9601else
9602 if test -n "$CC_FOR_TARGET"; then
9603 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9604else
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
5213506e
RW
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9612 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9614 break 2
9615 fi
9616done
5213506e
RW
9617 done
9618IFS=$as_save_IFS
278a7a38
AO
9619
9620fi
9621fi
9622CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9623if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9625$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9626else
5213506e
RW
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628$as_echo "no" >&6; }
278a7a38
AO
9629fi
9630
5213506e 9631
278a7a38
AO
9632 done
9633fi
9634
9635if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9636 for ncn_progname in cc gcc; do
5213506e
RW
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9638$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9639 if test -x $with_build_time_tools/${ncn_progname}; then
9640 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9642$as_echo "yes" >&6; }
72a7ab82 9643 break
e8b05380 9644 else
5213506e
RW
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646$as_echo "no" >&6; }
72a7ab82
AP
9647 fi
9648 done
4de997d1
PB
9649fi
9650
e8b05380
PB
9651if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9652 for ncn_progname in cc gcc; do
9653 if test -n "$ncn_target_tool_prefix"; then
9654 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9655set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657$as_echo_n "checking for $ac_word... " >&6; }
9658if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
4de997d1
PB
9660else
9661 if test -n "$CC_FOR_TARGET"; then
9662 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9663else
1c710c3c
DJ
9664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665for as_dir in $PATH
9666do
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
5213506e
RW
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9671 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9673 break 2
9674 fi
9675done
5213506e
RW
9676 done
9677IFS=$as_save_IFS
1c710c3c 9678
4de997d1
PB
9679fi
9680fi
1c710c3c 9681CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9682if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9684$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9685else
5213506e
RW
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687$as_echo "no" >&6; }
4de997d1
PB
9688fi
9689
5213506e 9690
e8b05380
PB
9691 fi
9692 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9694set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9696$as_echo_n "checking for $ac_word... " >&6; }
9697if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9698 $as_echo_n "(cached) " >&6
4de997d1 9699else
2693c0b0
PB
9700 if test -n "$CC_FOR_TARGET"; then
9701 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9702else
1c710c3c
DJ
9703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704for as_dir in $PATH
9705do
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
5213506e
RW
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9710 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9712 break 2
9713 fi
9714done
5213506e
RW
9715 done
9716IFS=$as_save_IFS
1c710c3c 9717
4de997d1
PB
9718fi
9719fi
1c710c3c 9720CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9721if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9723$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9724else
5213506e
RW
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9726$as_echo "no" >&6; }
4de997d1 9727fi
1c710c3c 9728
5213506e 9729
e8b05380
PB
9730 fi
9731 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9732 done
9733fi
1c710c3c 9734
2693c0b0
PB
9735if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9736 set dummy cc gcc
9737 if test $build = $target ; then
9738 CC_FOR_TARGET="$2"
4de997d1 9739 else
2693c0b0 9740 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9741 fi
1c00b503
PB
9742else
9743 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9744fi
9745
278a7a38
AO
9746
9747
9748if test -n "$CXX_FOR_TARGET"; then
9749 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9750elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9751 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9752fi
9753
9754if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9755 for ncn_progname in c++ g++ cxx gxx; do
9756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9757set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759$as_echo_n "checking for $ac_word... " >&6; }
9760if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
278a7a38
AO
9762else
9763 if test -n "$CXX_FOR_TARGET"; then
9764 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9765else
9766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767for as_dir in $PATH
9768do
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
5213506e
RW
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9773 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9775 break 2
9776 fi
9777done
5213506e
RW
9778 done
9779IFS=$as_save_IFS
278a7a38
AO
9780
9781fi
9782fi
9783CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9784if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9786$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9787else
5213506e
RW
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789$as_echo "no" >&6; }
278a7a38
AO
9790fi
9791
5213506e 9792
278a7a38
AO
9793 done
9794fi
9795
9796if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9797 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9799$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9800 if test -x $with_build_time_tools/${ncn_progname}; then
9801 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9803$as_echo "yes" >&6; }
e8b05380
PB
9804 break
9805 else
5213506e
RW
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807$as_echo "no" >&6; }
e8b05380
PB
9808 fi
9809 done
9810fi
9811
9812if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9813 for ncn_progname in c++ g++ cxx gxx; do
9814 if test -n "$ncn_target_tool_prefix"; then
9815 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9816set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818$as_echo_n "checking for $ac_word... " >&6; }
9819if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
4de997d1
PB
9821else
9822 if test -n "$CXX_FOR_TARGET"; then
9823 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9824else
1c710c3c
DJ
9825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826for as_dir in $PATH
9827do
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
5213506e
RW
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9832 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9834 break 2
9835 fi
9836done
5213506e
RW
9837 done
9838IFS=$as_save_IFS
1c710c3c 9839
4de997d1
PB
9840fi
9841fi
1c710c3c 9842CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9843if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9845$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9846else
5213506e
RW
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848$as_echo "no" >&6; }
4de997d1
PB
9849fi
9850
5213506e 9851
e8b05380
PB
9852 fi
9853 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9855set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857$as_echo_n "checking for $ac_word... " >&6; }
9858if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
4de997d1 9860else
2693c0b0
PB
9861 if test -n "$CXX_FOR_TARGET"; then
9862 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9863else
1c710c3c
DJ
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
9866do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
5213506e
RW
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9871 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9873 break 2
9874 fi
9875done
5213506e
RW
9876 done
9877IFS=$as_save_IFS
1c710c3c 9878
4de997d1
PB
9879fi
9880fi
1c710c3c 9881CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 9882if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9884$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9885else
5213506e
RW
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887$as_echo "no" >&6; }
4de997d1 9888fi
1c710c3c 9889
5213506e 9890
e8b05380
PB
9891 fi
9892 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9893 done
9894fi
1c710c3c 9895
2693c0b0
PB
9896if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9897 set dummy c++ g++ cxx gxx
9898 if test $build = $target ; then
9899 CXX_FOR_TARGET="$2"
4de997d1 9900 else
2693c0b0 9901 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9902 fi
1c00b503
PB
9903else
9904 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
9905fi
9906
278a7a38
AO
9907
9908
9909if test -n "$GCC_FOR_TARGET"; then
9910 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9911elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9912 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9913fi
9914
9915if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9916 for ncn_progname in gcc; do
9917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9918set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920$as_echo_n "checking for $ac_word... " >&6; }
9921if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
278a7a38
AO
9923else
9924 if test -n "$GCC_FOR_TARGET"; then
9925 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9926else
9927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928for as_dir in $PATH
9929do
9930 IFS=$as_save_IFS
9931 test -z "$as_dir" && as_dir=.
5213506e
RW
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9934 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 9935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9936 break 2
9937 fi
9938done
5213506e
RW
9939 done
9940IFS=$as_save_IFS
278a7a38
AO
9941
9942fi
9943fi
9944GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9945if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9947$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 9948else
5213506e
RW
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950$as_echo "no" >&6; }
278a7a38
AO
9951fi
9952
5213506e 9953
278a7a38
AO
9954 done
9955fi
9956
9957if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9958 for ncn_progname in gcc; do
5213506e
RW
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9960$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9961 if test -x $with_build_time_tools/${ncn_progname}; then
9962 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9964$as_echo "yes" >&6; }
e8b05380
PB
9965 break
9966 else
5213506e
RW
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968$as_echo "no" >&6; }
e8b05380
PB
9969 fi
9970 done
9971fi
9972
9973if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9974 for ncn_progname in gcc; do
9975 if test -n "$ncn_target_tool_prefix"; then
9976 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9977set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979$as_echo_n "checking for $ac_word... " >&6; }
9980if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
ca9f4b81 9982else
e8b05380
PB
9983 if test -n "$GCC_FOR_TARGET"; then
9984 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 9985else
1c710c3c
DJ
9986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987for as_dir in $PATH
9988do
9989 IFS=$as_save_IFS
9990 test -z "$as_dir" && as_dir=.
5213506e
RW
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9993 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9995 break 2
9996 fi
9997done
5213506e
RW
9998 done
9999IFS=$as_save_IFS
1c710c3c 10000
ca9f4b81
AO
10001fi
10002fi
1c710c3c 10003GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10004if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10006$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10007else
5213506e
RW
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009$as_echo "no" >&6; }
ca9f4b81
AO
10010fi
10011
5213506e 10012
e8b05380
PB
10013 fi
10014 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10016set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018$as_echo_n "checking for $ac_word... " >&6; }
10019if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
ca9f4b81 10021else
e8b05380
PB
10022 if test -n "$GCC_FOR_TARGET"; then
10023 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10024else
1c710c3c
DJ
10025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026for as_dir in $PATH
10027do
10028 IFS=$as_save_IFS
10029 test -z "$as_dir" && as_dir=.
5213506e
RW
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10032 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10034 break 2
10035 fi
10036done
5213506e
RW
10037 done
10038IFS=$as_save_IFS
1c710c3c 10039
ca9f4b81
AO
10040fi
10041fi
1c710c3c 10042GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10043if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10045$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10046else
5213506e
RW
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048$as_echo "no" >&6; }
ca9f4b81 10049fi
1c710c3c 10050
5213506e 10051
e8b05380
PB
10052 fi
10053 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10054 done
10055fi
1c710c3c 10056
e8b05380
PB
10057if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10058 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10059else
10060 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10061fi
10062
278a7a38
AO
10063
10064
10065if test -n "$GCJ_FOR_TARGET"; then
10066 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10067elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10068 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10069fi
10070
10071if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10072 for ncn_progname in gcj; do
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10074set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076$as_echo_n "checking for $ac_word... " >&6; }
10077if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
278a7a38
AO
10079else
10080 if test -n "$GCJ_FOR_TARGET"; then
10081 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10082else
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
5213506e
RW
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10090 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10092 break 2
10093 fi
10094done
5213506e
RW
10095 done
10096IFS=$as_save_IFS
278a7a38
AO
10097
10098fi
10099fi
10100GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10101if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10103$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10104else
5213506e
RW
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106$as_echo "no" >&6; }
278a7a38
AO
10107fi
10108
5213506e 10109
278a7a38
AO
10110 done
10111fi
10112
10113if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10114 for ncn_progname in gcj; do
5213506e
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10116$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10117 if test -x $with_build_time_tools/${ncn_progname}; then
10118 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10120$as_echo "yes" >&6; }
e8b05380
PB
10121 break
10122 else
5213506e
RW
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124$as_echo "no" >&6; }
e8b05380
PB
10125 fi
10126 done
10127fi
10128
10129if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10130 for ncn_progname in gcj; do
10131 if test -n "$ncn_target_tool_prefix"; then
10132 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10133set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135$as_echo_n "checking for $ac_word... " >&6; }
10136if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10137 $as_echo_n "(cached) " >&6
e8b05380 10138else
fb0103e5
RG
10139 if test -n "$GCJ_FOR_TARGET"; then
10140 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10141else
1c710c3c
DJ
10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143for as_dir in $PATH
10144do
10145 IFS=$as_save_IFS
10146 test -z "$as_dir" && as_dir=.
5213506e
RW
10147 for ac_exec_ext in '' $ac_executable_extensions; do
10148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10149 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10151 break 2
10152 fi
10153done
5213506e
RW
10154 done
10155IFS=$as_save_IFS
1c710c3c 10156
e8b05380
PB
10157fi
10158fi
278a7a38
AO
10159GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10160if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10162$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10163else
5213506e
RW
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165$as_echo "no" >&6; }
278a7a38
AO
10166fi
10167
5213506e 10168
278a7a38
AO
10169 fi
10170 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10172set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174$as_echo_n "checking for $ac_word... " >&6; }
10175if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
278a7a38
AO
10177else
10178 if test -n "$GCJ_FOR_TARGET"; then
10179 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10180else
10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
5213506e
RW
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10188 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10190 break 2
10191 fi
10192done
5213506e
RW
10193 done
10194IFS=$as_save_IFS
278a7a38
AO
10195
10196fi
10197fi
10198GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10199if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10201$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10202else
5213506e
RW
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204$as_echo "no" >&6; }
278a7a38
AO
10205fi
10206
5213506e 10207
278a7a38
AO
10208 fi
10209 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10210 done
10211fi
10212
10213if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10214 set dummy gcj
10215 if test $build = $target ; then
10216 GCJ_FOR_TARGET="$2"
10217 else
10218 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10219 fi
1c00b503
PB
10220else
10221 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10222fi
10223
10224
10225
10226if test -n "$GFORTRAN_FOR_TARGET"; then
10227 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10228elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10229 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10230fi
10231
278a7a38
AO
10232if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10233 for ncn_progname in gfortran; do
10234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10235set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237$as_echo_n "checking for $ac_word... " >&6; }
10238if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
e8b05380 10240else
278a7a38
AO
10241 if test -n "$GFORTRAN_FOR_TARGET"; then
10242 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10243else
1c710c3c
DJ
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
5213506e
RW
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10251 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10253 break 2
10254 fi
10255done
5213506e
RW
10256 done
10257IFS=$as_save_IFS
1c710c3c 10258
e8b05380
PB
10259fi
10260fi
278a7a38
AO
10261GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10262if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10264$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10265else
5213506e
RW
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
e8b05380 10268fi
1c710c3c 10269
5213506e 10270
e8b05380
PB
10271 done
10272fi
1c710c3c 10273
278a7a38 10274if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10275 for ncn_progname in gfortran; do
5213506e
RW
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10277$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10278 if test -x $with_build_time_tools/${ncn_progname}; then
10279 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10281$as_echo "yes" >&6; }
e8b05380
PB
10282 break
10283 else
5213506e
RW
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285$as_echo "no" >&6; }
e8b05380
PB
10286 fi
10287 done
10288fi
10289
10290if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10291 for ncn_progname in gfortran; do
10292 if test -n "$ncn_target_tool_prefix"; then
10293 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10294set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10296$as_echo_n "checking for $ac_word... " >&6; }
10297if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10298 $as_echo_n "(cached) " >&6
e8b05380
PB
10299else
10300 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10301 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10302else
10303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304for as_dir in $PATH
10305do
10306 IFS=$as_save_IFS
10307 test -z "$as_dir" && as_dir=.
5213506e
RW
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10310 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10312 break 2
10313 fi
10314done
5213506e
RW
10315 done
10316IFS=$as_save_IFS
1c710c3c 10317
e8b05380
PB
10318fi
10319fi
1c710c3c 10320GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10321if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10323$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10324else
5213506e
RW
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326$as_echo "no" >&6; }
e8b05380
PB
10327fi
10328
5213506e 10329
e8b05380
PB
10330 fi
10331 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10333set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335$as_echo_n "checking for $ac_word... " >&6; }
10336if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10337 $as_echo_n "(cached) " >&6
e8b05380
PB
10338else
10339 if test -n "$GFORTRAN_FOR_TARGET"; then
10340 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10341else
1c710c3c
DJ
10342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343for as_dir in $PATH
10344do
10345 IFS=$as_save_IFS
10346 test -z "$as_dir" && as_dir=.
5213506e
RW
10347 for ac_exec_ext in '' $ac_executable_extensions; do
10348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10349 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10351 break 2
10352 fi
10353done
5213506e
RW
10354 done
10355IFS=$as_save_IFS
1c710c3c 10356
e8b05380
PB
10357fi
10358fi
1c710c3c 10359GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10360if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10362$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10363else
5213506e
RW
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365$as_echo "no" >&6; }
e8b05380 10366fi
1c710c3c 10367
5213506e 10368
e8b05380
PB
10369 fi
10370 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10371 done
10372fi
1c710c3c 10373
e8b05380
PB
10374if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10375 set dummy gfortran
2693c0b0 10376 if test $build = $target ; then
e8b05380 10377 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10378 else
e8b05380
PB
10379 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10380 fi
1c00b503
PB
10381else
10382 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10383fi
10384
10385
10386
632e2a07
ILT
10387if test -n "$GOC_FOR_TARGET"; then
10388 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10389elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10390 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10391fi
10392
10393if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10394 for ncn_progname in gccgo; do
10395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10396set dummy ${ncn_progname}; ac_word=$2
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398$as_echo_n "checking for $ac_word... " >&6; }
10399if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
10401else
10402 if test -n "$GOC_FOR_TARGET"; then
10403 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10404else
10405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406for as_dir in $PATH
10407do
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10415 fi
10416done
10417 done
10418IFS=$as_save_IFS
10419
10420fi
10421fi
10422GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10423if test -n "$GOC_FOR_TARGET"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10425$as_echo "$GOC_FOR_TARGET" >&6; }
10426else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428$as_echo "no" >&6; }
10429fi
10430
10431
10432 done
10433fi
10434
10435if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10436 for ncn_progname in gccgo; do
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10438$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10439 if test -x $with_build_time_tools/${ncn_progname}; then
10440 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10442$as_echo "yes" >&6; }
10443 break
10444 else
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446$as_echo "no" >&6; }
10447 fi
10448 done
10449fi
10450
10451if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10452 for ncn_progname in gccgo; do
10453 if test -n "$ncn_target_tool_prefix"; then
10454 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10455set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457$as_echo_n "checking for $ac_word... " >&6; }
10458if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10460else
10461 if test -n "$GOC_FOR_TARGET"; then
10462 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10463else
10464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10471 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475done
10476 done
10477IFS=$as_save_IFS
10478
10479fi
10480fi
10481GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10482if test -n "$GOC_FOR_TARGET"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10484$as_echo "$GOC_FOR_TARGET" >&6; }
10485else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487$as_echo "no" >&6; }
10488fi
10489
10490
10491 fi
10492 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10494set dummy ${ncn_progname}; ac_word=$2
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496$as_echo_n "checking for $ac_word... " >&6; }
10497if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499else
10500 if test -n "$GOC_FOR_TARGET"; then
10501 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10502else
10503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10504for as_dir in $PATH
10505do
10506 IFS=$as_save_IFS
10507 test -z "$as_dir" && as_dir=.
10508 for ac_exec_ext in '' $ac_executable_extensions; do
10509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10510 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10512 break 2
10513 fi
10514done
10515 done
10516IFS=$as_save_IFS
10517
10518fi
10519fi
10520GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10521if test -n "$GOC_FOR_TARGET"; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10523$as_echo "$GOC_FOR_TARGET" >&6; }
10524else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526$as_echo "no" >&6; }
10527fi
10528
10529
10530 fi
10531 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10532 done
10533fi
10534
10535if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10536 set dummy gccgo
10537 if test $build = $target ; then
10538 GOC_FOR_TARGET="$2"
10539 else
10540 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10541 fi
10542else
10543 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10544fi
10545
10546
10547
e8b05380
PB
10548cat > conftest.c << \EOF
10549#ifdef __GNUC__
10550 gcc_yay;
10551#endif
10552EOF
10553if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10554 have_gcc_for_target=yes
10555else
10556 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10557 have_gcc_for_target=no
10558fi
10559rm conftest.c
10560
10561
10562
10563
10564if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10565 if test -n "$with_build_time_tools"; then
5213506e
RW
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10567$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10568 if test -x $with_build_time_tools/ar; then
10569 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10570 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10572$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10573 else
5213506e
RW
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575$as_echo "no" >&6; }
d1f8db0c 10576 fi
e8b05380
PB
10577 elif test $build != $host && test $have_gcc_for_target = yes; then
10578 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10579 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10580 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10581 fi
10582fi
3e19841a 10583if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10584 # Extract the first word of "ar", so it can be a program name with args.
10585set dummy ar; ac_word=$2
5213506e
RW
10586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587$as_echo_n "checking for $ac_word... " >&6; }
10588if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10589 $as_echo_n "(cached) " >&6
e8b05380 10590else
1c710c3c
DJ
10591 case $AR_FOR_TARGET in
10592 [\\/]* | ?:[\\/]*)
e8b05380
PB
10593 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10594 ;;
e8b05380 10595 *)
1c710c3c
DJ
10596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597for as_dir in $gcc_cv_tool_dirs
10598do
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
5213506e
RW
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10603 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10605 break 2
10606 fi
10607done
5213506e
RW
10608 done
10609IFS=$as_save_IFS
1c710c3c 10610
e8b05380
PB
10611 ;;
10612esac
10613fi
1c710c3c 10614AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10615if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10617$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10618else
5213506e
RW
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620$as_echo "no" >&6; }
4de997d1
PB
10621fi
10622
5213506e 10623
e8b05380
PB
10624fi
10625if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10626
10627
10628if test -n "$AR_FOR_TARGET"; then
10629 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10630elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10631 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10632fi
10633
10634if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10635 for ncn_progname in ar; do
10636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10637set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10639$as_echo_n "checking for $ac_word... " >&6; }
10640if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
278a7a38
AO
10642else
10643 if test -n "$AR_FOR_TARGET"; then
10644 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10645else
10646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647for as_dir in $PATH
10648do
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
5213506e
RW
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10653 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10655 break 2
10656 fi
10657done
5213506e
RW
10658 done
10659IFS=$as_save_IFS
278a7a38
AO
10660
10661fi
10662fi
10663AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10664if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10666$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10667else
5213506e
RW
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669$as_echo "no" >&6; }
278a7a38
AO
10670fi
10671
5213506e 10672
278a7a38
AO
10673 done
10674fi
10675
10676if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10677 for ncn_progname in ar; do
5213506e
RW
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10679$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10680 if test -x $with_build_time_tools/${ncn_progname}; then
10681 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10683$as_echo "yes" >&6; }
e8b05380
PB
10684 break
10685 else
5213506e
RW
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687$as_echo "no" >&6; }
e8b05380
PB
10688 fi
10689 done
10690fi
10691
10692if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10693 for ncn_progname in ar; do
10694 if test -n "$ncn_target_tool_prefix"; then
10695 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10696set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698$as_echo_n "checking for $ac_word... " >&6; }
10699if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
4de997d1 10701else
e8b05380
PB
10702 if test -n "$AR_FOR_TARGET"; then
10703 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10704else
1c710c3c
DJ
10705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706for as_dir in $PATH
10707do
10708 IFS=$as_save_IFS
10709 test -z "$as_dir" && as_dir=.
5213506e
RW
10710 for ac_exec_ext in '' $ac_executable_extensions; do
10711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10712 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10714 break 2
10715 fi
10716done
5213506e
RW
10717 done
10718IFS=$as_save_IFS
1c710c3c 10719
4de997d1
PB
10720fi
10721fi
1c710c3c 10722AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10723if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10725$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10726else
5213506e
RW
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728$as_echo "no" >&6; }
4de997d1
PB
10729fi
10730
5213506e 10731
e8b05380
PB
10732 fi
10733 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10735set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737$as_echo_n "checking for $ac_word... " >&6; }
10738if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
e8b05380
PB
10740else
10741 if test -n "$AR_FOR_TARGET"; then
10742 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10743else
1c710c3c
DJ
10744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745for as_dir in $PATH
10746do
10747 IFS=$as_save_IFS
10748 test -z "$as_dir" && as_dir=.
5213506e
RW
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10751 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10753 break 2
10754 fi
10755done
5213506e
RW
10756 done
10757IFS=$as_save_IFS
1c710c3c 10758
e8b05380
PB
10759fi
10760fi
1c710c3c 10761AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10762if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10764$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10765else
5213506e
RW
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767$as_echo "no" >&6; }
e8b05380 10768fi
1c710c3c 10769
5213506e 10770
e8b05380
PB
10771 fi
10772 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10773 done
10774fi
1c710c3c 10775
e8b05380
PB
10776if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10777 set dummy ar
10778 if test $build = $target ; then
10779 AR_FOR_TARGET="$2"
10780 else
10781 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10782 fi
1c00b503
PB
10783else
10784 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10785fi
10786
d1f8db0c
PB
10787else
10788 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10789fi
10790
10791
10792
10793
10794if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10795 if test -n "$with_build_time_tools"; then
5213506e
RW
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10797$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10798 if test -x $with_build_time_tools/as; then
10799 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10800 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10802$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10803 else
5213506e
RW
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805$as_echo "no" >&6; }
d1f8db0c 10806 fi
e8b05380
PB
10807 elif test $build != $host && test $have_gcc_for_target = yes; then
10808 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10809 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10810 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10811 fi
10812fi
3e19841a 10813if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10814 # Extract the first word of "as", so it can be a program name with args.
10815set dummy as; ac_word=$2
5213506e
RW
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817$as_echo_n "checking for $ac_word... " >&6; }
10818if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
e8b05380 10820else
1c710c3c
DJ
10821 case $AS_FOR_TARGET in
10822 [\\/]* | ?:[\\/]*)
e8b05380
PB
10823 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10824 ;;
e8b05380 10825 *)
1c710c3c
DJ
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $gcc_cv_tool_dirs
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
5213506e
RW
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10833 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10835 break 2
10836 fi
10837done
5213506e
RW
10838 done
10839IFS=$as_save_IFS
1c710c3c 10840
e8b05380
PB
10841 ;;
10842esac
10843fi
1c710c3c 10844AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10845if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10847$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10848else
5213506e
RW
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850$as_echo "no" >&6; }
e8b05380
PB
10851fi
10852
5213506e 10853
e8b05380
PB
10854fi
10855if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10856
10857
10858if test -n "$AS_FOR_TARGET"; then
10859 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10860elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10861 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10862fi
10863
10864if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10865 for ncn_progname in as; do
10866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10867set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869$as_echo_n "checking for $ac_word... " >&6; }
10870if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
278a7a38
AO
10872else
10873 if test -n "$AS_FOR_TARGET"; then
10874 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10875else
10876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877for as_dir in $PATH
10878do
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
5213506e
RW
10881 for ac_exec_ext in '' $ac_executable_extensions; do
10882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10883 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10885 break 2
10886 fi
10887done
5213506e
RW
10888 done
10889IFS=$as_save_IFS
278a7a38
AO
10890
10891fi
10892fi
10893AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10894if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10896$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 10897else
5213506e
RW
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899$as_echo "no" >&6; }
278a7a38
AO
10900fi
10901
5213506e 10902
278a7a38
AO
10903 done
10904fi
10905
10906if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10907 for ncn_progname in as; do
5213506e
RW
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10909$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10910 if test -x $with_build_time_tools/${ncn_progname}; then
10911 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10913$as_echo "yes" >&6; }
e8b05380
PB
10914 break
10915 else
5213506e
RW
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917$as_echo "no" >&6; }
e8b05380
PB
10918 fi
10919 done
10920fi
10921
10922if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10923 for ncn_progname in as; do
10924 if test -n "$ncn_target_tool_prefix"; then
10925 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10926set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10928$as_echo_n "checking for $ac_word... " >&6; }
10929if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10930 $as_echo_n "(cached) " >&6
e8b05380
PB
10931else
10932 if test -n "$AS_FOR_TARGET"; then
10933 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10934else
1c710c3c
DJ
10935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936for as_dir in $PATH
10937do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
5213506e
RW
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10942 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10944 break 2
10945 fi
10946done
5213506e
RW
10947 done
10948IFS=$as_save_IFS
1c710c3c 10949
e8b05380
PB
10950fi
10951fi
1c710c3c 10952AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 10953if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10955$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10956else
5213506e
RW
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958$as_echo "no" >&6; }
e8b05380
PB
10959fi
10960
5213506e 10961
e8b05380
PB
10962 fi
10963 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10965set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967$as_echo_n "checking for $ac_word... " >&6; }
10968if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
4de997d1 10970else
e8b05380
PB
10971 if test -n "$AS_FOR_TARGET"; then
10972 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 10973else
1c710c3c
DJ
10974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975for as_dir in $PATH
10976do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
5213506e
RW
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10981 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10983 break 2
10984 fi
10985done
5213506e
RW
10986 done
10987IFS=$as_save_IFS
1c710c3c 10988
4de997d1
PB
10989fi
10990fi
1c710c3c 10991AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 10992if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10994$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 10995else
5213506e
RW
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997$as_echo "no" >&6; }
4de997d1 10998fi
1c710c3c 10999
5213506e 11000
e8b05380
PB
11001 fi
11002 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11003 done
11004fi
1c710c3c 11005
e8b05380
PB
11006if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11007 set dummy as
11008 if test $build = $target ; then
11009 AS_FOR_TARGET="$2"
11010 else
11011 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11012 fi
1c00b503
PB
11013else
11014 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11015fi
2693c0b0 11016
d1f8db0c
PB
11017else
11018 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11019fi
11020
e8b05380
PB
11021
11022
11023
11024if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11025 if test -n "$with_build_time_tools"; then
5213506e
RW
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11027$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11028 if test -x $with_build_time_tools/dlltool; then
11029 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11030 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11032$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11033 else
5213506e
RW
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035$as_echo "no" >&6; }
d1f8db0c 11036 fi
e8b05380
PB
11037 elif test $build != $host && test $have_gcc_for_target = yes; then
11038 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11039 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11040 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11041 fi
11042fi
3e19841a 11043if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11044 # Extract the first word of "dlltool", so it can be a program name with args.
11045set dummy dlltool; ac_word=$2
5213506e
RW
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047$as_echo_n "checking for $ac_word... " >&6; }
11048if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
4de997d1 11050else
1c710c3c
DJ
11051 case $DLLTOOL_FOR_TARGET in
11052 [\\/]* | ?:[\\/]*)
e8b05380
PB
11053 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11054 ;;
e8b05380 11055 *)
1c710c3c
DJ
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $gcc_cv_tool_dirs
11058do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
5213506e
RW
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11063 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11065 break 2
11066 fi
11067done
5213506e
RW
11068 done
11069IFS=$as_save_IFS
1c710c3c 11070
e8b05380
PB
11071 ;;
11072esac
4de997d1 11073fi
1c710c3c 11074DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11075if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11077$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11078else
5213506e
RW
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080$as_echo "no" >&6; }
4de997d1
PB
11081fi
11082
5213506e 11083
e8b05380
PB
11084fi
11085if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11086
11087
11088if test -n "$DLLTOOL_FOR_TARGET"; then
11089 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11090elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11091 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11092fi
11093
11094if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11095 for ncn_progname in dlltool; do
11096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11097set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099$as_echo_n "checking for $ac_word... " >&6; }
11100if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
278a7a38
AO
11102else
11103 if test -n "$DLLTOOL_FOR_TARGET"; then
11104 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11105else
11106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107for as_dir in $PATH
11108do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
5213506e
RW
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11113 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11115 break 2
11116 fi
11117done
5213506e
RW
11118 done
11119IFS=$as_save_IFS
278a7a38
AO
11120
11121fi
11122fi
11123DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11124if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11126$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11127else
5213506e
RW
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129$as_echo "no" >&6; }
278a7a38
AO
11130fi
11131
5213506e 11132
278a7a38
AO
11133 done
11134fi
11135
11136if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11137 for ncn_progname in dlltool; do
5213506e
RW
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11139$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11140 if test -x $with_build_time_tools/${ncn_progname}; then
11141 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11143$as_echo "yes" >&6; }
e8b05380
PB
11144 break
11145 else
5213506e
RW
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147$as_echo "no" >&6; }
e8b05380
PB
11148 fi
11149 done
11150fi
11151
11152if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11153 for ncn_progname in dlltool; do
11154 if test -n "$ncn_target_tool_prefix"; then
11155 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11156set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11158$as_echo_n "checking for $ac_word... " >&6; }
11159if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11160 $as_echo_n "(cached) " >&6
4de997d1 11161else
e8b05380
PB
11162 if test -n "$DLLTOOL_FOR_TARGET"; then
11163 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11164else
1c710c3c
DJ
11165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166for as_dir in $PATH
11167do
11168 IFS=$as_save_IFS
11169 test -z "$as_dir" && as_dir=.
5213506e
RW
11170 for ac_exec_ext in '' $ac_executable_extensions; do
11171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11172 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11174 break 2
11175 fi
11176done
5213506e
RW
11177 done
11178IFS=$as_save_IFS
1c710c3c 11179
4de997d1
PB
11180fi
11181fi
1c710c3c 11182DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11183if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11185$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11186else
5213506e
RW
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188$as_echo "no" >&6; }
4de997d1 11189fi
4de997d1 11190
5213506e 11191
e8b05380
PB
11192 fi
11193 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11195set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197$as_echo_n "checking for $ac_word... " >&6; }
11198if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
4de997d1 11200else
e8b05380
PB
11201 if test -n "$DLLTOOL_FOR_TARGET"; then
11202 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11203else
1c710c3c
DJ
11204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205for as_dir in $PATH
11206do
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
5213506e
RW
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11211 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11213 break 2
11214 fi
11215done
5213506e
RW
11216 done
11217IFS=$as_save_IFS
1c710c3c 11218
4de997d1
PB
11219fi
11220fi
1c710c3c 11221DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11222if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11224$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11225else
5213506e
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; }
4de997d1 11228fi
1c710c3c 11229
5213506e 11230
e8b05380
PB
11231 fi
11232 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11233 done
11234fi
1c710c3c 11235
e8b05380
PB
11236if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11237 set dummy dlltool
11238 if test $build = $target ; then
11239 DLLTOOL_FOR_TARGET="$2"
11240 else
11241 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11242 fi
1c00b503
PB
11243else
11244 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11245fi
11246
d1f8db0c
PB
11247else
11248 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11249fi
11250
4de997d1 11251
e8b05380
PB
11252
11253
11254if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11255 if test -n "$with_build_time_tools"; then
5213506e
RW
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11257$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11258 if test -x $with_build_time_tools/ld; then
11259 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11260 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11262$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11263 else
5213506e
RW
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265$as_echo "no" >&6; }
d1f8db0c 11266 fi
e8b05380
PB
11267 elif test $build != $host && test $have_gcc_for_target = yes; then
11268 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11269 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11270 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11271 fi
e8b05380 11272fi
3e19841a 11273if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11274 # Extract the first word of "ld", so it can be a program name with args.
11275set dummy ld; ac_word=$2
5213506e
RW
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277$as_echo_n "checking for $ac_word... " >&6; }
11278if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
4de997d1 11280else
1c710c3c
DJ
11281 case $LD_FOR_TARGET in
11282 [\\/]* | ?:[\\/]*)
e8b05380
PB
11283 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11284 ;;
e8b05380 11285 *)
1c710c3c
DJ
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287for as_dir in $gcc_cv_tool_dirs
11288do
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
5213506e
RW
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11293 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11295 break 2
11296 fi
11297done
5213506e
RW
11298 done
11299IFS=$as_save_IFS
1c710c3c 11300
e8b05380
PB
11301 ;;
11302esac
4de997d1 11303fi
1c710c3c 11304LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11305if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11307$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11308else
5213506e
RW
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310$as_echo "no" >&6; }
4de997d1 11311fi
2693c0b0 11312
5213506e 11313
e8b05380
PB
11314fi
11315if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11316
11317
11318if test -n "$LD_FOR_TARGET"; then
11319 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11320elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11321 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11322fi
11323
11324if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11325 for ncn_progname in ld; do
11326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11327set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329$as_echo_n "checking for $ac_word... " >&6; }
11330if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11331 $as_echo_n "(cached) " >&6
278a7a38
AO
11332else
11333 if test -n "$LD_FOR_TARGET"; then
11334 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11335else
11336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337for as_dir in $PATH
11338do
11339 IFS=$as_save_IFS
11340 test -z "$as_dir" && as_dir=.
5213506e
RW
11341 for ac_exec_ext in '' $ac_executable_extensions; do
11342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11343 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11345 break 2
11346 fi
11347done
5213506e
RW
11348 done
11349IFS=$as_save_IFS
278a7a38
AO
11350
11351fi
11352fi
11353LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11354if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11356$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11357else
5213506e
RW
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359$as_echo "no" >&6; }
278a7a38
AO
11360fi
11361
5213506e 11362
278a7a38
AO
11363 done
11364fi
11365
11366if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11367 for ncn_progname in ld; do
5213506e
RW
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11369$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11370 if test -x $with_build_time_tools/${ncn_progname}; then
11371 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11373$as_echo "yes" >&6; }
e8b05380
PB
11374 break
11375 else
5213506e
RW
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
e8b05380
PB
11378 fi
11379 done
ca9f4b81
AO
11380fi
11381
e8b05380
PB
11382if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11383 for ncn_progname in ld; do
11384 if test -n "$ncn_target_tool_prefix"; then
11385 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11386set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388$as_echo_n "checking for $ac_word... " >&6; }
11389if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11390 $as_echo_n "(cached) " >&6
ca9f4b81 11391else
4de997d1
PB
11392 if test -n "$LD_FOR_TARGET"; then
11393 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11394else
1c710c3c
DJ
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
5213506e
RW
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11402 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11404 break 2
11405 fi
11406done
5213506e
RW
11407 done
11408IFS=$as_save_IFS
1c710c3c 11409
ca9f4b81
AO
11410fi
11411fi
1c710c3c 11412LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11413if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11415$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11416else
5213506e
RW
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
ca9f4b81
AO
11419fi
11420
5213506e 11421
e8b05380
PB
11422 fi
11423 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11425set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427$as_echo_n "checking for $ac_word... " >&6; }
11428if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
ca9f4b81 11430else
2693c0b0
PB
11431 if test -n "$LD_FOR_TARGET"; then
11432 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11433else
1c710c3c
DJ
11434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435for as_dir in $PATH
11436do
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
5213506e
RW
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11441 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11443 break 2
11444 fi
11445done
5213506e
RW
11446 done
11447IFS=$as_save_IFS
1c710c3c 11448
ca9f4b81
AO
11449fi
11450fi
1c710c3c 11451LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11452if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11454$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11455else
5213506e
RW
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457$as_echo "no" >&6; }
ca9f4b81 11458fi
1c710c3c 11459
5213506e 11460
e8b05380
PB
11461 fi
11462 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11463 done
11464fi
1c710c3c 11465
2693c0b0
PB
11466if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11467 set dummy ld
11468 if test $build = $target ; then
11469 LD_FOR_TARGET="$2"
ca9f4b81 11470 else
2693c0b0 11471 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11472 fi
1c00b503
PB
11473else
11474 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11475fi
11476
d1f8db0c
PB
11477else
11478 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11479fi
11480
11481
11482
11483
11484if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11485 if test -n "$with_build_time_tools"; then
5213506e
RW
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11487$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11488 if test -x $with_build_time_tools/lipo; then
11489 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11490 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11492$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11493 else
5213506e
RW
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495$as_echo "no" >&6; }
d1f8db0c 11496 fi
e8b05380
PB
11497 elif test $build != $host && test $have_gcc_for_target = yes; then
11498 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11499 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11500 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11501 fi
11502fi
278a7a38
AO
11503if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11504 # Extract the first word of "lipo", so it can be a program name with args.
11505set dummy lipo; ac_word=$2
5213506e
RW
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507$as_echo_n "checking for $ac_word... " >&6; }
11508if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
278a7a38
AO
11510else
11511 case $LIPO_FOR_TARGET in
11512 [\\/]* | ?:[\\/]*)
11513 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11514 ;;
11515 *)
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $gcc_cv_tool_dirs
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
5213506e
RW
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11523 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11525 break 2
11526 fi
11527done
5213506e
RW
11528 done
11529IFS=$as_save_IFS
278a7a38
AO
11530
11531 ;;
11532esac
11533fi
11534LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11535if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11537$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11538else
5213506e
RW
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540$as_echo "no" >&6; }
278a7a38
AO
11541fi
11542
5213506e 11543
278a7a38
AO
11544fi
11545if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11546
11547
11548if test -n "$LIPO_FOR_TARGET"; then
11549 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11550elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11551 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11552fi
11553
11554if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11555 for ncn_progname in lipo; do
11556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11557set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559$as_echo_n "checking for $ac_word... " >&6; }
11560if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11561 $as_echo_n "(cached) " >&6
e8b05380 11562else
278a7a38
AO
11563 if test -n "$LIPO_FOR_TARGET"; then
11564 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11565else
11566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567for as_dir in $PATH
1c710c3c
DJ
11568do
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
5213506e
RW
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11573 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11575 break 2
11576 fi
11577done
5213506e
RW
11578 done
11579IFS=$as_save_IFS
1c710c3c 11580
e8b05380 11581fi
278a7a38
AO
11582fi
11583LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11584if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11586$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11587else
5213506e
RW
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589$as_echo "no" >&6; }
e8b05380
PB
11590fi
11591
5213506e 11592
278a7a38 11593 done
e8b05380 11594fi
278a7a38
AO
11595
11596if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11597 for ncn_progname in lipo; do
5213506e
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11599$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11600 if test -x $with_build_time_tools/${ncn_progname}; then
11601 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11603$as_echo "yes" >&6; }
e8b05380
PB
11604 break
11605 else
5213506e
RW
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607$as_echo "no" >&6; }
e8b05380
PB
11608 fi
11609 done
11610fi
11611
11612if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11613 for ncn_progname in lipo; do
11614 if test -n "$ncn_target_tool_prefix"; then
11615 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11616set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618$as_echo_n "checking for $ac_word... " >&6; }
11619if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
040b1c5a
GK
11621else
11622 if test -n "$LIPO_FOR_TARGET"; then
11623 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11624else
1c710c3c
DJ
11625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626for as_dir in $PATH
11627do
11628 IFS=$as_save_IFS
11629 test -z "$as_dir" && as_dir=.
5213506e
RW
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11632 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11634 break 2
11635 fi
11636done
5213506e
RW
11637 done
11638IFS=$as_save_IFS
1c710c3c 11639
040b1c5a
GK
11640fi
11641fi
1c710c3c 11642LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11643if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11645$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11646else
5213506e
RW
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648$as_echo "no" >&6; }
040b1c5a
GK
11649fi
11650
5213506e 11651
e8b05380
PB
11652 fi
11653 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11655set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657$as_echo_n "checking for $ac_word... " >&6; }
11658if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
040b1c5a
GK
11660else
11661 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11662 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11663else
1c710c3c
DJ
11664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665for as_dir in $PATH
11666do
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
5213506e
RW
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11671 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11673 break 2
11674 fi
11675done
5213506e
RW
11676 done
11677IFS=$as_save_IFS
1c710c3c 11678
040b1c5a
GK
11679fi
11680fi
1c710c3c 11681LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11682if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11684$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11685else
5213506e
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687$as_echo "no" >&6; }
040b1c5a 11688fi
1c710c3c 11689
5213506e 11690
e8b05380
PB
11691 fi
11692 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11693 done
11694fi
1c710c3c 11695
040b1c5a
GK
11696if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11697 set dummy lipo
11698 if test $build = $target ; then
11699 LIPO_FOR_TARGET="$2"
11700 else
11701 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11702 fi
1c00b503
PB
11703else
11704 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11705fi
11706
d1f8db0c
PB
11707else
11708 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11709fi
11710
11711
11712
11713
11714if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11715 if test -n "$with_build_time_tools"; then
5213506e
RW
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11717$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11718 if test -x $with_build_time_tools/nm; then
11719 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11720 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11722$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11723 else
5213506e
RW
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725$as_echo "no" >&6; }
d1f8db0c 11726 fi
e8b05380
PB
11727 elif test $build != $host && test $have_gcc_for_target = yes; then
11728 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11729 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11730 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11731 fi
11732fi
3e19841a 11733if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11734 # Extract the first word of "nm", so it can be a program name with args.
11735set dummy nm; ac_word=$2
5213506e
RW
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737$as_echo_n "checking for $ac_word... " >&6; }
11738if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11739 $as_echo_n "(cached) " >&6
e8b05380 11740else
1c710c3c
DJ
11741 case $NM_FOR_TARGET in
11742 [\\/]* | ?:[\\/]*)
e8b05380
PB
11743 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11744 ;;
e8b05380 11745 *)
1c710c3c
DJ
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $gcc_cv_tool_dirs
11748do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
5213506e
RW
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11753 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11755 break 2
11756 fi
11757done
5213506e
RW
11758 done
11759IFS=$as_save_IFS
1c710c3c 11760
e8b05380
PB
11761 ;;
11762esac
11763fi
1c710c3c 11764NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11765if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11767$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11768else
5213506e
RW
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
e8b05380
PB
11771fi
11772
5213506e 11773
e8b05380
PB
11774fi
11775if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11776
11777
11778if test -n "$NM_FOR_TARGET"; then
11779 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11780elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11781 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11782fi
11783
11784if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11785 for ncn_progname in nm; do
11786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11787set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789$as_echo_n "checking for $ac_word... " >&6; }
11790if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11791 $as_echo_n "(cached) " >&6
278a7a38
AO
11792else
11793 if test -n "$NM_FOR_TARGET"; then
11794 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
5213506e
RW
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11803 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11805 break 2
11806 fi
11807done
5213506e
RW
11808 done
11809IFS=$as_save_IFS
278a7a38
AO
11810
11811fi
11812fi
11813NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11814if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11816$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11817else
5213506e
RW
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819$as_echo "no" >&6; }
278a7a38
AO
11820fi
11821
5213506e 11822
278a7a38
AO
11823 done
11824fi
11825
11826if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11827 for ncn_progname in nm; do
5213506e
RW
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11829$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11830 if test -x $with_build_time_tools/${ncn_progname}; then
11831 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11833$as_echo "yes" >&6; }
e8b05380
PB
11834 break
11835 else
5213506e
RW
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
e8b05380
PB
11838 fi
11839 done
11840fi
11841
11842if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11843 for ncn_progname in nm; do
11844 if test -n "$ncn_target_tool_prefix"; then
11845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11846set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848$as_echo_n "checking for $ac_word... " >&6; }
11849if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
ca9f4b81 11851else
4de997d1
PB
11852 if test -n "$NM_FOR_TARGET"; then
11853 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11854else
1c710c3c
DJ
11855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856for as_dir in $PATH
11857do
11858 IFS=$as_save_IFS
11859 test -z "$as_dir" && as_dir=.
5213506e
RW
11860 for ac_exec_ext in '' $ac_executable_extensions; do
11861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11862 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11864 break 2
11865 fi
11866done
5213506e
RW
11867 done
11868IFS=$as_save_IFS
1c710c3c 11869
ca9f4b81
AO
11870fi
11871fi
1c710c3c 11872NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11873if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11875$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11876else
5213506e
RW
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878$as_echo "no" >&6; }
ca9f4b81
AO
11879fi
11880
5213506e 11881
e8b05380
PB
11882 fi
11883 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11885set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887$as_echo_n "checking for $ac_word... " >&6; }
11888if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
ca9f4b81 11890else
2693c0b0
PB
11891 if test -n "$NM_FOR_TARGET"; then
11892 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11893else
1c710c3c
DJ
11894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895for as_dir in $PATH
11896do
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
5213506e
RW
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11901 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11903 break 2
11904 fi
11905done
5213506e
RW
11906 done
11907IFS=$as_save_IFS
1c710c3c 11908
ca9f4b81
AO
11909fi
11910fi
1c710c3c 11911NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 11912if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11914$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11915else
5213506e
RW
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917$as_echo "no" >&6; }
ca9f4b81 11918fi
1c710c3c 11919
5213506e 11920
e8b05380
PB
11921 fi
11922 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11923 done
11924fi
1c710c3c 11925
2693c0b0
PB
11926if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11927 set dummy nm
11928 if test $build = $target ; then
11929 NM_FOR_TARGET="$2"
ca9f4b81 11930 else
2693c0b0 11931 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11932 fi
1c00b503
PB
11933else
11934 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
11935fi
11936
d1f8db0c
PB
11937else
11938 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
11939fi
11940
11941
11942
11943
11944if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11945 if test -n "$with_build_time_tools"; then
5213506e
RW
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11947$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11948 if test -x $with_build_time_tools/objdump; then
11949 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11950 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11952$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 11953 else
5213506e
RW
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955$as_echo "no" >&6; }
d1f8db0c 11956 fi
e8b05380
PB
11957 elif test $build != $host && test $have_gcc_for_target = yes; then
11958 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
11959 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11960 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
11961 fi
11962fi
3e19841a 11963if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11964 # Extract the first word of "objdump", so it can be a program name with args.
11965set dummy objdump; ac_word=$2
5213506e
RW
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967$as_echo_n "checking for $ac_word... " >&6; }
11968if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
e8b05380 11970else
1c710c3c
DJ
11971 case $OBJDUMP_FOR_TARGET in
11972 [\\/]* | ?:[\\/]*)
e8b05380
PB
11973 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11974 ;;
e8b05380 11975 *)
1c710c3c
DJ
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977for as_dir in $gcc_cv_tool_dirs
11978do
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
5213506e
RW
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11983 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11985 break 2
11986 fi
11987done
5213506e
RW
11988 done
11989IFS=$as_save_IFS
1c710c3c 11990
e8b05380
PB
11991 ;;
11992esac
11993fi
1c710c3c 11994OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 11995if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11997$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 11998else
5213506e
RW
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
e8b05380
PB
12001fi
12002
5213506e 12003
e8b05380
PB
12004fi
12005if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12006
12007
12008if test -n "$OBJDUMP_FOR_TARGET"; then
12009 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12010elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12011 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12012fi
12013
12014if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12015 for ncn_progname in objdump; do
12016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12017set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12019$as_echo_n "checking for $ac_word... " >&6; }
12020if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
278a7a38
AO
12022else
12023 if test -n "$OBJDUMP_FOR_TARGET"; then
12024 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12025else
12026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027for as_dir in $PATH
12028do
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
5213506e
RW
12031 for ac_exec_ext in '' $ac_executable_extensions; do
12032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12033 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12035 break 2
12036 fi
12037done
5213506e
RW
12038 done
12039IFS=$as_save_IFS
278a7a38
AO
12040
12041fi
12042fi
12043OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12044if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12046$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12047else
5213506e
RW
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049$as_echo "no" >&6; }
278a7a38
AO
12050fi
12051
5213506e 12052
278a7a38
AO
12053 done
12054fi
12055
12056if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12057 for ncn_progname in objdump; do
5213506e
RW
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12059$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12060 if test -x $with_build_time_tools/${ncn_progname}; then
12061 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12063$as_echo "yes" >&6; }
e8b05380
PB
12064 break
12065 else
5213506e
RW
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067$as_echo "no" >&6; }
e8b05380
PB
12068 fi
12069 done
12070fi
12071
12072if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12073 for ncn_progname in objdump; do
12074 if test -n "$ncn_target_tool_prefix"; then
12075 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12076set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12078$as_echo_n "checking for $ac_word... " >&6; }
12079if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12080 $as_echo_n "(cached) " >&6
d739199a
DJ
12081else
12082 if test -n "$OBJDUMP_FOR_TARGET"; then
12083 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12084else
1c710c3c
DJ
12085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086for as_dir in $PATH
12087do
12088 IFS=$as_save_IFS
12089 test -z "$as_dir" && as_dir=.
5213506e
RW
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12092 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12094 break 2
12095 fi
12096done
5213506e
RW
12097 done
12098IFS=$as_save_IFS
1c710c3c 12099
d739199a
DJ
12100fi
12101fi
1c710c3c 12102OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12103if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12105$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12106else
5213506e
RW
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108$as_echo "no" >&6; }
d739199a
DJ
12109fi
12110
5213506e 12111
e8b05380
PB
12112 fi
12113 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12114 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12115set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
12118if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
d739199a
DJ
12120else
12121 if test -n "$OBJDUMP_FOR_TARGET"; then
12122 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12123else
1c710c3c
DJ
12124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $PATH
12126do
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
5213506e
RW
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12131 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12133 break 2
12134 fi
12135done
5213506e
RW
12136 done
12137IFS=$as_save_IFS
1c710c3c 12138
d739199a
DJ
12139fi
12140fi
1c710c3c 12141OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12142if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12144$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12145else
5213506e
RW
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
d739199a 12148fi
1c710c3c 12149
5213506e 12150
e8b05380
PB
12151 fi
12152 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12153 done
12154fi
1c710c3c 12155
d739199a
DJ
12156if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12157 set dummy objdump
12158 if test $build = $target ; then
12159 OBJDUMP_FOR_TARGET="$2"
12160 else
12161 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12162 fi
1c00b503
PB
12163else
12164 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12165fi
12166
d1f8db0c
PB
12167else
12168 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12169fi
12170
12171
12172
12173
12174if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12175 if test -n "$with_build_time_tools"; then
5213506e
RW
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12177$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12178 if test -x $with_build_time_tools/ranlib; then
12179 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12180 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12182$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12183 else
5213506e
RW
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185$as_echo "no" >&6; }
d1f8db0c 12186 fi
e8b05380
PB
12187 elif test $build != $host && test $have_gcc_for_target = yes; then
12188 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12189 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12190 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12191 fi
12192fi
3e19841a 12193if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12194 # Extract the first word of "ranlib", so it can be a program name with args.
12195set dummy ranlib; ac_word=$2
5213506e
RW
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197$as_echo_n "checking for $ac_word... " >&6; }
12198if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12199 $as_echo_n "(cached) " >&6
e8b05380 12200else
1c710c3c
DJ
12201 case $RANLIB_FOR_TARGET in
12202 [\\/]* | ?:[\\/]*)
e8b05380
PB
12203 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12204 ;;
e8b05380 12205 *)
1c710c3c
DJ
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $gcc_cv_tool_dirs
12208do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
5213506e
RW
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12213 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12215 break 2
12216 fi
12217done
5213506e
RW
12218 done
12219IFS=$as_save_IFS
1c710c3c 12220
e8b05380
PB
12221 ;;
12222esac
12223fi
1c710c3c 12224RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12225if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12227$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12228else
5213506e
RW
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230$as_echo "no" >&6; }
e8b05380
PB
12231fi
12232
5213506e 12233
e8b05380
PB
12234fi
12235if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12236
12237
12238if test -n "$RANLIB_FOR_TARGET"; then
12239 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12240elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12241 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12242fi
12243
12244if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12245 for ncn_progname in ranlib; do
12246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12247set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249$as_echo_n "checking for $ac_word... " >&6; }
12250if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
278a7a38
AO
12252else
12253 if test -n "$RANLIB_FOR_TARGET"; then
12254 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12255else
12256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12257for as_dir in $PATH
12258do
12259 IFS=$as_save_IFS
12260 test -z "$as_dir" && as_dir=.
5213506e
RW
12261 for ac_exec_ext in '' $ac_executable_extensions; do
12262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12263 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12265 break 2
12266 fi
12267done
5213506e
RW
12268 done
12269IFS=$as_save_IFS
278a7a38
AO
12270
12271fi
12272fi
12273RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12274if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12276$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12277else
5213506e
RW
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279$as_echo "no" >&6; }
278a7a38
AO
12280fi
12281
5213506e 12282
278a7a38
AO
12283 done
12284fi
12285
12286if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12287 for ncn_progname in ranlib; do
5213506e
RW
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12289$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12290 if test -x $with_build_time_tools/${ncn_progname}; then
12291 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293$as_echo "yes" >&6; }
e8b05380
PB
12294 break
12295 else
5213506e
RW
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
e8b05380
PB
12298 fi
12299 done
12300fi
12301
12302if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12303 for ncn_progname in ranlib; do
12304 if test -n "$ncn_target_tool_prefix"; then
12305 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12306set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308$as_echo_n "checking for $ac_word... " >&6; }
12309if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
ca9f4b81 12311else
4de997d1
PB
12312 if test -n "$RANLIB_FOR_TARGET"; then
12313 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12314else
1c710c3c
DJ
12315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316for as_dir in $PATH
12317do
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
5213506e
RW
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12322 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12324 break 2
12325 fi
12326done
5213506e
RW
12327 done
12328IFS=$as_save_IFS
1c710c3c 12329
ca9f4b81
AO
12330fi
12331fi
1c710c3c 12332RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12333if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12335$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12336else
5213506e
RW
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338$as_echo "no" >&6; }
ca9f4b81
AO
12339fi
12340
5213506e 12341
e8b05380
PB
12342 fi
12343 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12345set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347$as_echo_n "checking for $ac_word... " >&6; }
12348if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
ca9f4b81 12350else
2693c0b0
PB
12351 if test -n "$RANLIB_FOR_TARGET"; then
12352 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12353else
1c710c3c
DJ
12354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355for as_dir in $PATH
12356do
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
5213506e
RW
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12361 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12363 break 2
12364 fi
12365done
5213506e
RW
12366 done
12367IFS=$as_save_IFS
1c710c3c 12368
ca9f4b81
AO
12369fi
12370fi
1c710c3c 12371RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12372if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12374$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12375else
5213506e
RW
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377$as_echo "no" >&6; }
ca9f4b81 12378fi
1c710c3c 12379
5213506e 12380
e8b05380
PB
12381 fi
12382 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12383 done
12384fi
1c710c3c 12385
e8b05380
PB
12386if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12387 set dummy ranlib
12388 if test $build = $target ; then
12389 RANLIB_FOR_TARGET="$2"
12390 else
12391 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12392 fi
1c00b503
PB
12393else
12394 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12395fi
2693c0b0 12396
d1f8db0c
PB
12397else
12398 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12399fi
12400
e8b05380
PB
12401
12402
12403
12404if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12405 if test -n "$with_build_time_tools"; then
5213506e
RW
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12407$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12408 if test -x $with_build_time_tools/strip; then
12409 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12410 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12412$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12413 else
5213506e
RW
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415$as_echo "no" >&6; }
d1f8db0c 12416 fi
e8b05380
PB
12417 elif test $build != $host && test $have_gcc_for_target = yes; then
12418 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12419 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12420 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12421 fi
12422fi
3e19841a 12423if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12424 # Extract the first word of "strip", so it can be a program name with args.
12425set dummy strip; ac_word=$2
5213506e
RW
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427$as_echo_n "checking for $ac_word... " >&6; }
12428if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
e8b05380 12430else
1c710c3c
DJ
12431 case $STRIP_FOR_TARGET in
12432 [\\/]* | ?:[\\/]*)
e8b05380
PB
12433 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12434 ;;
e8b05380 12435 *)
1c710c3c
DJ
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437for as_dir in $gcc_cv_tool_dirs
12438do
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
5213506e
RW
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12443 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12445 break 2
12446 fi
12447done
5213506e
RW
12448 done
12449IFS=$as_save_IFS
1c710c3c 12450
e8b05380
PB
12451 ;;
12452esac
12453fi
1c710c3c 12454STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12455if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12457$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12458else
5213506e
RW
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460$as_echo "no" >&6; }
e8b05380
PB
12461fi
12462
5213506e 12463
e8b05380
PB
12464fi
12465if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12466
12467
12468if test -n "$STRIP_FOR_TARGET"; then
12469 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12470elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12471 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12472fi
12473
12474if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12475 for ncn_progname in strip; do
12476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12477set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479$as_echo_n "checking for $ac_word... " >&6; }
12480if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12481 $as_echo_n "(cached) " >&6
278a7a38
AO
12482else
12483 if test -n "$STRIP_FOR_TARGET"; then
12484 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12485else
12486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487for as_dir in $PATH
12488do
12489 IFS=$as_save_IFS
12490 test -z "$as_dir" && as_dir=.
5213506e
RW
12491 for ac_exec_ext in '' $ac_executable_extensions; do
12492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12493 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12495 break 2
12496 fi
12497done
5213506e
RW
12498 done
12499IFS=$as_save_IFS
278a7a38
AO
12500
12501fi
12502fi
12503STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12504if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12506$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12507else
5213506e
RW
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509$as_echo "no" >&6; }
278a7a38
AO
12510fi
12511
5213506e 12512
278a7a38
AO
12513 done
12514fi
12515
12516if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12517 for ncn_progname in strip; do
5213506e
RW
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12519$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12520 if test -x $with_build_time_tools/${ncn_progname}; then
12521 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12523$as_echo "yes" >&6; }
e8b05380
PB
12524 break
12525 else
5213506e
RW
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
e8b05380
PB
12528 fi
12529 done
12530fi
12531
12532if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12533 for ncn_progname in strip; do
12534 if test -n "$ncn_target_tool_prefix"; then
12535 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12536set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538$as_echo_n "checking for $ac_word... " >&6; }
12539if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12540 $as_echo_n "(cached) " >&6
af71363e
AS
12541else
12542 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12543 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12544else
12545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546for as_dir in $PATH
12547do
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
5213506e
RW
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12552 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12554 break 2
12555 fi
12556done
5213506e
RW
12557 done
12558IFS=$as_save_IFS
1c710c3c 12559
040b1c5a
GK
12560fi
12561fi
1c710c3c 12562STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12563if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12565$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12566else
5213506e
RW
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568$as_echo "no" >&6; }
040b1c5a
GK
12569fi
12570
5213506e 12571
e8b05380
PB
12572 fi
12573 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12575set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577$as_echo_n "checking for $ac_word... " >&6; }
12578if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
040b1c5a
GK
12580else
12581 if test -n "$STRIP_FOR_TARGET"; then
12582 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12583else
1c710c3c
DJ
12584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585for as_dir in $PATH
12586do
12587 IFS=$as_save_IFS
12588 test -z "$as_dir" && as_dir=.
5213506e
RW
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12591 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12593 break 2
12594 fi
12595done
5213506e
RW
12596 done
12597IFS=$as_save_IFS
1c710c3c 12598
040b1c5a
GK
12599fi
12600fi
1c710c3c 12601STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12602if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12604$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12605else
5213506e
RW
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607$as_echo "no" >&6; }
040b1c5a 12608fi
1c710c3c 12609
5213506e 12610
e8b05380
PB
12611 fi
12612 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12613 done
12614fi
1c710c3c 12615
040b1c5a
GK
12616if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12617 set dummy strip
12618 if test $build = $target ; then
12619 STRIP_FOR_TARGET="$2"
12620 else
12621 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12622 fi
1c00b503
PB
12623else
12624 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
12625fi
12626
d1f8db0c
PB
12627else
12628 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
12629fi
12630
12631
12632
12633
12634if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12635 if test -n "$with_build_time_tools"; then
5213506e
RW
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12637$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12638 if test -x $with_build_time_tools/windres; then
12639 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12640 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12642$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 12643 else
5213506e
RW
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645$as_echo "no" >&6; }
d1f8db0c 12646 fi
e8b05380
PB
12647 elif test $build != $host && test $have_gcc_for_target = yes; then
12648 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
12649 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12650 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
12651 fi
12652fi
3e19841a 12653if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12654 # Extract the first word of "windres", so it can be a program name with args.
12655set dummy windres; ac_word=$2
5213506e
RW
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657$as_echo_n "checking for $ac_word... " >&6; }
12658if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
e8b05380 12660else
1c710c3c
DJ
12661 case $WINDRES_FOR_TARGET in
12662 [\\/]* | ?:[\\/]*)
e8b05380
PB
12663 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12664 ;;
e8b05380 12665 *)
1c710c3c
DJ
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667for as_dir in $gcc_cv_tool_dirs
12668do
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
5213506e
RW
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12673 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12675 break 2
12676 fi
12677done
5213506e
RW
12678 done
12679IFS=$as_save_IFS
1c710c3c 12680
e8b05380
PB
12681 ;;
12682esac
12683fi
1c710c3c 12684WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 12685if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12687$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 12688else
5213506e
RW
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690$as_echo "no" >&6; }
e8b05380
PB
12691fi
12692
5213506e 12693
e8b05380
PB
12694fi
12695if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
12696
12697
12698if test -n "$WINDRES_FOR_TARGET"; then
12699 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12700elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12701 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12702fi
12703
12704if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12705 for ncn_progname in windres; do
12706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12707set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709$as_echo_n "checking for $ac_word... " >&6; }
12710if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12711 $as_echo_n "(cached) " >&6
278a7a38
AO
12712else
12713 if test -n "$WINDRES_FOR_TARGET"; then
12714 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12715else
12716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717for as_dir in $PATH
12718do
12719 IFS=$as_save_IFS
12720 test -z "$as_dir" && as_dir=.
5213506e
RW
12721 for ac_exec_ext in '' $ac_executable_extensions; do
12722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12723 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12725 break 2
12726 fi
12727done
5213506e
RW
12728 done
12729IFS=$as_save_IFS
278a7a38
AO
12730
12731fi
12732fi
12733WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12734if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12736$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 12737else
5213506e
RW
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739$as_echo "no" >&6; }
278a7a38
AO
12740fi
12741
5213506e 12742
278a7a38
AO
12743 done
12744fi
12745
12746if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12747 for ncn_progname in windres; do
5213506e
RW
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12749$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12750 if test -x $with_build_time_tools/${ncn_progname}; then
12751 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12753$as_echo "yes" >&6; }
e8b05380
PB
12754 break
12755 else
5213506e
RW
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757$as_echo "no" >&6; }
e8b05380
PB
12758 fi
12759 done
12760fi
12761
12762if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12763 for ncn_progname in windres; do
12764 if test -n "$ncn_target_tool_prefix"; then
12765 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12766set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12768$as_echo_n "checking for $ac_word... " >&6; }
12769if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
ca9f4b81 12771else
4de997d1
PB
12772 if test -n "$WINDRES_FOR_TARGET"; then
12773 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12774else
1c710c3c
DJ
12775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776for as_dir in $PATH
12777do
12778 IFS=$as_save_IFS
12779 test -z "$as_dir" && as_dir=.
5213506e
RW
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12782 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12784 break 2
12785 fi
12786done
5213506e
RW
12787 done
12788IFS=$as_save_IFS
1c710c3c 12789
ca9f4b81
AO
12790fi
12791fi
1c710c3c 12792WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 12793if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12795$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12796else
5213506e
RW
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798$as_echo "no" >&6; }
ca9f4b81
AO
12799fi
12800
5213506e 12801
e8b05380
PB
12802 fi
12803 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12805set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807$as_echo_n "checking for $ac_word... " >&6; }
12808if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
ca9f4b81 12810else
2693c0b0
PB
12811 if test -n "$WINDRES_FOR_TARGET"; then
12812 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12813else
1c710c3c
DJ
12814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815for as_dir in $PATH
12816do
12817 IFS=$as_save_IFS
12818 test -z "$as_dir" && as_dir=.
5213506e
RW
12819 for ac_exec_ext in '' $ac_executable_extensions; do
12820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12821 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12823 break 2
12824 fi
12825done
5213506e
RW
12826 done
12827IFS=$as_save_IFS
1c710c3c 12828
ca9f4b81
AO
12829fi
12830fi
1c710c3c 12831WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 12832if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12834$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12835else
5213506e
RW
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837$as_echo "no" >&6; }
ca9f4b81 12838fi
1c710c3c 12839
5213506e 12840
e8b05380
PB
12841 fi
12842 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12843 done
12844fi
1c710c3c 12845
2693c0b0
PB
12846if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12847 set dummy windres
12848 if test $build = $target ; then
12849 WINDRES_FOR_TARGET="$2"
ca9f4b81 12850 else
2693c0b0 12851 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12852 fi
1c00b503
PB
12853else
12854 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
12855fi
12856
d1f8db0c
PB
12857else
12858 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
12859fi
12860
4977bab6 12861
901119ae
KT
12862
12863
12864if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12865 if test -n "$with_build_time_tools"; then
5213506e
RW
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12867$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
12868 if test -x $with_build_time_tools/windmc; then
12869 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12870 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12872$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 12873 else
5213506e
RW
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875$as_echo "no" >&6; }
901119ae
KT
12876 fi
12877 elif test $build != $host && test $have_gcc_for_target = yes; then
12878 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
12879 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12880 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
12881 fi
12882fi
12883if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12884 # Extract the first word of "windmc", so it can be a program name with args.
12885set dummy windmc; ac_word=$2
5213506e
RW
12886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887$as_echo_n "checking for $ac_word... " >&6; }
12888if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12889 $as_echo_n "(cached) " >&6
901119ae
KT
12890else
12891 case $WINDMC_FOR_TARGET in
12892 [\\/]* | ?:[\\/]*)
12893 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12894 ;;
12895 *)
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897for as_dir in $gcc_cv_tool_dirs
12898do
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
5213506e
RW
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12903 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12905 break 2
12906 fi
12907done
5213506e
RW
12908 done
12909IFS=$as_save_IFS
901119ae
KT
12910
12911 ;;
12912esac
12913fi
12914WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 12915if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12917$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12918else
5213506e
RW
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920$as_echo "no" >&6; }
901119ae
KT
12921fi
12922
5213506e 12923
901119ae
KT
12924fi
12925if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12926
12927
12928if test -n "$WINDMC_FOR_TARGET"; then
12929 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12930elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12931 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12932fi
12933
12934if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12935 for ncn_progname in windmc; do
12936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12937set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939$as_echo_n "checking for $ac_word... " >&6; }
12940if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12941 $as_echo_n "(cached) " >&6
901119ae
KT
12942else
12943 if test -n "$WINDMC_FOR_TARGET"; then
12944 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12945else
12946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947for as_dir in $PATH
12948do
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
5213506e
RW
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12953 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12955 break 2
12956 fi
12957done
5213506e
RW
12958 done
12959IFS=$as_save_IFS
901119ae
KT
12960
12961fi
12962fi
12963WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12964if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12966$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12967else
5213506e
RW
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969$as_echo "no" >&6; }
901119ae
KT
12970fi
12971
5213506e 12972
901119ae
KT
12973 done
12974fi
12975
12976if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12977 for ncn_progname in windmc; do
5213506e
RW
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12979$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
12980 if test -x $with_build_time_tools/${ncn_progname}; then
12981 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12983$as_echo "yes" >&6; }
901119ae
KT
12984 break
12985 else
5213506e
RW
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
901119ae
KT
12988 fi
12989 done
12990fi
12991
12992if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12993 for ncn_progname in windmc; do
12994 if test -n "$ncn_target_tool_prefix"; then
12995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12996set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
12999if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
901119ae
KT
13001else
13002 if test -n "$WINDMC_FOR_TARGET"; then
13003 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13004else
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
5213506e
RW
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13012 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13014 break 2
13015 fi
13016done
5213506e
RW
13017 done
13018IFS=$as_save_IFS
901119ae
KT
13019
13020fi
13021fi
13022WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13023if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13025$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13026else
5213506e
RW
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028$as_echo "no" >&6; }
901119ae
KT
13029fi
13030
5213506e 13031
901119ae
KT
13032 fi
13033 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13035set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037$as_echo_n "checking for $ac_word... " >&6; }
13038if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13039 $as_echo_n "(cached) " >&6
901119ae
KT
13040else
13041 if test -n "$WINDMC_FOR_TARGET"; then
13042 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13043else
13044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045for as_dir in $PATH
13046do
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
5213506e
RW
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13051 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13053 break 2
13054 fi
13055done
5213506e
RW
13056 done
13057IFS=$as_save_IFS
901119ae
KT
13058
13059fi
13060fi
13061WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13062if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13064$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13065else
5213506e
RW
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067$as_echo "no" >&6; }
901119ae
KT
13068fi
13069
5213506e 13070
901119ae
KT
13071 fi
13072 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13073 done
13074fi
13075
13076if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13077 set dummy windmc
13078 if test $build = $target ; then
13079 WINDMC_FOR_TARGET="$2"
13080 else
13081 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13082 fi
1c00b503
PB
13083else
13084 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13085fi
13086
13087else
13088 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13089fi
13090
13091
2abefe3d
PB
13092RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13093
5213506e
RW
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13095$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13096if test "x${build}" != "x${host}" ; then
e8b05380
PB
13097 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13098 # We already found the complete path
172e41aa 13099 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13101$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13102 else
13103 # Canadian cross, just use what we found
5213506e
RW
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13105$as_echo "pre-installed" >&6; }
e8b05380 13106 fi
2abefe3d
PB
13107else
13108 ok=yes
13109 case " ${configdirs} " in
13110 *" binutils "*) ;;
13111 *) ok=no ;;
13112 esac
1c710c3c 13113
2abefe3d
PB
13114 if test $ok = yes; then
13115 # An in-tree tool is available and we can use it
13116 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13118$as_echo "just compiled" >&6; }
e8b05380
PB
13119 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13120 # We already found the complete path
172e41aa 13121 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13123$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13124 elif test "x$target" = "x$host"; then
13125 # We can use an host tool
13126 AR_FOR_TARGET='$(AR)'
5213506e
RW
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13128$as_echo "host tool" >&6; }
2abefe3d
PB
13129 else
13130 # We need a cross tool
5213506e
RW
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13132$as_echo "pre-installed" >&6; }
2abefe3d
PB
13133 fi
13134fi
0b0dc272 13135
5213506e
RW
13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13137$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13138if test "x${build}" != "x${host}" ; then
e8b05380
PB
13139 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13140 # We already found the complete path
172e41aa 13141 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13143$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13144 else
13145 # Canadian cross, just use what we found
5213506e
RW
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13147$as_echo "pre-installed" >&6; }
e8b05380 13148 fi
2abefe3d
PB
13149else
13150 ok=yes
13151 case " ${configdirs} " in
13152 *" gas "*) ;;
13153 *) ok=no ;;
13154 esac
1c710c3c 13155
2abefe3d
PB
13156 if test $ok = yes; then
13157 # An in-tree tool is available and we can use it
13158 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13160$as_echo "just compiled" >&6; }
e8b05380
PB
13161 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13162 # We already found the complete path
172e41aa 13163 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13165$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13166 elif test "x$target" = "x$host"; then
13167 # We can use an host tool
13168 AS_FOR_TARGET='$(AS)'
5213506e
RW
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13170$as_echo "host tool" >&6; }
2abefe3d
PB
13171 else
13172 # We need a cross tool
5213506e
RW
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13174$as_echo "pre-installed" >&6; }
2abefe3d
PB
13175 fi
13176fi
0b0dc272 13177
5213506e
RW
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13179$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13180if test "x${build}" != "x${host}" ; then
e8b05380
PB
13181 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13182 # We already found the complete path
172e41aa 13183 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13185$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13186 else
13187 # Canadian cross, just use what we found
5213506e
RW
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13189$as_echo "pre-installed" >&6; }
e8b05380 13190 fi
2abefe3d
PB
13191else
13192 ok=yes
13193 case " ${configdirs} " in
13194 *" gcc "*) ;;
13195 *) ok=no ;;
13196 esac
1c710c3c 13197
2abefe3d
PB
13198 if test $ok = yes; then
13199 # An in-tree tool is available and we can use it
13200 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13202$as_echo "just compiled" >&6; }
e8b05380
PB
13203 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13204 # We already found the complete path
172e41aa 13205 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13207$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13208 elif test "x$target" = "x$host"; then
13209 # We can use an host tool
13210 CC_FOR_TARGET='$(CC)'
5213506e
RW
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13212$as_echo "host tool" >&6; }
2abefe3d
PB
13213 else
13214 # We need a cross tool
5213506e
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13216$as_echo "pre-installed" >&6; }
2abefe3d
PB
13217 fi
13218fi
0b0dc272 13219
5213506e
RW
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13221$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13222if test "x${build}" != "x${host}" ; then
e8b05380
PB
13223 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13224 # We already found the complete path
172e41aa 13225 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13227$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13228 else
13229 # Canadian cross, just use what we found
5213506e
RW
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13231$as_echo "pre-installed" >&6; }
e8b05380 13232 fi
2abefe3d
PB
13233else
13234 ok=yes
13235 case " ${configdirs} " in
13236 *" gcc "*) ;;
13237 *) ok=no ;;
13238 esac
13239 case ,${enable_languages}, in
13240 *,c++,*) ;;
13241 *) ok=no ;;
13242 esac
13243 if test $ok = yes; then
13244 # An in-tree tool is available and we can use it
9aff220f 13245 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
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13247$as_echo "just compiled" >&6; }
e8b05380
PB
13248 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13249 # We already found the complete path
172e41aa 13250 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13252$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13253 elif test "x$target" = "x$host"; then
13254 # We can use an host tool
13255 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13257$as_echo "host tool" >&6; }
2abefe3d
PB
13258 else
13259 # We need a cross tool
5213506e
RW
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13261$as_echo "pre-installed" >&6; }
2abefe3d
PB
13262 fi
13263fi
0b0dc272 13264
5213506e
RW
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13266$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13267if test "x${build}" != "x${host}" ; then
e8b05380
PB
13268 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13269 # We already found the complete path
172e41aa 13270 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13272$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13273 else
13274 # Canadian cross, just use what we found
5213506e
RW
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13276$as_echo "pre-installed" >&6; }
e8b05380 13277 fi
2abefe3d
PB
13278else
13279 ok=yes
13280 case " ${configdirs} " in
13281 *" gcc "*) ;;
13282 *) ok=no ;;
13283 esac
13284 case ,${enable_languages}, in
13285 *,c++,*) ;;
13286 *) ok=no ;;
13287 esac
13288 if test $ok = yes; then
13289 # An in-tree tool is available and we can use it
13290 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
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13292$as_echo "just compiled" >&6; }
e8b05380
PB
13293 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13294 # We already found the complete path
172e41aa 13295 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13297$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13298 elif test "x$target" = "x$host"; then
13299 # We can use an host tool
13300 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13302$as_echo "host tool" >&6; }
2abefe3d
PB
13303 else
13304 # We need a cross tool
5213506e
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13306$as_echo "pre-installed" >&6; }
2abefe3d
PB
13307 fi
13308fi
0b0dc272 13309
5213506e
RW
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13311$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13312if test "x${build}" != "x${host}" ; then
e8b05380
PB
13313 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13314 # We already found the complete path
172e41aa 13315 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13317$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13318 else
13319 # Canadian cross, just use what we found
5213506e
RW
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13321$as_echo "pre-installed" >&6; }
e8b05380 13322 fi
2abefe3d
PB
13323else
13324 ok=yes
13325 case " ${configdirs} " in
13326 *" binutils "*) ;;
13327 *) ok=no ;;
13328 esac
1c710c3c 13329
2abefe3d
PB
13330 if test $ok = yes; then
13331 # An in-tree tool is available and we can use it
13332 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13334$as_echo "just compiled" >&6; }
e8b05380
PB
13335 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13336 # We already found the complete path
172e41aa 13337 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13339$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13340 elif test "x$target" = "x$host"; then
13341 # We can use an host tool
13342 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13344$as_echo "host tool" >&6; }
2abefe3d
PB
13345 else
13346 # We need a cross tool
5213506e
RW
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13348$as_echo "pre-installed" >&6; }
2abefe3d
PB
13349 fi
13350fi
0b0dc272 13351
5213506e
RW
13352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13353$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13354if test "x${build}" != "x${host}" ; then
e8b05380
PB
13355 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13356 # We already found the complete path
172e41aa 13357 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13359$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13360 else
13361 # Canadian cross, just use what we found
5213506e
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13363$as_echo "pre-installed" >&6; }
e8b05380 13364 fi
2abefe3d
PB
13365else
13366 ok=yes
13367 case " ${configdirs} " in
13368 *" gcc "*) ;;
13369 *) ok=no ;;
13370 esac
1c710c3c 13371
2abefe3d
PB
13372 if test $ok = yes; then
13373 # An in-tree tool is available and we can use it
13374 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13376$as_echo "just compiled" >&6; }
e8b05380
PB
13377 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13378 # We already found the complete path
172e41aa 13379 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13381$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13382 elif test "x$target" = "x$host"; then
13383 # We can use an host tool
13384 GCC_FOR_TARGET='$()'
5213506e
RW
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13386$as_echo "host tool" >&6; }
2abefe3d
PB
13387 else
13388 # We need a cross tool
5213506e
RW
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13390$as_echo "pre-installed" >&6; }
2abefe3d
PB
13391 fi
13392fi
0b0dc272 13393
5213506e
RW
13394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13395$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13396if test "x${build}" != "x${host}" ; then
e8b05380
PB
13397 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13398 # We already found the complete path
172e41aa 13399 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13401$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13402 else
13403 # Canadian cross, just use what we found
5213506e
RW
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13405$as_echo "pre-installed" >&6; }
e8b05380 13406 fi
2abefe3d
PB
13407else
13408 ok=yes
13409 case " ${configdirs} " in
13410 *" gcc "*) ;;
13411 *) ok=no ;;
13412 esac
13413 case ,${enable_languages}, in
13414 *,java,*) ;;
13415 *) ok=no ;;
13416 esac
13417 if test $ok = yes; then
13418 # An in-tree tool is available and we can use it
13419 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13421$as_echo "just compiled" >&6; }
e8b05380
PB
13422 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13423 # We already found the complete path
172e41aa 13424 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13426$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13427 elif test "x$target" = "x$host"; then
13428 # We can use an host tool
13429 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13431$as_echo "host tool" >&6; }
2abefe3d
PB
13432 else
13433 # We need a cross tool
5213506e
RW
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13435$as_echo "pre-installed" >&6; }
2abefe3d
PB
13436 fi
13437fi
0b0dc272 13438
5213506e
RW
13439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13440$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13441if test "x${build}" != "x${host}" ; then
e8b05380
PB
13442 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13443 # We already found the complete path
172e41aa 13444 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13446$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13447 else
13448 # Canadian cross, just use what we found
5213506e
RW
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13450$as_echo "pre-installed" >&6; }
e8b05380 13451 fi
2abefe3d
PB
13452else
13453 ok=yes
13454 case " ${configdirs} " in
13455 *" gcc "*) ;;
13456 *) ok=no ;;
13457 esac
13458 case ,${enable_languages}, in
13459 *,fortran,*) ;;
13460 *) ok=no ;;
13461 esac
13462 if test $ok = yes; then
13463 # An in-tree tool is available and we can use it
13464 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13466$as_echo "just compiled" >&6; }
e8b05380
PB
13467 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13468 # We already found the complete path
172e41aa 13469 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13471$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13472 elif test "x$target" = "x$host"; then
13473 # We can use an host tool
13474 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13476$as_echo "host tool" >&6; }
2abefe3d
PB
13477 else
13478 # We need a cross tool
5213506e
RW
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13480$as_echo "pre-installed" >&6; }
2abefe3d
PB
13481 fi
13482fi
0b0dc272 13483
632e2a07
ILT
13484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13485$as_echo_n "checking where to find the target gccgo... " >&6; }
13486if test "x${build}" != "x${host}" ; then
13487 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13488 # We already found the complete path
13489 ac_dir=`dirname $GOC_FOR_TARGET`
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13491$as_echo "pre-installed in $ac_dir" >&6; }
13492 else
13493 # Canadian cross, just use what we found
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13495$as_echo "pre-installed" >&6; }
13496 fi
13497else
13498 ok=yes
13499 case " ${configdirs} " in
13500 *" gcc "*) ;;
13501 *) ok=no ;;
13502 esac
13503 case ,${enable_languages}, in
13504 *,go,*) ;;
13505 *) ok=no ;;
13506 esac
13507 if test $ok = yes; then
13508 # An in-tree tool is available and we can use it
13509 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13511$as_echo "just compiled" >&6; }
13512 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13513 # We already found the complete path
13514 ac_dir=`dirname $GOC_FOR_TARGET`
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13516$as_echo "pre-installed in $ac_dir" >&6; }
13517 elif test "x$target" = "x$host"; then
13518 # We can use an host tool
13519 GOC_FOR_TARGET='$(GOC)'
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13521$as_echo "host tool" >&6; }
13522 else
13523 # We need a cross tool
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13525$as_echo "pre-installed" >&6; }
13526 fi
13527fi
13528
5213506e
RW
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13530$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13531if test "x${build}" != "x${host}" ; then
e8b05380
PB
13532 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13533 # We already found the complete path
172e41aa 13534 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13536$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13537 else
13538 # Canadian cross, just use what we found
5213506e
RW
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13540$as_echo "pre-installed" >&6; }
e8b05380 13541 fi
2abefe3d
PB
13542else
13543 ok=yes
13544 case " ${configdirs} " in
13545 *" ld "*) ;;
13546 *) ok=no ;;
13547 esac
1c710c3c 13548
2abefe3d
PB
13549 if test $ok = yes; then
13550 # An in-tree tool is available and we can use it
13551 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13553$as_echo "just compiled" >&6; }
e8b05380
PB
13554 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13555 # We already found the complete path
172e41aa 13556 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13558$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13559 elif test "x$target" = "x$host"; then
13560 # We can use an host tool
13561 LD_FOR_TARGET='$(LD)'
5213506e
RW
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13563$as_echo "host tool" >&6; }
2abefe3d
PB
13564 else
13565 # We need a cross tool
5213506e
RW
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13567$as_echo "pre-installed" >&6; }
2abefe3d
PB
13568 fi
13569fi
0b0dc272 13570
5213506e
RW
13571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13572$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13573if test "x${build}" != "x${host}" ; then
e8b05380
PB
13574 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13575 # We already found the complete path
172e41aa 13576 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13578$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13579 else
13580 # Canadian cross, just use what we found
5213506e
RW
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13582$as_echo "pre-installed" >&6; }
e8b05380 13583 fi
2abefe3d 13584else
e8b05380
PB
13585 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13586 # We already found the complete path
172e41aa 13587 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13589$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 13590 elif test "x$target" = "x$host"; then
2abefe3d
PB
13591 # We can use an host tool
13592 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13594$as_echo "host tool" >&6; }
2abefe3d
PB
13595 else
13596 # We need a cross tool
5213506e
RW
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13598$as_echo "pre-installed" >&6; }
2abefe3d
PB
13599 fi
13600fi
0b0dc272 13601
5213506e
RW
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13603$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13604if test "x${build}" != "x${host}" ; then
e8b05380
PB
13605 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13606 # We already found the complete path
172e41aa 13607 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13609$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13610 else
13611 # Canadian cross, just use what we found
5213506e
RW
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13613$as_echo "pre-installed" >&6; }
e8b05380 13614 fi
2abefe3d
PB
13615else
13616 ok=yes
13617 case " ${configdirs} " in
13618 *" binutils "*) ;;
13619 *) ok=no ;;
13620 esac
1c710c3c 13621
2abefe3d
PB
13622 if test $ok = yes; then
13623 # An in-tree tool is available and we can use it
13624 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13626$as_echo "just compiled" >&6; }
e8b05380
PB
13627 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13628 # We already found the complete path
172e41aa 13629 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13631$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13632 elif test "x$target" = "x$host"; then
13633 # We can use an host tool
13634 NM_FOR_TARGET='$(NM)'
5213506e
RW
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13636$as_echo "host tool" >&6; }
2abefe3d
PB
13637 else
13638 # We need a cross tool
5213506e
RW
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13640$as_echo "pre-installed" >&6; }
2abefe3d
PB
13641 fi
13642fi
0b0dc272 13643
5213506e
RW
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13645$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 13646if test "x${build}" != "x${host}" ; then
e8b05380
PB
13647 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13648 # We already found the complete path
172e41aa 13649 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13651$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13652 else
13653 # Canadian cross, just use what we found
5213506e
RW
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13655$as_echo "pre-installed" >&6; }
e8b05380 13656 fi
2abefe3d
PB
13657else
13658 ok=yes
13659 case " ${configdirs} " in
13660 *" binutils "*) ;;
13661 *) ok=no ;;
13662 esac
1c710c3c 13663
2abefe3d
PB
13664 if test $ok = yes; then
13665 # An in-tree tool is available and we can use it
13666 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13668$as_echo "just compiled" >&6; }
e8b05380
PB
13669 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13670 # We already found the complete path
172e41aa 13671 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13673$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13674 elif test "x$target" = "x$host"; then
13675 # We can use an host tool
13676 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13678$as_echo "host tool" >&6; }
2abefe3d
PB
13679 else
13680 # We need a cross tool
5213506e
RW
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13682$as_echo "pre-installed" >&6; }
2abefe3d
PB
13683 fi
13684fi
0b0dc272 13685
5213506e
RW
13686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13687$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 13688if test "x${build}" != "x${host}" ; then
e8b05380
PB
13689 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13690 # We already found the complete path
172e41aa 13691 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13693$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13694 else
13695 # Canadian cross, just use what we found
5213506e
RW
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13697$as_echo "pre-installed" >&6; }
e8b05380 13698 fi
2abefe3d
PB
13699else
13700 ok=yes
13701 case " ${configdirs} " in
13702 *" binutils "*) ;;
13703 *) ok=no ;;
13704 esac
1c710c3c 13705
2abefe3d
PB
13706 if test $ok = yes; then
13707 # An in-tree tool is available and we can use it
13708 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13710$as_echo "just compiled" >&6; }
e8b05380
PB
13711 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13712 # We already found the complete path
172e41aa 13713 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13715$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13716 elif test "x$target" = "x$host"; then
13717 # We can use an host tool
13718 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13720$as_echo "host tool" >&6; }
2abefe3d
PB
13721 else
13722 # We need a cross tool
5213506e
RW
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13724$as_echo "pre-installed" >&6; }
2abefe3d
PB
13725 fi
13726fi
0b0dc272 13727
5213506e
RW
13728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13729$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 13730if test "x${build}" != "x${host}" ; then
e8b05380
PB
13731 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13732 # We already found the complete path
172e41aa 13733 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13735$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13736 else
13737 # Canadian cross, just use what we found
5213506e
RW
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13739$as_echo "pre-installed" >&6; }
e8b05380 13740 fi
2abefe3d
PB
13741else
13742 ok=yes
13743 case " ${configdirs} " in
13744 *" binutils "*) ;;
13745 *) ok=no ;;
13746 esac
1c710c3c 13747
2abefe3d
PB
13748 if test $ok = yes; then
13749 # An in-tree tool is available and we can use it
455c8f48 13750 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13752$as_echo "just compiled" >&6; }
e8b05380
PB
13753 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13754 # We already found the complete path
172e41aa 13755 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13757$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13758 elif test "x$target" = "x$host"; then
13759 # We can use an host tool
13760 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13762$as_echo "host tool" >&6; }
2abefe3d
PB
13763 else
13764 # We need a cross tool
5213506e
RW
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13766$as_echo "pre-installed" >&6; }
2abefe3d
PB
13767 fi
13768fi
0b0dc272 13769
5213506e
RW
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13771$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 13772if test "x${build}" != "x${host}" ; then
e8b05380
PB
13773 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13774 # We already found the complete path
172e41aa 13775 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13777$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13778 else
13779 # Canadian cross, just use what we found
5213506e
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13781$as_echo "pre-installed" >&6; }
e8b05380 13782 fi
2abefe3d
PB
13783else
13784 ok=yes
13785 case " ${configdirs} " in
13786 *" binutils "*) ;;
13787 *) ok=no ;;
13788 esac
1c710c3c 13789
2abefe3d
PB
13790 if test $ok = yes; then
13791 # An in-tree tool is available and we can use it
13792 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13794$as_echo "just compiled" >&6; }
e8b05380
PB
13795 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13796 # We already found the complete path
172e41aa 13797 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13799$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13800 elif test "x$target" = "x$host"; then
13801 # We can use an host tool
13802 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13804$as_echo "host tool" >&6; }
2abefe3d
PB
13805 else
13806 # We need a cross tool
5213506e
RW
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13808$as_echo "pre-installed" >&6; }
2abefe3d 13809 fi
671aa708 13810fi
be912515 13811
5213506e
RW
13812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13813$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
13814if test "x${build}" != "x${host}" ; then
13815 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13816 # We already found the complete path
13817 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13819$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13820 else
13821 # Canadian cross, just use what we found
5213506e
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13823$as_echo "pre-installed" >&6; }
901119ae
KT
13824 fi
13825else
13826 ok=yes
13827 case " ${configdirs} " in
13828 *" binutils "*) ;;
13829 *) ok=no ;;
13830 esac
13831
13832 if test $ok = yes; then
13833 # An in-tree tool is available and we can use it
13834 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13836$as_echo "just compiled" >&6; }
901119ae
KT
13837 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13838 # We already found the complete path
13839 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13841$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13842 elif test "x$target" = "x$host"; then
13843 # We can use an host tool
13844 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13846$as_echo "host tool" >&6; }
901119ae
KT
13847 else
13848 # We need a cross tool
5213506e
RW
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13850$as_echo "pre-installed" >&6; }
901119ae
KT
13851 fi
13852fi
13853
be912515
NN
13854
13855
2abefe3d 13856
0b0dc272 13857
671aa708
NN
13858# Certain tools may need extra flags.
13859AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13860RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13861NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13862
2abefe3d
PB
13863# When building target libraries, except in a Canadian cross, we use
13864# the same toolchain as the compiler we just built.
13865COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13866COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13867COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13868if test $host = $build; then
13869 case " $configdirs " in
13870 *" gcc "*)
13871 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13872 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13873 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13874 ;;
13875 esac
13876fi
13877
13878
13879
13880
13881
5213506e
RW
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13883$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13884# Check whether --enable-maintainer-mode was given.
13885if test "${enable_maintainer_mode+set}" = set; then :
13886 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
13887else
13888 USE_MAINTAINER_MODE=no
5213506e
RW
13889fi
13890
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13892$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
13893
13894
13895if test "$USE_MAINTAINER_MODE" = yes; then
13896 MAINTAINER_MODE_TRUE=
13897 MAINTAINER_MODE_FALSE='#'
13898else
13899 MAINTAINER_MODE_TRUE='#'
13900 MAINTAINER_MODE_FALSE=
1c710c3c 13901fi
ee03dc5e
AO
13902MAINT=$MAINTAINER_MODE_TRUE
13903
2805b53a
NN
13904# ---------------------
13905# GCC bootstrap support
13906# ---------------------
13907
13908# Stage specific cflags for build.
13909stage1_cflags="-g"
13910case $build in
13911 vax-*-*)
13912 case ${GCC} in
13913 yes) stage1_cflags="-g -Wa,-J" ;;
13914 *) stage1_cflags="-g -J" ;;
13915 esac ;;
2805b53a
NN
13916esac
13917
0b50988a 13918# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 13919if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
13920 saved_CFLAGS="$CFLAGS"
13921
13922 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13923 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13925$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
13927/* end confdefs.h. */
13928
9cc1244e
JJ
13929#if (__GNUC__ < 3) \
13930 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13931 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13932#error http://gcc.gnu.org/PR29382
13933#endif
13934
1c710c3c
DJ
13935int
13936main ()
13937{
13938
13939 ;
13940 return 0;
13941}
13942_ACEOF
5213506e
RW
13943if ac_fn_c_try_compile "$LINENO"; then :
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13945$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 13946else
5213506e
RW
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13948$as_echo "no" >&6; }
1c710c3c 13949fi
5213506e 13950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
13951
13952 CFLAGS="$saved_CFLAGS"
13953fi
13954
13955
2805b53a 13956
8efea775 13957# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
13958# Check whether --enable-stage1-checking was given.
13959if test "${enable_stage1_checking+set}" = set; then :
13960 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 13961else
e643dc23 13962 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 13963 stage1_checking=--enable-checking=yes,types
8efea775 13964else
e643dc23 13965 stage1_checking=--enable-checking=$enable_checking,types
8efea775 13966fi
5213506e 13967fi
8efea775
PB
13968
13969
2aeb72e9 13970
5213506e
RW
13971# Enable -Werror in bootstrap stage2 and later.
13972# Check whether --enable-werror was given.
13973if test "${enable_werror+set}" = set; then :
13974 enableval=$enable_werror;
2805b53a 13975else
416cfb5e 13976 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 13977 enable_werror=yes
88fceb68
PB
13978else
13979 enable_werror=no
13980fi
5213506e
RW
13981fi
13982
09a9c095
NN
13983case ${enable_werror} in
13984 yes) stage2_werror_flag="--enable-werror-always" ;;
13985 *) stage2_werror_flag="" ;;
2805b53a
NN
13986esac
13987
13988
f2689b09
SE
13989# Specify what files to not compare during bootstrap.
13990
13991compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13992case "$target" in
13993 hppa*64*-*-hpux*) ;;
13994 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13995esac
f61428ed
AO
13996case " $configdirs " in
13997*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13998esac
f2689b09
SE
13999
14000
5213506e
RW
14001ac_config_files="$ac_config_files Makefile"
14002
1c710c3c 14003cat >confcache <<\_ACEOF
671aa708
NN
14004# This file is a shell script that caches the results of configure
14005# tests run on this system so they can be shared between configure
1c710c3c
DJ
14006# scripts and configure runs, see configure's option --config-cache.
14007# It is not useful on other systems. If it contains results you don't
14008# want to keep, you may remove or edit it.
671aa708 14009#
1c710c3c
DJ
14010# config.status only pays attention to the cache file if you give it
14011# the --recheck option to rerun configure.
671aa708 14012#
1c710c3c
DJ
14013# `ac_cv_env_foo' variables (set or unset) will be overridden when
14014# loading this file, other *unset* `ac_cv_foo' will be assigned the
14015# following values.
14016
14017_ACEOF
14018
671aa708
NN
14019# The following way of writing the cache mishandles newlines in values,
14020# but we know of no workaround that is simple, portable, and efficient.
5213506e 14021# So, we kill variables containing newlines.
671aa708
NN
14022# Ultrix sh set writes to stderr and can't be redirected directly,
14023# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14024(
14025 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14026 eval ac_val=\$$ac_var
14027 case $ac_val in #(
14028 *${as_nl}*)
14029 case $ac_var in #(
14030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14031$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14032 esac
14033 case $ac_var in #(
14034 _ | IFS | as_nl) ;; #(
14035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14036 *) { eval $ac_var=; unset $ac_var;} ;;
14037 esac ;;
14038 esac
14039 done
14040
1c710c3c 14041 (set) 2>&1 |
5213506e
RW
14042 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14043 *${as_nl}ac_space=\ *)
14044 # `set' does not quote correctly, so add quotes: double-quote
14045 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14046 sed -n \
14047 "s/'/'\\\\''/g;
14048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14049 ;; #(
1c710c3c
DJ
14050 *)
14051 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14053 ;;
5213506e
RW
14054 esac |
14055 sort
14056) |
1c710c3c 14057 sed '
5213506e 14058 /^ac_cv_env_/b end
1c710c3c 14059 t clear
5213506e 14060 :clear
1c710c3c
DJ
14061 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14062 t end
5213506e
RW
14063 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14064 :end' >>confcache
14065if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14066 if test -w "$cache_file"; then
14067 test "x$cache_file" != "x/dev/null" &&
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14069$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14070 cat confcache >$cache_file
671aa708 14071 else
5213506e
RW
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14073$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14074 fi
4977bab6 14075fi
671aa708 14076rm -f confcache
79c06341 14077
671aa708
NN
14078test "x$prefix" = xNONE && prefix=$ac_default_prefix
14079# Let make expand exec_prefix.
14080test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14081
671aa708
NN
14082# Transform confdefs.h into DEFS.
14083# Protect against shell expansion while executing Makefile rules.
14084# Protect against Makefile macro expansion.
1c710c3c
DJ
14085#
14086# If the first sed substitution is executed (which looks for macros that
5213506e 14087# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14088# look for a macro that doesn't take arguments.
5213506e
RW
14089ac_script='
14090:mline
14091/\\$/{
14092 N
14093 s,\\\n,,
14094 b mline
14095}
1c710c3c 14096t clear
5213506e
RW
14097:clear
14098s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14099t quote
5213506e 14100s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14101t quote
5213506e
RW
14102b any
14103:quote
14104s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14105s/\[/\\&/g
14106s/\]/\\&/g
14107s/\$/$$/g
14108H
14109:any
14110${
14111 g
14112 s/^\n//
14113 s/\n/ /g
14114 p
14115}
14116'
14117DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14118
14119
14120ac_libobjs=
14121ac_ltlibobjs=
14122for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14123 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14124 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14125 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14126 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14127 # will be set to the directory where LIBOBJS objects are built.
14128 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14129 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14130done
14131LIBOBJS=$ac_libobjs
fb0103e5 14132
1c710c3c 14133LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14134
af71363e 14135
1c710c3c
DJ
14136
14137: ${CONFIG_STATUS=./config.status}
5213506e 14138ac_write_fail=0
1c710c3c
DJ
14139ac_clean_files_save=$ac_clean_files
14140ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14142$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14143as_write_fail=0
14144cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14145#! $SHELL
14146# Generated by $as_me.
671aa708 14147# Run this file to recreate the current configuration.
671aa708 14148# Compiler output produced by configure, useful for debugging
1c710c3c 14149# configure, is in config.log if it exists.
0b0dc272 14150
1c710c3c
DJ
14151debug=false
14152ac_cs_recheck=false
14153ac_cs_silent=false
1c710c3c 14154
5213506e
RW
14155SHELL=\${CONFIG_SHELL-$SHELL}
14156export SHELL
14157_ASEOF
14158cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14159## -------------------- ##
14160## M4sh Initialization. ##
14161## -------------------- ##
14162
14163# Be more Bourne compatible
14164DUALCASE=1; export DUALCASE # for MKS sh
14165if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14166 emulate sh
14167 NULLCMD=:
5213506e 14168 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14169 # is contrary to our usage. Disable this feature.
14170 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14171 setopt NO_GLOB_SUBST
14172else
14173 case `(set -o) 2>/dev/null` in #(
14174 *posix*) :
14175 set -o posix ;; #(
14176 *) :
14177 ;;
14178esac
1c710c3c 14179fi
1c710c3c 14180
5213506e
RW
14181
14182as_nl='
14183'
14184export as_nl
14185# Printing a long string crashes Solaris 7 /usr/bin/printf.
14186as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14187as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14188as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14189# Prefer a ksh shell builtin over an external printf program on Solaris,
14190# but without wasting forks for bash or zsh.
14191if test -z "$BASH_VERSION$ZSH_VERSION" \
14192 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14193 as_echo='print -r --'
14194 as_echo_n='print -rn --'
14195elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14196 as_echo='printf %s\n'
14197 as_echo_n='printf %s'
14198else
14199 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14200 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14201 as_echo_n='/usr/ucb/echo -n'
14202 else
14203 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14204 as_echo_n_body='eval
14205 arg=$1;
14206 case $arg in #(
14207 *"$as_nl"*)
14208 expr "X$arg" : "X\\(.*\\)$as_nl";
14209 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14210 esac;
14211 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14212 '
14213 export as_echo_n_body
14214 as_echo_n='sh -c $as_echo_n_body as_echo'
14215 fi
14216 export as_echo_body
14217 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14218fi
14219
5213506e
RW
14220# The user is always right.
14221if test "${PATH_SEPARATOR+set}" != set; then
14222 PATH_SEPARATOR=:
14223 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14224 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14225 PATH_SEPARATOR=';'
14226 }
14227fi
14228
14229
14230# IFS
14231# We need space, tab and new line, in precisely that order. Quoting is
14232# there to prevent editors from complaining about space-tab.
14233# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14234# splitting by setting IFS to empty value.)
14235IFS=" "" $as_nl"
14236
14237# Find who we are. Look in the path if we contain no directory separator.
14238case $0 in #((
14239 *[\\/]* ) as_myself=$0 ;;
14240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14241for as_dir in $PATH
14242do
14243 IFS=$as_save_IFS
14244 test -z "$as_dir" && as_dir=.
14245 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14246 done
14247IFS=$as_save_IFS
14248
14249 ;;
14250esac
14251# We did not find ourselves, most probably we were run as `sh COMMAND'
14252# in which case we are not to be found in the path.
14253if test "x$as_myself" = x; then
14254 as_myself=$0
14255fi
14256if test ! -f "$as_myself"; then
14257 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14258 exit 1
14259fi
1c710c3c 14260
5213506e
RW
14261# Unset variables that we do not need and which cause bugs (e.g. in
14262# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14263# suppresses any "Segmentation fault" message there. '((' could
14264# trigger a bug in pdksh 5.2.14.
14265for as_var in BASH_ENV ENV MAIL MAILPATH
14266do eval test x\${$as_var+set} = xset \
14267 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14268done
1c710c3c
DJ
14269PS1='$ '
14270PS2='> '
14271PS4='+ '
14272
14273# NLS nuisances.
5213506e
RW
14274LC_ALL=C
14275export LC_ALL
14276LANGUAGE=C
14277export LANGUAGE
14278
14279# CDPATH.
14280(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14281
14282
14283# as_fn_error ERROR [LINENO LOG_FD]
14284# ---------------------------------
14285# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14286# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14287# script with status $?, using 1 if that was 0.
14288as_fn_error ()
14289{
14290 as_status=$?; test $as_status -eq 0 && as_status=1
14291 if test "$3"; then
14292 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14293 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14294 fi
5213506e
RW
14295 $as_echo "$as_me: error: $1" >&2
14296 as_fn_exit $as_status
14297} # as_fn_error
14298
14299
14300# as_fn_set_status STATUS
14301# -----------------------
14302# Set $? to STATUS, without forking.
14303as_fn_set_status ()
14304{
14305 return $1
14306} # as_fn_set_status
14307
14308# as_fn_exit STATUS
14309# -----------------
14310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14311as_fn_exit ()
14312{
14313 set +e
14314 as_fn_set_status $1
14315 exit $1
14316} # as_fn_exit
14317
14318# as_fn_unset VAR
14319# ---------------
14320# Portably unset VAR.
14321as_fn_unset ()
14322{
14323 { eval $1=; unset $1;}
14324}
14325as_unset=as_fn_unset
14326# as_fn_append VAR VALUE
14327# ----------------------
14328# Append the text in VALUE to the end of the definition contained in VAR. Take
14329# advantage of any shell optimizations that allow amortized linear growth over
14330# repeated appends, instead of the typical quadratic growth present in naive
14331# implementations.
14332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14333 eval 'as_fn_append ()
14334 {
14335 eval $1+=\$2
14336 }'
14337else
14338 as_fn_append ()
14339 {
14340 eval $1=\$$1\$2
14341 }
14342fi # as_fn_append
14343
14344# as_fn_arith ARG...
14345# ------------------
14346# Perform arithmetic evaluation on the ARGs, and store the result in the
14347# global $as_val. Take advantage of shells that can avoid forks. The arguments
14348# must be portable across $(()) and expr.
14349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14350 eval 'as_fn_arith ()
14351 {
14352 as_val=$(( $* ))
14353 }'
14354else
14355 as_fn_arith ()
14356 {
14357 as_val=`expr "$@" || test $? -eq 1`
14358 }
14359fi # as_fn_arith
14360
1c710c3c 14361
5213506e
RW
14362if expr a : '\(a\)' >/dev/null 2>&1 &&
14363 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14364 as_expr=expr
14365else
14366 as_expr=false
14367fi
14368
5213506e 14369if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14370 as_basename=basename
14371else
14372 as_basename=false
14373fi
14374
5213506e
RW
14375if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14376 as_dirname=dirname
14377else
14378 as_dirname=false
14379fi
1c710c3c 14380
5213506e 14381as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14382$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14383 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14384 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14385$as_echo X/"$0" |
14386 sed '/^.*\/\([^/][^/]*\)\/*$/{
14387 s//\1/
14388 q
14389 }
14390 /^X\/\(\/\/\)$/{
14391 s//\1/
14392 q
14393 }
14394 /^X\/\(\/\).*/{
14395 s//\1/
14396 q
14397 }
14398 s/.*/./; q'`
2aeb72e9 14399
2aeb72e9
DD
14400# Avoid depending upon Character Ranges.
14401as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14402as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14403as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14404as_cr_digits='0123456789'
14405as_cr_alnum=$as_cr_Letters$as_cr_digits
14406
5213506e
RW
14407ECHO_C= ECHO_N= ECHO_T=
14408case `echo -n x` in #(((((
14409-n*)
14410 case `echo 'xy\c'` in
14411 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14412 xy) ECHO_C='\c';;
14413 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14414 ECHO_T=' ';;
14415 esac;;
14416*)
14417 ECHO_N='-n';;
1c710c3c
DJ
14418esac
14419
5213506e
RW
14420rm -f conf$$ conf$$.exe conf$$.file
14421if test -d conf$$.dir; then
14422 rm -f conf$$.dir/conf$$.file
1c710c3c 14423else
5213506e
RW
14424 rm -f conf$$.dir
14425 mkdir conf$$.dir 2>/dev/null
1c710c3c 14426fi
5213506e
RW
14427if (echo >conf$$.file) 2>/dev/null; then
14428 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14429 as_ln_s='ln -s'
5213506e
RW
14430 # ... but there are two gotchas:
14431 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14432 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14433 # In both cases, we have to default to `cp -p'.
14434 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14435 as_ln_s='cp -p'
14436 elif ln conf$$.file conf$$ 2>/dev/null; then
14437 as_ln_s=ln
14438 else
14439 as_ln_s='cp -p'
2aeb72e9 14440 fi
1c710c3c
DJ
14441else
14442 as_ln_s='cp -p'
14443fi
5213506e
RW
14444rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14445rmdir conf$$.dir 2>/dev/null
14446
14447
14448# as_fn_mkdir_p
14449# -------------
14450# Create "$as_dir" as a directory, including parents if necessary.
14451as_fn_mkdir_p ()
14452{
14453
14454 case $as_dir in #(
14455 -*) as_dir=./$as_dir;;
14456 esac
14457 test -d "$as_dir" || eval $as_mkdir_p || {
14458 as_dirs=
14459 while :; do
14460 case $as_dir in #(
14461 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14462 *) as_qdir=$as_dir;;
14463 esac
14464 as_dirs="'$as_qdir' $as_dirs"
14465 as_dir=`$as_dirname -- "$as_dir" ||
14466$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14467 X"$as_dir" : 'X\(//\)[^/]' \| \
14468 X"$as_dir" : 'X\(//\)$' \| \
14469 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14470$as_echo X"$as_dir" |
14471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14472 s//\1/
14473 q
14474 }
14475 /^X\(\/\/\)[^/].*/{
14476 s//\1/
14477 q
14478 }
14479 /^X\(\/\/\)$/{
14480 s//\1/
14481 q
14482 }
14483 /^X\(\/\).*/{
14484 s//\1/
14485 q
14486 }
14487 s/.*/./; q'`
14488 test -d "$as_dir" && break
14489 done
14490 test -z "$as_dirs" || eval "mkdir $as_dirs"
14491 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14492
1c710c3c 14493
5213506e 14494} # as_fn_mkdir_p
1c710c3c 14495if mkdir -p . 2>/dev/null; then
5213506e 14496 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14497else
14498 test -d ./-p && rmdir ./-p
14499 as_mkdir_p=false
14500fi
14501
5213506e
RW
14502if test -x / >/dev/null 2>&1; then
14503 as_test_x='test -x'
14504else
14505 if ls -dL / >/dev/null 2>&1; then
14506 as_ls_L_option=L
14507 else
14508 as_ls_L_option=
14509 fi
14510 as_test_x='
14511 eval sh -c '\''
14512 if test -d "$1"; then
14513 test -d "$1/.";
14514 else
14515 case $1 in #(
14516 -*)set "./$1";;
14517 esac;
14518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14519 ???[sx]*):;;*)false;;esac;fi
14520 '\'' sh
14521 '
14522fi
14523as_executable_p=$as_test_x
1c710c3c
DJ
14524
14525# Sed expression to map a string onto a valid CPP name.
14526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14527
14528# Sed expression to map a string onto a valid variable name.
14529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14530
14531
1c710c3c 14532exec 6>&1
5213506e
RW
14533## ----------------------------------- ##
14534## Main body of $CONFIG_STATUS script. ##
14535## ----------------------------------- ##
14536_ASEOF
14537test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14538
14539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14540# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14541# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14542# values after options handling.
14543ac_log="
1c710c3c 14544This file was extended by $as_me, which was
5213506e 14545generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14546
14547 CONFIG_FILES = $CONFIG_FILES
14548 CONFIG_HEADERS = $CONFIG_HEADERS
14549 CONFIG_LINKS = $CONFIG_LINKS
14550 CONFIG_COMMANDS = $CONFIG_COMMANDS
14551 $ $0 $@
14552
5213506e
RW
14553on `(hostname || uname -n) 2>/dev/null | sed 1q`
14554"
14555
1c710c3c
DJ
14556_ACEOF
14557
5213506e
RW
14558case $ac_config_files in *"
14559"*) set x $ac_config_files; shift; ac_config_files=$*;;
14560esac
1c710c3c 14561
2aeb72e9 14562
2aeb72e9 14563
5213506e
RW
14564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14565# Files that config.status was made for.
14566config_files="$ac_config_files"
1c710c3c 14567
5213506e 14568_ACEOF
2aeb72e9 14569
5213506e 14570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 14571ac_cs_usage="\
5213506e
RW
14572\`$as_me' instantiates files and other configuration actions
14573from templates according to the current configuration. Unless the files
14574and actions are specified as TAGs, all are instantiated by default.
1c710c3c 14575
5213506e 14576Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
14577
14578 -h, --help print this help, then exit
5213506e
RW
14579 -V, --version print version number and configuration settings, then exit
14580 -q, --quiet, --silent
14581 do not print progress messages
1c710c3c
DJ
14582 -d, --debug don't remove temporary files
14583 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
14584 --file=FILE[:TEMPLATE]
14585 instantiate the configuration file FILE
1c710c3c
DJ
14586
14587Configuration files:
14588$config_files
14589
5213506e 14590Report bugs to the package provider."
2aeb72e9 14591
5213506e
RW
14592_ACEOF
14593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
14594ac_cs_version="\\
14595config.status
5213506e
RW
14596configured by $0, generated by GNU Autoconf 2.64,
14597 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 14598
5213506e 14599Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
14600This config.status script is free software; the Free Software Foundation
14601gives unlimited permission to copy, distribute and modify it."
5213506e
RW
14602
14603ac_pwd='$ac_pwd'
14604srcdir='$srcdir'
14605INSTALL='$INSTALL'
87264276 14606AWK='$AWK'
5213506e 14607test -n "\$AWK" || AWK=awk
1c710c3c
DJ
14608_ACEOF
14609
5213506e
RW
14610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14611# The default lists apply if the user does not specify any file.
1c710c3c
DJ
14612ac_need_defaults=:
14613while test $# != 0
a4b9e93e 14614do
1c710c3c
DJ
14615 case $1 in
14616 --*=*)
5213506e
RW
14617 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14618 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
14619 ac_shift=:
14620 ;;
5213506e 14621 *)
1c710c3c
DJ
14622 ac_option=$1
14623 ac_optarg=$2
14624 ac_shift=shift
14625 ;;
1c710c3c
DJ
14626 esac
14627
14628 case $ac_option in
14629 # Handling of the options.
671aa708 14630 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 14631 ac_cs_recheck=: ;;
5213506e
RW
14632 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14633 $as_echo "$ac_cs_version"; exit ;;
14634 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
14635 debug=: ;;
14636 --file | --fil | --fi | --f )
14637 $ac_shift
5213506e
RW
14638 case $ac_optarg in
14639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14640 esac
14641 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 14642 ac_need_defaults=false;;
5213506e
RW
14643 --he | --h | --help | --hel | -h )
14644 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
14645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14646 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14647 ac_cs_silent=: ;;
14648
14649 # This is an error.
5213506e
RW
14650 -*) as_fn_error "unrecognized option: \`$1'
14651Try \`$0 --help' for more information." ;;
1c710c3c 14652
5213506e
RW
14653 *) as_fn_append ac_config_targets " $1"
14654 ac_need_defaults=false ;;
1c710c3c 14655
0b0dc272 14656 esac
1c710c3c 14657 shift
0b0dc272
AM
14658done
14659
1c710c3c 14660ac_configure_extra_args=
0b0dc272 14661
1c710c3c
DJ
14662if $ac_cs_silent; then
14663 exec 6>/dev/null
14664 ac_configure_extra_args="$ac_configure_extra_args --silent"
14665fi
0b0dc272 14666
1c710c3c 14667_ACEOF
5213506e 14668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 14669if \$ac_cs_recheck; then
5213506e
RW
14670 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14671 shift
14672 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14673 CONFIG_SHELL='$SHELL'
14674 export CONFIG_SHELL
14675 exec "\$@"
1c710c3c
DJ
14676fi
14677
14678_ACEOF
5213506e
RW
14679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14680exec 5>>config.log
14681{
14682 echo
14683 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14684## Running $as_me. ##
14685_ASBOX
14686 $as_echo "$ac_log"
14687} >&5
1c710c3c 14688
5213506e
RW
14689_ACEOF
14690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
14691#
14692# INIT-COMMANDS
14693#
14694extrasub_build="$extrasub_build"
14695 extrasub_host="$extrasub_host"
14696 extrasub_target="$extrasub_target"
14697
5213506e 14698_ACEOF
1c710c3c 14699
5213506e 14700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 14701
5213506e 14702# Handling of arguments.
1c710c3c
DJ
14703for ac_config_target in $ac_config_targets
14704do
5213506e
RW
14705 case $ac_config_target in
14706 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14707
14708 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
14709 esac
14710done
14711
5213506e 14712
1c710c3c
DJ
14713# If the user did not use the arguments to specify the items to instantiate,
14714# then the envvar interface is used. Set only those that are not.
14715# We use the long form for the default assignment because of an extremely
14716# bizarre bug on SunOS 4.1.3.
14717if $ac_need_defaults; then
14718 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14719fi
14720
14721# Have a temporary directory for convenience. Make it in the build tree
5213506e 14722# simply because there is no reason against having it here, and in addition,
1c710c3c 14723# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
14724# Hook for its removal unless debugging.
14725# Note that there is a small window in which the directory will not be cleaned:
14726# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
14727$debug ||
14728{
5213506e
RW
14729 tmp=
14730 trap 'exit_status=$?
14731 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14732' 0
14733 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 14734}
1c710c3c
DJ
14735# Create a (secure) tmp directory for tmp files.
14736
14737{
5213506e 14738 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
14739 test -n "$tmp" && test -d "$tmp"
14740} ||
14741{
5213506e
RW
14742 tmp=./conf$$-$RANDOM
14743 (umask 077 && mkdir "$tmp")
14744} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14745
14746# Set up the scripts for CONFIG_FILES section.
14747# No need to generate them if there are no CONFIG_FILES.
14748# This happens for instance with `./config.status config.h'.
14749if test -n "$CONFIG_FILES"; then
14750
14751if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14752 ac_cs_awk_getline=:
14753 ac_cs_awk_pipe_init=
14754 ac_cs_awk_read_file='
14755 while ((getline aline < (F[key])) > 0)
14756 print(aline)
14757 close(F[key])'
14758 ac_cs_awk_pipe_fini=
14759else
14760 ac_cs_awk_getline=false
14761 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14762 ac_cs_awk_read_file='
14763 print "|#_!!_#|"
14764 print "cat " F[key] " &&"
14765 '$ac_cs_awk_pipe_init
14766 # The final `:' finishes the AND list.
14767 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14768fi
14769ac_cr=`echo X | tr X '\015'`
14770# On cygwin, bash can eat \r inside `` if the user requested igncr.
14771# But we know of no other shell where ac_cr would be empty at this
14772# point, so we can use a bashism as a fallback.
14773if test "x$ac_cr" = x; then
14774 eval ac_cr=\$\'\\r\'
14775fi
14776ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14777if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14778 ac_cs_awk_cr='\r'
14779else
14780 ac_cs_awk_cr=$ac_cr
14781fi
14782
14783echo 'BEGIN {' >"$tmp/subs1.awk" &&
14784_ACEOF
14785
14786# Create commands to substitute file output variables.
1c710c3c 14787{
5213506e
RW
14788 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14789 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14790 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14791 echo "_ACAWK" &&
14792 echo "_ACEOF"
14793} >conf$$files.sh &&
14794. ./conf$$files.sh ||
14795 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14796rm -f conf$$files.sh
1c710c3c 14797
5213506e
RW
14798{
14799 echo "cat >conf$$subs.awk <<_ACEOF" &&
14800 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14801 echo "_ACEOF"
14802} >conf$$subs.sh ||
14803 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14804ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14805ac_delim='%!_!# '
14806for ac_last_try in false false false false false :; do
14807 . ./conf$$subs.sh ||
14808 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14809
14810 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14811 if test $ac_delim_n = $ac_delim_num; then
14812 break
14813 elif $ac_last_try; then
14814 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14815 else
14816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14817 fi
14818done
14819rm -f conf$$subs.sh
14820
14821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14822cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 14823_ACEOF
5213506e
RW
14824sed -n '
14825h
14826s/^/S["/; s/!.*/"]=/
14827p
14828g
14829s/^[^!]*!//
14830:repl
14831t repl
14832s/'"$ac_delim"'$//
14833t delim
14834:nl
14835h
14836s/\(.\{148\}\).*/\1/
14837t more1
14838s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14839p
14840n
14841b repl
14842:more1
14843s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14844p
14845g
14846s/.\{148\}//
14847t nl
14848:delim
14849h
14850s/\(.\{148\}\).*/\1/
14851t more2
14852s/["\\]/\\&/g; s/^/"/; s/$/"/
14853p
14854b
14855:more2
14856s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14857p
14858g
14859s/.\{148\}//
14860t delim
14861' <conf$$subs.awk | sed '
14862/^[^""]/{
14863 N
14864 s/\n//
14865}
14866' >>$CONFIG_STATUS || ac_write_fail=1
14867rm -f conf$$subs.awk
14868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14869_ACAWK
14870cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14871 for (key in S) S_is_set[key] = 1
14872 FS = "\a"
14873 \$ac_cs_awk_pipe_init
14874}
14875{
14876 line = $ 0
14877 nfields = split(line, field, "@")
14878 substed = 0
14879 len = length(field[1])
14880 for (i = 2; i < nfields; i++) {
14881 key = field[i]
14882 keylen = length(key)
14883 if (S_is_set[key]) {
14884 value = S[key]
14885 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14886 len += length(value) + length(field[++i])
14887 substed = 1
14888 } else
14889 len += 1 + keylen
14890 }
14891 if (nfields == 3 && !substed) {
14892 key = field[2]
14893 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14894 \$ac_cs_awk_read_file
14895 next
14896 }
14897 }
14898 print line
14899}
14900\$ac_cs_awk_pipe_fini
14901_ACAWK
14902_ACEOF
14903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14904if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14905 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14906else
14907 cat
14908fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14909 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14910_ACEOF
14911
14912# VPATH may cause trouble with some makes, so we remove $(srcdir),
14913# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14914# trailing colons and then remove the whole line if VPATH becomes empty
14915# (actually we leave an empty line to preserve line numbers).
14916if test "x$srcdir" = x.; then
14917 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14918s/:*\$(srcdir):*/:/
14919s/:*\${srcdir}:*/:/
14920s/:*@srcdir@:*/:/
14921s/^\([^=]*=[ ]*\):*/\1/
14922s/:*$//
14923s/^[^=]*=[ ]*$//
14924}'
14925fi
2aeb72e9 14926
5213506e
RW
14927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14928fi # test -n "$CONFIG_FILES"
2aeb72e9 14929
1c710c3c 14930
5213506e
RW
14931eval set X " :F $CONFIG_FILES "
14932shift
14933for ac_tag
14934do
14935 case $ac_tag in
14936 :[FHLC]) ac_mode=$ac_tag; continue;;
14937 esac
14938 case $ac_mode$ac_tag in
14939 :[FHL]*:*);;
14940 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14941 :[FH]-) ac_tag=-:-;;
14942 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14943 esac
14944 ac_save_IFS=$IFS
14945 IFS=:
14946 set x $ac_tag
14947 IFS=$ac_save_IFS
14948 shift
14949 ac_file=$1
14950 shift
79c06341 14951
5213506e
RW
14952 case $ac_mode in
14953 :L) ac_source=$1;;
14954 :[FH])
14955 ac_file_inputs=
14956 for ac_f
14957 do
14958 case $ac_f in
14959 -) ac_f="$tmp/stdin";;
14960 *) # Look for the file first in the build tree, then in the source tree
14961 # (if the path is not absolute). The absolute path cannot be DOS-style,
14962 # because $ac_f cannot contain `:'.
14963 test -f "$ac_f" ||
14964 case $ac_f in
14965 [\\/$]*) false;;
14966 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14967 esac ||
14968 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14969 esac
14970 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14971 as_fn_append ac_file_inputs " '$ac_f'"
14972 done
1c710c3c 14973
5213506e
RW
14974 # Let's still pretend it is `configure' which instantiates (i.e., don't
14975 # use $as_me), people would be surprised to read:
14976 # /* config.h. Generated by config.status. */
14977 configure_input='Generated from '`
14978 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14979 `' by configure.'
14980 if test x"$ac_file" != x-; then
14981 configure_input="$ac_file. $configure_input"
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14983$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 14984 fi
5213506e
RW
14985 # Neutralize special characters interpreted by sed in replacement strings.
14986 case $configure_input in #(
14987 *\&* | *\|* | *\\* )
14988 ac_sed_conf_input=`$as_echo "$configure_input" |
14989 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14990 *) ac_sed_conf_input=$configure_input;;
14991 esac
11a67599 14992
5213506e
RW
14993 case $ac_tag in
14994 *:-:* | *:-) cat >"$tmp/stdin" \
14995 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14996 esac
14997 ;;
11a67599
ZW
14998 esac
14999
5213506e 15000 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15001$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15002 X"$ac_file" : 'X\(//\)[^/]' \| \
15003 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15004 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15005$as_echo X"$ac_file" |
15006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15007 s//\1/
15008 q
15009 }
15010 /^X\(\/\/\)[^/].*/{
15011 s//\1/
15012 q
15013 }
15014 /^X\(\/\/\)$/{
15015 s//\1/
15016 q
15017 }
15018 /^X\(\/\).*/{
15019 s//\1/
15020 q
15021 }
15022 s/.*/./; q'`
15023 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15024 ac_builddir=.
0b0dc272 15025
5213506e
RW
15026case "$ac_dir" in
15027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15028*)
15029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15030 # A ".." for each directory in $ac_dir_suffix.
15031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15032 case $ac_top_builddir_sub in
15033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15035 esac ;;
15036esac
15037ac_abs_top_builddir=$ac_pwd
15038ac_abs_builddir=$ac_pwd$ac_dir_suffix
15039# for backward compatibility:
15040ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15041
15042case $srcdir in
5213506e 15043 .) # We are building in place.
1c710c3c 15044 ac_srcdir=.
5213506e
RW
15045 ac_top_srcdir=$ac_top_builddir_sub
15046 ac_abs_top_srcdir=$ac_pwd ;;
15047 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15048 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15049 ac_top_srcdir=$srcdir
15050 ac_abs_top_srcdir=$srcdir ;;
15051 *) # Relative name.
15052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15053 ac_top_srcdir=$ac_top_build_prefix$srcdir
15054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15055esac
5213506e 15056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15057
0b0dc272 15058
5213506e
RW
15059 case $ac_mode in
15060 :F)
15061 #
15062 # CONFIG_FILE
15063 #
1c710c3c
DJ
15064
15065 case $INSTALL in
15066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15067 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15068 esac
5213506e 15069_ACEOF
11a67599 15070
5213506e
RW
15071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15072# If the template does not know about datarootdir, expand it.
15073# FIXME: This hack should be removed a few years after 2.60.
15074ac_datarootdir_hack=; ac_datarootdir_seen=
15075ac_sed_dataroot='
15076/datarootdir/ {
15077 p
15078 q
15079}
15080/@datadir@/p
15081/@docdir@/p
15082/@infodir@/p
15083/@localedir@/p
15084/@mandir@/p'
15085case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15086*datarootdir*) ac_datarootdir_seen=yes;;
15087*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15089$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15090_ACEOF
5213506e
RW
15091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15092 ac_datarootdir_hack='
15093 s&@datadir@&$datadir&g
15094 s&@docdir@&$docdir&g
15095 s&@infodir@&$infodir&g
15096 s&@localedir@&$localedir&g
15097 s&@mandir@&$mandir&g
15098 s&\\\${datarootdir}&$datarootdir&g' ;;
15099esac
15100_ACEOF
15101
15102# Neutralize VPATH when `$srcdir' = `.'.
15103# Shell code in configure.ac might set extrasub.
15104# FIXME: do we really want to maintain this feature?
15105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15106ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15107$extrasub
15108_ACEOF
5213506e 15109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15110:t
15111/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15112s|@configure_input@|$ac_sed_conf_input|;t t
15113s&@top_builddir@&$ac_top_builddir_sub&;t t
15114s&@top_build_prefix@&$ac_top_build_prefix&;t t
15115s&@srcdir@&$ac_srcdir&;t t
15116s&@abs_srcdir@&$ac_abs_srcdir&;t t
15117s&@top_srcdir@&$ac_top_srcdir&;t t
15118s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15119s&@builddir@&$ac_builddir&;t t
15120s&@abs_builddir@&$ac_abs_builddir&;t t
15121s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15122s&@INSTALL@&$ac_INSTALL&;t t
15123$ac_datarootdir_hack
15124"
15125eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15126if $ac_cs_awk_getline; then
15127 $AWK -f "$tmp/subs.awk"
15128else
15129 $AWK -f "$tmp/subs.awk" | $SHELL
15130fi >$tmp/out \
15131 || as_fn_error "could not create $ac_file" "$LINENO" 5
15132
15133test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15134 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15135 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15137which seems to be undefined. Please make sure it is defined." >&5
15138$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15139which seems to be undefined. Please make sure it is defined." >&2;}
15140
15141 rm -f "$tmp/stdin"
15142 case $ac_file in
15143 -) cat "$tmp/out" && rm -f "$tmp/out";;
15144 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15145 esac \
15146 || as_fn_error "could not create $ac_file" "$LINENO" 5
15147 ;;
11a67599 15148
11a67599 15149
79c06341 15150
5213506e
RW
15151 esac
15152
3e54529c
RW
15153
15154 case $ac_file$ac_mode in
15155 "Makefile":F) sed "$extrasub_build" Makefile |
15156 sed "$extrasub_host" |
15157 sed "$extrasub_target" > mf$$
15158 mv -f mf$$ Makefile ;;
15159
15160 esac
5213506e
RW
15161done # for ac_tag
15162
15163
15164as_fn_exit 0
1c710c3c 15165_ACEOF
1c710c3c
DJ
15166ac_clean_files=$ac_clean_files_save
15167
5213506e
RW
15168test $ac_write_fail = 0 ||
15169 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15170
1c710c3c
DJ
15171
15172# configure is writing to config.log, and then calls config.status.
15173# config.status does its own redirection, appending to config.log.
15174# Unfortunately, on DOS this fails, as config.log is still kept open
15175# by configure, so config.status won't be able to write to it; its
15176# output is simply discarded. So we exec the FD to /dev/null,
15177# effectively closing config.log, so it can be properly (re)opened and
15178# appended to by config.status. When coming back to configure, we
15179# need to make the FD available again.
15180if test "$no_create" != yes; then
15181 ac_cs_success=:
15182 ac_config_status_args=
15183 test "$silent" = yes &&
15184 ac_config_status_args="$ac_config_status_args --quiet"
15185 exec 5>/dev/null
15186 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15187 exec 5>>config.log
15188 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15189 # would make configure fail if this is the last instruction.
5213506e
RW
15190 $ac_cs_success || as_fn_exit $?
15191fi
15192if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15194$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15195fi
79c06341 15196