bfd: constify a few arrays
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
c6b750e1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
c6b750e1 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
e552509b 581GOC_FOR_TARGET
81ecdfbb
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
81ecdfbb
RW
607WINDRES_FOR_BUILD
608WINDMC_FOR_BUILD
609RANLIB_FOR_BUILD
610NM_FOR_BUILD
611LD_FOR_BUILD
612LDFLAGS_FOR_BUILD
e552509b 613GOC_FOR_BUILD
81ecdfbb
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
911e63d0 623target_configdirs
81ecdfbb 624configdirs
81ecdfbb 625build_configdirs
81ecdfbb
RW
626INSTALL_GDB_TK
627GDB_TK
628CONFIGURE_GDB_TK
629build_tooldir
630tooldir
631GCC_SHLIB_SUBDIR
632RPATH_ENVVAR
4074d5f2
RW
633target_configargs
634host_configargs
635build_configargs
96655cc4 636BUILD_CONFIG
81ecdfbb
RW
637CXXFLAGS_FOR_TARGET
638CFLAGS_FOR_TARGET
639DEBUG_PREFIX_CFLAGS_FOR_TARGET
640SYSROOT_CFLAGS_FOR_TARGET
641stage1_languages
700d40ca 642extra_host_libiberty_configure_flags
81ecdfbb
RW
643clooginc
644clooglibs
645pplinc
646ppllibs
81ecdfbb 647poststage1_ldflags
143754cd 648poststage1_libs
81ecdfbb
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
8e957354
PB
673AWK
674SED
81ecdfbb
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
c7791212 743enable_ld
89a1e9c3
PB
744enable_libquadmath
745enable_libquadmath_support
81ecdfbb
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
81ecdfbb 763with_boot_libs
143754cd 764with_boot_ldflags
81ecdfbb
RW
765with_ppl
766with_ppl_include
767with_ppl_lib
768enable_ppl_version_check
769with_cloog
770with_cloog_include
771with_cloog_lib
e552509b 772enable_cloog_backend
81ecdfbb 773enable_cloog_version_check
700d40ca 774enable_lto
81ecdfbb
RW
775enable_stage1_languages
776enable_objc_gc
777with_build_sysroot
778with_debug_prefix_map
779enable_bootstrap
96655cc4 780with_build_config
81ecdfbb
RW
781enable_serial_configure
782with_build_time_tools
783enable_maintainer_mode
784enable_stage1_checking
785enable_werror
81ecdfbb
RW
786'
787 ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795CXX
796CXXFLAGS
797CCC
4074d5f2
RW
798build_configargs
799host_configargs
800target_configargs
81ecdfbb
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
e552509b 818GOC_FOR_TARGET
81ecdfbb
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
a0da8069
NN
831
832# Initialize some variables set by options.
c6b750e1
DJ
833ac_init_help=
834ac_init_version=false
81ecdfbb
RW
835ac_unrecognized_opts=
836ac_unrecognized_sep=
a0da8069
NN
837# The variables have the same names as the options, with
838# dashes changed to underlines.
c6b750e1 839cache_file=/dev/null
a0da8069 840exec_prefix=NONE
a0da8069 841no_create=
a0da8069
NN
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
a0da8069
NN
850verbose=
851x_includes=NONE
852x_libraries=NONE
c6b750e1
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.
81ecdfbb 859# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
a0da8069
NN
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
a0da8069
NN
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
81ecdfbb
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'
252b5132 879
a0da8069 880ac_prev=
81ecdfbb 881ac_dashdash=
a0da8069
NN
882for ac_option
883do
a0da8069
NN
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
81ecdfbb 886 eval $ac_prev=\$ac_option
a0da8069
NN
887 ac_prev=
888 continue
889 fi
252b5132 890
81ecdfbb
RW
891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
a0da8069
NN
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
81ecdfbb
RW
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
a0da8069
NN
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 905 bindir=$ac_optarg ;;
a0da8069
NN
906
907 -build | --build | --buil | --bui | --bu)
c6b750e1 908 ac_prev=build_alias ;;
a0da8069 909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 910 build_alias=$ac_optarg ;;
a0da8069
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=*)
c6b750e1
DJ
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
a0da8069 921
81ecdfbb 922 -datadir | --datadir | --datadi | --datad)
a0da8069 923 ac_prev=datadir ;;
81ecdfbb 924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 925 datadir=$ac_optarg ;;
a0da8069 926
81ecdfbb
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
a0da8069 934 -disable-* | --disable-*)
81ecdfbb 935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 936 # Reject names that are not valid shell variable names.
81ecdfbb
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 ;;
a0da8069
NN
959
960 -enable-* | --enable-*)
81ecdfbb 961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 962 # Reject names that are not valid shell variable names.
81ecdfbb
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=', ';;
a0da8069 973 esac
81ecdfbb 974 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
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=*)
c6b750e1 983 exec_prefix=$ac_optarg ;;
a0da8069
NN
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
c6b750e1
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 ;;
a0da8069
NN
995
996 -host | --host | --hos | --ho)
c6b750e1 997 ac_prev=host_alias ;;
a0da8069 998 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 999 host_alias=$ac_optarg ;;
a0da8069 1000
81ecdfbb
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
a0da8069
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=*)
c6b750e1 1012 includedir=$ac_optarg ;;
a0da8069
NN
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1017 infodir=$ac_optarg ;;
a0da8069
NN
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1022 libdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1029 libexecdir=$ac_optarg ;;
a0da8069 1030
81ecdfbb
RW
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
a0da8069 1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1037 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1041 localstatedir=$ac_optarg ;;
a0da8069
NN
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1046 mandir=$ac_optarg ;;
a0da8069
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 \
c6b750e1 1053 | --no-cr | --no-c | -n)
a0da8069
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=*)
c6b750e1 1067 oldincludedir=$ac_optarg ;;
a0da8069
NN
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1072 prefix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1079 program_prefix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1086 program_suffix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1103 program_transform_name=$ac_optarg ;;
a0da8069 1104
81ecdfbb
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
a0da8069
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=*)
c6b750e1 1123 sbindir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1134 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
c6b750e1 1139 site=$ac_optarg ;;
a0da8069
NN
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1144 srcdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1151 sysconfdir=$ac_optarg ;;
a0da8069
NN
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1154 ac_prev=target_alias ;;
a0da8069 1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1156 target_alias=$ac_optarg ;;
a0da8069
NN
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
c6b750e1
DJ
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
a0da8069
NN
1163
1164 -with-* | --with-*)
81ecdfbb 1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1166 # Reject names that are not valid shell variable names.
81ecdfbb
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=', ';;
a0da8069 1177 esac
81ecdfbb 1178 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1179
1180 -without-* | --without-*)
81ecdfbb 1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1182 # Reject names that are not valid shell variable names.
81ecdfbb
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 ;;
a0da8069
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=*)
c6b750e1 1205 x_includes=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1212 x_libraries=$ac_optarg ;;
a0da8069 1213
81ecdfbb
RW
1214 -*) as_fn_error "unrecognized option: \`$ac_option'
1215Try \`$0 --help' for more information."
a0da8069
NN
1216 ;;
1217
c6b750e1
DJ
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
81ecdfbb
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
c6b750e1
DJ
1226 export $ac_envvar ;;
1227
a0da8069 1228 *)
c6b750e1 1229 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1234 ;;
1235
1236 esac
1237done
1238
1239if test -n "$ac_prev"; then
c6b750e1 1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1241 as_fn_error "missing argument to $ac_option"
a0da8069 1242fi
a0da8069 1243
81ecdfbb
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 ;;
c6b750e1 1249 esac
81ecdfbb 1250fi
a0da8069 1251
81ecdfbb
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
a0da8069 1257do
81ecdfbb
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.
c6b750e1 1266 case $ac_val in
81ecdfbb
RW
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1269 esac
81ecdfbb 1270 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1271done
1272
c6b750e1
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
376a0e54 1279
c6b750e1
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
81ecdfbb 1284 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
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
a0da8069 1295
a0da8069 1296
81ecdfbb
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
a0da8069
NN
1305# Find the source files, if location was not specified.
1306if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
81ecdfbb
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'`
a0da8069 1332 srcdir=$ac_confdir
81ecdfbb 1333 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1334 srcdir=..
1335 fi
1336else
1337 ac_srcdir_defaulted=no
1338fi
81ecdfbb
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
6d0cd39e
AM
1357case $srcdir in
1358 *" "*)
1359 as_fn_error "path to source, $srcdir, contains spaces"
1360 ;;
1361esac
9cc8ae67
PB
1362ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1363
81ecdfbb
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
c6b750e1
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
c6b750e1
DJ
1398Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1400 [$ac_default_prefix]
c6b750e1 1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1402 [PREFIX]
c6b750e1
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:
81ecdfbb
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]
c6b750e1
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
a0da8069 1445fi
a0da8069 1446
c6b750e1
DJ
1447if test -n "$ac_init_help"; then
1448
1449 cat <<\_ACEOF
1450
1451Optional Features:
81ecdfbb 1452 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1455 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1456 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1457 --disable-libquadmath do not build libquadmath directory
1458 --disable-libquadmath-support
1459 disable libquadmath support for Fortran
521ec477
DD
1460 --enable-libada build libada directory
1461 --enable-libssp build libssp directory
e8a5fa9c 1462 --enable-build-with-cxx build with C++ compiler instead of C compiler
7837304f
AS
1463 --disable-ppl-version-check
1464 disable check for PPL version
ceca0218
PB
1465 --enable-cloog-backend[=BACKEND]
1466 set the CLooG BACKEND used to either isl, ppl or
1467 ppl-legacy (default)
e552509b
ILT
1468 --disable-cloog-version-check
1469 disable check for CLooG version
700d40ca 1470 --enable-lto enable link time optimization support
7837304f
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
521ec477
DD
1476 --enable-bootstrap enable bootstrapping [yes if native build]
1477 --enable-serial-[{host,target,build}-]configure
7837304f
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
c6b750e1
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
7837304f
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
521ec477
DD
1498 --with-mpfr-dir=PATH this option has been REMOVED
1499 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1500 Equivalent to --with-mpfr-include=PATH/include plus
1501 --with-mpfr-lib=PATH/lib
c6b750e1 1502 --with-mpfr-include=PATH
521ec477
DD
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
7837304f
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
521ec477
DD
1510 --with-gmp-include=PATH specify directory for installed GMP include files
1511 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
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
e552509b
ILT
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
521ec477 1534 --with-build-sysroot=SYSROOT
c6b750e1 1535 use sysroot as the system root during the build
8a6ee3ab 1536 --with-debug-prefix-map='A=B C=D ...'
7837304f
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
521ec477 1540 --with-build-time-tools=PATH
c6b750e1 1541 use given path to find target tools during the build
c6b750e1
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>
81ecdfbb
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>
18f6b6ee
PB
1551 CXX C++ compiler command
1552 CXXFLAGS C++ compiler flags
4074d5f2
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
9a819804
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
0c24b341 1568 WINDMC WINDMC for the host
9a819804
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
e552509b
ILT
1581 GOC_FOR_TARGET
1582 GOC for the target
9a819804
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
0c24b341
NC
1603 WINDMC_FOR_TARGET
1604 WINDMC for the target
c6b750e1
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
81ecdfbb 1609Report bugs to the package provider.
c6b750e1 1610_ACEOF
81ecdfbb 1611ac_status=$?
c6b750e1
DJ
1612fi
1613
1614if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
c6b750e1 1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 continue
c6b750e1
DJ
1620 ac_builddir=.
1621
81ecdfbb
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
c6b750e1
DJ
1637
1638case $srcdir in
81ecdfbb 1639 .) # We are building in place.
c6b750e1 1640 ac_srcdir=.
81ecdfbb
RW
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1644 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
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 ;;
c6b750e1 1651esac
81ecdfbb
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
c6b750e1 1662 else
81ecdfbb
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; }
c6b750e1
DJ
1666 done
1667fi
1668
81ecdfbb 1669test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1670if $ac_init_version; then
1671 cat <<\_ACEOF
81ecdfbb
RW
1672configure
1673generated by GNU Autoconf 2.64
c6b750e1 1674
81ecdfbb 1675Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
1678_ACEOF
81ecdfbb 1679 exit
c6b750e1 1680fi
81ecdfbb
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
c6b750e1
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
81ecdfbb 1812generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1813
1814 $ $0 $@
1815
1816_ACEOF
81ecdfbb 1817exec 5>>config.log
c6b750e1
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`
81ecdfbb 1836/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
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=.
81ecdfbb
RW
1848 $as_echo "PATH: $as_dir"
1849 done
1850IFS=$as_save_IFS
c6b750e1
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=
c6b750e1
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 ;;
81ecdfbb
RW
1882 *\'*)
1883 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1884 esac
1885 case $ac_pass in
81ecdfbb 1886 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1887 2)
81ecdfbb 1888 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
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
81ecdfbb 1904 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1905 ;;
1906 esac
1907 done
1908done
81ecdfbb
RW
1909{ ac_configure_args0=; unset ac_configure_args0;}
1910{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
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.
81ecdfbb
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.
c6b750e1
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,
81ecdfbb
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
c6b750e1 1945 (set) 2>&1 |
81ecdfbb
RW
1946 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947 *${as_nl}ac_space=\ *)
c6b750e1 1948 sed -n \
81ecdfbb
RW
1949 "s/'\''/'\''\\\\'\'''\''/g;
1950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951 ;; #(
c6b750e1 1952 *)
81ecdfbb 1953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1954 ;;
81ecdfbb
RW
1955 esac |
1956 sort
1957)
c6b750e1
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
81ecdfbb
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'\''"
c6b750e1
DJ
1973 done | sort
1974 echo
1975
1976 if test -n "$ac_subst_files"; then
1977 cat <<\_ASBOX
81ecdfbb
RW
1978## ------------------- ##
1979## File substitutions. ##
1980## ------------------- ##
c6b750e1
DJ
1981_ASBOX
1982 echo
1983 for ac_var in $ac_subst_files
1984 do
81ecdfbb
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'\''"
c6b750e1
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
81ecdfbb 2001 cat confdefs.h
c6b750e1
DJ
2002 echo
2003 fi
2004 test "$ac_signal" != 0 &&
81ecdfbb
RW
2005 $as_echo "$as_me: caught signal $ac_signal"
2006 $as_echo "$as_me: exit $exit_status"
c6b750e1 2007 } >&5
81ecdfbb
RW
2008 rm -f core *.core core.conftest.* &&
2009 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2010 exit $exit_status
81ecdfbb 2011' 0
c6b750e1 2012for ac_signal in 1 2 13 15; do
81ecdfbb 2013 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2014done
2015ac_signal=0
2016
2017# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2018rm -f -r conftest* confdefs.h
2019
2020$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2021
2022# Predefined preprocessor variables.
2023
2024cat >>confdefs.h <<_ACEOF
2025#define PACKAGE_NAME "$PACKAGE_NAME"
2026_ACEOF
2027
c6b750e1
DJ
2028cat >>confdefs.h <<_ACEOF
2029#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2030_ACEOF
2031
c6b750e1
DJ
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_VERSION "$PACKAGE_VERSION"
2034_ACEOF
2035
c6b750e1
DJ
2036cat >>confdefs.h <<_ACEOF
2037#define PACKAGE_STRING "$PACKAGE_STRING"
2038_ACEOF
2039
c6b750e1
DJ
2040cat >>confdefs.h <<_ACEOF
2041#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2042_ACEOF
2043
81ecdfbb
RW
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_URL "$PACKAGE_URL"
2046_ACEOF
2047
c6b750e1
DJ
2048
2049# Let the site file select an alternate cache file if it wants to.
81ecdfbb
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
a0da8069 2061fi
81ecdfbb
RW
2062for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2063do
2064 test "x$ac_site_file" = xNONE && continue
a0da8069 2065 if test -r "$ac_site_file"; then
81ecdfbb
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;}
c6b750e1 2068 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2069 . "$ac_site_file"
2070 fi
2071done
2072
2073if test -r "$cache_file"; then
c6b750e1
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
81ecdfbb
RW
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2079 case $cache_file in
81ecdfbb
RW
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
c6b750e1
DJ
2082 esac
2083 fi
a0da8069 2084else
81ecdfbb
RW
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
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
81ecdfbb 2093for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2098 case $ac_old_set,$ac_new_set in
2099 set,)
81ecdfbb
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;}
c6b750e1
DJ
2102 ac_cache_corrupted=: ;;
2103 ,set)
81ecdfbb
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;}
c6b750e1
DJ
2106 ac_cache_corrupted=: ;;
2107 ,);;
2108 *)
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
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;}
c6b750e1
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
81ecdfbb 2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
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.
81ecdfbb 2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2137 esac
2138 fi
2139done
2140if $ac_cache_corrupted; then
81ecdfbb
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
a0da8069 2146fi
81ecdfbb
RW
2147## -------------------- ##
2148## Main body of script. ##
2149## -------------------- ##
a0da8069
NN
2150
2151ac_ext=c
a0da8069 2152ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
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
2157
2158
2159
c6b750e1
DJ
2160
2161
34a0f3cf 2162
c6b750e1 2163
5b553f7e
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
c6b750e1
DJ
2192
2193# Find the build, host, and target systems.
a0da8069 2194ac_aux_dir=
81ecdfbb
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
a0da8069
NN
2203done
2204if test -z "$ac_aux_dir"; then
81ecdfbb 2205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2206fi
81ecdfbb
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
a0da8069 2216
c6b750e1 2217# Make sure we can run config.sub.
81ecdfbb
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
c6b750e1 2241build=$ac_cv_build
81ecdfbb
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
a0da8069 2253
a0da8069 2254
c6b750e1
DJ
2255 case ${build_alias} in
2256 "") build_noncanonical=${build} ;;
2257 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2258esac
2259
2260
cac3d6c4 2261
c6b750e1
DJ
2262 case ${host_alias} in
2263 "") host_noncanonical=${build_noncanonical} ;;
2264 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2265esac
2266
cac3d6c4 2267
c6b750e1
DJ
2268
2269 case ${target_alias} in
2270 "") target_noncanonical=${host_noncanonical} ;;
2271 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2272esac
2273
cac3d6c4 2274
c6b750e1
DJ
2275
2276
2277test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2278 test "$program_prefix$program_suffix$program_transform_name" = \
2279 NONENONEs,x,x, &&
c6b750e1 2280 program_transform_name=s,y,y,
cac3d6c4 2281
81ecdfbb
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
cac3d6c4 2286else
81ecdfbb
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
c6b750e1
DJ
2293
2294fi
81ecdfbb
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
c6b750e1 2301host=$ac_cv_host
81ecdfbb
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
c6b750e1
DJ
2313
2314
81ecdfbb
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
c6b750e1 2319else
81ecdfbb
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
c6b750e1 2326
cac3d6c4 2327fi
81ecdfbb
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
c6b750e1 2334target=$ac_cv_target
81ecdfbb
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
c6b750e1
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}-
81ecdfbb 2354
a0da8069 2355test "$program_prefix" != NONE &&
81ecdfbb 2356 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2357# Use a double $ so make ignores it.
2358test "$program_suffix" != NONE &&
81ecdfbb
RW
2359 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2360# Double any \ or $.
c6b750e1 2361# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2362ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2363program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2364
a0da8069
NN
2365
2366
e5c3f801
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
c6b750e1 2375# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
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"
c6b750e1 2379# OS/2's system install, which has a completely different semantic
e5c3f801 2380# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2381# Reject install programs that cannot install multiple files.
81ecdfbb
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; }
e5c3f801 2384if test -z "$INSTALL"; then
81ecdfbb
RW
2385if test "${ac_cv_path_install+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
c6b750e1
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=.
81ecdfbb
RW
2393 # Account for people who put trailing slashes in PATH elements.
2394case $as_dir/ in #((
2395 ./ | .// | /[cC]/* | \
c6b750e1 2396 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2397 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
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
81ecdfbb 2405 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2406 if test $ac_prog = install &&
c6b750e1 2407 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2408 # AIX install. It has an incompatible calling convention.
2409 :
c6b750e1
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 :
e5c3f801 2414 else
58c85be7
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
e5c3f801
NN
2427 fi
2428 fi
2429 done
c6b750e1
DJ
2430 done
2431 ;;
2432esac
81ecdfbb
RW
2433
2434 done
2435IFS=$as_save_IFS
c6b750e1 2436
58c85be7 2437rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2438
2439fi
2440 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2441 INSTALL=$ac_cv_path_install
e5c3f801 2442 else
58c85be7
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
e5c3f801 2445 # break other packages using the cache if that directory is
58c85be7 2446 # removed, or if the value is a relative name.
c6b750e1 2447 INSTALL=$ac_install_sh
e5c3f801
NN
2448 fi
2449fi
81ecdfbb
RW
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2451$as_echo "$INSTALL" >&6; }
e5c3f801
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
c6b750e1 2457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2458
2459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2460
81ecdfbb
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
656fdd47
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"
81ecdfbb
RW
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2480$as_echo "no, using $LN" >&6; }
656fdd47
PB
2481else
2482 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484$as_echo "yes" >&6; }
656fdd47
PB
2485fi
2486
81ecdfbb
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; }
c6b750e1
DJ
2489LN_S=$as_ln_s
2490if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2492$as_echo "yes" >&6; }
cac3d6c4 2493else
81ecdfbb
RW
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2495$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2496fi
2497
8e957354
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
e5c3f801 2609
0fdbe983
DJ
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
a0da8069
NN
2618# Set srcdir to "." if that's what it is.
2619# This is important for multilib support.
2620pwd=`${PWDCMD-pwd}`
a0da8069
NN
2621if test "${pwd}" = "${srcpwd}" ; then
2622 srcdir=.
252b5132
RH
2623fi
2624
a0da8069 2625topsrcdir=$srcpwd
252b5132 2626
a0da8069 2627extra_host_args=
afefada0 2628
a0da8069
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.
252b5132 2632
c6b750e1 2633# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2634# configdirs, or target_configdirs; see the serialization section below.
252b5132 2635
c6b750e1
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
a0da8069 2638# the Makefile, whether or not it's implicitly specified here.
252b5132 2639
a0da8069
NN
2640# Double entries in build_configdirs, configdirs, or target_configdirs may
2641# cause circular dependencies and break everything horribly.
252b5132 2642
6a9cf61e
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
a90ef4bf 2649build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2650
a0da8069
NN
2651# these libraries are used by various programs built for the host environment
2652#
a90ef4bf 2653host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2654
a0da8069
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.
e6de499b 2660# If --enable-gold is used, "gold" may replace "ld".
a90ef4bf 2661host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
a0da8069
NN
2662
2663# libgcj represents the runtime libraries only used by gcj.
2664libgcj="target-libffi \
a0da8069 2665 target-zlib \
a0da8069
NN
2666 target-libjava"
2667
2668# these libraries are built for the target environment, and are built after
2669# the host libraries and the host tools (which may be a cross compiler)
2670#
b1299c4e
DJ
2671target_libraries="target-libgcc \
2672 target-libiberty \
a0da8069
NN
2673 target-libgloss \
2674 target-newlib \
cff87f51 2675 target-libgomp \
b9459e83 2676 target-libstdc++-v3 \
4b1cb4fe 2677 target-libmudflap \
bb780410 2678 target-libssp \
e552509b 2679 target-libquadmath \
4b1cb4fe 2680 target-libgfortran \
4f0ef2d8 2681 target-boehm-gc \
83326456 2682 ${libgcj} \
a2592b1b 2683 target-libobjc \
e552509b
ILT
2684 target-libada \
2685 target-libgo"
a0da8069 2686
9c14acb8
NN
2687# these tools are built using the target libraries, and are intended to
2688# run only in the target environment
a0da8069 2689#
9c14acb8 2690# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2691# list belongs in this list.
a0da8069 2692#
a90ef4bf 2693target_tools="target-rda"
252b5132 2694
a0da8069 2695################################################################################
252b5132 2696
a0da8069
NN
2697## All tools belong in one of the four categories, and are assigned above
2698## We assign ${configdirs} this way to remove all embedded newlines. This
2699## is important because configure will choke if they ever get through.
2700## ${configdirs} is directories we build using the host tools.
2701## ${target_configdirs} is directories we build using the target tools.
a0da8069 2702configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2703target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2704build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2705
9cc8ae67
PB
2706
2707
a0da8069 2708################################################################################
252b5132 2709
a0da8069 2710srcname="gnu development package"
252b5132 2711
a0da8069
NN
2712# This gets set non-empty for some net releases of packages.
2713appdirs=""
252b5132 2714
a0da8069
NN
2715# Define is_cross_compiler to save on calls to 'test'.
2716is_cross_compiler=
2717if test x"${host}" = x"${target}" ; then
2718 is_cross_compiler=no
252b5132 2719else
a0da8069 2720 is_cross_compiler=yes
c6b750e1 2721fi
252b5132 2722
9175bfc0 2723# Find the build and target subdir names.
dd12c3a8 2724
66a79c16
DJ
2725# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2726# have matching libraries, they should use host libraries: Makefile.tpl
2727# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2728# However, they still use the build modules, because the corresponding
2729# host modules (e.g. bison) are only built for the host when bootstrap
2730# finishes. So:
2731# - build_subdir is where we find build modules, and never changes.
2732# - build_libsubdir is where we find build libraries, and can be overridden.
2733
2734# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2735build_subdir="build-${build_noncanonical}"
c6b750e1 2736
81ecdfbb
RW
2737# Check whether --with-build-libsubdir was given.
2738if test "${with_build_libsubdir+set}" = set; then :
2739 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2740else
2741 build_libsubdir="$build_subdir"
81ecdfbb
RW
2742fi
2743
b00612cc
PB
2744# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2745if ( test $srcdir = . && test -d gcc ) \
2746 || test -d $srcdir/../host-${host_noncanonical}; then
2747 host_subdir="host-${host_noncanonical}"
2748else
2749 host_subdir=.
2750fi
dd12c3a8
NN
2751# No prefix.
2752target_subdir=${target_noncanonical}
c6b750e1 2753
2fd0b40b
RW
2754# Be sure to cover against remnants of an in-tree build.
2755if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2756 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2757Use a pristine source tree when building in a separate tree" "$LINENO" 5
2758fi
252b5132 2759
a0da8069
NN
2760# Skipdirs are removed silently.
2761skipdirs=
2762# Noconfigdirs are removed loudly.
2763noconfigdirs=""
252b5132 2764
a0da8069
NN
2765use_gnu_ld=
2766# Make sure we don't let GNU ld be added if we didn't want it.
2767if test x$with_gnu_ld = xno ; then
2768 use_gnu_ld=no
93f9b408 2769 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2770fi
2771
a0da8069
NN
2772use_gnu_as=
2773# Make sure we don't let GNU as be added if we didn't want it.
2774if test x$with_gnu_as = xno ; then
2775 use_gnu_as=no
2776 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2777fi
2778
700d40ca
ILT
2779use_included_zlib=
2780# Make sure we don't let ZLIB be added if we didn't want it.
2781if test x$with_system_zlib = xyes ; then
2782 use_included_zlib=no
2783 noconfigdirs="$noconfigdirs zlib"
2784fi
2785
c6b750e1 2786# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2787# it's not even worth trying to configure, much less build, that tool.
252b5132 2788
a0da8069
NN
2789case ${with_x} in
2790 yes | "") ;; # the default value for this tree is that X11 is available
2791 no)
675c6968 2792 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2793 # We won't be able to build gdbtk without X.
c6b750e1 2794 enable_gdbtk=no
a0da8069
NN
2795 ;;
2796 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2797esac
252b5132 2798
0377a422 2799# Some are only suitable for cross toolchains.
a0da8069
NN
2800# Remove these if host=target.
2801cross_only="target-libgloss target-newlib target-opcodes"
2802
2803case $is_cross_compiler in
2804 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2805esac
252b5132 2806
a0da8069
NN
2807# If both --with-headers and --with-libs are specified, default to
2808# --without-newlib.
32be62b5
RS
2809if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2810 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2811 if test x"${with_newlib}" = x ; then
2812 with_newlib=no
2813 fi
252b5132
RH
2814fi
2815
a0da8069
NN
2816# Recognize --with-newlib/--without-newlib.
2817case ${with_newlib} in
2818 no) skipdirs="${skipdirs} target-newlib" ;;
2819 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2820esac
252b5132 2821
c7791212
NC
2822# Handle --enable-gold, --enable-ld.
2823# --disable-gold [--enable-ld]
2824# Build only ld. Default option.
d3b50760
L
2825# --enable-gold [--enable-ld]
2826# Build both gold and ld. Install gold as "ld.gold", install ld
2827# as "ld.bfd" and "ld".
2828# --enable-gold=default [--enable-ld]
c7791212
NC
2829# Build both gold and ld. Install gold as "ld.gold" and "ld",
2830# install ld as "ld.bfd".
2831# --enable-gold[=default] --disable-ld
2832# Build only gold, which is then installed as both "ld.gold" and "ld".
2833# --enable-gold --enable-ld=default
d3b50760
L
2834# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2835# and ld.bfd).
c7791212
NC
2836# In other words, ld is default
2837# --enable-gold=default --enable-ld=default
2838# Error.
2839
2840default_ld=
81ecdfbb
RW
2841# Check whether --enable-gold was given.
2842if test "${enable_gold+set}" = set; then :
2843 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2844else
2845 ENABLE_GOLD=no
81ecdfbb
RW
2846fi
2847
c7791212
NC
2848case "${ENABLE_GOLD}" in
2849 yes|default)
e6de499b
NC
2850 # Check for ELF target.
2851 is_elf=no
2852 case "${target}" in
2853 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2854 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27
NC
2855 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2856 | *-*-solaris2* | *-*-nto*)
e6de499b
NC
2857 case "${target}" in
2858 *-*-linux*aout* | *-*-linux*oldld*)
2859 ;;
2860 *)
2861 is_elf=yes
2862 ;;
2863 esac
2864 esac
2865
2866 if test "$is_elf" = "yes"; then
2867 # Check for target supported by gold.
93f9b408 2868 case "${target}" in
e6de499b 2869 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
c7791212
NC
2870 configdirs="$configdirs gold"
2871 if test x${ENABLE_GOLD} = xdefault; then
2872 default_ld=gold
2873 fi
e6de499b 2874 ENABLE_GOLD=yes
93f9b408
ILT
2875 ;;
2876 esac
e6de499b
NC
2877 fi
2878 ;;
2879 no)
2880 ;;
2881 *)
2882 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2883 ;;
c7791212
NC
2884esac
2885
2886# Check whether --enable-ld was given.
2887if test "${enable_ld+set}" = set; then :
2888 enableval=$enable_ld; ENABLE_LD=$enableval
2889else
2890 ENABLE_LD=yes
2891fi
2892
2893
2894case "${ENABLE_LD}" in
2895 default)
d3b50760 2896 if test x${default_ld} != x; then
c7791212
NC
2897 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2898 fi
2899 ;;
2900 yes)
2901 ;;
2902 no)
2903 if test x${ENABLE_GOLD} != xyes; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2905$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2906 fi
2907 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2908 ;;
2909 *)
2910 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2911 ;;
2912esac
93f9b408 2913
a0da8069 2914# Configure extra directories which are host specific
252b5132 2915
a0da8069
NN
2916case "${host}" in
2917 *-cygwin*)
2918 configdirs="$configdirs libtermcap" ;;
2919esac
252b5132 2920
59f7ec45
HPN
2921# A target can indicate whether a language isn't supported for some reason.
2922# Only spaces may be used in this macro; not newlines or tabs.
2923unsupported_languages=
2924
c6b750e1 2925# Remove more programs from consideration, based on the host or
a0da8069
NN
2926# target this usually means that a port of the program doesn't
2927# exist yet.
252b5132 2928
a0da8069 2929case "${host}" in
3516a403 2930 i[3456789]86-*-msdosdjgpp*)
6a608608 2931 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 2932 ;;
a0da8069 2933esac
252b5132 2934
4b1cb4fe 2935
89a1e9c3
PB
2936# Check whether --enable-libquadmath was given.
2937if test "${enable_libquadmath+set}" = set; then :
2938 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2939else
2940 ENABLE_LIBQUADMATH=yes
2941fi
2942
2943if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2944 noconfigdirs="$noconfigdirs target-libquadmath"
2945fi
2946
2947
2948# Check whether --enable-libquadmath-support was given.
2949if test "${enable_libquadmath_support+set}" = set; then :
2950 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2951else
2952 ENABLE_LIBQUADMATH_SUPPORT=yes
2953fi
2954
2955enable_libquadmath_support=
2956if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2957 enable_libquadmath_support=no
2958fi
2959
2960
81ecdfbb
RW
2961# Check whether --enable-libada was given.
2962if test "${enable_libada+set}" = set; then :
2963 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2964else
2965 ENABLE_LIBADA=yes
81ecdfbb
RW
2966fi
2967
a2592b1b 2968if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2969 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2970fi
2971
81ecdfbb
RW
2972# Check whether --enable-libssp was given.
2973if test "${enable_libssp+set}" = set; then :
2974 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
2975else
2976 ENABLE_LIBSSP=yes
81ecdfbb
RW
2977fi
2978
5f128533 2979
a0da8069
NN
2980# Save it here so that, even in case of --enable-libgcj, if the Java
2981# front-end isn't enabled, we still get libgcj disabled.
2982libgcj_saved=$libgcj
2983case $enable_libgcj in
2984yes)
2985 # If we reset it here, it won't get added to noconfigdirs in the
2986 # target-specific build rules, so it will be forcibly enabled
2987 # (unless the Java language itself isn't enabled).
2988 libgcj=
2989 ;;
2990no)
2991 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
2992 # Don't disable libffi, though, other languages use it.
2993 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
2994 # Clear libgcj_saved so that even if java is enabled libffi won't be
2995 # built.
2996 libgcj_saved=
a0da8069
NN
2997 ;;
2998esac
252b5132 2999
4b1cb4fe 3000
a6df5a19
PB
3001# Disable libmudflap on some systems.
3002if test x$enable_libmudflap = x ; then
3e707e94 3003 case "${target}" in
29383458 3004 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3005 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3006 ;;
3007 *-*-freebsd*)
3008 # Enable libmudflap by default in FreeBSD.
3009 ;;
3010 *)
3011 # Disable it by default everywhere else.
3012 noconfigdirs="$noconfigdirs target-libmudflap"
3013 ;;
3014 esac
a6df5a19 3015fi
4b1cb4fe 3016
a6df5a19
PB
3017# Disable libgomp on non POSIX hosted systems.
3018if test x$enable_libgomp = x ; then
b3ded179
PB
3019 # Enable libgomp by default on hosted POSIX systems.
3020 case "${target}" in
29383458 3021 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3022 ;;
5b806d27 3023 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3024 ;;
1f111696 3025 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3026 ;;
3027 *-*-darwin* | *-*-aix*)
3028 ;;
3029 *)
3030 noconfigdirs="$noconfigdirs target-libgomp"
3031 ;;
3032 esac
a6df5a19 3033fi
b3ded179 3034
065a5627
JM
3035# Disable libssp for some systems.
3036case "${target}" in
3037 avr-*-*)
c5f5c3c2 3038 # No hosted I/O support.
065a5627
JM
3039 noconfigdirs="$noconfigdirs target-libssp"
3040 ;;
3041 powerpc-*-aix* | rs6000-*-aix*)
3042 noconfigdirs="$noconfigdirs target-libssp"
3043 ;;
065a5627
JM
3044esac
3045
3046# Disable target libiberty for some systems.
3047case "${target}" in
3048 *-*-kaos*)
3049 # Remove unsupported stuff on all kaOS configurations.
3050 skipdirs="target-libiberty"
3051 ;;
3052 *-*-netbsd*)
3053 # Skip some stuff on all NetBSD configurations.
3054 noconfigdirs="$noconfigdirs target-libiberty"
3055 ;;
3056 *-*-netware*)
3057 noconfigdirs="$noconfigdirs target-libiberty"
3058 ;;
3059 *-*-rtems*)
3060 skipdirs="${skipdirs} target-libiberty"
3061 ;;
3062 *-*-tpf*)
3063 noconfigdirs="$noconfigdirs target-libiberty"
3064 ;;
3065 *-*-vxworks*)
3066 noconfigdirs="$noconfigdirs target-libiberty"
3067 ;;
3068 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3069 noconfigdirs="$noconfigdirs target-libiberty"
3070 ;;
3071 arm*-*-symbianelf*)
3072 noconfigdirs="$noconfigdirs target-libiberty"
3073 ;;
3074 avr-*-*)
3075 noconfigdirs="$noconfigdirs target-libiberty"
3076 ;;
3077 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3078 noconfigdirs="$noconfigdirs target-libiberty"
3079 ;;
3080 picochip-*-*)
3081 noconfigdirs="$noconfigdirs target-libiberty"
3082 ;;
3083 mips*-sde-elf*)
3084 skipdirs="$skipdirs target-libiberty"
3085 ;;
3086 ip2k-*-*)
3087 noconfigdirs="$noconfigdirs target-libiberty"
3088 ;;
3089esac
3090
3091# Disable libstdc++-v3 for some systems.
3092case "${target}" in
3093 *-*-vxworks*)
3094 # VxWorks uses the Dinkumware C++ library.
3095 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3096 ;;
3097 arm*-wince-pe*)
3098 # the C++ libraries don't build on top of CE's C libraries
3099 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3100 ;;
3101 avr-*-*)
3102 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3103 ;;
3104esac
3105
3106# Disable Fortran for some systems.
3107case "${target}" in
3108 mmix-*-*)
3109 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3110 unsupported_languages="$unsupported_languages fortran"
3111 ;;
3112esac
3113
691bb5a1
DD
3114# Default libgloss CPU subdirectory.
3115libgloss_dir="$target_cpu"
4b1cb4fe 3116
a0da8069
NN
3117case "${target}" in
3118 *-*-chorusos)
b2f14e4a 3119 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3120 ;;
24741ab2 3121 powerpc-*-darwin*)
9d39db92 3122 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3123 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3124 ;;
85bd1942
TG
3125 i[3456789]86-*-darwin*)
3126 noconfigdirs="$noconfigdirs ld gprof"
3127 noconfigdirs="$noconfigdirs sim target-rda"
3128 ;;
e8a5fa9c 3129 x86_64-*-darwin[912]*)
652dec25
TG
3130 noconfigdirs="$noconfigdirs ld gas gprof"
3131 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3132 ;;
04d1ab34 3133 *-*-darwin*)
d320aacb 3134 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3135 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3136 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3137 ;;
5b806d27
NC
3138 *-*-dragonfly*)
3139 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3140 ;;
de0b4a87 3141 *-*-freebsd*)
4b1cb4fe
DD
3142 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3143 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3144 && test -f /usr/local/include/gmp.h; then
3145 with_gmp=/usr/local
3146 fi
3147
3148 # Skip some stuff that's unsupported on some FreeBSD configurations.
3149 case "${target}" in
3150 i*86-*-*) ;;
3151 alpha*-*-*) ;;
143754cd 3152 x86_64-*-*) ;;
4b1cb4fe 3153 *)
54d1c879 3154 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3155 ;;
3156 esac
3157 ;;
f8a495c8
NC
3158 *-*-kaos*)
3159 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3160 noconfigdirs="$noconfigdirs target-libgloss"
3161 ;;
a0da8069
NN
3162 *-*-netbsd*)
3163 # Skip some stuff on all NetBSD configurations.
065a5627 3164 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069
NN
3165
3166 # Skip some stuff that's unsupported on some NetBSD configurations.
3167 case "${target}" in
3168 i*86-*-netbsdelf*) ;;
5b474aa8 3169 arm*-*-netbsdelf*) ;;
a0da8069 3170 *)
54d1c879 3171 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3172 ;;
3173 esac
3174 ;;
2a3124ca 3175 *-*-netware*)
065a5627 3176 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3177 ;;
3178 *-*-rtems*)
54d1c879 3179 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3180 ;;
1587117a
EC
3181 # The tpf target doesn't support gdb yet.
3182 *-*-tpf*)
065a5627 3183 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj} gdb tcl tk libgui itcl"
1587117a 3184 ;;
c1968181 3185 *-*-uclinux*)
54d1c879 3186 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3187 ;;
a0da8069 3188 *-*-vxworks*)
065a5627 3189 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3190 ;;
3191 alpha*-dec-osf*)
3192 # ld works, but does not support shared libraries.
0377a422 3193 # newlib is not 64 bit ready.
a0da8069 3194 # gas doesn't generate exception information.
0377a422 3195 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
a0da8069
NN
3196 ;;
3197 alpha*-*-*vms*)
d594eacc 3198 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3199 ;;
3200 alpha*-*-linux*)
3201 # newlib is not 64 bit ready
3202 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3203 ;;
a0da8069
NN
3204 alpha*-*-*)
3205 # newlib is not 64 bit ready
54d1c879 3206 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3207 ;;
4a18bd6b 3208 am33_2.0-*-linux*)
54d1c879 3209 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3210 ;;
a0da8069 3211 sh-*-linux*)
54d1c879 3212 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3213 ;;
a0da8069 3214 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3215 noconfigdirs="$noconfigdirs ${libgcj}"
675c6968 3216 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3217 noconfigdirs="$noconfigdirs target-newlib"
691bb5a1 3218 libgloss_dir=wince
a0da8069
NN
3219 ;;
3220 arc-*-*)
782cb41f 3221 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3222 ;;
93cc359e 3223 arm-*-coff)
691bb5a1 3224 libgloss_dir=arm
a0da8069 3225 ;;
93cc359e 3226 arm-*-elf* | arm*-*-eabi* )
0377a422 3227 noconfigdirs="$noconfigdirs target-libffi"
691bb5a1 3228 libgloss_dir=arm
a0da8069 3229 ;;
bd70a46f 3230 arm*-*-linux-gnueabi)
a5b3b4dd
DD
3231 case ${with_newlib} in
3232 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3233 esac
691bb5a1 3234 libgloss_dir=arm
bd70a46f 3235 ;;
df4a6958 3236 arm*-*-symbianelf*)
065a5627 3237 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3238 libgloss_dir=arm
df4a6958 3239 ;;
a0da8069 3240 arm-*-pe*)
54d1c879 3241 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3242 ;;
a0da8069 3243 arm-*-riscix*)
b2f14e4a 3244 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069
NN
3245 ;;
3246 avr-*-*)
065a5627 3247 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3248 ;;
376a0e54 3249 bfin-*-*)
df51e4e1 3250 unsupported_languages="$unsupported_languages java"
7837304f 3251 noconfigdirs="$noconfigdirs target-boehm-gc"
376a0e54 3252 ;;
a0da8069 3253 c4x-*-* | tic4x-*-*)
b2f14e4a 3254 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3255 ;;
b2f14e4a
JM
3256 tic54x-*-*)
3257 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3258 ;;
52310858
NC
3259 cr16-*-*)
3260 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3261 ;;
c7e66c6d 3262 cris-*-* | crisv32-*-*)
59f7ec45 3263 unsupported_languages="$unsupported_languages java"
c7e66c6d 3264 case "${target}" in
2faa2958 3265 *-*-linux*)
5e818318 3266 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
b2f14e4a
JM
3267 *) # See PR46792 regarding target-libffi.
3268 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c7e66c6d 3269 esac
691bb5a1 3270 libgloss_dir=cris
a0da8069
NN
3271 ;;
3272 d10v-*-*)
b2f14e4a 3273 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3274 ;;
3275 d30v-*-*)
b2f14e4a 3276 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3277 ;;
3278 fr30-*-elf*)
54d1c879 3279 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3280 ;;
3281 frv-*-*)
54d1c879 3282 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3283 ;;
20135e4c
NC
3284 moxie-*-*)
3285 noconfigdirs="$noconfigdirs ${libgcj}"
3286 noconfigdirs="$noconfigdirs gprof"
3287 ;;
a0da8069 3288 h8300*-*-*)
54d1c879 3289 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3290 ;;
3291 h8500-*-*)
b2f14e4a 3292 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3293 ;;
caeba88f 3294 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3295 ;;
93cc359e 3296 hppa*64*-*-linux*)
a0da8069
NN
3297 # In this case, it's because the hppa64-linux target is for
3298 # the kernel only at this point and has no libc, and thus no
3299 # headers, crt*.o, etc., all of which are needed by these.
3300 noconfigdirs="$noconfigdirs target-zlib"
3301 ;;
f0ff0f90 3302 hppa*-*-linux*)
5dcac624 3303 ;;
a0da8069 3304 hppa*-*-*elf* | \
a0da8069
NN
3305 hppa*-*-lites* | \
3306 hppa*-*-openbsd* | \
3307 hppa*64*-*-*)
54d1c879 3308 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3309 ;;
3310 hppa*-hp-hpux11*)
0377a422 3311 noconfigdirs="$noconfigdirs ld"
a0da8069 3312 ;;
691bb5a1
DD
3313 hppa*-*-pro*)
3314 libgloss_dir=pa
3315 ;;
a0da8069
NN
3316 hppa*-*-*)
3317 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3318 # build on HP-UX 10.20.
0377a422 3319 noconfigdirs="$noconfigdirs ld ${libgcj}"
a0da8069 3320 ;;
b07c2aad 3321 i960-*-*)
b2f14e4a 3322 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3323 ;;
a0da8069
NN
3324 ia64*-*-elf*)
3325 # No gdb support yet.
0377a422 3326 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3327 ;;
3328 ia64*-**-hpux*)
92c9a463
JB
3329 # No ld support yet.
3330 noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
a0da8069 3331 ;;
19e99079
NC
3332 ia64*-*-*vms*)
3333 # No gdb or ld support yet.
0377a422 3334 noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
19e99079 3335 ;;
ec11bdc6 3336 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3337 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3338 libgloss_dir=i386
a0da8069 3339 ;;
ec11bdc6 3340 i[3456789]86-*-linux*)
a0da8069
NN
3341 # This section makes it possible to build newlib natively on linux.
3342 # If we are using a cross compiler then don't configure newlib.
3343 if test x${is_cross_compiler} != xno ; then
bba45b8b 3344 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3345 fi
3346 noconfigdirs="$noconfigdirs target-libgloss"
3347 # If we are not using a cross compiler, do configure newlib.
3348 # Note however, that newlib will only be configured in this situation
3349 # if the --with-newlib option has been given, because otherwise
3350 # 'target-newlib' will appear in skipdirs.
3351 ;;
1f53ca9a 3352 i[3456789]86-w64-mingw*)
0377a422 3353 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
1f53ca9a
AO
3354 ;;
3355 i[3456789]86-*-mingw*)
45055374 3356 target_configdirs="$target_configdirs target-winsup"
0377a422 3357 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
c6b750e1 3358 ;;
2d1e8239 3359 x86_64-*-mingw*)
0377a422 3360 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
c6b750e1 3361 ;;
a0da8069
NN
3362 *-*-cygwin*)
3363 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3364 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3365 # always build newlib if winsup directory is present.
45055374 3366 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3367 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3368 elif test -d "$srcdir/newlib"; then
45055374 3369 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3370 fi
c6b750e1 3371 ;;
f0ff0f90 3372 i[3456789]86-*-interix* )
caeba88f 3373 ;;
ec11bdc6 3374 i[3456789]86-*-pe)
782cb41f 3375 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3376 ;;
ec11bdc6 3377 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3378 # The linker does not yet know about weak symbols in COFF,
3379 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3380 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3381 ;;
ec11bdc6 3382 i[3456789]86-*-sco*)
b2f14e4a 3383 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3384 ;;
ec11bdc6 3385 i[3456789]86-*-solaris2*)
a0da8069
NN
3386 noconfigdirs="$noconfigdirs target-libgloss"
3387 ;;
ec11bdc6 3388 i[3456789]86-*-sysv4*)
b2f14e4a 3389 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3390 ;;
ec11bdc6 3391 i[3456789]86-*-beos*)
b2f14e4a 3392 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
bba45b8b 3393 ;;
b59bea8a 3394 i[3456789]86-*-rdos*)
2429c060
PB
3395 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3396 ;;
b07c2aad 3397 m32r-*-*)
54d1c879 3398 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3399 ;;
a0da8069 3400 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
691bb5a1 3401 libgloss_dir=m68hc11
a0da8069
NN
3402 ;;
3403 m68k-*-elf*)
54d1c879 3404 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3405 ;;
691bb5a1
DD
3406 m68*-*-* | fido-*-*)
3407 libgloss_dir=m68k
3408 ;;
a0da8069 3409 mmix-*-*)
b2f14e4a 3410 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb"
065a5627 3411 unsupported_languages="$unsupported_languages java"
a0da8069 3412 ;;
4970f871 3413 mt-*-*)
cdb9b172
AH
3414 noconfigdirs="$noconfigdirs sim"
3415 ;;
a0da8069
NN
3416 powerpc-*-aix*)
3417 # copied from rs6000-*-* entry
065a5627 3418 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib ${libgcj}"
a0da8069 3419 ;;
93cc359e 3420 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3421 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3422 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3423 # always build newlib.
3424 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3425 ;;
3426 # This is temporary until we can link against shared libraries
3427 powerpcle-*-solaris*)
b2f14e4a 3428 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
691bb5a1 3429 libgloss_dir=rs6000
a0da8069
NN
3430 ;;
3431 powerpc-*-beos*)
b2f14e4a 3432 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3433 ;;
a0da8069 3434 powerpc-*-eabi)
54d1c879 3435 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3436 libgloss_dir=rs6000
caeba88f
AL
3437 ;;
3438 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3439 libgloss_dir=rs6000
a0da8069 3440 ;;
a0da8069 3441 rs6000-*-lynxos*)
54d1c879 3442 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3443 ;;
3444 rs6000-*-aix*)
065a5627 3445 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib ${libgcj}"
a0da8069
NN
3446 ;;
3447 rs6000-*-*)
54d1c879 3448 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3449 ;;
3450 m68k-apollo-*)
b2f14e4a 3451 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3452 ;;
25a07265 3453 microblaze*)
065a5627 3454 noconfigdirs="$noconfigdirs gprof ${libgcj}"
25a07265 3455 ;;
5bd8be13 3456 mips*-sde-elf*)
5bd8be13
RS
3457 noconfigdirs="$noconfigdirs ${libgcj}"
3458 if test x$with_newlib = xyes; then
3459 noconfigdirs="$noconfigdirs gprof"
3460 fi
3461 libgloss_dir=mips
3462 ;;
a0da8069 3463 mips*-*-irix5*)
b2f14e4a 3464 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3465 ;;
3466 mips*-*-irix6*)
a0da8069
NN
3467 # Linking libjava exceeds command-line length limits on at least
3468 # IRIX 6.2, but not on IRIX 6.5.
3469 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3470 # <oldham@codesourcery.com>
54d1c879 3471 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3472 ;;
a0da8069 3473 mips*-*-bsd*)
b2f14e4a 3474 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3475 ;;
a0da8069
NN
3476 mips*-*-linux*)
3477 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3478 ;;
3479 mips*-*-*)
54d1c879 3480 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3481 libgloss_dir=mips
a0da8069 3482 ;;
dbf85af7 3483 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3484 case "${target}" in
3485 sh*-*-elf)
3486 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3487 *)
3488 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3489 esac
a0da8069 3490 ;;
691bb5a1
DD
3491 sparclet-*-aout* | sparc86x-*-*)
3492 libgloss_dir=sparc
3493 ;;
a0da8069 3494 sparc-*-elf*)
54d1c879 3495 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3496 ;;
3497 sparc64-*-elf*)
54d1c879 3498 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3499 libgloss_dir=sparc
a0da8069
NN
3500 ;;
3501 sparclite-*-*)
691bb5a1 3502 libgloss_dir=sparc
a0da8069
NN
3503 ;;
3504 sparc-*-sunos4*)
a0da8069
NN
3505 if test x${is_cross_compiler} != xno ; then
3506 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3507 else
3508 use_gnu_ld=no
3509 fi
3510 ;;
3511 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3512 ;;
619a3713
JM
3513 tic6x-*-*)
3514 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3515 ;;
a0da8069 3516 v810-*-*)
b2f14e4a 3517 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3518 ;;
3519 vax-*-*)
54d1c879 3520 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3521 ;;
29383458 3522 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 *-*-lynxos*)
54d1c879 3526 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3527 ;;
a0da8069 3528 *-*-*)
54d1c879 3529 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3530 ;;
3531esac
252b5132 3532
a0da8069
NN
3533# If we aren't building newlib, then don't build libgloss, since libgloss
3534# depends upon some newlib header files.
3535case "${noconfigdirs}" in
3536 *target-libgloss*) ;;
3537 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3538esac
3539
a0da8069 3540# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3541host_makefile_frag=/dev/null
3542if test -d ${srcdir}/config ; then
3543case "${host}" in
ec11bdc6 3544 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3545 host_makefile_frag="config/mh-djgpp"
3546 ;;
3547 *-cygwin*)
e33b51a6 3548
81ecdfbb
RW
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3550$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3551echo a >cygwin-cat-check
1f53ca9a 3552if test `cat cygwin-cat-check` = a ; then
8ade07e9 3553 rm cygwin-cat-check
81ecdfbb
RW
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3555$as_echo "yes" >&6; }
e33b51a6 3556else
8ade07e9 3557 rm cygwin-cat-check
81ecdfbb
RW
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559$as_echo "no" >&6; }
3560 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3561 Please either mount the build directory in binary mode or run the following
3562 commands before running any configure script:
3563set -o igncr
3564export SHELLOPTS
81ecdfbb 3565 " "$LINENO" 5
e33b51a6 3566fi
e33b51a6 3567
a0da8069
NN
3568 host_makefile_frag="config/mh-cygwin"
3569 ;;
8a1599ab 3570 *-mingw*)
84e7906e 3571 host_makefile_frag="config/mh-mingw"
2d1e8239 3572 ;;
a0da8069
NN
3573 *-interix*)
3574 host_makefile_frag="config/mh-interix"
3575 ;;
da888c87 3576 hppa*-hp-hpux10*)
da888c87 3577 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3578 ;;
3516a403 3579 hppa*-hp-hpux*)
da888c87
PB
3580 host_makefile_frag="config/mh-pa"
3581 ;;
3582 hppa*-*)
3583 host_makefile_frag="config/mh-pa"
3584 ;;
e552509b
ILT
3585 *-*-darwin*)
3586 host_makefile_frag="config/mh-darwin"
0df3d27f 3587 ;;
f6d183c0
PB
3588 powerpc-*-aix*)
3589 host_makefile_frag="config/mh-ppc-aix"
3590 ;;
3591 rs6000-*-aix*)
3592 host_makefile_frag="config/mh-ppc-aix"
3593 ;;
a0da8069
NN
3594esac
3595fi
3596
9e07f89d 3597if test "${build}" != "${host}" ; then
1576798e
PB
3598 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3599 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3600 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3601 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3602 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3603 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3604 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3605 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3606 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3607 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3608 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3609 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3610 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3611else
3612 AR_FOR_BUILD="\$(AR)"
3613 AS_FOR_BUILD="\$(AS)"
512b7dfb 3614 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3615 CXX_FOR_BUILD="\$(CXX)"
3616 GCJ_FOR_BUILD="\$(GCJ)"
3617 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3618 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3619 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3620 LD_FOR_BUILD="\$(LD)"
3621 NM_FOR_BUILD="\$(NM)"
3622 RANLIB_FOR_BUILD="\$(RANLIB)"
3623 WINDRES_FOR_BUILD="\$(WINDRES)"
3624 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3625fi
3626
3627ac_ext=c
c6b750e1
DJ
3628ac_cpp='$CPP $CPPFLAGS'
3629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632if test -n "$ac_tool_prefix"; then
3633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3634set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636$as_echo_n "checking for $ac_word... " >&6; }
3637if test "${ac_cv_prog_CC+set}" = set; then :
3638 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3639else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642else
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3652 break 2
3653 fi
3654done
81ecdfbb
RW
3655 done
3656IFS=$as_save_IFS
c6b750e1
DJ
3657
3658fi
3659fi
3660CC=$ac_cv_prog_CC
3661if test -n "$CC"; then
81ecdfbb
RW
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663$as_echo "$CC" >&6; }
c6b750e1 3664else
81ecdfbb
RW
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666$as_echo "no" >&6; }
c6b750e1
DJ
3667fi
3668
81ecdfbb 3669
c6b750e1
DJ
3670fi
3671if test -z "$ac_cv_prog_CC"; then
3672 ac_ct_CC=$CC
6a9cf61e 3673 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3674set dummy gcc; ac_word=$2
81ecdfbb
RW
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676$as_echo_n "checking for $ac_word... " >&6; }
3677if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3679else
3680 if test -n "$ac_ct_CC"; then
3681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3682else
3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH
3685do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3690 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3692 break 2
3693 fi
3694done
81ecdfbb
RW
3695 done
3696IFS=$as_save_IFS
c6b750e1
DJ
3697
3698fi
3699fi
3700ac_ct_CC=$ac_cv_prog_ac_ct_CC
3701if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3703$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3704else
81ecdfbb
RW
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706$as_echo "no" >&6; }
c6b750e1
DJ
3707fi
3708
81ecdfbb
RW
3709 if test "x$ac_ct_CC" = x; then
3710 CC=""
3711 else
3712 case $cross_compiling:$ac_tool_warned in
3713yes:)
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3716ac_tool_warned=yes ;;
3717esac
3718 CC=$ac_ct_CC
3719 fi
c6b750e1
DJ
3720else
3721 CC="$ac_cv_prog_CC"
3722fi
3723
3724if test -z "$CC"; then
81ecdfbb
RW
3725 if test -n "$ac_tool_prefix"; then
3726 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3727set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729$as_echo_n "checking for $ac_word... " >&6; }
3730if test "${ac_cv_prog_CC+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
9e07f89d
NN
3732else
3733 if test -n "$CC"; then
3734 ac_cv_prog_CC="$CC" # Let the user override the test.
3735else
c6b750e1
DJ
3736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737for as_dir in $PATH
3738do
3739 IFS=$as_save_IFS
3740 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3743 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3745 break 2
3746 fi
3747done
81ecdfbb
RW
3748 done
3749IFS=$as_save_IFS
c6b750e1 3750
9e07f89d
NN
3751fi
3752fi
c6b750e1 3753CC=$ac_cv_prog_CC
9e07f89d 3754if test -n "$CC"; then
81ecdfbb
RW
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3756$as_echo "$CC" >&6; }
c6b750e1 3757else
81ecdfbb
RW
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759$as_echo "no" >&6; }
c6b750e1
DJ
3760fi
3761
c6b750e1 3762
81ecdfbb 3763 fi
c6b750e1 3764fi
9e07f89d
NN
3765if test -z "$CC"; then
3766 # Extract the first word of "cc", so it can be a program name with args.
3767set dummy cc; ac_word=$2
81ecdfbb
RW
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769$as_echo_n "checking for $ac_word... " >&6; }
3770if test "${ac_cv_prog_CC+set}" = set; then :
3771 $as_echo_n "(cached) " >&6
9e07f89d
NN
3772else
3773 if test -n "$CC"; then
3774 ac_cv_prog_CC="$CC" # Let the user override the test.
3775else
9e07f89d 3776 ac_prog_rejected=no
c6b750e1
DJ
3777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $PATH
3779do
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3785 ac_prog_rejected=yes
3786 continue
3787 fi
3788 ac_cv_prog_CC="cc"
81ecdfbb 3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3790 break 2
3791 fi
3792done
81ecdfbb
RW
3793 done
3794IFS=$as_save_IFS
c6b750e1 3795
9e07f89d
NN
3796if test $ac_prog_rejected = yes; then
3797 # We found a bogon in the path, so make sure we never use it.
3798 set dummy $ac_cv_prog_CC
3799 shift
c6b750e1 3800 if test $# != 0; then
9e07f89d
NN
3801 # We chose a different compiler from the bogus one.
3802 # However, it has the same basename, so the bogon will be chosen
3803 # first if we set CC to just the basename; use the full file name.
3804 shift
c6b750e1 3805 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3806 fi
3807fi
3808fi
3809fi
c6b750e1 3810CC=$ac_cv_prog_CC
9e07f89d 3811if test -n "$CC"; then
81ecdfbb
RW
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813$as_echo "$CC" >&6; }
9e07f89d 3814else
81ecdfbb
RW
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816$as_echo "no" >&6; }
9e07f89d
NN
3817fi
3818
81ecdfbb 3819
c6b750e1
DJ
3820fi
3821if test -z "$CC"; then
3822 if test -n "$ac_tool_prefix"; then
81ecdfbb 3823 for ac_prog in cl.exe
c6b750e1
DJ
3824 do
3825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828$as_echo_n "checking for $ac_word... " >&6; }
3829if test "${ac_cv_prog_CC+set}" = set; then :
3830 $as_echo_n "(cached) " >&6
9e07f89d
NN
3831else
3832 if test -n "$CC"; then
3833 ac_cv_prog_CC="$CC" # Let the user override the test.
3834else
c6b750e1
DJ
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3844 break 2
376a0e54 3845 fi
c6b750e1 3846done
81ecdfbb
RW
3847 done
3848IFS=$as_save_IFS
cac3d6c4 3849
c6b750e1
DJ
3850fi
3851fi
3852CC=$ac_cv_prog_CC
3853if test -n "$CC"; then
81ecdfbb
RW
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3855$as_echo "$CC" >&6; }
cac3d6c4 3856else
81ecdfbb
RW
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
9e07f89d 3859fi
cac3d6c4 3860
81ecdfbb 3861
c6b750e1
DJ
3862 test -n "$CC" && break
3863 done
cac3d6c4 3864fi
c6b750e1
DJ
3865if test -z "$CC"; then
3866 ac_ct_CC=$CC
81ecdfbb 3867 for ac_prog in cl.exe
c6b750e1
DJ
3868do
3869 # Extract the first word of "$ac_prog", so it can be a program name with args.
3870set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872$as_echo_n "checking for $ac_word... " >&6; }
3873if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
cac3d6c4 3875else
c6b750e1
DJ
3876 if test -n "$ac_ct_CC"; then
3877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3878else
c6b750e1
DJ
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3886 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3888 break 2
3889 fi
3890done
81ecdfbb
RW
3891 done
3892IFS=$as_save_IFS
c6b750e1 3893
cac3d6c4
CM
3894fi
3895fi
c6b750e1
DJ
3896ac_ct_CC=$ac_cv_prog_ac_ct_CC
3897if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3899$as_echo "$ac_ct_CC" >&6; }
9e07f89d 3900else
81ecdfbb
RW
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902$as_echo "no" >&6; }
cac3d6c4 3903fi
376a0e54 3904
81ecdfbb 3905
c6b750e1
DJ
3906 test -n "$ac_ct_CC" && break
3907done
3908
81ecdfbb
RW
3909 if test "x$ac_ct_CC" = x; then
3910 CC=""
3911 else
3912 case $cross_compiling:$ac_tool_warned in
3913yes:)
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916ac_tool_warned=yes ;;
3917esac
3918 CC=$ac_ct_CC
3919 fi
c6b750e1
DJ
3920fi
3921
3922fi
3923
3924
81ecdfbb
RW
3925test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927as_fn_error "no acceptable C compiler found in \$PATH
3928See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
3929
3930# Provide some information about the compiler.
81ecdfbb
RW
3931$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3932set X $ac_compile
3933ac_compiler=$2
3934for ac_option in --version -v -V -qversion; do
3935 { { ac_try="$ac_compiler $ac_option >&5"
3936case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939esac
3940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941$as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 3943 ac_status=$?
81ecdfbb
RW
3944 if test -s conftest.err; then
3945 sed '10a\
3946... rest of stderr output deleted ...
3947 10q' conftest.err >conftest.er1
3948 cat conftest.er1 >&5
3949 rm -f conftest.er1 conftest.err
3950 fi
3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }
3953done
c6b750e1 3954
81ecdfbb 3955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
3956/* end confdefs.h. */
3957
3958int
3959main ()
3960{
3961
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966ac_clean_files_save=$ac_clean_files
81ecdfbb 3967ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
3968# Try to create an executable without -o first, disregard a.out.
3969# It will help us diagnose broken compilers, and finding out an intuition
3970# of exeext.
81ecdfbb
RW
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3972$as_echo_n "checking for C compiler default output file name... " >&6; }
3973ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3974
3975# The possible output files:
3976ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3977
3978ac_rmfiles=
3979for ac_file in $ac_files
3980do
3981 case $ac_file in
3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3983 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3984 esac
3985done
3986rm -f $ac_rmfiles
3987
3988if { { ac_try="$ac_link_default"
3989case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992esac
3993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994$as_echo "$ac_try_echo"; } >&5
3995 (eval "$ac_link_default") 2>&5
c6b750e1 3996 ac_status=$?
81ecdfbb
RW
3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }; then :
3999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4000# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4001# in a Makefile. We should not override ac_cv_exeext if it was cached,
4002# so that the user can short-circuit this test for compilers unknown to
4003# Autoconf.
4004for ac_file in $ac_files ''
c6b750e1
DJ
4005do
4006 test -f "$ac_file" || continue
4007 case $ac_file in
81ecdfbb 4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4009 ;;
4010 [ab].out )
4011 # We found the default executable, but exeext='' is most
4012 # certainly right.
4013 break;;
4014 *.* )
81ecdfbb
RW
4015 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4016 then :; else
4017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4018 fi
4019 # We set ac_cv_exeext here because the later test for it is not
4020 # safe: cross compilers may not add the suffix if given an `-o'
4021 # argument, so we may need to know it at that point already.
4022 # Even if this section looks crufty: it has the advantage of
4023 # actually working.
c6b750e1
DJ
4024 break;;
4025 * )
4026 break;;
4027 esac
4028done
81ecdfbb
RW
4029test "$ac_cv_exeext" = no && ac_cv_exeext=
4030
c6b750e1 4031else
81ecdfbb
RW
4032 ac_file=''
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4035$as_echo "$ac_file" >&6; }
4036if test -z "$ac_file"; then :
4037 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
81ecdfbb
RW
4040{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042{ as_fn_set_status 77
4043as_fn_error "C compiler cannot create executables
4044See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4045fi
c6b750e1 4046ac_exeext=$ac_cv_exeext
c6b750e1 4047
81ecdfbb 4048# Check that the compiler produces executables we can run. If not, either
c6b750e1 4049# the compiler is broken, or we cross compile.
81ecdfbb
RW
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4051$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4052# If not cross compiling, check that we can run a simple program.
4053if test "$cross_compiling" != yes; then
4054 if { ac_try='./$ac_file'
81ecdfbb
RW
4055 { { case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058esac
4059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060$as_echo "$ac_try_echo"; } >&5
4061 (eval "$ac_try") 2>&5
c6b750e1 4062 ac_status=$?
81ecdfbb
RW
4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064 test $ac_status = 0; }; }; then
c6b750e1
DJ
4065 cross_compiling=no
4066 else
4067 if test "$cross_compiling" = maybe; then
4068 cross_compiling=yes
4069 else
81ecdfbb
RW
4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072as_fn_error "cannot run C compiled programs.
c6b750e1 4073If you meant to cross compile, use \`--host'.
81ecdfbb 4074See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4075 fi
4076 fi
4077fi
81ecdfbb
RW
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4079$as_echo "yes" >&6; }
c6b750e1 4080
81ecdfbb 4081rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4082ac_clean_files=$ac_clean_files_save
81ecdfbb 4083# Check that the compiler produces executables we can run. If not, either
c6b750e1 4084# the compiler is broken, or we cross compile.
81ecdfbb
RW
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4086$as_echo_n "checking whether we are cross compiling... " >&6; }
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4088$as_echo "$cross_compiling" >&6; }
4089
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4091$as_echo_n "checking for suffix of executables... " >&6; }
4092if { { ac_try="$ac_link"
4093case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
4097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4098$as_echo "$ac_try_echo"; } >&5
4099 (eval "$ac_link") 2>&5
c6b750e1 4100 ac_status=$?
81ecdfbb
RW
4101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 test $ac_status = 0; }; then :
c6b750e1
DJ
4103 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4104# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4105# work properly (i.e., refer to `conftest.exe'), while it won't with
4106# `rm'.
4107for ac_file in conftest.exe conftest conftest.*; do
4108 test -f "$ac_file" || continue
4109 case $ac_file in
81ecdfbb 4110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4111 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4112 break;;
4113 * ) break;;
4114 esac
4115done
4116else
81ecdfbb
RW
4117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4119as_fn_error "cannot compute suffix of executables: cannot compile and link
4120See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4121fi
c6b750e1 4122rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4124$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4125
4126rm -f conftest.$ac_ext
4127EXEEXT=$ac_cv_exeext
4128ac_exeext=$EXEEXT
81ecdfbb
RW
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4130$as_echo_n "checking for suffix of object files... " >&6; }
4131if test "${ac_cv_objext+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
c6b750e1 4133else
81ecdfbb 4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4135/* end confdefs.h. */
4136
4137int
4138main ()
4139{
4140
4141 ;
4142 return 0;
4143}
4144_ACEOF
4145rm -f conftest.o conftest.obj
81ecdfbb
RW
4146if { { ac_try="$ac_compile"
4147case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4152$as_echo "$ac_try_echo"; } >&5
4153 (eval "$ac_compile") 2>&5
c6b750e1 4154 ac_status=$?
81ecdfbb
RW
4155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4156 test $ac_status = 0; }; then :
4157 for ac_file in conftest.o conftest.obj conftest.*; do
4158 test -f "$ac_file" || continue;
c6b750e1 4159 case $ac_file in
81ecdfbb 4160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4161 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4162 break;;
4163 esac
4164done
cac3d6c4 4165else
81ecdfbb 4166 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4167sed 's/^/| /' conftest.$ac_ext >&5
4168
81ecdfbb
RW
4169{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171as_fn_error "cannot compute suffix of object files: cannot compile
4172See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4173fi
c6b750e1
DJ
4174rm -f conftest.$ac_cv_objext conftest.$ac_ext
4175fi
81ecdfbb
RW
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4177$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4178OBJEXT=$ac_cv_objext
4179ac_objext=$OBJEXT
81ecdfbb
RW
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4181$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4182if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4183 $as_echo_n "(cached) " >&6
c6b750e1 4184else
81ecdfbb 4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4186/* end confdefs.h. */
4187
4188int
4189main ()
4190{
4191#ifndef __GNUC__
4192 choke me
4193#endif
4194
4195 ;
4196 return 0;
4197}
4198_ACEOF
81ecdfbb 4199if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4200 ac_compiler_gnu=yes
4201else
81ecdfbb 4202 ac_compiler_gnu=no
c6b750e1 4203fi
81ecdfbb 4204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4205ac_cv_c_compiler_gnu=$ac_compiler_gnu
4206
4207fi
81ecdfbb
RW
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4209$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4210if test $ac_compiler_gnu = yes; then
4211 GCC=yes
4212else
4213 GCC=
4214fi
c6b750e1
DJ
4215ac_test_CFLAGS=${CFLAGS+set}
4216ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4218$as_echo_n "checking whether $CC accepts -g... " >&6; }
4219if test "${ac_cv_prog_cc_g+set}" = set; then :
4220 $as_echo_n "(cached) " >&6
4221else
4222 ac_save_c_werror_flag=$ac_c_werror_flag
4223 ac_c_werror_flag=yes
4224 ac_cv_prog_cc_g=no
4225 CFLAGS="-g"
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4227/* end confdefs.h. */
4228
4229int
4230main ()
4231{
4232
4233 ;
4234 return 0;
4235}
4236_ACEOF
81ecdfbb 4237if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4238 ac_cv_prog_cc_g=yes
4239else
81ecdfbb
RW
4240 CFLAGS=""
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h. */
4243
4244int
4245main ()
4246{
4247
4248 ;
4249 return 0;
4250}
4251_ACEOF
4252if ac_fn_c_try_compile "$LINENO"; then :
4253
4254else
4255 ac_c_werror_flag=$ac_save_c_werror_flag
4256 CFLAGS="-g"
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h. */
cac3d6c4 4259
81ecdfbb
RW
4260int
4261main ()
4262{
4263
4264 ;
4265 return 0;
4266}
4267_ACEOF
4268if ac_fn_c_try_compile "$LINENO"; then :
4269 ac_cv_prog_cc_g=yes
4270fi
4271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4272fi
81ecdfbb 4273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4274fi
81ecdfbb
RW
4275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 ac_c_werror_flag=$ac_save_c_werror_flag
4277fi
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4279$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4280if test "$ac_test_CFLAGS" = set; then
c6b750e1 4281 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4282elif test $ac_cv_prog_cc_g = yes; then
4283 if test "$GCC" = yes; then
4284 CFLAGS="-g -O2"
4285 else
4286 CFLAGS="-g"
4287 fi
4288else
4289 if test "$GCC" = yes; then
4290 CFLAGS="-O2"
4291 else
4292 CFLAGS=
4293 fi
4294fi
81ecdfbb
RW
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4296$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4297if test "${ac_cv_prog_cc_c89+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
c6b750e1 4299else
81ecdfbb 4300 ac_cv_prog_cc_c89=no
c6b750e1 4301ac_save_CC=$CC
81ecdfbb 4302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4303/* end confdefs.h. */
4304#include <stdarg.h>
4305#include <stdio.h>
4306#include <sys/types.h>
4307#include <sys/stat.h>
4308/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4309struct buf { int x; };
4310FILE * (*rcsopen) (struct buf *, struct stat *, int);
4311static char *e (p, i)
4312 char **p;
4313 int i;
4314{
4315 return p[i];
4316}
4317static char *f (char * (*g) (char **, int), char **p, ...)
4318{
4319 char *s;
4320 va_list v;
4321 va_start (v,p);
4322 s = g (p, va_arg (v,int));
4323 va_end (v);
4324 return s;
4325}
4326
4327/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4328 function prototypes and stuff, but not '\xHH' hex character constants.
4329 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4330 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4331 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4332 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4333 that's true only with -std. */
c6b750e1
DJ
4334int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4335
81ecdfbb
RW
4336/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4337 inside strings and character constants. */
4338#define FOO(x) 'x'
4339int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4340
c6b750e1
DJ
4341int test (int i, double x);
4342struct s1 {int (*f) (int a);};
4343struct s2 {int (*f) (double a);};
4344int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4345int argc;
4346char **argv;
4347int
4348main ()
4349{
4350return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4351 ;
4352 return 0;
4353}
4354_ACEOF
81ecdfbb
RW
4355for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4356 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4357do
4358 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4361fi
81ecdfbb
RW
4362rm -f core conftest.err conftest.$ac_objext
4363 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4364done
81ecdfbb 4365rm -f conftest.$ac_ext
c6b750e1
DJ
4366CC=$ac_save_CC
4367
4368fi
81ecdfbb
RW
4369# AC_CACHE_VAL
4370case "x$ac_cv_prog_cc_c89" in
4371 x)
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4373$as_echo "none needed" >&6; } ;;
4374 xno)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4376$as_echo "unsupported" >&6; } ;;
c6b750e1 4377 *)
81ecdfbb
RW
4378 CC="$CC $ac_cv_prog_cc_c89"
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4380$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4381esac
81ecdfbb 4382if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4383
c6b750e1
DJ
4384fi
4385
c6b750e1
DJ
4386ac_ext=c
4387ac_cpp='$CPP $CPPFLAGS'
4388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4391
81ecdfbb 4392ac_ext=cpp
18f6b6ee
PB
4393ac_cpp='$CXXCPP $CPPFLAGS'
4394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4397if test -z "$CXX"; then
4398 if test -n "$CCC"; then
4399 CXX=$CCC
4400 else
4401 if test -n "$ac_tool_prefix"; then
4402 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4403 do
4404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4405set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407$as_echo_n "checking for $ac_word... " >&6; }
4408if test "${ac_cv_prog_CXX+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4410else
4411 if test -n "$CXX"; then
4412 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4421 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4423 break 2
4424 fi
4425done
81ecdfbb
RW
4426 done
4427IFS=$as_save_IFS
512b7dfb 4428
18f6b6ee
PB
4429fi
4430fi
4431CXX=$ac_cv_prog_CXX
4432if test -n "$CXX"; then
81ecdfbb
RW
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4434$as_echo "$CXX" >&6; }
18f6b6ee 4435else
81ecdfbb
RW
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437$as_echo "no" >&6; }
18f6b6ee
PB
4438fi
4439
81ecdfbb 4440
18f6b6ee
PB
4441 test -n "$CXX" && break
4442 done
4443fi
4444if test -z "$CXX"; then
4445 ac_ct_CXX=$CXX
81ecdfbb 4446 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4447do
4448 # Extract the first word of "$ac_prog", so it can be a program name with args.
4449set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451$as_echo_n "checking for $ac_word... " >&6; }
4452if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4454else
4455 if test -n "$ac_ct_CXX"; then
4456 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4457else
4458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH
4460do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4465 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4467 break 2
512b7dfb 4468 fi
18f6b6ee 4469done
81ecdfbb
RW
4470 done
4471IFS=$as_save_IFS
512b7dfb 4472
18f6b6ee
PB
4473fi
4474fi
4475ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4476if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4478$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4479else
81ecdfbb
RW
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481$as_echo "no" >&6; }
18f6b6ee
PB
4482fi
4483
81ecdfbb 4484
18f6b6ee
PB
4485 test -n "$ac_ct_CXX" && break
4486done
18f6b6ee 4487
81ecdfbb
RW
4488 if test "x$ac_ct_CXX" = x; then
4489 CXX="g++"
4490 else
4491 case $cross_compiling:$ac_tool_warned in
4492yes:)
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495ac_tool_warned=yes ;;
4496esac
4497 CXX=$ac_ct_CXX
4498 fi
18f6b6ee
PB
4499fi
4500
81ecdfbb
RW
4501 fi
4502fi
18f6b6ee 4503# Provide some information about the compiler.
81ecdfbb
RW
4504$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4505set X $ac_compile
4506ac_compiler=$2
4507for ac_option in --version -v -V -qversion; do
4508 { { ac_try="$ac_compiler $ac_option >&5"
4509case "(($ac_try" in
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4512esac
4513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4514$as_echo "$ac_try_echo"; } >&5
4515 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4516 ac_status=$?
81ecdfbb
RW
4517 if test -s conftest.err; then
4518 sed '10a\
4519... rest of stderr output deleted ...
4520 10q' conftest.err >conftest.er1
4521 cat conftest.er1 >&5
4522 rm -f conftest.er1 conftest.err
4523 fi
4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; }
4526done
18f6b6ee 4527
81ecdfbb
RW
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4529$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4530if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
18f6b6ee 4532else
81ecdfbb 4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4534/* end confdefs.h. */
4535
4536int
4537main ()
4538{
4539#ifndef __GNUC__
4540 choke me
4541#endif
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
81ecdfbb 4547if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4548 ac_compiler_gnu=yes
4549else
81ecdfbb 4550 ac_compiler_gnu=no
18f6b6ee 4551fi
81ecdfbb 4552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4553ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4554
4555fi
81ecdfbb
RW
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4557$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4558if test $ac_compiler_gnu = yes; then
4559 GXX=yes
4560else
4561 GXX=
4562fi
18f6b6ee
PB
4563ac_test_CXXFLAGS=${CXXFLAGS+set}
4564ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4566$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4567if test "${ac_cv_prog_cxx_g+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569else
4570 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4571 ac_cxx_werror_flag=yes
4572 ac_cv_prog_cxx_g=no
4573 CXXFLAGS="-g"
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4575/* end confdefs.h. */
4576
4577int
4578main ()
4579{
4580
4581 ;
4582 return 0;
4583}
4584_ACEOF
81ecdfbb 4585if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4586 ac_cv_prog_cxx_g=yes
4587else
81ecdfbb
RW
4588 CXXFLAGS=""
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4590/* end confdefs.h. */
81ecdfbb 4591
18f6b6ee
PB
4592int
4593main ()
4594{
81ecdfbb 4595
18f6b6ee
PB
4596 ;
4597 return 0;
4598}
4599_ACEOF
81ecdfbb 4600if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4601
81ecdfbb
RW
4602else
4603 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4604 CXXFLAGS="-g"
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4606/* end confdefs.h. */
81ecdfbb 4607
18f6b6ee
PB
4608int
4609main ()
4610{
81ecdfbb 4611
18f6b6ee
PB
4612 ;
4613 return 0;
4614}
4615_ACEOF
81ecdfbb
RW
4616if ac_fn_cxx_try_compile "$LINENO"; then :
4617 ac_cv_prog_cxx_g=yes
18f6b6ee 4618fi
81ecdfbb
RW
4619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620fi
4621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622fi
4623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4625fi
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4627$as_echo "$ac_cv_prog_cxx_g" >&6; }
4628if test "$ac_test_CXXFLAGS" = set; then
4629 CXXFLAGS=$ac_save_CXXFLAGS
4630elif test $ac_cv_prog_cxx_g = yes; then
4631 if test "$GXX" = yes; then
4632 CXXFLAGS="-g -O2"
4633 else
4634 CXXFLAGS="-g"
4635 fi
4636else
4637 if test "$GXX" = yes; then
4638 CXXFLAGS="-O2"
4639 else
4640 CXXFLAGS=
4641 fi
18f6b6ee 4642fi
18f6b6ee
PB
4643ac_ext=c
4644ac_cpp='$CPP $CPPFLAGS'
4645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648
4649
4650# We must set the default linker to the linker used by gcc for the correct
4651# operation of libtool. If LD is not defined and we are using gcc, try to
4652# set the LD default to the ld used by gcc.
4653if test -z "$LD"; then
4654 if test "$GCC" = yes; then
4655 case $build in
4656 *-*-mingw*)
4657 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4658 *)
4659 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4660 esac
4661 case $gcc_prog_ld in
4662 # Accept absolute paths.
4663 [\\/]* | [A-Za-z]:[\\/]*)
4664 LD="$gcc_prog_ld" ;;
4665 esac
4666 fi
512b7dfb
PB
4667fi
4668
4669
4670
4671
c6b750e1 4672if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4673 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4674set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676$as_echo_n "checking for $ac_word... " >&6; }
4677if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
9e07f89d 4679else
512b7dfb
PB
4680 if test -n "$GNATBIND"; then
4681 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4682else
c6b750e1
DJ
4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4690 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4692 break 2
4693 fi
4694done
81ecdfbb
RW
4695 done
4696IFS=$as_save_IFS
c6b750e1 4697
9e07f89d
NN
4698fi
4699fi
512b7dfb
PB
4700GNATBIND=$ac_cv_prog_GNATBIND
4701if test -n "$GNATBIND"; then
81ecdfbb
RW
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4703$as_echo "$GNATBIND" >&6; }
9e07f89d 4704else
81ecdfbb
RW
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706$as_echo "no" >&6; }
9e07f89d
NN
4707fi
4708
81ecdfbb 4709
c6b750e1 4710fi
512b7dfb
PB
4711if test -z "$ac_cv_prog_GNATBIND"; then
4712 ac_ct_GNATBIND=$GNATBIND
4713 # Extract the first word of "gnatbind", so it can be a program name with args.
4714set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716$as_echo_n "checking for $ac_word... " >&6; }
4717if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
9e07f89d 4719else
512b7dfb
PB
4720 if test -n "$ac_ct_GNATBIND"; then
4721 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4722else
c6b750e1
DJ
4723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4730 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4732 break 2
4733 fi
4734done
81ecdfbb
RW
4735 done
4736IFS=$as_save_IFS
c6b750e1 4737
9e07f89d
NN
4738fi
4739fi
512b7dfb
PB
4740ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4741if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4743$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4744else
81ecdfbb
RW
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746$as_echo "no" >&6; }
9e07f89d
NN
4747fi
4748
81ecdfbb
RW
4749 if test "x$ac_ct_GNATBIND" = x; then
4750 GNATBIND="no"
4751 else
4752 case $cross_compiling:$ac_tool_warned in
4753yes:)
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4756ac_tool_warned=yes ;;
4757esac
4758 GNATBIND=$ac_ct_GNATBIND
4759 fi
24ff9987 4760else
512b7dfb 4761 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4762fi
4763
7df2cd5d 4764if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4765 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4766set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768$as_echo_n "checking for $ac_word... " >&6; }
4769if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
7df2cd5d 4771else
512b7dfb
PB
4772 if test -n "$GNATMAKE"; then
4773 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4774else
4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776for as_dir in $PATH
4777do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4782 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4784 break 2
4785 fi
4786done
81ecdfbb
RW
4787 done
4788IFS=$as_save_IFS
7df2cd5d
PB
4789
4790fi
4791fi
512b7dfb
PB
4792GNATMAKE=$ac_cv_prog_GNATMAKE
4793if test -n "$GNATMAKE"; then
81ecdfbb
RW
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4795$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4796else
81ecdfbb
RW
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798$as_echo "no" >&6; }
7df2cd5d
PB
4799fi
4800
81ecdfbb 4801
7df2cd5d 4802fi
512b7dfb
PB
4803if test -z "$ac_cv_prog_GNATMAKE"; then
4804 ac_ct_GNATMAKE=$GNATMAKE
4805 # Extract the first word of "gnatmake", so it can be a program name with args.
4806set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808$as_echo_n "checking for $ac_word... " >&6; }
4809if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
7df2cd5d 4811else
512b7dfb
PB
4812 if test -n "$ac_ct_GNATMAKE"; then
4813 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4814else
4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4822 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4824 break 2
4825 fi
4826done
81ecdfbb
RW
4827 done
4828IFS=$as_save_IFS
7df2cd5d 4829
7df2cd5d
PB
4830fi
4831fi
512b7dfb
PB
4832ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4833if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4835$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4836else
81ecdfbb
RW
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838$as_echo "no" >&6; }
7df2cd5d
PB
4839fi
4840
81ecdfbb
RW
4841 if test "x$ac_ct_GNATMAKE" = x; then
4842 GNATMAKE="no"
4843 else
4844 case $cross_compiling:$ac_tool_warned in
4845yes:)
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4848ac_tool_warned=yes ;;
4849esac
4850 GNATMAKE=$ac_ct_GNATMAKE
4851 fi
7df2cd5d 4852else
512b7dfb 4853 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4854fi
4855
81ecdfbb
RW
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4857$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4858if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
9e07f89d
NN
4860else
4861 cat >conftest.adb <<EOF
4862procedure conftest is begin null; end conftest;
4863EOF
4864acx_cv_cc_gcc_supports_ada=no
4865# There is a bug in old released versions of GCC which causes the
4866# driver to exit successfully when the appropriate language module
4867# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4868# Therefore we must check for the error message as well as an
4869# unsuccessful exit.
b8908782
DD
4870# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4871# given a .adb file, but produce no object file. So we must check
4872# if an object file was really produced to guard against this.
9e07f89d 4873errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4874if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4875 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4876fi
4877rm -f conftest.*
4878fi
81ecdfbb
RW
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4880$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 4881
512b7dfb 4882if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4883 have_gnat=yes
4884else
4885 have_gnat=no
4886fi
4887
81ecdfbb
RW
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4889$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4890if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
b8908782
DD
4892else
4893 echo abfoo >t1
4894 echo cdfoo >t2
4895 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4896 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4897 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4898 :
4899 else
4900 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4901 fi
4902 fi
b8908782
DD
4903 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4904 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4905 :
b8908782
DD
4906 else
4907 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4908 fi
4909 fi
4910 rm t1 t2
4911
4912fi
81ecdfbb
RW
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4914$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
4915do_compare="$gcc_cv_prog_cmp_skip"
4916
4917
9e07f89d 4918
e8a5fa9c 4919# See if we are building gcc with C++.
81ecdfbb
RW
4920# Check whether --enable-build-with-cxx was given.
4921if test "${enable_build_with_cxx+set}" = set; then :
4922 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
4923else
4924 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
4925fi
4926
e8a5fa9c 4927
d5f2ee2e
KG
4928# Used for setting $lt_cv_objdir
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
4930$as_echo_n "checking for objdir... " >&6; }
4931if test "${lt_cv_objdir+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933else
4934 rm -f .libs 2>/dev/null
4935mkdir .libs 2>/dev/null
4936if test -d .libs; then
4937 lt_cv_objdir=.libs
4938else
4939 # MS-DOS does not allow filenames that begin with a dot.
4940 lt_cv_objdir=_libs
4941fi
4942rmdir .libs 2>/dev/null
4943fi
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
4945$as_echo "$lt_cv_objdir" >&6; }
4946objdir=$lt_cv_objdir
4947
4948
4949
4950
4951
4952cat >>confdefs.h <<_ACEOF
4953#define LT_OBJDIR "$lt_cv_objdir/"
4954_ACEOF
4955
4956
4957
e8a5fa9c 4958# Check for GMP, MPFR and MPC
d9b76ff9 4959gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 4960gmpinc=
4b900473 4961have_gmp=no
e8a5fa9c
RW
4962
4963# Specify a location for mpc
4964# check for this first so it ends up on the link line before mpfr.
4965
81ecdfbb
RW
4966# Check whether --with-mpc was given.
4967if test "${with_mpc+set}" = set; then :
4968 withval=$with_mpc;
4969fi
e8a5fa9c 4970
e8a5fa9c 4971
e552509b 4972# Check whether --with-mpc-include was given.
81ecdfbb
RW
4973if test "${with_mpc_include+set}" = set; then :
4974 withval=$with_mpc_include;
4975fi
e8a5fa9c 4976
e8a5fa9c 4977
e552509b 4978# Check whether --with-mpc-lib was given.
81ecdfbb
RW
4979if test "${with_mpc_lib+set}" = set; then :
4980 withval=$with_mpc_lib;
4981fi
e8a5fa9c 4982
e8a5fa9c
RW
4983
4984if test "x$with_mpc" != x; then
d9b76ff9
KG
4985 gmplibs="-L$with_mpc/lib $gmplibs"
4986 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
4987fi
4988if test "x$with_mpc_include" != x; then
d9b76ff9 4989 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
4990fi
4991if test "x$with_mpc_lib" != x; then
d9b76ff9 4992 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
4993fi
4994if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 4995 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 4996 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
4997 # Do not test the mpc version. Assume that it is sufficient, since
4998 # it is in the source tree, and the library has not been built yet
4999 # but it would be included on the link line in the version check below
5000 # hence making the test fail.
d9b76ff9 5001 have_gmp=yes
e8a5fa9c 5002fi
4b900473 5003
11b04d1f
DD
5004# Specify a location for mpfr
5005# check for this first so it ends up on the link line before gmp.
c6b750e1 5006
81ecdfbb
RW
5007# Check whether --with-mpfr-dir was given.
5008if test "${with_mpfr_dir+set}" = set; then :
5009 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5010Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5011fi
5012
11b04d1f
DD
5013
5014
81ecdfbb
RW
5015# Check whether --with-mpfr was given.
5016if test "${with_mpfr+set}" = set; then :
5017 withval=$with_mpfr;
5018fi
c6b750e1 5019
11b04d1f 5020
e552509b 5021# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5022if test "${with_mpfr_include+set}" = set; then :
5023 withval=$with_mpfr_include;
5024fi
c6b750e1 5025
8a0d8a5c 5026
e552509b 5027# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5028if test "${with_mpfr_lib+set}" = set; then :
5029 withval=$with_mpfr_lib;
5030fi
8a0d8a5c 5031
11b04d1f
DD
5032
5033if test "x$with_mpfr" != x; then
5034 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5035 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5036fi
8a0d8a5c 5037if test "x$with_mpfr_include" != x; then
d9b76ff9 5038 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5039fi
5040if test "x$with_mpfr_lib" != x; then
5041 gmplibs="-L$with_mpfr_lib $gmplibs"
5042fi
4b900473 5043if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5044 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5045 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5046 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5047 # Do not test the mpfr version. Assume that it is sufficient, since
5048 # it is in the source tree, and the library has not been built yet
5049 # but it would be included on the link line in the version check below
5050 # hence making the test fail.
5051 have_gmp=yes
5052fi
11b04d1f 5053
4b1cb4fe 5054# Specify a location for gmp
c6b750e1 5055
81ecdfbb
RW
5056# Check whether --with-gmp-dir was given.
5057if test "${with_gmp_dir+set}" = set; then :
5058 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5059Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5060fi
5061
4b1cb4fe
DD
5062
5063
81ecdfbb
RW
5064# Check whether --with-gmp was given.
5065if test "${with_gmp+set}" = set; then :
5066 withval=$with_gmp;
5067fi
c6b750e1 5068
4b1cb4fe 5069
e552509b 5070# Check whether --with-gmp-include was given.
81ecdfbb
RW
5071if test "${with_gmp_include+set}" = set; then :
5072 withval=$with_gmp_include;
5073fi
c6b750e1 5074
8a0d8a5c 5075
e552509b 5076# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5077if test "${with_gmp_lib+set}" = set; then :
5078 withval=$with_gmp_lib;
5079fi
8a0d8a5c
PB
5080
5081
4b1cb4fe 5082
11b04d1f
DD
5083if test "x$with_gmp" != x; then
5084 gmplibs="-L$with_gmp/lib $gmplibs"
5085 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5086fi
8a0d8a5c
PB
5087if test "x$with_gmp_include" != x; then
5088 gmpinc="-I$with_gmp_include $gmpinc"
5089fi
5090if test "x$with_gmp_lib" != x; then
5091 gmplibs="-L$with_gmp_lib $gmplibs"
5092fi
4b900473 5093if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5094 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5095 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5096 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5097 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5098 # Do not test the gmp version. Assume that it is sufficient, since
5099 # it is in the source tree, and the library has not been built yet
5100 # but it would be included on the link line in the version check below
5101 # hence making the test fail.
5102 have_gmp=yes
5103fi
4b1cb4fe 5104
ceb92e78 5105if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5106 have_gmp=yes
5107 saved_CFLAGS="$CFLAGS"
5108 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5109 # Check for the recommended and required versions of GMP.
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5111$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5112
5113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5114/* end confdefs.h. */
5115#include "gmp.h"
5116int
5117main ()
5118{
5119
5120 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5121 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5122 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5123 choke me
5124 #endif
5125
5126 ;
5127 return 0;
5128}
5129_ACEOF
5130if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5132/* end confdefs.h. */
a6b5846e 5133#include <gmp.h>
c6b750e1
DJ
5134int
5135main ()
5136{
4b1cb4fe 5137
a6b5846e
KG
5138 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5139 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5140 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5141 choke me
5142 #endif
c6b750e1
DJ
5143
5144 ;
5145 return 0;
5146}
5147_ACEOF
81ecdfbb
RW
5148if ac_fn_c_try_compile "$LINENO"; then :
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5150$as_echo "yes" >&6; }
a6b5846e
KG
5151else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5153$as_echo "buggy but acceptable" >&6; }
5154fi
5155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5156else
81ecdfbb
RW
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5159fi
81ecdfbb 5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5161
e8a5fa9c 5162 # If we have GMP, check the MPFR version.
4b900473 5163 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5164 # Check for the recommended and required versions of MPFR.
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5166$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5168/* end confdefs.h. */
9b134994 5169#include <gmp.h>
4b900473 5170 #include <mpfr.h>
c6b750e1
DJ
5171int
5172main ()
5173{
9b134994 5174
ef699244 5175 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5176 choke me
5177 #endif
c6b750e1
DJ
5178
5179 ;
5180 return 0;
5181}
5182_ACEOF
81ecdfbb
RW
5183if ac_fn_c_try_compile "$LINENO"; then :
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5185/* end confdefs.h. */
4b1cb4fe 5186#include <gmp.h>
4b900473 5187 #include <mpfr.h>
c6b750e1
DJ
5188int
5189main ()
5190{
9dbaa842 5191
a6b5846e 5192 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5193 choke me
5194 #endif
e8a5fa9c
RW
5195
5196 ;
5197 return 0;
5198}
5199_ACEOF
81ecdfbb
RW
5200if ac_fn_c_try_compile "$LINENO"; then :
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5202$as_echo "yes" >&6; }
e8a5fa9c 5203else
81ecdfbb
RW
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5205$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5206fi
81ecdfbb 5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5208else
81ecdfbb
RW
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5211fi
81ecdfbb 5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5213 fi
5214
5215 # Check for the MPC header version.
d9b76ff9 5216 if test x"$have_gmp" = xyes ; then
a6b5846e 5217 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5219$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5221/* end confdefs.h. */
5222#include <mpc.h>
5223int
5224main ()
5225{
5226
a6b5846e
KG
5227 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5228 choke me
5229 #endif
5230
5231 ;
5232 return 0;
5233}
5234_ACEOF
5235if ac_fn_c_try_compile "$LINENO"; then :
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237/* end confdefs.h. */
5238#include <mpc.h>
5239int
5240main ()
5241{
5242
5243 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5244 choke me
5245 #endif
5246
5247 ;
5248 return 0;
5249}
5250_ACEOF
81ecdfbb
RW
5251if ac_fn_c_try_compile "$LINENO"; then :
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5253$as_echo "yes" >&6; }
a6b5846e
KG
5254else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5256$as_echo "buggy but acceptable" >&6; }
5257fi
5258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5259else
81ecdfbb 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5261$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5262fi
81ecdfbb 5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5264 fi
5265
5266 # Now check the MPFR library.
5267 if test x"$have_gmp" = xyes; then
5268 saved_LIBS="$LIBS"
5269 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5271$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5273/* end confdefs.h. */
d9b76ff9 5274#include <mpc.h>
e8a5fa9c
RW
5275int
5276main ()
5277{
5278
5279 mpfr_t n;
5280 mpfr_t x;
d9b76ff9 5281 mpc_t c;
e8a5fa9c
RW
5282 int t;
5283 mpfr_init (n);
5284 mpfr_init (x);
5285 mpfr_atan2 (n, n, x, GMP_RNDN);
5286 mpfr_erfc (n, x, GMP_RNDN);
5287 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5288 mpfr_clear(n);
5289 mpfr_clear(x);
5290 mpc_init2 (c, 53);
5291 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5292 mpc_cosh (c, c, MPC_RNDNN);
5293 mpc_pow (c, c, c, MPC_RNDNN);
5294 mpc_acosh (c, c, MPC_RNDNN);
5295 mpc_clear (c);
c6b750e1
DJ
5296
5297 ;
5298 return 0;
5299}
5300_ACEOF
81ecdfbb
RW
5301if ac_fn_c_try_link "$LINENO"; then :
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5303$as_echo "yes" >&6; }
c6b750e1 5304else
81ecdfbb
RW
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5307fi
81ecdfbb
RW
5308rm -f core conftest.err conftest.$ac_objext \
5309 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5310 LIBS="$saved_LIBS"
5311 fi
5312
4b900473 5313 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5314
a6b5846e
KG
5315# The library versions listed in the error message below should match
5316# the HARD-minimums enforced above.
4b900473 5317 if test x$have_gmp != xyes; then
a6b5846e 5318 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5319Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5320their locations. Source code for these libraries can be found at
5321their respective hosting sites as well as at
5322ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5323http://gcc.gnu.org/install/prerequisites.html for additional info. If
5324you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5325make sure that you have installed both the libraries and the header
5326files. They may be located in separate packages." "$LINENO" 5
4b900473 5327 fi
9dbaa842
DD
5328fi
5329
e8a5fa9c
RW
5330# Flags needed for both GMP, MPFR and/or MPC.
5331
5332
5333
4b1cb4fe
DD
5334
5335
5336
29383458
JM
5337# Allow host libstdc++ to be specified for static linking with PPL.
5338
81ecdfbb
RW
5339# Check whether --with-host-libstdcxx was given.
5340if test "${with_host_libstdcxx+set}" = set; then :
5341 withval=$with_host_libstdcxx;
5342fi
29383458 5343
29383458
JM
5344
5345case $with_host_libstdcxx in
5346 no|yes)
81ecdfbb 5347 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5348 ;;
5349esac
e28c595f 5350
e8a5fa9c
RW
5351# Linker flags to use for stage1 or when not boostrapping.
5352
81ecdfbb
RW
5353# Check whether --with-stage1-ldflags was given.
5354if test "${with_stage1_ldflags+set}" = set; then :
5355 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5356 stage1_ldflags=
5357 else
5358 stage1_ldflags=$withval
5359 fi
5360else
5361 stage1_ldflags=
81ecdfbb
RW
5362fi
5363
e8a5fa9c
RW
5364
5365
5366# Libraries to use for stage1 or when not bootstrapping.
5367
81ecdfbb
RW
5368# Check whether --with-stage1-libs was given.
5369if test "${with_stage1_libs+set}" = set; then :
5370 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5371 stage1_libs=
5372 else
5373 stage1_libs=$withval
5374 fi
5375else
5376 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5377fi
5378
e8a5fa9c
RW
5379
5380
e8a5fa9c
RW
5381# Libraries to use for stage2 and later builds. This defaults to the
5382# argument passed to --with-host-libstdcxx.
5383
81ecdfbb
RW
5384# Check whether --with-boot-libs was given.
5385if test "${with_boot_libs+set}" = set; then :
5386 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5387 poststage1_libs=
5388 else
5389 poststage1_libs=$withval
5390 fi
5391else
5392 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5393fi
5394
e8a5fa9c
RW
5395
5396
143754cd
NC
5397# Linker flags to use for stage2 and later builds.
5398
5399# Check whether --with-boot-ldflags was given.
5400if test "${with_boot_ldflags+set}" = set; then :
5401 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5402 poststage1_ldflags=
5403 else
5404 poststage1_ldflags=$withval
5405 fi
5406else
5407 poststage1_ldflags=
4f11b223
ILT
5408 # In stages 2 and 3, default to linking libstdc++ and libgcc
5409 # statically. But if the user explicitly specified the libraries to
5410 # use, trust that they are doing what they want.
5411 if test "$poststage1_libs" = ""; then
143754cd
NC
5412 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5413 fi
5414fi
5415
5416
5417
e28c595f 5418# Check for PPL
b123da99 5419ppllibs=
e28c595f 5420pplinc=
b123da99 5421pwllib=
e28c595f
JM
5422
5423
81ecdfbb
RW
5424# Check whether --with-ppl was given.
5425if test "${with_ppl+set}" = set; then :
5426 withval=$with_ppl;
81ecdfbb 5427fi
e28c595f 5428
e28c595f 5429
e552509b 5430# Check whether --with-ppl-include was given.
81ecdfbb
RW
5431if test "${with_ppl_include+set}" = set; then :
5432 withval=$with_ppl_include;
5433fi
5434
e28c595f 5435
e552509b 5436# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5437if test "${with_ppl_lib+set}" = set; then :
5438 withval=$with_ppl_lib;
5439fi
e28c595f 5440
e28c595f 5441
b123da99
SP
5442# Check whether --enable-ppl-version-check was given.
5443if test "${enable_ppl_version_check+set}" = set; then :
5444 enableval=$enable_ppl_version_check;
5445fi
5446
5447
29383458 5448case $with_ppl in
b123da99 5449 yes | no | "")
1f53ca9a 5450 ;;
29383458 5451 *)
b123da99 5452 ppllibs="-L$with_ppl/lib"
29383458 5453 pplinc="-I$with_ppl/include $pplinc"
b123da99
SP
5454 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5455 with_ppl=yes
5456 else
5457 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5458 fi
29383458
JM
5459 ;;
5460esac
b123da99
SP
5461
5462if test x"$with_ppl_include" != x; then
e28c595f 5463 pplinc="-I$with_ppl_include $pplinc"
b123da99 5464 with_ppl=yes
e28c595f 5465fi
b123da99 5466
e28c595f 5467if test "x$with_ppl_lib" != x; then
b123da99
SP
5468 ppllibs="-L$with_ppl_lib"
5469 with_ppl=yes
e28c595f 5470fi
b123da99
SP
5471
5472if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5473 if test x"$enable_watchdog" = xyes; then
5474 pwllib="-lpwl"
5475 fi
5476 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
1f53ca9a
AO
5477 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5478 enable_ppl_version_check=no
b123da99 5479 with_ppl=yes
e28c595f
JM
5480fi
5481
86ed8cf6 5482if test "x$with_ppl" != xno; then
b123da99 5483 if test "x$pwllib" = x; then
0e8ad34f
RO
5484 saved_LIBS="$LIBS"
5485 LIBS="$LIBS $ppllibs -lstdc++ -lm"
b123da99
SP
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5487$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5488if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5490else
5491 ac_check_lib_save_LIBS=$LIBS
5492LIBS="-lpwl $LIBS"
5493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h. */
5495
5496/* Override any GCC internal prototype to avoid an error.
5497 Use char because int might match the return type of a GCC
5498 builtin and then its argument prototype would still apply. */
5499#ifdef __cplusplus
5500extern "C"
5501#endif
5502char PWL_handle_timeout ();
5503int
5504main ()
5505{
5506return PWL_handle_timeout ();
5507 ;
5508 return 0;
5509}
5510_ACEOF
5511if ac_fn_c_try_link "$LINENO"; then :
5512 ac_cv_lib_pwl_PWL_handle_timeout=yes
e28c595f 5513else
b123da99
SP
5514 ac_cv_lib_pwl_PWL_handle_timeout=no
5515fi
5516rm -f core conftest.err conftest.$ac_objext \
5517 conftest$ac_exeext conftest.$ac_ext
5518LIBS=$ac_check_lib_save_LIBS
5519fi
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5521$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5522if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5523 pwllib="-lpwl"
81ecdfbb
RW
5524fi
5525
0e8ad34f 5526 LIBS="$saved_LIBS"
b123da99 5527 fi
e28c595f 5528
b123da99
SP
5529 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5530
5531 if test "$enable_ppl_version_check" != no; then
5532 saved_CFLAGS="$CFLAGS"
5533 CFLAGS="$CFLAGS $pplinc $gmpinc"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5535$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5537/* end confdefs.h. */
5538#include "ppl_c.h"
5539int
5540main ()
5541{
5542
b123da99
SP
5543 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5544 choke me
5545 #endif
e28c595f
JM
5546
5547 ;
5548 return 0;
5549}
5550_ACEOF
81ecdfbb
RW
5551if ac_fn_c_try_compile "$LINENO"; then :
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553$as_echo "yes" >&6; }
e28c595f 5554else
81ecdfbb 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5556$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5557fi
81ecdfbb 5558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b123da99
SP
5559 CFLAGS="$saved_CFLAGS"
5560 fi
e28c595f
JM
5561fi
5562
5563# Flags needed for PPL
5564
5565
5566
5567
5568# Check for CLOOG
e552509b 5569
e28c595f
JM
5570
5571
81ecdfbb
RW
5572# Check whether --with-cloog was given.
5573if test "${with_cloog+set}" = set; then :
5574 withval=$with_cloog;
81ecdfbb
RW
5575fi
5576
e28c595f 5577
e552509b 5578# Check whether --with-cloog-include was given.
81ecdfbb
RW
5579if test "${with_cloog_include+set}" = set; then :
5580 withval=$with_cloog_include;
5581fi
e28c595f 5582
e28c595f 5583
e552509b 5584# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5585if test "${with_cloog_lib+set}" = set; then :
5586 withval=$with_cloog_lib;
5587fi
e28c595f 5588
e28c595f 5589
e552509b
ILT
5590 # Check whether --enable-cloog-backend was given.
5591if test "${enable_cloog_backend+set}" = set; then :
5592 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5593 cloog_backend=isl
5594 elif test "x${enableval}" = "xppl"; then
5595 cloog_backend=ppl
5596 else
5597 cloog_backend=ppl-legacy
5598 fi
5599else
5600 cloog_backend=ppl-legacy
5601fi
5602
5603 # Check whether --enable-cloog-version-check was given.
5604if test "${enable_cloog_version_check+set}" = set; then :
5605 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5606else
5607 ENABLE_CLOOG_CHECK=yes
5608fi
5609
5610
5611 # Initialize clooglibs and clooginc.
5612 case $with_cloog in
5613 no)
5614 clooglibs=
5615 clooginc=
5616 ;;
5617 "" | yes)
5618 ;;
5619 *)
5620 clooglibs="-L$with_cloog/lib"
5621 clooginc="-I$with_cloog/include"
5622 ;;
5623 esac
5624 if test "x${with_cloog_include}" != x ; then
5625 clooginc="-I$with_cloog_include"
5626 fi
5627 if test "x${with_cloog_lib}" != x; then
5628 clooglibs="-L$with_cloog_lib"
5629 fi
5630
5631
5632
5633
5634
1f53ca9a 5635if test "x$with_ppl" = "xno"; then
8d8eef9a
RW
5636
5637
5638
5639 if test "x${with_cloog}" = xno; then
5640 graphite_requested=no
5641 elif test "x${with_cloog}" != x \
5642 || test "x${with_cloog_include}" != x \
5643 || test "x${with_cloog_lib}" != x ; then
5644 graphite_requested=yes
5645 else
5646 graphite_requested=no
5647 fi
5648
5649
5650 if test "${graphite_requested}" = yes; then
5651 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5652 fi
1f53ca9a
AO
5653 with_cloog=no
5654fi
e552509b
ILT
5655if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5656 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5657 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5658 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5659fi
5660if test "x$with_cloog" != "xno"; then
1f53ca9a 5661
e552509b
ILT
5662
5663
5664 _cloog_saved_CFLAGS=$CFLAGS
5665 _cloog_saved_CPPFLAGS=$CPPFLAGS
5666 _cloog_saved_LDFLAGS=$LDFLAGS
5667 _cloog_saved_LIBS=$LIBS
5668
5669 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5670
5671 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5672 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5673 LDFLAGS="${LDFLAGS} ${clooglibs}"
5674
5675 case $cloog_backend in
5676 "ppl-legacy")
5677 CFLAGS="${CFLAGS} ${pplinc}"
5678 LDFLAGS="${LDFLAGS} ${ppllibs}"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5680$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5681if test "${gcc_cv_cloog_type+set}" = set; then :
5682 $as_echo_n "(cached) " >&6
5683else
5684 LIBS="-lcloog ${_cloog_saved_LIBS}"
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h. */
5687#include "cloog/cloog.h"
5688int
5689main ()
5690{
5691#ifndef CLOOG_PPL_BACKEND
5692 choke me
5693 #endif
5694 ;
5695 return 0;
5696}
5697_ACEOF
5698if ac_fn_c_try_link "$LINENO"; then :
5699 gcc_cv_cloog_type="PPL Legacy"
5700else
5701 gcc_cv_cloog_type=no
5702fi
5703rm -f core conftest.err conftest.$ac_objext \
5704 conftest$ac_exeext conftest.$ac_ext
e28c595f 5705fi
e552509b
ILT
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5707$as_echo "$gcc_cv_cloog_type" >&6; }
5708 ;;
5709 "isl")
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5711$as_echo_n "checking for installed CLooG ISL... " >&6; }
5712if test "${gcc_cv_cloog_type+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5714else
5715 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717/* end confdefs.h. */
5718#include "cloog/cloog.h"
5719int
5720main ()
5721{
5722cloog_version ()
5723 ;
5724 return 0;
5725}
5726_ACEOF
5727if ac_fn_c_try_link "$LINENO"; then :
5728 gcc_cv_cloog_type="ISL"
5729else
5730 gcc_cv_cloog_type=no
e28c595f 5731fi
e552509b
ILT
5732rm -f core conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
e28c595f 5734fi
e552509b
ILT
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5736$as_echo "$gcc_cv_cloog_type" >&6; }
5737 ;;
5738 "ppl")
5739 CFLAGS="${CFLAGS} ${pplinc}"
5740 LDFLAGS="${LDFLAGS} ${ppllibs}"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5742$as_echo_n "checking for installed CLooG PPL... " >&6; }
5743if test "${gcc_cv_cloog_type+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
e28c595f 5745else
e552509b
ILT
5746 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748/* end confdefs.h. */
5749#include "cloog/cloog.h"
5750 #include "cloog/ppl/cloog.h"
5751int
5752main ()
5753{
5754cloog_version ()
5755 ;
5756 return 0;
5757}
5758_ACEOF
5759if ac_fn_c_try_link "$LINENO"; then :
5760 gcc_cv_cloog_type="PPL"
5761else
5762 gcc_cv_cloog_type=no
81ecdfbb 5763fi
e552509b
ILT
5764rm -f core conftest.err conftest.$ac_objext \
5765 conftest$ac_exeext conftest.$ac_ext
5766fi
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5768$as_echo "$gcc_cv_cloog_type" >&6; }
5769 ;;
5770 *)
5771 gcc_cv_cloog_type=""
5772 esac
5773
5774 case $gcc_cv_cloog_type in
5775 "PPL Legacy")
5776 clooginc="${clooginc}"
5777 clooglibs="${clooglibs} -lcloog"
5778 cloog_org=no
5779 ;;
5780 "ISL")
5781 clooginc="${clooginc} ${_cloogorginc}"
b123da99 5782 clooglibs="${clooglibs} -lcloog-isl -lisl"
e552509b
ILT
5783 cloog_org=yes
5784 ;;
5785 "PPL")
5786 clooginc="${clooginc} ${_cloogorginc}"
5787 clooglibs="${clooglibs} -lcloog-ppl"
5788 cloog_org=yes
5789 ;;
5790 *)
5791 clooglibs=
5792 clooginc=
5793 cloog_org=
5794 ;;
5795 esac
81ecdfbb 5796
e552509b
ILT
5797 LIBS=$_cloog_saved_LIBS
5798 CFLAGS=$_cloog_saved_CFLAGS
5799 CPPFLAGS=$_cloog_saved_CPPFLAGS
5800 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5801
e552509b
ILT
5802
5803
5804
5805
5806 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5807 _cloog_saved_CFLAGS=$CFLAGS
5808 _cloog_saved_LDFLAGS=$LDFLAGS
5809
5810 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5811 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5812
5813 if test "${cloog_org}" = yes ; then
8d8eef9a
RW
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5815$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
e552509b
ILT
5816if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
5818else
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820/* end confdefs.h. */
5821#include "cloog/cloog.h"
5822int
5823main ()
5824{
5825#if CLOOG_VERSION_MAJOR != 0 \
8d8eef9a
RW
5826 || CLOOG_VERSION_MINOR != 16 \
5827 || CLOOG_VERSION_REVISION < 1
e552509b
ILT
5828 choke me
5829 #endif
5830 ;
5831 return 0;
5832}
5833_ACEOF
5834if ac_fn_c_try_compile "$LINENO"; then :
5835 gcc_cv_cloog_ct_0_14_0=yes
5836else
5837 gcc_cv_cloog_ct_0_14_0=no
5838fi
5839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840fi
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5842$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5843 elif test "${cloog_org}" = no ; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 5845$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
5846if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5847 $as_echo_n "(cached) " >&6
5848else
81ecdfbb 5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5850/* end confdefs.h. */
5851#include "cloog/cloog.h"
5852int
5853main ()
5854{
e552509b
ILT
5855#if CLOOG_VERSION_MAJOR != 0 \
5856 || CLOOG_VERSION_MINOR != 15 \
5857 || CLOOG_VERSION_REVISION < 5
5858 choke me
5859 #endif
e28c595f
JM
5860 ;
5861 return 0;
5862}
5863_ACEOF
a009f2e7
RW
5864if ac_fn_c_try_compile "$LINENO"; then :
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h. */
5867#include "cloog/cloog.h"
5868int
5869main ()
5870{
e552509b
ILT
5871#if CLOOG_VERSION_MAJOR != 0 \
5872 || CLOOG_VERSION_MINOR != 15 \
5873 || CLOOG_VERSION_REVISION < 9
5874 choke me
5875 #endif
a009f2e7
RW
5876 ;
5877 return 0;
5878}
5879_ACEOF
81ecdfbb 5880if ac_fn_c_try_compile "$LINENO"; then :
e552509b 5881 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 5882else
e552509b 5883 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
5884fi
5885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5886else
e552509b 5887 gcc_cv_cloog_ct_0_15_5=no
e28c595f 5888fi
81ecdfbb 5889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5890fi
e552509b
ILT
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5892$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5893 fi
5894
5895 CFLAGS=$_cloog_saved_CFLAGS
5896 LDFLAGS=$_cloog_saved_LDFLAGS
5897 fi
5898
5899
5900
e28c595f 5901
e28c595f
JM
5902
5903
5904
8d8eef9a
RW
5905 if test "x${with_cloog}" = xno; then
5906 graphite_requested=no
5907 elif test "x${with_cloog}" != x \
e552509b
ILT
5908 || test "x${with_cloog_include}" != x \
5909 || test "x${with_cloog_lib}" != x ; then
5910 graphite_requested=yes
5911 else
5912 graphite_requested=no
5913 fi
5914
5915
5916
5917 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5918 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5919 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5920 clooglibs=
5921 clooginc=
5922 fi
5923
5924 if test "${graphite_requested}" = yes \
5925 && test "x${clooglibs}" = x \
5926 && test "x${clooginc}" = x ; then
5927
8d8eef9a 5928 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
5929 fi
5930
5931
5932fi
5933
700d40ca
ILT
5934# Check for LTO support.
5935# Check whether --enable-lto was given.
5936if test "${enable_lto+set}" = set; then :
5937 enableval=$enable_lto; enable_lto=$enableval
5938else
5939 enable_lto=yes; default_enable_lto=yes
5940fi
5941
5942
143754cd 5943
e49e5c92
DK
5944
5945
5946target_elf=no
5947case $target in
5948 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5949 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 5950 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
5951 target_elf=no
5952 ;;
5953 *)
5954 target_elf=yes
5955 ;;
5956esac
5957
5958if test $target_elf = yes; then :
74cea91b
DK
5959 # ELF platforms build the lto-plugin always.
5960 build_lto_plugin=yes
e49e5c92 5961
e49e5c92
DK
5962else
5963 if test x"$default_enable_lto" = x"yes" ; then
29821356 5964 case $target in
dbbe5f95 5965 *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
74cea91b 5966 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
5967 *) enable_lto=no ;;
5968 esac
e49e5c92 5969 else
29821356
RW
5970 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5971 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
5972 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5973 # warn during gcc/ subconfigure; unless you're bootstrapping with
5974 # -flto it won't be needed until after installation anyway.
5975 case $target in
a8eb3f0a 5976 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
5977 *) if test x"$enable_lto" = x"yes"; then
5978 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5979 fi
5980 ;;
5981 esac
5982 fi
a8eb3f0a 5983 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 5984 # Build it unless LTO was explicitly disabled.
a8eb3f0a 5985 case $target in
74cea91b 5986 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
5987 *) ;;
5988 esac
74cea91b 5989
e49e5c92
DK
5990fi
5991
700d40ca 5992
e28c595f 5993
947f426e 5994# By default, C is the only stage 1 language.
9b134994 5995stage1_languages=,c,
1d39f329 5996
e8a5fa9c 5997# Target libraries that we bootstrap.
2aa2364a 5998bootstrap_target_libs=,target-libgcc,
e8a5fa9c 5999
9e07f89d
NN
6000# Figure out what language subdirectories are present.
6001# Look if the user specified --enable-languages="..."; if not, use
6002# the environment variable $LANGUAGES if defined. $LANGUAGES might
6003# go away some day.
6004# NB: embedded tabs in this IF block -- do not untabify
6005if test -d ${srcdir}/gcc; then
6006 if test x"${enable_languages+set}" != xset; then
6007 if test x"${LANGUAGES+set}" = xset; then
6008 enable_languages="${LANGUAGES}"
6009 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6010 else
6011 enable_languages=all
6012 fi
6013 else
6014 if test x"${enable_languages}" = x ||
6015 test x"${enable_languages}" = xyes;
6016 then
6017 echo configure.in: --enable-languages needs at least one language argument 1>&2
6018 exit 1
6019 fi
6020 fi
6021 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6022
096f7d00
DE
6023 # 'f95' is the old name for the 'fortran' language. We issue a warning
6024 # and make the substitution.
6025 case ,${enable_languages}, in
6026 *,f95,*)
6027 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6028 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6029 ;;
6030 esac
6031
9e07f89d
NN
6032 # First scan to see if an enabled language requires some other language.
6033 # We assume that a given config-lang.in will list all the language
6034 # front ends it requires, even if some are required indirectly.
6035 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6036 case ${lang_frag} in
6037 ..) ;;
6038 # The odd quoting in the next line works around
6039 # an apparent bug in bash 1.12 on linux.
6040 ${srcdir}/gcc/[*]/config-lang.in) ;;
6041 *)
e552509b
ILT
6042 # From the config-lang.in, get $language, $lang_requires, and
6043 # $lang_requires_boot_languages.
9e07f89d
NN
6044 language=
6045 lang_requires=
e552509b 6046 lang_requires_boot_languages=
9e07f89d 6047 . ${lang_frag}
e552509b 6048 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6049 case ,${enable_languages}, in
6050 *,$other,*) ;;
6051 *,all,*) ;;
6052 *,$language,*)
6053 echo " \`$other' language required by \`$language'; enabling" 1>&2
6054 enable_languages="${enable_languages},${other}"
6055 ;;
6056 esac
6057 done
e552509b
ILT
6058 for other in ${lang_requires_boot_languages} ; do
6059 if test "$other" != "c"; then
6060 case ,${enable_stage1_languages}, in
6061 *,$other,*) ;;
6062 *,all,*) ;;
6063 *)
6064 case ,${enable_languages}, in
6065 *,$language,*)
6066 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6067 enable_stage1_languages="$enable_stage1_languages,${other}"
6068 ;;
6069 esac
6070 ;;
6071 esac
6072 fi
6073 done
9e07f89d
NN
6074 ;;
6075 esac
6076 done
6077
9b134994 6078 new_enable_languages=,c,
700d40ca
ILT
6079
6080 # If LTO is enabled, add the LTO front end.
6081 extra_host_libiberty_configure_flags=
6082 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6083 case ,${enable_languages}, in
6084 *,lto,*) ;;
6085 *) enable_languages="${enable_languages},lto" ;;
6086 esac
a8eb3f0a 6087 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6088 configdirs="$configdirs lto-plugin"
6089 extra_host_libiberty_configure_flags=--enable-shared
6090 fi
6091 fi
6092
6093
9e07f89d 6094 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6095 potential_languages=,c,
9e07f89d 6096
9e1a94f4
ILT
6097 enabled_target_libs=
6098 disabled_target_libs=
6099
9e07f89d
NN
6100 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6101 case ${lang_frag} in
6102 ..) ;;
6103 # The odd quoting in the next line works around
6104 # an apparent bug in bash 1.12 on linux.
6105 ${srcdir}/gcc/[*]/config-lang.in) ;;
6106 *)
c6b750e1 6107 # From the config-lang.in, get $language, $target_libs,
1d39f329 6108 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6109 language=
6110 target_libs=
6111 lang_dirs=
64ce424c 6112 subdir_requires=
9b134994
PB
6113 boot_language=no
6114 build_by_default=yes
9e07f89d 6115 . ${lang_frag}
9b134994
PB
6116 if test x${language} = x; then
6117 echo "${lang_frag} doesn't set \$language." 1>&2
6118 exit 1
6119 fi
6120
1f53ca9a
AO
6121 if test "$language" = "c++" \
6122 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6123 boot_language=yes
6124 fi
6125
9b134994
PB
6126 case ,${enable_languages}, in
6127 *,${language},*)
9e07f89d
NN
6128 # Language was explicitly selected; include it.
6129 add_this_lang=yes
6130 ;;
9b134994
PB
6131 *,all,*)
6132 # 'all' was selected, select it if it is a default language
6133 add_this_lang=${build_by_default}
9e07f89d
NN
6134 ;;
6135 *)
6136 add_this_lang=no
6137 ;;
6138 esac
4b1cb4fe 6139
64ce424c 6140 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6141 for i in $subdir_requires; do
3d3adb43 6142 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6143 case ,${enable_languages}, in
6144 *,${language},*)
6145 # Specifically requested language; tell them.
81ecdfbb 6146 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6147 ;;
6148 *)
6149 # Silently disable.
9b134994 6150 add_this_lang=unsupported
64ce424c
PB
6151 ;;
6152 esac
6153 done
6154
9b134994
PB
6155 # Disable Ada if no preexisting GNAT is available.
6156 case ,${enable_languages},:${language}:${have_gnat} in
6157 *,${language},*:ada:no)
6158 # Specifically requested language; tell them.
81ecdfbb 6159 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6160 ;;
6161 *:ada:no)
6162 # Silently disable.
6163 add_this_lang=unsupported
6164 ;;
6165 esac
6166
59f7ec45
HPN
6167 # Disable a language that is unsupported by the target.
6168 case " $unsupported_languages " in
6169 *" $language "*)
9b134994 6170 add_this_lang=unsupported
59f7ec45
HPN
6171 ;;
6172 esac
6173
4b1cb4fe 6174 case $add_this_lang in
9b134994 6175 unsupported)
9e07f89d 6176 # Remove language-dependent dirs.
9e1a94f4
ILT
6177 disabled_target_libs="$disabled_target_libs $target_libs"
6178 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6179 ;;
9b134994
PB
6180 no)
6181 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6182 disabled_target_libs="$disabled_target_libs $target_libs"
6183 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6184 potential_languages="${potential_languages}${language},"
6185 ;;
6186 yes)
6187 new_enable_languages="${new_enable_languages}${language},"
6188 potential_languages="${potential_languages}${language},"
1d39f329 6189 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6190 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6191 case "${boot_language}:,$enable_stage1_languages," in
6192 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6193 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6194 case ",$stage1_languages," in
6195 *,$language,* | ,yes, | ,all,) ;;
6196 *) stage1_languages="${stage1_languages}${language}," ;;
6197 esac
e8a5fa9c
RW
6198 # We need to bootstrap any supporting libraries.
6199 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6200 ;;
6201 esac
6202 ;;
9e07f89d
NN
6203 esac
6204 ;;
6205 esac
6206 done
6207
9e1a94f4
ILT
6208 # Add target libraries which are only needed for disabled languages
6209 # to noconfigdirs.
6210 if test -n "$disabled_target_libs"; then
6211 for dir in $disabled_target_libs; do
6212 case " $enabled_target_libs " in
6213 *" ${dir} "*) ;;
6214 *) noconfigdirs="$noconfigdirs $dir" ;;
6215 esac
6216 done
6217 fi
6218
81ecdfbb
RW
6219 # Check whether --enable-stage1-languages was given.
6220if test "${enable_stage1_languages+set}" = set; then :
6221 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6222 ,no,|,,)
6223 # Set it to something that will have no effect in the loop below
6224 enable_stage1_languages=c ;;
6225 ,yes,)
6226 enable_stage1_languages=`echo $new_enable_languages | \
6227 sed -e "s/^,//" -e "s/,$//" ` ;;
6228 *,all,*)
6229 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6230 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6231 esac
6232
6233 # Add "good" languages from enable_stage1_languages to stage1_languages,
6234 # while "bad" languages go in missing_languages. Leave no duplicates.
6235 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6236 case $potential_languages in
6237 *,$i,*)
6238 case $stage1_languages in
6239 *,$i,*) ;;
6240 *) stage1_languages="$stage1_languages$i," ;;
6241 esac ;;
6242 *)
6243 case $missing_languages in
6244 *,$i,*) ;;
6245 *) missing_languages="$missing_languages$i," ;;
6246 esac ;;
6247 esac
6248 done
81ecdfbb
RW
6249fi
6250
9b134994
PB
6251
6252 # Remove leading/trailing commas that were added for simplicity
6253 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6254 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6255 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6256 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6257
9e07f89d 6258 if test "x$missing_languages" != x; then
81ecdfbb 6259 as_fn_error "
27258dd4 6260The following requested languages could not be built: ${missing_languages}
81ecdfbb 6261Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6262 fi
9e07f89d
NN
6263 if test "x$new_enable_languages" != "x$enable_languages"; then
6264 echo The following languages will be built: ${new_enable_languages}
9b134994 6265 enable_languages="$new_enable_languages"
9e07f89d 6266 fi
9b134994 6267
c6b750e1 6268
81ec575a 6269 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6270fi
6271
a6df5a19
PB
6272# Handle --disable-<component> generically.
6273for dir in $configdirs $build_configdirs $target_configdirs ; do
6274 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6275 varname=`echo $dirname | sed -e s/+/_/g`
6276 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6277 noconfigdirs="$noconfigdirs $dir"
6278 fi
6279done
6280
4f0ef2d8 6281# Check for Boehm's garbage collector
81ecdfbb
RW
6282# Check whether --enable-objc-gc was given.
6283if test "${enable_objc_gc+set}" = set; then :
6284 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6285 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6286 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6287 ;;
6288esac
81ecdfbb
RW
6289fi
6290
4f0ef2d8
CD
6291
6292# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6293case ,${enable_languages},:${enable_objc_gc} in
6294 *,objc,*:yes)
4f0ef2d8
CD
6295 # Keep target-boehm-gc if requested for Objective-C.
6296 ;;
4f0ef2d8 6297 *)
d42c4017
DA
6298 # Otherwise remove target-boehm-gc depending on target-libjava.
6299 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6300 noconfigdirs="$noconfigdirs target-boehm-gc"
6301 fi
4f0ef2d8
CD
6302 ;;
6303esac
6304
caeba88f
AL
6305# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6306# $build_configdirs and $target_configdirs.
9e07f89d
NN
6307# If we have the source for $noconfigdirs entries, add them to $notsupp.
6308
6309notsupp=""
6310for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6311 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6312 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6313 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6314 if test -r $srcdir/$dirname/configure ; then
6315 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6316 true
6317 else
6318 notsupp="$notsupp $dir"
6319 fi
6320 fi
6321 fi
caeba88f
AL
6322 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6323 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6324 if test -r $srcdir/$dirname/configure ; then
6325 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6326 true
6327 else
6328 notsupp="$notsupp $dir"
6329 fi
6330 fi
6331 fi
9e07f89d
NN
6332 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6333 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6334 if test -r $srcdir/$dirname/configure ; then
6335 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6336 true
6337 else
6338 notsupp="$notsupp $dir"
6339 fi
6340 fi
6341 fi
6342done
6343
6344# Sometimes the tools are distributed with libiberty but with no other
6345# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6346# Don't let libgcc imply libiberty either.
9e07f89d 6347if test -n "${target_configdirs}" ; then
f86e35b8 6348 libgcc=
9e07f89d
NN
6349 others=
6350 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6351 if test "$i" = "libgcc"; then
6352 libgcc=target-libgcc
6353 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6354 if test -r $srcdir/$i/configure ; then
6355 others=yes;
6356 break;
6357 fi
6358 fi
6359 done
6360 if test -z "${others}" ; then
f86e35b8 6361 target_configdirs=$libgcc
9e07f89d
NN
6362 fi
6363fi
6364
6365# Quietly strip out all directories which aren't configurable in this tree.
6366# This relies on all configurable subdirectories being autoconfiscated, which
6367# is now the case.
6a9cf61e
PB
6368build_configdirs_all="$build_configdirs"
6369build_configdirs=
6370for i in ${build_configdirs_all} ; do
c6b750e1 6371 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6372 if test -f ${srcdir}/$j/configure ; then
6373 build_configdirs="${build_configdirs} $i"
6374 fi
6375done
6376
9e07f89d
NN
6377configdirs_all="$configdirs"
6378configdirs=
6379for i in ${configdirs_all} ; do
6380 if test -f ${srcdir}/$i/configure ; then
6381 configdirs="${configdirs} $i"
6382 fi
6383done
6a9cf61e 6384
9e07f89d
NN
6385target_configdirs_all="$target_configdirs"
6386target_configdirs=
6387for i in ${target_configdirs_all} ; do
c6b750e1 6388 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6389 if test -f ${srcdir}/$j/configure ; then
6390 target_configdirs="${target_configdirs} $i"
6391 fi
6392done
6393
6394# Produce a warning message for the subdirs we can't configure.
6395# This isn't especially interesting in the Cygnus tree, but in the individual
6396# FSF releases, it's important to let people know when their machine isn't
6397# supported by the one or two programs in a package.
6398
6399if test -n "${notsupp}" && test -z "${norecursion}" ; then
6400 # If $appdirs is non-empty, at least one of those directories must still
6401 # be configured, or we error out. (E.g., if the gas release supports a
6402 # specified target in some subdirs but not the gas subdir, we shouldn't
6403 # pretend that all is well.)
6404 if test -n "$appdirs" ; then
6405 for dir in $appdirs ; do
6406 if test -r $dir/Makefile.in ; then
6407 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6408 appdirs=""
6409 break
6410 fi
6a9cf61e 6411 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6412 appdirs=""
6413 break
6414 fi
6415 fi
6416 done
6417 if test -n "$appdirs" ; then
6418 echo "*** This configuration is not supported by this package." 1>&2
6419 exit 1
6420 fi
6421 fi
6422 # Okay, some application will build, or we don't care to check. Still
6423 # notify of subdirs not getting built.
6424 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6425 echo " ${notsupp}" 1>&2
6426 echo " (Any other directories should still work fine.)" 1>&2
6427fi
6428
6429case "$host" in
6430 *msdosdjgpp*)
6431 enable_gdbtk=no ;;
6432esac
6433
18f6b6ee
PB
6434# To find our prefix, in gcc_cv_tool_prefix.
6435
6436# The user is always right.
6437if test "${PATH_SEPARATOR+set}" != set; then
6438 echo "#! /bin/sh" >conf$$.sh
6439 echo "exit 0" >>conf$$.sh
6440 chmod +x conf$$.sh
6441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6442 PATH_SEPARATOR=';'
6443 else
6444 PATH_SEPARATOR=:
6445 fi
6446 rm -f conf$$.sh
6447fi
6448
6449
6450
6451if test "x$exec_prefix" = xNONE; then
6452 if test "x$prefix" = xNONE; then
6453 gcc_cv_tool_prefix=$ac_default_prefix
6454 else
6455 gcc_cv_tool_prefix=$prefix
6456 fi
6457else
6458 gcc_cv_tool_prefix=$exec_prefix
6459fi
6460
6461# If there is no compiler in the tree, use the PATH only. In any
6462# case, if there is no compiler in the tree nobody should use
6463# AS_FOR_TARGET and LD_FOR_TARGET.
6464if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6465 gcc_version=`cat $srcdir/gcc/BASE-VER`
6466 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6467 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6468 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6469 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6470 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6471 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6472else
6473 gcc_cv_tool_dirs=
6474fi
6475
6476if test x$build = x$target && test -n "$md_exec_prefix"; then
6477 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6478fi
6479
6480
6481
9e07f89d
NN
6482copy_dirs=
6483
c6b750e1 6484
81ecdfbb
RW
6485# Check whether --with-build-sysroot was given.
6486if test "${with_build_sysroot+set}" = set; then :
6487 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6488 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6489 fi
6490else
6491 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6492fi
a19b6204
MM
6493
6494
8a6ee3ab 6495
81ecdfbb
RW
6496
6497# Check whether --with-debug-prefix-map was given.
6498if test "${with_debug_prefix_map+set}" = set; then :
6499 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6500 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6501 for debug_map in $withval; do
6502 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6503 done
6504 fi
6505else
6506 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6507fi
6508
8a6ee3ab
JM
6509
6510
7f6ef0c0
PB
6511# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6512# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6513# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6514# We want to ensure that TARGET libraries (which we know are built with
6515# gcc) are built with "-O2 -g", so include those options when setting
6516# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6517if test "x$CFLAGS_FOR_TARGET" = x; then
6518 CFLAGS_FOR_TARGET=$CFLAGS
6519 case " $CFLAGS " in
6520 *" -O2 "*) ;;
6521 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6522 esac
6523 case " $CFLAGS " in
6524 *" -g "* | *" -g3 "*) ;;
6525 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6526 esac
6527fi
6528
6529
6530if test "x$CXXFLAGS_FOR_TARGET" = x; then
6531 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6532 case " $CXXFLAGS " in
6533 *" -O2 "*) ;;
6534 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6535 esac
6536 case " $CXXFLAGS " in
6537 *" -g "* | *" -g3 "*) ;;
6538 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6539 esac
6540fi
6541
6542
9e07f89d
NN
6543# Handle --with-headers=XXX. If the value is not "yes", the contents of
6544# the named directory are copied to $(tooldir)/sys-include.
6545if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6546 if test x${is_cross_compiler} = xno ; then
6547 echo 1>&2 '***' --with-headers is only supported when cross compiling
6548 exit 1
6549 fi
6550 if test x"${with_headers}" != xyes ; then
18f6b6ee 6551 x=${gcc_cv_tool_prefix}
c6b750e1 6552 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6553 fi
6554fi
6555
6556# Handle --with-libs=XXX. If the value is not "yes", the contents of
6557# the name directories are copied to $(tooldir)/lib. Multiple directories
6558# are permitted.
6559if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6560 if test x${is_cross_compiler} = xno ; then
6561 echo 1>&2 '***' --with-libs is only supported when cross compiling
6562 exit 1
6563 fi
6564 if test x"${with_libs}" != xyes ; then
6565 # Copy the libraries in reverse order, so that files in the first named
6566 # library override files in subsequent libraries.
18f6b6ee 6567 x=${gcc_cv_tool_prefix}
9e07f89d 6568 for l in ${with_libs}; do
c6b750e1 6569 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6570 done
6571 fi
6572fi
6573
700d40ca 6574# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6575#
6576# This is done by determining whether or not the appropriate directory
6577# is available, and by checking whether or not specific configurations
6578# have requested that this magic not happen.
c6b750e1
DJ
6579#
6580# The command line options always override the explicit settings in
2429c060
PB
6581# configure.in, and the settings in configure.in override this magic.
6582#
c6b750e1 6583# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6584# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6585# --without-gnu-ld options for the configure script. Similarly, if
6586# the default is to use the included zlib and you don't want to do that,
6587# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6588
6589if test x${use_gnu_as} = x &&
6590 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6591 with_gnu_as=yes
6592 extra_host_args="$extra_host_args --with-gnu-as"
6593fi
6594
6595if test x${use_gnu_ld} = x &&
93f9b408 6596 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6597 with_gnu_ld=yes
6598 extra_host_args="$extra_host_args --with-gnu-ld"
6599fi
6600
700d40ca
ILT
6601if test x${use_included_zlib} = x &&
6602 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6603 :
6604else
6605 with_system_zlib=yes
6606 extra_host_args="$extra_host_args --with-system-zlib"
6607fi
6608
2429c060
PB
6609# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6610# can detect this case.
6611
6612if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6613 with_newlib=yes
6614 extra_host_args="$extra_host_args --with-newlib"
6615fi
6616
9e07f89d
NN
6617# Handle ${copy_dirs}
6618set fnord ${copy_dirs}
6619shift
6620while test $# != 0 ; do
6621 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6622 :
6623 else
6624 echo Copying $1 to $2
6625
6626 # Use the install script to create the directory and all required
6627 # parent directories.
6628 if test -d $2 ; then
6629 :
6630 else
6631 echo >config.temp
6632 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6633 fi
6634
6635 # Copy the directory, assuming we have tar.
6636 # FIXME: Should we use B in the second tar? Not all systems support it.
6637 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6638
6639 # It is the responsibility of the user to correctly adjust all
6640 # symlinks. If somebody can figure out how to handle them correctly
6641 # here, feel free to add the code.
6642
6643 echo $1 > $2/COPIED
6644 fi
6645 shift; shift
6646done
6647
2429c060
PB
6648# Determine a target-dependent exec_prefix that the installed
6649# gcc will search in. Keep this list sorted by triplet, with
6650# the *-*-osname triplets last.
6651md_exec_prefix=
6652case "${target}" in
521ec477 6653 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6654 md_exec_prefix=/dev/env/DJDIR/bin
6655 ;;
2429c060 6656 *-*-hpux* | \
2429c060 6657 *-*-nto-qnx* | \
1f111696 6658 *-*-solaris2*)
2429c060
PB
6659 md_exec_prefix=/usr/ccs/bin
6660 ;;
6661esac
6662
a0da8069
NN
6663extra_arflags_for_target=
6664extra_nmflags_for_target=
6665extra_ranlibflags_for_target=
6666target_makefile_frag=/dev/null
6667case "${target}" in
77d7106f
AM
6668 spu-*-*)
6669 target_makefile_frag="config/mt-spu"
6670 ;;
429acdec
RS
6671 mips*-sde-elf*)
6672 target_makefile_frag="config/mt-sde"
6673 ;;
f3b1e08e
RS
6674 mipsisa*-*-elfoabi*)
6675 target_makefile_frag="config/mt-mips-elfoabi"
6676 ;;
e7c8859c
RS
6677 mips*-*-*linux* | mips*-*-gnu*)
6678 target_makefile_frag="config/mt-mips-gnu"
6679 ;;
29383458 6680 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6681 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6682 ;;
6683 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6684 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6685 # commands to handle both 32-bit and 64-bit objects. These flags are
6686 # harmless if we're using GNU nm or ar.
6687 extra_arflags_for_target=" -X32_64"
6688 extra_nmflags_for_target=" -B -X32_64"
6689 ;;
92f4e989
JM
6690 *-*-darwin[3-9]*)
6691 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6692 extra_ranlibflags_for_target=" -c"
6693 ;;
a0da8069
NN
6694esac
6695
6696alphaieee_frag=/dev/null
6697case $target in
6698 alpha*-*-*)
6699 # This just makes sure to use the -mieee option to build target libs.
6700 # This should probably be set individually by each library.
6701 alphaieee_frag="config/mt-alphaieee"
6702 ;;
6703esac
6704
6705# If --enable-target-optspace always use -Os instead of -O2 to build
6706# the target libraries, similarly if it is not specified, use -Os
6707# on selected platforms.
6708ospace_frag=/dev/null
6709case "${enable_target_optspace}:${target}" in
6710 yes:*)
6711 ospace_frag="config/mt-ospace"
6712 ;;
6713 :d30v-*)
6714 ospace_frag="config/mt-d30v"
6715 ;;
6716 :m32r-* | :d10v-* | :fr30-*)
6717 ospace_frag="config/mt-ospace"
6718 ;;
6719 no:* | :*)
6720 ;;
6721 *)
6722 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6723 ;;
6724esac
6725
a0da8069
NN
6726# Default to using --with-stabs for certain targets.
6727if test x${with_stabs} = x ; then
6728 case "${target}" in
e31d1ea3 6729 mips*-*-irix[56]*)
a0da8069
NN
6730 ;;
6731 mips*-*-* | alpha*-*-osf*)
6732 with_stabs=yes;
6733 extra_host_args="${extra_host_args} --with-stabs"
6734 ;;
6735 esac
6736fi
6737
6738# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6739# them automatically.
6740case "${host}" in
c6b750e1 6741 hppa*64*-*-hpux11*)
a0da8069
NN
6742 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6743 ;;
6744esac
6745
a0da8069
NN
6746# Some systems (e.g., one of the i386-aix systems the gas testers are
6747# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6748tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6749build_tooldir=${tooldir}
6750
a0da8069
NN
6751# Create a .gdbinit file which runs the one in srcdir
6752# and tells GDB to look there for source files.
6753
6754if test -r ${srcdir}/.gdbinit ; then
6755 case ${srcdir} in
6756 .) ;;
6757 *) cat > ./.gdbinit <<EOF
6758# ${NO_EDIT}
6759dir ${srcdir}
6760dir .
6761source ${srcdir}/.gdbinit
6762EOF
6763 ;;
6764 esac
6765fi
6766
a0da8069
NN
6767# Make sure that the compiler is able to generate an executable. If it
6768# can't, we are probably in trouble. We don't care whether we can run the
6769# executable--we might be using a cross compiler--we only care whether it
6770# can be created. At this point the main configure script has set CC.
6771we_are_ok=no
6772echo "int main () { return 0; }" > conftest.c
6773${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6774if test $? = 0 ; then
6775 if test -s conftest || test -s conftest.exe ; then
6776 we_are_ok=yes
6777 fi
c6b750e1 6778fi
a0da8069
NN
6779case $we_are_ok in
6780 no)
6781 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6782 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6783 rm -f conftest*
6784 exit 1
6785 ;;
6786esac
6787rm -f conftest*
6788
6789# The Solaris /usr/ucb/cc compiler does not appear to work.
6790case "${host}" in
6791 sparc-sun-solaris2*)
6792 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6793 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6794 could_use=
6795 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6796 if test -d /opt/cygnus/bin ; then
6797 if test "$could_use" = "" ; then
6798 could_use="/opt/cygnus/bin"
6799 else
6800 could_use="$could_use or /opt/cygnus/bin"
6801 fi
6802 fi
6803 if test "$could_use" = "" ; then
6804 echo "Warning: compilation may fail because you're using"
6805 echo "/usr/ucb/cc. You should change your PATH or CC "
6806 echo "variable and rerun configure."
6807 else
6808 echo "Warning: compilation may fail because you're using"
6809 echo "/usr/ucb/cc, when you should use the C compiler from"
6810 echo "$could_use. You should change your"
6811 echo "PATH or CC variable and rerun configure."
6812 fi
6813 fi
6814 ;;
6815esac
6816
3bbd2f8f 6817# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6818case "${host}" in
6819 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6820 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6821 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6822 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6823esac
6824
3bbd2f8f 6825# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6826# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6827# built executables to PATH.
3bbd2f8f
AL
6828if test "$RPATH_ENVVAR" = PATH; then
6829 GCC_SHLIB_SUBDIR=/shlib
6830else
6831 GCC_SHLIB_SUBDIR=
6832fi
6833
a0da8069
NN
6834# Record target_configdirs and the configure arguments for target and
6835# build configuration in Makefile.
6836target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6837build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6838
2aa2364a
JR
6839# If we are building libgomp, bootstrap it.
6840if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6841 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6842fi
6843
a0da8069
NN
6844# Determine whether gdb needs tk/tcl or not.
6845# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6846# and in that case we want gdb to be built without tk. Ugh!
6847# In fact I believe gdb is the *only* package directly dependent on tk,
6848# so we should be able to put the 'maybe's in unconditionally and
6849# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6850# 100% sure that that's safe though.
c180f501 6851
675c6968 6852gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6853case "$enable_gdbtk" in
6854 no)
6855 GDB_TK="" ;;
c180f501
AC
6856 yes)
6857 GDB_TK="${gdb_tk}" ;;
a0da8069 6858 *)
c180f501
AC
6859 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6860 # distro. Eventually someone will fix this and move Insight, nee
6861 # gdbtk to a separate directory.
6862 if test -d ${srcdir}/gdb/gdbtk ; then
6863 GDB_TK="${gdb_tk}"
6864 else
6865 GDB_TK=""
6866 fi
6867 ;;
a0da8069 6868esac
907be67c
DJ
6869CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6870INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6871
6bd3dfaa 6872# Strip out unwanted targets.
dd12c3a8
NN
6873
6874# While at that, we remove Makefiles if we were started for recursive
6875# configuration, so that the top-level Makefile reconfigures them,
6876# like we used to do when configure itself was recursive.
dd12c3a8 6877
06a51eac
RW
6878# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6879# but now we're fixing up the Makefile ourselves with the additional
6880# commands passed to AC_CONFIG_FILES. Use separate variables
6881# extrasub-{build,host,target} not because there is any reason to split
6882# the substitutions up that way, but only to remain below the limit of
6883# 99 commands in a script, for HP-UX sed.
6884# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6885
81ecdfbb
RW
6886# Check whether --enable-bootstrap was given.
6887if test "${enable_bootstrap+set}" = set; then :
6888 enableval=$enable_bootstrap;
319cab08 6889else
9cb3fa6f 6890 enable_bootstrap=default
81ecdfbb
RW
6891fi
6892
319cab08 6893
9cb3fa6f
PB
6894# Issue errors and warnings for invalid/strange bootstrap combinations.
6895case "$configdirs" in
6896 *gcc*) have_compiler=yes ;;
6897 *) have_compiler=no ;;
6898esac
6899
6900case "$have_compiler:$host:$target:$enable_bootstrap" in
6901 *:*:*:no) ;;
6902
0aed8855 6903 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
6904 # and we are in a native configuration.
6905 yes:$build:$build:default)
0aed8855 6906 enable_bootstrap=yes ;;
9cb3fa6f
PB
6907
6908 *:*:*:default)
6909 enable_bootstrap=no ;;
6910
6911 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 6912 yes:$build:$build:yes)
9cb3fa6f
PB
6913 ;;
6914
6915 # Other configurations, but we have a compiler. Assume the user knows
6916 # what he's doing.
80911fe1 6917 yes:*:*:yes)
81ecdfbb
RW
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6919$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
6920 ;;
6921
6922 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 6923 no:*:*:yes)
81ecdfbb 6924 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
6925
6926 # Fail if wrong command line
6927 *)
81ecdfbb 6928 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
6929 ;;
6930esac
6931
4385ad3c
RW
6932case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6933 *,c++,*:yes:yes) ;;
6934 *:yes:yes)
6935 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6936 ;;
6937esac
6938
16b1ad29
RW
6939case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6940 yes:yes:*\ gold\ *:*,c++,*) ;;
6941 yes:yes:*\ gold\ *:*)
6942 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6943 ;;
6944esac
6945
9cb3fa6f 6946# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 6947case $enable_bootstrap in
319cab08 6948 yes)
96655cc4
AO
6949 bootstrap_suffix=bootstrap
6950 BUILD_CONFIG=bootstrap-debug
6951 ;;
319cab08 6952 no)
96655cc4
AO
6953 bootstrap_suffix=no-bootstrap
6954 BUILD_CONFIG=
6955 ;;
319cab08
PB
6956esac
6957
96655cc4
AO
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6959$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6960
6961
6962# Check whether --with-build-config was given.
6963if test "${with_build_config+set}" = set; then :
6964 withval=$with_build_config; case $with_build_config in
6965 yes) with_build_config= ;;
6966 no) with_build_config= BUILD_CONFIG= ;;
6967 esac
6968fi
6969
6970
6971if test "x${with_build_config}" != x; then
6972 BUILD_CONFIG=$with_build_config
6973else
6974 case $BUILD_CONFIG in
6975 bootstrap-debug)
6976 if echo "int f (void) { return 0; }" > conftest.c &&
6977 ${CC} -c conftest.c &&
6978 mv conftest.o conftest.o.g0 &&
6979 ${CC} -c -g conftest.c &&
6980 mv conftest.o conftest.o.g &&
a009f2e7 6981 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
6982 :
6983 else
6984 BUILD_CONFIG=
6985 fi
6986 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6987 ;;
6988 esac
6989fi
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6991$as_echo "$BUILD_CONFIG" >&6; }
6992
6993
06a51eac 6994extrasub_build=
6a9cf61e 6995for module in ${build_configdirs} ; do
498d4a71
CF
6996 if test -z "${no_recursion}" \
6997 && test -f ${build_subdir}/${module}/Makefile; then
6998 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6999 rm -f ${build_subdir}/${module}/Makefile
7000 fi
06a51eac 7001 extrasub_build="$extrasub_build
498d4a71
CF
7002/^@if build-$module\$/d
7003/^@endif build-$module\$/d
7004/^@if build-$module-$bootstrap_suffix\$/d
7005/^@endif build-$module-$bootstrap_suffix\$/d"
7006done
06a51eac 7007extrasub_host=
498d4a71 7008for module in ${configdirs} ; do
80911fe1 7009 if test -z "${no_recursion}"; then
8cf39b1b 7010 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7011 if test -f ${file}; then
7012 echo 1>&2 "*** removing ${file} to force reconfigure"
7013 rm -f ${file}
7014 fi
7015 done
498d4a71 7016 fi
06a51eac 7017 extrasub_host="$extrasub_host
498d4a71
CF
7018/^@if $module\$/d
7019/^@endif $module\$/d
7020/^@if $module-$bootstrap_suffix\$/d
7021/^@endif $module-$bootstrap_suffix\$/d"
7022done
06a51eac 7023extrasub_target=
498d4a71
CF
7024for module in ${target_configdirs} ; do
7025 if test -z "${no_recursion}" \
7026 && test -f ${target_subdir}/${module}/Makefile; then
7027 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7028 rm -f ${target_subdir}/${module}/Makefile
7029 fi
e8a5fa9c
RW
7030
7031 # We only bootstrap target libraries listed in bootstrap_target_libs.
7032 case $bootstrap_target_libs in
7033 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7034 *) target_bootstrap_suffix=no-bootstrap ;;
7035 esac
7036
06a51eac 7037 extrasub_target="$extrasub_target
498d4a71
CF
7038/^@if target-$module\$/d
7039/^@endif target-$module\$/d
e8a5fa9c
RW
7040/^@if target-$module-$target_bootstrap_suffix\$/d
7041/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7042done
7043
06a51eac
RW
7044# Do the final fixup along with target modules.
7045extrasub_target="$extrasub_target
6bd3dfaa 7046/^@if /,/^@endif /d"
a0da8069
NN
7047
7048# Create the serialization dependencies. This uses a temporary file.
7049
81ecdfbb
RW
7050# Check whether --enable-serial-configure was given.
7051if test "${enable_serial_configure+set}" = set; then :
7052 enableval=$enable_serial_configure;
7053fi
e6bfb94a
AO
7054
7055
1047cb91
DD
7056case ${enable_serial_configure} in
7057 yes)
7058 enable_serial_build_configure=yes
7059 enable_serial_host_configure=yes
7060 enable_serial_target_configure=yes
7061 ;;
7062esac
7063
a0da8069
NN
7064# These force 'configure's to be done one at a time, to avoid problems
7065# with contention over a shared config.cache.
7066rm -f serdep.tmp
e6bfb94a 7067echo '# serdep.tmp' > serdep.tmp
a0da8069 7068olditem=
1047cb91 7069test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7070for item in ${build_configdirs} ; do
7071 case ${olditem} in
7072 "") ;;
e6bfb94a 7073 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7074 esac
7075 olditem=${item}
7076done
7077olditem=
1047cb91 7078test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7079for item in ${configdirs} ; do
7080 case ${olditem} in
7081 "") ;;
e6bfb94a 7082 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7083 esac
7084 olditem=${item}
7085done
7086olditem=
1047cb91 7087test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7088for item in ${target_configdirs} ; do
7089 case ${olditem} in
7090 "") ;;
e6bfb94a 7091 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7092 esac
7093 olditem=${item}
7094done
7095serialization_dependencies=serdep.tmp
7096
7097
e6bfb94a 7098# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7099# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7100# might not want to pass down to subconfigures. The exception being
7101# --cache-file=/dev/null, which is used to turn off the use of cache
7102# files altogether, and which should be passed on to subconfigures.
7103# Also strip program-prefix, program-suffix, and program-transform-name,
7104# so that we can pass down a consistent program-transform-name.
c6b750e1 7105baseargs=
65b4571a 7106tbaseargs=
c6b750e1
DJ
7107keep_next=no
7108skip_next=no
7109eval "set -- $ac_configure_args"
18f6b6ee
PB
7110for ac_arg
7111do
c6b750e1
DJ
7112 if test X"$skip_next" = X"yes"; then
7113 skip_next=no
7114 continue
7115 fi
7116 if test X"$keep_next" = X"yes"; then
7117 case $ac_arg in
7118 *\'*)
7119 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7120 esac
7121 baseargs="$baseargs '$ac_arg'"
65b4571a 7122 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7123 keep_next=no
7124 continue
7125 fi
7126
7127 # Handle separated arguments. Based on the logic generated by
7128 # autoconf 2.59.
7129 case $ac_arg in
7130 *=* | --config-cache | -C | -disable-* | --disable-* \
7131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7133 | -with-* | --with-* | -without-* | --without-* | --x)
7134 separate_arg=no
7135 ;;
7136 -*)
7137 separate_arg=yes
7138 ;;
7139 *)
7140 separate_arg=no
7141 ;;
7142 esac
7143
65b4571a
AO
7144 skip_targ=no
7145 case $ac_arg in
7146
7147 --with-* | --without-*)
7148 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7149
7150 case $libopt in
7151 *[-_]include)
7152 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7153 ;;
7154 *[-_]lib)
7155 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7156 ;;
7157 *)
7158 lib=$libopt
7159 ;;
7160 esac
7161
7162
7163 case $lib in
7164 mpc | mpfr | gmp | ppl | cloog)
7165 # If we're processing --with-$lib, --with-$lib-include or
7166 # --with-$lib-lib, for one of the libs above, and target is
7167 # different from host, don't pass the current argument to any
7168 # target library's configure.
7169 if test x$is_cross_compiler = xyes; then
7170 skip_targ=yes
7171 fi
7172 ;;
7173 esac
7174 ;;
7175 esac
7176
c6b750e1 7177 case "$ac_arg" in
30167e0a
NC
7178 --cache-file=/dev/null | \
7179 -cache-file=/dev/null )
7180 # Handled here to avoid the test to skip args below.
7181 baseargs="$baseargs '$ac_arg'"
65b4571a 7182 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7183 # Assert: $separate_arg should always be no.
7184 keep_next=$separate_arg
7185 ;;
c6b750e1
DJ
7186 --no*)
7187 continue
7188 ;;
7189 --c* | \
7190 --sr* | \
7191 --ho* | \
7192 --bu* | \
7193 --t* | \
7194 --program-* | \
7195 -cache_file* | \
7196 -srcdir* | \
7197 -host* | \
7198 -build* | \
7199 -target* | \
7200 -program-prefix* | \
7201 -program-suffix* | \
7202 -program-transform-name* )
7203 skip_next=$separate_arg
7204 continue
7205 ;;
7206 -*)
7207 # An option. Add it.
7208 case $ac_arg in
7209 *\'*)
7210 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7211 esac
7212 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7213 if test X"$skip_targ" = Xno; then
7214 tbaseargs="$tbaseargs '$ac_arg'"
7215 fi
c6b750e1
DJ
7216 keep_next=$separate_arg
7217 ;;
7218 *)
7219 # Either a variable assignment, or a nonopt (triplet). Don't
7220 # pass it down; let the Makefile handle this.
7221 continue
7222 ;;
7223 esac
7224done
7225# Remove the initial space we just introduced and, as these will be
7226# expanded by make, quote '$'.
7227baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7228
f27d4f92
DJ
7229# Add in --program-transform-name, after --program-prefix and
7230# --program-suffix have been applied to it. Autoconf has already
7231# doubled dollar signs and backslashes in program_transform_name; we want
7232# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7233# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7234# Also, because we want to override the logic in subdir configure scripts to
7235# choose program_transform_name, replace any s,x,x, with s,y,y,.
7236sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7237${program_transform_name}
7238EOF_SED
7239gcc_transform_name=`cat conftestsed.out`
7240rm -f conftestsed.out
7241baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7242tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7243if test "$silent" = yes; then
7244 baseargs="$baseargs --silent"
65b4571a 7245 tbaseargs="$tbaseargs --silent"
2444379b 7246fi
34a0f3cf 7247baseargs="$baseargs --disable-option-checking"
65b4571a 7248tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7249
4074d5f2
RW
7250# Record and document user additions to sub configure arguments.
7251
7252
7253
7254
a0da8069
NN
7255# For the build-side libraries, we just need to pretend we're native,
7256# and not use the same cache file. Multilibs are neither needed nor
7257# desired.
4074d5f2 7258build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7259
7260# For host modules, accept cache file option, or specification as blank.
7261case "${cache_file}" in
7262"") # empty
7263 cache_file_option="" ;;
7264/* | [A-Za-z]:[\\/]* ) # absolute path
7265 cache_file_option="--cache-file=${cache_file}" ;;
7266*) # relative path
7267 cache_file_option="--cache-file=../${cache_file}" ;;
7268esac
7269
82252c06
NN
7270# Host dirs don't like to share a cache file either, horribly enough.
7271# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7272host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7273
65b4571a 7274target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7275
7276# Passing a --with-cross-host argument lets the target libraries know
7277# whether they are being built with a cross-compiler or being built
7278# native. However, it would be better to use other mechanisms to make the
7279# sorts of decisions they want to make on this basis. Please consider
7280# this option to be deprecated. FIXME.
7281if test x${is_cross_compiler} = xyes ; then
c6b750e1 7282 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7283fi
7284
938d2b74
RW
7285# Default to --enable-multilib.
7286if test x${enable_multilib} = x ; then
a0da8069 7287 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7288fi
a0da8069
NN
7289
7290# Pass --with-newlib if appropriate. Note that target_configdirs has
7291# changed from the earlier setting of with_newlib.
7292if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7293 target_configargs="--with-newlib ${target_configargs}"
7294fi
7295
95036d20
NN
7296# Different target subdirs use different values of certain variables
7297# (notably CXX). Worse, multilibs use *lots* of different values.
7298# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7299# it doesn't automatically accept command-line overrides of them.
7300# This means it's not safe for target subdirs to share a cache file,
7301# which is disgusting, but there you have it. Hopefully this can be
7302# fixed in future. It's still worthwhile to use a cache file for each
7303# directory. I think.
7304
ae380b45
MS
7305# Pass the appropriate --build, --host, --target and --cache-file arguments.
7306# We need to pass --target, as newer autoconf's requires consistency
7307# for target_alias and gcc doesn't manage it consistently.
4b900473 7308target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7309
a0da8069
NN
7310FLAGS_FOR_TARGET=
7311case " $target_configdirs " in
7312 *" newlib "*)
7313 case " $target_configargs " in
7314 *" --with-newlib "*)
7315 case "$target" in
1f53ca9a
AO
7316 *-cygwin*)
7317 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'
7318 ;;
a0da8069
NN
7319 esac
7320
7321 # If we're not building GCC, don't discard standard headers.
7322 if test -d ${srcdir}/gcc; then
7323 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7324
7325 if test "${build}" != "${host}"; then
7326 # On Canadian crosses, CC_FOR_TARGET will have already been set
7327 # by `configure', so we won't have an opportunity to add -Bgcc/
7328 # to it. This is right: we don't want to search that directory
7329 # for binaries, but we want the header files in there, so add
7330 # them explicitly.
e552509b 7331 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7332
7333 # Someone might think of using the pre-installed headers on
7334 # Canadian crosses, in case the installed compiler is not fully
7335 # compatible with the compiler being built. In this case, it
7336 # would be better to flag an error than risking having
7337 # incompatible object files being constructed. We can't
7338 # guarantee that an error will be flagged, but let's hope the
7339 # compiler will do it, when presented with incompatible header
7340 # files.
7341 fi
7342 fi
7343
7344 case "${target}-${is_cross_compiler}" in
ec11bdc6 7345 i[3456789]86-*-linux*-no)
a0da8069
NN
7346 # Here host == target, so we don't need to build gcc,
7347 # so we don't want to discard standard headers.
7348 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7349 ;;
7350 *)
7351 # If we're building newlib, use its generic headers last, but search
7352 # for any libc-related directories first (so make it the last -B
7353 # switch).
7354 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7355
7356 # If we're building libgloss, find the startup file, simulator library
7357 # and linker script.
7358 case " $target_configdirs " in
7359 *" libgloss "*)
7360 # Look for startup file, simulator library and maybe linker script.
7361 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7362 # Look for libnosys.a in case the target needs it.
7363 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7364 # Most targets have the linker script in the source directory.
7365 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7366 ;;
7367 esac
a0da8069
NN
7368 ;;
7369 esac
7370 ;;
7371 esac
7372 ;;
7373esac
1f53ca9a 7374
45055374 7375case "$target" in
1f53ca9a
AO
7376 x86_64-*mingw* | *-w64-mingw*)
7377 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7378 # however, use a symlink named 'mingw' in ${prefix} .
7379 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7380 ;;
7381 *-mingw*)
7382 # MinGW can't be handled as Cygwin above since it does not use newlib.
7383 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'
7384 ;;
45055374 7385esac
a0da8069 7386
5fbad20a
DD
7387# Allow the user to override the flags for
7388# our build compiler if desired.
c66487f8
NC
7389if test x"${build}" = x"${host}" ; then
7390 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7391 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7392 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7393fi
5fbad20a 7394
a0da8069
NN
7395# On Canadian crosses, we'll be searching the right directories for
7396# the previously-installed cross compiler, so don't bother to add
7397# flags for directories within the install tree of the compiler
7398# being built; programs in there won't even run.
7399if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7400 # Search for pre-installed headers if nothing else fits.
bba45b8b 7401 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
7402fi
7403
7404if test "x${use_gnu_ld}" = x &&
7405 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7406 # Arrange for us to find uninstalled linker scripts.
b00612cc 7407 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7408fi
7409
a481dbb7
DD
7410# Search for other target-specific linker scripts and such.
7411case "${target}" in
4e206d7e
DB
7412 mep*)
7413 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7414 ;;
7415esac
7416
a0da8069 7417# Makefile fragments.
3e707e94
PB
7418for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7419do
7420 eval fragval=\$$frag
7421 if test $fragval != /dev/null; then
7422 eval $frag=${srcdir}/$fragval
7423 fi
7424done
a0da8069
NN
7425
7426
7427
7428
7429
7430# Miscellanea: directories, flags, etc.
7431
7432
7433
7434
7435
7436
7437
3bbd2f8f 7438
6a9cf61e 7439# Build module lists & subconfigure args.
a0da8069
NN
7440
7441
7442
be01d343
PB
7443# Host module lists & subconfigure args.
7444
7445
7446
911e63d0 7447
be01d343
PB
7448# Target module lists & subconfigure args.
7449
7450
7451
7452# Build tools.
7453
7454
7455
1576798e
PB
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
be01d343
PB
7470# Generate default definitions for YACC, M4, LEX and other programs that run
7471# on the build machine. These are used if the Makefile can't locate these
7472# programs in objdir.
7473MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7474
7475for ac_prog in 'bison -y' byacc yacc
7476do
c6b750e1 7477 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7478set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480$as_echo_n "checking for $ac_word... " >&6; }
7481if test "${ac_cv_prog_YACC+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
be01d343
PB
7483else
7484 if test -n "$YACC"; then
7485 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7486else
c6b750e1
DJ
7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490 IFS=$as_save_IFS
7491 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7494 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7496 break 2
7497 fi
7498done
81ecdfbb
RW
7499 done
7500IFS=$as_save_IFS
c6b750e1 7501
be01d343
PB
7502fi
7503fi
c6b750e1 7504YACC=$ac_cv_prog_YACC
be01d343 7505if test -n "$YACC"; then
81ecdfbb
RW
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7507$as_echo "$YACC" >&6; }
be01d343 7508else
81ecdfbb
RW
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510$as_echo "no" >&6; }
be01d343
PB
7511fi
7512
81ecdfbb 7513
c6b750e1 7514 test -n "$YACC" && break
be01d343
PB
7515done
7516test -n "$YACC" || YACC="$MISSING bison -y"
7517
7518case " $build_configdirs " in
7519 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7520esac
7521
7522for ac_prog in bison
7523do
c6b750e1 7524 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7525set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527$as_echo_n "checking for $ac_word... " >&6; }
7528if test "${ac_cv_prog_BISON+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
be01d343
PB
7530else
7531 if test -n "$BISON"; then
7532 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7533else
c6b750e1
DJ
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7541 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7543 break 2
7544 fi
7545done
81ecdfbb
RW
7546 done
7547IFS=$as_save_IFS
c6b750e1 7548
be01d343
PB
7549fi
7550fi
c6b750e1 7551BISON=$ac_cv_prog_BISON
be01d343 7552if test -n "$BISON"; then
81ecdfbb
RW
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7554$as_echo "$BISON" >&6; }
be01d343 7555else
81ecdfbb
RW
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557$as_echo "no" >&6; }
be01d343
PB
7558fi
7559
81ecdfbb 7560
c6b750e1 7561 test -n "$BISON" && break
be01d343
PB
7562done
7563test -n "$BISON" || BISON="$MISSING bison"
7564
7565case " $build_configdirs " in
7566 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7567esac
7568
7569for ac_prog in gm4 gnum4 m4
7570do
c6b750e1 7571 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7572set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574$as_echo_n "checking for $ac_word... " >&6; }
7575if test "${ac_cv_prog_M4+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
be01d343
PB
7577else
7578 if test -n "$M4"; then
7579 ac_cv_prog_M4="$M4" # Let the user override the test.
7580else
c6b750e1
DJ
7581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582for as_dir in $PATH
7583do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7588 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7590 break 2
7591 fi
7592done
81ecdfbb
RW
7593 done
7594IFS=$as_save_IFS
c6b750e1 7595
be01d343
PB
7596fi
7597fi
c6b750e1 7598M4=$ac_cv_prog_M4
be01d343 7599if test -n "$M4"; then
81ecdfbb
RW
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7601$as_echo "$M4" >&6; }
be01d343 7602else
81ecdfbb
RW
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604$as_echo "no" >&6; }
be01d343
PB
7605fi
7606
81ecdfbb 7607
c6b750e1 7608 test -n "$M4" && break
be01d343
PB
7609done
7610test -n "$M4" || M4="$MISSING m4"
7611
7612case " $build_configdirs " in
7613 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7614esac
7615
7616for ac_prog in flex lex
7617do
c6b750e1 7618 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7619set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621$as_echo_n "checking for $ac_word... " >&6; }
7622if test "${ac_cv_prog_LEX+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
be01d343
PB
7624else
7625 if test -n "$LEX"; then
7626 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7627else
c6b750e1
DJ
7628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629for as_dir in $PATH
7630do
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7635 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7637 break 2
7638 fi
7639done
81ecdfbb
RW
7640 done
7641IFS=$as_save_IFS
c6b750e1 7642
be01d343
PB
7643fi
7644fi
c6b750e1 7645LEX=$ac_cv_prog_LEX
be01d343 7646if test -n "$LEX"; then
81ecdfbb
RW
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7648$as_echo "$LEX" >&6; }
be01d343 7649else
81ecdfbb
RW
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651$as_echo "no" >&6; }
be01d343
PB
7652fi
7653
81ecdfbb 7654
c6b750e1 7655 test -n "$LEX" && break
be01d343
PB
7656done
7657test -n "$LEX" || LEX="$MISSING flex"
7658
7659case " $build_configdirs " in
7660 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7661 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7662esac
7663
7664for ac_prog in flex
7665do
c6b750e1 7666 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7667set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669$as_echo_n "checking for $ac_word... " >&6; }
7670if test "${ac_cv_prog_FLEX+set}" = set; then :
7671 $as_echo_n "(cached) " >&6
be01d343
PB
7672else
7673 if test -n "$FLEX"; then
7674 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7675else
c6b750e1
DJ
7676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7683 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7685 break 2
7686 fi
7687done
81ecdfbb
RW
7688 done
7689IFS=$as_save_IFS
c6b750e1 7690
be01d343
PB
7691fi
7692fi
c6b750e1 7693FLEX=$ac_cv_prog_FLEX
be01d343 7694if test -n "$FLEX"; then
81ecdfbb
RW
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7696$as_echo "$FLEX" >&6; }
be01d343 7697else
81ecdfbb
RW
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699$as_echo "no" >&6; }
be01d343
PB
7700fi
7701
81ecdfbb 7702
c6b750e1 7703 test -n "$FLEX" && break
be01d343
PB
7704done
7705test -n "$FLEX" || FLEX="$MISSING flex"
7706
7707case " $build_configdirs " in
7708 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7709esac
7710
7711for ac_prog in makeinfo
7712do
c6b750e1 7713 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7714set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716$as_echo_n "checking for $ac_word... " >&6; }
7717if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
be01d343
PB
7719else
7720 if test -n "$MAKEINFO"; then
7721 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7722else
c6b750e1
DJ
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7730 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7732 break 2
7733 fi
7734done
81ecdfbb
RW
7735 done
7736IFS=$as_save_IFS
c6b750e1 7737
be01d343
PB
7738fi
7739fi
c6b750e1 7740MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7741if test -n "$MAKEINFO"; then
81ecdfbb
RW
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7743$as_echo "$MAKEINFO" >&6; }
be01d343 7744else
81ecdfbb
RW
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746$as_echo "no" >&6; }
be01d343
PB
7747fi
7748
81ecdfbb 7749
c6b750e1 7750 test -n "$MAKEINFO" && break
be01d343
PB
7751done
7752test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7753
7754case " $build_configdirs " in
7755 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7756 *)
7757
10ad8ef3 7758 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7759 # higher, else we use the "missing" dummy.
7760 if ${MAKEINFO} --version \
10ad8ef3 7761 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7762 :
7763 else
7764 MAKEINFO="$MISSING makeinfo"
7765 fi
7766 ;;
7767
7768esac
a0da8069 7769
be01d343 7770# FIXME: expect and dejagnu may become build tools?
a0da8069 7771
be01d343
PB
7772for ac_prog in expect
7773do
c6b750e1 7774 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7775set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777$as_echo_n "checking for $ac_word... " >&6; }
7778if test "${ac_cv_prog_EXPECT+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
be01d343
PB
7780else
7781 if test -n "$EXPECT"; then
7782 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7783else
c6b750e1
DJ
7784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7791 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7793 break 2
7794 fi
7795done
81ecdfbb
RW
7796 done
7797IFS=$as_save_IFS
c6b750e1 7798
be01d343
PB
7799fi
7800fi
c6b750e1 7801EXPECT=$ac_cv_prog_EXPECT
be01d343 7802if test -n "$EXPECT"; then
81ecdfbb
RW
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7804$as_echo "$EXPECT" >&6; }
be01d343 7805else
81ecdfbb
RW
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807$as_echo "no" >&6; }
be01d343 7808fi
a0da8069 7809
81ecdfbb 7810
c6b750e1 7811 test -n "$EXPECT" && break
be01d343
PB
7812done
7813test -n "$EXPECT" || EXPECT="expect"
a0da8069 7814
be01d343
PB
7815case " $configdirs " in
7816 *" expect "*)
7817 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7818 ;;
7819esac
a0da8069 7820
be01d343
PB
7821for ac_prog in runtest
7822do
c6b750e1 7823 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7824set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826$as_echo_n "checking for $ac_word... " >&6; }
7827if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
be01d343
PB
7829else
7830 if test -n "$RUNTEST"; then
7831 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7832else
c6b750e1
DJ
7833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834for as_dir in $PATH
7835do
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7840 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7842 break 2
7843 fi
7844done
81ecdfbb
RW
7845 done
7846IFS=$as_save_IFS
c6b750e1 7847
be01d343
PB
7848fi
7849fi
c6b750e1 7850RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7851if test -n "$RUNTEST"; then
81ecdfbb
RW
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7853$as_echo "$RUNTEST" >&6; }
be01d343 7854else
81ecdfbb
RW
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856$as_echo "no" >&6; }
be01d343 7857fi
a0da8069 7858
81ecdfbb 7859
c6b750e1 7860 test -n "$RUNTEST" && break
be01d343
PB
7861done
7862test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7863
be01d343
PB
7864case " $configdirs " in
7865 *" dejagnu "*)
6b89cc21 7866 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7867 ;;
7868esac
a0da8069
NN
7869
7870
a0da8069 7871# Host tools.
859789af
AC
7872ncn_tool_prefix=
7873test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7874ncn_target_tool_prefix=
7875test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7876
9a819804
AO
7877
7878
7879if test -n "$AR"; then
7880 ac_cv_prog_AR=$AR
7881elif test -n "$ac_cv_prog_AR"; then
7882 AR=$ac_cv_prog_AR
7883fi
7884
7885if test -n "$ac_cv_prog_AR"; then
7886 for ncn_progname in ar; do
7887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7888set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890$as_echo_n "checking for $ac_word... " >&6; }
7891if test "${ac_cv_prog_AR+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
9a819804
AO
7893else
7894 if test -n "$AR"; then
7895 ac_cv_prog_AR="$AR" # Let the user override the test.
7896else
7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7904 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7906 break 2
7907 fi
7908done
81ecdfbb
RW
7909 done
7910IFS=$as_save_IFS
9a819804
AO
7911
7912fi
7913fi
7914AR=$ac_cv_prog_AR
7915if test -n "$AR"; then
81ecdfbb
RW
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7917$as_echo "$AR" >&6; }
9a819804 7918else
81ecdfbb
RW
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920$as_echo "no" >&6; }
9a819804
AO
7921fi
7922
81ecdfbb 7923
9a819804
AO
7924 done
7925fi
7926
7927for ncn_progname in ar; do
05cbd757
PB
7928 if test -n "$ncn_tool_prefix"; then
7929 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7930set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932$as_echo_n "checking for $ac_word... " >&6; }
7933if test "${ac_cv_prog_AR+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
859789af
AC
7935else
7936 if test -n "$AR"; then
7937 ac_cv_prog_AR="$AR" # Let the user override the test.
7938else
c6b750e1
DJ
7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940for as_dir in $PATH
7941do
7942 IFS=$as_save_IFS
7943 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7946 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7948 break 2
7949 fi
7950done
81ecdfbb
RW
7951 done
7952IFS=$as_save_IFS
c6b750e1 7953
859789af
AC
7954fi
7955fi
c6b750e1 7956AR=$ac_cv_prog_AR
859789af 7957if test -n "$AR"; then
81ecdfbb
RW
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7959$as_echo "$AR" >&6; }
859789af 7960else
81ecdfbb
RW
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962$as_echo "no" >&6; }
859789af
AC
7963fi
7964
81ecdfbb 7965
05cbd757
PB
7966 fi
7967 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7969set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971$as_echo_n "checking for $ac_word... " >&6; }
7972if test "${ac_cv_prog_AR+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
859789af 7974else
05cbd757
PB
7975 if test -n "$AR"; then
7976 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7977else
c6b750e1
DJ
7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7985 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7987 break 2
7988 fi
7989done
81ecdfbb
RW
7990 done
7991IFS=$as_save_IFS
c6b750e1 7992
859789af
AC
7993fi
7994fi
c6b750e1 7995AR=$ac_cv_prog_AR
05cbd757 7996if test -n "$AR"; then
81ecdfbb
RW
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7998$as_echo "$AR" >&6; }
859789af 7999else
81ecdfbb
RW
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001$as_echo "no" >&6; }
859789af 8002fi
c6b750e1 8003
81ecdfbb 8004
05cbd757
PB
8005 fi
8006 test -n "$ac_cv_prog_AR" && break
8007done
8008
8009if test -z "$ac_cv_prog_AR" ; then
8010 set dummy ar
8011 if test $build = $host ; then
8012 AR="$2"
859789af 8013 else
05cbd757 8014 AR="${ncn_tool_prefix}$2"
859789af 8015 fi
859789af
AC
8016fi
8017
9a819804
AO
8018
8019
8020if test -n "$AS"; then
8021 ac_cv_prog_AS=$AS
8022elif test -n "$ac_cv_prog_AS"; then
8023 AS=$ac_cv_prog_AS
8024fi
8025
8026if test -n "$ac_cv_prog_AS"; then
8027 for ncn_progname in as; do
8028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8029set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031$as_echo_n "checking for $ac_word... " >&6; }
8032if test "${ac_cv_prog_AS+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
9a819804
AO
8034else
8035 if test -n "$AS"; then
8036 ac_cv_prog_AS="$AS" # Let the user override the test.
8037else
8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8045 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8047 break 2
8048 fi
8049done
81ecdfbb
RW
8050 done
8051IFS=$as_save_IFS
9a819804
AO
8052
8053fi
8054fi
8055AS=$ac_cv_prog_AS
8056if test -n "$AS"; then
81ecdfbb
RW
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8058$as_echo "$AS" >&6; }
9a819804 8059else
81ecdfbb
RW
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061$as_echo "no" >&6; }
9a819804
AO
8062fi
8063
81ecdfbb 8064
9a819804
AO
8065 done
8066fi
8067
8068for ncn_progname in as; do
05cbd757
PB
8069 if test -n "$ncn_tool_prefix"; then
8070 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8071set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073$as_echo_n "checking for $ac_word... " >&6; }
8074if test "${ac_cv_prog_AS+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
859789af
AC
8076else
8077 if test -n "$AS"; then
8078 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8079else
8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081for as_dir in $PATH
8082do
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8087 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8089 break 2
8090 fi
8091done
81ecdfbb
RW
8092 done
8093IFS=$as_save_IFS
c6b750e1 8094
859789af
AC
8095fi
8096fi
c6b750e1 8097AS=$ac_cv_prog_AS
859789af 8098if test -n "$AS"; then
81ecdfbb
RW
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8100$as_echo "$AS" >&6; }
859789af 8101else
81ecdfbb
RW
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
859789af
AC
8104fi
8105
81ecdfbb 8106
05cbd757
PB
8107 fi
8108 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8110set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112$as_echo_n "checking for $ac_word... " >&6; }
8113if test "${ac_cv_prog_AS+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
859789af 8115else
05cbd757
PB
8116 if test -n "$AS"; then
8117 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8118else
c6b750e1
DJ
8119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120for as_dir in $PATH
8121do
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8126 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8128 break 2
8129 fi
8130done
81ecdfbb
RW
8131 done
8132IFS=$as_save_IFS
c6b750e1 8133
859789af
AC
8134fi
8135fi
c6b750e1 8136AS=$ac_cv_prog_AS
05cbd757 8137if test -n "$AS"; then
81ecdfbb
RW
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8139$as_echo "$AS" >&6; }
859789af 8140else
81ecdfbb
RW
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142$as_echo "no" >&6; }
859789af 8143fi
c6b750e1 8144
81ecdfbb 8145
05cbd757
PB
8146 fi
8147 test -n "$ac_cv_prog_AS" && break
8148done
8149
8150if test -z "$ac_cv_prog_AS" ; then
8151 set dummy as
8152 if test $build = $host ; then
8153 AS="$2"
859789af 8154 else
05cbd757 8155 AS="${ncn_tool_prefix}$2"
859789af 8156 fi
859789af
AC
8157fi
8158
9a819804
AO
8159
8160
8161if test -n "$DLLTOOL"; then
8162 ac_cv_prog_DLLTOOL=$DLLTOOL
8163elif test -n "$ac_cv_prog_DLLTOOL"; then
8164 DLLTOOL=$ac_cv_prog_DLLTOOL
8165fi
8166
8167if test -n "$ac_cv_prog_DLLTOOL"; then
8168 for ncn_progname in dlltool; do
8169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8170set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172$as_echo_n "checking for $ac_word... " >&6; }
8173if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
9a819804
AO
8175else
8176 if test -n "$DLLTOOL"; then
8177 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8178else
8179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8186 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8188 break 2
8189 fi
8190done
81ecdfbb
RW
8191 done
8192IFS=$as_save_IFS
9a819804
AO
8193
8194fi
8195fi
8196DLLTOOL=$ac_cv_prog_DLLTOOL
8197if test -n "$DLLTOOL"; then
81ecdfbb
RW
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8199$as_echo "$DLLTOOL" >&6; }
9a819804 8200else
81ecdfbb
RW
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202$as_echo "no" >&6; }
9a819804
AO
8203fi
8204
81ecdfbb 8205
9a819804
AO
8206 done
8207fi
8208
8209for ncn_progname in dlltool; do
05cbd757
PB
8210 if test -n "$ncn_tool_prefix"; then
8211 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8212set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214$as_echo_n "checking for $ac_word... " >&6; }
8215if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
859789af
AC
8217else
8218 if test -n "$DLLTOOL"; then
8219 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8220else
c6b750e1
DJ
8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8228 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8230 break 2
8231 fi
8232done
81ecdfbb
RW
8233 done
8234IFS=$as_save_IFS
c6b750e1 8235
859789af
AC
8236fi
8237fi
c6b750e1 8238DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8239if test -n "$DLLTOOL"; then
81ecdfbb
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8241$as_echo "$DLLTOOL" >&6; }
859789af 8242else
81ecdfbb
RW
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }
859789af
AC
8245fi
8246
81ecdfbb 8247
05cbd757
PB
8248 fi
8249 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8251set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253$as_echo_n "checking for $ac_word... " >&6; }
8254if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
859789af 8256else
05cbd757
PB
8257 if test -n "$DLLTOOL"; then
8258 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8259else
c6b750e1
DJ
8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8267 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8269 break 2
8270 fi
8271done
81ecdfbb
RW
8272 done
8273IFS=$as_save_IFS
c6b750e1 8274
859789af
AC
8275fi
8276fi
c6b750e1 8277DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8278if test -n "$DLLTOOL"; then
81ecdfbb
RW
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8280$as_echo "$DLLTOOL" >&6; }
859789af 8281else
81ecdfbb
RW
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
859789af 8284fi
c6b750e1 8285
81ecdfbb 8286
05cbd757
PB
8287 fi
8288 test -n "$ac_cv_prog_DLLTOOL" && break
8289done
8290
8291if test -z "$ac_cv_prog_DLLTOOL" ; then
8292 set dummy dlltool
8293 if test $build = $host ; then
8294 DLLTOOL="$2"
859789af 8295 else
05cbd757 8296 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8297 fi
859789af
AC
8298fi
8299
9a819804
AO
8300
8301
8302if test -n "$LD"; then
8303 ac_cv_prog_LD=$LD
8304elif test -n "$ac_cv_prog_LD"; then
8305 LD=$ac_cv_prog_LD
8306fi
8307
8308if test -n "$ac_cv_prog_LD"; then
8309 for ncn_progname in ld; do
8310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8311set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313$as_echo_n "checking for $ac_word... " >&6; }
8314if test "${ac_cv_prog_LD+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
9a819804
AO
8316else
8317 if test -n "$LD"; then
8318 ac_cv_prog_LD="$LD" # Let the user override the test.
8319else
8320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8327 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8329 break 2
8330 fi
8331done
81ecdfbb
RW
8332 done
8333IFS=$as_save_IFS
9a819804
AO
8334
8335fi
8336fi
8337LD=$ac_cv_prog_LD
8338if test -n "$LD"; then
81ecdfbb
RW
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8340$as_echo "$LD" >&6; }
9a819804 8341else
81ecdfbb
RW
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343$as_echo "no" >&6; }
9a819804
AO
8344fi
8345
81ecdfbb 8346
9a819804
AO
8347 done
8348fi
8349
8350for ncn_progname in ld; do
05cbd757
PB
8351 if test -n "$ncn_tool_prefix"; then
8352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8353set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355$as_echo_n "checking for $ac_word... " >&6; }
8356if test "${ac_cv_prog_LD+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
859789af
AC
8358else
8359 if test -n "$LD"; then
8360 ac_cv_prog_LD="$LD" # Let the user override the test.
8361else
c6b750e1
DJ
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8369 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8371 break 2
8372 fi
8373done
81ecdfbb
RW
8374 done
8375IFS=$as_save_IFS
c6b750e1 8376
859789af
AC
8377fi
8378fi
c6b750e1 8379LD=$ac_cv_prog_LD
859789af 8380if test -n "$LD"; then
81ecdfbb
RW
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8382$as_echo "$LD" >&6; }
859789af 8383else
81ecdfbb
RW
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385$as_echo "no" >&6; }
859789af
AC
8386fi
8387
81ecdfbb 8388
05cbd757
PB
8389 fi
8390 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8392set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394$as_echo_n "checking for $ac_word... " >&6; }
8395if test "${ac_cv_prog_LD+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
859789af 8397else
05cbd757
PB
8398 if test -n "$LD"; then
8399 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8400else
c6b750e1
DJ
8401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402for as_dir in $PATH
8403do
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8408 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8410 break 2
8411 fi
8412done
81ecdfbb
RW
8413 done
8414IFS=$as_save_IFS
c6b750e1 8415
859789af
AC
8416fi
8417fi
c6b750e1 8418LD=$ac_cv_prog_LD
05cbd757 8419if test -n "$LD"; then
81ecdfbb
RW
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8421$as_echo "$LD" >&6; }
859789af 8422else
81ecdfbb
RW
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424$as_echo "no" >&6; }
859789af 8425fi
c6b750e1 8426
81ecdfbb 8427
05cbd757
PB
8428 fi
8429 test -n "$ac_cv_prog_LD" && break
8430done
8431
8432if test -z "$ac_cv_prog_LD" ; then
8433 set dummy ld
8434 if test $build = $host ; then
8435 LD="$2"
859789af 8436 else
05cbd757 8437 LD="${ncn_tool_prefix}$2"
859789af 8438 fi
859789af
AC
8439fi
8440
9a819804
AO
8441
8442
8443if test -n "$LIPO"; then
8444 ac_cv_prog_LIPO=$LIPO
8445elif test -n "$ac_cv_prog_LIPO"; then
8446 LIPO=$ac_cv_prog_LIPO
8447fi
8448
8449if test -n "$ac_cv_prog_LIPO"; then
8450 for ncn_progname in lipo; do
8451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8452set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454$as_echo_n "checking for $ac_word... " >&6; }
8455if test "${ac_cv_prog_LIPO+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
9a819804
AO
8457else
8458 if test -n "$LIPO"; then
8459 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8460else
8461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462for as_dir in $PATH
8463do
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8468 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8470 break 2
8471 fi
8472done
81ecdfbb
RW
8473 done
8474IFS=$as_save_IFS
9a819804
AO
8475
8476fi
8477fi
8478LIPO=$ac_cv_prog_LIPO
8479if test -n "$LIPO"; then
81ecdfbb
RW
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8481$as_echo "$LIPO" >&6; }
9a819804 8482else
81ecdfbb
RW
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484$as_echo "no" >&6; }
9a819804
AO
8485fi
8486
81ecdfbb 8487
9a819804
AO
8488 done
8489fi
8490
8491for ncn_progname in lipo; do
be01d343
PB
8492 if test -n "$ncn_tool_prefix"; then
8493 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8494set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496$as_echo_n "checking for $ac_word... " >&6; }
8497if test "${ac_cv_prog_LIPO+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
be01d343
PB
8499else
8500 if test -n "$LIPO"; then
8501 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8502else
c6b750e1
DJ
8503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504for as_dir in $PATH
8505do
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8510 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8512 break 2
8513 fi
8514done
81ecdfbb
RW
8515 done
8516IFS=$as_save_IFS
c6b750e1 8517
be01d343
PB
8518fi
8519fi
c6b750e1 8520LIPO=$ac_cv_prog_LIPO
be01d343 8521if test -n "$LIPO"; then
81ecdfbb
RW
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8523$as_echo "$LIPO" >&6; }
be01d343 8524else
81ecdfbb
RW
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526$as_echo "no" >&6; }
be01d343
PB
8527fi
8528
81ecdfbb 8529
be01d343
PB
8530 fi
8531 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8533set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535$as_echo_n "checking for $ac_word... " >&6; }
8536if test "${ac_cv_prog_LIPO+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
be01d343
PB
8538else
8539 if test -n "$LIPO"; then
8540 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8541else
c6b750e1
DJ
8542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543for as_dir in $PATH
8544do
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8549 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8551 break 2
8552 fi
8553done
81ecdfbb
RW
8554 done
8555IFS=$as_save_IFS
c6b750e1 8556
be01d343
PB
8557fi
8558fi
c6b750e1 8559LIPO=$ac_cv_prog_LIPO
be01d343 8560if test -n "$LIPO"; then
81ecdfbb
RW
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8562$as_echo "$LIPO" >&6; }
be01d343 8563else
81ecdfbb
RW
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565$as_echo "no" >&6; }
be01d343 8566fi
c6b750e1 8567
81ecdfbb 8568
be01d343
PB
8569 fi
8570 test -n "$ac_cv_prog_LIPO" && break
8571done
8572
8573if test -z "$ac_cv_prog_LIPO" ; then
8574 set dummy lipo
8575 if test $build = $host ; then
8576 LIPO="$2"
8577 else
8578 LIPO="${ncn_tool_prefix}$2"
8579 fi
8580fi
8581
9a819804
AO
8582
8583
8584if test -n "$NM"; then
8585 ac_cv_prog_NM=$NM
8586elif test -n "$ac_cv_prog_NM"; then
8587 NM=$ac_cv_prog_NM
8588fi
8589
8590if test -n "$ac_cv_prog_NM"; then
8591 for ncn_progname in nm; do
8592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8593set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595$as_echo_n "checking for $ac_word... " >&6; }
8596if test "${ac_cv_prog_NM+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
859789af
AC
8598else
8599 if test -n "$NM"; then
8600 ac_cv_prog_NM="$NM" # Let the user override the test.
8601else
c6b750e1
DJ
8602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603for as_dir in $PATH
8604do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8609 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8611 break 2
8612 fi
8613done
81ecdfbb
RW
8614 done
8615IFS=$as_save_IFS
c6b750e1 8616
859789af
AC
8617fi
8618fi
c6b750e1 8619NM=$ac_cv_prog_NM
859789af 8620if test -n "$NM"; then
81ecdfbb
RW
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8622$as_echo "$NM" >&6; }
859789af 8623else
81ecdfbb
RW
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625$as_echo "no" >&6; }
859789af
AC
8626fi
8627
81ecdfbb 8628
9a819804
AO
8629 done
8630fi
8631
8632for ncn_progname in nm; do
8633 if test -n "$ncn_tool_prefix"; then
8634 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8635set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637$as_echo_n "checking for $ac_word... " >&6; }
8638if test "${ac_cv_prog_NM+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
859789af 8640else
05cbd757
PB
8641 if test -n "$NM"; then
8642 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8643else
c6b750e1
DJ
8644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645for as_dir in $PATH
8646do
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8651 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8653 break 2
8654 fi
8655done
81ecdfbb
RW
8656 done
8657IFS=$as_save_IFS
c6b750e1 8658
859789af
AC
8659fi
8660fi
c6b750e1 8661NM=$ac_cv_prog_NM
05cbd757 8662if test -n "$NM"; then
81ecdfbb
RW
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8664$as_echo "$NM" >&6; }
859789af 8665else
81ecdfbb
RW
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667$as_echo "no" >&6; }
859789af 8668fi
c6b750e1 8669
81ecdfbb 8670
05cbd757 8671 fi
9a819804
AO
8672 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8674set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676$as_echo_n "checking for $ac_word... " >&6; }
8677if test "${ac_cv_prog_NM+set}" = set; then :
8678 $as_echo_n "(cached) " >&6
9a819804
AO
8679else
8680 if test -n "$NM"; then
8681 ac_cv_prog_NM="$NM" # Let the user override the test.
8682else
8683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684for as_dir in $PATH
8685do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8690 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8692 break 2
8693 fi
8694done
81ecdfbb
RW
8695 done
8696IFS=$as_save_IFS
9a819804
AO
8697
8698fi
8699fi
8700NM=$ac_cv_prog_NM
8701if test -n "$NM"; then
81ecdfbb
RW
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8703$as_echo "$NM" >&6; }
9a819804 8704else
81ecdfbb
RW
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706$as_echo "no" >&6; }
9a819804
AO
8707fi
8708
81ecdfbb 8709
9a819804
AO
8710 fi
8711 test -n "$ac_cv_prog_NM" && break
8712done
8713
8714if test -z "$ac_cv_prog_NM" ; then
8715 set dummy nm
8716 if test $build = $host ; then
8717 NM="$2"
8718 else
8719 NM="${ncn_tool_prefix}$2"
8720 fi
8721fi
8722
8723
8724
8725if test -n "$RANLIB"; then
8726 ac_cv_prog_RANLIB=$RANLIB
8727elif test -n "$ac_cv_prog_RANLIB"; then
8728 RANLIB=$ac_cv_prog_RANLIB
8729fi
8730
8731if test -n "$ac_cv_prog_RANLIB"; then
8732 for ncn_progname in ranlib; do
8733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8734set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736$as_echo_n "checking for $ac_word... " >&6; }
8737if test "${ac_cv_prog_RANLIB+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
9a819804
AO
8739else
8740 if test -n "$RANLIB"; then
8741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8742else
8743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744for as_dir in $PATH
8745do
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8750 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8752 break 2
8753 fi
8754done
81ecdfbb
RW
8755 done
8756IFS=$as_save_IFS
9a819804
AO
8757
8758fi
8759fi
8760RANLIB=$ac_cv_prog_RANLIB
8761if test -n "$RANLIB"; then
81ecdfbb
RW
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8763$as_echo "$RANLIB" >&6; }
9a819804 8764else
81ecdfbb
RW
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766$as_echo "no" >&6; }
9a819804
AO
8767fi
8768
81ecdfbb 8769
9a819804
AO
8770 done
8771fi
859789af 8772
9a819804 8773for ncn_progname in ranlib; do
05cbd757
PB
8774 if test -n "$ncn_tool_prefix"; then
8775 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8776set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778$as_echo_n "checking for $ac_word... " >&6; }
8779if test "${ac_cv_prog_RANLIB+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
859789af
AC
8781else
8782 if test -n "$RANLIB"; then
8783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8784else
c6b750e1
DJ
8785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786for as_dir in $PATH
8787do
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8792 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8794 break 2
8795 fi
8796done
81ecdfbb
RW
8797 done
8798IFS=$as_save_IFS
c6b750e1 8799
859789af
AC
8800fi
8801fi
c6b750e1 8802RANLIB=$ac_cv_prog_RANLIB
859789af 8803if test -n "$RANLIB"; then
81ecdfbb
RW
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8805$as_echo "$RANLIB" >&6; }
859789af 8806else
81ecdfbb
RW
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808$as_echo "no" >&6; }
859789af
AC
8809fi
8810
81ecdfbb 8811
05cbd757
PB
8812 fi
8813 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8815set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817$as_echo_n "checking for $ac_word... " >&6; }
8818if test "${ac_cv_prog_RANLIB+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
859789af 8820else
05cbd757
PB
8821 if test -n "$RANLIB"; then
8822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8823else
c6b750e1
DJ
8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825for as_dir in $PATH
8826do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8831 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8833 break 2
8834 fi
8835done
81ecdfbb
RW
8836 done
8837IFS=$as_save_IFS
c6b750e1 8838
859789af
AC
8839fi
8840fi
c6b750e1 8841RANLIB=$ac_cv_prog_RANLIB
05cbd757 8842if test -n "$RANLIB"; then
81ecdfbb
RW
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8844$as_echo "$RANLIB" >&6; }
859789af 8845else
81ecdfbb
RW
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847$as_echo "no" >&6; }
859789af 8848fi
c6b750e1 8849
81ecdfbb 8850
859789af 8851 fi
05cbd757
PB
8852 test -n "$ac_cv_prog_RANLIB" && break
8853done
8854
8855if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8856 RANLIB="true"
859789af
AC
8857fi
8858
9a819804
AO
8859
8860
8861if test -n "$STRIP"; then
8862 ac_cv_prog_STRIP=$STRIP
8863elif test -n "$ac_cv_prog_STRIP"; then
8864 STRIP=$ac_cv_prog_STRIP
8865fi
8866
8867if test -n "$ac_cv_prog_STRIP"; then
8868 for ncn_progname in strip; do
8869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8870set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8872$as_echo_n "checking for $ac_word... " >&6; }
8873if test "${ac_cv_prog_STRIP+set}" = set; then :
8874 $as_echo_n "(cached) " >&6
9a819804
AO
8875else
8876 if test -n "$STRIP"; then
8877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8878else
8879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880for as_dir in $PATH
8881do
8882 IFS=$as_save_IFS
8883 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8886 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8888 break 2
8889 fi
8890done
81ecdfbb
RW
8891 done
8892IFS=$as_save_IFS
9a819804
AO
8893
8894fi
8895fi
8896STRIP=$ac_cv_prog_STRIP
8897if test -n "$STRIP"; then
81ecdfbb
RW
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8899$as_echo "$STRIP" >&6; }
9a819804 8900else
81ecdfbb
RW
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902$as_echo "no" >&6; }
9a819804
AO
8903fi
8904
81ecdfbb 8905
9a819804
AO
8906 done
8907fi
8908
8909for ncn_progname in strip; do
be01d343
PB
8910 if test -n "$ncn_tool_prefix"; then
8911 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8912set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914$as_echo_n "checking for $ac_word... " >&6; }
8915if test "${ac_cv_prog_STRIP+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
be01d343
PB
8917else
8918 if test -n "$STRIP"; then
8919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8920else
c6b750e1
DJ
8921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922for as_dir in $PATH
8923do
8924 IFS=$as_save_IFS
8925 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8928 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8930 break 2
8931 fi
8932done
81ecdfbb
RW
8933 done
8934IFS=$as_save_IFS
c6b750e1 8935
be01d343
PB
8936fi
8937fi
c6b750e1 8938STRIP=$ac_cv_prog_STRIP
be01d343 8939if test -n "$STRIP"; then
81ecdfbb
RW
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8941$as_echo "$STRIP" >&6; }
be01d343 8942else
81ecdfbb
RW
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944$as_echo "no" >&6; }
be01d343
PB
8945fi
8946
81ecdfbb 8947
be01d343
PB
8948 fi
8949 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8951set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8953$as_echo_n "checking for $ac_word... " >&6; }
8954if test "${ac_cv_prog_STRIP+set}" = set; then :
8955 $as_echo_n "(cached) " >&6
be01d343
PB
8956else
8957 if test -n "$STRIP"; then
8958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8959else
c6b750e1
DJ
8960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961for as_dir in $PATH
8962do
8963 IFS=$as_save_IFS
8964 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8967 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8969 break 2
8970 fi
8971done
81ecdfbb
RW
8972 done
8973IFS=$as_save_IFS
c6b750e1 8974
be01d343
PB
8975fi
8976fi
c6b750e1 8977STRIP=$ac_cv_prog_STRIP
be01d343 8978if test -n "$STRIP"; then
81ecdfbb
RW
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8980$as_echo "$STRIP" >&6; }
be01d343 8981else
81ecdfbb
RW
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983$as_echo "no" >&6; }
be01d343 8984fi
c6b750e1 8985
81ecdfbb 8986
be01d343
PB
8987 fi
8988 test -n "$ac_cv_prog_STRIP" && break
8989done
8990
8991if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 8992 STRIP="true"
be01d343
PB
8993fi
8994
9a819804
AO
8995
8996
8997if test -n "$WINDRES"; then
8998 ac_cv_prog_WINDRES=$WINDRES
8999elif test -n "$ac_cv_prog_WINDRES"; then
9000 WINDRES=$ac_cv_prog_WINDRES
9001fi
9002
9003if test -n "$ac_cv_prog_WINDRES"; then
9004 for ncn_progname in windres; do
9005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9006set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9008$as_echo_n "checking for $ac_word... " >&6; }
9009if test "${ac_cv_prog_WINDRES+set}" = set; then :
9010 $as_echo_n "(cached) " >&6
9a819804
AO
9011else
9012 if test -n "$WINDRES"; then
9013 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9014else
9015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016for as_dir in $PATH
9017do
9018 IFS=$as_save_IFS
9019 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9022 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9024 break 2
9025 fi
9026done
81ecdfbb
RW
9027 done
9028IFS=$as_save_IFS
9a819804
AO
9029
9030fi
9031fi
9032WINDRES=$ac_cv_prog_WINDRES
9033if test -n "$WINDRES"; then
81ecdfbb
RW
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9035$as_echo "$WINDRES" >&6; }
9a819804 9036else
81ecdfbb
RW
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9038$as_echo "no" >&6; }
9a819804
AO
9039fi
9040
81ecdfbb 9041
9a819804
AO
9042 done
9043fi
9044
9045for ncn_progname in windres; do
05cbd757
PB
9046 if test -n "$ncn_tool_prefix"; then
9047 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9048set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9050$as_echo_n "checking for $ac_word... " >&6; }
9051if test "${ac_cv_prog_WINDRES+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
859789af
AC
9053else
9054 if test -n "$WINDRES"; then
9055 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9056else
c6b750e1
DJ
9057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9058for as_dir in $PATH
9059do
9060 IFS=$as_save_IFS
9061 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9062 for ac_exec_ext in '' $ac_executable_extensions; do
9063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9064 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9066 break 2
9067 fi
9068done
81ecdfbb
RW
9069 done
9070IFS=$as_save_IFS
c6b750e1 9071
859789af
AC
9072fi
9073fi
c6b750e1 9074WINDRES=$ac_cv_prog_WINDRES
859789af 9075if test -n "$WINDRES"; then
81ecdfbb
RW
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9077$as_echo "$WINDRES" >&6; }
859789af 9078else
81ecdfbb
RW
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080$as_echo "no" >&6; }
859789af
AC
9081fi
9082
81ecdfbb 9083
05cbd757
PB
9084 fi
9085 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9087set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089$as_echo_n "checking for $ac_word... " >&6; }
9090if test "${ac_cv_prog_WINDRES+set}" = set; then :
9091 $as_echo_n "(cached) " >&6
859789af 9092else
05cbd757
PB
9093 if test -n "$WINDRES"; then
9094 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9095else
c6b750e1
DJ
9096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097for as_dir in $PATH
9098do
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9103 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9105 break 2
9106 fi
9107done
81ecdfbb
RW
9108 done
9109IFS=$as_save_IFS
c6b750e1 9110
859789af
AC
9111fi
9112fi
c6b750e1 9113WINDRES=$ac_cv_prog_WINDRES
05cbd757 9114if test -n "$WINDRES"; then
81ecdfbb
RW
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9116$as_echo "$WINDRES" >&6; }
859789af 9117else
81ecdfbb
RW
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119$as_echo "no" >&6; }
859789af 9120fi
c6b750e1 9121
81ecdfbb 9122
05cbd757
PB
9123 fi
9124 test -n "$ac_cv_prog_WINDRES" && break
9125done
9126
9127if test -z "$ac_cv_prog_WINDRES" ; then
9128 set dummy windres
9129 if test $build = $host ; then
9130 WINDRES="$2"
859789af 9131 else
05cbd757 9132 WINDRES="${ncn_tool_prefix}$2"
859789af 9133 fi
859789af
AC
9134fi
9135
9a819804
AO
9136
9137
0c24b341
NC
9138if test -n "$WINDMC"; then
9139 ac_cv_prog_WINDMC=$WINDMC
9140elif test -n "$ac_cv_prog_WINDMC"; then
9141 WINDMC=$ac_cv_prog_WINDMC
9142fi
9143
9144if test -n "$ac_cv_prog_WINDMC"; then
9145 for ncn_progname in windmc; do
9146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9147set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149$as_echo_n "checking for $ac_word... " >&6; }
9150if test "${ac_cv_prog_WINDMC+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
0c24b341
NC
9152else
9153 if test -n "$WINDMC"; then
9154 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9155else
9156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157for as_dir in $PATH
9158do
9159 IFS=$as_save_IFS
9160 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9163 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9165 break 2
9166 fi
9167done
81ecdfbb
RW
9168 done
9169IFS=$as_save_IFS
0c24b341
NC
9170
9171fi
9172fi
9173WINDMC=$ac_cv_prog_WINDMC
9174if test -n "$WINDMC"; then
81ecdfbb
RW
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9176$as_echo "$WINDMC" >&6; }
0c24b341 9177else
81ecdfbb
RW
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179$as_echo "no" >&6; }
0c24b341
NC
9180fi
9181
81ecdfbb 9182
0c24b341
NC
9183 done
9184fi
9185
9186for ncn_progname in windmc; do
9187 if test -n "$ncn_tool_prefix"; then
9188 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9189set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191$as_echo_n "checking for $ac_word... " >&6; }
9192if test "${ac_cv_prog_WINDMC+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
0c24b341
NC
9194else
9195 if test -n "$WINDMC"; then
9196 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9197else
9198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199for as_dir in $PATH
9200do
9201 IFS=$as_save_IFS
9202 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9203 for ac_exec_ext in '' $ac_executable_extensions; do
9204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9205 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9207 break 2
9208 fi
9209done
81ecdfbb
RW
9210 done
9211IFS=$as_save_IFS
0c24b341
NC
9212
9213fi
9214fi
9215WINDMC=$ac_cv_prog_WINDMC
9216if test -n "$WINDMC"; then
81ecdfbb
RW
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9218$as_echo "$WINDMC" >&6; }
0c24b341 9219else
81ecdfbb
RW
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221$as_echo "no" >&6; }
0c24b341
NC
9222fi
9223
81ecdfbb 9224
0c24b341
NC
9225 fi
9226 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9228set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230$as_echo_n "checking for $ac_word... " >&6; }
9231if test "${ac_cv_prog_WINDMC+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
0c24b341
NC
9233else
9234 if test -n "$WINDMC"; then
9235 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9236else
9237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238for as_dir in $PATH
9239do
9240 IFS=$as_save_IFS
9241 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9244 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9246 break 2
9247 fi
9248done
81ecdfbb
RW
9249 done
9250IFS=$as_save_IFS
0c24b341
NC
9251
9252fi
9253fi
9254WINDMC=$ac_cv_prog_WINDMC
9255if test -n "$WINDMC"; then
81ecdfbb
RW
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9257$as_echo "$WINDMC" >&6; }
0c24b341 9258else
81ecdfbb
RW
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260$as_echo "no" >&6; }
0c24b341
NC
9261fi
9262
81ecdfbb 9263
0c24b341
NC
9264 fi
9265 test -n "$ac_cv_prog_WINDMC" && break
9266done
9267
9268if test -z "$ac_cv_prog_WINDMC" ; then
9269 set dummy windmc
9270 if test $build = $host ; then
9271 WINDMC="$2"
9272 else
9273 WINDMC="${ncn_tool_prefix}$2"
9274 fi
9275fi
9276
9277
9278
9a819804
AO
9279if test -n "$OBJCOPY"; then
9280 ac_cv_prog_OBJCOPY=$OBJCOPY
9281elif test -n "$ac_cv_prog_OBJCOPY"; then
9282 OBJCOPY=$ac_cv_prog_OBJCOPY
9283fi
9284
9285if test -n "$ac_cv_prog_OBJCOPY"; then
9286 for ncn_progname in objcopy; do
9287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9288set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290$as_echo_n "checking for $ac_word... " >&6; }
9291if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9a819804
AO
9293else
9294 if test -n "$OBJCOPY"; then
9295 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9296else
9297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298for as_dir in $PATH
9299do
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9304 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9306 break 2
9307 fi
9308done
81ecdfbb
RW
9309 done
9310IFS=$as_save_IFS
9a819804
AO
9311
9312fi
9313fi
9314OBJCOPY=$ac_cv_prog_OBJCOPY
9315if test -n "$OBJCOPY"; then
81ecdfbb
RW
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9317$as_echo "$OBJCOPY" >&6; }
9a819804 9318else
81ecdfbb
RW
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320$as_echo "no" >&6; }
9a819804
AO
9321fi
9322
81ecdfbb 9323
9a819804
AO
9324 done
9325fi
9326
9327for ncn_progname in objcopy; do
05cbd757
PB
9328 if test -n "$ncn_tool_prefix"; then
9329 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9330set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332$as_echo_n "checking for $ac_word... " >&6; }
9333if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
859789af
AC
9335else
9336 if test -n "$OBJCOPY"; then
9337 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9338else
c6b750e1
DJ
9339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340for as_dir in $PATH
9341do
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9346 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9348 break 2
9349 fi
9350done
81ecdfbb
RW
9351 done
9352IFS=$as_save_IFS
c6b750e1 9353
859789af
AC
9354fi
9355fi
c6b750e1 9356OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9357if test -n "$OBJCOPY"; then
81ecdfbb
RW
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9359$as_echo "$OBJCOPY" >&6; }
859789af 9360else
81ecdfbb
RW
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362$as_echo "no" >&6; }
859789af
AC
9363fi
9364
81ecdfbb 9365
05cbd757
PB
9366 fi
9367 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9369set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371$as_echo_n "checking for $ac_word... " >&6; }
9372if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9373 $as_echo_n "(cached) " >&6
859789af 9374else
05cbd757
PB
9375 if test -n "$OBJCOPY"; then
9376 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9377else
c6b750e1
DJ
9378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379for as_dir in $PATH
9380do
9381 IFS=$as_save_IFS
9382 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9383 for ac_exec_ext in '' $ac_executable_extensions; do
9384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9385 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9387 break 2
9388 fi
9389done
81ecdfbb
RW
9390 done
9391IFS=$as_save_IFS
c6b750e1 9392
859789af
AC
9393fi
9394fi
c6b750e1 9395OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9396if test -n "$OBJCOPY"; then
81ecdfbb
RW
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9398$as_echo "$OBJCOPY" >&6; }
859789af 9399else
81ecdfbb
RW
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401$as_echo "no" >&6; }
859789af 9402fi
c6b750e1 9403
81ecdfbb 9404
05cbd757
PB
9405 fi
9406 test -n "$ac_cv_prog_OBJCOPY" && break
9407done
9408
9409if test -z "$ac_cv_prog_OBJCOPY" ; then
9410 set dummy objcopy
9411 if test $build = $host ; then
9412 OBJCOPY="$2"
859789af 9413 else
05cbd757 9414 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9415 fi
859789af
AC
9416fi
9417
9a819804
AO
9418
9419
9420if test -n "$OBJDUMP"; then
9421 ac_cv_prog_OBJDUMP=$OBJDUMP
9422elif test -n "$ac_cv_prog_OBJDUMP"; then
9423 OBJDUMP=$ac_cv_prog_OBJDUMP
9424fi
9425
9426if test -n "$ac_cv_prog_OBJDUMP"; then
9427 for ncn_progname in objdump; do
9428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9429set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431$as_echo_n "checking for $ac_word... " >&6; }
9432if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9a819804
AO
9434else
9435 if test -n "$OBJDUMP"; then
9436 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9437else
9438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439for as_dir in $PATH
9440do
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9445 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9447 break 2
9448 fi
9449done
81ecdfbb
RW
9450 done
9451IFS=$as_save_IFS
9a819804
AO
9452
9453fi
9454fi
9455OBJDUMP=$ac_cv_prog_OBJDUMP
9456if test -n "$OBJDUMP"; then
81ecdfbb
RW
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9458$as_echo "$OBJDUMP" >&6; }
9a819804 9459else
81ecdfbb
RW
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461$as_echo "no" >&6; }
9a819804
AO
9462fi
9463
81ecdfbb 9464
9a819804
AO
9465 done
9466fi
9467
9468for ncn_progname in objdump; do
05cbd757
PB
9469 if test -n "$ncn_tool_prefix"; then
9470 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9471set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473$as_echo_n "checking for $ac_word... " >&6; }
9474if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
859789af
AC
9476else
9477 if test -n "$OBJDUMP"; then
9478 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9479else
c6b750e1
DJ
9480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481for as_dir in $PATH
9482do
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9487 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9489 break 2
9490 fi
9491done
81ecdfbb
RW
9492 done
9493IFS=$as_save_IFS
c6b750e1 9494
859789af
AC
9495fi
9496fi
c6b750e1 9497OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9498if test -n "$OBJDUMP"; then
81ecdfbb
RW
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9500$as_echo "$OBJDUMP" >&6; }
859789af 9501else
81ecdfbb
RW
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503$as_echo "no" >&6; }
859789af
AC
9504fi
9505
81ecdfbb 9506
05cbd757
PB
9507 fi
9508 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9510set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9512$as_echo_n "checking for $ac_word... " >&6; }
9513if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
859789af 9515else
05cbd757
PB
9516 if test -n "$OBJDUMP"; then
9517 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9518else
c6b750e1
DJ
9519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520for as_dir in $PATH
9521do
9522 IFS=$as_save_IFS
9523 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9524 for ac_exec_ext in '' $ac_executable_extensions; do
9525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9526 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9528 break 2
9529 fi
9530done
81ecdfbb
RW
9531 done
9532IFS=$as_save_IFS
c6b750e1 9533
859789af
AC
9534fi
9535fi
c6b750e1 9536OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9537if test -n "$OBJDUMP"; then
81ecdfbb
RW
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9539$as_echo "$OBJDUMP" >&6; }
859789af 9540else
81ecdfbb
RW
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542$as_echo "no" >&6; }
859789af 9543fi
c6b750e1 9544
81ecdfbb 9545
05cbd757
PB
9546 fi
9547 test -n "$ac_cv_prog_OBJDUMP" && break
9548done
9549
9550if test -z "$ac_cv_prog_OBJDUMP" ; then
9551 set dummy objdump
9552 if test $build = $host ; then
9553 OBJDUMP="$2"
859789af 9554 else
05cbd757 9555 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9556 fi
859789af
AC
9557fi
9558
a0da8069
NN
9559
9560
9561
9562
9563
be01d343 9564# Target tools.
c6b750e1 9565
81ecdfbb
RW
9566# Check whether --with-build-time-tools was given.
9567if test "${with_build_time_tools+set}" = set; then :
9568 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9569 x/*) ;;
9570 *)
9571 with_build_time_tools=
81ecdfbb
RW
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9573$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9574 ;;
9575 esac
859789af 9576else
2429c060 9577 with_build_time_tools=
81ecdfbb
RW
9578fi
9579
859789af 9580
9a819804
AO
9581
9582
9583if test -n "$CC_FOR_TARGET"; then
9584 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9585elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9586 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9587fi
9588
9589if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9590 for ncn_progname in cc gcc; do
9591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9592set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9594$as_echo_n "checking for $ac_word... " >&6; }
9595if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9596 $as_echo_n "(cached) " >&6
9a819804
AO
9597else
9598 if test -n "$CC_FOR_TARGET"; then
9599 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9600else
9601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602for as_dir in $PATH
9603do
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9606 for ac_exec_ext in '' $ac_executable_extensions; do
9607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9608 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9610 break 2
9611 fi
9612done
81ecdfbb
RW
9613 done
9614IFS=$as_save_IFS
9a819804
AO
9615
9616fi
9617fi
9618CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9619if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9621$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9622else
81ecdfbb
RW
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624$as_echo "no" >&6; }
9a819804
AO
9625fi
9626
81ecdfbb 9627
9a819804
AO
9628 done
9629fi
9630
9631if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9632 for ncn_progname in cc gcc; do
81ecdfbb
RW
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9634$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9635 if test -x $with_build_time_tools/${ncn_progname}; then
9636 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9638$as_echo "yes" >&6; }
cac3d6c4 9639 break
2429c060 9640 else
81ecdfbb
RW
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642$as_echo "no" >&6; }
cac3d6c4
CM
9643 fi
9644 done
55db4b87
PB
9645fi
9646
2429c060
PB
9647if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9648 for ncn_progname in cc gcc; do
9649 if test -n "$ncn_target_tool_prefix"; then
9650 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9651set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653$as_echo_n "checking for $ac_word... " >&6; }
9654if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
55db4b87
PB
9656else
9657 if test -n "$CC_FOR_TARGET"; then
9658 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9659else
c6b750e1
DJ
9660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661for as_dir in $PATH
9662do
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9667 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9669 break 2
9670 fi
9671done
81ecdfbb
RW
9672 done
9673IFS=$as_save_IFS
c6b750e1 9674
55db4b87
PB
9675fi
9676fi
c6b750e1 9677CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9678if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9680$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9681else
81ecdfbb
RW
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683$as_echo "no" >&6; }
55db4b87
PB
9684fi
9685
81ecdfbb 9686
2429c060
PB
9687 fi
9688 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9690set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692$as_echo_n "checking for $ac_word... " >&6; }
9693if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
55db4b87 9695else
05cbd757
PB
9696 if test -n "$CC_FOR_TARGET"; then
9697 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9698else
c6b750e1
DJ
9699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $PATH
9701do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9706 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9708 break 2
9709 fi
9710done
81ecdfbb
RW
9711 done
9712IFS=$as_save_IFS
c6b750e1 9713
55db4b87
PB
9714fi
9715fi
c6b750e1 9716CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9717if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9719$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9720else
81ecdfbb
RW
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722$as_echo "no" >&6; }
55db4b87 9723fi
c6b750e1 9724
81ecdfbb 9725
2429c060
PB
9726 fi
9727 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9728 done
9729fi
c6b750e1 9730
05cbd757
PB
9731if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9732 set dummy cc gcc
9733 if test $build = $target ; then
9734 CC_FOR_TARGET="$2"
55db4b87 9735 else
05cbd757 9736 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9737 fi
d3f5afc4
MS
9738else
9739 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9740fi
9741
9a819804
AO
9742
9743
9744if test -n "$CXX_FOR_TARGET"; then
9745 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9746elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9747 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9748fi
9749
9750if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9751 for ncn_progname in c++ g++ cxx gxx; do
9752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9753set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755$as_echo_n "checking for $ac_word... " >&6; }
9756if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
9a819804
AO
9758else
9759 if test -n "$CXX_FOR_TARGET"; then
9760 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9761else
9762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763for as_dir in $PATH
9764do
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9769 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9771 break 2
9772 fi
9773done
81ecdfbb
RW
9774 done
9775IFS=$as_save_IFS
9a819804
AO
9776
9777fi
9778fi
9779CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9780if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9782$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9783else
81ecdfbb
RW
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785$as_echo "no" >&6; }
9a819804
AO
9786fi
9787
81ecdfbb 9788
9a819804
AO
9789 done
9790fi
9791
9792if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9793 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9795$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9796 if test -x $with_build_time_tools/${ncn_progname}; then
9797 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9799$as_echo "yes" >&6; }
2429c060
PB
9800 break
9801 else
81ecdfbb
RW
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803$as_echo "no" >&6; }
2429c060
PB
9804 fi
9805 done
9806fi
9807
9808if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9809 for ncn_progname in c++ g++ cxx gxx; do
9810 if test -n "$ncn_target_tool_prefix"; then
9811 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9812set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814$as_echo_n "checking for $ac_word... " >&6; }
9815if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
55db4b87
PB
9817else
9818 if test -n "$CXX_FOR_TARGET"; then
9819 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9820else
c6b750e1
DJ
9821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822for as_dir in $PATH
9823do
9824 IFS=$as_save_IFS
9825 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9828 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9830 break 2
9831 fi
9832done
81ecdfbb
RW
9833 done
9834IFS=$as_save_IFS
c6b750e1 9835
55db4b87
PB
9836fi
9837fi
c6b750e1 9838CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9839if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9841$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9842else
81ecdfbb
RW
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844$as_echo "no" >&6; }
55db4b87
PB
9845fi
9846
81ecdfbb 9847
2429c060
PB
9848 fi
9849 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9851set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9853$as_echo_n "checking for $ac_word... " >&6; }
9854if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9855 $as_echo_n "(cached) " >&6
55db4b87 9856else
05cbd757
PB
9857 if test -n "$CXX_FOR_TARGET"; then
9858 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9859else
c6b750e1
DJ
9860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861for as_dir in $PATH
9862do
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9867 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9869 break 2
9870 fi
9871done
81ecdfbb
RW
9872 done
9873IFS=$as_save_IFS
c6b750e1 9874
55db4b87
PB
9875fi
9876fi
c6b750e1 9877CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9878if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9880$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9881else
81ecdfbb
RW
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883$as_echo "no" >&6; }
55db4b87 9884fi
c6b750e1 9885
81ecdfbb 9886
2429c060
PB
9887 fi
9888 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9889 done
9890fi
c6b750e1 9891
05cbd757
PB
9892if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9893 set dummy c++ g++ cxx gxx
9894 if test $build = $target ; then
9895 CXX_FOR_TARGET="$2"
55db4b87 9896 else
05cbd757 9897 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9898 fi
d3f5afc4
MS
9899else
9900 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9901fi
9902
9a819804
AO
9903
9904
9905if test -n "$GCC_FOR_TARGET"; then
9906 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9907elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9908 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9909fi
9910
9911if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9912 for ncn_progname in gcc; do
9913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9914set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916$as_echo_n "checking for $ac_word... " >&6; }
9917if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
9a819804
AO
9919else
9920 if test -n "$GCC_FOR_TARGET"; then
9921 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9922else
9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9930 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9932 break 2
9933 fi
9934done
81ecdfbb
RW
9935 done
9936IFS=$as_save_IFS
9a819804
AO
9937
9938fi
9939fi
9940GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9941if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9943$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 9944else
81ecdfbb
RW
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946$as_echo "no" >&6; }
9a819804
AO
9947fi
9948
81ecdfbb 9949
9a819804
AO
9950 done
9951fi
9952
9953if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9954 for ncn_progname in gcc; do
81ecdfbb
RW
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9956$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9957 if test -x $with_build_time_tools/${ncn_progname}; then
9958 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9960$as_echo "yes" >&6; }
2429c060
PB
9961 break
9962 else
81ecdfbb
RW
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964$as_echo "no" >&6; }
2429c060
PB
9965 fi
9966 done
9967fi
9968
9969if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9970 for ncn_progname in gcc; do
9971 if test -n "$ncn_target_tool_prefix"; then
9972 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9973set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975$as_echo_n "checking for $ac_word... " >&6; }
9976if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
859789af 9978else
2429c060
PB
9979 if test -n "$GCC_FOR_TARGET"; then
9980 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9981else
c6b750e1
DJ
9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH
9984do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9989 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9991 break 2
9992 fi
9993done
81ecdfbb
RW
9994 done
9995IFS=$as_save_IFS
c6b750e1 9996
55db4b87
PB
9997fi
9998fi
c6b750e1 9999GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10000if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10002$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10003else
81ecdfbb
RW
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005$as_echo "no" >&6; }
55db4b87
PB
10006fi
10007
81ecdfbb 10008
2429c060
PB
10009 fi
10010 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10012set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014$as_echo_n "checking for $ac_word... " >&6; }
10015if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
55db4b87 10017else
05cbd757
PB
10018 if test -n "$GCC_FOR_TARGET"; then
10019 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10020else
c6b750e1
DJ
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10028 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10030 break 2
10031 fi
10032done
81ecdfbb
RW
10033 done
10034IFS=$as_save_IFS
c6b750e1 10035
55db4b87
PB
10036fi
10037fi
c6b750e1 10038GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10039if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10041$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10042else
81ecdfbb
RW
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044$as_echo "no" >&6; }
55db4b87 10045fi
c6b750e1 10046
81ecdfbb 10047
2429c060
PB
10048 fi
10049 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10050 done
10051fi
c6b750e1 10052
05cbd757
PB
10053if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10054 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10055else
10056 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10057fi
10058
9a819804
AO
10059
10060
10061if test -n "$GCJ_FOR_TARGET"; then
10062 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10063elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10064 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10065fi
10066
10067if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10068 for ncn_progname in gcj; do
10069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10070set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10072$as_echo_n "checking for $ac_word... " >&6; }
10073if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
9a819804
AO
10075else
10076 if test -n "$GCJ_FOR_TARGET"; then
10077 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10078else
10079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080for as_dir in $PATH
10081do
10082 IFS=$as_save_IFS
10083 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10086 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10088 break 2
10089 fi
10090done
81ecdfbb
RW
10091 done
10092IFS=$as_save_IFS
9a819804
AO
10093
10094fi
10095fi
10096GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10097if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10099$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10100else
81ecdfbb
RW
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10102$as_echo "no" >&6; }
9a819804
AO
10103fi
10104
81ecdfbb 10105
9a819804
AO
10106 done
10107fi
10108
10109if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10110 for ncn_progname in gcj; do
81ecdfbb
RW
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10112$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10113 if test -x $with_build_time_tools/${ncn_progname}; then
10114 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10116$as_echo "yes" >&6; }
2429c060
PB
10117 break
10118 else
81ecdfbb
RW
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120$as_echo "no" >&6; }
2429c060
PB
10121 fi
10122 done
10123fi
10124
10125if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10126 for ncn_progname in gcj; do
10127 if test -n "$ncn_target_tool_prefix"; then
10128 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10129set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131$as_echo_n "checking for $ac_word... " >&6; }
10132if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10133 $as_echo_n "(cached) " >&6
55db4b87
PB
10134else
10135 if test -n "$GCJ_FOR_TARGET"; then
10136 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10137else
c6b750e1
DJ
10138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139for as_dir in $PATH
10140do
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10145 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10147 break 2
10148 fi
10149done
81ecdfbb
RW
10150 done
10151IFS=$as_save_IFS
c6b750e1 10152
55db4b87
PB
10153fi
10154fi
9a819804
AO
10155GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10156if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10158$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10159else
81ecdfbb
RW
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161$as_echo "no" >&6; }
9a819804
AO
10162fi
10163
81ecdfbb 10164
9a819804
AO
10165 fi
10166 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10168set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170$as_echo_n "checking for $ac_word... " >&6; }
10171if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10172 $as_echo_n "(cached) " >&6
9a819804
AO
10173else
10174 if test -n "$GCJ_FOR_TARGET"; then
10175 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10176else
10177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178for as_dir in $PATH
10179do
10180 IFS=$as_save_IFS
10181 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10182 for ac_exec_ext in '' $ac_executable_extensions; do
10183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10184 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10186 break 2
10187 fi
10188done
81ecdfbb
RW
10189 done
10190IFS=$as_save_IFS
9a819804
AO
10191
10192fi
10193fi
10194GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10195if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10197$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10198else
81ecdfbb
RW
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200$as_echo "no" >&6; }
9a819804
AO
10201fi
10202
81ecdfbb 10203
9a819804
AO
10204 fi
10205 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10206 done
10207fi
10208
10209if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10210 set dummy gcj
10211 if test $build = $target ; then
10212 GCJ_FOR_TARGET="$2"
10213 else
10214 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10215 fi
d3f5afc4
MS
10216else
10217 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10218fi
10219
10220
10221
10222if test -n "$GFORTRAN_FOR_TARGET"; then
10223 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10224elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10225 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10226fi
10227
9a819804
AO
10228if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10229 for ncn_progname in gfortran; do
10230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10231set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233$as_echo_n "checking for $ac_word... " >&6; }
10234if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10235 $as_echo_n "(cached) " >&6
55db4b87 10236else
9a819804
AO
10237 if test -n "$GFORTRAN_FOR_TARGET"; then
10238 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10239else
c6b750e1
DJ
10240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241for as_dir in $PATH
10242do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10247 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10249 break 2
10250 fi
10251done
81ecdfbb
RW
10252 done
10253IFS=$as_save_IFS
c6b750e1 10254
55db4b87
PB
10255fi
10256fi
9a819804
AO
10257GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10258if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10260$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10261else
81ecdfbb
RW
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263$as_echo "no" >&6; }
55db4b87 10264fi
c6b750e1 10265
81ecdfbb 10266
2429c060
PB
10267 done
10268fi
c6b750e1 10269
9a819804 10270if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10271 for ncn_progname in gfortran; do
81ecdfbb
RW
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10273$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10274 if test -x $with_build_time_tools/${ncn_progname}; then
10275 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10277$as_echo "yes" >&6; }
2429c060
PB
10278 break
10279 else
81ecdfbb
RW
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
2429c060
PB
10282 fi
10283 done
10284fi
10285
10286if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10287 for ncn_progname in gfortran; do
10288 if test -n "$ncn_target_tool_prefix"; then
10289 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10290set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292$as_echo_n "checking for $ac_word... " >&6; }
10293if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
55db4b87
PB
10295else
10296 if test -n "$GFORTRAN_FOR_TARGET"; then
10297 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10298else
c6b750e1
DJ
10299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300for as_dir in $PATH
10301do
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10306 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10308 break 2
10309 fi
10310done
81ecdfbb
RW
10311 done
10312IFS=$as_save_IFS
c6b750e1 10313
55db4b87
PB
10314fi
10315fi
c6b750e1 10316GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10317if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10319$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10320else
81ecdfbb
RW
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322$as_echo "no" >&6; }
55db4b87
PB
10323fi
10324
81ecdfbb 10325
2429c060
PB
10326 fi
10327 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10329set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331$as_echo_n "checking for $ac_word... " >&6; }
10332if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10333 $as_echo_n "(cached) " >&6
55db4b87 10334else
05cbd757 10335 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10336 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10337else
10338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339for as_dir in $PATH
10340do
10341 IFS=$as_save_IFS
10342 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10343 for ac_exec_ext in '' $ac_executable_extensions; do
10344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10345 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10347 break 2
10348 fi
10349done
81ecdfbb
RW
10350 done
10351IFS=$as_save_IFS
c6b750e1 10352
55db4b87
PB
10353fi
10354fi
c6b750e1 10355GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10356if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10358$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10359else
81ecdfbb
RW
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361$as_echo "no" >&6; }
55db4b87 10362fi
c6b750e1 10363
81ecdfbb 10364
2429c060
PB
10365 fi
10366 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10367 done
10368fi
c6b750e1 10369
05cbd757
PB
10370if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10371 set dummy gfortran
10372 if test $build = $target ; then
10373 GFORTRAN_FOR_TARGET="$2"
55db4b87 10374 else
05cbd757 10375 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10376 fi
d3f5afc4
MS
10377else
10378 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10379fi
10380
2429c060
PB
10381
10382
e552509b
ILT
10383if test -n "$GOC_FOR_TARGET"; then
10384 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10385elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10386 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10387fi
10388
10389if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10390 for ncn_progname in gccgo; do
10391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10392set dummy ${ncn_progname}; ac_word=$2
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394$as_echo_n "checking for $ac_word... " >&6; }
10395if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10397else
10398 if test -n "$GOC_FOR_TARGET"; then
10399 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10400else
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10408 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 break 2
10411 fi
10412done
10413 done
10414IFS=$as_save_IFS
10415
10416fi
10417fi
10418GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10419if test -n "$GOC_FOR_TARGET"; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10421$as_echo "$GOC_FOR_TARGET" >&6; }
10422else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424$as_echo "no" >&6; }
10425fi
10426
10427
10428 done
10429fi
10430
10431if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10432 for ncn_progname in gccgo; do
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10434$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10435 if test -x $with_build_time_tools/${ncn_progname}; then
10436 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10438$as_echo "yes" >&6; }
10439 break
10440 else
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442$as_echo "no" >&6; }
10443 fi
10444 done
10445fi
10446
10447if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10448 for ncn_progname in gccgo; do
10449 if test -n "$ncn_target_tool_prefix"; then
10450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10451set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453$as_echo_n "checking for $ac_word... " >&6; }
10454if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10455 $as_echo_n "(cached) " >&6
10456else
10457 if test -n "$GOC_FOR_TARGET"; then
10458 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10459else
10460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461for as_dir in $PATH
10462do
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10467 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 break 2
10470 fi
10471done
10472 done
10473IFS=$as_save_IFS
10474
10475fi
10476fi
10477GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10478if test -n "$GOC_FOR_TARGET"; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10480$as_echo "$GOC_FOR_TARGET" >&6; }
10481else
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483$as_echo "no" >&6; }
10484fi
10485
10486
10487 fi
10488 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10490set dummy ${ncn_progname}; ac_word=$2
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492$as_echo_n "checking for $ac_word... " >&6; }
10493if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10495else
10496 if test -n "$GOC_FOR_TARGET"; then
10497 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10498else
10499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500for as_dir in $PATH
10501do
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10509 fi
10510done
10511 done
10512IFS=$as_save_IFS
10513
10514fi
10515fi
10516GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10517if test -n "$GOC_FOR_TARGET"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10519$as_echo "$GOC_FOR_TARGET" >&6; }
10520else
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522$as_echo "no" >&6; }
10523fi
10524
10525
10526 fi
10527 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10528 done
10529fi
10530
10531if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10532 set dummy gccgo
10533 if test $build = $target ; then
10534 GOC_FOR_TARGET="$2"
10535 else
10536 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10537 fi
10538else
10539 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10540fi
10541
10542
10543
2429c060
PB
10544cat > conftest.c << \EOF
10545#ifdef __GNUC__
10546 gcc_yay;
10547#endif
10548EOF
10549if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10550 have_gcc_for_target=yes
859789af 10551else
2429c060
PB
10552 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10553 have_gcc_for_target=no
859789af 10554fi
2429c060
PB
10555rm conftest.c
10556
10557
10558
859789af 10559
2429c060
PB
10560if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10561 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10563$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10564 if test -x $with_build_time_tools/ar; then
10565 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10566 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10568$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10569 else
81ecdfbb
RW
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571$as_echo "no" >&6; }
3a35eeb3 10572 fi
2429c060
PB
10573 elif test $build != $host && test $have_gcc_for_target = yes; then
10574 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10575 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10576 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10577 fi
2429c060 10578fi
c6b750e1 10579if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10580 # Extract the first word of "ar", so it can be a program name with args.
10581set dummy ar; ac_word=$2
81ecdfbb
RW
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583$as_echo_n "checking for $ac_word... " >&6; }
10584if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10585 $as_echo_n "(cached) " >&6
859789af 10586else
c6b750e1
DJ
10587 case $AR_FOR_TARGET in
10588 [\\/]* | ?:[\\/]*)
2429c060
PB
10589 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10590 ;;
2429c060 10591 *)
c6b750e1
DJ
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593for as_dir in $gcc_cv_tool_dirs
10594do
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10599 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10601 break 2
10602 fi
10603done
81ecdfbb
RW
10604 done
10605IFS=$as_save_IFS
c6b750e1 10606
2429c060
PB
10607 ;;
10608esac
859789af 10609fi
c6b750e1 10610AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10611if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10613$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10614else
81ecdfbb
RW
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616$as_echo "no" >&6; }
859789af 10617fi
05cbd757 10618
81ecdfbb 10619
2429c060
PB
10620fi
10621if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10622
10623
10624if test -n "$AR_FOR_TARGET"; then
10625 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10626elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10627 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10628fi
10629
10630if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10631 for ncn_progname in ar; do
10632 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10633set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10635$as_echo_n "checking for $ac_word... " >&6; }
10636if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10637 $as_echo_n "(cached) " >&6
9a819804
AO
10638else
10639 if test -n "$AR_FOR_TARGET"; then
10640 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10641else
10642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643for as_dir in $PATH
10644do
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10649 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10651 break 2
10652 fi
10653done
81ecdfbb
RW
10654 done
10655IFS=$as_save_IFS
9a819804
AO
10656
10657fi
10658fi
10659AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10660if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10662$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10663else
81ecdfbb
RW
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665$as_echo "no" >&6; }
9a819804
AO
10666fi
10667
81ecdfbb 10668
9a819804
AO
10669 done
10670fi
10671
10672if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10673 for ncn_progname in ar; do
81ecdfbb
RW
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10675$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10676 if test -x $with_build_time_tools/${ncn_progname}; then
10677 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10679$as_echo "yes" >&6; }
2429c060
PB
10680 break
10681 else
81ecdfbb
RW
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683$as_echo "no" >&6; }
2429c060
PB
10684 fi
10685 done
859789af
AC
10686fi
10687
2429c060
PB
10688if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10689 for ncn_progname in ar; do
10690 if test -n "$ncn_target_tool_prefix"; then
10691 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10692set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694$as_echo_n "checking for $ac_word... " >&6; }
10695if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10696 $as_echo_n "(cached) " >&6
7e0f7140 10697else
2429c060
PB
10698 if test -n "$AR_FOR_TARGET"; then
10699 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10700else
c6b750e1
DJ
10701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702for as_dir in $PATH
10703do
10704 IFS=$as_save_IFS
10705 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10706 for ac_exec_ext in '' $ac_executable_extensions; do
10707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10708 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10710 break 2
10711 fi
10712done
81ecdfbb
RW
10713 done
10714IFS=$as_save_IFS
c6b750e1 10715
7e0f7140
GK
10716fi
10717fi
c6b750e1 10718AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10719if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10721$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10722else
81ecdfbb
RW
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724$as_echo "no" >&6; }
7e0f7140
GK
10725fi
10726
81ecdfbb 10727
2429c060
PB
10728 fi
10729 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10731set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733$as_echo_n "checking for $ac_word... " >&6; }
10734if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
7e0f7140 10736else
2429c060
PB
10737 if test -n "$AR_FOR_TARGET"; then
10738 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10739else
c6b750e1
DJ
10740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741for as_dir in $PATH
10742do
10743 IFS=$as_save_IFS
10744 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10747 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10749 break 2
10750 fi
10751done
81ecdfbb
RW
10752 done
10753IFS=$as_save_IFS
c6b750e1 10754
7e0f7140
GK
10755fi
10756fi
c6b750e1 10757AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10758if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10760$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10761else
81ecdfbb
RW
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763$as_echo "no" >&6; }
7e0f7140 10764fi
c6b750e1 10765
81ecdfbb 10766
2429c060
PB
10767 fi
10768 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10769 done
10770fi
c6b750e1 10771
2429c060
PB
10772if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10773 set dummy ar
7e0f7140 10774 if test $build = $target ; then
2429c060 10775 AR_FOR_TARGET="$2"
7e0f7140 10776 else
2429c060 10777 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10778 fi
d3f5afc4
MS
10779else
10780 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10781fi
10782
3a35eeb3
PB
10783else
10784 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10785fi
10786
10787
10788
10789
10790if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10791 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10793$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10794 if test -x $with_build_time_tools/as; then
10795 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10796 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10798$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10799 else
81ecdfbb
RW
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801$as_echo "no" >&6; }
3a35eeb3 10802 fi
2429c060
PB
10803 elif test $build != $host && test $have_gcc_for_target = yes; then
10804 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10805 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10806 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10807 fi
10808fi
c6b750e1 10809if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10810 # Extract the first word of "as", so it can be a program name with args.
10811set dummy as; ac_word=$2
81ecdfbb
RW
10812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10813$as_echo_n "checking for $ac_word... " >&6; }
10814if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10815 $as_echo_n "(cached) " >&6
2429c060 10816else
c6b750e1
DJ
10817 case $AS_FOR_TARGET in
10818 [\\/]* | ?:[\\/]*)
2429c060
PB
10819 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10820 ;;
2429c060 10821 *)
c6b750e1
DJ
10822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823for as_dir in $gcc_cv_tool_dirs
10824do
10825 IFS=$as_save_IFS
10826 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10827 for ac_exec_ext in '' $ac_executable_extensions; do
10828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10829 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10831 break 2
10832 fi
10833done
81ecdfbb
RW
10834 done
10835IFS=$as_save_IFS
c6b750e1 10836
2429c060
PB
10837 ;;
10838esac
10839fi
c6b750e1 10840AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10841if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10843$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10844else
81ecdfbb
RW
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846$as_echo "no" >&6; }
2429c060
PB
10847fi
10848
81ecdfbb 10849
2429c060
PB
10850fi
10851if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10852
10853
10854if test -n "$AS_FOR_TARGET"; then
10855 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10856elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10857 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10858fi
10859
10860if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10861 for ncn_progname in as; do
10862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10863set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865$as_echo_n "checking for $ac_word... " >&6; }
10866if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
9a819804
AO
10868else
10869 if test -n "$AS_FOR_TARGET"; then
10870 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10871else
10872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873for as_dir in $PATH
10874do
10875 IFS=$as_save_IFS
10876 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10879 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10881 break 2
10882 fi
10883done
81ecdfbb
RW
10884 done
10885IFS=$as_save_IFS
9a819804
AO
10886
10887fi
10888fi
10889AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10890if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10892$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10893else
81ecdfbb
RW
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895$as_echo "no" >&6; }
9a819804
AO
10896fi
10897
81ecdfbb 10898
9a819804
AO
10899 done
10900fi
10901
10902if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10903 for ncn_progname in as; do
81ecdfbb
RW
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10905$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10906 if test -x $with_build_time_tools/${ncn_progname}; then
10907 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10909$as_echo "yes" >&6; }
2429c060
PB
10910 break
10911 else
81ecdfbb
RW
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913$as_echo "no" >&6; }
2429c060
PB
10914 fi
10915 done
10916fi
10917
10918if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10919 for ncn_progname in as; do
10920 if test -n "$ncn_target_tool_prefix"; then
10921 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10922set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924$as_echo_n "checking for $ac_word... " >&6; }
10925if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
2429c060
PB
10927else
10928 if test -n "$AS_FOR_TARGET"; then
10929 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10930else
c6b750e1
DJ
10931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932for as_dir in $PATH
10933do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10938 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10940 break 2
10941 fi
10942done
81ecdfbb
RW
10943 done
10944IFS=$as_save_IFS
c6b750e1 10945
2429c060
PB
10946fi
10947fi
c6b750e1 10948AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10949if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10951$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10952else
81ecdfbb
RW
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954$as_echo "no" >&6; }
2429c060
PB
10955fi
10956
81ecdfbb 10957
2429c060
PB
10958 fi
10959 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10961set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963$as_echo_n "checking for $ac_word... " >&6; }
10964if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10965 $as_echo_n "(cached) " >&6
2429c060
PB
10966else
10967 if test -n "$AS_FOR_TARGET"; then
10968 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10969else
c6b750e1
DJ
10970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971for as_dir in $PATH
10972do
10973 IFS=$as_save_IFS
10974 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10977 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10979 break 2
10980 fi
10981done
81ecdfbb
RW
10982 done
10983IFS=$as_save_IFS
c6b750e1 10984
2429c060
PB
10985fi
10986fi
c6b750e1 10987AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10988if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10990$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10991else
81ecdfbb
RW
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
2429c060 10994fi
c6b750e1 10995
81ecdfbb 10996
2429c060
PB
10997 fi
10998 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10999 done
11000fi
c6b750e1 11001
2429c060
PB
11002if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11003 set dummy as
11004 if test $build = $target ; then
11005 AS_FOR_TARGET="$2"
11006 else
11007 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11008 fi
d3f5afc4
MS
11009else
11010 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11011fi
11012
3a35eeb3
PB
11013else
11014 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11015fi
11016
11017
11018
11019
11020if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11021 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11023$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11024 if test -x $with_build_time_tools/dlltool; then
11025 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11026 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11028$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11029 else
81ecdfbb
RW
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031$as_echo "no" >&6; }
3a35eeb3 11032 fi
2429c060
PB
11033 elif test $build != $host && test $have_gcc_for_target = yes; then
11034 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11035 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11036 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11037 fi
11038fi
c6b750e1 11039if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11040 # Extract the first word of "dlltool", so it can be a program name with args.
11041set dummy dlltool; ac_word=$2
81ecdfbb
RW
11042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11043$as_echo_n "checking for $ac_word... " >&6; }
11044if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
2429c060 11046else
c6b750e1
DJ
11047 case $DLLTOOL_FOR_TARGET in
11048 [\\/]* | ?:[\\/]*)
2429c060
PB
11049 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11050 ;;
2429c060 11051 *)
c6b750e1
DJ
11052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053for as_dir in $gcc_cv_tool_dirs
11054do
11055 IFS=$as_save_IFS
11056 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11059 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11061 break 2
11062 fi
11063done
81ecdfbb
RW
11064 done
11065IFS=$as_save_IFS
c6b750e1 11066
2429c060
PB
11067 ;;
11068esac
11069fi
c6b750e1 11070DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11071if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11073$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11074else
81ecdfbb
RW
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076$as_echo "no" >&6; }
2429c060
PB
11077fi
11078
81ecdfbb 11079
2429c060
PB
11080fi
11081if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11082
11083
11084if test -n "$DLLTOOL_FOR_TARGET"; then
11085 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11086elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11087 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11088fi
11089
11090if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11091 for ncn_progname in dlltool; do
11092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11093set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095$as_echo_n "checking for $ac_word... " >&6; }
11096if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
9a819804
AO
11098else
11099 if test -n "$DLLTOOL_FOR_TARGET"; then
11100 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11101else
11102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103for as_dir in $PATH
11104do
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11109 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11111 break 2
11112 fi
11113done
81ecdfbb
RW
11114 done
11115IFS=$as_save_IFS
9a819804
AO
11116
11117fi
11118fi
11119DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11120if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11122$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11123else
81ecdfbb
RW
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125$as_echo "no" >&6; }
9a819804
AO
11126fi
11127
81ecdfbb 11128
9a819804
AO
11129 done
11130fi
11131
11132if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11133 for ncn_progname in dlltool; do
81ecdfbb
RW
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11135$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11136 if test -x $with_build_time_tools/${ncn_progname}; then
11137 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11139$as_echo "yes" >&6; }
2429c060
PB
11140 break
11141 else
81ecdfbb
RW
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143$as_echo "no" >&6; }
2429c060
PB
11144 fi
11145 done
11146fi
11147
11148if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11149 for ncn_progname in dlltool; do
11150 if test -n "$ncn_target_tool_prefix"; then
11151 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11152set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154$as_echo_n "checking for $ac_word... " >&6; }
11155if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11156 $as_echo_n "(cached) " >&6
2429c060
PB
11157else
11158 if test -n "$DLLTOOL_FOR_TARGET"; then
11159 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11160else
c6b750e1
DJ
11161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162for as_dir in $PATH
11163do
11164 IFS=$as_save_IFS
11165 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11168 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11170 break 2
11171 fi
11172done
81ecdfbb
RW
11173 done
11174IFS=$as_save_IFS
c6b750e1 11175
2429c060
PB
11176fi
11177fi
c6b750e1 11178DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11179if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11181$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11182else
81ecdfbb
RW
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184$as_echo "no" >&6; }
2429c060
PB
11185fi
11186
81ecdfbb 11187
2429c060
PB
11188 fi
11189 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11191set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193$as_echo_n "checking for $ac_word... " >&6; }
11194if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
2429c060
PB
11196else
11197 if test -n "$DLLTOOL_FOR_TARGET"; then
11198 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11199else
c6b750e1
DJ
11200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201for as_dir in $PATH
11202do
11203 IFS=$as_save_IFS
11204 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11207 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11209 break 2
11210 fi
11211done
81ecdfbb
RW
11212 done
11213IFS=$as_save_IFS
c6b750e1 11214
2429c060
PB
11215fi
11216fi
c6b750e1 11217DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11218if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11220$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11221else
81ecdfbb
RW
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223$as_echo "no" >&6; }
2429c060 11224fi
c6b750e1 11225
81ecdfbb 11226
2429c060
PB
11227 fi
11228 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11229 done
11230fi
c6b750e1 11231
2429c060
PB
11232if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11233 set dummy dlltool
11234 if test $build = $target ; then
11235 DLLTOOL_FOR_TARGET="$2"
11236 else
11237 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11238 fi
d3f5afc4
MS
11239else
11240 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11241fi
11242
3a35eeb3
PB
11243else
11244 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11245fi
11246
11247
11248
11249
11250if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11251 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11253$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11254 if test -x $with_build_time_tools/ld; then
11255 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11256 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11258$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11259 else
81ecdfbb
RW
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261$as_echo "no" >&6; }
3a35eeb3 11262 fi
2429c060
PB
11263 elif test $build != $host && test $have_gcc_for_target = yes; then
11264 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11265 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11266 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11267 fi
11268fi
c6b750e1 11269if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11270 # Extract the first word of "ld", so it can be a program name with args.
11271set dummy ld; ac_word=$2
81ecdfbb
RW
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11273$as_echo_n "checking for $ac_word... " >&6; }
11274if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11275 $as_echo_n "(cached) " >&6
2429c060 11276else
c6b750e1
DJ
11277 case $LD_FOR_TARGET in
11278 [\\/]* | ?:[\\/]*)
2429c060
PB
11279 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11280 ;;
2429c060 11281 *)
c6b750e1
DJ
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $gcc_cv_tool_dirs
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11289 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11291 break 2
11292 fi
11293done
81ecdfbb
RW
11294 done
11295IFS=$as_save_IFS
c6b750e1 11296
2429c060
PB
11297 ;;
11298esac
11299fi
c6b750e1 11300LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11301if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11303$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11304else
81ecdfbb
RW
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306$as_echo "no" >&6; }
2429c060
PB
11307fi
11308
81ecdfbb 11309
2429c060
PB
11310fi
11311if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11312
11313
11314if test -n "$LD_FOR_TARGET"; then
11315 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11316elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11317 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11318fi
11319
11320if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11321 for ncn_progname in ld; do
11322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11323set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11325$as_echo_n "checking for $ac_word... " >&6; }
11326if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11327 $as_echo_n "(cached) " >&6
9a819804
AO
11328else
11329 if test -n "$LD_FOR_TARGET"; then
11330 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11331else
11332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333for as_dir in $PATH
11334do
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11339 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11341 break 2
11342 fi
11343done
81ecdfbb
RW
11344 done
11345IFS=$as_save_IFS
9a819804
AO
11346
11347fi
11348fi
11349LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11350if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11352$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11353else
81ecdfbb
RW
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355$as_echo "no" >&6; }
9a819804
AO
11356fi
11357
81ecdfbb 11358
9a819804
AO
11359 done
11360fi
11361
11362if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11363 for ncn_progname in ld; do
81ecdfbb
RW
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11365$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11366 if test -x $with_build_time_tools/${ncn_progname}; then
11367 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11369$as_echo "yes" >&6; }
2429c060
PB
11370 break
11371 else
81ecdfbb
RW
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373$as_echo "no" >&6; }
2429c060
PB
11374 fi
11375 done
11376fi
11377
11378if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11379 for ncn_progname in ld; do
11380 if test -n "$ncn_target_tool_prefix"; then
11381 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11382set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384$as_echo_n "checking for $ac_word... " >&6; }
11385if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11386 $as_echo_n "(cached) " >&6
2429c060
PB
11387else
11388 if test -n "$LD_FOR_TARGET"; then
11389 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11390else
c6b750e1
DJ
11391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11398 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11400 break 2
11401 fi
11402done
81ecdfbb
RW
11403 done
11404IFS=$as_save_IFS
c6b750e1 11405
2429c060
PB
11406fi
11407fi
c6b750e1 11408LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11409if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11411$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11412else
81ecdfbb
RW
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414$as_echo "no" >&6; }
2429c060
PB
11415fi
11416
81ecdfbb 11417
2429c060
PB
11418 fi
11419 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11421set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423$as_echo_n "checking for $ac_word... " >&6; }
11424if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
2429c060
PB
11426else
11427 if test -n "$LD_FOR_TARGET"; then
11428 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11429else
c6b750e1
DJ
11430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431for as_dir in $PATH
11432do
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11435 for ac_exec_ext in '' $ac_executable_extensions; do
11436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11437 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11439 break 2
11440 fi
11441done
81ecdfbb
RW
11442 done
11443IFS=$as_save_IFS
c6b750e1 11444
2429c060
PB
11445fi
11446fi
c6b750e1 11447LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11448if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11450$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11451else
81ecdfbb
RW
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453$as_echo "no" >&6; }
2429c060 11454fi
c6b750e1 11455
81ecdfbb 11456
2429c060
PB
11457 fi
11458 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11459 done
11460fi
c6b750e1 11461
2429c060
PB
11462if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11463 set dummy ld
11464 if test $build = $target ; then
11465 LD_FOR_TARGET="$2"
11466 else
11467 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11468 fi
d3f5afc4
MS
11469else
11470 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11471fi
11472
3a35eeb3
PB
11473else
11474 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11475fi
11476
11477
11478
11479
11480if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11481 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11483$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11484 if test -x $with_build_time_tools/lipo; then
11485 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11486 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11488$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11489 else
81ecdfbb
RW
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491$as_echo "no" >&6; }
3a35eeb3 11492 fi
2429c060
PB
11493 elif test $build != $host && test $have_gcc_for_target = yes; then
11494 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11495 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11496 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11497 fi
11498fi
9a819804
AO
11499if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11500 # Extract the first word of "lipo", so it can be a program name with args.
11501set dummy lipo; ac_word=$2
81ecdfbb
RW
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503$as_echo_n "checking for $ac_word... " >&6; }
11504if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11505 $as_echo_n "(cached) " >&6
9a819804
AO
11506else
11507 case $LIPO_FOR_TARGET in
11508 [\\/]* | ?:[\\/]*)
11509 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11510 ;;
11511 *)
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $gcc_cv_tool_dirs
11514do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11519 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11521 break 2
11522 fi
11523done
81ecdfbb
RW
11524 done
11525IFS=$as_save_IFS
9a819804
AO
11526
11527 ;;
11528esac
11529fi
11530LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11531if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11533$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11534else
81ecdfbb
RW
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536$as_echo "no" >&6; }
9a819804
AO
11537fi
11538
81ecdfbb 11539
9a819804
AO
11540fi
11541if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11542
11543
11544if test -n "$LIPO_FOR_TARGET"; then
11545 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11546elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11547 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11548fi
11549
11550if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11551 for ncn_progname in lipo; do
11552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11553set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555$as_echo_n "checking for $ac_word... " >&6; }
11556if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11557 $as_echo_n "(cached) " >&6
2429c060 11558else
9a819804
AO
11559 if test -n "$LIPO_FOR_TARGET"; then
11560 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11561else
11562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563for as_dir in $PATH
c6b750e1
DJ
11564do
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11569 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11571 break 2
11572 fi
11573done
81ecdfbb
RW
11574 done
11575IFS=$as_save_IFS
c6b750e1 11576
2429c060 11577fi
9a819804
AO
11578fi
11579LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11580if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11582$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11583else
81ecdfbb
RW
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585$as_echo "no" >&6; }
2429c060
PB
11586fi
11587
81ecdfbb 11588
9a819804 11589 done
2429c060 11590fi
9a819804
AO
11591
11592if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11593 for ncn_progname in lipo; do
81ecdfbb
RW
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11595$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11596 if test -x $with_build_time_tools/${ncn_progname}; then
11597 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599$as_echo "yes" >&6; }
2429c060
PB
11600 break
11601 else
81ecdfbb
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603$as_echo "no" >&6; }
2429c060
PB
11604 fi
11605 done
11606fi
11607
11608if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11609 for ncn_progname in lipo; do
11610 if test -n "$ncn_target_tool_prefix"; then
11611 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11612set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614$as_echo_n "checking for $ac_word... " >&6; }
11615if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11616 $as_echo_n "(cached) " >&6
2429c060
PB
11617else
11618 if test -n "$LIPO_FOR_TARGET"; then
11619 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11620else
c6b750e1
DJ
11621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $PATH
11623do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11628 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11630 break 2
11631 fi
11632done
81ecdfbb
RW
11633 done
11634IFS=$as_save_IFS
c6b750e1 11635
2429c060
PB
11636fi
11637fi
c6b750e1 11638LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11639if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11641$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11642else
81ecdfbb
RW
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644$as_echo "no" >&6; }
2429c060
PB
11645fi
11646
81ecdfbb 11647
2429c060
PB
11648 fi
11649 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11651set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653$as_echo_n "checking for $ac_word... " >&6; }
11654if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
2429c060
PB
11656else
11657 if test -n "$LIPO_FOR_TARGET"; then
11658 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11659else
c6b750e1
DJ
11660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661for as_dir in $PATH
11662do
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11667 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11669 break 2
11670 fi
11671done
81ecdfbb
RW
11672 done
11673IFS=$as_save_IFS
c6b750e1 11674
2429c060
PB
11675fi
11676fi
c6b750e1 11677LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11678if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11680$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11681else
81ecdfbb
RW
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683$as_echo "no" >&6; }
2429c060 11684fi
c6b750e1 11685
81ecdfbb 11686
2429c060
PB
11687 fi
11688 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11689 done
11690fi
c6b750e1 11691
2429c060
PB
11692if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11693 set dummy lipo
11694 if test $build = $target ; then
11695 LIPO_FOR_TARGET="$2"
11696 else
11697 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11698 fi
d3f5afc4
MS
11699else
11700 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11701fi
11702
3a35eeb3
PB
11703else
11704 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11705fi
11706
11707
11708
11709
11710if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11711 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11713$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11714 if test -x $with_build_time_tools/nm; then
11715 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11716 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11718$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11719 else
81ecdfbb
RW
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721$as_echo "no" >&6; }
3a35eeb3 11722 fi
2429c060
PB
11723 elif test $build != $host && test $have_gcc_for_target = yes; then
11724 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11725 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11726 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11727 fi
11728fi
c6b750e1 11729if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11730 # Extract the first word of "nm", so it can be a program name with args.
11731set dummy nm; ac_word=$2
81ecdfbb
RW
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11733$as_echo_n "checking for $ac_word... " >&6; }
11734if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
2429c060 11736else
c6b750e1
DJ
11737 case $NM_FOR_TARGET in
11738 [\\/]* | ?:[\\/]*)
2429c060
PB
11739 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11740 ;;
2429c060 11741 *)
c6b750e1
DJ
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743for as_dir in $gcc_cv_tool_dirs
11744do
11745 IFS=$as_save_IFS
11746 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11749 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11751 break 2
11752 fi
11753done
81ecdfbb
RW
11754 done
11755IFS=$as_save_IFS
c6b750e1 11756
2429c060
PB
11757 ;;
11758esac
11759fi
c6b750e1 11760NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11761if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11763$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11764else
81ecdfbb
RW
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766$as_echo "no" >&6; }
2429c060
PB
11767fi
11768
81ecdfbb 11769
2429c060
PB
11770fi
11771if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11772
11773
11774if test -n "$NM_FOR_TARGET"; then
11775 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11776elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11777 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11778fi
11779
11780if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11781 for ncn_progname in nm; do
11782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11783set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785$as_echo_n "checking for $ac_word... " >&6; }
11786if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
9a819804
AO
11788else
11789 if test -n "$NM_FOR_TARGET"; then
11790 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11791else
11792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793for as_dir in $PATH
11794do
11795 IFS=$as_save_IFS
11796 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11797 for ac_exec_ext in '' $ac_executable_extensions; do
11798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11799 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11801 break 2
11802 fi
11803done
81ecdfbb
RW
11804 done
11805IFS=$as_save_IFS
9a819804
AO
11806
11807fi
11808fi
11809NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11810if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11812$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11813else
81ecdfbb
RW
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815$as_echo "no" >&6; }
9a819804
AO
11816fi
11817
81ecdfbb 11818
9a819804
AO
11819 done
11820fi
11821
11822if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11823 for ncn_progname in nm; do
81ecdfbb
RW
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11825$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11826 if test -x $with_build_time_tools/${ncn_progname}; then
11827 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11829$as_echo "yes" >&6; }
2429c060
PB
11830 break
11831 else
81ecdfbb
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833$as_echo "no" >&6; }
2429c060
PB
11834 fi
11835 done
11836fi
11837
11838if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11839 for ncn_progname in nm; do
11840 if test -n "$ncn_target_tool_prefix"; then
11841 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11842set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844$as_echo_n "checking for $ac_word... " >&6; }
11845if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11846 $as_echo_n "(cached) " >&6
859789af 11847else
55db4b87
PB
11848 if test -n "$NM_FOR_TARGET"; then
11849 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11850else
c6b750e1
DJ
11851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852for as_dir in $PATH
11853do
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11858 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11860 break 2
11861 fi
11862done
81ecdfbb
RW
11863 done
11864IFS=$as_save_IFS
c6b750e1 11865
859789af
AC
11866fi
11867fi
c6b750e1 11868NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11869if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11871$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11872else
81ecdfbb
RW
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874$as_echo "no" >&6; }
859789af
AC
11875fi
11876
81ecdfbb 11877
2429c060
PB
11878 fi
11879 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11881set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883$as_echo_n "checking for $ac_word... " >&6; }
11884if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
859789af 11886else
05cbd757
PB
11887 if test -n "$NM_FOR_TARGET"; then
11888 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11889else
c6b750e1
DJ
11890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891for as_dir in $PATH
11892do
11893 IFS=$as_save_IFS
11894 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11897 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11899 break 2
11900 fi
11901done
81ecdfbb
RW
11902 done
11903IFS=$as_save_IFS
c6b750e1 11904
859789af
AC
11905fi
11906fi
c6b750e1 11907NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11908if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11910$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11911else
81ecdfbb
RW
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913$as_echo "no" >&6; }
859789af 11914fi
c6b750e1 11915
81ecdfbb 11916
2429c060
PB
11917 fi
11918 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11919 done
11920fi
c6b750e1 11921
05cbd757
PB
11922if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11923 set dummy nm
11924 if test $build = $target ; then
11925 NM_FOR_TARGET="$2"
859789af 11926 else
05cbd757 11927 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11928 fi
d3f5afc4
MS
11929else
11930 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11931fi
11932
3a35eeb3
PB
11933else
11934 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11935fi
11936
11937
11938
11939
11940if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11941 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11943$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11944 if test -x $with_build_time_tools/objdump; then
11945 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11946 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11948$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 11949 else
81ecdfbb
RW
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951$as_echo "no" >&6; }
3a35eeb3 11952 fi
2429c060
PB
11953 elif test $build != $host && test $have_gcc_for_target = yes; then
11954 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
11955 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11956 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
11957 fi
11958fi
c6b750e1 11959if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11960 # Extract the first word of "objdump", so it can be a program name with args.
11961set dummy objdump; ac_word=$2
81ecdfbb
RW
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11963$as_echo_n "checking for $ac_word... " >&6; }
11964if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11965 $as_echo_n "(cached) " >&6
2429c060 11966else
c6b750e1
DJ
11967 case $OBJDUMP_FOR_TARGET in
11968 [\\/]* | ?:[\\/]*)
2429c060
PB
11969 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11970 ;;
2429c060 11971 *)
c6b750e1
DJ
11972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973for as_dir in $gcc_cv_tool_dirs
11974do
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11977 for ac_exec_ext in '' $ac_executable_extensions; do
11978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11979 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11981 break 2
11982 fi
11983done
81ecdfbb
RW
11984 done
11985IFS=$as_save_IFS
c6b750e1 11986
2429c060
PB
11987 ;;
11988esac
11989fi
c6b750e1 11990OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 11991if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11993$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 11994else
81ecdfbb
RW
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996$as_echo "no" >&6; }
2429c060
PB
11997fi
11998
81ecdfbb 11999
2429c060
PB
12000fi
12001if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12002
12003
12004if test -n "$OBJDUMP_FOR_TARGET"; then
12005 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12006elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12007 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12008fi
12009
12010if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12011 for ncn_progname in objdump; do
12012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12013set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12015$as_echo_n "checking for $ac_word... " >&6; }
12016if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
9a819804
AO
12018else
12019 if test -n "$OBJDUMP_FOR_TARGET"; then
12020 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12021else
12022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023for as_dir in $PATH
12024do
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12029 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12031 break 2
12032 fi
12033done
81ecdfbb
RW
12034 done
12035IFS=$as_save_IFS
9a819804
AO
12036
12037fi
12038fi
12039OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12040if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12042$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12043else
81ecdfbb
RW
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045$as_echo "no" >&6; }
9a819804
AO
12046fi
12047
81ecdfbb 12048
9a819804
AO
12049 done
12050fi
12051
12052if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12053 for ncn_progname in objdump; do
81ecdfbb
RW
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12055$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12056 if test -x $with_build_time_tools/${ncn_progname}; then
12057 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12059$as_echo "yes" >&6; }
2429c060
PB
12060 break
12061 else
81ecdfbb
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063$as_echo "no" >&6; }
2429c060
PB
12064 fi
12065 done
12066fi
12067
12068if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12069 for ncn_progname in objdump; do
12070 if test -n "$ncn_target_tool_prefix"; then
12071 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12072set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074$as_echo_n "checking for $ac_word... " >&6; }
12075if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
5ae72758
DJ
12077else
12078 if test -n "$OBJDUMP_FOR_TARGET"; then
12079 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12080else
c6b750e1
DJ
12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $PATH
12083do
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12088 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12090 break 2
12091 fi
12092done
81ecdfbb
RW
12093 done
12094IFS=$as_save_IFS
c6b750e1 12095
5ae72758
DJ
12096fi
12097fi
c6b750e1 12098OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12099if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12101$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12102else
81ecdfbb
RW
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104$as_echo "no" >&6; }
5ae72758
DJ
12105fi
12106
81ecdfbb 12107
2429c060
PB
12108 fi
12109 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12111set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113$as_echo_n "checking for $ac_word... " >&6; }
12114if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12115 $as_echo_n "(cached) " >&6
5ae72758
DJ
12116else
12117 if test -n "$OBJDUMP_FOR_TARGET"; then
12118 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12119else
c6b750e1
DJ
12120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121for as_dir in $PATH
12122do
12123 IFS=$as_save_IFS
12124 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12125 for ac_exec_ext in '' $ac_executable_extensions; do
12126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12127 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12129 break 2
12130 fi
12131done
81ecdfbb
RW
12132 done
12133IFS=$as_save_IFS
c6b750e1 12134
5ae72758
DJ
12135fi
12136fi
c6b750e1 12137OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12138if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12140$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12141else
81ecdfbb
RW
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143$as_echo "no" >&6; }
5ae72758 12144fi
c6b750e1 12145
81ecdfbb 12146
2429c060
PB
12147 fi
12148 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12149 done
12150fi
c6b750e1 12151
5ae72758
DJ
12152if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12153 set dummy objdump
12154 if test $build = $target ; then
12155 OBJDUMP_FOR_TARGET="$2"
12156 else
12157 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12158 fi
d3f5afc4
MS
12159else
12160 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12161fi
12162
3a35eeb3
PB
12163else
12164 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12165fi
12166
12167
12168
12169
12170if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12171 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12173$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12174 if test -x $with_build_time_tools/ranlib; then
12175 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12176 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12178$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12179 else
81ecdfbb
RW
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181$as_echo "no" >&6; }
3a35eeb3 12182 fi
2429c060
PB
12183 elif test $build != $host && test $have_gcc_for_target = yes; then
12184 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12185 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12186 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12187 fi
12188fi
c6b750e1 12189if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12190 # Extract the first word of "ranlib", so it can be a program name with args.
12191set dummy ranlib; ac_word=$2
81ecdfbb
RW
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193$as_echo_n "checking for $ac_word... " >&6; }
12194if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12195 $as_echo_n "(cached) " >&6
2429c060 12196else
c6b750e1
DJ
12197 case $RANLIB_FOR_TARGET in
12198 [\\/]* | ?:[\\/]*)
2429c060
PB
12199 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12200 ;;
2429c060 12201 *)
c6b750e1
DJ
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203for as_dir in $gcc_cv_tool_dirs
12204do
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12209 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12211 break 2
12212 fi
12213done
81ecdfbb
RW
12214 done
12215IFS=$as_save_IFS
c6b750e1 12216
2429c060
PB
12217 ;;
12218esac
12219fi
c6b750e1 12220RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12221if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12223$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12224else
81ecdfbb
RW
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226$as_echo "no" >&6; }
2429c060
PB
12227fi
12228
81ecdfbb 12229
2429c060
PB
12230fi
12231if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12232
12233
12234if test -n "$RANLIB_FOR_TARGET"; then
12235 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12236elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12237 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12238fi
12239
12240if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12241 for ncn_progname in ranlib; do
12242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12243set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245$as_echo_n "checking for $ac_word... " >&6; }
12246if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12247 $as_echo_n "(cached) " >&6
9a819804
AO
12248else
12249 if test -n "$RANLIB_FOR_TARGET"; then
12250 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12251else
12252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253for as_dir in $PATH
12254do
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12259 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12261 break 2
12262 fi
12263done
81ecdfbb
RW
12264 done
12265IFS=$as_save_IFS
9a819804
AO
12266
12267fi
12268fi
12269RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12270if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12272$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12273else
81ecdfbb
RW
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275$as_echo "no" >&6; }
9a819804
AO
12276fi
12277
81ecdfbb 12278
9a819804
AO
12279 done
12280fi
12281
12282if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12283 for ncn_progname in ranlib; do
81ecdfbb
RW
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12285$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12286 if test -x $with_build_time_tools/${ncn_progname}; then
12287 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12289$as_echo "yes" >&6; }
2429c060
PB
12290 break
12291 else
81ecdfbb
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293$as_echo "no" >&6; }
2429c060
PB
12294 fi
12295 done
12296fi
12297
12298if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12299 for ncn_progname in ranlib; do
12300 if test -n "$ncn_target_tool_prefix"; then
12301 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12302set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304$as_echo_n "checking for $ac_word... " >&6; }
12305if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12306 $as_echo_n "(cached) " >&6
859789af 12307else
55db4b87
PB
12308 if test -n "$RANLIB_FOR_TARGET"; then
12309 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12310else
c6b750e1
DJ
12311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312for as_dir in $PATH
12313do
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12318 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12320 break 2
12321 fi
12322done
81ecdfbb
RW
12323 done
12324IFS=$as_save_IFS
c6b750e1 12325
859789af
AC
12326fi
12327fi
c6b750e1 12328RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12329if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12331$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12332else
81ecdfbb
RW
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334$as_echo "no" >&6; }
859789af
AC
12335fi
12336
81ecdfbb 12337
2429c060
PB
12338 fi
12339 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12341set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343$as_echo_n "checking for $ac_word... " >&6; }
12344if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
859789af 12346else
05cbd757
PB
12347 if test -n "$RANLIB_FOR_TARGET"; then
12348 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12349else
c6b750e1
DJ
12350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351for as_dir in $PATH
12352do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12357 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12359 break 2
12360 fi
12361done
81ecdfbb
RW
12362 done
12363IFS=$as_save_IFS
c6b750e1 12364
859789af
AC
12365fi
12366fi
c6b750e1 12367RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12368if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12370$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12371else
81ecdfbb
RW
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373$as_echo "no" >&6; }
859789af 12374fi
c6b750e1 12375
81ecdfbb 12376
2429c060
PB
12377 fi
12378 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12379 done
12380fi
c6b750e1 12381
2429c060
PB
12382if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12383 set dummy ranlib
12384 if test $build = $target ; then
12385 RANLIB_FOR_TARGET="$2"
12386 else
12387 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12388 fi
d3f5afc4
MS
12389else
12390 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12391fi
05cbd757 12392
3a35eeb3
PB
12393else
12394 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12395fi
12396
2429c060
PB
12397
12398
12399
12400if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12401 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12403$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12404 if test -x $with_build_time_tools/strip; then
12405 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12406 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12408$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12409 else
81ecdfbb
RW
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411$as_echo "no" >&6; }
3a35eeb3 12412 fi
2429c060
PB
12413 elif test $build != $host && test $have_gcc_for_target = yes; then
12414 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12415 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12416 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12417 fi
12418fi
c6b750e1 12419if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12420 # Extract the first word of "strip", so it can be a program name with args.
12421set dummy strip; ac_word=$2
81ecdfbb
RW
12422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12423$as_echo_n "checking for $ac_word... " >&6; }
12424if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12425 $as_echo_n "(cached) " >&6
2429c060 12426else
c6b750e1
DJ
12427 case $STRIP_FOR_TARGET in
12428 [\\/]* | ?:[\\/]*)
2429c060
PB
12429 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12430 ;;
2429c060 12431 *)
c6b750e1
DJ
12432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433for as_dir in $gcc_cv_tool_dirs
12434do
12435 IFS=$as_save_IFS
12436 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12437 for ac_exec_ext in '' $ac_executable_extensions; do
12438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12439 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12441 break 2
12442 fi
12443done
81ecdfbb
RW
12444 done
12445IFS=$as_save_IFS
c6b750e1 12446
2429c060
PB
12447 ;;
12448esac
12449fi
c6b750e1 12450STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12451if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12453$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12454else
81ecdfbb
RW
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456$as_echo "no" >&6; }
2429c060
PB
12457fi
12458
81ecdfbb 12459
2429c060
PB
12460fi
12461if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12462
12463
12464if test -n "$STRIP_FOR_TARGET"; then
12465 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12466elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12467 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12468fi
12469
12470if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12471 for ncn_progname in strip; do
12472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12473set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12475$as_echo_n "checking for $ac_word... " >&6; }
12476if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12477 $as_echo_n "(cached) " >&6
9a819804
AO
12478else
12479 if test -n "$STRIP_FOR_TARGET"; then
12480 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12481else
12482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483for as_dir in $PATH
12484do
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12489 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12491 break 2
12492 fi
12493done
81ecdfbb
RW
12494 done
12495IFS=$as_save_IFS
9a819804
AO
12496
12497fi
12498fi
12499STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12500if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12502$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12503else
81ecdfbb
RW
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505$as_echo "no" >&6; }
9a819804
AO
12506fi
12507
81ecdfbb 12508
9a819804
AO
12509 done
12510fi
12511
12512if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12513 for ncn_progname in strip; do
81ecdfbb
RW
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12515$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12516 if test -x $with_build_time_tools/${ncn_progname}; then
12517 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12519$as_echo "yes" >&6; }
2429c060
PB
12520 break
12521 else
81ecdfbb
RW
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523$as_echo "no" >&6; }
2429c060
PB
12524 fi
12525 done
12526fi
12527
12528if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12529 for ncn_progname in strip; do
12530 if test -n "$ncn_target_tool_prefix"; then
12531 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12532set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534$as_echo_n "checking for $ac_word... " >&6; }
12535if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
7e0f7140
GK
12537else
12538 if test -n "$STRIP_FOR_TARGET"; then
12539 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12540else
12541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542for as_dir in $PATH
12543do
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12548 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12550 break 2
12551 fi
12552done
81ecdfbb
RW
12553 done
12554IFS=$as_save_IFS
c6b750e1 12555
7e0f7140
GK
12556fi
12557fi
c6b750e1 12558STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12559if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12561$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12562else
81ecdfbb
RW
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564$as_echo "no" >&6; }
7e0f7140
GK
12565fi
12566
81ecdfbb 12567
2429c060
PB
12568 fi
12569 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12571set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573$as_echo_n "checking for $ac_word... " >&6; }
12574if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12575 $as_echo_n "(cached) " >&6
7e0f7140
GK
12576else
12577 if test -n "$STRIP_FOR_TARGET"; then
12578 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12579else
c6b750e1
DJ
12580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581for as_dir in $PATH
12582do
12583 IFS=$as_save_IFS
12584 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12585 for ac_exec_ext in '' $ac_executable_extensions; do
12586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12587 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12589 break 2
12590 fi
12591done
81ecdfbb
RW
12592 done
12593IFS=$as_save_IFS
c6b750e1 12594
7e0f7140
GK
12595fi
12596fi
c6b750e1 12597STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12598if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12600$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12601else
81ecdfbb
RW
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603$as_echo "no" >&6; }
7e0f7140 12604fi
c6b750e1 12605
81ecdfbb 12606
2429c060
PB
12607 fi
12608 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12609 done
12610fi
c6b750e1 12611
7e0f7140
GK
12612if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12613 set dummy strip
12614 if test $build = $target ; then
12615 STRIP_FOR_TARGET="$2"
12616 else
12617 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12618 fi
d3f5afc4
MS
12619else
12620 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12621fi
12622
3a35eeb3
PB
12623else
12624 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12625fi
12626
12627
12628
12629
12630if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12631 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12633$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12634 if test -x $with_build_time_tools/windres; then
12635 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12636 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12638$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12639 else
81ecdfbb
RW
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12641$as_echo "no" >&6; }
3a35eeb3 12642 fi
2429c060
PB
12643 elif test $build != $host && test $have_gcc_for_target = yes; then
12644 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12645 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12646 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12647 fi
12648fi
c6b750e1 12649if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12650 # Extract the first word of "windres", so it can be a program name with args.
12651set dummy windres; ac_word=$2
81ecdfbb
RW
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653$as_echo_n "checking for $ac_word... " >&6; }
12654if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12655 $as_echo_n "(cached) " >&6
2429c060 12656else
c6b750e1
DJ
12657 case $WINDRES_FOR_TARGET in
12658 [\\/]* | ?:[\\/]*)
2429c060
PB
12659 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12660 ;;
2429c060 12661 *)
c6b750e1
DJ
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663for as_dir in $gcc_cv_tool_dirs
12664do
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12669 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12671 break 2
12672 fi
12673done
81ecdfbb
RW
12674 done
12675IFS=$as_save_IFS
c6b750e1 12676
2429c060
PB
12677 ;;
12678esac
12679fi
c6b750e1 12680WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12681if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12683$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12684else
81ecdfbb
RW
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686$as_echo "no" >&6; }
2429c060
PB
12687fi
12688
81ecdfbb 12689
2429c060
PB
12690fi
12691if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12692
12693
12694if test -n "$WINDRES_FOR_TARGET"; then
12695 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12696elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12697 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12698fi
12699
12700if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12701 for ncn_progname in windres; do
12702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12703set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705$as_echo_n "checking for $ac_word... " >&6; }
12706if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12707 $as_echo_n "(cached) " >&6
9a819804
AO
12708else
12709 if test -n "$WINDRES_FOR_TARGET"; then
12710 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12711else
12712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713for as_dir in $PATH
12714do
12715 IFS=$as_save_IFS
12716 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12717 for ac_exec_ext in '' $ac_executable_extensions; do
12718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12719 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12721 break 2
12722 fi
12723done
81ecdfbb
RW
12724 done
12725IFS=$as_save_IFS
9a819804
AO
12726
12727fi
12728fi
12729WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12730if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12732$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12733else
81ecdfbb
RW
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735$as_echo "no" >&6; }
9a819804
AO
12736fi
12737
81ecdfbb 12738
9a819804
AO
12739 done
12740fi
12741
12742if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12743 for ncn_progname in windres; do
81ecdfbb
RW
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12745$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12746 if test -x $with_build_time_tools/${ncn_progname}; then
12747 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12749$as_echo "yes" >&6; }
2429c060
PB
12750 break
12751 else
81ecdfbb
RW
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753$as_echo "no" >&6; }
2429c060
PB
12754 fi
12755 done
12756fi
12757
12758if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12759 for ncn_progname in windres; do
12760 if test -n "$ncn_target_tool_prefix"; then
12761 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12762set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12764$as_echo_n "checking for $ac_word... " >&6; }
12765if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12766 $as_echo_n "(cached) " >&6
859789af 12767else
55db4b87
PB
12768 if test -n "$WINDRES_FOR_TARGET"; then
12769 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12770else
c6b750e1
DJ
12771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772for as_dir in $PATH
12773do
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12778 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12780 break 2
12781 fi
12782done
81ecdfbb
RW
12783 done
12784IFS=$as_save_IFS
c6b750e1 12785
859789af
AC
12786fi
12787fi
c6b750e1 12788WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12789if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12791$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12792else
81ecdfbb
RW
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794$as_echo "no" >&6; }
859789af
AC
12795fi
12796
81ecdfbb 12797
2429c060
PB
12798 fi
12799 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12801set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12803$as_echo_n "checking for $ac_word... " >&6; }
12804if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
859789af 12806else
05cbd757
PB
12807 if test -n "$WINDRES_FOR_TARGET"; then
12808 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12809else
c6b750e1
DJ
12810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811for as_dir in $PATH
12812do
12813 IFS=$as_save_IFS
12814 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12815 for ac_exec_ext in '' $ac_executable_extensions; do
12816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12817 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12819 break 2
12820 fi
12821done
81ecdfbb
RW
12822 done
12823IFS=$as_save_IFS
c6b750e1 12824
859789af
AC
12825fi
12826fi
c6b750e1 12827WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12828if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12830$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12831else
81ecdfbb
RW
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833$as_echo "no" >&6; }
859789af 12834fi
c6b750e1 12835
81ecdfbb 12836
2429c060
PB
12837 fi
12838 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12839 done
12840fi
c6b750e1 12841
05cbd757
PB
12842if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12843 set dummy windres
12844 if test $build = $target ; then
12845 WINDRES_FOR_TARGET="$2"
859789af 12846 else
05cbd757 12847 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12848 fi
d3f5afc4
MS
12849else
12850 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12851fi
12852
3a35eeb3
PB
12853else
12854 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12855fi
12856
852e5f18 12857
0c24b341
NC
12858
12859
12860if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12861 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12863$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12864 if test -x $with_build_time_tools/windmc; then
12865 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12866 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12868$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12869 else
81ecdfbb
RW
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871$as_echo "no" >&6; }
0c24b341
NC
12872 fi
12873 elif test $build != $host && test $have_gcc_for_target = yes; then
12874 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12875 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12876 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12877 fi
12878fi
12879if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12880 # Extract the first word of "windmc", so it can be a program name with args.
12881set dummy windmc; ac_word=$2
81ecdfbb
RW
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12883$as_echo_n "checking for $ac_word... " >&6; }
12884if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12885 $as_echo_n "(cached) " >&6
0c24b341
NC
12886else
12887 case $WINDMC_FOR_TARGET in
12888 [\\/]* | ?:[\\/]*)
12889 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12890 ;;
12891 *)
12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893for as_dir in $gcc_cv_tool_dirs
12894do
12895 IFS=$as_save_IFS
12896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12897 for ac_exec_ext in '' $ac_executable_extensions; do
12898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12899 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12901 break 2
12902 fi
12903done
81ecdfbb
RW
12904 done
12905IFS=$as_save_IFS
0c24b341
NC
12906
12907 ;;
12908esac
12909fi
12910WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12911if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12913$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12914else
81ecdfbb
RW
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916$as_echo "no" >&6; }
0c24b341
NC
12917fi
12918
81ecdfbb 12919
0c24b341
NC
12920fi
12921if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12922
12923
12924if test -n "$WINDMC_FOR_TARGET"; then
12925 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12926elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12927 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12928fi
12929
12930if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12931 for ncn_progname in windmc; do
12932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12933set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12935$as_echo_n "checking for $ac_word... " >&6; }
12936if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
0c24b341
NC
12938else
12939 if test -n "$WINDMC_FOR_TARGET"; then
12940 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12941else
12942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943for as_dir in $PATH
12944do
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12949 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12951 break 2
12952 fi
12953done
81ecdfbb
RW
12954 done
12955IFS=$as_save_IFS
0c24b341
NC
12956
12957fi
12958fi
12959WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12960if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12962$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12963else
81ecdfbb
RW
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965$as_echo "no" >&6; }
0c24b341
NC
12966fi
12967
81ecdfbb 12968
0c24b341
NC
12969 done
12970fi
12971
12972if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12973 for ncn_progname in windmc; do
81ecdfbb
RW
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12975$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
12976 if test -x $with_build_time_tools/${ncn_progname}; then
12977 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12979$as_echo "yes" >&6; }
0c24b341
NC
12980 break
12981 else
81ecdfbb
RW
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983$as_echo "no" >&6; }
0c24b341
NC
12984 fi
12985 done
12986fi
12987
12988if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12989 for ncn_progname in windmc; do
12990 if test -n "$ncn_target_tool_prefix"; then
12991 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12992set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12994$as_echo_n "checking for $ac_word... " >&6; }
12995if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
0c24b341
NC
12997else
12998 if test -n "$WINDMC_FOR_TARGET"; then
12999 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13000else
13001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002for as_dir in $PATH
13003do
13004 IFS=$as_save_IFS
13005 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13008 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13010 break 2
13011 fi
13012done
81ecdfbb
RW
13013 done
13014IFS=$as_save_IFS
0c24b341
NC
13015
13016fi
13017fi
13018WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13019if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13021$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13022else
81ecdfbb
RW
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024$as_echo "no" >&6; }
0c24b341
NC
13025fi
13026
81ecdfbb 13027
0c24b341
NC
13028 fi
13029 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13031set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13033$as_echo_n "checking for $ac_word... " >&6; }
13034if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
0c24b341
NC
13036else
13037 if test -n "$WINDMC_FOR_TARGET"; then
13038 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13039else
13040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041for as_dir in $PATH
13042do
13043 IFS=$as_save_IFS
13044 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13045 for ac_exec_ext in '' $ac_executable_extensions; do
13046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13047 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13049 break 2
13050 fi
13051done
81ecdfbb
RW
13052 done
13053IFS=$as_save_IFS
0c24b341
NC
13054
13055fi
13056fi
13057WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13058if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13060$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13061else
81ecdfbb
RW
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063$as_echo "no" >&6; }
0c24b341
NC
13064fi
13065
81ecdfbb 13066
0c24b341
NC
13067 fi
13068 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13069 done
13070fi
13071
13072if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13073 set dummy windmc
13074 if test $build = $target ; then
13075 WINDMC_FOR_TARGET="$2"
13076 else
13077 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13078 fi
13079else
13080 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13081fi
13082
13083else
13084 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13085fi
13086
13087
be01d343
PB
13088RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13089
81ecdfbb
RW
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13091$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13092if test "x${build}" != "x${host}" ; then
2429c060
PB
13093 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13094 # We already found the complete path
b8025f34 13095 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13097$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13098 else
13099 # Canadian cross, just use what we found
81ecdfbb
RW
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13101$as_echo "pre-installed" >&6; }
2429c060 13102 fi
be01d343
PB
13103else
13104 ok=yes
13105 case " ${configdirs} " in
13106 *" binutils "*) ;;
13107 *) ok=no ;;
13108 esac
c6b750e1 13109
be01d343
PB
13110 if test $ok = yes; then
13111 # An in-tree tool is available and we can use it
13112 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13114$as_echo "just compiled" >&6; }
2429c060
PB
13115 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13116 # We already found the complete path
b8025f34 13117 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13119$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13120 elif test "x$target" = "x$host"; then
13121 # We can use an host tool
13122 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13124$as_echo "host tool" >&6; }
be01d343
PB
13125 else
13126 # We need a cross tool
81ecdfbb
RW
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13128$as_echo "pre-installed" >&6; }
be01d343
PB
13129 fi
13130fi
4b900473 13131
81ecdfbb
RW
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13133$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13134if test "x${build}" != "x${host}" ; then
2429c060
PB
13135 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13136 # We already found the complete path
b8025f34 13137 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13139$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13140 else
13141 # Canadian cross, just use what we found
81ecdfbb
RW
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13143$as_echo "pre-installed" >&6; }
2429c060 13144 fi
be01d343
PB
13145else
13146 ok=yes
13147 case " ${configdirs} " in
13148 *" gas "*) ;;
13149 *) ok=no ;;
13150 esac
c6b750e1 13151
be01d343
PB
13152 if test $ok = yes; then
13153 # An in-tree tool is available and we can use it
13154 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13156$as_echo "just compiled" >&6; }
2429c060
PB
13157 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13158 # We already found the complete path
b8025f34 13159 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13161$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13162 elif test "x$target" = "x$host"; then
13163 # We can use an host tool
13164 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13166$as_echo "host tool" >&6; }
be01d343
PB
13167 else
13168 # We need a cross tool
81ecdfbb
RW
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13170$as_echo "pre-installed" >&6; }
be01d343
PB
13171 fi
13172fi
4b900473 13173
81ecdfbb
RW
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13175$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13176if test "x${build}" != "x${host}" ; then
2429c060
PB
13177 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13178 # We already found the complete path
b8025f34 13179 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13181$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13182 else
13183 # Canadian cross, just use what we found
81ecdfbb
RW
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13185$as_echo "pre-installed" >&6; }
2429c060 13186 fi
be01d343
PB
13187else
13188 ok=yes
13189 case " ${configdirs} " in
13190 *" gcc "*) ;;
13191 *) ok=no ;;
13192 esac
c6b750e1 13193
be01d343
PB
13194 if test $ok = yes; then
13195 # An in-tree tool is available and we can use it
13196 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13198$as_echo "just compiled" >&6; }
2429c060
PB
13199 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13200 # We already found the complete path
b8025f34 13201 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13203$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13204 elif test "x$target" = "x$host"; then
13205 # We can use an host tool
13206 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13208$as_echo "host tool" >&6; }
be01d343
PB
13209 else
13210 # We need a cross tool
81ecdfbb
RW
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13212$as_echo "pre-installed" >&6; }
be01d343
PB
13213 fi
13214fi
4b900473 13215
81ecdfbb
RW
13216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13217$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13218if test "x${build}" != "x${host}" ; then
2429c060
PB
13219 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13220 # We already found the complete path
b8025f34 13221 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13223$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13224 else
13225 # Canadian cross, just use what we found
81ecdfbb
RW
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13227$as_echo "pre-installed" >&6; }
2429c060 13228 fi
be01d343
PB
13229else
13230 ok=yes
13231 case " ${configdirs} " in
13232 *" gcc "*) ;;
13233 *) ok=no ;;
13234 esac
13235 case ,${enable_languages}, in
13236 *,c++,*) ;;
13237 *) ok=no ;;
13238 esac
13239 if test $ok = yes; then
13240 # An in-tree tool is available and we can use it
87cda2cf 13241 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13243$as_echo "just compiled" >&6; }
2429c060
PB
13244 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13245 # We already found the complete path
b8025f34 13246 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13248$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13249 elif test "x$target" = "x$host"; then
13250 # We can use an host tool
13251 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13253$as_echo "host tool" >&6; }
be01d343
PB
13254 else
13255 # We need a cross tool
81ecdfbb
RW
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13257$as_echo "pre-installed" >&6; }
be01d343
PB
13258 fi
13259fi
4b900473 13260
81ecdfbb
RW
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13262$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13263if test "x${build}" != "x${host}" ; then
2429c060
PB
13264 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13265 # We already found the complete path
b8025f34 13266 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13268$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13269 else
13270 # Canadian cross, just use what we found
81ecdfbb
RW
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13272$as_echo "pre-installed" >&6; }
2429c060 13273 fi
be01d343
PB
13274else
13275 ok=yes
13276 case " ${configdirs} " in
13277 *" gcc "*) ;;
13278 *) ok=no ;;
13279 esac
13280 case ,${enable_languages}, in
13281 *,c++,*) ;;
13282 *) ok=no ;;
13283 esac
13284 if test $ok = yes; then
13285 # An in-tree tool is available and we can use it
13286 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13288$as_echo "just compiled" >&6; }
2429c060
PB
13289 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13290 # We already found the complete path
b8025f34 13291 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13293$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13294 elif test "x$target" = "x$host"; then
13295 # We can use an host tool
13296 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13298$as_echo "host tool" >&6; }
be01d343
PB
13299 else
13300 # We need a cross tool
81ecdfbb
RW
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13302$as_echo "pre-installed" >&6; }
be01d343
PB
13303 fi
13304fi
4b900473 13305
81ecdfbb
RW
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13307$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13308if test "x${build}" != "x${host}" ; then
2429c060
PB
13309 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13310 # We already found the complete path
b8025f34 13311 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13313$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13314 else
13315 # Canadian cross, just use what we found
81ecdfbb
RW
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13317$as_echo "pre-installed" >&6; }
2429c060 13318 fi
be01d343
PB
13319else
13320 ok=yes
13321 case " ${configdirs} " in
13322 *" binutils "*) ;;
13323 *) ok=no ;;
13324 esac
c6b750e1 13325
be01d343
PB
13326 if test $ok = yes; then
13327 # An in-tree tool is available and we can use it
13328 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13330$as_echo "just compiled" >&6; }
2429c060
PB
13331 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13332 # We already found the complete path
b8025f34 13333 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13335$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13336 elif test "x$target" = "x$host"; then
13337 # We can use an host tool
13338 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13340$as_echo "host tool" >&6; }
be01d343
PB
13341 else
13342 # We need a cross tool
81ecdfbb
RW
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13344$as_echo "pre-installed" >&6; }
be01d343
PB
13345 fi
13346fi
4b900473 13347
81ecdfbb
RW
13348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13349$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13350if test "x${build}" != "x${host}" ; then
2429c060
PB
13351 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13352 # We already found the complete path
b8025f34 13353 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13355$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13356 else
13357 # Canadian cross, just use what we found
81ecdfbb
RW
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13359$as_echo "pre-installed" >&6; }
2429c060 13360 fi
be01d343
PB
13361else
13362 ok=yes
13363 case " ${configdirs} " in
13364 *" gcc "*) ;;
13365 *) ok=no ;;
13366 esac
c6b750e1 13367
be01d343
PB
13368 if test $ok = yes; then
13369 # An in-tree tool is available and we can use it
13370 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13372$as_echo "just compiled" >&6; }
2429c060
PB
13373 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13374 # We already found the complete path
b8025f34 13375 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13377$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13378 elif test "x$target" = "x$host"; then
13379 # We can use an host tool
13380 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13382$as_echo "host tool" >&6; }
be01d343
PB
13383 else
13384 # We need a cross tool
81ecdfbb
RW
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13386$as_echo "pre-installed" >&6; }
be01d343
PB
13387 fi
13388fi
4b900473 13389
81ecdfbb
RW
13390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13391$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13392if test "x${build}" != "x${host}" ; then
2429c060
PB
13393 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13394 # We already found the complete path
b8025f34 13395 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13397$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13398 else
13399 # Canadian cross, just use what we found
81ecdfbb
RW
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13401$as_echo "pre-installed" >&6; }
2429c060 13402 fi
be01d343
PB
13403else
13404 ok=yes
13405 case " ${configdirs} " in
13406 *" gcc "*) ;;
13407 *) ok=no ;;
13408 esac
13409 case ,${enable_languages}, in
13410 *,java,*) ;;
13411 *) ok=no ;;
13412 esac
13413 if test $ok = yes; then
13414 # An in-tree tool is available and we can use it
13415 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13417$as_echo "just compiled" >&6; }
2429c060
PB
13418 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13419 # We already found the complete path
b8025f34 13420 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13422$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13423 elif test "x$target" = "x$host"; then
13424 # We can use an host tool
13425 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13427$as_echo "host tool" >&6; }
be01d343
PB
13428 else
13429 # We need a cross tool
81ecdfbb
RW
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13431$as_echo "pre-installed" >&6; }
be01d343
PB
13432 fi
13433fi
4b900473 13434
81ecdfbb
RW
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13436$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13437if test "x${build}" != "x${host}" ; then
2429c060
PB
13438 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13439 # We already found the complete path
b8025f34 13440 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13442$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13443 else
13444 # Canadian cross, just use what we found
81ecdfbb
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13446$as_echo "pre-installed" >&6; }
2429c060 13447 fi
be01d343
PB
13448else
13449 ok=yes
13450 case " ${configdirs} " in
13451 *" gcc "*) ;;
13452 *) ok=no ;;
13453 esac
13454 case ,${enable_languages}, in
13455 *,fortran,*) ;;
13456 *) ok=no ;;
13457 esac
13458 if test $ok = yes; then
13459 # An in-tree tool is available and we can use it
13460 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13462$as_echo "just compiled" >&6; }
2429c060
PB
13463 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13464 # We already found the complete path
b8025f34 13465 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13467$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13468 elif test "x$target" = "x$host"; then
13469 # We can use an host tool
13470 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13472$as_echo "host tool" >&6; }
be01d343
PB
13473 else
13474 # We need a cross tool
81ecdfbb
RW
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13476$as_echo "pre-installed" >&6; }
be01d343
PB
13477 fi
13478fi
4b900473 13479
e552509b
ILT
13480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13481$as_echo_n "checking where to find the target gccgo... " >&6; }
13482if test "x${build}" != "x${host}" ; then
13483 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13484 # We already found the complete path
13485 ac_dir=`dirname $GOC_FOR_TARGET`
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13487$as_echo "pre-installed in $ac_dir" >&6; }
13488 else
13489 # Canadian cross, just use what we found
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13491$as_echo "pre-installed" >&6; }
13492 fi
13493else
13494 ok=yes
13495 case " ${configdirs} " in
13496 *" gcc "*) ;;
13497 *) ok=no ;;
13498 esac
13499 case ,${enable_languages}, in
13500 *,go,*) ;;
13501 *) ok=no ;;
13502 esac
13503 if test $ok = yes; then
13504 # An in-tree tool is available and we can use it
13505 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13507$as_echo "just compiled" >&6; }
13508 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13509 # We already found the complete path
13510 ac_dir=`dirname $GOC_FOR_TARGET`
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13512$as_echo "pre-installed in $ac_dir" >&6; }
13513 elif test "x$target" = "x$host"; then
13514 # We can use an host tool
13515 GOC_FOR_TARGET='$(GOC)'
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13517$as_echo "host tool" >&6; }
13518 else
13519 # We need a cross tool
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13521$as_echo "pre-installed" >&6; }
13522 fi
13523fi
13524
81ecdfbb
RW
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13526$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13527if test "x${build}" != "x${host}" ; then
2429c060
PB
13528 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13529 # We already found the complete path
b8025f34 13530 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13532$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13533 else
13534 # Canadian cross, just use what we found
81ecdfbb
RW
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13536$as_echo "pre-installed" >&6; }
2429c060 13537 fi
be01d343
PB
13538else
13539 ok=yes
13540 case " ${configdirs} " in
13541 *" ld "*) ;;
13542 *) ok=no ;;
13543 esac
c6b750e1 13544
be01d343
PB
13545 if test $ok = yes; then
13546 # An in-tree tool is available and we can use it
13547 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13549$as_echo "just compiled" >&6; }
2429c060
PB
13550 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13551 # We already found the complete path
b8025f34 13552 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13554$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13555 elif test "x$target" = "x$host"; then
13556 # We can use an host tool
13557 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13559$as_echo "host tool" >&6; }
be01d343
PB
13560 else
13561 # We need a cross tool
81ecdfbb
RW
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13563$as_echo "pre-installed" >&6; }
be01d343
PB
13564 fi
13565fi
4b900473 13566
81ecdfbb
RW
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13568$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13569if test "x${build}" != "x${host}" ; then
2429c060
PB
13570 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13571 # We already found the complete path
b8025f34 13572 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13574$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13575 else
13576 # Canadian cross, just use what we found
81ecdfbb
RW
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13578$as_echo "pre-installed" >&6; }
2429c060 13579 fi
be01d343 13580else
2429c060
PB
13581 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13582 # We already found the complete path
b8025f34 13583 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13585$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13586 elif test "x$target" = "x$host"; then
be01d343
PB
13587 # We can use an host tool
13588 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13590$as_echo "host tool" >&6; }
be01d343
PB
13591 else
13592 # We need a cross tool
81ecdfbb
RW
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13594$as_echo "pre-installed" >&6; }
be01d343
PB
13595 fi
13596fi
4b900473 13597
81ecdfbb
RW
13598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13599$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13600if test "x${build}" != "x${host}" ; then
2429c060
PB
13601 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13602 # We already found the complete path
b8025f34 13603 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13605$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13606 else
13607 # Canadian cross, just use what we found
81ecdfbb
RW
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13609$as_echo "pre-installed" >&6; }
2429c060 13610 fi
be01d343
PB
13611else
13612 ok=yes
13613 case " ${configdirs} " in
13614 *" binutils "*) ;;
13615 *) ok=no ;;
13616 esac
c6b750e1 13617
be01d343
PB
13618 if test $ok = yes; then
13619 # An in-tree tool is available and we can use it
13620 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13622$as_echo "just compiled" >&6; }
2429c060
PB
13623 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13624 # We already found the complete path
b8025f34 13625 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13627$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13628 elif test "x$target" = "x$host"; then
13629 # We can use an host tool
13630 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13632$as_echo "host tool" >&6; }
be01d343
PB
13633 else
13634 # We need a cross tool
81ecdfbb
RW
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13636$as_echo "pre-installed" >&6; }
be01d343
PB
13637 fi
13638fi
4b900473 13639
81ecdfbb
RW
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13641$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13642if test "x${build}" != "x${host}" ; then
2429c060
PB
13643 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13644 # We already found the complete path
b8025f34 13645 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13647$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13648 else
13649 # Canadian cross, just use what we found
81ecdfbb
RW
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13651$as_echo "pre-installed" >&6; }
2429c060 13652 fi
be01d343
PB
13653else
13654 ok=yes
13655 case " ${configdirs} " in
13656 *" binutils "*) ;;
13657 *) ok=no ;;
13658 esac
c6b750e1 13659
be01d343
PB
13660 if test $ok = yes; then
13661 # An in-tree tool is available and we can use it
13662 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13664$as_echo "just compiled" >&6; }
2429c060
PB
13665 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13666 # We already found the complete path
b8025f34 13667 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13669$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13670 elif test "x$target" = "x$host"; then
13671 # We can use an host tool
13672 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13674$as_echo "host tool" >&6; }
be01d343
PB
13675 else
13676 # We need a cross tool
81ecdfbb
RW
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13678$as_echo "pre-installed" >&6; }
be01d343
PB
13679 fi
13680fi
4b900473 13681
81ecdfbb
RW
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13683$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13684if test "x${build}" != "x${host}" ; then
2429c060
PB
13685 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13686 # We already found the complete path
b8025f34 13687 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13689$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13690 else
13691 # Canadian cross, just use what we found
81ecdfbb
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13693$as_echo "pre-installed" >&6; }
2429c060 13694 fi
be01d343
PB
13695else
13696 ok=yes
13697 case " ${configdirs} " in
13698 *" binutils "*) ;;
13699 *) ok=no ;;
13700 esac
c6b750e1 13701
be01d343
PB
13702 if test $ok = yes; then
13703 # An in-tree tool is available and we can use it
13704 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13706$as_echo "just compiled" >&6; }
2429c060
PB
13707 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13708 # We already found the complete path
b8025f34 13709 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13711$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13712 elif test "x$target" = "x$host"; then
13713 # We can use an host tool
13714 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13716$as_echo "host tool" >&6; }
be01d343
PB
13717 else
13718 # We need a cross tool
81ecdfbb
RW
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13720$as_echo "pre-installed" >&6; }
be01d343
PB
13721 fi
13722fi
4b900473 13723
81ecdfbb
RW
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13725$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13726if test "x${build}" != "x${host}" ; then
2429c060
PB
13727 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13728 # We already found the complete path
b8025f34 13729 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13731$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13732 else
13733 # Canadian cross, just use what we found
81ecdfbb
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13735$as_echo "pre-installed" >&6; }
2429c060 13736 fi
be01d343
PB
13737else
13738 ok=yes
13739 case " ${configdirs} " in
13740 *" binutils "*) ;;
13741 *) ok=no ;;
13742 esac
c6b750e1 13743
be01d343
PB
13744 if test $ok = yes; then
13745 # An in-tree tool is available and we can use it
9b980aa1 13746 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13748$as_echo "just compiled" >&6; }
2429c060
PB
13749 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13750 # We already found the complete path
b8025f34 13751 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13753$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13754 elif test "x$target" = "x$host"; then
13755 # We can use an host tool
13756 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13758$as_echo "host tool" >&6; }
be01d343
PB
13759 else
13760 # We need a cross tool
81ecdfbb
RW
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13762$as_echo "pre-installed" >&6; }
be01d343
PB
13763 fi
13764fi
4b900473 13765
81ecdfbb
RW
13766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13767$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13768if test "x${build}" != "x${host}" ; then
2429c060
PB
13769 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13770 # We already found the complete path
b8025f34 13771 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13773$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13774 else
13775 # Canadian cross, just use what we found
81ecdfbb
RW
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13777$as_echo "pre-installed" >&6; }
2429c060 13778 fi
be01d343
PB
13779else
13780 ok=yes
13781 case " ${configdirs} " in
13782 *" binutils "*) ;;
13783 *) ok=no ;;
13784 esac
c6b750e1 13785
be01d343
PB
13786 if test $ok = yes; then
13787 # An in-tree tool is available and we can use it
13788 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13790$as_echo "just compiled" >&6; }
2429c060
PB
13791 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13792 # We already found the complete path
b8025f34 13793 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13795$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13796 elif test "x$target" = "x$host"; then
13797 # We can use an host tool
13798 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13800$as_echo "host tool" >&6; }
be01d343
PB
13801 else
13802 # We need a cross tool
81ecdfbb
RW
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13804$as_echo "pre-installed" >&6; }
be01d343 13805 fi
a0da8069 13806fi
54752a6b 13807
81ecdfbb
RW
13808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13809$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13810if test "x${build}" != "x${host}" ; then
13811 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13812 # We already found the complete path
13813 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13815$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13816 else
13817 # Canadian cross, just use what we found
81ecdfbb
RW
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13819$as_echo "pre-installed" >&6; }
0c24b341
NC
13820 fi
13821else
13822 ok=yes
13823 case " ${configdirs} " in
13824 *" binutils "*) ;;
13825 *) ok=no ;;
13826 esac
13827
13828 if test $ok = yes; then
13829 # An in-tree tool is available and we can use it
13830 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13832$as_echo "just compiled" >&6; }
0c24b341
NC
13833 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13834 # We already found the complete path
13835 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13837$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13838 elif test "x$target" = "x$host"; then
13839 # We can use an host tool
13840 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13842$as_echo "host tool" >&6; }
0c24b341
NC
13843 else
13844 # We need a cross tool
81ecdfbb
RW
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13846$as_echo "pre-installed" >&6; }
0c24b341
NC
13847 fi
13848fi
13849
54752a6b
NN
13850
13851
be01d343 13852
4b900473 13853
a0da8069
NN
13854# Certain tools may need extra flags.
13855AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13856RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13857NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13858
be01d343
PB
13859# When building target libraries, except in a Canadian cross, we use
13860# the same toolchain as the compiler we just built.
13861COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13862COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13863COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13864if test $host = $build; then
13865 case " $configdirs " in
13866 *" gcc "*)
13867 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13868 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13869 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13870 ;;
13871 esac
13872fi
13873
13874
13875
13876
13877
81ecdfbb
RW
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13879$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13880# Check whether --enable-maintainer-mode was given.
13881if test "${enable_maintainer_mode+set}" = set; then :
13882 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13883else
13884 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13885fi
13886
13887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13888$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13889
13890
13891if test "$USE_MAINTAINER_MODE" = yes; then
13892 MAINTAINER_MODE_TRUE=
13893 MAINTAINER_MODE_FALSE='#'
13894else
13895 MAINTAINER_MODE_TRUE='#'
13896 MAINTAINER_MODE_FALSE=
c6b750e1 13897fi
3d5e36ae
AO
13898MAINT=$MAINTAINER_MODE_TRUE
13899
1d39f329
NN
13900# ---------------------
13901# GCC bootstrap support
13902# ---------------------
13903
13904# Stage specific cflags for build.
13905stage1_cflags="-g"
13906case $build in
13907 vax-*-*)
13908 case ${GCC} in
13909 yes) stage1_cflags="-g -Wa,-J" ;;
13910 *) stage1_cflags="-g -J" ;;
13911 esac ;;
1d39f329
NN
13912esac
13913
1d89b610 13914# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 13915if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
13916 saved_CFLAGS="$CFLAGS"
13917
13918 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13919 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13921$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
13923/* end confdefs.h. */
13924
2038f525
PB
13925#if (__GNUC__ < 3) \
13926 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13927 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13928#error http://gcc.gnu.org/PR29382
13929#endif
13930
c6b750e1
DJ
13931int
13932main ()
13933{
13934
13935 ;
13936 return 0;
13937}
13938_ACEOF
81ecdfbb
RW
13939if ac_fn_c_try_compile "$LINENO"; then :
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13941$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 13942else
81ecdfbb
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944$as_echo "no" >&6; }
c6b750e1 13945fi
81ecdfbb 13946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
13947
13948 CFLAGS="$saved_CFLAGS"
13949fi
13950
13951
1d39f329 13952
8a0d8a5c 13953# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
13954# Check whether --enable-stage1-checking was given.
13955if test "${enable_stage1_checking+set}" = set; then :
13956 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 13957else
5566c1fa 13958 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 13959 stage1_checking=--enable-checking=yes,types
8a0d8a5c 13960else
5566c1fa 13961 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 13962fi
81ecdfbb 13963fi
8a0d8a5c
PB
13964
13965
c6b750e1 13966
81ecdfbb
RW
13967# Enable -Werror in bootstrap stage2 and later.
13968# Check whether --enable-werror was given.
13969if test "${enable_werror+set}" = set; then :
13970 enableval=$enable_werror;
1d39f329 13971else
a0323144 13972 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 13973 enable_werror=yes
79fcd0ec
PB
13974else
13975 enable_werror=no
13976fi
81ecdfbb
RW
13977fi
13978
1a6f2dc7
NN
13979case ${enable_werror} in
13980 yes) stage2_werror_flag="--enable-werror-always" ;;
13981 *) stage2_werror_flag="" ;;
1d39f329
NN
13982esac
13983
13984
e8a5fa9c
RW
13985# Specify what files to not compare during bootstrap.
13986
13987compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13988case "$target" in
13989 hppa*64*-*-hpux*) ;;
13990 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13991esac
1f53ca9a
AO
13992case " $configdirs " in
13993*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13994esac
e8a5fa9c
RW
13995
13996
81ecdfbb
RW
13997ac_config_files="$ac_config_files Makefile"
13998
c6b750e1 13999cat >confcache <<\_ACEOF
a0da8069
NN
14000# This file is a shell script that caches the results of configure
14001# tests run on this system so they can be shared between configure
c6b750e1
DJ
14002# scripts and configure runs, see configure's option --config-cache.
14003# It is not useful on other systems. If it contains results you don't
14004# want to keep, you may remove or edit it.
a0da8069 14005#
c6b750e1
DJ
14006# config.status only pays attention to the cache file if you give it
14007# the --recheck option to rerun configure.
a0da8069 14008#
c6b750e1
DJ
14009# `ac_cv_env_foo' variables (set or unset) will be overridden when
14010# loading this file, other *unset* `ac_cv_foo' will be assigned the
14011# following values.
14012
14013_ACEOF
14014
a0da8069
NN
14015# The following way of writing the cache mishandles newlines in values,
14016# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14017# So, we kill variables containing newlines.
a0da8069
NN
14018# Ultrix sh set writes to stderr and can't be redirected directly,
14019# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14020(
14021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14022 eval ac_val=\$$ac_var
14023 case $ac_val in #(
14024 *${as_nl}*)
14025 case $ac_var in #(
14026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14027$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14028 esac
14029 case $ac_var in #(
14030 _ | IFS | as_nl) ;; #(
14031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14032 *) { eval $ac_var=; unset $ac_var;} ;;
14033 esac ;;
14034 esac
14035 done
14036
c6b750e1 14037 (set) 2>&1 |
81ecdfbb
RW
14038 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14039 *${as_nl}ac_space=\ *)
14040 # `set' does not quote correctly, so add quotes: double-quote
14041 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14042 sed -n \
14043 "s/'/'\\\\''/g;
14044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14045 ;; #(
c6b750e1
DJ
14046 *)
14047 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14049 ;;
81ecdfbb
RW
14050 esac |
14051 sort
14052) |
c6b750e1 14053 sed '
81ecdfbb 14054 /^ac_cv_env_/b end
c6b750e1 14055 t clear
81ecdfbb 14056 :clear
c6b750e1
DJ
14057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14058 t end
81ecdfbb
RW
14059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14060 :end' >>confcache
14061if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14062 if test -w "$cache_file"; then
14063 test "x$cache_file" != "x/dev/null" &&
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14065$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14066 cat confcache >$cache_file
a0da8069 14067 else
81ecdfbb
RW
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14069$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14070 fi
852e5f18 14071fi
a0da8069 14072rm -f confcache
852e5f18 14073
a0da8069
NN
14074test "x$prefix" = xNONE && prefix=$ac_default_prefix
14075# Let make expand exec_prefix.
14076test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14077
a0da8069
NN
14078# Transform confdefs.h into DEFS.
14079# Protect against shell expansion while executing Makefile rules.
14080# Protect against Makefile macro expansion.
c6b750e1
DJ
14081#
14082# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14083# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14084# look for a macro that doesn't take arguments.
81ecdfbb
RW
14085ac_script='
14086:mline
14087/\\$/{
14088 N
14089 s,\\\n,,
14090 b mline
14091}
c6b750e1 14092t clear
81ecdfbb
RW
14093:clear
14094s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14095t quote
81ecdfbb 14096s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14097t quote
81ecdfbb
RW
14098b any
14099:quote
14100s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14101s/\[/\\&/g
14102s/\]/\\&/g
14103s/\$/$$/g
14104H
14105:any
14106${
14107 g
14108 s/^\n//
14109 s/\n/ /g
14110 p
14111}
14112'
14113DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14114
14115
14116ac_libobjs=
14117ac_ltlibobjs=
14118for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14119 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14120 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14121 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14122 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14123 # will be set to the directory where LIBOBJS objects are built.
14124 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14125 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14126done
14127LIBOBJS=$ac_libobjs
852e5f18 14128
c6b750e1 14129LTLIBOBJS=$ac_ltlibobjs
376a0e54 14130
cac3d6c4 14131
c6b750e1
DJ
14132
14133: ${CONFIG_STATUS=./config.status}
81ecdfbb 14134ac_write_fail=0
c6b750e1
DJ
14135ac_clean_files_save=$ac_clean_files
14136ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14137{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14138$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14139as_write_fail=0
14140cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14141#! $SHELL
14142# Generated by $as_me.
a0da8069 14143# Run this file to recreate the current configuration.
a0da8069 14144# Compiler output produced by configure, useful for debugging
c6b750e1 14145# configure, is in config.log if it exists.
376a0e54 14146
c6b750e1
DJ
14147debug=false
14148ac_cs_recheck=false
14149ac_cs_silent=false
c6b750e1 14150
81ecdfbb
RW
14151SHELL=\${CONFIG_SHELL-$SHELL}
14152export SHELL
14153_ASEOF
14154cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14155## -------------------- ##
14156## M4sh Initialization. ##
14157## -------------------- ##
14158
14159# Be more Bourne compatible
14160DUALCASE=1; export DUALCASE # for MKS sh
14161if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14162 emulate sh
14163 NULLCMD=:
81ecdfbb 14164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14165 # is contrary to our usage. Disable this feature.
14166 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14167 setopt NO_GLOB_SUBST
14168else
14169 case `(set -o) 2>/dev/null` in #(
14170 *posix*) :
14171 set -o posix ;; #(
14172 *) :
14173 ;;
14174esac
c6b750e1 14175fi
c6b750e1 14176
81ecdfbb
RW
14177
14178as_nl='
14179'
14180export as_nl
14181# Printing a long string crashes Solaris 7 /usr/bin/printf.
14182as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14183as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14184as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14185# Prefer a ksh shell builtin over an external printf program on Solaris,
14186# but without wasting forks for bash or zsh.
14187if test -z "$BASH_VERSION$ZSH_VERSION" \
14188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14189 as_echo='print -r --'
14190 as_echo_n='print -rn --'
14191elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14192 as_echo='printf %s\n'
14193 as_echo_n='printf %s'
14194else
14195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14197 as_echo_n='/usr/ucb/echo -n'
14198 else
14199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14200 as_echo_n_body='eval
14201 arg=$1;
14202 case $arg in #(
14203 *"$as_nl"*)
14204 expr "X$arg" : "X\\(.*\\)$as_nl";
14205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14206 esac;
14207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14208 '
14209 export as_echo_n_body
14210 as_echo_n='sh -c $as_echo_n_body as_echo'
14211 fi
14212 export as_echo_body
14213 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14214fi
14215
81ecdfbb
RW
14216# The user is always right.
14217if test "${PATH_SEPARATOR+set}" != set; then
14218 PATH_SEPARATOR=:
14219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14221 PATH_SEPARATOR=';'
14222 }
14223fi
14224
14225
14226# IFS
14227# We need space, tab and new line, in precisely that order. Quoting is
14228# there to prevent editors from complaining about space-tab.
14229# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14230# splitting by setting IFS to empty value.)
14231IFS=" "" $as_nl"
14232
14233# Find who we are. Look in the path if we contain no directory separator.
14234case $0 in #((
14235 *[\\/]* ) as_myself=$0 ;;
14236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14237for as_dir in $PATH
14238do
14239 IFS=$as_save_IFS
14240 test -z "$as_dir" && as_dir=.
14241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14242 done
14243IFS=$as_save_IFS
14244
14245 ;;
14246esac
14247# We did not find ourselves, most probably we were run as `sh COMMAND'
14248# in which case we are not to be found in the path.
14249if test "x$as_myself" = x; then
14250 as_myself=$0
14251fi
14252if test ! -f "$as_myself"; then
14253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14254 exit 1
14255fi
c6b750e1 14256
81ecdfbb
RW
14257# Unset variables that we do not need and which cause bugs (e.g. in
14258# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14259# suppresses any "Segmentation fault" message there. '((' could
14260# trigger a bug in pdksh 5.2.14.
14261for as_var in BASH_ENV ENV MAIL MAILPATH
14262do eval test x\${$as_var+set} = xset \
14263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14264done
c6b750e1
DJ
14265PS1='$ '
14266PS2='> '
14267PS4='+ '
14268
14269# NLS nuisances.
81ecdfbb
RW
14270LC_ALL=C
14271export LC_ALL
14272LANGUAGE=C
14273export LANGUAGE
14274
14275# CDPATH.
14276(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14277
14278
14279# as_fn_error ERROR [LINENO LOG_FD]
14280# ---------------------------------
14281# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14282# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14283# script with status $?, using 1 if that was 0.
14284as_fn_error ()
14285{
14286 as_status=$?; test $as_status -eq 0 && as_status=1
14287 if test "$3"; then
14288 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14290 fi
81ecdfbb
RW
14291 $as_echo "$as_me: error: $1" >&2
14292 as_fn_exit $as_status
14293} # as_fn_error
14294
14295
14296# as_fn_set_status STATUS
14297# -----------------------
14298# Set $? to STATUS, without forking.
14299as_fn_set_status ()
14300{
14301 return $1
14302} # as_fn_set_status
14303
14304# as_fn_exit STATUS
14305# -----------------
14306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14307as_fn_exit ()
14308{
14309 set +e
14310 as_fn_set_status $1
14311 exit $1
14312} # as_fn_exit
14313
14314# as_fn_unset VAR
14315# ---------------
14316# Portably unset VAR.
14317as_fn_unset ()
14318{
14319 { eval $1=; unset $1;}
14320}
14321as_unset=as_fn_unset
14322# as_fn_append VAR VALUE
14323# ----------------------
14324# Append the text in VALUE to the end of the definition contained in VAR. Take
14325# advantage of any shell optimizations that allow amortized linear growth over
14326# repeated appends, instead of the typical quadratic growth present in naive
14327# implementations.
14328if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14329 eval 'as_fn_append ()
14330 {
14331 eval $1+=\$2
14332 }'
14333else
14334 as_fn_append ()
14335 {
14336 eval $1=\$$1\$2
14337 }
14338fi # as_fn_append
14339
14340# as_fn_arith ARG...
14341# ------------------
14342# Perform arithmetic evaluation on the ARGs, and store the result in the
14343# global $as_val. Take advantage of shells that can avoid forks. The arguments
14344# must be portable across $(()) and expr.
14345if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14346 eval 'as_fn_arith ()
14347 {
14348 as_val=$(( $* ))
14349 }'
14350else
14351 as_fn_arith ()
14352 {
14353 as_val=`expr "$@" || test $? -eq 1`
14354 }
14355fi # as_fn_arith
14356
c6b750e1 14357
81ecdfbb
RW
14358if expr a : '\(a\)' >/dev/null 2>&1 &&
14359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14360 as_expr=expr
14361else
14362 as_expr=false
14363fi
14364
81ecdfbb 14365if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14366 as_basename=basename
14367else
14368 as_basename=false
14369fi
14370
81ecdfbb
RW
14371if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14372 as_dirname=dirname
14373else
14374 as_dirname=false
14375fi
c6b750e1 14376
81ecdfbb 14377as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14378$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14379 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14381$as_echo X/"$0" |
14382 sed '/^.*\/\([^/][^/]*\)\/*$/{
14383 s//\1/
14384 q
14385 }
14386 /^X\/\(\/\/\)$/{
14387 s//\1/
14388 q
14389 }
14390 /^X\/\(\/\).*/{
14391 s//\1/
14392 q
14393 }
14394 s/.*/./; q'`
c6b750e1 14395
c6b750e1
DJ
14396# Avoid depending upon Character Ranges.
14397as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14398as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14399as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14400as_cr_digits='0123456789'
14401as_cr_alnum=$as_cr_Letters$as_cr_digits
14402
81ecdfbb
RW
14403ECHO_C= ECHO_N= ECHO_T=
14404case `echo -n x` in #(((((
14405-n*)
14406 case `echo 'xy\c'` in
14407 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14408 xy) ECHO_C='\c';;
14409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14410 ECHO_T=' ';;
14411 esac;;
14412*)
14413 ECHO_N='-n';;
c6b750e1
DJ
14414esac
14415
81ecdfbb
RW
14416rm -f conf$$ conf$$.exe conf$$.file
14417if test -d conf$$.dir; then
14418 rm -f conf$$.dir/conf$$.file
c6b750e1 14419else
81ecdfbb
RW
14420 rm -f conf$$.dir
14421 mkdir conf$$.dir 2>/dev/null
c6b750e1 14422fi
81ecdfbb
RW
14423if (echo >conf$$.file) 2>/dev/null; then
14424 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14425 as_ln_s='ln -s'
81ecdfbb
RW
14426 # ... but there are two gotchas:
14427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14429 # In both cases, we have to default to `cp -p'.
14430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14431 as_ln_s='cp -p'
14432 elif ln conf$$.file conf$$ 2>/dev/null; then
14433 as_ln_s=ln
14434 else
14435 as_ln_s='cp -p'
c6b750e1 14436 fi
c6b750e1
DJ
14437else
14438 as_ln_s='cp -p'
14439fi
81ecdfbb
RW
14440rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14441rmdir conf$$.dir 2>/dev/null
14442
14443
14444# as_fn_mkdir_p
14445# -------------
14446# Create "$as_dir" as a directory, including parents if necessary.
14447as_fn_mkdir_p ()
14448{
14449
14450 case $as_dir in #(
14451 -*) as_dir=./$as_dir;;
14452 esac
14453 test -d "$as_dir" || eval $as_mkdir_p || {
14454 as_dirs=
14455 while :; do
14456 case $as_dir in #(
14457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14458 *) as_qdir=$as_dir;;
14459 esac
14460 as_dirs="'$as_qdir' $as_dirs"
14461 as_dir=`$as_dirname -- "$as_dir" ||
14462$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14463 X"$as_dir" : 'X\(//\)[^/]' \| \
14464 X"$as_dir" : 'X\(//\)$' \| \
14465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14466$as_echo X"$as_dir" |
14467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14468 s//\1/
14469 q
14470 }
14471 /^X\(\/\/\)[^/].*/{
14472 s//\1/
14473 q
14474 }
14475 /^X\(\/\/\)$/{
14476 s//\1/
14477 q
14478 }
14479 /^X\(\/\).*/{
14480 s//\1/
14481 q
14482 }
14483 s/.*/./; q'`
14484 test -d "$as_dir" && break
14485 done
14486 test -z "$as_dirs" || eval "mkdir $as_dirs"
14487 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14488
c6b750e1 14489
81ecdfbb 14490} # as_fn_mkdir_p
c6b750e1 14491if mkdir -p . 2>/dev/null; then
81ecdfbb 14492 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14493else
14494 test -d ./-p && rmdir ./-p
14495 as_mkdir_p=false
14496fi
14497
81ecdfbb
RW
14498if test -x / >/dev/null 2>&1; then
14499 as_test_x='test -x'
14500else
14501 if ls -dL / >/dev/null 2>&1; then
14502 as_ls_L_option=L
14503 else
14504 as_ls_L_option=
14505 fi
14506 as_test_x='
14507 eval sh -c '\''
14508 if test -d "$1"; then
14509 test -d "$1/.";
14510 else
14511 case $1 in #(
14512 -*)set "./$1";;
14513 esac;
14514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14515 ???[sx]*):;;*)false;;esac;fi
14516 '\'' sh
14517 '
14518fi
14519as_executable_p=$as_test_x
c6b750e1
DJ
14520
14521# Sed expression to map a string onto a valid CPP name.
14522as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14523
14524# Sed expression to map a string onto a valid variable name.
14525as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14526
14527
c6b750e1 14528exec 6>&1
81ecdfbb
RW
14529## ----------------------------------- ##
14530## Main body of $CONFIG_STATUS script. ##
14531## ----------------------------------- ##
14532_ASEOF
14533test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14534
14535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14536# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14537# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14538# values after options handling.
14539ac_log="
c6b750e1 14540This file was extended by $as_me, which was
81ecdfbb 14541generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14542
14543 CONFIG_FILES = $CONFIG_FILES
14544 CONFIG_HEADERS = $CONFIG_HEADERS
14545 CONFIG_LINKS = $CONFIG_LINKS
14546 CONFIG_COMMANDS = $CONFIG_COMMANDS
14547 $ $0 $@
14548
81ecdfbb
RW
14549on `(hostname || uname -n) 2>/dev/null | sed 1q`
14550"
14551
c6b750e1
DJ
14552_ACEOF
14553
81ecdfbb
RW
14554case $ac_config_files in *"
14555"*) set x $ac_config_files; shift; ac_config_files=$*;;
14556esac
c6b750e1 14557
c6b750e1 14558
c6b750e1 14559
81ecdfbb
RW
14560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14561# Files that config.status was made for.
14562config_files="$ac_config_files"
c6b750e1 14563
81ecdfbb 14564_ACEOF
c6b750e1 14565
81ecdfbb 14566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14567ac_cs_usage="\
81ecdfbb
RW
14568\`$as_me' instantiates files and other configuration actions
14569from templates according to the current configuration. Unless the files
14570and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14571
81ecdfbb 14572Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14573
14574 -h, --help print this help, then exit
81ecdfbb
RW
14575 -V, --version print version number and configuration settings, then exit
14576 -q, --quiet, --silent
14577 do not print progress messages
c6b750e1
DJ
14578 -d, --debug don't remove temporary files
14579 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14580 --file=FILE[:TEMPLATE]
14581 instantiate the configuration file FILE
c6b750e1
DJ
14582
14583Configuration files:
14584$config_files
14585
81ecdfbb 14586Report bugs to the package provider."
c6b750e1 14587
81ecdfbb
RW
14588_ACEOF
14589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14590ac_cs_version="\\
14591config.status
81ecdfbb
RW
14592configured by $0, generated by GNU Autoconf 2.64,
14593 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14594
81ecdfbb 14595Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14596This config.status script is free software; the Free Software Foundation
14597gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14598
14599ac_pwd='$ac_pwd'
14600srcdir='$srcdir'
14601INSTALL='$INSTALL'
8e957354 14602AWK='$AWK'
81ecdfbb 14603test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14604_ACEOF
14605
81ecdfbb
RW
14606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14607# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14608ac_need_defaults=:
14609while test $# != 0
a0da8069 14610do
c6b750e1
DJ
14611 case $1 in
14612 --*=*)
81ecdfbb
RW
14613 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14614 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14615 ac_shift=:
14616 ;;
81ecdfbb 14617 *)
c6b750e1
DJ
14618 ac_option=$1
14619 ac_optarg=$2
14620 ac_shift=shift
14621 ;;
c6b750e1
DJ
14622 esac
14623
14624 case $ac_option in
14625 # Handling of the options.
a0da8069 14626 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14627 ac_cs_recheck=: ;;
81ecdfbb
RW
14628 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14629 $as_echo "$ac_cs_version"; exit ;;
14630 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14631 debug=: ;;
14632 --file | --fil | --fi | --f )
14633 $ac_shift
81ecdfbb
RW
14634 case $ac_optarg in
14635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14636 esac
14637 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14638 ac_need_defaults=false;;
81ecdfbb
RW
14639 --he | --h | --help | --hel | -h )
14640 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14642 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14643 ac_cs_silent=: ;;
14644
14645 # This is an error.
81ecdfbb
RW
14646 -*) as_fn_error "unrecognized option: \`$1'
14647Try \`$0 --help' for more information." ;;
c6b750e1 14648
81ecdfbb
RW
14649 *) as_fn_append ac_config_targets " $1"
14650 ac_need_defaults=false ;;
c6b750e1 14651
376a0e54 14652 esac
c6b750e1 14653 shift
376a0e54
CM
14654done
14655
c6b750e1 14656ac_configure_extra_args=
376a0e54 14657
c6b750e1
DJ
14658if $ac_cs_silent; then
14659 exec 6>/dev/null
14660 ac_configure_extra_args="$ac_configure_extra_args --silent"
14661fi
376a0e54 14662
c6b750e1 14663_ACEOF
81ecdfbb 14664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14665if \$ac_cs_recheck; then
81ecdfbb
RW
14666 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14667 shift
14668 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14669 CONFIG_SHELL='$SHELL'
14670 export CONFIG_SHELL
14671 exec "\$@"
c6b750e1
DJ
14672fi
14673
14674_ACEOF
81ecdfbb
RW
14675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14676exec 5>>config.log
14677{
14678 echo
14679 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14680## Running $as_me. ##
14681_ASBOX
14682 $as_echo "$ac_log"
14683} >&5
c6b750e1 14684
81ecdfbb
RW
14685_ACEOF
14686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14687#
14688# INIT-COMMANDS
14689#
14690extrasub_build="$extrasub_build"
14691 extrasub_host="$extrasub_host"
14692 extrasub_target="$extrasub_target"
14693
81ecdfbb 14694_ACEOF
c6b750e1 14695
81ecdfbb 14696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14697
81ecdfbb 14698# Handling of arguments.
c6b750e1
DJ
14699for ac_config_target in $ac_config_targets
14700do
81ecdfbb
RW
14701 case $ac_config_target in
14702 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14703
14704 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14705 esac
14706done
14707
81ecdfbb 14708
c6b750e1
DJ
14709# If the user did not use the arguments to specify the items to instantiate,
14710# then the envvar interface is used. Set only those that are not.
14711# We use the long form for the default assignment because of an extremely
14712# bizarre bug on SunOS 4.1.3.
14713if $ac_need_defaults; then
14714 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14715fi
14716
14717# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14718# simply because there is no reason against having it here, and in addition,
c6b750e1 14719# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14720# Hook for its removal unless debugging.
14721# Note that there is a small window in which the directory will not be cleaned:
14722# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14723$debug ||
14724{
81ecdfbb
RW
14725 tmp=
14726 trap 'exit_status=$?
14727 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14728' 0
14729 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14730}
c6b750e1
DJ
14731# Create a (secure) tmp directory for tmp files.
14732
14733{
81ecdfbb 14734 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14735 test -n "$tmp" && test -d "$tmp"
14736} ||
14737{
81ecdfbb
RW
14738 tmp=./conf$$-$RANDOM
14739 (umask 077 && mkdir "$tmp")
14740} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14741
14742# Set up the scripts for CONFIG_FILES section.
14743# No need to generate them if there are no CONFIG_FILES.
14744# This happens for instance with `./config.status config.h'.
14745if test -n "$CONFIG_FILES"; then
14746
14747if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14748 ac_cs_awk_getline=:
14749 ac_cs_awk_pipe_init=
14750 ac_cs_awk_read_file='
14751 while ((getline aline < (F[key])) > 0)
14752 print(aline)
14753 close(F[key])'
14754 ac_cs_awk_pipe_fini=
14755else
14756 ac_cs_awk_getline=false
14757 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14758 ac_cs_awk_read_file='
14759 print "|#_!!_#|"
14760 print "cat " F[key] " &&"
14761 '$ac_cs_awk_pipe_init
14762 # The final `:' finishes the AND list.
14763 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14764fi
14765ac_cr=`echo X | tr X '\015'`
14766# On cygwin, bash can eat \r inside `` if the user requested igncr.
14767# But we know of no other shell where ac_cr would be empty at this
14768# point, so we can use a bashism as a fallback.
14769if test "x$ac_cr" = x; then
14770 eval ac_cr=\$\'\\r\'
14771fi
14772ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14773if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14774 ac_cs_awk_cr='\r'
14775else
14776 ac_cs_awk_cr=$ac_cr
14777fi
14778
14779echo 'BEGIN {' >"$tmp/subs1.awk" &&
14780_ACEOF
14781
14782# Create commands to substitute file output variables.
c6b750e1 14783{
81ecdfbb
RW
14784 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14785 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14786 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14787 echo "_ACAWK" &&
14788 echo "_ACEOF"
14789} >conf$$files.sh &&
14790. ./conf$$files.sh ||
14791 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14792rm -f conf$$files.sh
c6b750e1 14793
81ecdfbb
RW
14794{
14795 echo "cat >conf$$subs.awk <<_ACEOF" &&
14796 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14797 echo "_ACEOF"
14798} >conf$$subs.sh ||
14799 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14800ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14801ac_delim='%!_!# '
14802for ac_last_try in false false false false false :; do
14803 . ./conf$$subs.sh ||
14804 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14805
14806 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14807 if test $ac_delim_n = $ac_delim_num; then
14808 break
14809 elif $ac_last_try; then
14810 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14811 else
14812 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14813 fi
14814done
14815rm -f conf$$subs.sh
14816
14817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14818cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14819_ACEOF
81ecdfbb
RW
14820sed -n '
14821h
14822s/^/S["/; s/!.*/"]=/
14823p
14824g
14825s/^[^!]*!//
14826:repl
14827t repl
14828s/'"$ac_delim"'$//
14829t delim
14830:nl
14831h
14832s/\(.\{148\}\).*/\1/
14833t more1
14834s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14835p
14836n
14837b repl
14838:more1
14839s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14840p
14841g
14842s/.\{148\}//
14843t nl
14844:delim
14845h
14846s/\(.\{148\}\).*/\1/
14847t more2
14848s/["\\]/\\&/g; s/^/"/; s/$/"/
14849p
14850b
14851:more2
14852s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14853p
14854g
14855s/.\{148\}//
14856t delim
14857' <conf$$subs.awk | sed '
14858/^[^""]/{
14859 N
14860 s/\n//
14861}
14862' >>$CONFIG_STATUS || ac_write_fail=1
14863rm -f conf$$subs.awk
14864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14865_ACAWK
14866cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14867 for (key in S) S_is_set[key] = 1
14868 FS = "\a"
14869 \$ac_cs_awk_pipe_init
14870}
14871{
14872 line = $ 0
14873 nfields = split(line, field, "@")
14874 substed = 0
14875 len = length(field[1])
14876 for (i = 2; i < nfields; i++) {
14877 key = field[i]
14878 keylen = length(key)
14879 if (S_is_set[key]) {
14880 value = S[key]
14881 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14882 len += length(value) + length(field[++i])
14883 substed = 1
14884 } else
14885 len += 1 + keylen
14886 }
14887 if (nfields == 3 && !substed) {
14888 key = field[2]
14889 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14890 \$ac_cs_awk_read_file
14891 next
14892 }
14893 }
14894 print line
14895}
14896\$ac_cs_awk_pipe_fini
14897_ACAWK
14898_ACEOF
14899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14900if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14901 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14902else
14903 cat
14904fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14905 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14906_ACEOF
14907
14908# VPATH may cause trouble with some makes, so we remove $(srcdir),
14909# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14910# trailing colons and then remove the whole line if VPATH becomes empty
14911# (actually we leave an empty line to preserve line numbers).
14912if test "x$srcdir" = x.; then
14913 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14914s/:*\$(srcdir):*/:/
14915s/:*\${srcdir}:*/:/
14916s/:*@srcdir@:*/:/
14917s/^\([^=]*=[ ]*\):*/\1/
14918s/:*$//
14919s/^[^=]*=[ ]*$//
14920}'
14921fi
c6b750e1 14922
81ecdfbb
RW
14923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14924fi # test -n "$CONFIG_FILES"
c6b750e1 14925
c6b750e1 14926
81ecdfbb
RW
14927eval set X " :F $CONFIG_FILES "
14928shift
14929for ac_tag
14930do
14931 case $ac_tag in
14932 :[FHLC]) ac_mode=$ac_tag; continue;;
14933 esac
14934 case $ac_mode$ac_tag in
14935 :[FHL]*:*);;
14936 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14937 :[FH]-) ac_tag=-:-;;
14938 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14939 esac
14940 ac_save_IFS=$IFS
14941 IFS=:
14942 set x $ac_tag
14943 IFS=$ac_save_IFS
14944 shift
14945 ac_file=$1
14946 shift
252b5132 14947
81ecdfbb
RW
14948 case $ac_mode in
14949 :L) ac_source=$1;;
14950 :[FH])
14951 ac_file_inputs=
14952 for ac_f
14953 do
14954 case $ac_f in
14955 -) ac_f="$tmp/stdin";;
14956 *) # Look for the file first in the build tree, then in the source tree
14957 # (if the path is not absolute). The absolute path cannot be DOS-style,
14958 # because $ac_f cannot contain `:'.
14959 test -f "$ac_f" ||
14960 case $ac_f in
14961 [\\/$]*) false;;
14962 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14963 esac ||
14964 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14965 esac
14966 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14967 as_fn_append ac_file_inputs " '$ac_f'"
14968 done
c6b750e1 14969
81ecdfbb
RW
14970 # Let's still pretend it is `configure' which instantiates (i.e., don't
14971 # use $as_me), people would be surprised to read:
14972 # /* config.h. Generated by config.status. */
14973 configure_input='Generated from '`
14974 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14975 `' by configure.'
14976 if test x"$ac_file" != x-; then
14977 configure_input="$ac_file. $configure_input"
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14979$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 14980 fi
81ecdfbb
RW
14981 # Neutralize special characters interpreted by sed in replacement strings.
14982 case $configure_input in #(
14983 *\&* | *\|* | *\\* )
14984 ac_sed_conf_input=`$as_echo "$configure_input" |
14985 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14986 *) ac_sed_conf_input=$configure_input;;
14987 esac
cac3d6c4 14988
81ecdfbb
RW
14989 case $ac_tag in
14990 *:-:* | *:-) cat >"$tmp/stdin" \
14991 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14992 esac
14993 ;;
a0da8069 14994 esac
252b5132 14995
81ecdfbb 14996 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
14997$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14998 X"$ac_file" : 'X\(//\)[^/]' \| \
14999 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15000 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15001$as_echo X"$ac_file" |
15002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15003 s//\1/
15004 q
15005 }
15006 /^X\(\/\/\)[^/].*/{
15007 s//\1/
15008 q
15009 }
15010 /^X\(\/\/\)$/{
15011 s//\1/
15012 q
15013 }
15014 /^X\(\/\).*/{
15015 s//\1/
15016 q
15017 }
15018 s/.*/./; q'`
15019 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15020 ac_builddir=.
252b5132 15021
81ecdfbb
RW
15022case "$ac_dir" in
15023.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15024*)
15025 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15026 # A ".." for each directory in $ac_dir_suffix.
15027 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15028 case $ac_top_builddir_sub in
15029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15031 esac ;;
15032esac
15033ac_abs_top_builddir=$ac_pwd
15034ac_abs_builddir=$ac_pwd$ac_dir_suffix
15035# for backward compatibility:
15036ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15037
15038case $srcdir in
81ecdfbb 15039 .) # We are building in place.
c6b750e1 15040 ac_srcdir=.
81ecdfbb
RW
15041 ac_top_srcdir=$ac_top_builddir_sub
15042 ac_abs_top_srcdir=$ac_pwd ;;
15043 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15044 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15045 ac_top_srcdir=$srcdir
15046 ac_abs_top_srcdir=$srcdir ;;
15047 *) # Relative name.
15048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15049 ac_top_srcdir=$ac_top_build_prefix$srcdir
15050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15051esac
81ecdfbb 15052ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15053
252b5132 15054
81ecdfbb
RW
15055 case $ac_mode in
15056 :F)
15057 #
15058 # CONFIG_FILE
15059 #
c6b750e1
DJ
15060
15061 case $INSTALL in
15062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15063 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15064 esac
81ecdfbb 15065_ACEOF
252b5132 15066
81ecdfbb
RW
15067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15068# If the template does not know about datarootdir, expand it.
15069# FIXME: This hack should be removed a few years after 2.60.
15070ac_datarootdir_hack=; ac_datarootdir_seen=
15071ac_sed_dataroot='
15072/datarootdir/ {
15073 p
15074 q
15075}
15076/@datadir@/p
15077/@docdir@/p
15078/@infodir@/p
15079/@localedir@/p
15080/@mandir@/p'
15081case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15082*datarootdir*) ac_datarootdir_seen=yes;;
15083*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15085$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15086_ACEOF
81ecdfbb
RW
15087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15088 ac_datarootdir_hack='
15089 s&@datadir@&$datadir&g
15090 s&@docdir@&$docdir&g
15091 s&@infodir@&$infodir&g
15092 s&@localedir@&$localedir&g
15093 s&@mandir@&$mandir&g
15094 s&\\\${datarootdir}&$datarootdir&g' ;;
15095esac
15096_ACEOF
15097
15098# Neutralize VPATH when `$srcdir' = `.'.
15099# Shell code in configure.ac might set extrasub.
15100# FIXME: do we really want to maintain this feature?
15101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15102ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15103$extrasub
15104_ACEOF
81ecdfbb 15105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15106:t
15107/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15108s|@configure_input@|$ac_sed_conf_input|;t t
15109s&@top_builddir@&$ac_top_builddir_sub&;t t
15110s&@top_build_prefix@&$ac_top_build_prefix&;t t
15111s&@srcdir@&$ac_srcdir&;t t
15112s&@abs_srcdir@&$ac_abs_srcdir&;t t
15113s&@top_srcdir@&$ac_top_srcdir&;t t
15114s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15115s&@builddir@&$ac_builddir&;t t
15116s&@abs_builddir@&$ac_abs_builddir&;t t
15117s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15118s&@INSTALL@&$ac_INSTALL&;t t
15119$ac_datarootdir_hack
15120"
15121eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15122if $ac_cs_awk_getline; then
15123 $AWK -f "$tmp/subs.awk"
15124else
15125 $AWK -f "$tmp/subs.awk" | $SHELL
15126fi >$tmp/out \
15127 || as_fn_error "could not create $ac_file" "$LINENO" 5
15128
15129test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15130 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15131 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15133which seems to be undefined. Please make sure it is defined." >&5
15134$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15135which seems to be undefined. Please make sure it is defined." >&2;}
15136
15137 rm -f "$tmp/stdin"
15138 case $ac_file in
15139 -) cat "$tmp/out" && rm -f "$tmp/out";;
15140 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15141 esac \
15142 || as_fn_error "could not create $ac_file" "$LINENO" 5
15143 ;;
c148b4cb 15144
c148b4cb 15145
c148b4cb 15146
81ecdfbb
RW
15147 esac
15148
06a51eac
RW
15149
15150 case $ac_file$ac_mode in
15151 "Makefile":F) sed "$extrasub_build" Makefile |
15152 sed "$extrasub_host" |
15153 sed "$extrasub_target" > mf$$
15154 mv -f mf$$ Makefile ;;
15155
15156 esac
81ecdfbb
RW
15157done # for ac_tag
15158
15159
15160as_fn_exit 0
c6b750e1 15161_ACEOF
c6b750e1
DJ
15162ac_clean_files=$ac_clean_files_save
15163
81ecdfbb
RW
15164test $ac_write_fail = 0 ||
15165 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15166
c6b750e1
DJ
15167
15168# configure is writing to config.log, and then calls config.status.
15169# config.status does its own redirection, appending to config.log.
15170# Unfortunately, on DOS this fails, as config.log is still kept open
15171# by configure, so config.status won't be able to write to it; its
15172# output is simply discarded. So we exec the FD to /dev/null,
15173# effectively closing config.log, so it can be properly (re)opened and
15174# appended to by config.status. When coming back to configure, we
15175# need to make the FD available again.
15176if test "$no_create" != yes; then
15177 ac_cs_success=:
15178 ac_config_status_args=
15179 test "$silent" = yes &&
15180 ac_config_status_args="$ac_config_status_args --quiet"
15181 exec 5>/dev/null
15182 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15183 exec 5>>config.log
15184 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15185 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15186 $ac_cs_success || as_fn_exit $?
15187fi
15188if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15190$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15191fi
c148b4cb 15192
This page took 1.536529 seconds and 4 git commands to generate.