Also mark ELF solib trampoline minimal symbols special
[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
82033c9b 559host_shared
81ecdfbb
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
b121d7d4 574READELF_FOR_TARGET
81ecdfbb
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
577NM_FOR_TARGET
578LIPO_FOR_TARGET
579LD_FOR_TARGET
580DLLTOOL_FOR_TARGET
581AS_FOR_TARGET
582AR_FOR_TARGET
e552509b 583GOC_FOR_TARGET
81ecdfbb
RW
584GFORTRAN_FOR_TARGET
585GCJ_FOR_TARGET
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
b121d7d4 589READELF
81ecdfbb
RW
590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
81ecdfbb
RW
610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
e552509b 616GOC_FOR_BUILD
81ecdfbb
RW
617GFORTRAN_FOR_BUILD
618GCJ_FOR_BUILD
619DLLTOOL_FOR_BUILD
620CXX_FOR_BUILD
621CXXFLAGS_FOR_BUILD
622CFLAGS_FOR_BUILD
623CC_FOR_BUILD
624AS_FOR_BUILD
625AR_FOR_BUILD
911e63d0 626target_configdirs
81ecdfbb 627configdirs
81ecdfbb 628build_configdirs
81ecdfbb
RW
629INSTALL_GDB_TK
630GDB_TK
631CONFIGURE_GDB_TK
632build_tooldir
633tooldir
634GCC_SHLIB_SUBDIR
635RPATH_ENVVAR
4074d5f2
RW
636target_configargs
637host_configargs
638build_configargs
96655cc4 639BUILD_CONFIG
91c1f14c 640LDFLAGS_FOR_TARGET
81ecdfbb
RW
641CXXFLAGS_FOR_TARGET
642CFLAGS_FOR_TARGET
643DEBUG_PREFIX_CFLAGS_FOR_TARGET
644SYSROOT_CFLAGS_FOR_TARGET
645stage1_languages
700d40ca 646extra_host_libiberty_configure_flags
81ecdfbb
RW
647clooginc
648clooglibs
7ec59b9e 649islinc
81ecdfbb 650poststage1_ldflags
143754cd 651poststage1_libs
81ecdfbb 652stage1_ldflags
b3676d82 653stage1_libs
7ec59b9e 654extra_isl_gmp_configure_flags
81ecdfbb
RW
655extra_mpc_mpfr_configure_flags
656extra_mpc_gmp_configure_flags
657extra_mpfr_configure_flags
658gmpinc
659gmplibs
660do_compare
661GNATMAKE
662GNATBIND
663ac_ct_CXX
664CXXFLAGS
665CXX
666OBJEXT
667EXEEXT
668ac_ct_CC
669CPPFLAGS
670LDFLAGS
671CFLAGS
672CC
ffdd6afc 673EXTRA_CONFIGARGS_LIBJAVA
81ecdfbb
RW
674target_subdir
675host_subdir
676build_subdir
677build_libsubdir
8e957354
PB
678AWK
679SED
81ecdfbb
RW
680LN_S
681LN
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693target_noncanonical
694host_noncanonical
695build_noncanonical
696build_os
697build_vendor
698build_cpu
699build
700TOPLEVEL_CONFIGURE_ARGUMENTS
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files='serialization_dependencies
740host_makefile_frag
741target_makefile_frag
742alphaieee_frag
743ospace_frag'
744ac_user_opts='
745enable_option_checking
746with_build_libsubdir
747enable_gold
c7791212 748enable_ld
89a1e9c3
PB
749enable_libquadmath
750enable_libquadmath_support
81ecdfbb
RW
751enable_libada
752enable_libssp
f66a9a70 753enable_libstdcxx
ffdd6afc
ILT
754enable_static_libjava
755enable_bootstrap
81ecdfbb
RW
756with_mpc
757with_mpc_include
758with_mpc_lib
759with_mpfr_dir
760with_mpfr
761with_mpfr_include
762with_mpfr_lib
763with_gmp_dir
764with_gmp
765with_gmp_include
766with_gmp_lib
767with_host_libstdcxx
81ecdfbb 768with_stage1_libs
b3676d82 769with_stage1_ldflags
81ecdfbb 770with_boot_libs
143754cd 771with_boot_ldflags
8e71395b 772with_cloog
7ec59b9e
L
773with_isl
774with_isl_include
775with_isl_lib
776enable_isl_version_check
81ecdfbb
RW
777with_cloog_include
778with_cloog_lib
779enable_cloog_version_check
700d40ca 780enable_lto
81ecdfbb
RW
781enable_stage1_languages
782enable_objc_gc
783with_build_sysroot
784with_debug_prefix_map
96655cc4 785with_build_config
730af8ee 786enable_vtable_verify
81ecdfbb
RW
787enable_serial_configure
788with_build_time_tools
789enable_maintainer_mode
790enable_stage1_checking
791enable_werror
82033c9b 792enable_host_shared
81ecdfbb
RW
793'
794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
802CXX
803CXXFLAGS
804CCC
4074d5f2
RW
805build_configargs
806host_configargs
807target_configargs
81ecdfbb
RW
808AR
809AS
810DLLTOOL
811LD
812LIPO
813NM
814RANLIB
815STRIP
816WINDRES
817WINDMC
818OBJCOPY
819OBJDUMP
b121d7d4 820READELF
81ecdfbb
RW
821CC_FOR_TARGET
822CXX_FOR_TARGET
823GCC_FOR_TARGET
824GCJ_FOR_TARGET
825GFORTRAN_FOR_TARGET
e552509b 826GOC_FOR_TARGET
81ecdfbb
RW
827AR_FOR_TARGET
828AS_FOR_TARGET
829DLLTOOL_FOR_TARGET
830LD_FOR_TARGET
831LIPO_FOR_TARGET
832NM_FOR_TARGET
833OBJDUMP_FOR_TARGET
834RANLIB_FOR_TARGET
b121d7d4 835READELF_FOR_TARGET
81ecdfbb
RW
836STRIP_FOR_TARGET
837WINDRES_FOR_TARGET
838WINDMC_FOR_TARGET'
839
a0da8069
NN
840
841# Initialize some variables set by options.
c6b750e1
DJ
842ac_init_help=
843ac_init_version=false
81ecdfbb
RW
844ac_unrecognized_opts=
845ac_unrecognized_sep=
a0da8069
NN
846# The variables have the same names as the options, with
847# dashes changed to underlines.
c6b750e1 848cache_file=/dev/null
a0da8069 849exec_prefix=NONE
a0da8069 850no_create=
a0da8069
NN
851no_recursion=
852prefix=NONE
853program_prefix=NONE
854program_suffix=NONE
855program_transform_name=s,x,x,
856silent=
857site=
858srcdir=
a0da8069
NN
859verbose=
860x_includes=NONE
861x_libraries=NONE
c6b750e1
DJ
862
863# Installation directory options.
864# These are left unexpanded so users can "make install exec_prefix=/foo"
865# and all the variables that are supposed to be based on exec_prefix
866# by default will actually change.
867# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 868# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
869bindir='${exec_prefix}/bin'
870sbindir='${exec_prefix}/sbin'
871libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
872datarootdir='${prefix}/share'
873datadir='${datarootdir}'
a0da8069
NN
874sysconfdir='${prefix}/etc'
875sharedstatedir='${prefix}/com'
876localstatedir='${prefix}/var'
a0da8069
NN
877includedir='${prefix}/include'
878oldincludedir='/usr/include'
81ecdfbb
RW
879docdir='${datarootdir}/doc/${PACKAGE}'
880infodir='${datarootdir}/info'
881htmldir='${docdir}'
882dvidir='${docdir}'
883pdfdir='${docdir}'
884psdir='${docdir}'
885libdir='${exec_prefix}/lib'
886localedir='${datarootdir}/locale'
887mandir='${datarootdir}/man'
252b5132 888
a0da8069 889ac_prev=
81ecdfbb 890ac_dashdash=
a0da8069
NN
891for ac_option
892do
a0da8069
NN
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
81ecdfbb 895 eval $ac_prev=\$ac_option
a0da8069
NN
896 ac_prev=
897 continue
898 fi
252b5132 899
81ecdfbb
RW
900 case $ac_option in
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *) ac_optarg=yes ;;
903 esac
a0da8069
NN
904
905 # Accept the important Cygnus configure options, so we can diagnose typos.
906
81ecdfbb
RW
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
a0da8069
NN
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 914 bindir=$ac_optarg ;;
a0da8069
NN
915
916 -build | --build | --buil | --bui | --bu)
c6b750e1 917 ac_prev=build_alias ;;
a0da8069 918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 919 build_alias=$ac_optarg ;;
a0da8069
NN
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
a0da8069 930
81ecdfbb 931 -datadir | --datadir | --datadi | --datad)
a0da8069 932 ac_prev=datadir ;;
81ecdfbb 933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 934 datadir=$ac_optarg ;;
a0da8069 935
81ecdfbb
RW
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
a0da8069 943 -disable-* | --disable-*)
81ecdfbb 944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 945 # Reject names that are not valid shell variable names.
81ecdfbb
RW
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952"enable_$ac_useropt"
953"*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
a0da8069
NN
968
969 -enable-* | --enable-*)
81ecdfbb 970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 971 # Reject names that are not valid shell variable names.
81ecdfbb
RW
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978"enable_$ac_useropt"
979"*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
a0da8069 982 esac
81ecdfbb 983 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
c6b750e1 992 exec_prefix=$ac_optarg ;;
a0da8069
NN
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
c6b750e1
DJ
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
a0da8069
NN
1004
1005 -host | --host | --hos | --ho)
c6b750e1 1006 ac_prev=host_alias ;;
a0da8069 1007 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1008 host_alias=$ac_optarg ;;
a0da8069 1009
81ecdfbb
RW
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
a0da8069
NN
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1021 includedir=$ac_optarg ;;
a0da8069
NN
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1026 infodir=$ac_optarg ;;
a0da8069
NN
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1031 libdir=$ac_optarg ;;
a0da8069
NN
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1038 libexecdir=$ac_optarg ;;
a0da8069 1039
81ecdfbb
RW
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
a0da8069 1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1046 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1050 localstatedir=$ac_optarg ;;
a0da8069
NN
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1055 mandir=$ac_optarg ;;
a0da8069
NN
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1062 | --no-cr | --no-c | -n)
a0da8069
NN
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1076 oldincludedir=$ac_optarg ;;
a0da8069
NN
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1081 prefix=$ac_optarg ;;
a0da8069
NN
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1088 program_prefix=$ac_optarg ;;
a0da8069
NN
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1095 program_suffix=$ac_optarg ;;
a0da8069
NN
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1112 program_transform_name=$ac_optarg ;;
a0da8069 1113
81ecdfbb
RW
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
a0da8069
NN
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
c6b750e1 1132 sbindir=$ac_optarg ;;
a0da8069
NN
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
c6b750e1 1143 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
c6b750e1 1148 site=$ac_optarg ;;
a0da8069
NN
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1153 srcdir=$ac_optarg ;;
a0da8069
NN
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1160 sysconfdir=$ac_optarg ;;
a0da8069
NN
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1163 ac_prev=target_alias ;;
a0da8069 1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1165 target_alias=$ac_optarg ;;
a0da8069
NN
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
c6b750e1
DJ
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
a0da8069
NN
1172
1173 -with-* | --with-*)
81ecdfbb 1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1175 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182"with_$ac_useropt"
1183"*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
a0da8069 1186 esac
81ecdfbb 1187 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1188
1189 -without-* | --without-*)
81ecdfbb 1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1191 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198"with_$ac_useropt"
1199"*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
a0da8069
NN
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1214 x_includes=$ac_optarg ;;
a0da8069
NN
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1221 x_libraries=$ac_optarg ;;
a0da8069 1222
81ecdfbb
RW
1223 -*) as_fn_error "unrecognized option: \`$ac_option'
1224Try \`$0 --help' for more information."
a0da8069
NN
1225 ;;
1226
c6b750e1
DJ
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1235 export $ac_envvar ;;
1236
a0da8069 1237 *)
c6b750e1 1238 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1243 ;;
1244
1245 esac
1246done
1247
1248if test -n "$ac_prev"; then
c6b750e1 1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1250 as_fn_error "missing argument to $ac_option"
a0da8069 1251fi
a0da8069 1252
81ecdfbb
RW
1253if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1258 esac
81ecdfbb 1259fi
a0da8069 1260
81ecdfbb
RW
1261# Check all directory arguments for consistency.
1262for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
a0da8069 1266do
81ecdfbb
RW
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
c6b750e1 1275 case $ac_val in
81ecdfbb
RW
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1278 esac
81ecdfbb 1279 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1280done
1281
c6b750e1
DJ
1282# There might be people who depend on the old broken behavior: `$host'
1283# used to hold the argument of --host etc.
1284# FIXME: To remove some day.
1285build=$build_alias
1286host=$host_alias
1287target=$target_alias
376a0e54 1288
c6b750e1
DJ
1289# FIXME: To remove some day.
1290if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
81ecdfbb 1293 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1294 If a cross compiler is detected then cross compile mode will be used." >&2
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1297 fi
1298fi
1299
1300ac_tool_prefix=
1301test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303test "$silent" = yes && exec 6>/dev/null
a0da8069 1304
a0da8069 1305
81ecdfbb
RW
1306ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307ac_ls_di=`ls -di .` &&
1308ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error "working directory cannot be determined"
1310test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error "pwd does not report name of working directory"
1312
1313
a0da8069
NN
1314# Find the source files, if location was not specified.
1315if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
81ecdfbb
RW
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323$as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\).*/{
1337 s//\1/
1338 q
1339 }
1340 s/.*/./; q'`
a0da8069 1341 srcdir=$ac_confdir
81ecdfbb 1342 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1343 srcdir=..
1344 fi
1345else
1346 ac_srcdir_defaulted=no
1347fi
81ecdfbb
RW
1348if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1351fi
1352ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1355 pwd)`
1356# When building in place, set srcdir=.
1357if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1359fi
1360# Remove unnecessary trailing slashes from srcdir.
1361# Double slashes in file names in object file debugging info
1362# mess up M-x gdb in Emacs.
1363case $srcdir in
1364*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365esac
6d0cd39e
AM
1366case $srcdir in
1367 *" "*)
1368 as_fn_error "path to source, $srcdir, contains spaces"
1369 ;;
1370esac
9cc8ae67
PB
1371ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1372
81ecdfbb
RW
1373for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378done
c6b750e1
DJ
1379
1380#
1381# Report the --help message.
1382#
1383if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387\`configure' configures this package to adapt to many kinds of systems.
1388
1389Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394Defaults for the options are specified in brackets.
1395
1396Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406
c6b750e1
DJ
1407Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1409 [$ac_default_prefix]
c6b750e1 1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1411 [PREFIX]
c6b750e1
DJ
1412
1413By default, \`make install' will install all the files in
1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416for instance \`--prefix=\$HOME'.
1417
1418For better control, use the options below.
1419
1420Fine tuning of the installation directories:
81ecdfbb
RW
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1440_ACEOF
1441
1442 cat <<\_ACEOF
1443
1444Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448
1449System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 --target=TARGET configure for building compilers for TARGET [HOST]
1453_ACEOF
a0da8069 1454fi
a0da8069 1455
c6b750e1
DJ
1456if test -n "$ac_init_help"; then
1457
1458 cat <<\_ACEOF
1459
1460Optional Features:
81ecdfbb 1461 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1464 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1465 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1466 --disable-libquadmath do not build libquadmath directory
1467 --disable-libquadmath-support
1468 disable libquadmath support for Fortran
521ec477
DD
1469 --enable-libada build libada directory
1470 --enable-libssp build libssp directory
f66a9a70 1471 --disable-libstdcxx do not build libstdc++-v3 directory
ffdd6afc
ILT
1472 --enable-static-libjava[=ARG]
1473 build static libjava [default=no]
1474 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e
L
1475 --disable-isl-version-check
1476 disable check for ISL version
e552509b
ILT
1477 --disable-cloog-version-check
1478 disable check for CLooG version
700d40ca 1479 --enable-lto enable link time optimization support
7837304f
AS
1480 --enable-stage1-languages[=all]
1481 choose additional languages to build during stage1.
1482 Mostly useful for compiler development
1483 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1484 Objective-C runtime
730af8ee 1485 --enable-vtable-verify Enable vtable verification feature
521ec477 1486 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1487 force sequential configuration of sub-packages for
1488 the host, target or build machine, or all
1489 sub-packages
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-stage1-checking[=all]
1494 choose additional checking for stage1 of the
1495 compiler
c6b750e1 1496 --enable-werror enable -Werror in bootstrap stage2 and later
82033c9b 1497 --enable-host-shared build host code as shared libraries
c6b750e1
DJ
1498
1499Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1503 --with-mpc=PATH specify prefix directory for installed MPC package.
1504 Equivalent to --with-mpc-include=PATH/include plus
1505 --with-mpc-lib=PATH/lib
1506 --with-mpc-include=PATH specify directory for installed MPC include files
1507 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1508 --with-mpfr-dir=PATH this option has been REMOVED
1509 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1510 Equivalent to --with-mpfr-include=PATH/include plus
1511 --with-mpfr-lib=PATH/lib
c6b750e1 1512 --with-mpfr-include=PATH
521ec477
DD
1513 specify directory for installed MPFR include files
1514 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1515 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1516 --with-gmp=PATH specify prefix directory for the installed GMP
1517 package. Equivalent to
1518 --with-gmp-include=PATH/include plus
1519 --with-gmp-lib=PATH/lib
521ec477
DD
1520 --with-gmp-include=PATH specify directory for installed GMP include files
1521 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1522 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1523 linking with PPL
b3676d82 1524 --with-stage1-libs=LIBS libraries for stage1
7837304f
AS
1525 --with-stage1-ldflags=FLAGS
1526 linker flags for stage1
7837304f
AS
1527 --with-boot-libs=LIBS libraries for stage2 and later
1528 --with-boot-ldflags=FLAGS
1529 linker flags for stage2 and later
8e71395b
L
1530 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1531 package. Equivalent to
1532 --with-cloog-include=PATH/include plus
1533 --with-cloog-lib=PATH/lib
7ec59b9e 1534 --with-isl=PATH Specify prefix directory for the installed ISL
7837304f 1535 package. Equivalent to
7ec59b9e
L
1536 --with-isl-include=PATH/include plus
1537 --with-isl-lib=PATH/lib
1538 --with-isl-include=PATH Specify directory for installed ISL include files
1539 --with-isl-lib=PATH Specify the directory for the installed ISL library
e552509b
ILT
1540 --with-cloog-include=PATH
1541 Specify directory for installed CLooG include files
1542 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1543 library
521ec477 1544 --with-build-sysroot=SYSROOT
c6b750e1 1545 use sysroot as the system root during the build
8a6ee3ab 1546 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1547 map A to B, C to D ... in debug information
1548 --with-build-config='NAME NAME2...'
1549 use config/NAME.mk build configuration
521ec477 1550 --with-build-time-tools=PATH
c6b750e1 1551 use given path to find target tools during the build
c6b750e1
DJ
1552
1553Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
81ecdfbb
RW
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
4074d5f2
RW
1563 build_configargs
1564 additional configure arguments for build directories
1565 host_configargs
1566 additional configure arguments for host directories
1567 target_configargs
1568 additional configure arguments for target directories
9a819804
AO
1569 AR AR for the host
1570 AS AS for the host
1571 DLLTOOL DLLTOOL for the host
1572 LD LD for the host
1573 LIPO LIPO for the host
1574 NM NM for the host
1575 RANLIB RANLIB for the host
1576 STRIP STRIP for the host
1577 WINDRES WINDRES for the host
0c24b341 1578 WINDMC WINDMC for the host
9a819804
AO
1579 OBJCOPY OBJCOPY for the host
1580 OBJDUMP OBJDUMP for the host
b121d7d4 1581 READELF READELF for the host
9a819804
AO
1582 CC_FOR_TARGET
1583 CC for the target
1584 CXX_FOR_TARGET
1585 CXX for the target
1586 GCC_FOR_TARGET
1587 GCC for the target
1588 GCJ_FOR_TARGET
1589 GCJ for the target
1590 GFORTRAN_FOR_TARGET
1591 GFORTRAN for the target
e552509b
ILT
1592 GOC_FOR_TARGET
1593 GOC for the target
9a819804
AO
1594 AR_FOR_TARGET
1595 AR for the target
1596 AS_FOR_TARGET
1597 AS for the target
1598 DLLTOOL_FOR_TARGET
1599 DLLTOOL for the target
1600 LD_FOR_TARGET
1601 LD for the target
1602 LIPO_FOR_TARGET
1603 LIPO for the target
1604 NM_FOR_TARGET
1605 NM for the target
1606 OBJDUMP_FOR_TARGET
1607 OBJDUMP for the target
1608 RANLIB_FOR_TARGET
1609 RANLIB for the target
b121d7d4
DD
1610 READELF_FOR_TARGET
1611 READELF for the target
9a819804
AO
1612 STRIP_FOR_TARGET
1613 STRIP for the target
1614 WINDRES_FOR_TARGET
1615 WINDRES for the target
0c24b341
NC
1616 WINDMC_FOR_TARGET
1617 WINDMC for the target
c6b750e1
DJ
1618
1619Use these variables to override the choices made by `configure' or to help
1620it to find libraries and programs with nonstandard names/locations.
1621
81ecdfbb 1622Report bugs to the package provider.
c6b750e1 1623_ACEOF
81ecdfbb 1624ac_status=$?
c6b750e1
DJ
1625fi
1626
1627if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
c6b750e1 1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632 continue
c6b750e1
DJ
1633 ac_builddir=.
1634
81ecdfbb
RW
1635case "$ac_dir" in
1636.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637*)
1638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 esac ;;
1645esac
1646ac_abs_top_builddir=$ac_pwd
1647ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648# for backward compatibility:
1649ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1650
1651case $srcdir in
81ecdfbb 1652 .) # We are building in place.
c6b750e1 1653 ac_srcdir=.
81ecdfbb
RW
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1657 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1660 *) # Relative name.
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1664esac
81ecdfbb
RW
1665ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1675 else
81ecdfbb
RW
1676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677 fi || ac_status=$?
1678 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1679 done
1680fi
1681
81ecdfbb 1682test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1683if $ac_init_version; then
1684 cat <<\_ACEOF
81ecdfbb
RW
1685configure
1686generated by GNU Autoconf 2.64
c6b750e1 1687
81ecdfbb 1688Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1689This configure script is free software; the Free Software Foundation
1690gives unlimited permission to copy, distribute and modify it.
1691_ACEOF
81ecdfbb 1692 exit
c6b750e1 1693fi
81ecdfbb
RW
1694
1695## ------------------------ ##
1696## Autoconf initialization. ##
1697## ------------------------ ##
1698
1699# ac_fn_c_try_compile LINENO
1700# --------------------------
1701# Try to compile conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_compile ()
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1725 ac_retval=0
1726else
1727 $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731fi
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 return $ac_retval
1734
1735} # ac_fn_c_try_compile
1736
1737# ac_fn_cxx_try_compile LINENO
1738# ----------------------------
1739# Try to compile conftest.$ac_ext, and return whether this succeeded.
1740ac_fn_cxx_try_compile ()
1741{
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext
1744 if { { ac_try="$ac_compile"
1745case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_compile") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_cxx_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest.$ac_objext; then :
1763 ac_retval=0
1764else
1765 $as_echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769fi
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 return $ac_retval
1772
1773} # ac_fn_cxx_try_compile
1774
b3676d82
EB
1775# ac_fn_cxx_try_link LINENO
1776# -------------------------
1777# Try to link conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_cxx_try_link ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_cxx_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 $as_test_x conftest$ac_exeext
1803 }; then :
1804 ac_retval=0
1805else
1806 $as_echo "$as_me: failed program was:" >&5
1807sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=1
1810fi
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 return $ac_retval
1818
1819} # ac_fn_cxx_try_link
1820
81ecdfbb
RW
1821# ac_fn_c_try_link LINENO
1822# -----------------------
1823# Try to link conftest.$ac_ext, and return whether this succeeded.
1824ac_fn_c_try_link ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext conftest$ac_exeext
1828 if { { ac_try="$ac_link"
1829case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1841 fi
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest$ac_exeext && {
1847 test "$cross_compiling" = yes ||
1848 $as_test_x conftest$ac_exeext
1849 }; then :
1850 ac_retval=0
1851else
1852 $as_echo "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=1
1856fi
1857 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1858 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1859 # interfere with the next link command; also delete a directory that is
1860 # left behind by Apple's compiler. We do this before executing the actions.
1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 return $ac_retval
1864
1865} # ac_fn_c_try_link
7ec59b9e
L
1866
1867# ac_fn_c_try_run LINENO
1868# ----------------------
1869# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1870# that executables *can* be run.
1871ac_fn_c_try_run ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { { ac_try="$ac_link"
1875case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>&5
1882 ac_status=$?
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1885 { { case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890$as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_try") 2>&5
1892 ac_status=$?
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; }; }; then :
1895 ac_retval=0
1896else
1897 $as_echo "$as_me: program exited with status $ac_status" >&5
1898 $as_echo "$as_me: failed program was:" >&5
1899sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=$ac_status
1902fi
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 return $ac_retval
1906
1907} # ac_fn_c_try_run
81ecdfbb 1908cat >config.log <<_ACEOF
c6b750e1
DJ
1909This file contains any messages produced by compilers while
1910running configure, to aid debugging if configure makes a mistake.
1911
1912It was created by $as_me, which was
81ecdfbb 1913generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1914
1915 $ $0 $@
1916
1917_ACEOF
81ecdfbb 1918exec 5>>config.log
c6b750e1
DJ
1919{
1920cat <<_ASUNAME
1921## --------- ##
1922## Platform. ##
1923## --------- ##
1924
1925hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929uname -v = `(uname -v) 2>/dev/null || echo unknown`
1930
1931/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1933
1934/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1935/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1936/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1937/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1938/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1939/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1940/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1941
1942_ASUNAME
1943
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1949 $as_echo "PATH: $as_dir"
1950 done
1951IFS=$as_save_IFS
c6b750e1
DJ
1952
1953} >&5
1954
1955cat >&5 <<_ACEOF
1956
1957
1958## ----------- ##
1959## Core tests. ##
1960## ----------- ##
1961
1962_ACEOF
1963
1964
1965# Keep a trace of the command line.
1966# Strip out --no-create and --no-recursion so they do not pile up.
1967# Strip out --silent because we don't want to record it for future runs.
1968# Also quote any args containing shell meta-characters.
1969# Make two passes to allow for proper duplicate-argument suppression.
1970ac_configure_args=
1971ac_configure_args0=
1972ac_configure_args1=
c6b750e1
DJ
1973ac_must_keep_next=false
1974for ac_pass in 1 2
1975do
1976 for ac_arg
1977 do
1978 case $ac_arg in
1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981 | -silent | --silent | --silen | --sile | --sil)
1982 continue ;;
81ecdfbb
RW
1983 *\'*)
1984 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1985 esac
1986 case $ac_pass in
81ecdfbb 1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1988 2)
81ecdfbb 1989 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1990 if test $ac_must_keep_next = true; then
1991 ac_must_keep_next=false # Got value, back to normal.
1992 else
1993 case $ac_arg in
1994 *=* | --config-cache | -C | -disable-* | --disable-* \
1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997 | -with-* | --with-* | -without-* | --without-* | --x)
1998 case "$ac_configure_args0 " in
1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2000 esac
2001 ;;
2002 -* ) ac_must_keep_next=true ;;
2003 esac
2004 fi
81ecdfbb 2005 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2006 ;;
2007 esac
2008 done
2009done
81ecdfbb
RW
2010{ ac_configure_args0=; unset ac_configure_args0;}
2011{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2012
2013# When interrupted or exit'd, cleanup temporary files, and complete
2014# config.log. We remove comments because anyway the quotes in there
2015# would cause problems or look ugly.
81ecdfbb
RW
2016# WARNING: Use '\'' to represent an apostrophe within the trap.
2017# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2018trap 'exit_status=$?
2019 # Save into config.log some information that might help in debugging.
2020 {
2021 echo
2022
2023 cat <<\_ASBOX
2024## ---------------- ##
2025## Cache variables. ##
2026## ---------------- ##
2027_ASBOX
2028 echo
2029 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2030(
2031 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in #(
2034 *${as_nl}*)
2035 case $ac_var in #(
2036 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2037$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2038 esac
2039 case $ac_var in #(
2040 _ | IFS | as_nl) ;; #(
2041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2042 *) { eval $ac_var=; unset $ac_var;} ;;
2043 esac ;;
2044 esac
2045 done
c6b750e1 2046 (set) 2>&1 |
81ecdfbb
RW
2047 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2048 *${as_nl}ac_space=\ *)
c6b750e1 2049 sed -n \
81ecdfbb
RW
2050 "s/'\''/'\''\\\\'\'''\''/g;
2051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2052 ;; #(
c6b750e1 2053 *)
81ecdfbb 2054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2055 ;;
81ecdfbb
RW
2056 esac |
2057 sort
2058)
c6b750e1
DJ
2059 echo
2060
2061 cat <<\_ASBOX
2062## ----------------- ##
2063## Output variables. ##
2064## ----------------- ##
2065_ASBOX
2066 echo
2067 for ac_var in $ac_subst_vars
2068 do
81ecdfbb
RW
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2074 done | sort
2075 echo
2076
2077 if test -n "$ac_subst_files"; then
2078 cat <<\_ASBOX
81ecdfbb
RW
2079## ------------------- ##
2080## File substitutions. ##
2081## ------------------- ##
c6b750e1
DJ
2082_ASBOX
2083 echo
2084 for ac_var in $ac_subst_files
2085 do
81ecdfbb
RW
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2091 done | sort
2092 echo
2093 fi
2094
2095 if test -s confdefs.h; then
2096 cat <<\_ASBOX
2097## ----------- ##
2098## confdefs.h. ##
2099## ----------- ##
2100_ASBOX
2101 echo
81ecdfbb 2102 cat confdefs.h
c6b750e1
DJ
2103 echo
2104 fi
2105 test "$ac_signal" != 0 &&
81ecdfbb
RW
2106 $as_echo "$as_me: caught signal $ac_signal"
2107 $as_echo "$as_me: exit $exit_status"
c6b750e1 2108 } >&5
81ecdfbb
RW
2109 rm -f core *.core core.conftest.* &&
2110 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2111 exit $exit_status
81ecdfbb 2112' 0
c6b750e1 2113for ac_signal in 1 2 13 15; do
81ecdfbb 2114 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2115done
2116ac_signal=0
2117
2118# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2119rm -f -r conftest* confdefs.h
2120
2121$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2122
2123# Predefined preprocessor variables.
2124
2125cat >>confdefs.h <<_ACEOF
2126#define PACKAGE_NAME "$PACKAGE_NAME"
2127_ACEOF
2128
c6b750e1
DJ
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2131_ACEOF
2132
c6b750e1
DJ
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_VERSION "$PACKAGE_VERSION"
2135_ACEOF
2136
c6b750e1
DJ
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_STRING "$PACKAGE_STRING"
2139_ACEOF
2140
c6b750e1
DJ
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2143_ACEOF
2144
81ecdfbb
RW
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_URL "$PACKAGE_URL"
2147_ACEOF
2148
c6b750e1
DJ
2149
2150# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2151# Prefer an explicitly selected file to automatically selected ones.
2152ac_site_file1=NONE
2153ac_site_file2=NONE
2154if test -n "$CONFIG_SITE"; then
2155 ac_site_file1=$CONFIG_SITE
2156elif test "x$prefix" != xNONE; then
2157 ac_site_file1=$prefix/share/config.site
2158 ac_site_file2=$prefix/etc/config.site
2159else
2160 ac_site_file1=$ac_default_prefix/share/config.site
2161 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2162fi
81ecdfbb
RW
2163for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2164do
2165 test "x$ac_site_file" = xNONE && continue
a0da8069 2166 if test -r "$ac_site_file"; then
81ecdfbb
RW
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2168$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2169 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2170 . "$ac_site_file"
2171 fi
2172done
2173
2174if test -r "$cache_file"; then
c6b750e1
DJ
2175 # Some versions of bash will fail to source /dev/null (special
2176 # files actually), so we avoid doing that.
2177 if test -f "$cache_file"; then
81ecdfbb
RW
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2179$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2180 case $cache_file in
81ecdfbb
RW
2181 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2182 *) . "./$cache_file";;
c6b750e1
DJ
2183 esac
2184 fi
a0da8069 2185else
81ecdfbb
RW
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2187$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2188 >$cache_file
2189fi
2190
2191# Check that the precious variables saved in the cache have kept the same
2192# value.
2193ac_cache_corrupted=false
81ecdfbb 2194for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2196 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2198 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2199 case $ac_old_set,$ac_new_set in
2200 set,)
81ecdfbb
RW
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2202$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2203 ac_cache_corrupted=: ;;
2204 ,set)
81ecdfbb
RW
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2206$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2207 ac_cache_corrupted=: ;;
2208 ,);;
2209 *)
2210 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2211 # differences in whitespace do not lead to failure.
2212 ac_old_val_w=`echo x $ac_old_val`
2213 ac_new_val_w=`echo x $ac_new_val`
2214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2216$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2217 ac_cache_corrupted=:
2218 else
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2220$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2221 eval $ac_var=\$ac_old_val
2222 fi
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2224$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2226$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2227 fi;;
2228 esac
2229 # Pass precious variables to config.status.
2230 if test "$ac_new_set" = set; then
2231 case $ac_new_val in
81ecdfbb 2232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2233 *) ac_arg=$ac_var=$ac_new_val ;;
2234 esac
2235 case " $ac_configure_args " in
2236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2238 esac
2239 fi
2240done
2241if $ac_cache_corrupted; then
81ecdfbb
RW
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2245$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2246 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2247fi
81ecdfbb
RW
2248## -------------------- ##
2249## Main body of script. ##
2250## -------------------- ##
a0da8069
NN
2251
2252ac_ext=c
a0da8069 2253ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257
2258
2259
2260
c6b750e1
DJ
2261
2262
34a0f3cf 2263
c6b750e1 2264
5b553f7e
RW
2265
2266progname=$0
2267# if PWD already has a value, it is probably wrong.
2268if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2269
2270# Export original configure arguments for use by sub-configures.
2271# Quote arguments with shell meta charatcers.
2272TOPLEVEL_CONFIGURE_ARGUMENTS=
2273set -- "$progname" "$@"
2274for ac_arg
2275do
2276 case "$ac_arg" in
2277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2278 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2279 # if the argument is of the form -foo=baz, quote the baz part only
2280 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2281 *) ;;
2282 esac
2283 # Add the quoted argument to the list.
2284 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2285done
2286if test "$silent" = yes; then
2287 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2288fi
2289# Remove the initial space we just introduced and, as these will be
2290# expanded by make, quote '$'.
2291TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2292
c6b750e1
DJ
2293
2294# Find the build, host, and target systems.
a0da8069 2295ac_aux_dir=
81ecdfbb
RW
2296for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2297 for ac_t in install-sh install.sh shtool; do
2298 if test -f "$ac_dir/$ac_t"; then
2299 ac_aux_dir=$ac_dir
2300 ac_install_sh="$ac_aux_dir/$ac_t -c"
2301 break 2
2302 fi
2303 done
a0da8069
NN
2304done
2305if test -z "$ac_aux_dir"; then
81ecdfbb 2306 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2307fi
81ecdfbb
RW
2308
2309# These three variables are undocumented and unsupported,
2310# and are intended to be withdrawn in a future Autoconf release.
2311# They can cause serious problems if a builder's source tree is in a directory
2312# whose full name contains unusual characters.
2313ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2314ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2315ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2316
a0da8069 2317
c6b750e1 2318# Make sure we can run config.sub.
81ecdfbb
RW
2319$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2320 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2321
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2323$as_echo_n "checking build system type... " >&6; }
2324if test "${ac_cv_build+set}" = set; then :
2325 $as_echo_n "(cached) " >&6
2326else
2327 ac_build_alias=$build_alias
2328test "x$ac_build_alias" = x &&
2329 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2330test "x$ac_build_alias" = x &&
2331 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2332ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2333 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2334
2335fi
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2337$as_echo "$ac_cv_build" >&6; }
2338case $ac_cv_build in
2339*-*-*) ;;
2340*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2341esac
c6b750e1 2342build=$ac_cv_build
81ecdfbb
RW
2343ac_save_IFS=$IFS; IFS='-'
2344set x $ac_cv_build
2345shift
2346build_cpu=$1
2347build_vendor=$2
2348shift; shift
2349# Remember, the first character of IFS is used to create $*,
2350# except with old shells:
2351build_os=$*
2352IFS=$ac_save_IFS
2353case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2354
a0da8069 2355
c6b750e1
DJ
2356 case ${build_alias} in
2357 "") build_noncanonical=${build} ;;
2358 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2359esac
2360
2361
cac3d6c4 2362
c6b750e1
DJ
2363 case ${host_alias} in
2364 "") host_noncanonical=${build_noncanonical} ;;
2365 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2366esac
2367
cac3d6c4 2368
c6b750e1
DJ
2369
2370 case ${target_alias} in
2371 "") target_noncanonical=${host_noncanonical} ;;
2372 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2373esac
2374
cac3d6c4 2375
c6b750e1
DJ
2376
2377
2378test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2379 test "$program_prefix$program_suffix$program_transform_name" = \
2380 NONENONEs,x,x, &&
c6b750e1 2381 program_transform_name=s,y,y,
cac3d6c4 2382
81ecdfbb
RW
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2384$as_echo_n "checking host system type... " >&6; }
2385if test "${ac_cv_host+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
cac3d6c4 2387else
81ecdfbb
RW
2388 if test "x$host_alias" = x; then
2389 ac_cv_host=$ac_cv_build
2390else
2391 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2392 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2393fi
c6b750e1
DJ
2394
2395fi
81ecdfbb
RW
2396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2397$as_echo "$ac_cv_host" >&6; }
2398case $ac_cv_host in
2399*-*-*) ;;
2400*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2401esac
c6b750e1 2402host=$ac_cv_host
81ecdfbb
RW
2403ac_save_IFS=$IFS; IFS='-'
2404set x $ac_cv_host
2405shift
2406host_cpu=$1
2407host_vendor=$2
2408shift; shift
2409# Remember, the first character of IFS is used to create $*,
2410# except with old shells:
2411host_os=$*
2412IFS=$ac_save_IFS
2413case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2414
2415
81ecdfbb
RW
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2417$as_echo_n "checking target system type... " >&6; }
2418if test "${ac_cv_target+set}" = set; then :
2419 $as_echo_n "(cached) " >&6
c6b750e1 2420else
81ecdfbb
RW
2421 if test "x$target_alias" = x; then
2422 ac_cv_target=$ac_cv_host
2423else
2424 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2425 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2426fi
c6b750e1 2427
cac3d6c4 2428fi
81ecdfbb
RW
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2430$as_echo "$ac_cv_target" >&6; }
2431case $ac_cv_target in
2432*-*-*) ;;
2433*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2434esac
c6b750e1 2435target=$ac_cv_target
81ecdfbb
RW
2436ac_save_IFS=$IFS; IFS='-'
2437set x $ac_cv_target
2438shift
2439target_cpu=$1
2440target_vendor=$2
2441shift; shift
2442# Remember, the first character of IFS is used to create $*,
2443# except with old shells:
2444target_os=$*
2445IFS=$ac_save_IFS
2446case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2447
2448
2449# The aliases save the names the user supplied, while $host etc.
2450# will get canonicalized.
2451test -n "$target_alias" &&
2452 test "$program_prefix$program_suffix$program_transform_name" = \
2453 NONENONEs,x,x, &&
2454 program_prefix=${target_alias}-
81ecdfbb 2455
a0da8069 2456test "$program_prefix" != NONE &&
81ecdfbb 2457 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2458# Use a double $ so make ignores it.
2459test "$program_suffix" != NONE &&
81ecdfbb
RW
2460 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2461# Double any \ or $.
c6b750e1 2462# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2463ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2464program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2465
a0da8069
NN
2466
2467
e5c3f801
NN
2468# Get 'install' or 'install-sh' and its variants.
2469# Find a good install program. We prefer a C program (faster),
2470# so one script is as good as another. But avoid the broken or
2471# incompatible versions:
2472# SysV /etc/install, /usr/sbin/install
2473# SunOS /usr/etc/install
2474# IRIX /sbin/install
2475# AIX /bin/install
c6b750e1 2476# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2477# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2478# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2479# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2480# OS/2's system install, which has a completely different semantic
e5c3f801 2481# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2482# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2484$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2485if test -z "$INSTALL"; then
81ecdfbb
RW
2486if test "${ac_cv_path_install+set}" = set; then :
2487 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2488else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490for as_dir in $PATH
2491do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2494 # Account for people who put trailing slashes in PATH elements.
2495case $as_dir/ in #((
2496 ./ | .// | /[cC]/* | \
c6b750e1 2497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2498 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2499 /usr/ucb/* ) ;;
2500 *)
2501 # OSF1 and SCO ODT 3.0 have their own names for install.
2502 # Don't use installbsd from OSF since it installs stuff as root
2503 # by default.
2504 for ac_prog in ginstall scoinst install; do
2505 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2506 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2507 if test $ac_prog = install &&
c6b750e1 2508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2509 # AIX install. It has an incompatible calling convention.
2510 :
c6b750e1
DJ
2511 elif test $ac_prog = install &&
2512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2513 # program-specific install script used by HP pwplus--don't use.
2514 :
e5c3f801 2515 else
58c85be7
RW
2516 rm -rf conftest.one conftest.two conftest.dir
2517 echo one > conftest.one
2518 echo two > conftest.two
2519 mkdir conftest.dir
2520 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2521 test -s conftest.one && test -s conftest.two &&
2522 test -s conftest.dir/conftest.one &&
2523 test -s conftest.dir/conftest.two
2524 then
2525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2526 break 3
2527 fi
e5c3f801
NN
2528 fi
2529 fi
2530 done
c6b750e1
DJ
2531 done
2532 ;;
2533esac
81ecdfbb
RW
2534
2535 done
2536IFS=$as_save_IFS
c6b750e1 2537
58c85be7 2538rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2539
2540fi
2541 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2542 INSTALL=$ac_cv_path_install
e5c3f801 2543 else
58c85be7
RW
2544 # As a last resort, use the slow shell script. Don't cache a
2545 # value for INSTALL within a source directory, because that will
e5c3f801 2546 # break other packages using the cache if that directory is
58c85be7 2547 # removed, or if the value is a relative name.
c6b750e1 2548 INSTALL=$ac_install_sh
e5c3f801
NN
2549 fi
2550fi
81ecdfbb
RW
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2552$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2553
2554# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2555# It thinks the first close brace ends the variable substitution.
2556test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2557
c6b750e1 2558test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2559
2560test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2561
81ecdfbb
RW
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2563$as_echo_n "checking whether ln works... " >&6; }
2564if test "${acx_cv_prog_LN+set}" = set; then :
2565 $as_echo_n "(cached) " >&6
656fdd47
PB
2566else
2567 rm -f conftestdata_t
2568echo >conftestdata_f
2569if ln conftestdata_f conftestdata_t 2>/dev/null
2570then
2571 acx_cv_prog_LN=ln
2572else
2573 acx_cv_prog_LN=no
2574fi
2575rm -f conftestdata_f conftestdata_t
2576
2577fi
2578if test $acx_cv_prog_LN = no; then
2579 LN="cp"
81ecdfbb
RW
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2581$as_echo "no, using $LN" >&6; }
656fdd47
PB
2582else
2583 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2585$as_echo "yes" >&6; }
656fdd47
PB
2586fi
2587
81ecdfbb
RW
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2589$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2590LN_S=$as_ln_s
2591if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2593$as_echo "yes" >&6; }
cac3d6c4 2594else
81ecdfbb
RW
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2596$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2597fi
2598
8e957354
PB
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2600$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2601if test "${ac_cv_path_SED+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2603else
2604 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2605 for ac_i in 1 2 3 4 5 6 7; do
2606 ac_script="$ac_script$as_nl$ac_script"
2607 done
2608 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2609 { ac_script=; unset ac_script;}
2610 if test -z "$SED"; then
2611 ac_path_SED_found=false
2612 # Loop through the user's path and test for each of PROGNAME-LIST
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH
2615do
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_prog in sed gsed; do
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2621 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2622# Check for GNU ac_path_SED and select it if it is found.
2623 # Check for GNU $ac_path_SED
2624case `"$ac_path_SED" --version 2>&1` in
2625*GNU*)
2626 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2627*)
2628 ac_count=0
2629 $as_echo_n 0123456789 >"conftest.in"
2630 while :
2631 do
2632 cat "conftest.in" "conftest.in" >"conftest.tmp"
2633 mv "conftest.tmp" "conftest.in"
2634 cp "conftest.in" "conftest.nl"
2635 $as_echo '' >> "conftest.nl"
2636 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2638 as_fn_arith $ac_count + 1 && ac_count=$as_val
2639 if test $ac_count -gt ${ac_path_SED_max-0}; then
2640 # Best one so far, save it but keep looking for a better one
2641 ac_cv_path_SED="$ac_path_SED"
2642 ac_path_SED_max=$ac_count
2643 fi
2644 # 10*(2^10) chars as input seems more than enough
2645 test $ac_count -gt 10 && break
2646 done
2647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2648esac
2649
2650 $ac_path_SED_found && break 3
2651 done
2652 done
2653 done
2654IFS=$as_save_IFS
2655 if test -z "$ac_cv_path_SED"; then
2656 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2657 fi
2658else
2659 ac_cv_path_SED=$SED
2660fi
2661
2662fi
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2664$as_echo "$ac_cv_path_SED" >&6; }
2665 SED="$ac_cv_path_SED"
2666 rm -f conftest.sed
2667
2668for ac_prog in gawk mawk nawk awk
2669do
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671set dummy $ac_prog; ac_word=$2
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673$as_echo_n "checking for $ac_word... " >&6; }
2674if test "${ac_cv_prog_AWK+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2676else
2677 if test -n "$AWK"; then
2678 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_AWK="$ac_prog"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2690 fi
2691done
2692 done
2693IFS=$as_save_IFS
2694
2695fi
2696fi
2697AWK=$ac_cv_prog_AWK
2698if test -n "$AWK"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2700$as_echo "$AWK" >&6; }
2701else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703$as_echo "no" >&6; }
2704fi
2705
2706
2707 test -n "$AWK" && break
2708done
2709
e5c3f801 2710
0fdbe983
DJ
2711srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2712
2713# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2714# a relative path.
2715if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2716 INSTALL="${srcpwd}/install-sh -c"
2717fi
2718
a0da8069
NN
2719# Set srcdir to "." if that's what it is.
2720# This is important for multilib support.
2721pwd=`${PWDCMD-pwd}`
a0da8069
NN
2722if test "${pwd}" = "${srcpwd}" ; then
2723 srcdir=.
252b5132
RH
2724fi
2725
a0da8069 2726topsrcdir=$srcpwd
252b5132 2727
a0da8069 2728extra_host_args=
afefada0 2729
a0da8069
NN
2730### To add a new directory to the tree, first choose whether it is a target
2731### or a host dependent tool. Then put it into the appropriate list
2732### (library or tools, host or target), doing a dependency sort.
252b5132 2733
c6b750e1 2734# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2735# configdirs, or target_configdirs; see the serialization section below.
252b5132 2736
c6b750e1
DJ
2737# Dependency sorting is only needed when *configuration* must be done in
2738# a particular order. In all cases a dependency should be specified in
a0da8069 2739# the Makefile, whether or not it's implicitly specified here.
252b5132 2740
a0da8069
NN
2741# Double entries in build_configdirs, configdirs, or target_configdirs may
2742# cause circular dependencies and break everything horribly.
252b5132 2743
6a9cf61e
PB
2744# these library is used by various programs built for the build
2745# environment
2746#
2747build_libs="build-libiberty"
2748
2749# these tools are built for the build environment
a90ef4bf 2750build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2751
a0da8069
NN
2752# these libraries are used by various programs built for the host environment
2753#
2bf680c4 2754host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
a0da8069 2755
a0da8069
NN
2756# these tools are built for the host environment
2757# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2758# know that we are building the simulator.
2759# binutils, gas and ld appear in that order because it makes sense to run
2760# "make check" in that particular order.
e6de499b 2761# If --enable-gold is used, "gold" may replace "ld".
a90ef4bf 2762host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
a0da8069
NN
2763
2764# libgcj represents the runtime libraries only used by gcj.
2765libgcj="target-libffi \
a0da8069 2766 target-zlib \
a0da8069
NN
2767 target-libjava"
2768
2769# these libraries are built for the target environment, and are built after
2770# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2771# Note that libiberty is not a target library.
b1299c4e 2772target_libraries="target-libgcc \
2bf680c4 2773 target-libbacktrace \
a0da8069
NN
2774 target-libgloss \
2775 target-newlib \
cff87f51 2776 target-libgomp \
522e3d71 2777 target-libcilkrts \
7ec59b9e 2778 target-libatomic \
d32e2926 2779 target-libitm \
b9459e83 2780 target-libstdc++-v3 \
5286fdef 2781 target-libsanitizer \
95e43135 2782 target-libvtv \
bb780410 2783 target-libssp \
e552509b 2784 target-libquadmath \
4b1cb4fe 2785 target-libgfortran \
4f0ef2d8 2786 target-boehm-gc \
83326456 2787 ${libgcj} \
a2592b1b 2788 target-libobjc \
e552509b
ILT
2789 target-libada \
2790 target-libgo"
a0da8069 2791
9c14acb8
NN
2792# these tools are built using the target libraries, and are intended to
2793# run only in the target environment
a0da8069 2794#
9c14acb8 2795# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2796# list belongs in this list.
a0da8069 2797#
a90ef4bf 2798target_tools="target-rda"
252b5132 2799
a0da8069 2800################################################################################
252b5132 2801
a0da8069
NN
2802## All tools belong in one of the four categories, and are assigned above
2803## We assign ${configdirs} this way to remove all embedded newlines. This
2804## is important because configure will choke if they ever get through.
2805## ${configdirs} is directories we build using the host tools.
2806## ${target_configdirs} is directories we build using the target tools.
a0da8069 2807configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2808target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2809build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2810
9cc8ae67
PB
2811
2812
a0da8069 2813################################################################################
252b5132 2814
a0da8069 2815srcname="gnu development package"
252b5132 2816
a0da8069
NN
2817# This gets set non-empty for some net releases of packages.
2818appdirs=""
252b5132 2819
a0da8069
NN
2820# Define is_cross_compiler to save on calls to 'test'.
2821is_cross_compiler=
2822if test x"${host}" = x"${target}" ; then
2823 is_cross_compiler=no
252b5132 2824else
a0da8069 2825 is_cross_compiler=yes
c6b750e1 2826fi
252b5132 2827
9175bfc0 2828# Find the build and target subdir names.
dd12c3a8 2829
66a79c16
DJ
2830# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2831# have matching libraries, they should use host libraries: Makefile.tpl
2832# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2833# However, they still use the build modules, because the corresponding
2834# host modules (e.g. bison) are only built for the host when bootstrap
2835# finishes. So:
2836# - build_subdir is where we find build modules, and never changes.
2837# - build_libsubdir is where we find build libraries, and can be overridden.
2838
2839# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2840build_subdir="build-${build_noncanonical}"
c6b750e1 2841
81ecdfbb
RW
2842# Check whether --with-build-libsubdir was given.
2843if test "${with_build_libsubdir+set}" = set; then :
2844 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2845else
2846 build_libsubdir="$build_subdir"
81ecdfbb
RW
2847fi
2848
b00612cc
PB
2849# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2850if ( test $srcdir = . && test -d gcc ) \
2851 || test -d $srcdir/../host-${host_noncanonical}; then
2852 host_subdir="host-${host_noncanonical}"
2853else
2854 host_subdir=.
2855fi
dd12c3a8
NN
2856# No prefix.
2857target_subdir=${target_noncanonical}
c6b750e1 2858
2fd0b40b
RW
2859# Be sure to cover against remnants of an in-tree build.
2860if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2861 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2862Use a pristine source tree when building in a separate tree" "$LINENO" 5
2863fi
252b5132 2864
a0da8069
NN
2865# Skipdirs are removed silently.
2866skipdirs=
2867# Noconfigdirs are removed loudly.
2868noconfigdirs=""
252b5132 2869
a0da8069
NN
2870use_gnu_ld=
2871# Make sure we don't let GNU ld be added if we didn't want it.
2872if test x$with_gnu_ld = xno ; then
2873 use_gnu_ld=no
93f9b408 2874 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2875fi
2876
a0da8069
NN
2877use_gnu_as=
2878# Make sure we don't let GNU as be added if we didn't want it.
2879if test x$with_gnu_as = xno ; then
2880 use_gnu_as=no
2881 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2882fi
2883
700d40ca
ILT
2884use_included_zlib=
2885# Make sure we don't let ZLIB be added if we didn't want it.
2886if test x$with_system_zlib = xyes ; then
2887 use_included_zlib=no
2888 noconfigdirs="$noconfigdirs zlib"
2889fi
2890
c6b750e1 2891# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2892# it's not even worth trying to configure, much less build, that tool.
252b5132 2893
a0da8069
NN
2894case ${with_x} in
2895 yes | "") ;; # the default value for this tree is that X11 is available
2896 no)
675c6968 2897 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2898 # We won't be able to build gdbtk without X.
c6b750e1 2899 enable_gdbtk=no
a0da8069
NN
2900 ;;
2901 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2902esac
252b5132 2903
0377a422 2904# Some are only suitable for cross toolchains.
a0da8069
NN
2905# Remove these if host=target.
2906cross_only="target-libgloss target-newlib target-opcodes"
2907
2908case $is_cross_compiler in
2909 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2910esac
252b5132 2911
a0da8069
NN
2912# If both --with-headers and --with-libs are specified, default to
2913# --without-newlib.
32be62b5
RS
2914if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2915 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2916 if test x"${with_newlib}" = x ; then
2917 with_newlib=no
2918 fi
252b5132
RH
2919fi
2920
a0da8069
NN
2921# Recognize --with-newlib/--without-newlib.
2922case ${with_newlib} in
2923 no) skipdirs="${skipdirs} target-newlib" ;;
2924 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2925esac
252b5132 2926
c7791212
NC
2927# Handle --enable-gold, --enable-ld.
2928# --disable-gold [--enable-ld]
2929# Build only ld. Default option.
d3b50760
L
2930# --enable-gold [--enable-ld]
2931# Build both gold and ld. Install gold as "ld.gold", install ld
2932# as "ld.bfd" and "ld".
2933# --enable-gold=default [--enable-ld]
c7791212
NC
2934# Build both gold and ld. Install gold as "ld.gold" and "ld",
2935# install ld as "ld.bfd".
2936# --enable-gold[=default] --disable-ld
2937# Build only gold, which is then installed as both "ld.gold" and "ld".
2938# --enable-gold --enable-ld=default
d3b50760
L
2939# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2940# and ld.bfd).
c7791212
NC
2941# In other words, ld is default
2942# --enable-gold=default --enable-ld=default
2943# Error.
2944
2945default_ld=
81ecdfbb
RW
2946# Check whether --enable-gold was given.
2947if test "${enable_gold+set}" = set; then :
2948 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2949else
2950 ENABLE_GOLD=no
81ecdfbb
RW
2951fi
2952
c7791212
NC
2953case "${ENABLE_GOLD}" in
2954 yes|default)
e6de499b
NC
2955 # Check for ELF target.
2956 is_elf=no
2957 case "${target}" in
2958 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 2959 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2960 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2bda3143 2961 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
2962 case "${target}" in
2963 *-*-linux*aout* | *-*-linux*oldld*)
2964 ;;
2965 *)
2966 is_elf=yes
2967 ;;
2968 esac
2969 esac
2970
2971 if test "$is_elf" = "yes"; then
2972 # Check for target supported by gold.
93f9b408 2973 case "${target}" in
5c0b3823 2974 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
c7791212
NC
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2978 fi
e6de499b 2979 ENABLE_GOLD=yes
93f9b408
ILT
2980 ;;
2981 esac
e6de499b
NC
2982 fi
2983 ;;
2984 no)
2985 ;;
2986 *)
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 ;;
c7791212
NC
2989esac
2990
2991# Check whether --enable-ld was given.
2992if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994else
2995 ENABLE_LD=yes
2996fi
2997
2998
2999case "${ENABLE_LD}" in
3000 default)
d3b50760 3001 if test x${default_ld} != x; then
c7791212
NC
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 fi
3004 ;;
3005 yes)
3006 ;;
3007 no)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011 fi
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 ;;
3014 *)
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 ;;
3017esac
93f9b408 3018
a0da8069 3019# Configure extra directories which are host specific
252b5132 3020
a0da8069
NN
3021case "${host}" in
3022 *-cygwin*)
3023 configdirs="$configdirs libtermcap" ;;
3024esac
252b5132 3025
59f7ec45
HPN
3026# A target can indicate whether a language isn't supported for some reason.
3027# Only spaces may be used in this macro; not newlines or tabs.
3028unsupported_languages=
3029
c6b750e1 3030# Remove more programs from consideration, based on the host or
a0da8069
NN
3031# target this usually means that a port of the program doesn't
3032# exist yet.
252b5132 3033
a0da8069 3034case "${host}" in
3516a403 3035 i[3456789]86-*-msdosdjgpp*)
6a608608 3036 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3037 ;;
a0da8069 3038esac
252b5132 3039
4b1cb4fe 3040
89a1e9c3
PB
3041# Check whether --enable-libquadmath was given.
3042if test "${enable_libquadmath+set}" = set; then :
3043 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3044else
3045 ENABLE_LIBQUADMATH=yes
3046fi
3047
3048if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3049 noconfigdirs="$noconfigdirs target-libquadmath"
3050fi
3051
3052
3053# Check whether --enable-libquadmath-support was given.
3054if test "${enable_libquadmath_support+set}" = set; then :
3055 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3056else
3057 ENABLE_LIBQUADMATH_SUPPORT=yes
3058fi
3059
3060enable_libquadmath_support=
3061if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3062 enable_libquadmath_support=no
3063fi
3064
3065
81ecdfbb
RW
3066# Check whether --enable-libada was given.
3067if test "${enable_libada+set}" = set; then :
3068 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3069else
3070 ENABLE_LIBADA=yes
81ecdfbb
RW
3071fi
3072
a2592b1b 3073if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3074 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3075fi
3076
81ecdfbb
RW
3077# Check whether --enable-libssp was given.
3078if test "${enable_libssp+set}" = set; then :
3079 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3080else
3081 ENABLE_LIBSSP=yes
81ecdfbb
RW
3082fi
3083
5f128533 3084
f66a9a70
L
3085# Check whether --enable-libstdcxx was given.
3086if test "${enable_libstdcxx+set}" = set; then :
3087 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3088else
3089 ENABLE_LIBSTDCXX=default
3090fi
3091
3092if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3093 noconfigdirs="$noconfigdirs libstdc++-v3"
3094fi
3095
a0da8069
NN
3096# Save it here so that, even in case of --enable-libgcj, if the Java
3097# front-end isn't enabled, we still get libgcj disabled.
3098libgcj_saved=$libgcj
3099case $enable_libgcj in
3100yes)
3101 # If we reset it here, it won't get added to noconfigdirs in the
3102 # target-specific build rules, so it will be forcibly enabled
3103 # (unless the Java language itself isn't enabled).
3104 libgcj=
3105 ;;
3106no)
3107 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3108 # Don't disable libffi, though, other languages use it.
3109 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3110 # Clear libgcj_saved so that even if java is enabled libffi won't be
3111 # built.
3112 libgcj_saved=
a0da8069
NN
3113 ;;
3114esac
252b5132 3115
ffdd6afc
ILT
3116# Check whether --enable-static-libjava was given.
3117if test "${enable_static_libjava+set}" = set; then :
3118 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3119else
3120 ENABLE_STATIC_LIBJAVA=no
3121fi
3122
3123enable_static_libjava=
3124if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3125 enable_static_libjava=yes
3126fi
3127
3128if test x$enable_static_libjava != xyes ; then
3129 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3130fi
3131
4b1cb4fe 3132
a6df5a19
PB
3133# Disable libgomp on non POSIX hosted systems.
3134if test x$enable_libgomp = x ; then
b3ded179
PB
3135 # Enable libgomp by default on hosted POSIX systems.
3136 case "${target}" in
29383458 3137 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3138 ;;
5b806d27 3139 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3140 ;;
2479f722 3141 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3142 ;;
3143 *-*-darwin* | *-*-aix*)
3144 ;;
3145 *)
3146 noconfigdirs="$noconfigdirs target-libgomp"
3147 ;;
3148 esac
a6df5a19 3149fi
b3ded179 3150
7ec59b9e
L
3151# Disable libatomic on unsupported systems.
3152if test -d ${srcdir}/libatomic; then
3153 if test x$enable_libatomic = x; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3155$as_echo_n "checking for libatomic support... " >&6; }
3156 if (srcdir=${srcdir}/libatomic; \
3157 . ${srcdir}/configure.tgt; \
3158 test -n "$UNSUPPORTED")
3159 then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161$as_echo "no" >&6; }
3162 noconfigdirs="$noconfigdirs target-libatomic"
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165$as_echo "yes" >&6; }
3166 fi
3167 fi
3168fi
3169
522e3d71 3170# Disable libcilkrts on unsupported systems.
3171if test -d ${srcdir}/libcilkrts; then
3172 if test x$enable_libcilkrts = x; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3174$as_echo_n "checking for libcilkrts support... " >&6; }
3175 if (srcdir=${srcdir}/libcilkrts; \
3176 . ${srcdir}/configure.tgt; \
3177 test -n "$UNSUPPORTED")
3178 then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181 noconfigdirs="$noconfigdirs target-libcilkrts"
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3184$as_echo "yes" >&6; }
3185 fi
3186 fi
3187fi
3188
d32e2926
RH
3189# Disable libitm on unsupported systems.
3190if test -d ${srcdir}/libitm; then
3191 if test x$enable_libitm = x; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3193$as_echo_n "checking for libitm support... " >&6; }
3194 if (srcdir=${srcdir}/libitm; \
3195 . ${srcdir}/configure.tgt; \
3196 test -n "$UNSUPPORTED")
3197 then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199$as_echo "no" >&6; }
3200 noconfigdirs="$noconfigdirs target-libitm"
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203$as_echo "yes" >&6; }
3204 fi
3205 fi
3206fi
3207
5286fdef
L
3208# Disable libsanitizer on unsupported systems.
3209if test -d ${srcdir}/libsanitizer; then
3210 if test x$enable_libsanitizer = x; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3212$as_echo_n "checking for libsanitizer support... " >&6; }
3213 if (srcdir=${srcdir}/libsanitizer; \
3214 . ${srcdir}/configure.tgt; \
3215 test -n "$UNSUPPORTED")
3216 then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
3219 noconfigdirs="$noconfigdirs target-libsanitizer"
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222$as_echo "yes" >&6; }
3223 fi
3224 fi
3225fi
3226
95e43135
JBG
3227# Disable libvtv on unsupported systems.
3228if test -d ${srcdir}/libvtv; then
3229 if test x$enable_libvtv = x; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3231$as_echo_n "checking for libvtv support... " >&6; }
3232 if (srcdir=${srcdir}/libvtv; \
3233 . ${srcdir}/configure.tgt; \
3234 test "$VTV_SUPPORTED" != "yes")
3235 then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238 noconfigdirs="$noconfigdirs target-libvtv"
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241$as_echo "yes" >&6; }
3242 fi
3243 fi
3244fi
3245
1488e230
DE
3246# Disable libquadmath for some systems.
3247case "${target}" in
5286fdef
L
3248 avr-*-*)
3249 noconfigdirs="$noconfigdirs target-libquadmath"
3250 ;;
1488e230
DE
3251 # libquadmath is unused on AIX and libquadmath build process use of
3252 # LD_LIBRARY_PATH can break AIX bootstrap.
3253 powerpc-*-aix* | rs6000-*-aix*)
3254 noconfigdirs="$noconfigdirs target-libquadmath"
3255 ;;
3256esac
3257
065a5627
JM
3258# Disable libssp for some systems.
3259case "${target}" in
3260 avr-*-*)
c5f5c3c2 3261 # No hosted I/O support.
065a5627
JM
3262 noconfigdirs="$noconfigdirs target-libssp"
3263 ;;
3264 powerpc-*-aix* | rs6000-*-aix*)
3265 noconfigdirs="$noconfigdirs target-libssp"
3266 ;;
99c513f6 3267 rl78-*-*)
202e2356
NC
3268 # libssp uses a misaligned load to trigger a fault, but the RL78
3269 # doesn't fault for those - instead, it gives a build-time error
3270 # for explicit misaligned loads.
99c513f6
DD
3271 noconfigdirs="$noconfigdirs target-libssp"
3272 ;;
065a5627
JM
3273esac
3274
065a5627 3275# Disable libstdc++-v3 for some systems.
f66a9a70
L
3276# Allow user to override this if they pass --enable-libstdc++-v3
3277if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3278 case "${target}" in
3279 *-*-vxworks*)
3280 # VxWorks uses the Dinkumware C++ library.
3281 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3282 ;;
3283 arm*-wince-pe*)
3284 # the C++ libraries don't build on top of CE's C libraries
3285 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3286 ;;
3287 avr-*-*)
3288 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3289 ;;
3290 esac
3291fi
065a5627
JM
3292
3293# Disable Fortran for some systems.
3294case "${target}" in
3295 mmix-*-*)
3296 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3297 unsupported_languages="$unsupported_languages fortran"
3298 ;;
3299esac
3300
0827f9a6 3301# Disable Java if libffi is not supported.
9863d716 3302case "${target}" in
e7d5abf1
JBG
3303 aarch64-*-*)
3304 ;;
0827f9a6
JM
3305 alpha*-*-*)
3306 ;;
3307 arm*-*-*)
3308 ;;
3309 cris-*-*)
3310 ;;
3311 frv-*-*)
3312 ;;
3313 hppa*-*-linux*)
3314 ;;
3315 hppa*-*-hpux*)
3316 ;;
3317 i?86-*-*)
3318 ;;
3319 ia64*-*-*)
3320 ;;
3321 m32r*-*-*)
3322 ;;
3323 m68k-*-*)
3324 ;;
2479f722 3325 mips*-*-rtems*)
0827f9a6
JM
3326 ;;
3327 mips*-*-linux*)
3328 ;;
3329 powerpc*-*-linux*)
3330 ;;
3331 powerpc-*-darwin*)
3332 ;;
3333 powerpc-*-aix* | rs6000-*-aix*)
3334 ;;
3335 powerpc-*-freebsd*)
3336 ;;
3337 powerpc64-*-freebsd*)
3338 ;;
3339 powerpc*-*-rtems*)
9863d716 3340 ;;
0827f9a6
JM
3341 s390-*-* | s390x-*-*)
3342 ;;
3343 sh-*-* | sh[34]*-*-*)
3344 ;;
3345 sh64-*-* | sh5*-*-*)
3346 ;;
3347 sparc*-*-*)
3348 ;;
3349 x86_64-*-*)
3350 ;;
3351 *-*-*)
3352 unsupported_languages="$unsupported_languages java"
3353 ;;
3354esac
3355
3356# Disable Java, libgcj or related libraries for some systems.
3357case "${target}" in
9863d716
JM
3358 powerpc-*-darwin*)
3359 ;;
3360 i[3456789]86-*-darwin*)
3361 ;;
3362 x86_64-*-darwin[912]*)
3363 ;;
3364 *-*-darwin*)
3365 noconfigdirs="$noconfigdirs ${libgcj}"
3366 ;;
9863d716
JM
3367 *-*-netware*)
3368 noconfigdirs="$noconfigdirs ${libgcj}"
3369 ;;
3370 *-*-rtems*)
3371 noconfigdirs="$noconfigdirs ${libgcj}"
3372 ;;
3373 *-*-tpf*)
3374 noconfigdirs="$noconfigdirs ${libgcj}"
3375 ;;
3376 *-*-uclinux*)
3377 noconfigdirs="$noconfigdirs ${libgcj}"
3378 ;;
3379 *-*-vxworks*)
3380 noconfigdirs="$noconfigdirs ${libgcj}"
3381 ;;
9863d716
JM
3382 alpha*-*-*vms*)
3383 noconfigdirs="$noconfigdirs ${libgcj}"
3384 ;;
0827f9a6 3385 arm-wince-pe)
9863d716
JM
3386 noconfigdirs="$noconfigdirs ${libgcj}"
3387 ;;
9863d716
JM
3388 arm*-*-symbianelf*)
3389 noconfigdirs="$noconfigdirs ${libgcj}"
3390 ;;
9863d716 3391 bfin-*-*)
9863d716
JM
3392 noconfigdirs="$noconfigdirs target-boehm-gc"
3393 ;;
9863d716
JM
3394 cris-*-* | crisv32-*-*)
3395 unsupported_languages="$unsupported_languages java"
3396 case "${target}" in
3397 *-*-linux*)
3398 ;;
3399 *) # See PR46792 regarding target-libffi.
3400 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3401 esac
3402 ;;
9863d716
JM
3403 hppa*64*-*-linux*)
3404 # In this case, it's because the hppa64-linux target is for
3405 # the kernel only at this point and has no libc, and thus no
3406 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3407 unsupported_languages="$unsupported_languages java"
9863d716 3408 ;;
82ae827f 3409 hppa*64*-*-hpux*)
9863d716
JM
3410 noconfigdirs="$noconfigdirs ${libgcj}"
3411 ;;
3412 hppa*-hp-hpux11*)
3413 ;;
82ae827f 3414 hppa*-*-hpux*)
9863d716
JM
3415 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3416 # build on HP-UX 10.20.
3417 noconfigdirs="$noconfigdirs ${libgcj}"
3418 ;;
9863d716
JM
3419 ia64*-*-*vms*)
3420 noconfigdirs="$noconfigdirs ${libgcj}"
3421 ;;
9863d716
JM
3422 i[3456789]86-w64-mingw*)
3423 noconfigdirs="$noconfigdirs ${libgcj}"
3424 ;;
3425 i[3456789]86-*-mingw*)
3426 noconfigdirs="$noconfigdirs ${libgcj}"
3427 ;;
3428 x86_64-*-mingw*)
3429 noconfigdirs="$noconfigdirs ${libgcj}"
3430 ;;
9863d716
JM
3431 mmix-*-*)
3432 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3433 ;;
3434 powerpc-*-aix*)
3435 # copied from rs6000-*-* entry
3436 noconfigdirs="$noconfigdirs ${libgcj}"
3437 ;;
9863d716
JM
3438 rs6000-*-aix*)
3439 noconfigdirs="$noconfigdirs ${libgcj}"
3440 ;;
9863d716
JM
3441 *-*-lynxos*)
3442 noconfigdirs="$noconfigdirs ${libgcj}"
3443 ;;
9863d716
JM
3444esac
3445
a413f71a
ILT
3446# Disable libgo for some systems where it is known to not work.
3447# For testing, you can easily override this with --enable-libgo.
3448if test x$enable_libgo = x; then
3449 case "${target}" in
3450 *-*-darwin*)
3451 # PR 46986
3452 noconfigdirs="$noconfigdirs target-libgo"
3453 ;;
3454 *-*-cygwin* | *-*-mingw*)
3455 noconfigdirs="$noconfigdirs target-libgo"
3456 ;;
3457 *-*-aix*)
3458 noconfigdirs="$noconfigdirs target-libgo"
3459 ;;
3460 esac
3461fi
3462
691bb5a1
DD
3463# Default libgloss CPU subdirectory.
3464libgloss_dir="$target_cpu"
4b1cb4fe 3465
ff46fb8f
JM
3466case "${target}" in
3467 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3468 libgloss_dir=wince
3469 ;;
f1dd87fc
YZ
3470 aarch64*-*-* )
3471 libgloss_dir=aarch64
3472 ;;
ff46fb8f
JM
3473 arm*-*-*)
3474 libgloss_dir=arm
3475 ;;
3476 cris-*-* | crisv32-*-*)
3477 libgloss_dir=cris
3478 ;;
3479 hppa*-*-*)
3480 libgloss_dir=pa
3481 ;;
3482 i[3456789]86-*-*)
3483 libgloss_dir=i386
3484 ;;
3485 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3486 libgloss_dir=m68hc11
3487 ;;
3488 m68*-*-* | fido-*-*)
3489 libgloss_dir=m68k
3490 ;;
3491 mips*-*-*)
3492 libgloss_dir=mips
3493 ;;
3494 powerpc*-*-*)
3495 libgloss_dir=rs6000
3496 ;;
3497 sparc*-*-*)
3498 libgloss_dir=sparc
3499 ;;
3500esac
3501
c7e4b184 3502# Disable newlib and libgloss for various target OSes.
a0da8069 3503case "${target}" in
c7e4b184
JM
3504 alpha*-dec-osf*)
3505 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3506 ;;
3507 i[3456789]86-*-linux*)
3508 # This section makes it possible to build newlib natively on linux.
3509 # If we are using a cross compiler then don't configure newlib.
3510 if test x${is_cross_compiler} != xno ; then
3511 noconfigdirs="$noconfigdirs target-newlib"
3512 fi
3513 noconfigdirs="$noconfigdirs target-libgloss"
3514 # If we are not using a cross compiler, do configure newlib.
3515 # Note however, that newlib will only be configured in this situation
3516 # if the --with-newlib option has been given, because otherwise
3517 # 'target-newlib' will appear in skipdirs.
3518 ;;
3519 i[3456789]86-*-rdos*)
3520 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3521 ;;
3522 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 sparc-*-sunos4*)
3526 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 ;;
3528 *-*-aix*)
3529 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 ;;
3531 *-*-beos*)
3532 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 ;;
a0da8069 3534 *-*-chorusos)
b2f14e4a 3535 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3536 ;;
c7e4b184
JM
3537 *-*-dragonfly*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
3540 *-*-freebsd*)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 ;;
3543 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 ;;
3546 *-*-lynxos*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 *-*-mingw*)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
3552 *-*-netbsd*)
3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 ;;
3555 *-*-netware*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 *-*-tpf*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 ;;
3561 *-*-uclinux*)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 *-*-vxworks*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567esac
3568
3569case "${target}" in
3570 *-*-chorusos)
3571 ;;
24741ab2 3572 powerpc-*-darwin*)
9d39db92 3573 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3574 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3575 ;;
85bd1942
TG
3576 i[3456789]86-*-darwin*)
3577 noconfigdirs="$noconfigdirs ld gprof"
3578 noconfigdirs="$noconfigdirs sim target-rda"
3579 ;;
e8a5fa9c 3580 x86_64-*-darwin[912]*)
652dec25
TG
3581 noconfigdirs="$noconfigdirs ld gas gprof"
3582 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3583 ;;
04d1ab34 3584 *-*-darwin*)
d320aacb 3585 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3586 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3587 ;;
5b806d27 3588 *-*-dragonfly*)
5b806d27 3589 ;;
de0b4a87 3590 *-*-freebsd*)
4b1cb4fe
DD
3591 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3592 && test -f /usr/local/include/gmp.h; then
3593 with_gmp=/usr/local
3594 fi
4b1cb4fe 3595 ;;
f8a495c8
NC
3596 *-*-kaos*)
3597 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3598 noconfigdirs="$noconfigdirs target-libgloss"
3599 ;;
a0da8069 3600 *-*-netbsd*)
a0da8069 3601 ;;
2a3124ca 3602 *-*-netware*)
a0da8069
NN
3603 ;;
3604 *-*-rtems*)
9863d716 3605 noconfigdirs="$noconfigdirs target-libgloss"
f8797b5a
JB
3606 # this is not caught below because this stanza matches earlier
3607 case $target in
3608 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3609 esac
a0da8069 3610 ;;
1587117a
EC
3611 # The tpf target doesn't support gdb yet.
3612 *-*-tpf*)
c7e4b184 3613 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3614 ;;
c1968181 3615 *-*-uclinux*)
c7e4b184 3616 noconfigdirs="$noconfigdirs target-rda"
c1968181 3617 ;;
a0da8069 3618 *-*-vxworks*)
a0da8069
NN
3619 ;;
3620 alpha*-dec-osf*)
3621 # ld works, but does not support shared libraries.
a0da8069 3622 # gas doesn't generate exception information.
c7e4b184 3623 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3624 ;;
3625 alpha*-*-*vms*)
9863d716 3626 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3627 ;;
a0da8069
NN
3628 alpha*-*-*)
3629 # newlib is not 64 bit ready
9863d716 3630 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3631 ;;
a0da8069 3632 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3633 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3634 ;;
f4cfb980 3635 arc-*-*|arceb-*-*)
782cb41f 3636 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3637 ;;
a0da8069 3638 arm-*-pe*)
9863d716 3639 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3640 ;;
a0da8069 3641 arm-*-riscix*)
b2f14e4a 3642 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3643 ;;
8e71395b
L
3644 avr-*-rtems*)
3645 ;;
3646 avr-*-*)
3647 if test x${with_avrlibc} != xno; then
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 fi
3650 ;;
a0da8069 3651 c4x-*-* | tic4x-*-*)
b2f14e4a 3652 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3653 ;;
b2f14e4a
JM
3654 tic54x-*-*)
3655 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3656 ;;
a0da8069 3657 d10v-*-*)
b2f14e4a 3658 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3659 ;;
3660 d30v-*-*)
b2f14e4a 3661 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3662 ;;
3663 fr30-*-elf*)
9863d716 3664 noconfigdirs="$noconfigdirs gdb"
a0da8069 3665 ;;
20135e4c 3666 moxie-*-*)
20135e4c
NC
3667 noconfigdirs="$noconfigdirs gprof"
3668 ;;
a0da8069 3669 h8300*-*-*)
9863d716 3670 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3671 ;;
3672 h8500-*-*)
b2f14e4a 3673 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3674 ;;
caeba88f 3675 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3676 ;;
93cc359e 3677 hppa*64*-*-linux*)
a0da8069 3678 ;;
f0ff0f90 3679 hppa*-*-linux*)
5dcac624 3680 ;;
a0da8069 3681 hppa*-*-*elf* | \
a0da8069
NN
3682 hppa*-*-lites* | \
3683 hppa*-*-openbsd* | \
3684 hppa*64*-*-*)
4f0ef2d8
CD
3685 ;;
3686 hppa*-hp-hpux11*)
0377a422 3687 noconfigdirs="$noconfigdirs ld"
a0da8069 3688 ;;
691bb5a1 3689 hppa*-*-pro*)
691bb5a1 3690 ;;
a0da8069 3691 hppa*-*-*)
9863d716 3692 noconfigdirs="$noconfigdirs ld"
a0da8069 3693 ;;
b07c2aad 3694 i960-*-*)
b2f14e4a 3695 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3696 ;;
a0da8069
NN
3697 ia64*-*-elf*)
3698 # No gdb support yet.
0377a422 3699 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3700 ;;
3701 ia64*-**-hpux*)
92c9a463 3702 # No ld support yet.
9863d716 3703 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3704 ;;
19e99079 3705 ia64*-*-*vms*)
7ec59b9e
L
3706 # No ld support yet.
3707 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3708 ;;
1f53ca9a 3709 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3710 ;;
3711 i[3456789]86-*-mingw*)
45055374 3712 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3713 ;;
a0da8069
NN
3714 *-*-cygwin*)
3715 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3716 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3717 # always build newlib if winsup directory is present.
45055374 3718 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3719 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3720 elif test -d "$srcdir/newlib"; then
45055374 3721 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3722 fi
c6b750e1 3723 ;;
ec11bdc6 3724 i[3456789]86-*-pe)
782cb41f 3725 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3726 ;;
ec11bdc6 3727 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3728 # The linker does not yet know about weak symbols in COFF,
3729 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3730 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3731 ;;
ec11bdc6 3732 i[3456789]86-*-sco*)
b2f14e4a 3733 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3734 ;;
cff32a7c 3735 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3736 noconfigdirs="$noconfigdirs target-libgloss"
3737 ;;
ec11bdc6 3738 i[3456789]86-*-sysv4*)
b2f14e4a 3739 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3740 ;;
ec11bdc6 3741 i[3456789]86-*-beos*)
c7e4b184 3742 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3743 ;;
b59bea8a 3744 i[3456789]86-*-rdos*)
c7e4b184 3745 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3746 ;;
a0da8069 3747 mmix-*-*)
9863d716 3748 noconfigdirs="$noconfigdirs gdb"
a0da8069 3749 ;;
4970f871 3750 mt-*-*)
cdb9b172
AH
3751 noconfigdirs="$noconfigdirs sim"
3752 ;;
a0da8069
NN
3753 powerpc-*-aix*)
3754 # copied from rs6000-*-* entry
c7e4b184 3755 noconfigdirs="$noconfigdirs gprof"
a0da8069 3756 ;;
93cc359e 3757 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3758 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3759 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3760 # always build newlib.
3761 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3762 ;;
3763 # This is temporary until we can link against shared libraries
3764 powerpcle-*-solaris*)
b2f14e4a 3765 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3766 ;;
3767 powerpc-*-beos*)
c7e4b184 3768 noconfigdirs="$noconfigdirs gdb"
a0da8069 3769 ;;
a0da8069 3770 rs6000-*-lynxos*)
c7e4b184 3771 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3772 ;;
3773 rs6000-*-aix*)
c7e4b184 3774 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3775 ;;
3776 rs6000-*-*)
9863d716 3777 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3778 ;;
3779 m68k-apollo-*)
b2f14e4a 3780 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3781 ;;
25a07265 3782 microblaze*)
9863d716 3783 noconfigdirs="$noconfigdirs gprof"
25a07265 3784 ;;
a9d58c06 3785 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3786 if test x$with_newlib = xyes; then
3787 noconfigdirs="$noconfigdirs gprof"
3788 fi
5bd8be13 3789 ;;
a0da8069 3790 mips*-*-irix5*)
b2f14e4a 3791 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3792 ;;
3793 mips*-*-irix6*)
9863d716 3794 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3795 ;;
a0da8069 3796 mips*-*-bsd*)
e8044f35 3797 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3798 ;;
a0da8069 3799 mips*-*-linux*)
a0da8069 3800 ;;
e8044f35
RS
3801 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3802 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3803 noconfigdirs="$noconfigdirs ld gas gprof"
3804 ;;
a0da8069 3805 mips*-*-*)
9863d716 3806 noconfigdirs="$noconfigdirs gprof"
a0da8069 3807 ;;
b25b5cef
CJW
3808 nds32*-*-*)
3809 noconfigdirs="$noconfigdirs gdb"
3810 ;;
cfbc1a6c
JS
3811 or1k*-*-*)
3812 noconfigdirs="$noconfigdirs gdb"
3813 ;;
dbf85af7 3814 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3815 case "${target}" in
3816 sh*-*-elf)
9863d716 3817 ;;
e8a5fa9c 3818 *)
9863d716 3819 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3820 esac
a0da8069 3821 ;;
a0da8069 3822 sparc-*-sunos4*)
c7e4b184 3823 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3824 use_gnu_ld=no
3825 fi
3826 ;;
619a3713 3827 tic6x-*-*)
40ae9136 3828 noconfigdirs="$noconfigdirs sim"
619a3713 3829 ;;
68d122bb 3830 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3831 noconfigdirs="$noconfigdirs sim"
3832 ;;
a0da8069 3833 v810-*-*)
b2f14e4a 3834 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3835 ;;
3836 vax-*-*)
9863d716 3837 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3838 ;;
a0da8069 3839esac
252b5132 3840
a0da8069
NN
3841# If we aren't building newlib, then don't build libgloss, since libgloss
3842# depends upon some newlib header files.
3843case "${noconfigdirs}" in
3844 *target-libgloss*) ;;
3845 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3846esac
3847
a0da8069 3848# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3849host_makefile_frag=/dev/null
3850if test -d ${srcdir}/config ; then
3851case "${host}" in
ec11bdc6 3852 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3853 host_makefile_frag="config/mh-djgpp"
3854 ;;
3855 *-cygwin*)
e33b51a6 3856
81ecdfbb
RW
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3858$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3859echo a >cygwin-cat-check
1f53ca9a 3860if test `cat cygwin-cat-check` = a ; then
8ade07e9 3861 rm cygwin-cat-check
81ecdfbb
RW
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3863$as_echo "yes" >&6; }
e33b51a6 3864else
8ade07e9 3865 rm cygwin-cat-check
81ecdfbb
RW
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867$as_echo "no" >&6; }
3868 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3869 Please either mount the build directory in binary mode or run the following
3870 commands before running any configure script:
3871set -o igncr
3872export SHELLOPTS
81ecdfbb 3873 " "$LINENO" 5
e33b51a6 3874fi
e33b51a6 3875
a0da8069
NN
3876 host_makefile_frag="config/mh-cygwin"
3877 ;;
8a1599ab 3878 *-mingw*)
84e7906e 3879 host_makefile_frag="config/mh-mingw"
2d1e8239 3880 ;;
da888c87 3881 hppa*-hp-hpux10*)
da888c87 3882 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3883 ;;
3516a403 3884 hppa*-hp-hpux*)
da888c87
PB
3885 host_makefile_frag="config/mh-pa"
3886 ;;
3887 hppa*-*)
3888 host_makefile_frag="config/mh-pa"
3889 ;;
e552509b
ILT
3890 *-*-darwin*)
3891 host_makefile_frag="config/mh-darwin"
0df3d27f 3892 ;;
f6d183c0
PB
3893 powerpc-*-aix*)
3894 host_makefile_frag="config/mh-ppc-aix"
3895 ;;
3896 rs6000-*-aix*)
3897 host_makefile_frag="config/mh-ppc-aix"
3898 ;;
a0da8069
NN
3899esac
3900fi
3901
9e07f89d 3902if test "${build}" != "${host}" ; then
1576798e
PB
3903 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3904 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3905 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3906 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3907 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3908 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3909 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3910 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3911 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3912 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3913 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3914 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3915 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3916else
3917 AR_FOR_BUILD="\$(AR)"
3918 AS_FOR_BUILD="\$(AS)"
512b7dfb 3919 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3920 CXX_FOR_BUILD="\$(CXX)"
3921 GCJ_FOR_BUILD="\$(GCJ)"
3922 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3923 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3924 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3925 LD_FOR_BUILD="\$(LD)"
3926 NM_FOR_BUILD="\$(NM)"
3927 RANLIB_FOR_BUILD="\$(RANLIB)"
3928 WINDRES_FOR_BUILD="\$(WINDRES)"
3929 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3930fi
3931
3932ac_ext=c
c6b750e1
DJ
3933ac_cpp='$CPP $CPPFLAGS'
3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937if test -n "$ac_tool_prefix"; then
3938 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3939set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941$as_echo_n "checking for $ac_word... " >&6; }
3942if test "${ac_cv_prog_CC+set}" = set; then :
3943 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3944else
3945 if test -n "$CC"; then
3946 ac_cv_prog_CC="$CC" # Let the user override the test.
3947else
3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949for as_dir in $PATH
3950do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3955 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3957 break 2
3958 fi
3959done
81ecdfbb
RW
3960 done
3961IFS=$as_save_IFS
c6b750e1
DJ
3962
3963fi
3964fi
3965CC=$ac_cv_prog_CC
3966if test -n "$CC"; then
81ecdfbb
RW
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968$as_echo "$CC" >&6; }
c6b750e1 3969else
81ecdfbb
RW
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971$as_echo "no" >&6; }
c6b750e1
DJ
3972fi
3973
81ecdfbb 3974
c6b750e1
DJ
3975fi
3976if test -z "$ac_cv_prog_CC"; then
3977 ac_ct_CC=$CC
6a9cf61e 3978 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3979set dummy gcc; ac_word=$2
81ecdfbb
RW
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981$as_echo_n "checking for $ac_word... " >&6; }
3982if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3984else
3985 if test -n "$ac_ct_CC"; then
3986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3987else
3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH
3990do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3995 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3997 break 2
3998 fi
3999done
81ecdfbb
RW
4000 done
4001IFS=$as_save_IFS
c6b750e1
DJ
4002
4003fi
4004fi
4005ac_ct_CC=$ac_cv_prog_ac_ct_CC
4006if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4008$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4009else
81ecdfbb
RW
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011$as_echo "no" >&6; }
c6b750e1
DJ
4012fi
4013
81ecdfbb
RW
4014 if test "x$ac_ct_CC" = x; then
4015 CC=""
4016 else
4017 case $cross_compiling:$ac_tool_warned in
4018yes:)
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4021ac_tool_warned=yes ;;
4022esac
4023 CC=$ac_ct_CC
4024 fi
c6b750e1
DJ
4025else
4026 CC="$ac_cv_prog_CC"
4027fi
4028
4029if test -z "$CC"; then
81ecdfbb
RW
4030 if test -n "$ac_tool_prefix"; then
4031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4032set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034$as_echo_n "checking for $ac_word... " >&6; }
4035if test "${ac_cv_prog_CC+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
9e07f89d
NN
4037else
4038 if test -n "$CC"; then
4039 ac_cv_prog_CC="$CC" # Let the user override the test.
4040else
c6b750e1
DJ
4041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042for as_dir in $PATH
4043do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4048 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4050 break 2
4051 fi
4052done
81ecdfbb
RW
4053 done
4054IFS=$as_save_IFS
c6b750e1 4055
9e07f89d
NN
4056fi
4057fi
c6b750e1 4058CC=$ac_cv_prog_CC
9e07f89d 4059if test -n "$CC"; then
81ecdfbb
RW
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4061$as_echo "$CC" >&6; }
c6b750e1 4062else
81ecdfbb
RW
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064$as_echo "no" >&6; }
c6b750e1
DJ
4065fi
4066
c6b750e1 4067
81ecdfbb 4068 fi
c6b750e1 4069fi
9e07f89d
NN
4070if test -z "$CC"; then
4071 # Extract the first word of "cc", so it can be a program name with args.
4072set dummy cc; ac_word=$2
81ecdfbb
RW
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074$as_echo_n "checking for $ac_word... " >&6; }
4075if test "${ac_cv_prog_CC+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
9e07f89d
NN
4077else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080else
9e07f89d 4081 ac_prog_rejected=no
c6b750e1
DJ
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4090 ac_prog_rejected=yes
4091 continue
4092 fi
4093 ac_cv_prog_CC="cc"
81ecdfbb 4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4095 break 2
4096 fi
4097done
81ecdfbb
RW
4098 done
4099IFS=$as_save_IFS
c6b750e1 4100
9e07f89d
NN
4101if test $ac_prog_rejected = yes; then
4102 # We found a bogon in the path, so make sure we never use it.
4103 set dummy $ac_cv_prog_CC
4104 shift
c6b750e1 4105 if test $# != 0; then
9e07f89d
NN
4106 # We chose a different compiler from the bogus one.
4107 # However, it has the same basename, so the bogon will be chosen
4108 # first if we set CC to just the basename; use the full file name.
4109 shift
c6b750e1 4110 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4111 fi
4112fi
4113fi
4114fi
c6b750e1 4115CC=$ac_cv_prog_CC
9e07f89d 4116if test -n "$CC"; then
81ecdfbb
RW
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4118$as_echo "$CC" >&6; }
9e07f89d 4119else
81ecdfbb
RW
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121$as_echo "no" >&6; }
9e07f89d
NN
4122fi
4123
81ecdfbb 4124
c6b750e1
DJ
4125fi
4126if test -z "$CC"; then
4127 if test -n "$ac_tool_prefix"; then
81ecdfbb 4128 for ac_prog in cl.exe
c6b750e1
DJ
4129 do
4130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133$as_echo_n "checking for $ac_word... " >&6; }
4134if test "${ac_cv_prog_CC+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
9e07f89d
NN
4136else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139else
c6b750e1
DJ
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4149 break 2
376a0e54 4150 fi
c6b750e1 4151done
81ecdfbb
RW
4152 done
4153IFS=$as_save_IFS
cac3d6c4 4154
c6b750e1
DJ
4155fi
4156fi
4157CC=$ac_cv_prog_CC
4158if test -n "$CC"; then
81ecdfbb
RW
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4160$as_echo "$CC" >&6; }
cac3d6c4 4161else
81ecdfbb
RW
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163$as_echo "no" >&6; }
9e07f89d 4164fi
cac3d6c4 4165
81ecdfbb 4166
c6b750e1
DJ
4167 test -n "$CC" && break
4168 done
cac3d6c4 4169fi
c6b750e1
DJ
4170if test -z "$CC"; then
4171 ac_ct_CC=$CC
81ecdfbb 4172 for ac_prog in cl.exe
c6b750e1
DJ
4173do
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177$as_echo_n "checking for $ac_word... " >&6; }
4178if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
cac3d6c4 4180else
c6b750e1
DJ
4181 if test -n "$ac_ct_CC"; then
4182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4183else
c6b750e1
DJ
4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4191 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4193 break 2
4194 fi
4195done
81ecdfbb
RW
4196 done
4197IFS=$as_save_IFS
c6b750e1 4198
cac3d6c4
CM
4199fi
4200fi
c6b750e1
DJ
4201ac_ct_CC=$ac_cv_prog_ac_ct_CC
4202if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4204$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4205else
81ecdfbb
RW
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207$as_echo "no" >&6; }
cac3d6c4 4208fi
376a0e54 4209
81ecdfbb 4210
c6b750e1
DJ
4211 test -n "$ac_ct_CC" && break
4212done
4213
81ecdfbb
RW
4214 if test "x$ac_ct_CC" = x; then
4215 CC=""
4216 else
4217 case $cross_compiling:$ac_tool_warned in
4218yes:)
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221ac_tool_warned=yes ;;
4222esac
4223 CC=$ac_ct_CC
4224 fi
c6b750e1
DJ
4225fi
4226
4227fi
4228
4229
81ecdfbb
RW
4230test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4232as_fn_error "no acceptable C compiler found in \$PATH
4233See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4234
4235# Provide some information about the compiler.
81ecdfbb
RW
4236$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4237set X $ac_compile
4238ac_compiler=$2
4239for ac_option in --version -v -V -qversion; do
4240 { { ac_try="$ac_compiler $ac_option >&5"
4241case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244esac
4245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246$as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4248 ac_status=$?
81ecdfbb
RW
4249 if test -s conftest.err; then
4250 sed '10a\
4251... rest of stderr output deleted ...
4252 10q' conftest.err >conftest.er1
4253 cat conftest.er1 >&5
4254 rm -f conftest.er1 conftest.err
4255 fi
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }
4258done
c6b750e1 4259
81ecdfbb 4260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4261/* end confdefs.h. */
4262
4263int
4264main ()
4265{
4266
4267 ;
4268 return 0;
4269}
4270_ACEOF
4271ac_clean_files_save=$ac_clean_files
81ecdfbb 4272ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4273# Try to create an executable without -o first, disregard a.out.
4274# It will help us diagnose broken compilers, and finding out an intuition
4275# of exeext.
81ecdfbb
RW
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4277$as_echo_n "checking for C compiler default output file name... " >&6; }
4278ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4279
4280# The possible output files:
4281ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4282
4283ac_rmfiles=
4284for ac_file in $ac_files
4285do
4286 case $ac_file in
4287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4288 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4289 esac
4290done
4291rm -f $ac_rmfiles
4292
4293if { { ac_try="$ac_link_default"
4294case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299$as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_link_default") 2>&5
c6b750e1 4301 ac_status=$?
81ecdfbb
RW
4302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; }; then :
4304 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4305# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4306# in a Makefile. We should not override ac_cv_exeext if it was cached,
4307# so that the user can short-circuit this test for compilers unknown to
4308# Autoconf.
4309for ac_file in $ac_files ''
c6b750e1
DJ
4310do
4311 test -f "$ac_file" || continue
4312 case $ac_file in
81ecdfbb 4313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4314 ;;
4315 [ab].out )
4316 # We found the default executable, but exeext='' is most
4317 # certainly right.
4318 break;;
4319 *.* )
81ecdfbb
RW
4320 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4321 then :; else
4322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4323 fi
4324 # We set ac_cv_exeext here because the later test for it is not
4325 # safe: cross compilers may not add the suffix if given an `-o'
4326 # argument, so we may need to know it at that point already.
4327 # Even if this section looks crufty: it has the advantage of
4328 # actually working.
c6b750e1
DJ
4329 break;;
4330 * )
4331 break;;
4332 esac
4333done
81ecdfbb
RW
4334test "$ac_cv_exeext" = no && ac_cv_exeext=
4335
c6b750e1 4336else
81ecdfbb
RW
4337 ac_file=''
4338fi
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4340$as_echo "$ac_file" >&6; }
4341if test -z "$ac_file"; then :
4342 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4343sed 's/^/| /' conftest.$ac_ext >&5
4344
81ecdfbb
RW
4345{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347{ as_fn_set_status 77
4348as_fn_error "C compiler cannot create executables
4349See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4350fi
c6b750e1 4351ac_exeext=$ac_cv_exeext
c6b750e1 4352
81ecdfbb 4353# Check that the compiler produces executables we can run. If not, either
c6b750e1 4354# the compiler is broken, or we cross compile.
81ecdfbb
RW
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4356$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4357# If not cross compiling, check that we can run a simple program.
4358if test "$cross_compiling" != yes; then
4359 if { ac_try='./$ac_file'
81ecdfbb
RW
4360 { { case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363esac
4364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365$as_echo "$ac_try_echo"; } >&5
4366 (eval "$ac_try") 2>&5
c6b750e1 4367 ac_status=$?
81ecdfbb
RW
4368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; }; }; then
c6b750e1
DJ
4370 cross_compiling=no
4371 else
4372 if test "$cross_compiling" = maybe; then
4373 cross_compiling=yes
4374 else
81ecdfbb
RW
4375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4377as_fn_error "cannot run C compiled programs.
c6b750e1 4378If you meant to cross compile, use \`--host'.
81ecdfbb 4379See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4380 fi
4381 fi
4382fi
81ecdfbb
RW
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4384$as_echo "yes" >&6; }
c6b750e1 4385
81ecdfbb 4386rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4387ac_clean_files=$ac_clean_files_save
81ecdfbb 4388# Check that the compiler produces executables we can run. If not, either
c6b750e1 4389# the compiler is broken, or we cross compile.
81ecdfbb
RW
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4391$as_echo_n "checking whether we are cross compiling... " >&6; }
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4393$as_echo "$cross_compiling" >&6; }
4394
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4396$as_echo_n "checking for suffix of executables... " >&6; }
4397if { { ac_try="$ac_link"
4398case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
4402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403$as_echo "$ac_try_echo"; } >&5
4404 (eval "$ac_link") 2>&5
c6b750e1 4405 ac_status=$?
81ecdfbb
RW
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }; then :
c6b750e1
DJ
4408 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4409# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4410# work properly (i.e., refer to `conftest.exe'), while it won't with
4411# `rm'.
4412for ac_file in conftest.exe conftest conftest.*; do
4413 test -f "$ac_file" || continue
4414 case $ac_file in
81ecdfbb 4415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4416 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4417 break;;
4418 * ) break;;
4419 esac
4420done
4421else
81ecdfbb
RW
4422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4424as_fn_error "cannot compute suffix of executables: cannot compile and link
4425See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4426fi
c6b750e1 4427rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4429$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4430
4431rm -f conftest.$ac_ext
4432EXEEXT=$ac_cv_exeext
4433ac_exeext=$EXEEXT
81ecdfbb
RW
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4435$as_echo_n "checking for suffix of object files... " >&6; }
4436if test "${ac_cv_objext+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
c6b750e1 4438else
81ecdfbb 4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4440/* end confdefs.h. */
4441
4442int
4443main ()
4444{
4445
4446 ;
4447 return 0;
4448}
4449_ACEOF
4450rm -f conftest.o conftest.obj
81ecdfbb
RW
4451if { { ac_try="$ac_compile"
4452case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455esac
4456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457$as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_compile") 2>&5
c6b750e1 4459 ac_status=$?
81ecdfbb
RW
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; }; then :
4462 for ac_file in conftest.o conftest.obj conftest.*; do
4463 test -f "$ac_file" || continue;
c6b750e1 4464 case $ac_file in
81ecdfbb 4465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4467 break;;
4468 esac
4469done
cac3d6c4 4470else
81ecdfbb 4471 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
81ecdfbb
RW
4474{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476as_fn_error "cannot compute suffix of object files: cannot compile
4477See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4478fi
c6b750e1
DJ
4479rm -f conftest.$ac_cv_objext conftest.$ac_ext
4480fi
81ecdfbb
RW
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4482$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4483OBJEXT=$ac_cv_objext
4484ac_objext=$OBJEXT
81ecdfbb
RW
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4486$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4487if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
c6b750e1 4489else
81ecdfbb 4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4491/* end confdefs.h. */
4492
4493int
4494main ()
4495{
4496#ifndef __GNUC__
4497 choke me
4498#endif
4499
4500 ;
4501 return 0;
4502}
4503_ACEOF
81ecdfbb 4504if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4505 ac_compiler_gnu=yes
4506else
81ecdfbb 4507 ac_compiler_gnu=no
c6b750e1 4508fi
81ecdfbb 4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4510ac_cv_c_compiler_gnu=$ac_compiler_gnu
4511
4512fi
81ecdfbb
RW
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4514$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4515if test $ac_compiler_gnu = yes; then
4516 GCC=yes
4517else
4518 GCC=
4519fi
c6b750e1
DJ
4520ac_test_CFLAGS=${CFLAGS+set}
4521ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4523$as_echo_n "checking whether $CC accepts -g... " >&6; }
4524if test "${ac_cv_prog_cc_g+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526else
4527 ac_save_c_werror_flag=$ac_c_werror_flag
4528 ac_c_werror_flag=yes
4529 ac_cv_prog_cc_g=no
4530 CFLAGS="-g"
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4532/* end confdefs.h. */
4533
4534int
4535main ()
4536{
4537
4538 ;
4539 return 0;
4540}
4541_ACEOF
81ecdfbb 4542if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4543 ac_cv_prog_cc_g=yes
4544else
81ecdfbb
RW
4545 CFLAGS=""
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547/* end confdefs.h. */
4548
4549int
4550main ()
4551{
4552
4553 ;
4554 return 0;
4555}
4556_ACEOF
4557if ac_fn_c_try_compile "$LINENO"; then :
4558
4559else
4560 ac_c_werror_flag=$ac_save_c_werror_flag
4561 CFLAGS="-g"
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563/* end confdefs.h. */
cac3d6c4 4564
81ecdfbb
RW
4565int
4566main ()
4567{
4568
4569 ;
4570 return 0;
4571}
4572_ACEOF
4573if ac_fn_c_try_compile "$LINENO"; then :
4574 ac_cv_prog_cc_g=yes
4575fi
4576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4577fi
81ecdfbb 4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4579fi
81ecdfbb
RW
4580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_c_werror_flag=$ac_save_c_werror_flag
4582fi
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4584$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4585if test "$ac_test_CFLAGS" = set; then
c6b750e1 4586 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4587elif test $ac_cv_prog_cc_g = yes; then
4588 if test "$GCC" = yes; then
4589 CFLAGS="-g -O2"
4590 else
4591 CFLAGS="-g"
4592 fi
4593else
4594 if test "$GCC" = yes; then
4595 CFLAGS="-O2"
4596 else
4597 CFLAGS=
4598 fi
4599fi
81ecdfbb
RW
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4601$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4602if test "${ac_cv_prog_cc_c89+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
c6b750e1 4604else
81ecdfbb 4605 ac_cv_prog_cc_c89=no
c6b750e1 4606ac_save_CC=$CC
81ecdfbb 4607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4608/* end confdefs.h. */
4609#include <stdarg.h>
4610#include <stdio.h>
4611#include <sys/types.h>
4612#include <sys/stat.h>
4613/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4614struct buf { int x; };
4615FILE * (*rcsopen) (struct buf *, struct stat *, int);
4616static char *e (p, i)
4617 char **p;
4618 int i;
4619{
4620 return p[i];
4621}
4622static char *f (char * (*g) (char **, int), char **p, ...)
4623{
4624 char *s;
4625 va_list v;
4626 va_start (v,p);
4627 s = g (p, va_arg (v,int));
4628 va_end (v);
4629 return s;
4630}
4631
4632/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4633 function prototypes and stuff, but not '\xHH' hex character constants.
4634 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4635 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4636 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4637 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4638 that's true only with -std. */
c6b750e1
DJ
4639int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4640
81ecdfbb
RW
4641/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4642 inside strings and character constants. */
4643#define FOO(x) 'x'
4644int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4645
c6b750e1
DJ
4646int test (int i, double x);
4647struct s1 {int (*f) (int a);};
4648struct s2 {int (*f) (double a);};
4649int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4650int argc;
4651char **argv;
4652int
4653main ()
4654{
4655return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4656 ;
4657 return 0;
4658}
4659_ACEOF
81ecdfbb
RW
4660for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4662do
4663 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4666fi
81ecdfbb
RW
4667rm -f core conftest.err conftest.$ac_objext
4668 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4669done
81ecdfbb 4670rm -f conftest.$ac_ext
c6b750e1
DJ
4671CC=$ac_save_CC
4672
4673fi
81ecdfbb
RW
4674# AC_CACHE_VAL
4675case "x$ac_cv_prog_cc_c89" in
4676 x)
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4678$as_echo "none needed" >&6; } ;;
4679 xno)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4681$as_echo "unsupported" >&6; } ;;
c6b750e1 4682 *)
81ecdfbb
RW
4683 CC="$CC $ac_cv_prog_cc_c89"
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4685$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4686esac
81ecdfbb 4687if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4688
c6b750e1
DJ
4689fi
4690
c6b750e1
DJ
4691ac_ext=c
4692ac_cpp='$CPP $CPPFLAGS'
4693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4695ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4696
81ecdfbb 4697ac_ext=cpp
18f6b6ee
PB
4698ac_cpp='$CXXCPP $CPPFLAGS'
4699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4702if test -z "$CXX"; then
4703 if test -n "$CCC"; then
4704 CXX=$CCC
4705 else
4706 if test -n "$ac_tool_prefix"; then
4707 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4708 do
4709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4710set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712$as_echo_n "checking for $ac_word... " >&6; }
4713if test "${ac_cv_prog_CXX+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4715else
4716 if test -n "$CXX"; then
4717 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4718else
4719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720for as_dir in $PATH
4721do
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4726 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4728 break 2
4729 fi
4730done
81ecdfbb
RW
4731 done
4732IFS=$as_save_IFS
512b7dfb 4733
18f6b6ee
PB
4734fi
4735fi
4736CXX=$ac_cv_prog_CXX
4737if test -n "$CXX"; then
81ecdfbb
RW
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4739$as_echo "$CXX" >&6; }
18f6b6ee 4740else
81ecdfbb
RW
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742$as_echo "no" >&6; }
18f6b6ee
PB
4743fi
4744
81ecdfbb 4745
18f6b6ee
PB
4746 test -n "$CXX" && break
4747 done
4748fi
4749if test -z "$CXX"; then
4750 ac_ct_CXX=$CXX
81ecdfbb 4751 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4752do
4753 # Extract the first word of "$ac_prog", so it can be a program name with args.
4754set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756$as_echo_n "checking for $ac_word... " >&6; }
4757if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4759else
4760 if test -n "$ac_ct_CXX"; then
4761 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4770 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4772 break 2
512b7dfb 4773 fi
18f6b6ee 4774done
81ecdfbb
RW
4775 done
4776IFS=$as_save_IFS
512b7dfb 4777
18f6b6ee
PB
4778fi
4779fi
4780ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4781if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4783$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4784else
81ecdfbb
RW
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786$as_echo "no" >&6; }
18f6b6ee
PB
4787fi
4788
81ecdfbb 4789
18f6b6ee
PB
4790 test -n "$ac_ct_CXX" && break
4791done
18f6b6ee 4792
81ecdfbb
RW
4793 if test "x$ac_ct_CXX" = x; then
4794 CXX="g++"
4795 else
4796 case $cross_compiling:$ac_tool_warned in
4797yes:)
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800ac_tool_warned=yes ;;
4801esac
4802 CXX=$ac_ct_CXX
4803 fi
18f6b6ee
PB
4804fi
4805
81ecdfbb
RW
4806 fi
4807fi
18f6b6ee 4808# Provide some information about the compiler.
81ecdfbb
RW
4809$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4810set X $ac_compile
4811ac_compiler=$2
4812for ac_option in --version -v -V -qversion; do
4813 { { ac_try="$ac_compiler $ac_option >&5"
4814case "(($ac_try" in
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4817esac
4818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4819$as_echo "$ac_try_echo"; } >&5
4820 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4821 ac_status=$?
81ecdfbb
RW
4822 if test -s conftest.err; then
4823 sed '10a\
4824... rest of stderr output deleted ...
4825 10q' conftest.err >conftest.er1
4826 cat conftest.er1 >&5
4827 rm -f conftest.er1 conftest.err
4828 fi
4829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4830 test $ac_status = 0; }
4831done
18f6b6ee 4832
81ecdfbb
RW
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4834$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4835if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4836 $as_echo_n "(cached) " >&6
18f6b6ee 4837else
81ecdfbb 4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4839/* end confdefs.h. */
4840
4841int
4842main ()
4843{
4844#ifndef __GNUC__
4845 choke me
4846#endif
4847
4848 ;
4849 return 0;
4850}
4851_ACEOF
81ecdfbb 4852if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4853 ac_compiler_gnu=yes
4854else
81ecdfbb 4855 ac_compiler_gnu=no
18f6b6ee 4856fi
81ecdfbb 4857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4858ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4859
4860fi
81ecdfbb
RW
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4862$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4863if test $ac_compiler_gnu = yes; then
4864 GXX=yes
4865else
4866 GXX=
4867fi
18f6b6ee
PB
4868ac_test_CXXFLAGS=${CXXFLAGS+set}
4869ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4871$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4872if test "${ac_cv_prog_cxx_g+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874else
4875 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4876 ac_cxx_werror_flag=yes
4877 ac_cv_prog_cxx_g=no
4878 CXXFLAGS="-g"
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4880/* end confdefs.h. */
4881
4882int
4883main ()
4884{
4885
4886 ;
4887 return 0;
4888}
4889_ACEOF
81ecdfbb 4890if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4891 ac_cv_prog_cxx_g=yes
4892else
81ecdfbb
RW
4893 CXXFLAGS=""
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4895/* end confdefs.h. */
81ecdfbb 4896
18f6b6ee
PB
4897int
4898main ()
4899{
81ecdfbb 4900
18f6b6ee
PB
4901 ;
4902 return 0;
4903}
4904_ACEOF
81ecdfbb 4905if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4906
81ecdfbb
RW
4907else
4908 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4909 CXXFLAGS="-g"
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4911/* end confdefs.h. */
81ecdfbb 4912
18f6b6ee
PB
4913int
4914main ()
4915{
81ecdfbb 4916
18f6b6ee
PB
4917 ;
4918 return 0;
4919}
4920_ACEOF
81ecdfbb
RW
4921if ac_fn_cxx_try_compile "$LINENO"; then :
4922 ac_cv_prog_cxx_g=yes
18f6b6ee 4923fi
81ecdfbb
RW
4924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925fi
4926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927fi
4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4930fi
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4932$as_echo "$ac_cv_prog_cxx_g" >&6; }
4933if test "$ac_test_CXXFLAGS" = set; then
4934 CXXFLAGS=$ac_save_CXXFLAGS
4935elif test $ac_cv_prog_cxx_g = yes; then
4936 if test "$GXX" = yes; then
4937 CXXFLAGS="-g -O2"
4938 else
4939 CXXFLAGS="-g"
4940 fi
4941else
4942 if test "$GXX" = yes; then
4943 CXXFLAGS="-O2"
4944 else
4945 CXXFLAGS=
4946 fi
18f6b6ee 4947fi
18f6b6ee
PB
4948ac_ext=c
4949ac_cpp='$CPP $CPPFLAGS'
4950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952ac_compiler_gnu=$ac_cv_c_compiler_gnu
4953
4954
4955# We must set the default linker to the linker used by gcc for the correct
4956# operation of libtool. If LD is not defined and we are using gcc, try to
4957# set the LD default to the ld used by gcc.
4958if test -z "$LD"; then
4959 if test "$GCC" = yes; then
4960 case $build in
4961 *-*-mingw*)
4962 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4963 *)
4964 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4965 esac
4966 case $gcc_prog_ld in
4967 # Accept absolute paths.
4968 [\\/]* | [A-Za-z]:[\\/]*)
4969 LD="$gcc_prog_ld" ;;
4970 esac
4971 fi
512b7dfb
PB
4972fi
4973
b3676d82
EB
4974# Check whether -static-libstdc++ -static-libgcc is supported.
4975have_static_libs=no
4976if test "$GCC" = yes; then
4977 saved_LDFLAGS="$LDFLAGS"
4978
4979 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4981$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4982 ac_ext=cpp
4983ac_cpp='$CXXCPP $CPPFLAGS'
4984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4987
4988
4989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h. */
a882be68
EB
4991
4992#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4993#error -static-libstdc++ not implemented
4994#endif
b3676d82
EB
4995int main() {}
4996_ACEOF
4997if ac_fn_cxx_try_link "$LINENO"; then :
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4999$as_echo "yes" >&6; }; have_static_libs=yes
5000else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002$as_echo "no" >&6; }
5003fi
5004rm -f core conftest.err conftest.$ac_objext \
5005 conftest$ac_exeext conftest.$ac_ext
5006 ac_ext=c
5007ac_cpp='$CPP $CPPFLAGS'
5008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010ac_compiler_gnu=$ac_cv_c_compiler_gnu
5011
5012
5013 LDFLAGS="$saved_LDFLAGS"
5014fi
5015
512b7dfb
PB
5016
5017
5018
c6b750e1 5019if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5020 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5021set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023$as_echo_n "checking for $ac_word... " >&6; }
5024if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5025 $as_echo_n "(cached) " >&6
9e07f89d 5026else
512b7dfb
PB
5027 if test -n "$GNATBIND"; then
5028 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5029else
c6b750e1
DJ
5030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5037 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5039 break 2
5040 fi
5041done
81ecdfbb
RW
5042 done
5043IFS=$as_save_IFS
c6b750e1 5044
9e07f89d
NN
5045fi
5046fi
512b7dfb
PB
5047GNATBIND=$ac_cv_prog_GNATBIND
5048if test -n "$GNATBIND"; then
81ecdfbb
RW
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5050$as_echo "$GNATBIND" >&6; }
9e07f89d 5051else
81ecdfbb
RW
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053$as_echo "no" >&6; }
9e07f89d
NN
5054fi
5055
81ecdfbb 5056
c6b750e1 5057fi
512b7dfb
PB
5058if test -z "$ac_cv_prog_GNATBIND"; then
5059 ac_ct_GNATBIND=$GNATBIND
5060 # Extract the first word of "gnatbind", so it can be a program name with args.
5061set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063$as_echo_n "checking for $ac_word... " >&6; }
5064if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
9e07f89d 5066else
512b7dfb
PB
5067 if test -n "$ac_ct_GNATBIND"; then
5068 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5069else
c6b750e1
DJ
5070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071for as_dir in $PATH
5072do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5077 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5079 break 2
5080 fi
5081done
81ecdfbb
RW
5082 done
5083IFS=$as_save_IFS
c6b750e1 5084
9e07f89d
NN
5085fi
5086fi
512b7dfb
PB
5087ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5088if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5090$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5091else
81ecdfbb
RW
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093$as_echo "no" >&6; }
9e07f89d
NN
5094fi
5095
81ecdfbb
RW
5096 if test "x$ac_ct_GNATBIND" = x; then
5097 GNATBIND="no"
5098 else
5099 case $cross_compiling:$ac_tool_warned in
5100yes:)
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103ac_tool_warned=yes ;;
5104esac
5105 GNATBIND=$ac_ct_GNATBIND
5106 fi
24ff9987 5107else
512b7dfb 5108 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5109fi
5110
7df2cd5d 5111if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5112 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5113set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115$as_echo_n "checking for $ac_word... " >&6; }
5116if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
7df2cd5d 5118else
512b7dfb
PB
5119 if test -n "$GNATMAKE"; then
5120 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5121else
5122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH
5124do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5129 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5131 break 2
5132 fi
5133done
81ecdfbb
RW
5134 done
5135IFS=$as_save_IFS
7df2cd5d
PB
5136
5137fi
5138fi
512b7dfb
PB
5139GNATMAKE=$ac_cv_prog_GNATMAKE
5140if test -n "$GNATMAKE"; then
81ecdfbb
RW
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5142$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5143else
81ecdfbb
RW
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145$as_echo "no" >&6; }
7df2cd5d
PB
5146fi
5147
81ecdfbb 5148
7df2cd5d 5149fi
512b7dfb
PB
5150if test -z "$ac_cv_prog_GNATMAKE"; then
5151 ac_ct_GNATMAKE=$GNATMAKE
5152 # Extract the first word of "gnatmake", so it can be a program name with args.
5153set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155$as_echo_n "checking for $ac_word... " >&6; }
5156if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
7df2cd5d 5158else
512b7dfb
PB
5159 if test -n "$ac_ct_GNATMAKE"; then
5160 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5169 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5171 break 2
5172 fi
5173done
81ecdfbb
RW
5174 done
5175IFS=$as_save_IFS
7df2cd5d 5176
7df2cd5d
PB
5177fi
5178fi
512b7dfb
PB
5179ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5180if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5182$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5183else
81ecdfbb
RW
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185$as_echo "no" >&6; }
7df2cd5d
PB
5186fi
5187
81ecdfbb
RW
5188 if test "x$ac_ct_GNATMAKE" = x; then
5189 GNATMAKE="no"
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192yes:)
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195ac_tool_warned=yes ;;
5196esac
5197 GNATMAKE=$ac_ct_GNATMAKE
5198 fi
7df2cd5d 5199else
512b7dfb 5200 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5201fi
5202
81ecdfbb
RW
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5204$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5205if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
9e07f89d
NN
5207else
5208 cat >conftest.adb <<EOF
5209procedure conftest is begin null; end conftest;
5210EOF
5211acx_cv_cc_gcc_supports_ada=no
5212# There is a bug in old released versions of GCC which causes the
5213# driver to exit successfully when the appropriate language module
5214# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5215# Therefore we must check for the error message as well as an
5216# unsuccessful exit.
b8908782
DD
5217# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5218# given a .adb file, but produce no object file. So we must check
5219# if an object file was really produced to guard against this.
9e07f89d 5220errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5221if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5222 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5223fi
5224rm -f conftest.*
5225fi
81ecdfbb
RW
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5227$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5228
64b986c0 5229if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5230 have_gnat=yes
5231else
5232 have_gnat=no
5233fi
5234
81ecdfbb
RW
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5236$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5237if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
b8908782
DD
5239else
5240 echo abfoo >t1
5241 echo cdfoo >t2
5242 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5243 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5244 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5245 :
5246 else
5247 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5248 fi
5249 fi
b8908782
DD
5250 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5251 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5252 :
b8908782
DD
5253 else
5254 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5255 fi
5256 fi
5257 rm t1 t2
5258
5259fi
81ecdfbb
RW
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5261$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5262do_compare="$gcc_cv_prog_cmp_skip"
5263
5264
9e07f89d 5265
ffdd6afc
ILT
5266# Check whether --enable-bootstrap was given.
5267if test "${enable_bootstrap+set}" = set; then :
5268 enableval=$enable_bootstrap;
5269else
5270 enable_bootstrap=default
5271fi
5272
5273
5274# Issue errors and warnings for invalid/strange bootstrap combinations.
5275if test -r $srcdir/gcc/configure; then
5276 have_compiler=yes
5277else
5278 have_compiler=no
5279fi
5280
5281case "$have_compiler:$host:$target:$enable_bootstrap" in
5282 *:*:*:no) ;;
5283
5284 # Default behavior. Enable bootstrap if we have a compiler
5285 # and we are in a native configuration.
5286 yes:$build:$build:default)
5287 enable_bootstrap=yes ;;
5288
5289 *:*:*:default)
5290 enable_bootstrap=no ;;
5291
5292 # We have a compiler and we are in a native configuration, bootstrap is ok
5293 yes:$build:$build:yes)
5294 ;;
5295
5296 # Other configurations, but we have a compiler. Assume the user knows
5297 # what he's doing.
5298 yes:*:*:yes)
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5300$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5301 ;;
5302
5303 # No compiler: if they passed --enable-bootstrap explicitly, fail
5304 no:*:*:yes)
5305 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5306
5307 # Fail if wrong command line
5308 *)
5309 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5310 ;;
5311esac
5312
d5f2ee2e
KG
5313# Used for setting $lt_cv_objdir
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5315$as_echo_n "checking for objdir... " >&6; }
5316if test "${lt_cv_objdir+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5318else
5319 rm -f .libs 2>/dev/null
5320mkdir .libs 2>/dev/null
5321if test -d .libs; then
5322 lt_cv_objdir=.libs
5323else
5324 # MS-DOS does not allow filenames that begin with a dot.
5325 lt_cv_objdir=_libs
5326fi
5327rmdir .libs 2>/dev/null
5328fi
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5330$as_echo "$lt_cv_objdir" >&6; }
5331objdir=$lt_cv_objdir
5332
5333
5334
5335
5336
5337cat >>confdefs.h <<_ACEOF
5338#define LT_OBJDIR "$lt_cv_objdir/"
5339_ACEOF
5340
5341
5342
e8a5fa9c 5343# Check for GMP, MPFR and MPC
d9b76ff9 5344gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5345gmpinc=
4b900473 5346have_gmp=no
e8a5fa9c
RW
5347
5348# Specify a location for mpc
5349# check for this first so it ends up on the link line before mpfr.
5350
81ecdfbb
RW
5351# Check whether --with-mpc was given.
5352if test "${with_mpc+set}" = set; then :
5353 withval=$with_mpc;
5354fi
e8a5fa9c 5355
e8a5fa9c 5356
e552509b 5357# Check whether --with-mpc-include was given.
81ecdfbb
RW
5358if test "${with_mpc_include+set}" = set; then :
5359 withval=$with_mpc_include;
5360fi
e8a5fa9c 5361
e8a5fa9c 5362
e552509b 5363# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5364if test "${with_mpc_lib+set}" = set; then :
5365 withval=$with_mpc_lib;
5366fi
e8a5fa9c 5367
e8a5fa9c
RW
5368
5369if test "x$with_mpc" != x; then
d9b76ff9
KG
5370 gmplibs="-L$with_mpc/lib $gmplibs"
5371 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5372fi
5373if test "x$with_mpc_include" != x; then
d9b76ff9 5374 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5375fi
5376if test "x$with_mpc_lib" != x; then
d9b76ff9 5377 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5378fi
5379if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5380 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5381 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5382 # Do not test the mpc version. Assume that it is sufficient, since
5383 # it is in the source tree, and the library has not been built yet
5384 # but it would be included on the link line in the version check below
5385 # hence making the test fail.
d9b76ff9 5386 have_gmp=yes
e8a5fa9c 5387fi
4b900473 5388
11b04d1f
DD
5389# Specify a location for mpfr
5390# check for this first so it ends up on the link line before gmp.
c6b750e1 5391
81ecdfbb
RW
5392# Check whether --with-mpfr-dir was given.
5393if test "${with_mpfr_dir+set}" = set; then :
5394 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5395Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5396fi
5397
11b04d1f
DD
5398
5399
81ecdfbb
RW
5400# Check whether --with-mpfr was given.
5401if test "${with_mpfr+set}" = set; then :
5402 withval=$with_mpfr;
5403fi
c6b750e1 5404
11b04d1f 5405
e552509b 5406# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5407if test "${with_mpfr_include+set}" = set; then :
5408 withval=$with_mpfr_include;
5409fi
c6b750e1 5410
8a0d8a5c 5411
e552509b 5412# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5413if test "${with_mpfr_lib+set}" = set; then :
5414 withval=$with_mpfr_lib;
5415fi
8a0d8a5c 5416
11b04d1f
DD
5417
5418if test "x$with_mpfr" != x; then
5419 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5420 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5421fi
8a0d8a5c 5422if test "x$with_mpfr_include" != x; then
d9b76ff9 5423 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5424fi
5425if test "x$with_mpfr_lib" != x; then
5426 gmplibs="-L$with_mpfr_lib $gmplibs"
5427fi
4b900473 5428if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5429 # MPFR v3.1.0 moved the sources into a src sub-directory.
5430 if test -d ${srcdir}/mpfr/src; then
5431 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5432 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5433 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5434 else
5435 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5436 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5437 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5438 fi
4b900473
PB
5439 # Do not test the mpfr version. Assume that it is sufficient, since
5440 # it is in the source tree, and the library has not been built yet
5441 # but it would be included on the link line in the version check below
5442 # hence making the test fail.
5443 have_gmp=yes
5444fi
11b04d1f 5445
4b1cb4fe 5446# Specify a location for gmp
c6b750e1 5447
81ecdfbb
RW
5448# Check whether --with-gmp-dir was given.
5449if test "${with_gmp_dir+set}" = set; then :
5450 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5451Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5452fi
5453
4b1cb4fe
DD
5454
5455
81ecdfbb
RW
5456# Check whether --with-gmp was given.
5457if test "${with_gmp+set}" = set; then :
5458 withval=$with_gmp;
5459fi
c6b750e1 5460
4b1cb4fe 5461
e552509b 5462# Check whether --with-gmp-include was given.
81ecdfbb
RW
5463if test "${with_gmp_include+set}" = set; then :
5464 withval=$with_gmp_include;
5465fi
c6b750e1 5466
8a0d8a5c 5467
e552509b 5468# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5469if test "${with_gmp_lib+set}" = set; then :
5470 withval=$with_gmp_lib;
5471fi
8a0d8a5c
PB
5472
5473
4b1cb4fe 5474
11b04d1f
DD
5475if test "x$with_gmp" != x; then
5476 gmplibs="-L$with_gmp/lib $gmplibs"
5477 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5478fi
8a0d8a5c
PB
5479if test "x$with_gmp_include" != x; then
5480 gmpinc="-I$with_gmp_include $gmpinc"
5481fi
5482if test "x$with_gmp_lib" != x; then
5483 gmplibs="-L$with_gmp_lib $gmplibs"
5484fi
4b900473 5485if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5486 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5487 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5488 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5489 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5490 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5491 # Do not test the gmp version. Assume that it is sufficient, since
5492 # it is in the source tree, and the library has not been built yet
5493 # but it would be included on the link line in the version check below
5494 # hence making the test fail.
5495 have_gmp=yes
5496fi
4b1cb4fe 5497
ceb92e78 5498if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5499 have_gmp=yes
5500 saved_CFLAGS="$CFLAGS"
5501 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5502 # Check for the recommended and required versions of GMP.
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5504$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5505
5506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5507/* end confdefs.h. */
5508#include "gmp.h"
5509int
5510main ()
5511{
5512
5513 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5514 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5515 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5516 choke me
5517 #endif
5518
5519 ;
5520 return 0;
5521}
5522_ACEOF
5523if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5525/* end confdefs.h. */
a6b5846e 5526#include <gmp.h>
c6b750e1
DJ
5527int
5528main ()
5529{
4b1cb4fe 5530
a6b5846e
KG
5531 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5532 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5533 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5534 choke me
5535 #endif
c6b750e1
DJ
5536
5537 ;
5538 return 0;
5539}
5540_ACEOF
81ecdfbb
RW
5541if ac_fn_c_try_compile "$LINENO"; then :
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5543$as_echo "yes" >&6; }
a6b5846e
KG
5544else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5546$as_echo "buggy but acceptable" >&6; }
5547fi
5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5549else
81ecdfbb
RW
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5552fi
81ecdfbb 5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5554
e8a5fa9c 5555 # If we have GMP, check the MPFR version.
4b900473 5556 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5557 # Check for the recommended and required versions of MPFR.
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5559$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5561/* end confdefs.h. */
9b134994 5562#include <gmp.h>
4b900473 5563 #include <mpfr.h>
c6b750e1
DJ
5564int
5565main ()
5566{
9b134994 5567
7ec59b9e 5568 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5569 choke me
5570 #endif
c6b750e1
DJ
5571
5572 ;
5573 return 0;
5574}
5575_ACEOF
81ecdfbb
RW
5576if ac_fn_c_try_compile "$LINENO"; then :
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5578/* end confdefs.h. */
4b1cb4fe 5579#include <gmp.h>
4b900473 5580 #include <mpfr.h>
c6b750e1
DJ
5581int
5582main ()
5583{
9dbaa842 5584
a6b5846e 5585 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5586 choke me
5587 #endif
e8a5fa9c
RW
5588
5589 ;
5590 return 0;
5591}
5592_ACEOF
81ecdfbb
RW
5593if ac_fn_c_try_compile "$LINENO"; then :
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5595$as_echo "yes" >&6; }
e8a5fa9c 5596else
81ecdfbb
RW
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5598$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5599fi
81ecdfbb 5600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5601else
81ecdfbb
RW
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5604fi
81ecdfbb 5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5606 fi
5607
5608 # Check for the MPC header version.
d9b76ff9 5609 if test x"$have_gmp" = xyes ; then
a6b5846e 5610 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5612$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5614/* end confdefs.h. */
5615#include <mpc.h>
5616int
5617main ()
5618{
5619
a6b5846e
KG
5620 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5621 choke me
5622 #endif
5623
5624 ;
5625 return 0;
5626}
5627_ACEOF
5628if ac_fn_c_try_compile "$LINENO"; then :
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h. */
5631#include <mpc.h>
5632int
5633main ()
5634{
5635
5636 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5637 choke me
5638 #endif
5639
5640 ;
5641 return 0;
5642}
5643_ACEOF
81ecdfbb
RW
5644if ac_fn_c_try_compile "$LINENO"; then :
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5646$as_echo "yes" >&6; }
a6b5846e
KG
5647else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5649$as_echo "buggy but acceptable" >&6; }
5650fi
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5652else
81ecdfbb 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5654$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5655fi
81ecdfbb 5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5657 fi
5658
5659 # Now check the MPFR library.
5660 if test x"$have_gmp" = xyes; then
5661 saved_LIBS="$LIBS"
5662 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5664$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5666/* end confdefs.h. */
d9b76ff9 5667#include <mpc.h>
e8a5fa9c
RW
5668int
5669main ()
5670{
5671
5672 mpfr_t n;
5673 mpfr_t x;
d9b76ff9 5674 mpc_t c;
e8a5fa9c
RW
5675 int t;
5676 mpfr_init (n);
5677 mpfr_init (x);
5678 mpfr_atan2 (n, n, x, GMP_RNDN);
5679 mpfr_erfc (n, x, GMP_RNDN);
5680 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5681 mpfr_clear(n);
5682 mpfr_clear(x);
5683 mpc_init2 (c, 53);
5684 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5685 mpc_cosh (c, c, MPC_RNDNN);
5686 mpc_pow (c, c, c, MPC_RNDNN);
5687 mpc_acosh (c, c, MPC_RNDNN);
5688 mpc_clear (c);
c6b750e1
DJ
5689
5690 ;
5691 return 0;
5692}
5693_ACEOF
81ecdfbb
RW
5694if ac_fn_c_try_link "$LINENO"; then :
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696$as_echo "yes" >&6; }
c6b750e1 5697else
81ecdfbb
RW
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5700fi
81ecdfbb
RW
5701rm -f core conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5703 LIBS="$saved_LIBS"
5704 fi
5705
4b900473 5706 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5707
a6b5846e
KG
5708# The library versions listed in the error message below should match
5709# the HARD-minimums enforced above.
4b900473 5710 if test x$have_gmp != xyes; then
7ec59b9e 5711 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5712Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5713their locations. Source code for these libraries can be found at
5714their respective hosting sites as well as at
5715ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5716http://gcc.gnu.org/install/prerequisites.html for additional info. If
5717you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5718make sure that you have installed both the libraries and the header
5719files. They may be located in separate packages." "$LINENO" 5
4b900473 5720 fi
9dbaa842
DD
5721fi
5722
e8a5fa9c
RW
5723# Flags needed for both GMP, MPFR and/or MPC.
5724
5725
5726
4b1cb4fe
DD
5727
5728
5729
7ec59b9e 5730
29383458
JM
5731# Allow host libstdc++ to be specified for static linking with PPL.
5732
81ecdfbb
RW
5733# Check whether --with-host-libstdcxx was given.
5734if test "${with_host_libstdcxx+set}" = set; then :
5735 withval=$with_host_libstdcxx;
5736fi
29383458 5737
29383458
JM
5738
5739case $with_host_libstdcxx in
5740 no|yes)
81ecdfbb 5741 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5742 ;;
5743esac
e28c595f 5744
b3676d82 5745# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5746
b3676d82
EB
5747# Check whether --with-stage1-libs was given.
5748if test "${with_stage1_libs+set}" = set; then :
5749 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5750 stage1_libs=
e8a5fa9c 5751 else
b3676d82 5752 stage1_libs=$withval
e8a5fa9c
RW
5753 fi
5754else
b3676d82 5755 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5756fi
5757
e8a5fa9c
RW
5758
5759
b3676d82 5760# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5761
b3676d82
EB
5762# Check whether --with-stage1-ldflags was given.
5763if test "${with_stage1_ldflags+set}" = set; then :
5764 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5765 stage1_ldflags=
e8a5fa9c 5766 else
b3676d82 5767 stage1_ldflags=$withval
e8a5fa9c
RW
5768 fi
5769else
b3676d82
EB
5770 stage1_ldflags=
5771 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5772 # if supported. But if the user explicitly specified the libraries to use,
5773 # trust that they are doing what they want.
5774 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5775 stage1_ldflags="-static-libstdc++ -static-libgcc"
5776 fi
81ecdfbb
RW
5777fi
5778
e8a5fa9c
RW
5779
5780
e8a5fa9c
RW
5781# Libraries to use for stage2 and later builds. This defaults to the
5782# argument passed to --with-host-libstdcxx.
5783
81ecdfbb
RW
5784# Check whether --with-boot-libs was given.
5785if test "${with_boot_libs+set}" = set; then :
5786 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5787 poststage1_libs=
5788 else
5789 poststage1_libs=$withval
5790 fi
5791else
5792 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5793fi
5794
e8a5fa9c
RW
5795
5796
143754cd
NC
5797# Linker flags to use for stage2 and later builds.
5798
5799# Check whether --with-boot-ldflags was given.
5800if test "${with_boot_ldflags+set}" = set; then :
5801 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5802 poststage1_ldflags=
5803 else
5804 poststage1_ldflags=$withval
5805 fi
5806else
5807 poststage1_ldflags=
4f11b223
ILT
5808 # In stages 2 and 3, default to linking libstdc++ and libgcc
5809 # statically. But if the user explicitly specified the libraries to
5810 # use, trust that they are doing what they want.
5811 if test "$poststage1_libs" = ""; then
143754cd
NC
5812 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5813 fi
5814fi
5815
5816
5817
8e71395b
L
5818# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5819# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5820# config/isl.m4
5821
5822
5823# Check whether --with-cloog was given.
5824if test "${with_cloog+set}" = set; then :
5825 withval=$with_cloog;
5826fi
e28c595f
JM
5827
5828
7ec59b9e
L
5829# Check whether --with-isl was given.
5830if test "${with_isl+set}" = set; then :
5831 withval=$with_isl;
81ecdfbb 5832fi
e28c595f 5833
e28c595f 5834
8e71395b
L
5835# Treat either --without-cloog or --without-isl as a request to disable
5836# GRAPHITE support and skip all following checks.
5837if test "x$with_isl" != "xno" &&
5838 test "x$with_cloog" != "xno"; then
5839 # Check for ISL
5840
5841
7ec59b9e
L
5842# Check whether --with-isl-include was given.
5843if test "${with_isl_include+set}" = set; then :
5844 withval=$with_isl_include;
81ecdfbb
RW
5845fi
5846
e28c595f 5847
7ec59b9e
L
5848# Check whether --with-isl-lib was given.
5849if test "${with_isl_lib+set}" = set; then :
5850 withval=$with_isl_lib;
81ecdfbb 5851fi
e28c595f 5852
e28c595f 5853
7ec59b9e
L
5854 # Check whether --enable-isl-version-check was given.
5855if test "${enable_isl_version_check+set}" = set; then :
5856 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5857else
5858 ENABLE_ISL_CHECK=yes
b123da99
SP
5859fi
5860
5861
7ec59b9e
L
5862 # Initialize isllibs and islinc.
5863 case $with_isl in
5864 no)
5865 isllibs=
5866 islinc=
5867 ;;
5868 "" | yes)
5869 ;;
5870 *)
5871 isllibs="-L$with_isl/lib"
5872 islinc="-I$with_isl/include"
5873 ;;
5874 esac
5875 if test "x${with_isl_include}" != x ; then
5876 islinc="-I$with_isl_include"
5877 fi
5878 if test "x${with_isl_lib}" != x; then
5879 isllibs="-L$with_isl_lib"
5880 fi
5881 if test "x${islinc}" = x && test "x${isllibs}" = x \
5882 && test -d ${srcdir}/isl; then
5883 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5884 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5885 ENABLE_ISL_CHECK=no
3dae1673
JBG
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5887$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
7ec59b9e 5888 fi
b123da99 5889
b123da99 5890
e28c595f 5891
7ec59b9e
L
5892 if test "${ENABLE_ISL_CHECK}" = yes ; then
5893 _isl_saved_CFLAGS=$CFLAGS
5894 _isl_saved_LDFLAGS=$LDFLAGS
5895 _isl_saved_LIBS=$LIBS
5896
5897 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5898 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5899 LIBS="${_isl_saved_LIBS} -lisl"
7ec59b9e
L
5900
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5902$as_echo_n "checking for version 0.10 of ISL... " >&6; }
3dae1673 5903 if test "$cross_compiling" = yes; then :
7ec59b9e
L
5904 gcc_cv_isl=yes
5905else
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b123da99 5907/* end confdefs.h. */
7ec59b9e
L
5908#include <isl/version.h>
5909 #include <string.h>
b123da99
SP
5910int
5911main ()
5912{
7ec59b9e
L
5913if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5914 return 1;
5915
b123da99
SP
5916 ;
5917 return 0;
5918}
5919_ACEOF
7ec59b9e
L
5920if ac_fn_c_try_run "$LINENO"; then :
5921 gcc_cv_isl=yes
e28c595f 5922else
7ec59b9e 5923 gcc_cv_isl=no
b123da99 5924fi
7ec59b9e
L
5925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5926 conftest.$ac_objext conftest.beam conftest.$ac_ext
b123da99 5927fi
7ec59b9e 5928
3dae1673
JBG
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5930$as_echo "$gcc_cv_isl" >&6; }
5931
5932 CFLAGS=$_isl_saved_CFLAGS
5933 LDFLAGS=$_isl_saved_LDFLAGS
5934 LIBS=$_isl_saved_LIBS
5935 fi
5936
5937
5938 if test "${gcc_cv_isl}" = no ; then
5939
5940 if test "${ENABLE_ISL_CHECK}" = yes ; then
5941 _isl_saved_CFLAGS=$CFLAGS
5942 _isl_saved_LDFLAGS=$LDFLAGS
5943 _isl_saved_LIBS=$LIBS
5944
5945 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5946 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5947 LIBS="${_isl_saved_LIBS} -lisl"
3dae1673
JBG
5948
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5950$as_echo_n "checking for version 0.11 of ISL... " >&6; }
5951 if test "$cross_compiling" = yes; then :
5952 gcc_cv_isl=yes
5953else
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h. */
5956#include <isl/version.h>
5957 #include <string.h>
5958int
5959main ()
5960{
5961if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5962 return 1;
5963
5964 ;
5965 return 0;
5966}
5967_ACEOF
5968if ac_fn_c_try_run "$LINENO"; then :
5969 gcc_cv_isl=yes
5970else
5971 gcc_cv_isl=no
5972fi
5973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5974 conftest.$ac_objext conftest.beam conftest.$ac_ext
81ecdfbb 5975fi
3dae1673
JBG
5976
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
7ec59b9e 5978$as_echo "$gcc_cv_isl" >&6; }
81ecdfbb 5979
7ec59b9e
L
5980 CFLAGS=$_isl_saved_CFLAGS
5981 LDFLAGS=$_isl_saved_LDFLAGS
5982 LIBS=$_isl_saved_LIBS
b123da99 5983 fi
e28c595f 5984
b123da99 5985
b3fc79f8
JBG
5986 if test "${gcc_cv_isl}" = no ; then
5987
5988 if test "${ENABLE_ISL_CHECK}" = yes ; then
5989 _isl_saved_CFLAGS=$CFLAGS
5990 _isl_saved_LDFLAGS=$LDFLAGS
5991 _isl_saved_LIBS=$LIBS
5992
5993 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5994 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5995 LIBS="${_isl_saved_LIBS} -lisl"
5996
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
5998$as_echo_n "checking for version 0.12 of ISL... " >&6; }
5999 if test "$cross_compiling" = yes; then :
6000 gcc_cv_isl=yes
6001else
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003/* end confdefs.h. */
6004#include <isl/version.h>
6005 #include <string.h>
6006int
6007main ()
6008{
6009if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6010 return 1;
6011
6012 ;
6013 return 0;
6014}
6015_ACEOF
6016if ac_fn_c_try_run "$LINENO"; then :
6017 gcc_cv_isl=yes
6018else
6019 gcc_cv_isl=no
6020fi
6021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6022 conftest.$ac_objext conftest.beam conftest.$ac_ext
6023fi
6024
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6026$as_echo "$gcc_cv_isl" >&6; }
6027
6028 CFLAGS=$_isl_saved_CFLAGS
6029 LDFLAGS=$_isl_saved_LDFLAGS
6030 LIBS=$_isl_saved_LIBS
6031 fi
6032
6033
6034 fi
3dae1673 6035 fi
e28c595f 6036
e28c595f 6037
7ec59b9e
L
6038
6039
7ec59b9e
L
6040 if test "x${with_isl}" = xno; then
6041 graphite_requested=no
6042 elif test "x${with_isl}" != x \
6043 || test "x${with_isl_include}" != x \
6044 || test "x${with_isl_lib}" != x ; then
6045 graphite_requested=yes
6046 else
6047 graphite_requested=no
b123da99 6048 fi
e28c595f 6049
e28c595f
JM
6050
6051
7ec59b9e
L
6052 if test "${gcc_cv_isl}" = no ; then
6053 isllibs=
6054 islinc=
6055 fi
e28c595f 6056
7ec59b9e
L
6057 if test "${graphite_requested}" = yes \
6058 && test "x${isllibs}" = x \
6059 && test "x${islinc}" = x ; then
e28c595f 6060
7ec59b9e
L
6061 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6062 fi
e552509b 6063
e28c595f
JM
6064
6065
8e71395b
L
6066 if test "x$gcc_cv_isl" != "xno"; then
6067 # Check for CLOOG
81ecdfbb 6068
e28c595f 6069
e552509b 6070# Check whether --with-cloog-include was given.
81ecdfbb
RW
6071if test "${with_cloog_include+set}" = set; then :
6072 withval=$with_cloog_include;
6073fi
e28c595f 6074
e28c595f 6075
e552509b 6076# Check whether --with-cloog-lib was given.
81ecdfbb
RW
6077if test "${with_cloog_lib+set}" = set; then :
6078 withval=$with_cloog_lib;
6079fi
e28c595f 6080
e28c595f 6081
e552509b
ILT
6082 # Check whether --enable-cloog-version-check was given.
6083if test "${enable_cloog_version_check+set}" = set; then :
6084 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6085else
6086 ENABLE_CLOOG_CHECK=yes
6087fi
6088
6089
6090 # Initialize clooglibs and clooginc.
6091 case $with_cloog in
6092 no)
6093 clooglibs=
6094 clooginc=
6095 ;;
6096 "" | yes)
6097 ;;
6098 *)
6099 clooglibs="-L$with_cloog/lib"
6100 clooginc="-I$with_cloog/include"
6101 ;;
6102 esac
6103 if test "x${with_cloog_include}" != x ; then
6104 clooginc="-I$with_cloog_include"
6105 fi
6106 if test "x${with_cloog_lib}" != x; then
6107 clooglibs="-L$with_cloog_lib"
6108 fi
3dae1673 6109 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
7ec59b9e
L
6110 && test -d ${srcdir}/cloog; then
6111 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6112 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
3dae1673
JBG
6113 ENABLE_CLOOG_CHECK=no
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6115$as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
8d8eef9a
RW
6116 fi
6117
7ec59b9e 6118 clooginc="-DCLOOG_INT_GMP ${clooginc}"
8e71395b 6119 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
e28c595f 6120
e552509b
ILT
6121
6122
6123
6124
6125 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6126 _cloog_saved_CFLAGS=$CFLAGS
6127 _cloog_saved_LDFLAGS=$LDFLAGS
6128
7ec59b9e
L
6129 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6130 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
e552509b 6131
7ec59b9e
L
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6133$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
3dae1673 6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e552509b 6135/* end confdefs.h. */
7ec59b9e 6136#include "cloog/version.h"
e552509b
ILT
6137int
6138main ()
6139{
6140#if CLOOG_VERSION_MAJOR != 0 \
7ec59b9e
L
6141 || CLOOG_VERSION_MINOR != 17 \
6142 || CLOOG_VERSION_REVISION < 0
e552509b
ILT
6143 choke me
6144 #endif
6145 ;
6146 return 0;
6147}
6148_ACEOF
6149if ac_fn_c_try_compile "$LINENO"; then :
7ec59b9e 6150 gcc_cv_cloog=yes
e552509b 6151else
7ec59b9e 6152 gcc_cv_cloog=no
e552509b
ILT
6153fi
6154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3dae1673
JBG
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6156$as_echo "$gcc_cv_cloog" >&6; }
6157
6158 CFLAGS=$_cloog_saved_CFLAGS
6159 LDFLAGS=$_cloog_saved_LDFLAGS
6160 fi
6161
6162
6163 if test "${gcc_cv_cloog}" = no ; then
6164
6165
6166
6167 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6168 _cloog_saved_CFLAGS=$CFLAGS
6169 _cloog_saved_LDFLAGS=$LDFLAGS
6170
6171 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6172 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6175$as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177/* end confdefs.h. */
6178#include "cloog/version.h"
6179int
6180main ()
6181{
6182#if CLOOG_VERSION_MAJOR != 0 \
6183 || CLOOG_VERSION_MINOR != 18 \
6184 || CLOOG_VERSION_REVISION < 0
6185 choke me
6186 #endif
6187 ;
6188 return 0;
6189}
6190_ACEOF
6191if ac_fn_c_try_compile "$LINENO"; then :
6192 gcc_cv_cloog=yes
6193else
6194 gcc_cv_cloog=no
e552509b 6195fi
3dae1673
JBG
6196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
7ec59b9e 6198$as_echo "$gcc_cv_cloog" >&6; }
e552509b
ILT
6199
6200 CFLAGS=$_cloog_saved_CFLAGS
6201 LDFLAGS=$_cloog_saved_LDFLAGS
6202 fi
6203
6204
3dae1673 6205 fi
e552509b 6206
e28c595f 6207
e28c595f
JM
6208
6209
6210
8d8eef9a
RW
6211 if test "x${with_cloog}" = xno; then
6212 graphite_requested=no
6213 elif test "x${with_cloog}" != x \
e552509b
ILT
6214 || test "x${with_cloog_include}" != x \
6215 || test "x${with_cloog_lib}" != x ; then
6216 graphite_requested=yes
6217 else
6218 graphite_requested=no
6219 fi
6220
6221
6222
7ec59b9e 6223 if test "${gcc_cv_cloog}" = no ; then
e552509b
ILT
6224 clooglibs=
6225 clooginc=
6226 fi
6227
6228 if test "${graphite_requested}" = yes \
6229 && test "x${clooglibs}" = x \
6230 && test "x${clooginc}" = x ; then
6231
8e71395b 6232 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
6233 fi
6234
6235
8e71395b 6236 fi
e552509b
ILT
6237fi
6238
7ec59b9e
L
6239# If either the ISL or the CLooG check failed, disable builds of in-tree
6240# variants of both
8e71395b
L
6241if test "x$with_isl" = xno ||
6242 test "x$with_cloog" = xno ||
6243 test "x$gcc_cv_cloog" = xno ||
6244 test "x$gcc_cv_isl" = xno; then
7ec59b9e 6245 noconfigdirs="$noconfigdirs cloog isl"
8e71395b
L
6246 islinc=
6247 clooginc=
6248 clooglibs=
7ec59b9e
L
6249fi
6250
8e71395b
L
6251
6252
6253
6254
6255
700d40ca
ILT
6256# Check for LTO support.
6257# Check whether --enable-lto was given.
6258if test "${enable_lto+set}" = set; then :
6259 enableval=$enable_lto; enable_lto=$enableval
6260else
6261 enable_lto=yes; default_enable_lto=yes
6262fi
6263
6264
143754cd 6265
e49e5c92
DK
6266
6267
6268target_elf=no
6269case $target in
6270 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6271 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6272 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6273 target_elf=no
6274 ;;
6275 *)
6276 target_elf=yes
6277 ;;
6278esac
6279
6280if test $target_elf = yes; then :
74cea91b
DK
6281 # ELF platforms build the lto-plugin always.
6282 build_lto_plugin=yes
e49e5c92 6283
e49e5c92
DK
6284else
6285 if test x"$default_enable_lto" = x"yes" ; then
29821356 6286 case $target in
899b04ef 6287 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 6288 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6289 *) enable_lto=no ;;
6290 esac
e49e5c92 6291 else
29821356
RW
6292 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6293 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6294 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6295 # warn during gcc/ subconfigure; unless you're bootstrapping with
6296 # -flto it won't be needed until after installation anyway.
6297 case $target in
a8eb3f0a 6298 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6299 *) if test x"$enable_lto" = x"yes"; then
6300 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6301 fi
6302 ;;
6303 esac
6304 fi
a8eb3f0a 6305 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6306 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6307 case $target in
74cea91b 6308 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6309 *) ;;
6310 esac
74cea91b 6311
e49e5c92
DK
6312fi
6313
700d40ca 6314
e28c595f 6315
7ec59b9e 6316# By default, C and C++ are the only stage 1 languages.
9b134994 6317stage1_languages=,c,
1d39f329 6318
e8a5fa9c 6319# Target libraries that we bootstrap.
2aa2364a 6320bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6321
9e07f89d
NN
6322# Figure out what language subdirectories are present.
6323# Look if the user specified --enable-languages="..."; if not, use
6324# the environment variable $LANGUAGES if defined. $LANGUAGES might
6325# go away some day.
6326# NB: embedded tabs in this IF block -- do not untabify
6327if test -d ${srcdir}/gcc; then
6328 if test x"${enable_languages+set}" != xset; then
6329 if test x"${LANGUAGES+set}" = xset; then
6330 enable_languages="${LANGUAGES}"
6331 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6332 else
6333 enable_languages=all
6334 fi
6335 else
6336 if test x"${enable_languages}" = x ||
6337 test x"${enable_languages}" = xyes;
6338 then
6339 echo configure.in: --enable-languages needs at least one language argument 1>&2
6340 exit 1
6341 fi
6342 fi
6343 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6344
096f7d00
DE
6345 # 'f95' is the old name for the 'fortran' language. We issue a warning
6346 # and make the substitution.
6347 case ,${enable_languages}, in
6348 *,f95,*)
6349 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6350 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6351 ;;
6352 esac
6353
7ec59b9e
L
6354 # If bootstrapping, C++ must be enabled.
6355 case ",$enable_languages,:$enable_bootstrap" in
6356 *,c++,*:*) ;;
6357 *:yes)
ffdd6afc
ILT
6358 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6359 enable_languages="${enable_languages},c++"
6360 else
7ec59b9e 6361 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6362 fi
6363 ;;
6364 esac
6365
9e07f89d
NN
6366 # First scan to see if an enabled language requires some other language.
6367 # We assume that a given config-lang.in will list all the language
6368 # front ends it requires, even if some are required indirectly.
6369 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6370 case ${lang_frag} in
6371 ..) ;;
6372 # The odd quoting in the next line works around
6373 # an apparent bug in bash 1.12 on linux.
6374 ${srcdir}/gcc/[*]/config-lang.in) ;;
6375 *)
e552509b
ILT
6376 # From the config-lang.in, get $language, $lang_requires, and
6377 # $lang_requires_boot_languages.
9e07f89d
NN
6378 language=
6379 lang_requires=
e552509b 6380 lang_requires_boot_languages=
9e07f89d 6381 . ${lang_frag}
e552509b 6382 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6383 case ,${enable_languages}, in
6384 *,$other,*) ;;
6385 *,all,*) ;;
6386 *,$language,*)
6387 echo " \`$other' language required by \`$language'; enabling" 1>&2
6388 enable_languages="${enable_languages},${other}"
6389 ;;
6390 esac
6391 done
e552509b
ILT
6392 for other in ${lang_requires_boot_languages} ; do
6393 if test "$other" != "c"; then
6394 case ,${enable_stage1_languages}, in
6395 *,$other,*) ;;
6396 *,all,*) ;;
6397 *)
6398 case ,${enable_languages}, in
6399 *,$language,*)
6400 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6401 enable_stage1_languages="$enable_stage1_languages,${other}"
6402 ;;
6403 esac
6404 ;;
6405 esac
6406 fi
6407 done
9e07f89d
NN
6408 ;;
6409 esac
6410 done
6411
9b134994 6412 new_enable_languages=,c,
700d40ca
ILT
6413
6414 # If LTO is enabled, add the LTO front end.
6415 extra_host_libiberty_configure_flags=
6416 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6417 case ,${enable_languages}, in
6418 *,lto,*) ;;
6419 *) enable_languages="${enable_languages},lto" ;;
6420 esac
a8eb3f0a 6421 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6422 configdirs="$configdirs lto-plugin"
6423 extra_host_libiberty_configure_flags=--enable-shared
6424 fi
6425 fi
6426
6427
9e07f89d 6428 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6429 potential_languages=,c,
9e07f89d 6430
9e1a94f4
ILT
6431 enabled_target_libs=
6432 disabled_target_libs=
6433
9e07f89d
NN
6434 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6435 case ${lang_frag} in
6436 ..) ;;
6437 # The odd quoting in the next line works around
6438 # an apparent bug in bash 1.12 on linux.
6439 ${srcdir}/gcc/[*]/config-lang.in) ;;
6440 *)
c6b750e1 6441 # From the config-lang.in, get $language, $target_libs,
1d39f329 6442 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6443 language=
6444 target_libs=
6445 lang_dirs=
64ce424c 6446 subdir_requires=
9b134994
PB
6447 boot_language=no
6448 build_by_default=yes
9e07f89d 6449 . ${lang_frag}
9b134994
PB
6450 if test x${language} = x; then
6451 echo "${lang_frag} doesn't set \$language." 1>&2
6452 exit 1
6453 fi
6454
ffdd6afc 6455 if test "$language" = "c++"; then
7ec59b9e 6456 boot_language=yes
e8a5fa9c
RW
6457 fi
6458
8e71395b 6459 add_this_lang=no
9b134994
PB
6460 case ,${enable_languages}, in
6461 *,${language},*)
7ec59b9e
L
6462 # Language was explicitly selected; include it
6463 # unless it is C, which is enabled by default.
6464 if test "$language" != "c"; then
6465 add_this_lang=yes
6466 fi
9e07f89d 6467 ;;
9b134994
PB
6468 *,all,*)
6469 # 'all' was selected, select it if it is a default language
8e71395b
L
6470 if test "$language" != "c"; then
6471 add_this_lang=${build_by_default}
6472 fi
9e07f89d
NN
6473 ;;
6474 esac
4b1cb4fe 6475
64ce424c 6476 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6477 for i in $subdir_requires; do
3d3adb43 6478 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6479 case ,${enable_languages}, in
6480 *,${language},*)
6481 # Specifically requested language; tell them.
81ecdfbb 6482 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6483 ;;
6484 *)
6485 # Silently disable.
9b134994 6486 add_this_lang=unsupported
64ce424c
PB
6487 ;;
6488 esac
6489 done
6490
9b134994
PB
6491 # Disable Ada if no preexisting GNAT is available.
6492 case ,${enable_languages},:${language}:${have_gnat} in
6493 *,${language},*:ada:no)
6494 # Specifically requested language; tell them.
81ecdfbb 6495 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6496 ;;
6497 *:ada:no)
6498 # Silently disable.
6499 add_this_lang=unsupported
6500 ;;
6501 esac
6502
59f7ec45
HPN
6503 # Disable a language that is unsupported by the target.
6504 case " $unsupported_languages " in
6505 *" $language "*)
9b134994 6506 add_this_lang=unsupported
59f7ec45
HPN
6507 ;;
6508 esac
6509
4b1cb4fe 6510 case $add_this_lang in
9b134994 6511 unsupported)
9e07f89d 6512 # Remove language-dependent dirs.
9e1a94f4
ILT
6513 disabled_target_libs="$disabled_target_libs $target_libs"
6514 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6515 ;;
9b134994
PB
6516 no)
6517 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6518 disabled_target_libs="$disabled_target_libs $target_libs"
6519 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6520 potential_languages="${potential_languages}${language},"
6521 ;;
6522 yes)
6523 new_enable_languages="${new_enable_languages}${language},"
6524 potential_languages="${potential_languages}${language},"
1d39f329 6525 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6526 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6527 case "${boot_language}:,$enable_stage1_languages," in
6528 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6529 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6530 case ",$stage1_languages," in
6531 *,$language,* | ,yes, | ,all,) ;;
6532 *) stage1_languages="${stage1_languages}${language}," ;;
6533 esac
e8a5fa9c
RW
6534 # We need to bootstrap any supporting libraries.
6535 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6536 ;;
6537 esac
6538 ;;
9e07f89d
NN
6539 esac
6540 ;;
6541 esac
6542 done
6543
9e1a94f4
ILT
6544 # Add target libraries which are only needed for disabled languages
6545 # to noconfigdirs.
6546 if test -n "$disabled_target_libs"; then
6547 for dir in $disabled_target_libs; do
6548 case " $enabled_target_libs " in
6549 *" ${dir} "*) ;;
6550 *) noconfigdirs="$noconfigdirs $dir" ;;
6551 esac
6552 done
6553 fi
6554
81ecdfbb
RW
6555 # Check whether --enable-stage1-languages was given.
6556if test "${enable_stage1_languages+set}" = set; then :
6557 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6558 ,no,|,,)
6559 # Set it to something that will have no effect in the loop below
6560 enable_stage1_languages=c ;;
6561 ,yes,)
6562 enable_stage1_languages=`echo $new_enable_languages | \
6563 sed -e "s/^,//" -e "s/,$//" ` ;;
6564 *,all,*)
6565 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6566 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6567 esac
6568
6569 # Add "good" languages from enable_stage1_languages to stage1_languages,
6570 # while "bad" languages go in missing_languages. Leave no duplicates.
6571 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6572 case $potential_languages in
6573 *,$i,*)
6574 case $stage1_languages in
6575 *,$i,*) ;;
6576 *) stage1_languages="$stage1_languages$i," ;;
6577 esac ;;
6578 *)
6579 case $missing_languages in
6580 *,$i,*) ;;
6581 *) missing_languages="$missing_languages$i," ;;
6582 esac ;;
6583 esac
6584 done
81ecdfbb
RW
6585fi
6586
9b134994
PB
6587
6588 # Remove leading/trailing commas that were added for simplicity
6589 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6590 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6591 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6592 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6593
9e07f89d 6594 if test "x$missing_languages" != x; then
81ecdfbb 6595 as_fn_error "
27258dd4 6596The following requested languages could not be built: ${missing_languages}
81ecdfbb 6597Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6598 fi
9e07f89d
NN
6599 if test "x$new_enable_languages" != "x$enable_languages"; then
6600 echo The following languages will be built: ${new_enable_languages}
9b134994 6601 enable_languages="$new_enable_languages"
9e07f89d 6602 fi
9b134994 6603
c6b750e1 6604
81ec575a 6605 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6606fi
6607
a6df5a19
PB
6608# Handle --disable-<component> generically.
6609for dir in $configdirs $build_configdirs $target_configdirs ; do
6610 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6611 varname=`echo $dirname | sed -e s/+/_/g`
6612 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6613 noconfigdirs="$noconfigdirs $dir"
6614 fi
6615done
6616
4f0ef2d8 6617# Check for Boehm's garbage collector
81ecdfbb
RW
6618# Check whether --enable-objc-gc was given.
6619if test "${enable_objc_gc+set}" = set; then :
6620 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6621 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6622 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6623 ;;
6624esac
81ecdfbb
RW
6625fi
6626
4f0ef2d8
CD
6627
6628# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6629case ,${enable_languages},:${enable_objc_gc} in
6630 *,objc,*:yes)
4f0ef2d8
CD
6631 # Keep target-boehm-gc if requested for Objective-C.
6632 ;;
4f0ef2d8 6633 *)
d42c4017
DA
6634 # Otherwise remove target-boehm-gc depending on target-libjava.
6635 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6636 noconfigdirs="$noconfigdirs target-boehm-gc"
6637 fi
4f0ef2d8
CD
6638 ;;
6639esac
6640
95e43135 6641# Disable libitm, libsanitizer, libvtv if we're not building C++
7ec59b9e
L
6642case ,${enable_languages}, in
6643 *,c++,*) ;;
6644 *)
9aaf2a7e 6645 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6646 ;;
6647esac
6648
caeba88f
AL
6649# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6650# $build_configdirs and $target_configdirs.
9e07f89d
NN
6651# If we have the source for $noconfigdirs entries, add them to $notsupp.
6652
6653notsupp=""
6654for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6655 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6656 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6657 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6658 if test -r $srcdir/$dirname/configure ; then
6659 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6660 true
6661 else
6662 notsupp="$notsupp $dir"
6663 fi
6664 fi
6665 fi
caeba88f
AL
6666 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6667 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6668 if test -r $srcdir/$dirname/configure ; then
6669 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6670 true
6671 else
6672 notsupp="$notsupp $dir"
6673 fi
6674 fi
6675 fi
9e07f89d
NN
6676 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6677 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6678 if test -r $srcdir/$dirname/configure ; then
6679 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6680 true
6681 else
6682 notsupp="$notsupp $dir"
6683 fi
6684 fi
6685 fi
6686done
6687
9e07f89d
NN
6688# Quietly strip out all directories which aren't configurable in this tree.
6689# This relies on all configurable subdirectories being autoconfiscated, which
6690# is now the case.
6a9cf61e
PB
6691build_configdirs_all="$build_configdirs"
6692build_configdirs=
6693for i in ${build_configdirs_all} ; do
c6b750e1 6694 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6695 if test -f ${srcdir}/$j/configure ; then
6696 build_configdirs="${build_configdirs} $i"
6697 fi
6698done
6699
9e07f89d
NN
6700configdirs_all="$configdirs"
6701configdirs=
6702for i in ${configdirs_all} ; do
6703 if test -f ${srcdir}/$i/configure ; then
6704 configdirs="${configdirs} $i"
6705 fi
6706done
6a9cf61e 6707
9e07f89d
NN
6708target_configdirs_all="$target_configdirs"
6709target_configdirs=
6710for i in ${target_configdirs_all} ; do
c6b750e1 6711 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6712 if test -f ${srcdir}/$j/configure ; then
6713 target_configdirs="${target_configdirs} $i"
6714 fi
6715done
6716
6717# Produce a warning message for the subdirs we can't configure.
6718# This isn't especially interesting in the Cygnus tree, but in the individual
6719# FSF releases, it's important to let people know when their machine isn't
6720# supported by the one or two programs in a package.
6721
6722if test -n "${notsupp}" && test -z "${norecursion}" ; then
6723 # If $appdirs is non-empty, at least one of those directories must still
6724 # be configured, or we error out. (E.g., if the gas release supports a
6725 # specified target in some subdirs but not the gas subdir, we shouldn't
6726 # pretend that all is well.)
6727 if test -n "$appdirs" ; then
6728 for dir in $appdirs ; do
6729 if test -r $dir/Makefile.in ; then
6730 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6731 appdirs=""
6732 break
6733 fi
6a9cf61e 6734 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6735 appdirs=""
6736 break
6737 fi
6738 fi
6739 done
6740 if test -n "$appdirs" ; then
6741 echo "*** This configuration is not supported by this package." 1>&2
6742 exit 1
6743 fi
6744 fi
6745 # Okay, some application will build, or we don't care to check. Still
6746 # notify of subdirs not getting built.
6747 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6748 echo " ${notsupp}" 1>&2
6749 echo " (Any other directories should still work fine.)" 1>&2
6750fi
6751
6752case "$host" in
6753 *msdosdjgpp*)
6754 enable_gdbtk=no ;;
6755esac
6756
18f6b6ee
PB
6757# To find our prefix, in gcc_cv_tool_prefix.
6758
6759# The user is always right.
6760if test "${PATH_SEPARATOR+set}" != set; then
6761 echo "#! /bin/sh" >conf$$.sh
6762 echo "exit 0" >>conf$$.sh
6763 chmod +x conf$$.sh
6764 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6765 PATH_SEPARATOR=';'
6766 else
6767 PATH_SEPARATOR=:
6768 fi
6769 rm -f conf$$.sh
6770fi
6771
6772
6773
6774if test "x$exec_prefix" = xNONE; then
6775 if test "x$prefix" = xNONE; then
6776 gcc_cv_tool_prefix=$ac_default_prefix
6777 else
6778 gcc_cv_tool_prefix=$prefix
6779 fi
6780else
6781 gcc_cv_tool_prefix=$exec_prefix
6782fi
6783
6784# If there is no compiler in the tree, use the PATH only. In any
6785# case, if there is no compiler in the tree nobody should use
6786# AS_FOR_TARGET and LD_FOR_TARGET.
6787if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6788 gcc_version=`cat $srcdir/gcc/BASE-VER`
6789 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6790 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6791 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6792 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6793 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6794 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6795else
6796 gcc_cv_tool_dirs=
6797fi
6798
6799if test x$build = x$target && test -n "$md_exec_prefix"; then
6800 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6801fi
6802
6803
6804
9e07f89d
NN
6805copy_dirs=
6806
c6b750e1 6807
81ecdfbb
RW
6808# Check whether --with-build-sysroot was given.
6809if test "${with_build_sysroot+set}" = set; then :
6810 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6811 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6812 fi
6813else
6814 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6815fi
a19b6204
MM
6816
6817
8a6ee3ab 6818
81ecdfbb
RW
6819
6820# Check whether --with-debug-prefix-map was given.
6821if test "${with_debug_prefix_map+set}" = set; then :
6822 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6823 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6824 for debug_map in $withval; do
6825 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6826 done
6827 fi
6828else
6829 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6830fi
6831
8a6ee3ab
JM
6832
6833
7f6ef0c0
PB
6834# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6835# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6836# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6837# We want to ensure that TARGET libraries (which we know are built with
6838# gcc) are built with "-O2 -g", so include those options when setting
6839# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6840if test "x$CFLAGS_FOR_TARGET" = x; then
6841 CFLAGS_FOR_TARGET=$CFLAGS
6842 case " $CFLAGS " in
6843 *" -O2 "*) ;;
68f107fa 6844 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6845 esac
6846 case " $CFLAGS " in
6847 *" -g "* | *" -g3 "*) ;;
68f107fa 6848 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6849 esac
6850fi
6851
6852
6853if test "x$CXXFLAGS_FOR_TARGET" = x; then
6854 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6855 case " $CXXFLAGS " in
6856 *" -O2 "*) ;;
68f107fa 6857 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6858 esac
6859 case " $CXXFLAGS " in
6860 *" -g "* | *" -g3 "*) ;;
68f107fa 6861 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6862 esac
6863fi
6864
6865
91c1f14c
DK
6866
6867
9e07f89d
NN
6868# Handle --with-headers=XXX. If the value is not "yes", the contents of
6869# the named directory are copied to $(tooldir)/sys-include.
6870if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6871 if test x${is_cross_compiler} = xno ; then
6872 echo 1>&2 '***' --with-headers is only supported when cross compiling
6873 exit 1
6874 fi
6875 if test x"${with_headers}" != xyes ; then
18f6b6ee 6876 x=${gcc_cv_tool_prefix}
c6b750e1 6877 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6878 fi
6879fi
6880
6881# Handle --with-libs=XXX. If the value is not "yes", the contents of
6882# the name directories are copied to $(tooldir)/lib. Multiple directories
6883# are permitted.
6884if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6885 if test x${is_cross_compiler} = xno ; then
6886 echo 1>&2 '***' --with-libs is only supported when cross compiling
6887 exit 1
6888 fi
6889 if test x"${with_libs}" != xyes ; then
6890 # Copy the libraries in reverse order, so that files in the first named
6891 # library override files in subsequent libraries.
18f6b6ee 6892 x=${gcc_cv_tool_prefix}
9e07f89d 6893 for l in ${with_libs}; do
c6b750e1 6894 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6895 done
6896 fi
6897fi
6898
700d40ca 6899# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6900#
6901# This is done by determining whether or not the appropriate directory
6902# is available, and by checking whether or not specific configurations
6903# have requested that this magic not happen.
c6b750e1
DJ
6904#
6905# The command line options always override the explicit settings in
2429c060
PB
6906# configure.in, and the settings in configure.in override this magic.
6907#
c6b750e1 6908# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6909# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6910# --without-gnu-ld options for the configure script. Similarly, if
6911# the default is to use the included zlib and you don't want to do that,
6912# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6913
6914if test x${use_gnu_as} = x &&
6915 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6916 with_gnu_as=yes
6917 extra_host_args="$extra_host_args --with-gnu-as"
6918fi
6919
6920if test x${use_gnu_ld} = x &&
93f9b408 6921 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6922 with_gnu_ld=yes
6923 extra_host_args="$extra_host_args --with-gnu-ld"
6924fi
6925
700d40ca
ILT
6926if test x${use_included_zlib} = x &&
6927 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6928 :
6929else
6930 with_system_zlib=yes
6931 extra_host_args="$extra_host_args --with-system-zlib"
6932fi
6933
2429c060
PB
6934# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6935# can detect this case.
6936
6937if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6938 with_newlib=yes
6939 extra_host_args="$extra_host_args --with-newlib"
6940fi
6941
9e07f89d
NN
6942# Handle ${copy_dirs}
6943set fnord ${copy_dirs}
6944shift
6945while test $# != 0 ; do
6946 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6947 :
6948 else
6949 echo Copying $1 to $2
6950
6951 # Use the install script to create the directory and all required
6952 # parent directories.
6953 if test -d $2 ; then
6954 :
6955 else
6956 echo >config.temp
6957 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6958 fi
6959
6960 # Copy the directory, assuming we have tar.
6961 # FIXME: Should we use B in the second tar? Not all systems support it.
6962 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6963
6964 # It is the responsibility of the user to correctly adjust all
6965 # symlinks. If somebody can figure out how to handle them correctly
6966 # here, feel free to add the code.
6967
6968 echo $1 > $2/COPIED
6969 fi
6970 shift; shift
6971done
6972
2429c060
PB
6973# Determine a target-dependent exec_prefix that the installed
6974# gcc will search in. Keep this list sorted by triplet, with
6975# the *-*-osname triplets last.
6976md_exec_prefix=
6977case "${target}" in
521ec477 6978 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6979 md_exec_prefix=/dev/env/DJDIR/bin
6980 ;;
2429c060 6981 *-*-hpux* | \
2429c060 6982 *-*-nto-qnx* | \
1f111696 6983 *-*-solaris2*)
2429c060
PB
6984 md_exec_prefix=/usr/ccs/bin
6985 ;;
6986esac
6987
a0da8069
NN
6988extra_arflags_for_target=
6989extra_nmflags_for_target=
6990extra_ranlibflags_for_target=
6991target_makefile_frag=/dev/null
6992case "${target}" in
77d7106f
AM
6993 spu-*-*)
6994 target_makefile_frag="config/mt-spu"
6995 ;;
a9d58c06 6996 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
6997 target_makefile_frag="config/mt-sde"
6998 ;;
f3b1e08e
RS
6999 mipsisa*-*-elfoabi*)
7000 target_makefile_frag="config/mt-mips-elfoabi"
7001 ;;
e7c8859c
RS
7002 mips*-*-*linux* | mips*-*-gnu*)
7003 target_makefile_frag="config/mt-mips-gnu"
7004 ;;
d9e042ac
SL
7005 nios2-*-elf*)
7006 target_makefile_frag="config/mt-nios2-elf"
7007 ;;
29383458 7008 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 7009 target_makefile_frag="config/mt-gnu"
a0da8069
NN
7010 ;;
7011 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 7012 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
7013 # commands to handle both 32-bit and 64-bit objects. These flags are
7014 # harmless if we're using GNU nm or ar.
7015 extra_arflags_for_target=" -X32_64"
7016 extra_nmflags_for_target=" -B -X32_64"
7017 ;;
a0da8069
NN
7018esac
7019
7020alphaieee_frag=/dev/null
7021case $target in
7022 alpha*-*-*)
7023 # This just makes sure to use the -mieee option to build target libs.
7024 # This should probably be set individually by each library.
7025 alphaieee_frag="config/mt-alphaieee"
7026 ;;
7027esac
7028
7029# If --enable-target-optspace always use -Os instead of -O2 to build
7030# the target libraries, similarly if it is not specified, use -Os
7031# on selected platforms.
7032ospace_frag=/dev/null
7033case "${enable_target_optspace}:${target}" in
7034 yes:*)
7035 ospace_frag="config/mt-ospace"
7036 ;;
7037 :d30v-*)
7038 ospace_frag="config/mt-d30v"
7039 ;;
7040 :m32r-* | :d10v-* | :fr30-*)
7041 ospace_frag="config/mt-ospace"
7042 ;;
7043 no:* | :*)
7044 ;;
7045 *)
7046 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7047 ;;
7048esac
7049
a0da8069
NN
7050# Some systems (e.g., one of the i386-aix systems the gas testers are
7051# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7052tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7053build_tooldir=${tooldir}
7054
a0da8069
NN
7055# Create a .gdbinit file which runs the one in srcdir
7056# and tells GDB to look there for source files.
7057
7058if test -r ${srcdir}/.gdbinit ; then
7059 case ${srcdir} in
7060 .) ;;
7061 *) cat > ./.gdbinit <<EOF
7062# ${NO_EDIT}
7063dir ${srcdir}
7064dir .
7065source ${srcdir}/.gdbinit
7066EOF
7067 ;;
7068 esac
7069fi
7070
a0da8069
NN
7071# Make sure that the compiler is able to generate an executable. If it
7072# can't, we are probably in trouble. We don't care whether we can run the
7073# executable--we might be using a cross compiler--we only care whether it
7074# can be created. At this point the main configure script has set CC.
7075we_are_ok=no
7076echo "int main () { return 0; }" > conftest.c
7077${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7078if test $? = 0 ; then
7079 if test -s conftest || test -s conftest.exe ; then
7080 we_are_ok=yes
7081 fi
c6b750e1 7082fi
a0da8069
NN
7083case $we_are_ok in
7084 no)
7085 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7086 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7087 rm -f conftest*
7088 exit 1
7089 ;;
7090esac
7091rm -f conftest*
7092
3bbd2f8f 7093# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7094case "${host}" in
7095 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7096 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7097 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7098 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7099esac
7100
3bbd2f8f 7101# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7102# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7103# built executables to PATH.
3bbd2f8f
AL
7104if test "$RPATH_ENVVAR" = PATH; then
7105 GCC_SHLIB_SUBDIR=/shlib
7106else
7107 GCC_SHLIB_SUBDIR=
7108fi
7109
730af8ee 7110# Adjust the toplevel makefile according to whether bootstrap was selected.
7111case $enable_bootstrap in
7112 yes)
7113 bootstrap_suffix=bootstrap
7114 BUILD_CONFIG=bootstrap-debug
7115 ;;
7116 no)
7117 bootstrap_suffix=no-bootstrap
7118 BUILD_CONFIG=
7119 ;;
7120esac
7121
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7123$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7124
7125
7126# Check whether --with-build-config was given.
7127if test "${with_build_config+set}" = set; then :
7128 withval=$with_build_config; case $with_build_config in
7129 yes) with_build_config= ;;
7130 no) with_build_config= BUILD_CONFIG= ;;
7131 esac
7132fi
7133
7134
7135if test "x${with_build_config}" != x; then
7136 BUILD_CONFIG=$with_build_config
7137else
7138 case $BUILD_CONFIG in
7139 bootstrap-debug)
7140 if echo "int f (void) { return 0; }" > conftest.c &&
7141 ${CC} -c conftest.c &&
7142 mv conftest.o conftest.o.g0 &&
7143 ${CC} -c -g conftest.c &&
7144 mv conftest.o conftest.o.g &&
7145 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7146 :
7147 else
7148 BUILD_CONFIG=
7149 fi
7150 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7151 ;;
7152 esac
7153fi
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7155$as_echo "$BUILD_CONFIG" >&6; }
7156
7157
7158# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7160$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7161# Check whether --enable-vtable-verify was given.
7162if test "${enable_vtable_verify+set}" = set; then :
7163 enableval=$enable_vtable_verify; case "$enableval" in
7164 yes) enable_vtable_verify=yes ;;
7165 no) enable_vtable_verify=no ;;
7166 *) enable_vtable_verify=no;;
7167 esac
7168else
7169 enable_vtable_verify=no
7170fi
7171
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7173$as_echo "$enable_vtable_verify" >&6; }
7174
a0da8069
NN
7175# Record target_configdirs and the configure arguments for target and
7176# build configuration in Makefile.
7177target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7178build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7179bootstrap_fixincludes=no
a0da8069 7180
2aa2364a
JR
7181# If we are building libgomp, bootstrap it.
7182if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7183 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7184fi
7185
730af8ee 7186# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7187# or bootstrap-ubsan, bootstrap it.
7188if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7189 case "$BUILD_CONFIG" in
7190 *bootstrap-asan* | *bootstrap-ubsan* )
7191 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7192 bootstrap_fixincludes=yes
730af8ee 7193 ;;
7194 esac
5eb08693
L
7195fi
7196
730af8ee 7197# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7198if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7199 test "$enable_vtable_verify" != no; then
95e43135
JBG
7200 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7201fi
7202
a0da8069
NN
7203# Determine whether gdb needs tk/tcl or not.
7204# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7205# and in that case we want gdb to be built without tk. Ugh!
7206# In fact I believe gdb is the *only* package directly dependent on tk,
7207# so we should be able to put the 'maybe's in unconditionally and
7208# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7209# 100% sure that that's safe though.
c180f501 7210
675c6968 7211gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7212case "$enable_gdbtk" in
7213 no)
7214 GDB_TK="" ;;
c180f501
AC
7215 yes)
7216 GDB_TK="${gdb_tk}" ;;
a0da8069 7217 *)
c180f501
AC
7218 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7219 # distro. Eventually someone will fix this and move Insight, nee
7220 # gdbtk to a separate directory.
7221 if test -d ${srcdir}/gdb/gdbtk ; then
7222 GDB_TK="${gdb_tk}"
7223 else
7224 GDB_TK=""
7225 fi
7226 ;;
a0da8069 7227esac
907be67c
DJ
7228CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7229INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7230
6bd3dfaa 7231# Strip out unwanted targets.
dd12c3a8
NN
7232
7233# While at that, we remove Makefiles if we were started for recursive
7234# configuration, so that the top-level Makefile reconfigures them,
7235# like we used to do when configure itself was recursive.
dd12c3a8 7236
06a51eac
RW
7237# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7238# but now we're fixing up the Makefile ourselves with the additional
7239# commands passed to AC_CONFIG_FILES. Use separate variables
7240# extrasub-{build,host,target} not because there is any reason to split
7241# the substitutions up that way, but only to remain below the limit of
7242# 99 commands in a script, for HP-UX sed.
7243# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7244
16b1ad29
RW
7245case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7246 yes:yes:*\ gold\ *:*,c++,*) ;;
7247 yes:yes:*\ gold\ *:*)
7248 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7249 ;;
7250esac
7251
06a51eac 7252extrasub_build=
6a9cf61e 7253for module in ${build_configdirs} ; do
498d4a71
CF
7254 if test -z "${no_recursion}" \
7255 && test -f ${build_subdir}/${module}/Makefile; then
7256 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7257 rm -f ${build_subdir}/${module}/Makefile
7258 fi
06a51eac 7259 extrasub_build="$extrasub_build
498d4a71
CF
7260/^@if build-$module\$/d
7261/^@endif build-$module\$/d
7262/^@if build-$module-$bootstrap_suffix\$/d
7263/^@endif build-$module-$bootstrap_suffix\$/d"
7264done
06a51eac 7265extrasub_host=
498d4a71 7266for module in ${configdirs} ; do
80911fe1 7267 if test -z "${no_recursion}"; then
8cf39b1b 7268 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7269 if test -f ${file}; then
7270 echo 1>&2 "*** removing ${file} to force reconfigure"
7271 rm -f ${file}
7272 fi
7273 done
498d4a71 7274 fi
201f096f 7275 case ${module},${bootstrap_fixincludes} in
7276 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7277 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7278 esac
06a51eac 7279 extrasub_host="$extrasub_host
498d4a71
CF
7280/^@if $module\$/d
7281/^@endif $module\$/d
201f096f 7282/^@if $module-$host_bootstrap_suffix\$/d
7283/^@endif $module-$host_bootstrap_suffix\$/d"
498d4a71 7284done
06a51eac 7285extrasub_target=
498d4a71
CF
7286for module in ${target_configdirs} ; do
7287 if test -z "${no_recursion}" \
7288 && test -f ${target_subdir}/${module}/Makefile; then
7289 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7290 rm -f ${target_subdir}/${module}/Makefile
7291 fi
e8a5fa9c
RW
7292
7293 # We only bootstrap target libraries listed in bootstrap_target_libs.
7294 case $bootstrap_target_libs in
7295 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7296 *) target_bootstrap_suffix=no-bootstrap ;;
7297 esac
7298
06a51eac 7299 extrasub_target="$extrasub_target
498d4a71
CF
7300/^@if target-$module\$/d
7301/^@endif target-$module\$/d
e8a5fa9c
RW
7302/^@if target-$module-$target_bootstrap_suffix\$/d
7303/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7304done
7305
06a51eac
RW
7306# Do the final fixup along with target modules.
7307extrasub_target="$extrasub_target
6bd3dfaa 7308/^@if /,/^@endif /d"
a0da8069
NN
7309
7310# Create the serialization dependencies. This uses a temporary file.
7311
81ecdfbb
RW
7312# Check whether --enable-serial-configure was given.
7313if test "${enable_serial_configure+set}" = set; then :
7314 enableval=$enable_serial_configure;
7315fi
e6bfb94a
AO
7316
7317
1047cb91
DD
7318case ${enable_serial_configure} in
7319 yes)
7320 enable_serial_build_configure=yes
7321 enable_serial_host_configure=yes
7322 enable_serial_target_configure=yes
7323 ;;
7324esac
7325
a0da8069
NN
7326# These force 'configure's to be done one at a time, to avoid problems
7327# with contention over a shared config.cache.
7328rm -f serdep.tmp
e6bfb94a 7329echo '# serdep.tmp' > serdep.tmp
a0da8069 7330olditem=
1047cb91 7331test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7332for item in ${build_configdirs} ; do
7333 case ${olditem} in
7334 "") ;;
e6bfb94a 7335 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7336 esac
7337 olditem=${item}
7338done
7339olditem=
1047cb91 7340test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7341for item in ${configdirs} ; do
7342 case ${olditem} in
7343 "") ;;
e6bfb94a 7344 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7345 esac
7346 olditem=${item}
7347done
7348olditem=
1047cb91 7349test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7350for item in ${target_configdirs} ; do
7351 case ${olditem} in
7352 "") ;;
e6bfb94a 7353 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7354 esac
7355 olditem=${item}
7356done
7357serialization_dependencies=serdep.tmp
7358
7359
e6bfb94a 7360# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7361# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7362# might not want to pass down to subconfigures. The exception being
7363# --cache-file=/dev/null, which is used to turn off the use of cache
7364# files altogether, and which should be passed on to subconfigures.
7365# Also strip program-prefix, program-suffix, and program-transform-name,
7366# so that we can pass down a consistent program-transform-name.
c6b750e1 7367baseargs=
65b4571a 7368tbaseargs=
c6b750e1
DJ
7369keep_next=no
7370skip_next=no
7371eval "set -- $ac_configure_args"
18f6b6ee
PB
7372for ac_arg
7373do
c6b750e1
DJ
7374 if test X"$skip_next" = X"yes"; then
7375 skip_next=no
7376 continue
7377 fi
7378 if test X"$keep_next" = X"yes"; then
7379 case $ac_arg in
7380 *\'*)
7381 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7382 esac
7383 baseargs="$baseargs '$ac_arg'"
65b4571a 7384 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7385 keep_next=no
7386 continue
7387 fi
7388
7389 # Handle separated arguments. Based on the logic generated by
7390 # autoconf 2.59.
7391 case $ac_arg in
7392 *=* | --config-cache | -C | -disable-* | --disable-* \
7393 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7394 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7395 | -with-* | --with-* | -without-* | --without-* | --x)
7396 separate_arg=no
7397 ;;
7398 -*)
7399 separate_arg=yes
7400 ;;
7401 *)
7402 separate_arg=no
7403 ;;
7404 esac
7405
65b4571a
AO
7406 skip_targ=no
7407 case $ac_arg in
7408
7409 --with-* | --without-*)
7410 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7411
7412 case $libopt in
7413 *[-_]include)
7414 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7415 ;;
7416 *[-_]lib)
7417 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7418 ;;
7419 *)
7420 lib=$libopt
7421 ;;
7422 esac
7423
7424
7425 case $lib in
7ec59b9e 7426 mpc | mpfr | gmp | cloog)
65b4571a
AO
7427 # If we're processing --with-$lib, --with-$lib-include or
7428 # --with-$lib-lib, for one of the libs above, and target is
7429 # different from host, don't pass the current argument to any
7430 # target library's configure.
7431 if test x$is_cross_compiler = xyes; then
7432 skip_targ=yes
7433 fi
7434 ;;
7435 esac
7436 ;;
7437 esac
7438
c6b750e1 7439 case "$ac_arg" in
30167e0a
NC
7440 --cache-file=/dev/null | \
7441 -cache-file=/dev/null )
7442 # Handled here to avoid the test to skip args below.
7443 baseargs="$baseargs '$ac_arg'"
65b4571a 7444 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7445 # Assert: $separate_arg should always be no.
7446 keep_next=$separate_arg
7447 ;;
c6b750e1
DJ
7448 --no*)
7449 continue
7450 ;;
7451 --c* | \
7452 --sr* | \
7453 --ho* | \
7454 --bu* | \
7455 --t* | \
7456 --program-* | \
7457 -cache_file* | \
7458 -srcdir* | \
7459 -host* | \
7460 -build* | \
7461 -target* | \
7462 -program-prefix* | \
7463 -program-suffix* | \
7464 -program-transform-name* )
7465 skip_next=$separate_arg
7466 continue
7467 ;;
7468 -*)
7469 # An option. Add it.
7470 case $ac_arg in
7471 *\'*)
7472 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7473 esac
7474 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7475 if test X"$skip_targ" = Xno; then
7476 tbaseargs="$tbaseargs '$ac_arg'"
7477 fi
c6b750e1
DJ
7478 keep_next=$separate_arg
7479 ;;
7480 *)
7481 # Either a variable assignment, or a nonopt (triplet). Don't
7482 # pass it down; let the Makefile handle this.
7483 continue
7484 ;;
7485 esac
7486done
7487# Remove the initial space we just introduced and, as these will be
7488# expanded by make, quote '$'.
7489baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7490
f27d4f92
DJ
7491# Add in --program-transform-name, after --program-prefix and
7492# --program-suffix have been applied to it. Autoconf has already
7493# doubled dollar signs and backslashes in program_transform_name; we want
7494# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7495# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7496# Also, because we want to override the logic in subdir configure scripts to
7497# choose program_transform_name, replace any s,x,x, with s,y,y,.
7498sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7499${program_transform_name}
7500EOF_SED
7501gcc_transform_name=`cat conftestsed.out`
7502rm -f conftestsed.out
7503baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7504tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7505if test "$silent" = yes; then
7506 baseargs="$baseargs --silent"
65b4571a 7507 tbaseargs="$tbaseargs --silent"
2444379b 7508fi
34a0f3cf 7509baseargs="$baseargs --disable-option-checking"
65b4571a 7510tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7511
4074d5f2
RW
7512# Record and document user additions to sub configure arguments.
7513
7514
7515
7516
a0da8069
NN
7517# For the build-side libraries, we just need to pretend we're native,
7518# and not use the same cache file. Multilibs are neither needed nor
7519# desired.
4074d5f2 7520build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7521
7522# For host modules, accept cache file option, or specification as blank.
7523case "${cache_file}" in
7524"") # empty
7525 cache_file_option="" ;;
7526/* | [A-Za-z]:[\\/]* ) # absolute path
7527 cache_file_option="--cache-file=${cache_file}" ;;
7528*) # relative path
7529 cache_file_option="--cache-file=../${cache_file}" ;;
7530esac
7531
82252c06
NN
7532# Host dirs don't like to share a cache file either, horribly enough.
7533# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7534host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7535
65b4571a 7536target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7537
7538# Passing a --with-cross-host argument lets the target libraries know
7539# whether they are being built with a cross-compiler or being built
7540# native. However, it would be better to use other mechanisms to make the
7541# sorts of decisions they want to make on this basis. Please consider
7542# this option to be deprecated. FIXME.
7543if test x${is_cross_compiler} = xyes ; then
c6b750e1 7544 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7545fi
7546
afc0578d 7547# Special user-friendly check for native x86_64-linux build, if
7548# multilib is not explicitly enabled.
7549case "$target:$have_compiler:$host:$target:$enable_multilib" in
7550 x86_64-*linux*:yes:$build:$build:)
7551 # Make sure we have a developement environment that handles 32-bit
7552 dev64=no
7553 echo "int main () { return 0; }" > conftest.c
7554 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7555 if test $? = 0 ; then
7556 if test -s conftest || test -s conftest.exe ; then
7557 dev64=yes
7558 fi
7559 fi
7560 rm -f conftest*
7561 if test x${dev64} != xyes ; then
7562 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7563 fi
7564 ;;
7565esac
7566
938d2b74
RW
7567# Default to --enable-multilib.
7568if test x${enable_multilib} = x ; then
a0da8069 7569 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7570fi
a0da8069
NN
7571
7572# Pass --with-newlib if appropriate. Note that target_configdirs has
7573# changed from the earlier setting of with_newlib.
7574if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7575 target_configargs="--with-newlib ${target_configargs}"
7576fi
7577
95036d20
NN
7578# Different target subdirs use different values of certain variables
7579# (notably CXX). Worse, multilibs use *lots* of different values.
7580# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7581# it doesn't automatically accept command-line overrides of them.
7582# This means it's not safe for target subdirs to share a cache file,
7583# which is disgusting, but there you have it. Hopefully this can be
7584# fixed in future. It's still worthwhile to use a cache file for each
7585# directory. I think.
7586
ae380b45
MS
7587# Pass the appropriate --build, --host, --target and --cache-file arguments.
7588# We need to pass --target, as newer autoconf's requires consistency
7589# for target_alias and gcc doesn't manage it consistently.
4b900473 7590target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7591
a0da8069
NN
7592FLAGS_FOR_TARGET=
7593case " $target_configdirs " in
7594 *" newlib "*)
7595 case " $target_configargs " in
7596 *" --with-newlib "*)
7597 case "$target" in
1f53ca9a 7598 *-cygwin*)
6d94c122 7599 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7600 ;;
a0da8069
NN
7601 esac
7602
7603 # If we're not building GCC, don't discard standard headers.
7604 if test -d ${srcdir}/gcc; then
7605 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7606
7607 if test "${build}" != "${host}"; then
7608 # On Canadian crosses, CC_FOR_TARGET will have already been set
7609 # by `configure', so we won't have an opportunity to add -Bgcc/
7610 # to it. This is right: we don't want to search that directory
7611 # for binaries, but we want the header files in there, so add
7612 # them explicitly.
e552509b 7613 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7614
7615 # Someone might think of using the pre-installed headers on
7616 # Canadian crosses, in case the installed compiler is not fully
7617 # compatible with the compiler being built. In this case, it
7618 # would be better to flag an error than risking having
7619 # incompatible object files being constructed. We can't
7620 # guarantee that an error will be flagged, but let's hope the
7621 # compiler will do it, when presented with incompatible header
7622 # files.
7623 fi
7624 fi
7625
7626 case "${target}-${is_cross_compiler}" in
ec11bdc6 7627 i[3456789]86-*-linux*-no)
a0da8069
NN
7628 # Here host == target, so we don't need to build gcc,
7629 # so we don't want to discard standard headers.
7630 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7631 ;;
7632 *)
7633 # If we're building newlib, use its generic headers last, but search
7634 # for any libc-related directories first (so make it the last -B
7635 # switch).
7636 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
7637
7638 # If we're building libgloss, find the startup file, simulator library
7639 # and linker script.
7640 case " $target_configdirs " in
7641 *" libgloss "*)
7642 # Look for startup file, simulator library and maybe linker script.
7643 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7644 # Look for libnosys.a in case the target needs it.
7645 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7646 # Most targets have the linker script in the source directory.
7647 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7648 ;;
7649 esac
a0da8069
NN
7650 ;;
7651 esac
7652 ;;
7653 esac
7654 ;;
7655esac
1f53ca9a 7656
45055374 7657case "$target" in
1f53ca9a
AO
7658 x86_64-*mingw* | *-w64-mingw*)
7659 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7660 # however, use a symlink named 'mingw' in ${prefix} .
7661 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7662 ;;
7663 *-mingw*)
7664 # MinGW can't be handled as Cygwin above since it does not use newlib.
7665 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'
7666 ;;
45055374 7667esac
a0da8069 7668
5fbad20a
DD
7669# Allow the user to override the flags for
7670# our build compiler if desired.
c66487f8
NC
7671if test x"${build}" = x"${host}" ; then
7672 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7673 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7674 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7675fi
5fbad20a 7676
a0da8069
NN
7677# On Canadian crosses, we'll be searching the right directories for
7678# the previously-installed cross compiler, so don't bother to add
7679# flags for directories within the install tree of the compiler
7680# being built; programs in there won't even run.
7681if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7682 # Search for pre-installed headers if nothing else fits.
bba45b8b 7683 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
7684fi
7685
7686if test "x${use_gnu_ld}" = x &&
7687 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7688 # Arrange for us to find uninstalled linker scripts.
b00612cc 7689 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7690fi
7691
a481dbb7
DD
7692# Search for other target-specific linker scripts and such.
7693case "${target}" in
4e206d7e
DB
7694 mep*)
7695 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7696 ;;
7697esac
7698
a0da8069 7699# Makefile fragments.
3e707e94
PB
7700for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7701do
7702 eval fragval=\$$frag
7703 if test $fragval != /dev/null; then
7704 eval $frag=${srcdir}/$fragval
7705 fi
7706done
a0da8069
NN
7707
7708
7709
7710
7711
7712# Miscellanea: directories, flags, etc.
7713
7714
7715
7716
7717
7718
7719
3bbd2f8f 7720
6a9cf61e 7721# Build module lists & subconfigure args.
a0da8069
NN
7722
7723
7724
be01d343
PB
7725# Host module lists & subconfigure args.
7726
7727
7728
911e63d0 7729
be01d343
PB
7730# Target module lists & subconfigure args.
7731
7732
7733
7734# Build tools.
7735
7736
7737
1576798e
PB
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
be01d343
PB
7752# Generate default definitions for YACC, M4, LEX and other programs that run
7753# on the build machine. These are used if the Makefile can't locate these
7754# programs in objdir.
7755MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7756
7757for ac_prog in 'bison -y' byacc yacc
7758do
c6b750e1 7759 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7760set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762$as_echo_n "checking for $ac_word... " >&6; }
7763if test "${ac_cv_prog_YACC+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
be01d343
PB
7765else
7766 if test -n "$YACC"; then
7767 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7768else
c6b750e1
DJ
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7776 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7778 break 2
7779 fi
7780done
81ecdfbb
RW
7781 done
7782IFS=$as_save_IFS
c6b750e1 7783
be01d343
PB
7784fi
7785fi
c6b750e1 7786YACC=$ac_cv_prog_YACC
be01d343 7787if test -n "$YACC"; then
81ecdfbb
RW
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7789$as_echo "$YACC" >&6; }
be01d343 7790else
81ecdfbb
RW
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792$as_echo "no" >&6; }
be01d343
PB
7793fi
7794
81ecdfbb 7795
c6b750e1 7796 test -n "$YACC" && break
be01d343
PB
7797done
7798test -n "$YACC" || YACC="$MISSING bison -y"
7799
7800case " $build_configdirs " in
7801 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7802esac
7803
7804for ac_prog in bison
7805do
c6b750e1 7806 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7807set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809$as_echo_n "checking for $ac_word... " >&6; }
7810if test "${ac_cv_prog_BISON+set}" = set; then :
7811 $as_echo_n "(cached) " >&6
be01d343
PB
7812else
7813 if test -n "$BISON"; then
7814 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7815else
c6b750e1
DJ
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7823 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7825 break 2
7826 fi
7827done
81ecdfbb
RW
7828 done
7829IFS=$as_save_IFS
c6b750e1 7830
be01d343
PB
7831fi
7832fi
c6b750e1 7833BISON=$ac_cv_prog_BISON
be01d343 7834if test -n "$BISON"; then
81ecdfbb
RW
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7836$as_echo "$BISON" >&6; }
be01d343 7837else
81ecdfbb
RW
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
be01d343
PB
7840fi
7841
81ecdfbb 7842
c6b750e1 7843 test -n "$BISON" && break
be01d343
PB
7844done
7845test -n "$BISON" || BISON="$MISSING bison"
7846
7847case " $build_configdirs " in
7848 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7849esac
7850
7851for ac_prog in gm4 gnum4 m4
7852do
c6b750e1 7853 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7854set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856$as_echo_n "checking for $ac_word... " >&6; }
7857if test "${ac_cv_prog_M4+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
be01d343
PB
7859else
7860 if test -n "$M4"; then
7861 ac_cv_prog_M4="$M4" # Let the user override the test.
7862else
c6b750e1
DJ
7863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864for as_dir in $PATH
7865do
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7870 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7872 break 2
7873 fi
7874done
81ecdfbb
RW
7875 done
7876IFS=$as_save_IFS
c6b750e1 7877
be01d343
PB
7878fi
7879fi
c6b750e1 7880M4=$ac_cv_prog_M4
be01d343 7881if test -n "$M4"; then
81ecdfbb
RW
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7883$as_echo "$M4" >&6; }
be01d343 7884else
81ecdfbb
RW
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886$as_echo "no" >&6; }
be01d343
PB
7887fi
7888
81ecdfbb 7889
c6b750e1 7890 test -n "$M4" && break
be01d343
PB
7891done
7892test -n "$M4" || M4="$MISSING m4"
7893
7894case " $build_configdirs " in
7895 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7896esac
7897
7898for ac_prog in flex lex
7899do
c6b750e1 7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7901set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903$as_echo_n "checking for $ac_word... " >&6; }
7904if test "${ac_cv_prog_LEX+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
be01d343
PB
7906else
7907 if test -n "$LEX"; then
7908 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7909else
c6b750e1
DJ
7910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911for as_dir in $PATH
7912do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7917 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7919 break 2
7920 fi
7921done
81ecdfbb
RW
7922 done
7923IFS=$as_save_IFS
c6b750e1 7924
be01d343
PB
7925fi
7926fi
c6b750e1 7927LEX=$ac_cv_prog_LEX
be01d343 7928if test -n "$LEX"; then
81ecdfbb
RW
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7930$as_echo "$LEX" >&6; }
be01d343 7931else
81ecdfbb
RW
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933$as_echo "no" >&6; }
be01d343
PB
7934fi
7935
81ecdfbb 7936
c6b750e1 7937 test -n "$LEX" && break
be01d343
PB
7938done
7939test -n "$LEX" || LEX="$MISSING flex"
7940
7941case " $build_configdirs " in
7942 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7943 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7944esac
7945
7946for ac_prog in flex
7947do
c6b750e1 7948 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7949set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951$as_echo_n "checking for $ac_word... " >&6; }
7952if test "${ac_cv_prog_FLEX+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
be01d343
PB
7954else
7955 if test -n "$FLEX"; then
7956 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7957else
c6b750e1
DJ
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7965 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7967 break 2
7968 fi
7969done
81ecdfbb
RW
7970 done
7971IFS=$as_save_IFS
c6b750e1 7972
be01d343
PB
7973fi
7974fi
c6b750e1 7975FLEX=$ac_cv_prog_FLEX
be01d343 7976if test -n "$FLEX"; then
81ecdfbb
RW
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7978$as_echo "$FLEX" >&6; }
be01d343 7979else
81ecdfbb
RW
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
be01d343
PB
7982fi
7983
81ecdfbb 7984
c6b750e1 7985 test -n "$FLEX" && break
be01d343
PB
7986done
7987test -n "$FLEX" || FLEX="$MISSING flex"
7988
7989case " $build_configdirs " in
7990 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7991esac
7992
7993for ac_prog in makeinfo
7994do
c6b750e1 7995 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7996set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998$as_echo_n "checking for $ac_word... " >&6; }
7999if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
be01d343
PB
8001else
8002 if test -n "$MAKEINFO"; then
8003 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8004else
c6b750e1
DJ
8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006for as_dir in $PATH
8007do
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8012 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8014 break 2
8015 fi
8016done
81ecdfbb
RW
8017 done
8018IFS=$as_save_IFS
c6b750e1 8019
be01d343
PB
8020fi
8021fi
c6b750e1 8022MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8023if test -n "$MAKEINFO"; then
81ecdfbb
RW
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8025$as_echo "$MAKEINFO" >&6; }
be01d343 8026else
81ecdfbb
RW
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028$as_echo "no" >&6; }
be01d343
PB
8029fi
8030
81ecdfbb 8031
c6b750e1 8032 test -n "$MAKEINFO" && break
be01d343
PB
8033done
8034test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8035
8036case " $build_configdirs " in
8037 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8038 *)
8039
10ad8ef3 8040 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8041 # higher, else we use the "missing" dummy.
8042 if ${MAKEINFO} --version \
10ad8ef3 8043 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8044 :
8045 else
8046 MAKEINFO="$MISSING makeinfo"
8047 fi
8048 ;;
8049
8050esac
a0da8069 8051
be01d343 8052# FIXME: expect and dejagnu may become build tools?
a0da8069 8053
be01d343
PB
8054for ac_prog in expect
8055do
c6b750e1 8056 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8057set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059$as_echo_n "checking for $ac_word... " >&6; }
8060if test "${ac_cv_prog_EXPECT+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
be01d343
PB
8062else
8063 if test -n "$EXPECT"; then
8064 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8065else
c6b750e1
DJ
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8073 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8075 break 2
8076 fi
8077done
81ecdfbb
RW
8078 done
8079IFS=$as_save_IFS
c6b750e1 8080
be01d343
PB
8081fi
8082fi
c6b750e1 8083EXPECT=$ac_cv_prog_EXPECT
be01d343 8084if test -n "$EXPECT"; then
81ecdfbb
RW
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8086$as_echo "$EXPECT" >&6; }
be01d343 8087else
81ecdfbb
RW
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
be01d343 8090fi
a0da8069 8091
81ecdfbb 8092
c6b750e1 8093 test -n "$EXPECT" && break
be01d343
PB
8094done
8095test -n "$EXPECT" || EXPECT="expect"
a0da8069 8096
be01d343
PB
8097case " $configdirs " in
8098 *" expect "*)
8099 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8100 ;;
8101esac
a0da8069 8102
be01d343
PB
8103for ac_prog in runtest
8104do
c6b750e1 8105 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8106set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108$as_echo_n "checking for $ac_word... " >&6; }
8109if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
be01d343
PB
8111else
8112 if test -n "$RUNTEST"; then
8113 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8114else
c6b750e1
DJ
8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8122 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8124 break 2
8125 fi
8126done
81ecdfbb
RW
8127 done
8128IFS=$as_save_IFS
c6b750e1 8129
be01d343
PB
8130fi
8131fi
c6b750e1 8132RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8133if test -n "$RUNTEST"; then
81ecdfbb
RW
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8135$as_echo "$RUNTEST" >&6; }
be01d343 8136else
81ecdfbb
RW
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
be01d343 8139fi
a0da8069 8140
81ecdfbb 8141
c6b750e1 8142 test -n "$RUNTEST" && break
be01d343
PB
8143done
8144test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8145
be01d343
PB
8146case " $configdirs " in
8147 *" dejagnu "*)
6b89cc21 8148 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8149 ;;
8150esac
a0da8069
NN
8151
8152
a0da8069 8153# Host tools.
859789af
AC
8154ncn_tool_prefix=
8155test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8156ncn_target_tool_prefix=
8157test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8158
9a819804
AO
8159
8160
8161if test -n "$AR"; then
8162 ac_cv_prog_AR=$AR
8163elif test -n "$ac_cv_prog_AR"; then
8164 AR=$ac_cv_prog_AR
8165fi
8166
8167if test -n "$ac_cv_prog_AR"; then
8168 for ncn_progname in ar; 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_AR+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
9a819804
AO
8175else
8176 if test -n "$AR"; then
8177 ac_cv_prog_AR="$AR" # 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_AR="${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
8196AR=$ac_cv_prog_AR
8197if test -n "$AR"; then
81ecdfbb
RW
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8199$as_echo "$AR" >&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 ar; 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_AR+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
859789af
AC
8217else
8218 if test -n "$AR"; then
8219 ac_cv_prog_AR="$AR" # 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_AR="${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 8238AR=$ac_cv_prog_AR
859789af 8239if test -n "$AR"; then
81ecdfbb
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8241$as_echo "$AR" >&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_AR" && 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_AR+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
859789af 8256else
05cbd757
PB
8257 if test -n "$AR"; then
8258 ac_cv_prog_AR="$AR" # 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_AR="${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 8277AR=$ac_cv_prog_AR
05cbd757 8278if test -n "$AR"; then
81ecdfbb
RW
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8280$as_echo "$AR" >&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_AR" && break
8289done
8290
8291if test -z "$ac_cv_prog_AR" ; then
8292 set dummy ar
8293 if test $build = $host ; then
8294 AR="$2"
859789af 8295 else
05cbd757 8296 AR="${ncn_tool_prefix}$2"
859789af 8297 fi
859789af
AC
8298fi
8299
9a819804
AO
8300
8301
8302if test -n "$AS"; then
8303 ac_cv_prog_AS=$AS
8304elif test -n "$ac_cv_prog_AS"; then
8305 AS=$ac_cv_prog_AS
8306fi
8307
8308if test -n "$ac_cv_prog_AS"; then
8309 for ncn_progname in as; 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_AS+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
9a819804
AO
8316else
8317 if test -n "$AS"; then
8318 ac_cv_prog_AS="$AS" # 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_AS="${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
8337AS=$ac_cv_prog_AS
8338if test -n "$AS"; then
81ecdfbb
RW
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8340$as_echo "$AS" >&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 as; 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_AS+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
859789af
AC
8358else
8359 if test -n "$AS"; then
8360 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8361else
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_AS="${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 8379AS=$ac_cv_prog_AS
859789af 8380if test -n "$AS"; then
81ecdfbb
RW
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8382$as_echo "$AS" >&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_AS" && 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_AS+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
859789af 8397else
05cbd757
PB
8398 if test -n "$AS"; then
8399 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 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_AS="${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 8418AS=$ac_cv_prog_AS
05cbd757 8419if test -n "$AS"; then
81ecdfbb
RW
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8421$as_echo "$AS" >&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_AS" && break
8430done
8431
8432if test -z "$ac_cv_prog_AS" ; then
8433 set dummy as
8434 if test $build = $host ; then
8435 AS="$2"
859789af 8436 else
05cbd757 8437 AS="${ncn_tool_prefix}$2"
859789af 8438 fi
859789af
AC
8439fi
8440
9a819804
AO
8441
8442
8443if test -n "$DLLTOOL"; then
8444 ac_cv_prog_DLLTOOL=$DLLTOOL
8445elif test -n "$ac_cv_prog_DLLTOOL"; then
8446 DLLTOOL=$ac_cv_prog_DLLTOOL
8447fi
8448
8449if test -n "$ac_cv_prog_DLLTOOL"; then
8450 for ncn_progname in dlltool; 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_DLLTOOL+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
9a819804
AO
8457else
8458 if test -n "$DLLTOOL"; then
8459 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${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
8478DLLTOOL=$ac_cv_prog_DLLTOOL
8479if test -n "$DLLTOOL"; then
81ecdfbb
RW
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8481$as_echo "$DLLTOOL" >&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 dlltool; do
05cbd757
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_DLLTOOL+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
859789af
AC
8499else
8500 if test -n "$DLLTOOL"; then
8501 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${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
859789af
AC
8518fi
8519fi
c6b750e1 8520DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8521if test -n "$DLLTOOL"; then
81ecdfbb
RW
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8523$as_echo "$DLLTOOL" >&6; }
859789af 8524else
81ecdfbb
RW
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526$as_echo "no" >&6; }
859789af
AC
8527fi
8528
81ecdfbb 8529
05cbd757
PB
8530 fi
8531 if test -z "$ac_cv_prog_DLLTOOL" && 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_DLLTOOL+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
859789af 8538else
05cbd757
PB
8539 if test -n "$DLLTOOL"; then
8540 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 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_DLLTOOL="${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
859789af
AC
8557fi
8558fi
c6b750e1 8559DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8560if test -n "$DLLTOOL"; then
81ecdfbb
RW
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8562$as_echo "$DLLTOOL" >&6; }
859789af 8563else
81ecdfbb
RW
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565$as_echo "no" >&6; }
859789af 8566fi
c6b750e1 8567
81ecdfbb 8568
05cbd757
PB
8569 fi
8570 test -n "$ac_cv_prog_DLLTOOL" && break
8571done
8572
8573if test -z "$ac_cv_prog_DLLTOOL" ; then
8574 set dummy dlltool
8575 if test $build = $host ; then
8576 DLLTOOL="$2"
859789af 8577 else
05cbd757 8578 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8579 fi
859789af
AC
8580fi
8581
9a819804
AO
8582
8583
8584if test -n "$LD"; then
8585 ac_cv_prog_LD=$LD
8586elif test -n "$ac_cv_prog_LD"; then
8587 LD=$ac_cv_prog_LD
8588fi
8589
8590if test -n "$ac_cv_prog_LD"; then
8591 for ncn_progname in ld; 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_LD+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
9a819804
AO
8598else
8599 if test -n "$LD"; then
8600 ac_cv_prog_LD="$LD" # Let the user override the test.
8601else
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_LD="${ncn_progname}"
81ecdfbb 8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8611 break 2
8612 fi
8613done
81ecdfbb
RW
8614 done
8615IFS=$as_save_IFS
9a819804
AO
8616
8617fi
8618fi
8619LD=$ac_cv_prog_LD
8620if test -n "$LD"; then
81ecdfbb
RW
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8622$as_echo "$LD" >&6; }
9a819804 8623else
81ecdfbb
RW
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625$as_echo "no" >&6; }
9a819804
AO
8626fi
8627
81ecdfbb 8628
9a819804
AO
8629 done
8630fi
8631
8632for ncn_progname in ld; do
05cbd757
PB
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_LD+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
859789af
AC
8640else
8641 if test -n "$LD"; then
8642 ac_cv_prog_LD="$LD" # Let the user override the test.
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
c6b750e1 8651 ac_cv_prog_LD="${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 8661LD=$ac_cv_prog_LD
859789af 8662if test -n "$LD"; then
81ecdfbb
RW
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8664$as_echo "$LD" >&6; }
859789af 8665else
81ecdfbb
RW
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667$as_echo "no" >&6; }
859789af
AC
8668fi
8669
81ecdfbb 8670
05cbd757
PB
8671 fi
8672 if test -z "$ac_cv_prog_LD" && 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_LD+set}" = set; then :
8678 $as_echo_n "(cached) " >&6
859789af 8679else
05cbd757
PB
8680 if test -n "$LD"; then
8681 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8682else
c6b750e1
DJ
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
c6b750e1 8690 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8692 break 2
8693 fi
8694done
81ecdfbb
RW
8695 done
8696IFS=$as_save_IFS
c6b750e1 8697
859789af
AC
8698fi
8699fi
c6b750e1 8700LD=$ac_cv_prog_LD
05cbd757 8701if test -n "$LD"; then
81ecdfbb
RW
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8703$as_echo "$LD" >&6; }
859789af 8704else
81ecdfbb
RW
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706$as_echo "no" >&6; }
859789af 8707fi
c6b750e1 8708
81ecdfbb 8709
05cbd757
PB
8710 fi
8711 test -n "$ac_cv_prog_LD" && break
8712done
8713
8714if test -z "$ac_cv_prog_LD" ; then
8715 set dummy ld
8716 if test $build = $host ; then
8717 LD="$2"
859789af 8718 else
05cbd757 8719 LD="${ncn_tool_prefix}$2"
859789af 8720 fi
859789af
AC
8721fi
8722
9a819804
AO
8723
8724
8725if test -n "$LIPO"; then
8726 ac_cv_prog_LIPO=$LIPO
8727elif test -n "$ac_cv_prog_LIPO"; then
8728 LIPO=$ac_cv_prog_LIPO
8729fi
8730
8731if test -n "$ac_cv_prog_LIPO"; then
8732 for ncn_progname in lipo; 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_LIPO+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
9a819804
AO
8739else
8740 if test -n "$LIPO"; then
8741 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${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
8760LIPO=$ac_cv_prog_LIPO
8761if test -n "$LIPO"; then
81ecdfbb
RW
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8763$as_echo "$LIPO" >&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
8772
8773for ncn_progname in lipo; do
be01d343
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_LIPO+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
be01d343
PB
8781else
8782 if test -n "$LIPO"; then
8783 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${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
be01d343
PB
8800fi
8801fi
c6b750e1 8802LIPO=$ac_cv_prog_LIPO
be01d343 8803if test -n "$LIPO"; then
81ecdfbb
RW
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8805$as_echo "$LIPO" >&6; }
be01d343 8806else
81ecdfbb
RW
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808$as_echo "no" >&6; }
be01d343
PB
8809fi
8810
81ecdfbb 8811
be01d343
PB
8812 fi
8813 if test -z "$ac_cv_prog_LIPO" && 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_LIPO+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
be01d343
PB
8820else
8821 if test -n "$LIPO"; then
8822 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
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_LIPO="${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
be01d343
PB
8839fi
8840fi
c6b750e1 8841LIPO=$ac_cv_prog_LIPO
be01d343 8842if test -n "$LIPO"; then
81ecdfbb
RW
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8844$as_echo "$LIPO" >&6; }
be01d343 8845else
81ecdfbb
RW
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847$as_echo "no" >&6; }
be01d343 8848fi
c6b750e1 8849
81ecdfbb 8850
be01d343
PB
8851 fi
8852 test -n "$ac_cv_prog_LIPO" && break
8853done
8854
8855if test -z "$ac_cv_prog_LIPO" ; then
8856 set dummy lipo
8857 if test $build = $host ; then
8858 LIPO="$2"
8859 else
8860 LIPO="${ncn_tool_prefix}$2"
8861 fi
8862fi
8863
9a819804
AO
8864
8865
8866if test -n "$NM"; then
8867 ac_cv_prog_NM=$NM
8868elif test -n "$ac_cv_prog_NM"; then
8869 NM=$ac_cv_prog_NM
8870fi
8871
8872if test -n "$ac_cv_prog_NM"; then
8873 for ncn_progname in nm; do
8874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8875set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877$as_echo_n "checking for $ac_word... " >&6; }
8878if test "${ac_cv_prog_NM+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
859789af
AC
8880else
8881 if test -n "$NM"; then
8882 ac_cv_prog_NM="$NM" # Let the user override the test.
8883else
c6b750e1
DJ
8884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885for as_dir in $PATH
8886do
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8891 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8893 break 2
8894 fi
8895done
81ecdfbb
RW
8896 done
8897IFS=$as_save_IFS
c6b750e1 8898
859789af
AC
8899fi
8900fi
c6b750e1 8901NM=$ac_cv_prog_NM
859789af 8902if test -n "$NM"; then
81ecdfbb
RW
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8904$as_echo "$NM" >&6; }
859789af 8905else
81ecdfbb
RW
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907$as_echo "no" >&6; }
859789af
AC
8908fi
8909
81ecdfbb 8910
9a819804
AO
8911 done
8912fi
8913
8914for ncn_progname in nm; do
8915 if test -n "$ncn_tool_prefix"; then
8916 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8917set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919$as_echo_n "checking for $ac_word... " >&6; }
8920if test "${ac_cv_prog_NM+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
859789af 8922else
05cbd757
PB
8923 if test -n "$NM"; then
8924 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8925else
c6b750e1
DJ
8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927for as_dir in $PATH
8928do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8933 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8935 break 2
8936 fi
8937done
81ecdfbb
RW
8938 done
8939IFS=$as_save_IFS
c6b750e1 8940
859789af
AC
8941fi
8942fi
c6b750e1 8943NM=$ac_cv_prog_NM
05cbd757 8944if test -n "$NM"; then
81ecdfbb
RW
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8946$as_echo "$NM" >&6; }
859789af 8947else
81ecdfbb
RW
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949$as_echo "no" >&6; }
859789af 8950fi
c6b750e1 8951
81ecdfbb 8952
05cbd757 8953 fi
9a819804
AO
8954 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8956set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958$as_echo_n "checking for $ac_word... " >&6; }
8959if test "${ac_cv_prog_NM+set}" = set; then :
8960 $as_echo_n "(cached) " >&6
9a819804
AO
8961else
8962 if test -n "$NM"; then
8963 ac_cv_prog_NM="$NM" # Let the user override the test.
8964else
8965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966for as_dir in $PATH
8967do
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8972 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8974 break 2
8975 fi
8976done
81ecdfbb
RW
8977 done
8978IFS=$as_save_IFS
9a819804
AO
8979
8980fi
8981fi
8982NM=$ac_cv_prog_NM
8983if test -n "$NM"; then
81ecdfbb
RW
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8985$as_echo "$NM" >&6; }
9a819804 8986else
81ecdfbb
RW
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988$as_echo "no" >&6; }
9a819804
AO
8989fi
8990
81ecdfbb 8991
9a819804
AO
8992 fi
8993 test -n "$ac_cv_prog_NM" && break
8994done
8995
8996if test -z "$ac_cv_prog_NM" ; then
8997 set dummy nm
8998 if test $build = $host ; then
8999 NM="$2"
9000 else
9001 NM="${ncn_tool_prefix}$2"
9002 fi
9003fi
9004
9005
9006
9007if test -n "$RANLIB"; then
9008 ac_cv_prog_RANLIB=$RANLIB
9009elif test -n "$ac_cv_prog_RANLIB"; then
9010 RANLIB=$ac_cv_prog_RANLIB
9011fi
9012
9013if test -n "$ac_cv_prog_RANLIB"; then
9014 for ncn_progname in ranlib; do
9015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9016set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018$as_echo_n "checking for $ac_word... " >&6; }
9019if test "${ac_cv_prog_RANLIB+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9a819804
AO
9021else
9022 if test -n "$RANLIB"; then
9023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9024else
9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $PATH
9027do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9032 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9034 break 2
9035 fi
9036done
81ecdfbb
RW
9037 done
9038IFS=$as_save_IFS
9a819804
AO
9039
9040fi
9041fi
9042RANLIB=$ac_cv_prog_RANLIB
9043if test -n "$RANLIB"; then
81ecdfbb
RW
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9045$as_echo "$RANLIB" >&6; }
9a819804 9046else
81ecdfbb
RW
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048$as_echo "no" >&6; }
9a819804
AO
9049fi
9050
81ecdfbb 9051
9a819804
AO
9052 done
9053fi
859789af 9054
9a819804 9055for ncn_progname in ranlib; do
05cbd757
PB
9056 if test -n "$ncn_tool_prefix"; then
9057 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9058set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060$as_echo_n "checking for $ac_word... " >&6; }
9061if test "${ac_cv_prog_RANLIB+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
859789af
AC
9063else
9064 if test -n "$RANLIB"; then
9065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9066else
c6b750e1
DJ
9067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068for as_dir in $PATH
9069do
9070 IFS=$as_save_IFS
9071 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9074 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9076 break 2
9077 fi
9078done
81ecdfbb
RW
9079 done
9080IFS=$as_save_IFS
c6b750e1 9081
859789af
AC
9082fi
9083fi
c6b750e1 9084RANLIB=$ac_cv_prog_RANLIB
859789af 9085if test -n "$RANLIB"; then
81ecdfbb
RW
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9087$as_echo "$RANLIB" >&6; }
859789af 9088else
81ecdfbb
RW
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090$as_echo "no" >&6; }
859789af
AC
9091fi
9092
81ecdfbb 9093
05cbd757
PB
9094 fi
9095 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9097set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099$as_echo_n "checking for $ac_word... " >&6; }
9100if test "${ac_cv_prog_RANLIB+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
859789af 9102else
05cbd757
PB
9103 if test -n "$RANLIB"; then
9104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9105else
c6b750e1
DJ
9106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107for as_dir in $PATH
9108do
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9113 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9115 break 2
9116 fi
9117done
81ecdfbb
RW
9118 done
9119IFS=$as_save_IFS
c6b750e1 9120
859789af
AC
9121fi
9122fi
c6b750e1 9123RANLIB=$ac_cv_prog_RANLIB
05cbd757 9124if test -n "$RANLIB"; then
81ecdfbb
RW
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9126$as_echo "$RANLIB" >&6; }
859789af 9127else
81ecdfbb
RW
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129$as_echo "no" >&6; }
859789af 9130fi
c6b750e1 9131
81ecdfbb 9132
859789af 9133 fi
05cbd757
PB
9134 test -n "$ac_cv_prog_RANLIB" && break
9135done
9136
9137if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9138 RANLIB="true"
859789af
AC
9139fi
9140
9a819804
AO
9141
9142
9143if test -n "$STRIP"; then
9144 ac_cv_prog_STRIP=$STRIP
9145elif test -n "$ac_cv_prog_STRIP"; then
9146 STRIP=$ac_cv_prog_STRIP
9147fi
9148
9149if test -n "$ac_cv_prog_STRIP"; then
9150 for ncn_progname in strip; do
9151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9152set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9154$as_echo_n "checking for $ac_word... " >&6; }
9155if test "${ac_cv_prog_STRIP+set}" = set; then :
9156 $as_echo_n "(cached) " >&6
9a819804
AO
9157else
9158 if test -n "$STRIP"; then
9159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9160else
9161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162for as_dir in $PATH
9163do
9164 IFS=$as_save_IFS
9165 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9168 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9170 break 2
9171 fi
9172done
81ecdfbb
RW
9173 done
9174IFS=$as_save_IFS
9a819804
AO
9175
9176fi
9177fi
9178STRIP=$ac_cv_prog_STRIP
9179if test -n "$STRIP"; then
81ecdfbb
RW
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9181$as_echo "$STRIP" >&6; }
9a819804 9182else
81ecdfbb
RW
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184$as_echo "no" >&6; }
9a819804
AO
9185fi
9186
81ecdfbb 9187
9a819804
AO
9188 done
9189fi
9190
9191for ncn_progname in strip; do
be01d343
PB
9192 if test -n "$ncn_tool_prefix"; then
9193 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9194set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196$as_echo_n "checking for $ac_word... " >&6; }
9197if test "${ac_cv_prog_STRIP+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
be01d343
PB
9199else
9200 if test -n "$STRIP"; then
9201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9202else
c6b750e1
DJ
9203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204for as_dir in $PATH
9205do
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9210 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9212 break 2
9213 fi
9214done
81ecdfbb
RW
9215 done
9216IFS=$as_save_IFS
c6b750e1 9217
be01d343
PB
9218fi
9219fi
c6b750e1 9220STRIP=$ac_cv_prog_STRIP
be01d343 9221if test -n "$STRIP"; then
81ecdfbb
RW
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9223$as_echo "$STRIP" >&6; }
be01d343 9224else
81ecdfbb
RW
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226$as_echo "no" >&6; }
be01d343
PB
9227fi
9228
81ecdfbb 9229
be01d343
PB
9230 fi
9231 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9233set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9235$as_echo_n "checking for $ac_word... " >&6; }
9236if test "${ac_cv_prog_STRIP+set}" = set; then :
9237 $as_echo_n "(cached) " >&6
be01d343
PB
9238else
9239 if test -n "$STRIP"; then
9240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9241else
c6b750e1
DJ
9242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243for as_dir in $PATH
9244do
9245 IFS=$as_save_IFS
9246 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9247 for ac_exec_ext in '' $ac_executable_extensions; do
9248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9249 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9251 break 2
9252 fi
9253done
81ecdfbb
RW
9254 done
9255IFS=$as_save_IFS
c6b750e1 9256
be01d343
PB
9257fi
9258fi
c6b750e1 9259STRIP=$ac_cv_prog_STRIP
be01d343 9260if test -n "$STRIP"; then
81ecdfbb
RW
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9262$as_echo "$STRIP" >&6; }
be01d343 9263else
81ecdfbb
RW
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265$as_echo "no" >&6; }
be01d343 9266fi
c6b750e1 9267
81ecdfbb 9268
be01d343
PB
9269 fi
9270 test -n "$ac_cv_prog_STRIP" && break
9271done
9272
9273if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9274 STRIP="true"
be01d343
PB
9275fi
9276
9a819804
AO
9277
9278
9279if test -n "$WINDRES"; then
9280 ac_cv_prog_WINDRES=$WINDRES
9281elif test -n "$ac_cv_prog_WINDRES"; then
9282 WINDRES=$ac_cv_prog_WINDRES
9283fi
9284
9285if test -n "$ac_cv_prog_WINDRES"; then
9286 for ncn_progname in windres; 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_WINDRES+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9a819804
AO
9293else
9294 if test -n "$WINDRES"; then
9295 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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
9314WINDRES=$ac_cv_prog_WINDRES
9315if test -n "$WINDRES"; then
81ecdfbb
RW
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9317$as_echo "$WINDRES" >&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 windres; 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_WINDRES+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
859789af
AC
9335else
9336 if test -n "$WINDRES"; then
9337 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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 9356WINDRES=$ac_cv_prog_WINDRES
859789af 9357if test -n "$WINDRES"; then
81ecdfbb
RW
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9359$as_echo "$WINDRES" >&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_WINDRES" && 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_WINDRES+set}" = set; then :
9373 $as_echo_n "(cached) " >&6
859789af 9374else
05cbd757
PB
9375 if test -n "$WINDRES"; then
9376 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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 9395WINDRES=$ac_cv_prog_WINDRES
05cbd757 9396if test -n "$WINDRES"; then
81ecdfbb
RW
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9398$as_echo "$WINDRES" >&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_WINDRES" && break
9407done
9408
9409if test -z "$ac_cv_prog_WINDRES" ; then
9410 set dummy windres
9411 if test $build = $host ; then
9412 WINDRES="$2"
859789af 9413 else
05cbd757 9414 WINDRES="${ncn_tool_prefix}$2"
859789af 9415 fi
859789af
AC
9416fi
9417
9a819804
AO
9418
9419
0c24b341
NC
9420if test -n "$WINDMC"; then
9421 ac_cv_prog_WINDMC=$WINDMC
9422elif test -n "$ac_cv_prog_WINDMC"; then
9423 WINDMC=$ac_cv_prog_WINDMC
9424fi
9425
9426if test -n "$ac_cv_prog_WINDMC"; then
9427 for ncn_progname in windmc; 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_WINDMC+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
0c24b341
NC
9434else
9435 if test -n "$WINDMC"; then
9436 ac_cv_prog_WINDMC="$WINDMC" # 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
0c24b341 9445 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9447 break 2
9448 fi
9449done
81ecdfbb
RW
9450 done
9451IFS=$as_save_IFS
0c24b341
NC
9452
9453fi
9454fi
9455WINDMC=$ac_cv_prog_WINDMC
9456if test -n "$WINDMC"; then
81ecdfbb
RW
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9458$as_echo "$WINDMC" >&6; }
0c24b341 9459else
81ecdfbb
RW
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461$as_echo "no" >&6; }
0c24b341
NC
9462fi
9463
81ecdfbb 9464
0c24b341
NC
9465 done
9466fi
9467
9468for ncn_progname in windmc; do
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_WINDMC+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
0c24b341
NC
9476else
9477 if test -n "$WINDMC"; then
9478 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9479else
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
0c24b341 9487 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9489 break 2
9490 fi
9491done
81ecdfbb
RW
9492 done
9493IFS=$as_save_IFS
0c24b341
NC
9494
9495fi
9496fi
9497WINDMC=$ac_cv_prog_WINDMC
9498if test -n "$WINDMC"; then
81ecdfbb
RW
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9500$as_echo "$WINDMC" >&6; }
0c24b341 9501else
81ecdfbb
RW
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503$as_echo "no" >&6; }
0c24b341
NC
9504fi
9505
81ecdfbb 9506
0c24b341
NC
9507 fi
9508 if test -z "$ac_cv_prog_WINDMC" && 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_WINDMC+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
0c24b341
NC
9515else
9516 if test -n "$WINDMC"; then
9517 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9518else
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
0c24b341 9526 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9528 break 2
9529 fi
9530done
81ecdfbb
RW
9531 done
9532IFS=$as_save_IFS
0c24b341
NC
9533
9534fi
9535fi
9536WINDMC=$ac_cv_prog_WINDMC
9537if test -n "$WINDMC"; then
81ecdfbb
RW
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9539$as_echo "$WINDMC" >&6; }
0c24b341 9540else
81ecdfbb
RW
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542$as_echo "no" >&6; }
0c24b341
NC
9543fi
9544
81ecdfbb 9545
0c24b341
NC
9546 fi
9547 test -n "$ac_cv_prog_WINDMC" && break
9548done
9549
9550if test -z "$ac_cv_prog_WINDMC" ; then
9551 set dummy windmc
9552 if test $build = $host ; then
9553 WINDMC="$2"
9554 else
9555 WINDMC="${ncn_tool_prefix}$2"
9556 fi
9557fi
9558
9559
9560
9a819804
AO
9561if test -n "$OBJCOPY"; then
9562 ac_cv_prog_OBJCOPY=$OBJCOPY
9563elif test -n "$ac_cv_prog_OBJCOPY"; then
9564 OBJCOPY=$ac_cv_prog_OBJCOPY
9565fi
9566
9567if test -n "$ac_cv_prog_OBJCOPY"; then
9568 for ncn_progname in objcopy; do
9569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9570set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572$as_echo_n "checking for $ac_word... " >&6; }
9573if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
9a819804
AO
9575else
9576 if test -n "$OBJCOPY"; then
9577 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9578else
9579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580for as_dir in $PATH
9581do
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9586 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9588 break 2
9589 fi
9590done
81ecdfbb
RW
9591 done
9592IFS=$as_save_IFS
9a819804
AO
9593
9594fi
9595fi
9596OBJCOPY=$ac_cv_prog_OBJCOPY
9597if test -n "$OBJCOPY"; then
81ecdfbb
RW
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9599$as_echo "$OBJCOPY" >&6; }
9a819804 9600else
81ecdfbb
RW
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602$as_echo "no" >&6; }
9a819804
AO
9603fi
9604
81ecdfbb 9605
9a819804
AO
9606 done
9607fi
9608
9609for ncn_progname in objcopy; do
05cbd757
PB
9610 if test -n "$ncn_tool_prefix"; then
9611 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9612set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614$as_echo_n "checking for $ac_word... " >&6; }
9615if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
859789af
AC
9617else
9618 if test -n "$OBJCOPY"; then
9619 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9620else
c6b750e1
DJ
9621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622for as_dir in $PATH
9623do
9624 IFS=$as_save_IFS
9625 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9628 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9630 break 2
9631 fi
9632done
81ecdfbb
RW
9633 done
9634IFS=$as_save_IFS
c6b750e1 9635
859789af
AC
9636fi
9637fi
c6b750e1 9638OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9639if test -n "$OBJCOPY"; then
81ecdfbb
RW
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9641$as_echo "$OBJCOPY" >&6; }
859789af 9642else
81ecdfbb
RW
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644$as_echo "no" >&6; }
859789af
AC
9645fi
9646
81ecdfbb 9647
05cbd757
PB
9648 fi
9649 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9651set dummy ${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_OBJCOPY+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
859789af 9656else
05cbd757
PB
9657 if test -n "$OBJCOPY"; then
9658 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 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_OBJCOPY="${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
859789af
AC
9675fi
9676fi
c6b750e1 9677OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9678if test -n "$OBJCOPY"; then
81ecdfbb
RW
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9680$as_echo "$OBJCOPY" >&6; }
859789af 9681else
81ecdfbb
RW
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683$as_echo "no" >&6; }
859789af 9684fi
c6b750e1 9685
81ecdfbb 9686
05cbd757
PB
9687 fi
9688 test -n "$ac_cv_prog_OBJCOPY" && break
9689done
9690
9691if test -z "$ac_cv_prog_OBJCOPY" ; then
9692 set dummy objcopy
9693 if test $build = $host ; then
9694 OBJCOPY="$2"
859789af 9695 else
05cbd757 9696 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9697 fi
859789af
AC
9698fi
9699
9a819804
AO
9700
9701
9702if test -n "$OBJDUMP"; then
9703 ac_cv_prog_OBJDUMP=$OBJDUMP
9704elif test -n "$ac_cv_prog_OBJDUMP"; then
9705 OBJDUMP=$ac_cv_prog_OBJDUMP
9706fi
9707
9708if test -n "$ac_cv_prog_OBJDUMP"; then
9709 for ncn_progname in objdump; do
9710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9711set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713$as_echo_n "checking for $ac_word... " >&6; }
9714if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9a819804
AO
9716else
9717 if test -n "$OBJDUMP"; then
9718 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9719else
9720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721for as_dir in $PATH
9722do
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9727 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9729 break 2
9730 fi
9731done
81ecdfbb
RW
9732 done
9733IFS=$as_save_IFS
9a819804
AO
9734
9735fi
9736fi
9737OBJDUMP=$ac_cv_prog_OBJDUMP
9738if test -n "$OBJDUMP"; then
81ecdfbb
RW
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9740$as_echo "$OBJDUMP" >&6; }
9a819804 9741else
81ecdfbb
RW
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743$as_echo "no" >&6; }
9a819804
AO
9744fi
9745
81ecdfbb 9746
9a819804
AO
9747 done
9748fi
9749
9750for ncn_progname in objdump; do
05cbd757
PB
9751 if test -n "$ncn_tool_prefix"; then
9752 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9753set dummy ${ncn_tool_prefix}${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_OBJDUMP+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
859789af
AC
9758else
9759 if test -n "$OBJDUMP"; then
9760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9761else
c6b750e1
DJ
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
c6b750e1 9769 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9771 break 2
9772 fi
9773done
81ecdfbb
RW
9774 done
9775IFS=$as_save_IFS
c6b750e1 9776
859789af
AC
9777fi
9778fi
c6b750e1 9779OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9780if test -n "$OBJDUMP"; then
81ecdfbb
RW
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9782$as_echo "$OBJDUMP" >&6; }
859789af 9783else
81ecdfbb
RW
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785$as_echo "no" >&6; }
859789af
AC
9786fi
9787
81ecdfbb 9788
05cbd757
PB
9789 fi
9790 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9792set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794$as_echo_n "checking for $ac_word... " >&6; }
9795if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
859789af 9797else
05cbd757
PB
9798 if test -n "$OBJDUMP"; then
9799 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9800else
c6b750e1
DJ
9801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802for as_dir in $PATH
9803do
9804 IFS=$as_save_IFS
9805 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9806 for ac_exec_ext in '' $ac_executable_extensions; do
9807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9808 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9810 break 2
9811 fi
9812done
81ecdfbb
RW
9813 done
9814IFS=$as_save_IFS
c6b750e1 9815
859789af
AC
9816fi
9817fi
c6b750e1 9818OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9819if test -n "$OBJDUMP"; then
81ecdfbb
RW
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9821$as_echo "$OBJDUMP" >&6; }
859789af 9822else
81ecdfbb
RW
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824$as_echo "no" >&6; }
859789af 9825fi
c6b750e1 9826
81ecdfbb 9827
05cbd757
PB
9828 fi
9829 test -n "$ac_cv_prog_OBJDUMP" && break
9830done
9831
9832if test -z "$ac_cv_prog_OBJDUMP" ; then
9833 set dummy objdump
9834 if test $build = $host ; then
9835 OBJDUMP="$2"
859789af 9836 else
05cbd757 9837 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9838 fi
859789af
AC
9839fi
9840
a0da8069
NN
9841
9842
b121d7d4
DD
9843if test -n "$READELF"; then
9844 ac_cv_prog_READELF=$READELF
9845elif test -n "$ac_cv_prog_READELF"; then
9846 READELF=$ac_cv_prog_READELF
9847fi
9848
9849if test -n "$ac_cv_prog_READELF"; then
9850 for ncn_progname in readelf; do
9851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9852set dummy ${ncn_progname}; ac_word=$2
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854$as_echo_n "checking for $ac_word... " >&6; }
9855if test "${ac_cv_prog_READELF+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9857else
9858 if test -n "$READELF"; then
9859 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9860else
9861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862for as_dir in $PATH
9863do
9864 IFS=$as_save_IFS
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9868 ac_cv_prog_READELF="${ncn_progname}"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870 break 2
9871 fi
9872done
9873 done
9874IFS=$as_save_IFS
9875
9876fi
9877fi
9878READELF=$ac_cv_prog_READELF
9879if test -n "$READELF"; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9881$as_echo "$READELF" >&6; }
9882else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884$as_echo "no" >&6; }
9885fi
9886
9887
9888 done
9889fi
9890
9891for ncn_progname in readelf; do
9892 if test -n "$ncn_tool_prefix"; then
9893 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9894set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896$as_echo_n "checking for $ac_word... " >&6; }
9897if test "${ac_cv_prog_READELF+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899else
9900 if test -n "$READELF"; then
9901 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9902else
9903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904for as_dir in $PATH
9905do
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9913 fi
9914done
9915 done
9916IFS=$as_save_IFS
9917
9918fi
9919fi
9920READELF=$ac_cv_prog_READELF
9921if test -n "$READELF"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9923$as_echo "$READELF" >&6; }
9924else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926$as_echo "no" >&6; }
9927fi
9928
9929
9930 fi
9931 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9933set dummy ${ncn_progname}; ac_word=$2
9934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935$as_echo_n "checking for $ac_word... " >&6; }
9936if test "${ac_cv_prog_READELF+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9938else
9939 if test -n "$READELF"; then
9940 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9941else
9942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943for as_dir in $PATH
9944do
9945 IFS=$as_save_IFS
9946 test -z "$as_dir" && as_dir=.
9947 for ac_exec_ext in '' $ac_executable_extensions; do
9948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9949 ac_cv_prog_READELF="${ncn_progname}"
9950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9951 break 2
9952 fi
9953done
9954 done
9955IFS=$as_save_IFS
9956
9957fi
9958fi
9959READELF=$ac_cv_prog_READELF
9960if test -n "$READELF"; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9962$as_echo "$READELF" >&6; }
9963else
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965$as_echo "no" >&6; }
9966fi
9967
9968
9969 fi
9970 test -n "$ac_cv_prog_READELF" && break
9971done
9972
9973if test -z "$ac_cv_prog_READELF" ; then
9974 set dummy readelf
9975 if test $build = $host ; then
9976 READELF="$2"
9977 else
9978 READELF="${ncn_tool_prefix}$2"
9979 fi
9980fi
9981
9982
9983
a0da8069
NN
9984
9985
9986
be01d343 9987# Target tools.
c6b750e1 9988
81ecdfbb
RW
9989# Check whether --with-build-time-tools was given.
9990if test "${with_build_time_tools+set}" = set; then :
9991 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9992 x/*) ;;
9993 *)
9994 with_build_time_tools=
81ecdfbb
RW
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9996$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9997 ;;
9998 esac
859789af 9999else
2429c060 10000 with_build_time_tools=
81ecdfbb
RW
10001fi
10002
859789af 10003
9a819804
AO
10004
10005
10006if test -n "$CC_FOR_TARGET"; then
10007 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10008elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10009 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10010fi
10011
10012if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10013 for ncn_progname in cc gcc; do
10014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10015set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017$as_echo_n "checking for $ac_word... " >&6; }
10018if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
9a819804
AO
10020else
10021 if test -n "$CC_FOR_TARGET"; then
10022 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10023else
10024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025for as_dir in $PATH
10026do
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10031 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10033 break 2
10034 fi
10035done
81ecdfbb
RW
10036 done
10037IFS=$as_save_IFS
9a819804
AO
10038
10039fi
10040fi
10041CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10042if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10044$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10045else
81ecdfbb
RW
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047$as_echo "no" >&6; }
9a819804
AO
10048fi
10049
81ecdfbb 10050
9a819804
AO
10051 done
10052fi
10053
10054if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10055 for ncn_progname in cc gcc; do
81ecdfbb
RW
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10057$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10058 if test -x $with_build_time_tools/${ncn_progname}; then
10059 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10061$as_echo "yes" >&6; }
cac3d6c4 10062 break
2429c060 10063 else
81ecdfbb
RW
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065$as_echo "no" >&6; }
cac3d6c4
CM
10066 fi
10067 done
55db4b87
PB
10068fi
10069
2429c060
PB
10070if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10071 for ncn_progname in cc gcc; do
10072 if test -n "$ncn_target_tool_prefix"; then
10073 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10074set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076$as_echo_n "checking for $ac_word... " >&6; }
10077if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
55db4b87
PB
10079else
10080 if test -n "$CC_FOR_TARGET"; then
10081 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10082else
c6b750e1
DJ
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10090 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10092 break 2
10093 fi
10094done
81ecdfbb
RW
10095 done
10096IFS=$as_save_IFS
c6b750e1 10097
55db4b87
PB
10098fi
10099fi
c6b750e1 10100CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10101if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10103$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10104else
81ecdfbb
RW
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106$as_echo "no" >&6; }
55db4b87
PB
10107fi
10108
81ecdfbb 10109
2429c060
PB
10110 fi
10111 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10113set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115$as_echo_n "checking for $ac_word... " >&6; }
10116if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
55db4b87 10118else
05cbd757
PB
10119 if test -n "$CC_FOR_TARGET"; then
10120 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10121else
c6b750e1
DJ
10122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123for as_dir in $PATH
10124do
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10127 for ac_exec_ext in '' $ac_executable_extensions; do
10128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10129 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10131 break 2
10132 fi
10133done
81ecdfbb
RW
10134 done
10135IFS=$as_save_IFS
c6b750e1 10136
55db4b87
PB
10137fi
10138fi
c6b750e1 10139CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10140if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10142$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10143else
81ecdfbb
RW
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145$as_echo "no" >&6; }
55db4b87 10146fi
c6b750e1 10147
81ecdfbb 10148
2429c060
PB
10149 fi
10150 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10151 done
10152fi
c6b750e1 10153
05cbd757
PB
10154if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10155 set dummy cc gcc
10156 if test $build = $target ; then
10157 CC_FOR_TARGET="$2"
55db4b87 10158 else
05cbd757 10159 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10160 fi
d3f5afc4
MS
10161else
10162 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10163fi
10164
9a819804
AO
10165
10166
10167if test -n "$CXX_FOR_TARGET"; then
10168 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10169elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10170 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10171fi
10172
10173if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10174 for ncn_progname in c++ g++ cxx gxx; do
10175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10176set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178$as_echo_n "checking for $ac_word... " >&6; }
10179if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
9a819804
AO
10181else
10182 if test -n "$CXX_FOR_TARGET"; then
10183 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10184else
10185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186for as_dir in $PATH
10187do
10188 IFS=$as_save_IFS
10189 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10192 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10194 break 2
10195 fi
10196done
81ecdfbb
RW
10197 done
10198IFS=$as_save_IFS
9a819804
AO
10199
10200fi
10201fi
10202CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10203if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10205$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10206else
81ecdfbb
RW
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208$as_echo "no" >&6; }
9a819804
AO
10209fi
10210
81ecdfbb 10211
9a819804
AO
10212 done
10213fi
10214
10215if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10216 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10218$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10219 if test -x $with_build_time_tools/${ncn_progname}; then
10220 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10222$as_echo "yes" >&6; }
2429c060
PB
10223 break
10224 else
81ecdfbb
RW
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226$as_echo "no" >&6; }
2429c060
PB
10227 fi
10228 done
10229fi
10230
10231if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10232 for ncn_progname in c++ g++ cxx gxx; do
10233 if test -n "$ncn_target_tool_prefix"; then
10234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10235set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237$as_echo_n "checking for $ac_word... " >&6; }
10238if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
55db4b87
PB
10240else
10241 if test -n "$CXX_FOR_TARGET"; then
10242 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10243else
c6b750e1
DJ
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10251 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10253 break 2
10254 fi
10255done
81ecdfbb
RW
10256 done
10257IFS=$as_save_IFS
c6b750e1 10258
55db4b87
PB
10259fi
10260fi
c6b750e1 10261CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10262if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10264$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10265else
81ecdfbb
RW
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
55db4b87
PB
10268fi
10269
81ecdfbb 10270
2429c060
PB
10271 fi
10272 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10274set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10276$as_echo_n "checking for $ac_word... " >&6; }
10277if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10278 $as_echo_n "(cached) " >&6
55db4b87 10279else
05cbd757
PB
10280 if test -n "$CXX_FOR_TARGET"; then
10281 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10282else
c6b750e1
DJ
10283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284for as_dir in $PATH
10285do
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10290 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10292 break 2
10293 fi
10294done
81ecdfbb
RW
10295 done
10296IFS=$as_save_IFS
c6b750e1 10297
55db4b87
PB
10298fi
10299fi
c6b750e1 10300CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10301if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10303$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10304else
81ecdfbb
RW
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306$as_echo "no" >&6; }
55db4b87 10307fi
c6b750e1 10308
81ecdfbb 10309
2429c060
PB
10310 fi
10311 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10312 done
10313fi
c6b750e1 10314
05cbd757
PB
10315if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10316 set dummy c++ g++ cxx gxx
10317 if test $build = $target ; then
10318 CXX_FOR_TARGET="$2"
55db4b87 10319 else
05cbd757 10320 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10321 fi
d3f5afc4
MS
10322else
10323 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10324fi
10325
9a819804
AO
10326
10327
10328if test -n "$GCC_FOR_TARGET"; then
10329 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10330elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10331 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10332fi
10333
10334if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10335 for ncn_progname in gcc; do
10336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10337set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10339$as_echo_n "checking for $ac_word... " >&6; }
10340if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10341 $as_echo_n "(cached) " >&6
9a819804
AO
10342else
10343 if test -n "$GCC_FOR_TARGET"; then
10344 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10345else
10346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347for as_dir in $PATH
10348do
10349 IFS=$as_save_IFS
10350 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10351 for ac_exec_ext in '' $ac_executable_extensions; do
10352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10353 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10355 break 2
10356 fi
10357done
81ecdfbb
RW
10358 done
10359IFS=$as_save_IFS
9a819804
AO
10360
10361fi
10362fi
10363GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10364if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10366$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10367else
81ecdfbb
RW
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369$as_echo "no" >&6; }
9a819804
AO
10370fi
10371
81ecdfbb 10372
9a819804
AO
10373 done
10374fi
10375
10376if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10377 for ncn_progname in gcc; do
81ecdfbb
RW
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10379$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10380 if test -x $with_build_time_tools/${ncn_progname}; then
10381 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10383$as_echo "yes" >&6; }
2429c060
PB
10384 break
10385 else
81ecdfbb
RW
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387$as_echo "no" >&6; }
2429c060
PB
10388 fi
10389 done
10390fi
10391
10392if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10393 for ncn_progname in gcc; do
10394 if test -n "$ncn_target_tool_prefix"; then
10395 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10396set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398$as_echo_n "checking for $ac_word... " >&6; }
10399if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
859789af 10401else
2429c060
PB
10402 if test -n "$GCC_FOR_TARGET"; then
10403 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10404else
c6b750e1
DJ
10405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406for as_dir in $PATH
10407do
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10412 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10414 break 2
10415 fi
10416done
81ecdfbb
RW
10417 done
10418IFS=$as_save_IFS
c6b750e1 10419
55db4b87
PB
10420fi
10421fi
c6b750e1 10422GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10423if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10425$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10426else
81ecdfbb
RW
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428$as_echo "no" >&6; }
55db4b87
PB
10429fi
10430
81ecdfbb 10431
2429c060
PB
10432 fi
10433 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10435set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10437$as_echo_n "checking for $ac_word... " >&6; }
10438if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10439 $as_echo_n "(cached) " >&6
55db4b87 10440else
05cbd757
PB
10441 if test -n "$GCC_FOR_TARGET"; then
10442 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10443else
c6b750e1
DJ
10444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445for as_dir in $PATH
10446do
10447 IFS=$as_save_IFS
10448 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10449 for ac_exec_ext in '' $ac_executable_extensions; do
10450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10451 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10453 break 2
10454 fi
10455done
81ecdfbb
RW
10456 done
10457IFS=$as_save_IFS
c6b750e1 10458
55db4b87
PB
10459fi
10460fi
c6b750e1 10461GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10462if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10464$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10465else
81ecdfbb
RW
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467$as_echo "no" >&6; }
55db4b87 10468fi
c6b750e1 10469
81ecdfbb 10470
2429c060
PB
10471 fi
10472 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10473 done
10474fi
c6b750e1 10475
05cbd757
PB
10476if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10477 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10478else
10479 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10480fi
10481
9a819804
AO
10482
10483
10484if test -n "$GCJ_FOR_TARGET"; then
10485 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10486elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10487 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10488fi
10489
10490if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10491 for ncn_progname in gcj; do
10492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10493set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495$as_echo_n "checking for $ac_word... " >&6; }
10496if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
9a819804
AO
10498else
10499 if test -n "$GCJ_FOR_TARGET"; then
10500 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10501else
10502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503for as_dir in $PATH
10504do
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10509 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10511 break 2
10512 fi
10513done
81ecdfbb
RW
10514 done
10515IFS=$as_save_IFS
9a819804
AO
10516
10517fi
10518fi
10519GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10520if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10522$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10523else
81ecdfbb
RW
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525$as_echo "no" >&6; }
9a819804
AO
10526fi
10527
81ecdfbb 10528
9a819804
AO
10529 done
10530fi
10531
10532if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10533 for ncn_progname in gcj; do
81ecdfbb
RW
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10535$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10536 if test -x $with_build_time_tools/${ncn_progname}; then
10537 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539$as_echo "yes" >&6; }
2429c060
PB
10540 break
10541 else
81ecdfbb
RW
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543$as_echo "no" >&6; }
2429c060
PB
10544 fi
10545 done
10546fi
10547
10548if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10549 for ncn_progname in gcj; do
10550 if test -n "$ncn_target_tool_prefix"; then
10551 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10552set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554$as_echo_n "checking for $ac_word... " >&6; }
10555if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
55db4b87
PB
10557else
10558 if test -n "$GCJ_FOR_TARGET"; then
10559 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10560else
c6b750e1
DJ
10561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562for as_dir in $PATH
10563do
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10566 for ac_exec_ext in '' $ac_executable_extensions; do
10567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10568 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10570 break 2
10571 fi
10572done
81ecdfbb
RW
10573 done
10574IFS=$as_save_IFS
c6b750e1 10575
55db4b87
PB
10576fi
10577fi
9a819804
AO
10578GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10579if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10581$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10582else
81ecdfbb
RW
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584$as_echo "no" >&6; }
9a819804
AO
10585fi
10586
81ecdfbb 10587
9a819804
AO
10588 fi
10589 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10591set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593$as_echo_n "checking for $ac_word... " >&6; }
10594if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10595 $as_echo_n "(cached) " >&6
9a819804
AO
10596else
10597 if test -n "$GCJ_FOR_TARGET"; then
10598 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10599else
10600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601for as_dir in $PATH
10602do
10603 IFS=$as_save_IFS
10604 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10605 for ac_exec_ext in '' $ac_executable_extensions; do
10606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10607 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10609 break 2
10610 fi
10611done
81ecdfbb
RW
10612 done
10613IFS=$as_save_IFS
9a819804
AO
10614
10615fi
10616fi
10617GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10618if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10620$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10621else
81ecdfbb
RW
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623$as_echo "no" >&6; }
9a819804
AO
10624fi
10625
81ecdfbb 10626
9a819804
AO
10627 fi
10628 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10629 done
10630fi
10631
10632if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10633 set dummy gcj
10634 if test $build = $target ; then
10635 GCJ_FOR_TARGET="$2"
10636 else
10637 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10638 fi
d3f5afc4
MS
10639else
10640 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10641fi
10642
10643
10644
10645if test -n "$GFORTRAN_FOR_TARGET"; then
10646 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10647elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10648 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10649fi
10650
9a819804
AO
10651if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10652 for ncn_progname in gfortran; do
10653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10654set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656$as_echo_n "checking for $ac_word... " >&6; }
10657if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10658 $as_echo_n "(cached) " >&6
55db4b87 10659else
9a819804
AO
10660 if test -n "$GFORTRAN_FOR_TARGET"; then
10661 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10662else
c6b750e1
DJ
10663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664for as_dir in $PATH
10665do
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10670 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10672 break 2
10673 fi
10674done
81ecdfbb
RW
10675 done
10676IFS=$as_save_IFS
c6b750e1 10677
55db4b87
PB
10678fi
10679fi
9a819804
AO
10680GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10681if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10683$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10684else
81ecdfbb
RW
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686$as_echo "no" >&6; }
55db4b87 10687fi
c6b750e1 10688
81ecdfbb 10689
2429c060
PB
10690 done
10691fi
c6b750e1 10692
9a819804 10693if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10694 for ncn_progname in gfortran; do
81ecdfbb
RW
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10696$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10697 if test -x $with_build_time_tools/${ncn_progname}; then
10698 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10700$as_echo "yes" >&6; }
2429c060
PB
10701 break
10702 else
81ecdfbb
RW
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704$as_echo "no" >&6; }
2429c060
PB
10705 fi
10706 done
10707fi
10708
10709if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10710 for ncn_progname in gfortran; do
10711 if test -n "$ncn_target_tool_prefix"; then
10712 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10713set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715$as_echo_n "checking for $ac_word... " >&6; }
10716if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
55db4b87
PB
10718else
10719 if test -n "$GFORTRAN_FOR_TARGET"; then
10720 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10721else
c6b750e1
DJ
10722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723for as_dir in $PATH
10724do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10729 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10731 break 2
10732 fi
10733done
81ecdfbb
RW
10734 done
10735IFS=$as_save_IFS
c6b750e1 10736
55db4b87
PB
10737fi
10738fi
c6b750e1 10739GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10740if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10742$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10743else
81ecdfbb
RW
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745$as_echo "no" >&6; }
55db4b87
PB
10746fi
10747
81ecdfbb 10748
2429c060
PB
10749 fi
10750 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10752set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754$as_echo_n "checking for $ac_word... " >&6; }
10755if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
55db4b87 10757else
05cbd757 10758 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10759 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10760else
10761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762for as_dir in $PATH
10763do
10764 IFS=$as_save_IFS
10765 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10768 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10770 break 2
10771 fi
10772done
81ecdfbb
RW
10773 done
10774IFS=$as_save_IFS
c6b750e1 10775
55db4b87
PB
10776fi
10777fi
c6b750e1 10778GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10779if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10781$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10782else
81ecdfbb
RW
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784$as_echo "no" >&6; }
55db4b87 10785fi
c6b750e1 10786
81ecdfbb 10787
2429c060
PB
10788 fi
10789 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10790 done
10791fi
c6b750e1 10792
05cbd757
PB
10793if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10794 set dummy gfortran
10795 if test $build = $target ; then
10796 GFORTRAN_FOR_TARGET="$2"
55db4b87 10797 else
05cbd757 10798 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10799 fi
d3f5afc4
MS
10800else
10801 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10802fi
10803
2429c060
PB
10804
10805
e552509b
ILT
10806if test -n "$GOC_FOR_TARGET"; then
10807 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10808elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10809 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10810fi
10811
10812if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10813 for ncn_progname in gccgo; do
10814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10815set dummy ${ncn_progname}; ac_word=$2
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817$as_echo_n "checking for $ac_word... " >&6; }
10818if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10820else
10821 if test -n "$GOC_FOR_TARGET"; then
10822 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10823else
10824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825for as_dir in $PATH
10826do
10827 IFS=$as_save_IFS
10828 test -z "$as_dir" && as_dir=.
10829 for ac_exec_ext in '' $ac_executable_extensions; do
10830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10831 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10833 break 2
10834 fi
10835done
10836 done
10837IFS=$as_save_IFS
10838
10839fi
10840fi
10841GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10842if test -n "$GOC_FOR_TARGET"; then
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10844$as_echo "$GOC_FOR_TARGET" >&6; }
10845else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847$as_echo "no" >&6; }
10848fi
10849
10850
10851 done
10852fi
10853
10854if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10855 for ncn_progname in gccgo; do
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10857$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10858 if test -x $with_build_time_tools/${ncn_progname}; then
10859 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10861$as_echo "yes" >&6; }
10862 break
10863 else
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865$as_echo "no" >&6; }
10866 fi
10867 done
10868fi
10869
10870if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10871 for ncn_progname in gccgo; do
10872 if test -n "$ncn_target_tool_prefix"; then
10873 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10874set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876$as_echo_n "checking for $ac_word... " >&6; }
10877if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10879else
10880 if test -n "$GOC_FOR_TARGET"; then
10881 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10882else
10883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884for as_dir in $PATH
10885do
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10890 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894done
10895 done
10896IFS=$as_save_IFS
10897
10898fi
10899fi
10900GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10901if test -n "$GOC_FOR_TARGET"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10903$as_echo "$GOC_FOR_TARGET" >&6; }
10904else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906$as_echo "no" >&6; }
10907fi
10908
10909
10910 fi
10911 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10913set dummy ${ncn_progname}; ac_word=$2
10914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915$as_echo_n "checking for $ac_word... " >&6; }
10916if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10918else
10919 if test -n "$GOC_FOR_TARGET"; then
10920 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10921else
10922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923for as_dir in $PATH
10924do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10929 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10932 fi
10933done
10934 done
10935IFS=$as_save_IFS
10936
10937fi
10938fi
10939GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10940if test -n "$GOC_FOR_TARGET"; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10942$as_echo "$GOC_FOR_TARGET" >&6; }
10943else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945$as_echo "no" >&6; }
10946fi
10947
10948
10949 fi
10950 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10951 done
10952fi
10953
10954if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10955 set dummy gccgo
10956 if test $build = $target ; then
10957 GOC_FOR_TARGET="$2"
10958 else
10959 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10960 fi
10961else
10962 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10963fi
10964
10965
10966
2429c060
PB
10967cat > conftest.c << \EOF
10968#ifdef __GNUC__
10969 gcc_yay;
10970#endif
10971EOF
10972if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10973 have_gcc_for_target=yes
859789af 10974else
2429c060
PB
10975 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10976 have_gcc_for_target=no
859789af 10977fi
2429c060
PB
10978rm conftest.c
10979
10980
10981
859789af 10982
2429c060
PB
10983if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10984 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10986$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10987 if test -x $with_build_time_tools/ar; then
10988 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10989 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10991$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10992 else
81ecdfbb
RW
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994$as_echo "no" >&6; }
3a35eeb3 10995 fi
2429c060
PB
10996 elif test $build != $host && test $have_gcc_for_target = yes; then
10997 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10998 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10999 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 11000 fi
2429c060 11001fi
c6b750e1 11002if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11003 # Extract the first word of "ar", so it can be a program name with args.
11004set dummy ar; ac_word=$2
81ecdfbb
RW
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006$as_echo_n "checking for $ac_word... " >&6; }
11007if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11008 $as_echo_n "(cached) " >&6
859789af 11009else
c6b750e1
DJ
11010 case $AR_FOR_TARGET in
11011 [\\/]* | ?:[\\/]*)
2429c060
PB
11012 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11013 ;;
2429c060 11014 *)
c6b750e1
DJ
11015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016for as_dir in $gcc_cv_tool_dirs
11017do
11018 IFS=$as_save_IFS
11019 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11020 for ac_exec_ext in '' $ac_executable_extensions; do
11021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11022 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11024 break 2
11025 fi
11026done
81ecdfbb
RW
11027 done
11028IFS=$as_save_IFS
c6b750e1 11029
2429c060
PB
11030 ;;
11031esac
859789af 11032fi
c6b750e1 11033AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 11034if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11036$as_echo "$AR_FOR_TARGET" >&6; }
859789af 11037else
81ecdfbb
RW
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039$as_echo "no" >&6; }
859789af 11040fi
05cbd757 11041
81ecdfbb 11042
2429c060
PB
11043fi
11044if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
11045
11046
11047if test -n "$AR_FOR_TARGET"; then
11048 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11049elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11050 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11051fi
11052
11053if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11054 for ncn_progname in ar; do
11055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11056set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11058$as_echo_n "checking for $ac_word... " >&6; }
11059if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11060 $as_echo_n "(cached) " >&6
9a819804
AO
11061else
11062 if test -n "$AR_FOR_TARGET"; then
11063 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11064else
11065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066for as_dir in $PATH
11067do
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11072 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11074 break 2
11075 fi
11076done
81ecdfbb
RW
11077 done
11078IFS=$as_save_IFS
9a819804
AO
11079
11080fi
11081fi
11082AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11083if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11085$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11086else
81ecdfbb
RW
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088$as_echo "no" >&6; }
9a819804
AO
11089fi
11090
81ecdfbb 11091
9a819804
AO
11092 done
11093fi
11094
11095if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11096 for ncn_progname in ar; do
81ecdfbb
RW
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11098$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11099 if test -x $with_build_time_tools/${ncn_progname}; then
11100 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11102$as_echo "yes" >&6; }
2429c060
PB
11103 break
11104 else
81ecdfbb
RW
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106$as_echo "no" >&6; }
2429c060
PB
11107 fi
11108 done
859789af
AC
11109fi
11110
2429c060
PB
11111if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11112 for ncn_progname in ar; do
11113 if test -n "$ncn_target_tool_prefix"; then
11114 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11115set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117$as_echo_n "checking for $ac_word... " >&6; }
11118if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
7e0f7140 11120else
2429c060
PB
11121 if test -n "$AR_FOR_TARGET"; then
11122 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11123else
c6b750e1
DJ
11124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125for as_dir in $PATH
11126do
11127 IFS=$as_save_IFS
11128 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11131 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11133 break 2
11134 fi
11135done
81ecdfbb
RW
11136 done
11137IFS=$as_save_IFS
c6b750e1 11138
7e0f7140
GK
11139fi
11140fi
c6b750e1 11141AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11142if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11144$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11145else
81ecdfbb
RW
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147$as_echo "no" >&6; }
7e0f7140
GK
11148fi
11149
81ecdfbb 11150
2429c060
PB
11151 fi
11152 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11154set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156$as_echo_n "checking for $ac_word... " >&6; }
11157if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11158 $as_echo_n "(cached) " >&6
7e0f7140 11159else
2429c060
PB
11160 if test -n "$AR_FOR_TARGET"; then
11161 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11162else
c6b750e1
DJ
11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $PATH
11165do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11170 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11172 break 2
11173 fi
11174done
81ecdfbb
RW
11175 done
11176IFS=$as_save_IFS
c6b750e1 11177
7e0f7140
GK
11178fi
11179fi
c6b750e1 11180AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11181if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11183$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11184else
81ecdfbb
RW
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186$as_echo "no" >&6; }
7e0f7140 11187fi
c6b750e1 11188
81ecdfbb 11189
2429c060
PB
11190 fi
11191 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11192 done
11193fi
c6b750e1 11194
2429c060
PB
11195if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11196 set dummy ar
7e0f7140 11197 if test $build = $target ; then
2429c060 11198 AR_FOR_TARGET="$2"
7e0f7140 11199 else
2429c060 11200 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11201 fi
d3f5afc4
MS
11202else
11203 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11204fi
11205
3a35eeb3
PB
11206else
11207 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11208fi
11209
11210
11211
11212
11213if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11214 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11216$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11217 if test -x $with_build_time_tools/as; then
11218 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11219 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11221$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11222 else
81ecdfbb
RW
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224$as_echo "no" >&6; }
3a35eeb3 11225 fi
2429c060
PB
11226 elif test $build != $host && test $have_gcc_for_target = yes; then
11227 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11228 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11229 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11230 fi
11231fi
c6b750e1 11232if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11233 # Extract the first word of "as", so it can be a program name with args.
11234set dummy as; ac_word=$2
81ecdfbb
RW
11235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236$as_echo_n "checking for $ac_word... " >&6; }
11237if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11238 $as_echo_n "(cached) " >&6
2429c060 11239else
c6b750e1
DJ
11240 case $AS_FOR_TARGET in
11241 [\\/]* | ?:[\\/]*)
2429c060
PB
11242 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11243 ;;
2429c060 11244 *)
c6b750e1
DJ
11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246for as_dir in $gcc_cv_tool_dirs
11247do
11248 IFS=$as_save_IFS
11249 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11250 for ac_exec_ext in '' $ac_executable_extensions; do
11251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11252 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11254 break 2
11255 fi
11256done
81ecdfbb
RW
11257 done
11258IFS=$as_save_IFS
c6b750e1 11259
2429c060
PB
11260 ;;
11261esac
11262fi
c6b750e1 11263AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11264if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11266$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11267else
81ecdfbb
RW
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
2429c060
PB
11270fi
11271
81ecdfbb 11272
2429c060
PB
11273fi
11274if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11275
11276
11277if test -n "$AS_FOR_TARGET"; then
11278 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11279elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11280 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11281fi
11282
11283if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11284 for ncn_progname in as; do
11285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11286set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288$as_echo_n "checking for $ac_word... " >&6; }
11289if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11290 $as_echo_n "(cached) " >&6
9a819804
AO
11291else
11292 if test -n "$AS_FOR_TARGET"; then
11293 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11294else
11295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296for as_dir in $PATH
11297do
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11302 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11304 break 2
11305 fi
11306done
81ecdfbb
RW
11307 done
11308IFS=$as_save_IFS
9a819804
AO
11309
11310fi
11311fi
11312AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11313if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11315$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11316else
81ecdfbb
RW
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318$as_echo "no" >&6; }
9a819804
AO
11319fi
11320
81ecdfbb 11321
9a819804
AO
11322 done
11323fi
11324
11325if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11326 for ncn_progname in as; do
81ecdfbb
RW
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11328$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11329 if test -x $with_build_time_tools/${ncn_progname}; then
11330 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11332$as_echo "yes" >&6; }
2429c060
PB
11333 break
11334 else
81ecdfbb
RW
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336$as_echo "no" >&6; }
2429c060
PB
11337 fi
11338 done
11339fi
11340
11341if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11342 for ncn_progname in as; do
11343 if test -n "$ncn_target_tool_prefix"; then
11344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11345set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347$as_echo_n "checking for $ac_word... " >&6; }
11348if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
2429c060
PB
11350else
11351 if test -n "$AS_FOR_TARGET"; then
11352 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11353else
c6b750e1
DJ
11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355for as_dir in $PATH
11356do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11361 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11363 break 2
11364 fi
11365done
81ecdfbb
RW
11366 done
11367IFS=$as_save_IFS
c6b750e1 11368
2429c060
PB
11369fi
11370fi
c6b750e1 11371AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11372if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11374$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11375else
81ecdfbb
RW
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
2429c060
PB
11378fi
11379
81ecdfbb 11380
2429c060
PB
11381 fi
11382 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11384set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11386$as_echo_n "checking for $ac_word... " >&6; }
11387if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11388 $as_echo_n "(cached) " >&6
2429c060
PB
11389else
11390 if test -n "$AS_FOR_TARGET"; then
11391 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11392else
c6b750e1
DJ
11393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394for as_dir in $PATH
11395do
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11400 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11402 break 2
11403 fi
11404done
81ecdfbb
RW
11405 done
11406IFS=$as_save_IFS
c6b750e1 11407
2429c060
PB
11408fi
11409fi
c6b750e1 11410AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11411if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11413$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11414else
81ecdfbb
RW
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416$as_echo "no" >&6; }
2429c060 11417fi
c6b750e1 11418
81ecdfbb 11419
2429c060
PB
11420 fi
11421 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11422 done
11423fi
c6b750e1 11424
2429c060
PB
11425if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11426 set dummy as
11427 if test $build = $target ; then
11428 AS_FOR_TARGET="$2"
11429 else
11430 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11431 fi
d3f5afc4
MS
11432else
11433 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11434fi
11435
3a35eeb3
PB
11436else
11437 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11438fi
11439
11440
11441
11442
11443if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11444 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11446$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11447 if test -x $with_build_time_tools/dlltool; then
11448 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11449 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11451$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11452 else
81ecdfbb
RW
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454$as_echo "no" >&6; }
3a35eeb3 11455 fi
2429c060
PB
11456 elif test $build != $host && test $have_gcc_for_target = yes; then
11457 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11458 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11459 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11460 fi
11461fi
c6b750e1 11462if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11463 # Extract the first word of "dlltool", so it can be a program name with args.
11464set dummy dlltool; ac_word=$2
81ecdfbb
RW
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466$as_echo_n "checking for $ac_word... " >&6; }
11467if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
2429c060 11469else
c6b750e1
DJ
11470 case $DLLTOOL_FOR_TARGET in
11471 [\\/]* | ?:[\\/]*)
2429c060
PB
11472 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11473 ;;
2429c060 11474 *)
c6b750e1
DJ
11475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476for as_dir in $gcc_cv_tool_dirs
11477do
11478 IFS=$as_save_IFS
11479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11480 for ac_exec_ext in '' $ac_executable_extensions; do
11481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11482 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11484 break 2
11485 fi
11486done
81ecdfbb
RW
11487 done
11488IFS=$as_save_IFS
c6b750e1 11489
2429c060
PB
11490 ;;
11491esac
11492fi
c6b750e1 11493DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11494if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11496$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11497else
81ecdfbb
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
2429c060
PB
11500fi
11501
81ecdfbb 11502
2429c060
PB
11503fi
11504if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11505
11506
11507if test -n "$DLLTOOL_FOR_TARGET"; then
11508 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11509elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11510 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11511fi
11512
11513if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11514 for ncn_progname in dlltool; do
11515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11516set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518$as_echo_n "checking for $ac_word... " >&6; }
11519if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
9a819804
AO
11521else
11522 if test -n "$DLLTOOL_FOR_TARGET"; then
11523 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11524else
11525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526for as_dir in $PATH
11527do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11532 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11534 break 2
11535 fi
11536done
81ecdfbb
RW
11537 done
11538IFS=$as_save_IFS
9a819804
AO
11539
11540fi
11541fi
11542DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11543if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11545$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11546else
81ecdfbb
RW
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548$as_echo "no" >&6; }
9a819804
AO
11549fi
11550
81ecdfbb 11551
9a819804
AO
11552 done
11553fi
11554
11555if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11556 for ncn_progname in dlltool; do
81ecdfbb
RW
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11558$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11559 if test -x $with_build_time_tools/${ncn_progname}; then
11560 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11562$as_echo "yes" >&6; }
2429c060
PB
11563 break
11564 else
81ecdfbb
RW
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566$as_echo "no" >&6; }
2429c060
PB
11567 fi
11568 done
11569fi
11570
11571if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11572 for ncn_progname in dlltool; do
11573 if test -n "$ncn_target_tool_prefix"; then
11574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11575set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11577$as_echo_n "checking for $ac_word... " >&6; }
11578if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
2429c060
PB
11580else
11581 if test -n "$DLLTOOL_FOR_TARGET"; then
11582 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11583else
c6b750e1
DJ
11584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585for as_dir in $PATH
11586do
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11591 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11593 break 2
11594 fi
11595done
81ecdfbb
RW
11596 done
11597IFS=$as_save_IFS
c6b750e1 11598
2429c060
PB
11599fi
11600fi
c6b750e1 11601DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11602if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11604$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11605else
81ecdfbb
RW
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607$as_echo "no" >&6; }
2429c060
PB
11608fi
11609
81ecdfbb 11610
2429c060
PB
11611 fi
11612 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11614set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616$as_echo_n "checking for $ac_word... " >&6; }
11617if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
2429c060
PB
11619else
11620 if test -n "$DLLTOOL_FOR_TARGET"; then
11621 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11622else
c6b750e1
DJ
11623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624for as_dir in $PATH
11625do
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11630 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11632 break 2
11633 fi
11634done
81ecdfbb
RW
11635 done
11636IFS=$as_save_IFS
c6b750e1 11637
2429c060
PB
11638fi
11639fi
c6b750e1 11640DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11641if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11643$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11644else
81ecdfbb
RW
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
2429c060 11647fi
c6b750e1 11648
81ecdfbb 11649
2429c060
PB
11650 fi
11651 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11652 done
11653fi
c6b750e1 11654
2429c060
PB
11655if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11656 set dummy dlltool
11657 if test $build = $target ; then
11658 DLLTOOL_FOR_TARGET="$2"
11659 else
11660 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11661 fi
d3f5afc4
MS
11662else
11663 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11664fi
11665
3a35eeb3
PB
11666else
11667 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11668fi
11669
11670
11671
11672
11673if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11674 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11676$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11677 if test -x $with_build_time_tools/ld; then
11678 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11679 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11681$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11682 else
81ecdfbb
RW
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
3a35eeb3 11685 fi
2429c060
PB
11686 elif test $build != $host && test $have_gcc_for_target = yes; then
11687 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11688 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11689 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11690 fi
11691fi
c6b750e1 11692if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11693 # Extract the first word of "ld", so it can be a program name with args.
11694set dummy ld; ac_word=$2
81ecdfbb
RW
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696$as_echo_n "checking for $ac_word... " >&6; }
11697if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
2429c060 11699else
c6b750e1
DJ
11700 case $LD_FOR_TARGET in
11701 [\\/]* | ?:[\\/]*)
2429c060
PB
11702 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11703 ;;
2429c060 11704 *)
c6b750e1
DJ
11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706for as_dir in $gcc_cv_tool_dirs
11707do
11708 IFS=$as_save_IFS
11709 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11710 for ac_exec_ext in '' $ac_executable_extensions; do
11711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11712 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11714 break 2
11715 fi
11716done
81ecdfbb
RW
11717 done
11718IFS=$as_save_IFS
c6b750e1 11719
2429c060
PB
11720 ;;
11721esac
11722fi
c6b750e1 11723LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11724if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11726$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11727else
81ecdfbb
RW
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729$as_echo "no" >&6; }
2429c060
PB
11730fi
11731
81ecdfbb 11732
2429c060
PB
11733fi
11734if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11735
11736
11737if test -n "$LD_FOR_TARGET"; then
11738 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11739elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11740 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11741fi
11742
11743if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11744 for ncn_progname in ld; do
11745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11746set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748$as_echo_n "checking for $ac_word... " >&6; }
11749if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11750 $as_echo_n "(cached) " >&6
9a819804
AO
11751else
11752 if test -n "$LD_FOR_TARGET"; then
11753 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11754else
11755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756for as_dir in $PATH
11757do
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11762 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11764 break 2
11765 fi
11766done
81ecdfbb
RW
11767 done
11768IFS=$as_save_IFS
9a819804
AO
11769
11770fi
11771fi
11772LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11773if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11775$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11776else
81ecdfbb
RW
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778$as_echo "no" >&6; }
9a819804
AO
11779fi
11780
81ecdfbb 11781
9a819804
AO
11782 done
11783fi
11784
11785if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11786 for ncn_progname in ld; do
81ecdfbb
RW
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11788$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11789 if test -x $with_build_time_tools/${ncn_progname}; then
11790 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11792$as_echo "yes" >&6; }
2429c060
PB
11793 break
11794 else
81ecdfbb
RW
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796$as_echo "no" >&6; }
2429c060
PB
11797 fi
11798 done
11799fi
11800
11801if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11802 for ncn_progname in ld; do
11803 if test -n "$ncn_target_tool_prefix"; then
11804 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11805set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
11808if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
2429c060
PB
11810else
11811 if test -n "$LD_FOR_TARGET"; then
11812 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11813else
c6b750e1
DJ
11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815for as_dir in $PATH
11816do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11821 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11823 break 2
11824 fi
11825done
81ecdfbb
RW
11826 done
11827IFS=$as_save_IFS
c6b750e1 11828
2429c060
PB
11829fi
11830fi
c6b750e1 11831LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11832if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11834$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11835else
81ecdfbb
RW
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
2429c060
PB
11838fi
11839
81ecdfbb 11840
2429c060
PB
11841 fi
11842 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11844set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11846$as_echo_n "checking for $ac_word... " >&6; }
11847if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11848 $as_echo_n "(cached) " >&6
2429c060
PB
11849else
11850 if test -n "$LD_FOR_TARGET"; then
11851 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11852else
c6b750e1
DJ
11853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854for as_dir in $PATH
11855do
11856 IFS=$as_save_IFS
11857 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11858 for ac_exec_ext in '' $ac_executable_extensions; do
11859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11860 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11862 break 2
11863 fi
11864done
81ecdfbb
RW
11865 done
11866IFS=$as_save_IFS
c6b750e1 11867
2429c060
PB
11868fi
11869fi
c6b750e1 11870LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11871if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11873$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11874else
81ecdfbb
RW
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
2429c060 11877fi
c6b750e1 11878
81ecdfbb 11879
2429c060
PB
11880 fi
11881 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11882 done
11883fi
c6b750e1 11884
2429c060
PB
11885if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11886 set dummy ld
11887 if test $build = $target ; then
11888 LD_FOR_TARGET="$2"
11889 else
11890 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11891 fi
d3f5afc4
MS
11892else
11893 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11894fi
11895
3a35eeb3
PB
11896else
11897 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11898fi
11899
11900
11901
11902
11903if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11904 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11906$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11907 if test -x $with_build_time_tools/lipo; then
11908 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11909 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11911$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11912 else
81ecdfbb
RW
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914$as_echo "no" >&6; }
3a35eeb3 11915 fi
2429c060
PB
11916 elif test $build != $host && test $have_gcc_for_target = yes; then
11917 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11918 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11919 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11920 fi
11921fi
9a819804
AO
11922if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11923 # Extract the first word of "lipo", so it can be a program name with args.
11924set dummy lipo; ac_word=$2
81ecdfbb
RW
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11926$as_echo_n "checking for $ac_word... " >&6; }
11927if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
9a819804
AO
11929else
11930 case $LIPO_FOR_TARGET in
11931 [\\/]* | ?:[\\/]*)
11932 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11933 ;;
11934 *)
11935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936for as_dir in $gcc_cv_tool_dirs
11937do
11938 IFS=$as_save_IFS
11939 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11940 for ac_exec_ext in '' $ac_executable_extensions; do
11941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11942 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11944 break 2
11945 fi
11946done
81ecdfbb
RW
11947 done
11948IFS=$as_save_IFS
9a819804
AO
11949
11950 ;;
11951esac
11952fi
11953LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11954if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11956$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11957else
81ecdfbb
RW
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
9a819804
AO
11960fi
11961
81ecdfbb 11962
9a819804
AO
11963fi
11964if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11965
11966
11967if test -n "$LIPO_FOR_TARGET"; then
11968 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11969elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11970 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11971fi
11972
11973if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11974 for ncn_progname in lipo; do
11975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11976set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11978$as_echo_n "checking for $ac_word... " >&6; }
11979if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
2429c060 11981else
9a819804
AO
11982 if test -n "$LIPO_FOR_TARGET"; then
11983 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11984else
11985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986for as_dir in $PATH
c6b750e1
DJ
11987do
11988 IFS=$as_save_IFS
11989 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11992 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11994 break 2
11995 fi
11996done
81ecdfbb
RW
11997 done
11998IFS=$as_save_IFS
c6b750e1 11999
2429c060 12000fi
9a819804
AO
12001fi
12002LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12003if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12005$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12006else
81ecdfbb
RW
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008$as_echo "no" >&6; }
2429c060
PB
12009fi
12010
81ecdfbb 12011
9a819804 12012 done
2429c060 12013fi
9a819804
AO
12014
12015if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12016 for ncn_progname in lipo; do
81ecdfbb
RW
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12018$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12019 if test -x $with_build_time_tools/${ncn_progname}; then
12020 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12022$as_echo "yes" >&6; }
2429c060
PB
12023 break
12024 else
81ecdfbb
RW
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026$as_echo "no" >&6; }
2429c060
PB
12027 fi
12028 done
12029fi
12030
12031if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12032 for ncn_progname in lipo; do
12033 if test -n "$ncn_target_tool_prefix"; then
12034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12035set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037$as_echo_n "checking for $ac_word... " >&6; }
12038if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
2429c060
PB
12040else
12041 if test -n "$LIPO_FOR_TARGET"; then
12042 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12043else
c6b750e1
DJ
12044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045for as_dir in $PATH
12046do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12051 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12053 break 2
12054 fi
12055done
81ecdfbb
RW
12056 done
12057IFS=$as_save_IFS
c6b750e1 12058
2429c060
PB
12059fi
12060fi
c6b750e1 12061LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12062if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12064$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12065else
81ecdfbb
RW
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067$as_echo "no" >&6; }
2429c060
PB
12068fi
12069
81ecdfbb 12070
2429c060
PB
12071 fi
12072 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12074set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12076$as_echo_n "checking for $ac_word... " >&6; }
12077if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12078 $as_echo_n "(cached) " >&6
2429c060
PB
12079else
12080 if test -n "$LIPO_FOR_TARGET"; then
12081 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12082else
c6b750e1
DJ
12083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084for as_dir in $PATH
12085do
12086 IFS=$as_save_IFS
12087 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12088 for ac_exec_ext in '' $ac_executable_extensions; do
12089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12090 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12092 break 2
12093 fi
12094done
81ecdfbb
RW
12095 done
12096IFS=$as_save_IFS
c6b750e1 12097
2429c060
PB
12098fi
12099fi
c6b750e1 12100LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12101if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12103$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12104else
81ecdfbb
RW
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106$as_echo "no" >&6; }
2429c060 12107fi
c6b750e1 12108
81ecdfbb 12109
2429c060
PB
12110 fi
12111 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12112 done
12113fi
c6b750e1 12114
2429c060
PB
12115if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12116 set dummy lipo
12117 if test $build = $target ; then
12118 LIPO_FOR_TARGET="$2"
12119 else
12120 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12121 fi
d3f5afc4
MS
12122else
12123 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12124fi
12125
3a35eeb3
PB
12126else
12127 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12128fi
12129
12130
12131
12132
12133if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12134 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12136$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12137 if test -x $with_build_time_tools/nm; then
12138 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12139 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12141$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12142 else
81ecdfbb
RW
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144$as_echo "no" >&6; }
3a35eeb3 12145 fi
2429c060
PB
12146 elif test $build != $host && test $have_gcc_for_target = yes; then
12147 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12148 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12149 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12150 fi
12151fi
c6b750e1 12152if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12153 # Extract the first word of "nm", so it can be a program name with args.
12154set dummy nm; ac_word=$2
81ecdfbb
RW
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12156$as_echo_n "checking for $ac_word... " >&6; }
12157if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12158 $as_echo_n "(cached) " >&6
2429c060 12159else
c6b750e1
DJ
12160 case $NM_FOR_TARGET in
12161 [\\/]* | ?:[\\/]*)
2429c060
PB
12162 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12163 ;;
2429c060 12164 *)
c6b750e1
DJ
12165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12166for as_dir in $gcc_cv_tool_dirs
12167do
12168 IFS=$as_save_IFS
12169 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12170 for ac_exec_ext in '' $ac_executable_extensions; do
12171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12172 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12174 break 2
12175 fi
12176done
81ecdfbb
RW
12177 done
12178IFS=$as_save_IFS
c6b750e1 12179
2429c060
PB
12180 ;;
12181esac
12182fi
c6b750e1 12183NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12184if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12186$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12187else
81ecdfbb
RW
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189$as_echo "no" >&6; }
2429c060
PB
12190fi
12191
81ecdfbb 12192
2429c060
PB
12193fi
12194if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12195
12196
12197if test -n "$NM_FOR_TARGET"; then
12198 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12199elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12200 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12201fi
12202
12203if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12204 for ncn_progname in nm; do
12205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12206set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208$as_echo_n "checking for $ac_word... " >&6; }
12209if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
9a819804
AO
12211else
12212 if test -n "$NM_FOR_TARGET"; then
12213 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12214else
12215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216for as_dir in $PATH
12217do
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12222 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12224 break 2
12225 fi
12226done
81ecdfbb
RW
12227 done
12228IFS=$as_save_IFS
9a819804
AO
12229
12230fi
12231fi
12232NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12233if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12235$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12236else
81ecdfbb
RW
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238$as_echo "no" >&6; }
9a819804
AO
12239fi
12240
81ecdfbb 12241
9a819804
AO
12242 done
12243fi
12244
12245if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12246 for ncn_progname in nm; do
81ecdfbb
RW
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12248$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12249 if test -x $with_build_time_tools/${ncn_progname}; then
12250 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12252$as_echo "yes" >&6; }
2429c060
PB
12253 break
12254 else
81ecdfbb
RW
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256$as_echo "no" >&6; }
2429c060
PB
12257 fi
12258 done
12259fi
12260
12261if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12262 for ncn_progname in nm; do
12263 if test -n "$ncn_target_tool_prefix"; then
12264 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12265set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267$as_echo_n "checking for $ac_word... " >&6; }
12268if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
859789af 12270else
55db4b87
PB
12271 if test -n "$NM_FOR_TARGET"; then
12272 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12273else
c6b750e1
DJ
12274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275for as_dir in $PATH
12276do
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12281 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12283 break 2
12284 fi
12285done
81ecdfbb
RW
12286 done
12287IFS=$as_save_IFS
c6b750e1 12288
859789af
AC
12289fi
12290fi
c6b750e1 12291NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12292if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12294$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12295else
81ecdfbb
RW
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
859789af
AC
12298fi
12299
81ecdfbb 12300
2429c060
PB
12301 fi
12302 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12304set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306$as_echo_n "checking for $ac_word... " >&6; }
12307if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12308 $as_echo_n "(cached) " >&6
859789af 12309else
05cbd757
PB
12310 if test -n "$NM_FOR_TARGET"; then
12311 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12312else
c6b750e1
DJ
12313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314for as_dir in $PATH
12315do
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12318 for ac_exec_ext in '' $ac_executable_extensions; do
12319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12320 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12322 break 2
12323 fi
12324done
81ecdfbb
RW
12325 done
12326IFS=$as_save_IFS
c6b750e1 12327
859789af
AC
12328fi
12329fi
c6b750e1 12330NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12331if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12333$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12334else
81ecdfbb
RW
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336$as_echo "no" >&6; }
859789af 12337fi
c6b750e1 12338
81ecdfbb 12339
2429c060
PB
12340 fi
12341 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12342 done
12343fi
c6b750e1 12344
05cbd757
PB
12345if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12346 set dummy nm
12347 if test $build = $target ; then
12348 NM_FOR_TARGET="$2"
859789af 12349 else
05cbd757 12350 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12351 fi
d3f5afc4
MS
12352else
12353 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12354fi
12355
3a35eeb3
PB
12356else
12357 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12358fi
12359
12360
12361
12362
12363if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12364 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12366$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12367 if test -x $with_build_time_tools/objdump; then
12368 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12369 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12371$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12372 else
81ecdfbb
RW
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374$as_echo "no" >&6; }
3a35eeb3 12375 fi
2429c060
PB
12376 elif test $build != $host && test $have_gcc_for_target = yes; then
12377 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12378 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12379 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12380 fi
12381fi
c6b750e1 12382if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12383 # Extract the first word of "objdump", so it can be a program name with args.
12384set dummy objdump; ac_word=$2
81ecdfbb
RW
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386$as_echo_n "checking for $ac_word... " >&6; }
12387if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
2429c060 12389else
c6b750e1
DJ
12390 case $OBJDUMP_FOR_TARGET in
12391 [\\/]* | ?:[\\/]*)
2429c060
PB
12392 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12393 ;;
2429c060 12394 *)
c6b750e1
DJ
12395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12396for as_dir in $gcc_cv_tool_dirs
12397do
12398 IFS=$as_save_IFS
12399 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12400 for ac_exec_ext in '' $ac_executable_extensions; do
12401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12402 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12404 break 2
12405 fi
12406done
81ecdfbb
RW
12407 done
12408IFS=$as_save_IFS
c6b750e1 12409
2429c060
PB
12410 ;;
12411esac
12412fi
c6b750e1 12413OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12414if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12416$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12417else
81ecdfbb
RW
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419$as_echo "no" >&6; }
2429c060
PB
12420fi
12421
81ecdfbb 12422
2429c060
PB
12423fi
12424if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12425
12426
12427if test -n "$OBJDUMP_FOR_TARGET"; then
12428 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12429elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12430 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12431fi
12432
12433if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12434 for ncn_progname in objdump; do
12435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12436set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438$as_echo_n "checking for $ac_word... " >&6; }
12439if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12440 $as_echo_n "(cached) " >&6
9a819804
AO
12441else
12442 if test -n "$OBJDUMP_FOR_TARGET"; then
12443 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12444else
12445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446for as_dir in $PATH
12447do
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12452 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12454 break 2
12455 fi
12456done
81ecdfbb
RW
12457 done
12458IFS=$as_save_IFS
9a819804
AO
12459
12460fi
12461fi
12462OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12463if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12465$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12466else
81ecdfbb
RW
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468$as_echo "no" >&6; }
9a819804
AO
12469fi
12470
81ecdfbb 12471
9a819804
AO
12472 done
12473fi
12474
12475if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12476 for ncn_progname in objdump; do
81ecdfbb
RW
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12478$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12479 if test -x $with_build_time_tools/${ncn_progname}; then
12480 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12482$as_echo "yes" >&6; }
2429c060
PB
12483 break
12484 else
81ecdfbb
RW
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486$as_echo "no" >&6; }
2429c060
PB
12487 fi
12488 done
12489fi
12490
12491if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12492 for ncn_progname in objdump; do
12493 if test -n "$ncn_target_tool_prefix"; then
12494 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12495set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497$as_echo_n "checking for $ac_word... " >&6; }
12498if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12499 $as_echo_n "(cached) " >&6
5ae72758
DJ
12500else
12501 if test -n "$OBJDUMP_FOR_TARGET"; then
12502 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12503else
c6b750e1
DJ
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12511 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12513 break 2
12514 fi
12515done
81ecdfbb
RW
12516 done
12517IFS=$as_save_IFS
c6b750e1 12518
5ae72758
DJ
12519fi
12520fi
c6b750e1 12521OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12522if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12524$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12525else
81ecdfbb
RW
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
5ae72758
DJ
12528fi
12529
81ecdfbb 12530
2429c060
PB
12531 fi
12532 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12534set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536$as_echo_n "checking for $ac_word... " >&6; }
12537if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
5ae72758
DJ
12539else
12540 if test -n "$OBJDUMP_FOR_TARGET"; then
12541 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12542else
c6b750e1
DJ
12543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544for as_dir in $PATH
12545do
12546 IFS=$as_save_IFS
12547 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12548 for ac_exec_ext in '' $ac_executable_extensions; do
12549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12550 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12552 break 2
12553 fi
12554done
81ecdfbb
RW
12555 done
12556IFS=$as_save_IFS
c6b750e1 12557
5ae72758
DJ
12558fi
12559fi
c6b750e1 12560OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12561if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12563$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12564else
81ecdfbb
RW
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566$as_echo "no" >&6; }
5ae72758 12567fi
c6b750e1 12568
81ecdfbb 12569
2429c060
PB
12570 fi
12571 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12572 done
12573fi
c6b750e1 12574
5ae72758
DJ
12575if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12576 set dummy objdump
12577 if test $build = $target ; then
12578 OBJDUMP_FOR_TARGET="$2"
12579 else
12580 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12581 fi
d3f5afc4
MS
12582else
12583 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12584fi
12585
3a35eeb3
PB
12586else
12587 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12588fi
12589
12590
12591
12592
12593if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12594 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12596$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12597 if test -x $with_build_time_tools/ranlib; then
12598 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12599 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12601$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12602 else
81ecdfbb
RW
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604$as_echo "no" >&6; }
3a35eeb3 12605 fi
2429c060
PB
12606 elif test $build != $host && test $have_gcc_for_target = yes; then
12607 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12608 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12609 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12610 fi
12611fi
c6b750e1 12612if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12613 # Extract the first word of "ranlib", so it can be a program name with args.
12614set dummy ranlib; ac_word=$2
81ecdfbb
RW
12615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12616$as_echo_n "checking for $ac_word... " >&6; }
12617if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12618 $as_echo_n "(cached) " >&6
2429c060 12619else
c6b750e1
DJ
12620 case $RANLIB_FOR_TARGET in
12621 [\\/]* | ?:[\\/]*)
2429c060
PB
12622 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12623 ;;
2429c060 12624 *)
c6b750e1
DJ
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626for as_dir in $gcc_cv_tool_dirs
12627do
12628 IFS=$as_save_IFS
12629 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12632 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12634 break 2
12635 fi
12636done
81ecdfbb
RW
12637 done
12638IFS=$as_save_IFS
c6b750e1 12639
2429c060
PB
12640 ;;
12641esac
12642fi
c6b750e1 12643RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12644if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12646$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12647else
81ecdfbb
RW
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649$as_echo "no" >&6; }
2429c060
PB
12650fi
12651
81ecdfbb 12652
2429c060
PB
12653fi
12654if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12655
12656
12657if test -n "$RANLIB_FOR_TARGET"; then
12658 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12659elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12660 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12661fi
12662
12663if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12664 for ncn_progname in ranlib; do
12665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12666set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12668$as_echo_n "checking for $ac_word... " >&6; }
12669if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12670 $as_echo_n "(cached) " >&6
9a819804
AO
12671else
12672 if test -n "$RANLIB_FOR_TARGET"; then
12673 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12674else
12675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676for as_dir in $PATH
12677do
12678 IFS=$as_save_IFS
12679 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12680 for ac_exec_ext in '' $ac_executable_extensions; do
12681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12682 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12684 break 2
12685 fi
12686done
81ecdfbb
RW
12687 done
12688IFS=$as_save_IFS
9a819804
AO
12689
12690fi
12691fi
12692RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12693if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12695$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12696else
81ecdfbb
RW
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698$as_echo "no" >&6; }
9a819804
AO
12699fi
12700
81ecdfbb 12701
9a819804
AO
12702 done
12703fi
12704
12705if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12706 for ncn_progname in ranlib; do
81ecdfbb
RW
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12708$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12709 if test -x $with_build_time_tools/${ncn_progname}; then
12710 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12712$as_echo "yes" >&6; }
2429c060
PB
12713 break
12714 else
81ecdfbb
RW
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716$as_echo "no" >&6; }
2429c060
PB
12717 fi
12718 done
12719fi
12720
12721if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12722 for ncn_progname in ranlib; do
12723 if test -n "$ncn_target_tool_prefix"; then
12724 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12725set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727$as_echo_n "checking for $ac_word... " >&6; }
12728if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
859789af 12730else
55db4b87
PB
12731 if test -n "$RANLIB_FOR_TARGET"; then
12732 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12733else
c6b750e1
DJ
12734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735for as_dir in $PATH
12736do
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12741 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12743 break 2
12744 fi
12745done
81ecdfbb
RW
12746 done
12747IFS=$as_save_IFS
c6b750e1 12748
859789af
AC
12749fi
12750fi
c6b750e1 12751RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12752if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12754$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12755else
81ecdfbb
RW
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757$as_echo "no" >&6; }
859789af
AC
12758fi
12759
81ecdfbb 12760
2429c060
PB
12761 fi
12762 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12764set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766$as_echo_n "checking for $ac_word... " >&6; }
12767if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
859789af 12769else
05cbd757
PB
12770 if test -n "$RANLIB_FOR_TARGET"; then
12771 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12772else
c6b750e1
DJ
12773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774for as_dir in $PATH
12775do
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12780 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12782 break 2
12783 fi
12784done
81ecdfbb
RW
12785 done
12786IFS=$as_save_IFS
c6b750e1 12787
859789af
AC
12788fi
12789fi
c6b750e1 12790RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12791if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12793$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12794else
81ecdfbb
RW
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
859789af 12797fi
c6b750e1 12798
81ecdfbb 12799
2429c060
PB
12800 fi
12801 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12802 done
12803fi
c6b750e1 12804
2429c060
PB
12805if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12806 set dummy ranlib
12807 if test $build = $target ; then
12808 RANLIB_FOR_TARGET="$2"
12809 else
12810 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12811 fi
d3f5afc4
MS
12812else
12813 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12814fi
05cbd757 12815
3a35eeb3
PB
12816else
12817 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12818fi
12819
2429c060
PB
12820
12821
12822
b121d7d4
DD
12823if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12824 if test -n "$with_build_time_tools"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12826$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12827 if test -x $with_build_time_tools/readelf; then
12828 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12829 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12831$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834$as_echo "no" >&6; }
12835 fi
12836 elif test $build != $host && test $have_gcc_for_target = yes; then
12837 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12838 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12839 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12840 fi
12841fi
12842if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12843 # Extract the first word of "readelf", so it can be a program name with args.
12844set dummy readelf; ac_word=$2
12845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846$as_echo_n "checking for $ac_word... " >&6; }
12847if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12849else
12850 case $READELF_FOR_TARGET in
12851 [\\/]* | ?:[\\/]*)
12852 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12853 ;;
12854 *)
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856for as_dir in $gcc_cv_tool_dirs
12857do
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12862 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 break 2
12865 fi
12866done
12867 done
12868IFS=$as_save_IFS
12869
12870 ;;
12871esac
12872fi
12873READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12874if test -n "$READELF_FOR_TARGET"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12876$as_echo "$READELF_FOR_TARGET" >&6; }
12877else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879$as_echo "no" >&6; }
12880fi
12881
12882
12883fi
12884if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12885
12886
12887if test -n "$READELF_FOR_TARGET"; then
12888 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12889elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12890 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12891fi
12892
12893if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12894 for ncn_progname in readelf; do
12895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12896set dummy ${ncn_progname}; ac_word=$2
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898$as_echo_n "checking for $ac_word... " >&6; }
12899if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12900 $as_echo_n "(cached) " >&6
12901else
12902 if test -n "$READELF_FOR_TARGET"; then
12903 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12904else
12905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906for as_dir in $PATH
12907do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12915 fi
12916done
12917 done
12918IFS=$as_save_IFS
12919
12920fi
12921fi
12922READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12923if test -n "$READELF_FOR_TARGET"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12925$as_echo "$READELF_FOR_TARGET" >&6; }
12926else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928$as_echo "no" >&6; }
12929fi
12930
12931
12932 done
12933fi
12934
12935if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12936 for ncn_progname in readelf; do
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12938$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12939 if test -x $with_build_time_tools/${ncn_progname}; then
12940 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12942$as_echo "yes" >&6; }
12943 break
12944 else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946$as_echo "no" >&6; }
12947 fi
12948 done
12949fi
12950
12951if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12952 for ncn_progname in readelf; do
12953 if test -n "$ncn_target_tool_prefix"; then
12954 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12955set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12957$as_echo_n "checking for $ac_word... " >&6; }
12958if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12959 $as_echo_n "(cached) " >&6
12960else
12961 if test -n "$READELF_FOR_TARGET"; then
12962 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12963else
12964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965for as_dir in $PATH
12966do
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12971 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12973 break 2
12974 fi
12975done
12976 done
12977IFS=$as_save_IFS
12978
12979fi
12980fi
12981READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12982if test -n "$READELF_FOR_TARGET"; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12984$as_echo "$READELF_FOR_TARGET" >&6; }
12985else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
12988fi
12989
12990
12991 fi
12992 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12994set dummy ${ncn_progname}; ac_word=$2
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996$as_echo_n "checking for $ac_word... " >&6; }
12997if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999else
13000 if test -n "$READELF_FOR_TARGET"; then
13001 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13002else
13003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004for as_dir in $PATH
13005do
13006 IFS=$as_save_IFS
13007 test -z "$as_dir" && as_dir=.
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13010 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 break 2
13013 fi
13014done
13015 done
13016IFS=$as_save_IFS
13017
13018fi
13019fi
13020READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13021if test -n "$READELF_FOR_TARGET"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13023$as_echo "$READELF_FOR_TARGET" >&6; }
13024else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026$as_echo "no" >&6; }
13027fi
13028
13029
13030 fi
13031 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13032 done
13033fi
13034
13035if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13036 set dummy readelf
13037 if test $build = $target ; then
13038 READELF_FOR_TARGET="$2"
13039 else
13040 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13041 fi
13042else
13043 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13044fi
13045
13046else
13047 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13048fi
13049
13050
13051
13052
2429c060
PB
13053if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13054 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13056$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13057 if test -x $with_build_time_tools/strip; then
13058 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13059 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13061$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13062 else
81ecdfbb
RW
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064$as_echo "no" >&6; }
3a35eeb3 13065 fi
2429c060
PB
13066 elif test $build != $host && test $have_gcc_for_target = yes; then
13067 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13068 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13069 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13070 fi
13071fi
c6b750e1 13072if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13073 # Extract the first word of "strip", so it can be a program name with args.
13074set dummy strip; ac_word=$2
81ecdfbb
RW
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13076$as_echo_n "checking for $ac_word... " >&6; }
13077if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13078 $as_echo_n "(cached) " >&6
2429c060 13079else
c6b750e1
DJ
13080 case $STRIP_FOR_TARGET in
13081 [\\/]* | ?:[\\/]*)
2429c060
PB
13082 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13083 ;;
2429c060 13084 *)
c6b750e1
DJ
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086for as_dir in $gcc_cv_tool_dirs
13087do
13088 IFS=$as_save_IFS
13089 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13092 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13094 break 2
13095 fi
13096done
81ecdfbb
RW
13097 done
13098IFS=$as_save_IFS
c6b750e1 13099
2429c060
PB
13100 ;;
13101esac
13102fi
c6b750e1 13103STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13104if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13106$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13107else
81ecdfbb
RW
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109$as_echo "no" >&6; }
2429c060
PB
13110fi
13111
81ecdfbb 13112
2429c060
PB
13113fi
13114if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13115
13116
13117if test -n "$STRIP_FOR_TARGET"; then
13118 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13119elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13120 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13121fi
13122
13123if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13124 for ncn_progname in strip; do
13125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13126set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128$as_echo_n "checking for $ac_word... " >&6; }
13129if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13130 $as_echo_n "(cached) " >&6
9a819804
AO
13131else
13132 if test -n "$STRIP_FOR_TARGET"; then
13133 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13134else
13135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136for as_dir in $PATH
13137do
13138 IFS=$as_save_IFS
13139 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13142 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13144 break 2
13145 fi
13146done
81ecdfbb
RW
13147 done
13148IFS=$as_save_IFS
9a819804
AO
13149
13150fi
13151fi
13152STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13153if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13155$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13156else
81ecdfbb
RW
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158$as_echo "no" >&6; }
9a819804
AO
13159fi
13160
81ecdfbb 13161
9a819804
AO
13162 done
13163fi
13164
13165if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13166 for ncn_progname in strip; do
81ecdfbb
RW
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13168$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13169 if test -x $with_build_time_tools/${ncn_progname}; then
13170 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13172$as_echo "yes" >&6; }
2429c060
PB
13173 break
13174 else
81ecdfbb
RW
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176$as_echo "no" >&6; }
2429c060
PB
13177 fi
13178 done
13179fi
13180
13181if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13182 for ncn_progname in strip; do
13183 if test -n "$ncn_target_tool_prefix"; then
13184 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13185set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13187$as_echo_n "checking for $ac_word... " >&6; }
13188if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13189 $as_echo_n "(cached) " >&6
7e0f7140
GK
13190else
13191 if test -n "$STRIP_FOR_TARGET"; then
13192 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13193else
13194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195for as_dir in $PATH
13196do
13197 IFS=$as_save_IFS
13198 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13199 for ac_exec_ext in '' $ac_executable_extensions; do
13200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13201 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13203 break 2
13204 fi
13205done
81ecdfbb
RW
13206 done
13207IFS=$as_save_IFS
c6b750e1 13208
7e0f7140
GK
13209fi
13210fi
c6b750e1 13211STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13212if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13214$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13215else
81ecdfbb
RW
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217$as_echo "no" >&6; }
7e0f7140
GK
13218fi
13219
81ecdfbb 13220
2429c060
PB
13221 fi
13222 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13224set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226$as_echo_n "checking for $ac_word... " >&6; }
13227if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
7e0f7140
GK
13229else
13230 if test -n "$STRIP_FOR_TARGET"; then
13231 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13232else
c6b750e1
DJ
13233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234for as_dir in $PATH
13235do
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13240 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13242 break 2
13243 fi
13244done
81ecdfbb
RW
13245 done
13246IFS=$as_save_IFS
c6b750e1 13247
7e0f7140
GK
13248fi
13249fi
c6b750e1 13250STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13251if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13253$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13254else
81ecdfbb
RW
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256$as_echo "no" >&6; }
7e0f7140 13257fi
c6b750e1 13258
81ecdfbb 13259
2429c060
PB
13260 fi
13261 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13262 done
13263fi
c6b750e1 13264
7e0f7140
GK
13265if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13266 set dummy strip
13267 if test $build = $target ; then
13268 STRIP_FOR_TARGET="$2"
13269 else
13270 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13271 fi
d3f5afc4
MS
13272else
13273 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13274fi
13275
3a35eeb3
PB
13276else
13277 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13278fi
13279
13280
13281
13282
13283if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13284 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13286$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13287 if test -x $with_build_time_tools/windres; then
13288 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13289 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13291$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13292 else
81ecdfbb
RW
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294$as_echo "no" >&6; }
3a35eeb3 13295 fi
2429c060
PB
13296 elif test $build != $host && test $have_gcc_for_target = yes; then
13297 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13298 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13299 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13300 fi
13301fi
c6b750e1 13302if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13303 # Extract the first word of "windres", so it can be a program name with args.
13304set dummy windres; ac_word=$2
81ecdfbb
RW
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306$as_echo_n "checking for $ac_word... " >&6; }
13307if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13308 $as_echo_n "(cached) " >&6
2429c060 13309else
c6b750e1
DJ
13310 case $WINDRES_FOR_TARGET in
13311 [\\/]* | ?:[\\/]*)
2429c060
PB
13312 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13313 ;;
2429c060 13314 *)
c6b750e1
DJ
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316for as_dir in $gcc_cv_tool_dirs
13317do
13318 IFS=$as_save_IFS
13319 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13320 for ac_exec_ext in '' $ac_executable_extensions; do
13321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13322 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13324 break 2
13325 fi
13326done
81ecdfbb
RW
13327 done
13328IFS=$as_save_IFS
c6b750e1 13329
2429c060
PB
13330 ;;
13331esac
13332fi
c6b750e1 13333WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13334if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13336$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13337else
81ecdfbb
RW
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13339$as_echo "no" >&6; }
2429c060
PB
13340fi
13341
81ecdfbb 13342
2429c060
PB
13343fi
13344if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13345
13346
13347if test -n "$WINDRES_FOR_TARGET"; then
13348 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13349elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13350 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13351fi
13352
13353if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13354 for ncn_progname in windres; do
13355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13356set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358$as_echo_n "checking for $ac_word... " >&6; }
13359if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13360 $as_echo_n "(cached) " >&6
9a819804
AO
13361else
13362 if test -n "$WINDRES_FOR_TARGET"; then
13363 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13364else
13365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366for as_dir in $PATH
13367do
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13370 for ac_exec_ext in '' $ac_executable_extensions; do
13371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13372 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13374 break 2
13375 fi
13376done
81ecdfbb
RW
13377 done
13378IFS=$as_save_IFS
9a819804
AO
13379
13380fi
13381fi
13382WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13383if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13385$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13386else
81ecdfbb
RW
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388$as_echo "no" >&6; }
9a819804
AO
13389fi
13390
81ecdfbb 13391
9a819804
AO
13392 done
13393fi
13394
13395if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13396 for ncn_progname in windres; do
81ecdfbb
RW
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13398$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13399 if test -x $with_build_time_tools/${ncn_progname}; then
13400 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13402$as_echo "yes" >&6; }
2429c060
PB
13403 break
13404 else
81ecdfbb
RW
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406$as_echo "no" >&6; }
2429c060
PB
13407 fi
13408 done
13409fi
13410
13411if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13412 for ncn_progname in windres; do
13413 if test -n "$ncn_target_tool_prefix"; then
13414 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13415set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417$as_echo_n "checking for $ac_word... " >&6; }
13418if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
859789af 13420else
55db4b87
PB
13421 if test -n "$WINDRES_FOR_TARGET"; then
13422 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13423else
c6b750e1
DJ
13424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425for as_dir in $PATH
13426do
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13431 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13433 break 2
13434 fi
13435done
81ecdfbb
RW
13436 done
13437IFS=$as_save_IFS
c6b750e1 13438
859789af
AC
13439fi
13440fi
c6b750e1 13441WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13442if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13444$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13445else
81ecdfbb
RW
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447$as_echo "no" >&6; }
859789af
AC
13448fi
13449
81ecdfbb 13450
2429c060
PB
13451 fi
13452 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13454set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456$as_echo_n "checking for $ac_word... " >&6; }
13457if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13458 $as_echo_n "(cached) " >&6
859789af 13459else
05cbd757
PB
13460 if test -n "$WINDRES_FOR_TARGET"; then
13461 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13462else
c6b750e1
DJ
13463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464for as_dir in $PATH
13465do
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13468 for ac_exec_ext in '' $ac_executable_extensions; do
13469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13470 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13472 break 2
13473 fi
13474done
81ecdfbb
RW
13475 done
13476IFS=$as_save_IFS
c6b750e1 13477
859789af
AC
13478fi
13479fi
c6b750e1 13480WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13481if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13483$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13484else
81ecdfbb
RW
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486$as_echo "no" >&6; }
859789af 13487fi
c6b750e1 13488
81ecdfbb 13489
2429c060
PB
13490 fi
13491 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13492 done
13493fi
c6b750e1 13494
05cbd757
PB
13495if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13496 set dummy windres
13497 if test $build = $target ; then
13498 WINDRES_FOR_TARGET="$2"
859789af 13499 else
05cbd757 13500 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13501 fi
d3f5afc4
MS
13502else
13503 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13504fi
13505
3a35eeb3
PB
13506else
13507 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13508fi
13509
852e5f18 13510
0c24b341
NC
13511
13512
13513if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13514 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13516$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13517 if test -x $with_build_time_tools/windmc; then
13518 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13519 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13521$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13522 else
81ecdfbb
RW
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524$as_echo "no" >&6; }
0c24b341
NC
13525 fi
13526 elif test $build != $host && test $have_gcc_for_target = yes; then
13527 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13528 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13529 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13530 fi
13531fi
13532if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13533 # Extract the first word of "windmc", so it can be a program name with args.
13534set dummy windmc; ac_word=$2
81ecdfbb
RW
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13536$as_echo_n "checking for $ac_word... " >&6; }
13537if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13538 $as_echo_n "(cached) " >&6
0c24b341
NC
13539else
13540 case $WINDMC_FOR_TARGET in
13541 [\\/]* | ?:[\\/]*)
13542 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13543 ;;
13544 *)
13545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13546for as_dir in $gcc_cv_tool_dirs
13547do
13548 IFS=$as_save_IFS
13549 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13550 for ac_exec_ext in '' $ac_executable_extensions; do
13551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13552 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13554 break 2
13555 fi
13556done
81ecdfbb
RW
13557 done
13558IFS=$as_save_IFS
0c24b341
NC
13559
13560 ;;
13561esac
13562fi
13563WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13564if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13566$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13567else
81ecdfbb
RW
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569$as_echo "no" >&6; }
0c24b341
NC
13570fi
13571
81ecdfbb 13572
0c24b341
NC
13573fi
13574if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13575
13576
13577if test -n "$WINDMC_FOR_TARGET"; then
13578 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13579elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13580 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13581fi
13582
13583if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13584 for ncn_progname in windmc; do
13585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13586set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588$as_echo_n "checking for $ac_word... " >&6; }
13589if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13590 $as_echo_n "(cached) " >&6
0c24b341
NC
13591else
13592 if test -n "$WINDMC_FOR_TARGET"; then
13593 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13594else
13595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596for as_dir in $PATH
13597do
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13602 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13604 break 2
13605 fi
13606done
81ecdfbb
RW
13607 done
13608IFS=$as_save_IFS
0c24b341
NC
13609
13610fi
13611fi
13612WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13613if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13615$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13616else
81ecdfbb
RW
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618$as_echo "no" >&6; }
0c24b341
NC
13619fi
13620
81ecdfbb 13621
0c24b341
NC
13622 done
13623fi
13624
13625if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13626 for ncn_progname in windmc; do
81ecdfbb
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13628$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13629 if test -x $with_build_time_tools/${ncn_progname}; then
13630 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13632$as_echo "yes" >&6; }
0c24b341
NC
13633 break
13634 else
81ecdfbb
RW
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636$as_echo "no" >&6; }
0c24b341
NC
13637 fi
13638 done
13639fi
13640
13641if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13642 for ncn_progname in windmc; do
13643 if test -n "$ncn_target_tool_prefix"; then
13644 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13645set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13647$as_echo_n "checking for $ac_word... " >&6; }
13648if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13649 $as_echo_n "(cached) " >&6
0c24b341
NC
13650else
13651 if test -n "$WINDMC_FOR_TARGET"; then
13652 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13653else
13654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655for as_dir in $PATH
13656do
13657 IFS=$as_save_IFS
13658 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13659 for ac_exec_ext in '' $ac_executable_extensions; do
13660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13661 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13663 break 2
13664 fi
13665done
81ecdfbb
RW
13666 done
13667IFS=$as_save_IFS
0c24b341
NC
13668
13669fi
13670fi
13671WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13672if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13674$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13675else
81ecdfbb
RW
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677$as_echo "no" >&6; }
0c24b341
NC
13678fi
13679
81ecdfbb 13680
0c24b341
NC
13681 fi
13682 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13683 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13684set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686$as_echo_n "checking for $ac_word... " >&6; }
13687if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
0c24b341
NC
13689else
13690 if test -n "$WINDMC_FOR_TARGET"; then
13691 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13692else
13693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694for as_dir in $PATH
13695do
13696 IFS=$as_save_IFS
13697 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13698 for ac_exec_ext in '' $ac_executable_extensions; do
13699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13700 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13702 break 2
13703 fi
13704done
81ecdfbb
RW
13705 done
13706IFS=$as_save_IFS
0c24b341
NC
13707
13708fi
13709fi
13710WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13711if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13713$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13714else
81ecdfbb
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716$as_echo "no" >&6; }
0c24b341
NC
13717fi
13718
81ecdfbb 13719
0c24b341
NC
13720 fi
13721 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13722 done
13723fi
13724
13725if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13726 set dummy windmc
13727 if test $build = $target ; then
13728 WINDMC_FOR_TARGET="$2"
13729 else
13730 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13731 fi
13732else
13733 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13734fi
13735
13736else
13737 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13738fi
13739
13740
be01d343
PB
13741RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13742
81ecdfbb
RW
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13744$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13745if test "x${build}" != "x${host}" ; then
2429c060
PB
13746 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13747 # We already found the complete path
b8025f34 13748 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13750$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13751 else
13752 # Canadian cross, just use what we found
81ecdfbb
RW
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13754$as_echo "pre-installed" >&6; }
2429c060 13755 fi
be01d343
PB
13756else
13757 ok=yes
13758 case " ${configdirs} " in
13759 *" binutils "*) ;;
13760 *) ok=no ;;
13761 esac
c6b750e1 13762
be01d343
PB
13763 if test $ok = yes; then
13764 # An in-tree tool is available and we can use it
13765 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13767$as_echo "just compiled" >&6; }
2429c060
PB
13768 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
b8025f34 13770 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13772$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13773 elif test "x$target" = "x$host"; then
13774 # We can use an host tool
13775 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13777$as_echo "host tool" >&6; }
be01d343
PB
13778 else
13779 # We need a cross tool
81ecdfbb
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13781$as_echo "pre-installed" >&6; }
be01d343
PB
13782 fi
13783fi
4b900473 13784
81ecdfbb
RW
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13786$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13787if test "x${build}" != "x${host}" ; then
2429c060
PB
13788 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13789 # We already found the complete path
b8025f34 13790 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13792$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13793 else
13794 # Canadian cross, just use what we found
81ecdfbb
RW
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13796$as_echo "pre-installed" >&6; }
2429c060 13797 fi
be01d343
PB
13798else
13799 ok=yes
13800 case " ${configdirs} " in
13801 *" gas "*) ;;
13802 *) ok=no ;;
13803 esac
c6b750e1 13804
be01d343
PB
13805 if test $ok = yes; then
13806 # An in-tree tool is available and we can use it
13807 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13809$as_echo "just compiled" >&6; }
2429c060
PB
13810 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13811 # We already found the complete path
b8025f34 13812 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13814$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13815 elif test "x$target" = "x$host"; then
13816 # We can use an host tool
13817 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13819$as_echo "host tool" >&6; }
be01d343
PB
13820 else
13821 # We need a cross tool
81ecdfbb
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13823$as_echo "pre-installed" >&6; }
be01d343
PB
13824 fi
13825fi
4b900473 13826
81ecdfbb
RW
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13828$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13829if test "x${build}" != "x${host}" ; then
2429c060
PB
13830 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13831 # We already found the complete path
b8025f34 13832 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13834$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13835 else
13836 # Canadian cross, just use what we found
81ecdfbb
RW
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13838$as_echo "pre-installed" >&6; }
2429c060 13839 fi
be01d343
PB
13840else
13841 ok=yes
13842 case " ${configdirs} " in
13843 *" gcc "*) ;;
13844 *) ok=no ;;
13845 esac
c6b750e1 13846
be01d343
PB
13847 if test $ok = yes; then
13848 # An in-tree tool is available and we can use it
13849 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13851$as_echo "just compiled" >&6; }
2429c060
PB
13852 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13853 # We already found the complete path
b8025f34 13854 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13856$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13857 elif test "x$target" = "x$host"; then
13858 # We can use an host tool
13859 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13861$as_echo "host tool" >&6; }
be01d343
PB
13862 else
13863 # We need a cross tool
81ecdfbb
RW
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13865$as_echo "pre-installed" >&6; }
be01d343
PB
13866 fi
13867fi
4b900473 13868
81ecdfbb
RW
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13870$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13871if test "x${build}" != "x${host}" ; then
2429c060
PB
13872 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13873 # We already found the complete path
b8025f34 13874 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13876$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13877 else
13878 # Canadian cross, just use what we found
81ecdfbb
RW
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13880$as_echo "pre-installed" >&6; }
2429c060 13881 fi
be01d343
PB
13882else
13883 ok=yes
13884 case " ${configdirs} " in
13885 *" gcc "*) ;;
13886 *) ok=no ;;
13887 esac
13888 case ,${enable_languages}, in
13889 *,c++,*) ;;
13890 *) ok=no ;;
13891 esac
13892 if test $ok = yes; then
13893 # An in-tree tool is available and we can use it
95e43135 13894 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13896$as_echo "just compiled" >&6; }
2429c060
PB
13897 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13898 # We already found the complete path
b8025f34 13899 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13901$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13902 elif test "x$target" = "x$host"; then
13903 # We can use an host tool
13904 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13906$as_echo "host tool" >&6; }
be01d343
PB
13907 else
13908 # We need a cross tool
81ecdfbb
RW
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13910$as_echo "pre-installed" >&6; }
be01d343
PB
13911 fi
13912fi
4b900473 13913
81ecdfbb
RW
13914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13915$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13916if test "x${build}" != "x${host}" ; then
2429c060
PB
13917 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13918 # We already found the complete path
b8025f34 13919 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13921$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13922 else
13923 # Canadian cross, just use what we found
81ecdfbb
RW
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13925$as_echo "pre-installed" >&6; }
2429c060 13926 fi
be01d343
PB
13927else
13928 ok=yes
13929 case " ${configdirs} " in
13930 *" gcc "*) ;;
13931 *) ok=no ;;
13932 esac
13933 case ,${enable_languages}, in
13934 *,c++,*) ;;
13935 *) ok=no ;;
13936 esac
13937 if test $ok = yes; then
13938 # An in-tree tool is available and we can use it
95e43135 13939 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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13941$as_echo "just compiled" >&6; }
2429c060
PB
13942 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13943 # We already found the complete path
b8025f34 13944 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13946$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13947 elif test "x$target" = "x$host"; then
13948 # We can use an host tool
13949 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13951$as_echo "host tool" >&6; }
be01d343
PB
13952 else
13953 # We need a cross tool
81ecdfbb
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13955$as_echo "pre-installed" >&6; }
be01d343
PB
13956 fi
13957fi
4b900473 13958
81ecdfbb
RW
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13960$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13961if test "x${build}" != "x${host}" ; then
2429c060
PB
13962 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
b8025f34 13964 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13967 else
13968 # Canadian cross, just use what we found
81ecdfbb
RW
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13970$as_echo "pre-installed" >&6; }
2429c060 13971 fi
be01d343
PB
13972else
13973 ok=yes
13974 case " ${configdirs} " in
13975 *" binutils "*) ;;
13976 *) ok=no ;;
13977 esac
c6b750e1 13978
be01d343
PB
13979 if test $ok = yes; then
13980 # An in-tree tool is available and we can use it
13981 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13983$as_echo "just compiled" >&6; }
2429c060
PB
13984 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13985 # We already found the complete path
b8025f34 13986 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13988$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13989 elif test "x$target" = "x$host"; then
13990 # We can use an host tool
13991 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13993$as_echo "host tool" >&6; }
be01d343
PB
13994 else
13995 # We need a cross tool
81ecdfbb
RW
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13997$as_echo "pre-installed" >&6; }
be01d343
PB
13998 fi
13999fi
4b900473 14000
81ecdfbb
RW
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14002$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14003if test "x${build}" != "x${host}" ; then
2429c060
PB
14004 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14005 # We already found the complete path
b8025f34 14006 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14008$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14009 else
14010 # Canadian cross, just use what we found
81ecdfbb
RW
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14012$as_echo "pre-installed" >&6; }
2429c060 14013 fi
be01d343
PB
14014else
14015 ok=yes
14016 case " ${configdirs} " in
14017 *" gcc "*) ;;
14018 *) ok=no ;;
14019 esac
c6b750e1 14020
be01d343
PB
14021 if test $ok = yes; then
14022 # An in-tree tool is available and we can use it
14023 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14025$as_echo "just compiled" >&6; }
2429c060
PB
14026 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14027 # We already found the complete path
b8025f34 14028 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14030$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14031 elif test "x$target" = "x$host"; then
14032 # We can use an host tool
14033 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14035$as_echo "host tool" >&6; }
be01d343
PB
14036 else
14037 # We need a cross tool
81ecdfbb
RW
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14039$as_echo "pre-installed" >&6; }
be01d343
PB
14040 fi
14041fi
4b900473 14042
81ecdfbb
RW
14043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14044$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 14045if test "x${build}" != "x${host}" ; then
2429c060
PB
14046 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14047 # We already found the complete path
b8025f34 14048 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14050$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14051 else
14052 # Canadian cross, just use what we found
81ecdfbb
RW
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14054$as_echo "pre-installed" >&6; }
2429c060 14055 fi
be01d343
PB
14056else
14057 ok=yes
14058 case " ${configdirs} " in
14059 *" gcc "*) ;;
14060 *) ok=no ;;
14061 esac
14062 case ,${enable_languages}, in
14063 *,java,*) ;;
14064 *) ok=no ;;
14065 esac
14066 if test $ok = yes; then
14067 # An in-tree tool is available and we can use it
14068 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14070$as_echo "just compiled" >&6; }
2429c060
PB
14071 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14072 # We already found the complete path
b8025f34 14073 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14075$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14076 elif test "x$target" = "x$host"; then
14077 # We can use an host tool
14078 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14080$as_echo "host tool" >&6; }
be01d343
PB
14081 else
14082 # We need a cross tool
81ecdfbb
RW
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14084$as_echo "pre-installed" >&6; }
be01d343
PB
14085 fi
14086fi
4b900473 14087
81ecdfbb
RW
14088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14089$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14090if test "x${build}" != "x${host}" ; then
2429c060
PB
14091 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14092 # We already found the complete path
b8025f34 14093 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14095$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14096 else
14097 # Canadian cross, just use what we found
81ecdfbb
RW
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14099$as_echo "pre-installed" >&6; }
2429c060 14100 fi
be01d343
PB
14101else
14102 ok=yes
14103 case " ${configdirs} " in
14104 *" gcc "*) ;;
14105 *) ok=no ;;
14106 esac
14107 case ,${enable_languages}, in
14108 *,fortran,*) ;;
14109 *) ok=no ;;
14110 esac
14111 if test $ok = yes; then
14112 # An in-tree tool is available and we can use it
14113 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14115$as_echo "just compiled" >&6; }
2429c060
PB
14116 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14117 # We already found the complete path
b8025f34 14118 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14120$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14121 elif test "x$target" = "x$host"; then
14122 # We can use an host tool
14123 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14125$as_echo "host tool" >&6; }
be01d343
PB
14126 else
14127 # We need a cross tool
81ecdfbb
RW
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14129$as_echo "pre-installed" >&6; }
be01d343
PB
14130 fi
14131fi
4b900473 14132
e552509b
ILT
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14134$as_echo_n "checking where to find the target gccgo... " >&6; }
14135if test "x${build}" != "x${host}" ; then
14136 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14137 # We already found the complete path
14138 ac_dir=`dirname $GOC_FOR_TARGET`
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14140$as_echo "pre-installed in $ac_dir" >&6; }
14141 else
14142 # Canadian cross, just use what we found
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14144$as_echo "pre-installed" >&6; }
14145 fi
14146else
14147 ok=yes
14148 case " ${configdirs} " in
14149 *" gcc "*) ;;
14150 *) ok=no ;;
14151 esac
14152 case ,${enable_languages}, in
14153 *,go,*) ;;
14154 *) ok=no ;;
14155 esac
14156 if test $ok = yes; then
14157 # An in-tree tool is available and we can use it
14158 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160$as_echo "just compiled" >&6; }
14161 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
14163 ac_dir=`dirname $GOC_FOR_TARGET`
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165$as_echo "pre-installed in $ac_dir" >&6; }
14166 elif test "x$target" = "x$host"; then
14167 # We can use an host tool
14168 GOC_FOR_TARGET='$(GOC)'
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170$as_echo "host tool" >&6; }
14171 else
14172 # We need a cross tool
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174$as_echo "pre-installed" >&6; }
14175 fi
14176fi
14177
81ecdfbb
RW
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14179$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14180if test "x${build}" != "x${host}" ; then
2429c060
PB
14181 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
b8025f34 14183 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14186 else
14187 # Canadian cross, just use what we found
81ecdfbb
RW
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189$as_echo "pre-installed" >&6; }
2429c060 14190 fi
be01d343
PB
14191else
14192 ok=yes
14193 case " ${configdirs} " in
14194 *" ld "*) ;;
14195 *) ok=no ;;
14196 esac
c6b750e1 14197
be01d343
PB
14198 if test $ok = yes; then
14199 # An in-tree tool is available and we can use it
14200 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14202$as_echo "just compiled" >&6; }
2429c060
PB
14203 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14204 # We already found the complete path
b8025f34 14205 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14207$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14208 elif test "x$target" = "x$host"; then
14209 # We can use an host tool
14210 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14212$as_echo "host tool" >&6; }
be01d343
PB
14213 else
14214 # We need a cross tool
81ecdfbb
RW
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216$as_echo "pre-installed" >&6; }
be01d343
PB
14217 fi
14218fi
4b900473 14219
81ecdfbb
RW
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14221$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14222if test "x${build}" != "x${host}" ; then
2429c060
PB
14223 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14224 # We already found the complete path
b8025f34 14225 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14227$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14228 else
14229 # Canadian cross, just use what we found
81ecdfbb
RW
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231$as_echo "pre-installed" >&6; }
2429c060 14232 fi
be01d343 14233else
2429c060
PB
14234 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
b8025f34 14236 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14238$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14239 elif test "x$target" = "x$host"; then
be01d343
PB
14240 # We can use an host tool
14241 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14243$as_echo "host tool" >&6; }
be01d343
PB
14244 else
14245 # We need a cross tool
81ecdfbb
RW
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247$as_echo "pre-installed" >&6; }
be01d343
PB
14248 fi
14249fi
4b900473 14250
81ecdfbb
RW
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14252$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14253if test "x${build}" != "x${host}" ; then
2429c060
PB
14254 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
b8025f34 14256 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14259 else
14260 # Canadian cross, just use what we found
81ecdfbb
RW
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262$as_echo "pre-installed" >&6; }
2429c060 14263 fi
be01d343
PB
14264else
14265 ok=yes
14266 case " ${configdirs} " in
14267 *" binutils "*) ;;
14268 *) ok=no ;;
14269 esac
c6b750e1 14270
be01d343
PB
14271 if test $ok = yes; then
14272 # An in-tree tool is available and we can use it
14273 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275$as_echo "just compiled" >&6; }
2429c060
PB
14276 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
b8025f34 14278 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14281 elif test "x$target" = "x$host"; then
14282 # We can use an host tool
14283 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14285$as_echo "host tool" >&6; }
be01d343
PB
14286 else
14287 # We need a cross tool
81ecdfbb
RW
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289$as_echo "pre-installed" >&6; }
be01d343
PB
14290 fi
14291fi
4b900473 14292
81ecdfbb
RW
14293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14294$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14295if test "x${build}" != "x${host}" ; then
2429c060
PB
14296 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
b8025f34 14298 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14301 else
14302 # Canadian cross, just use what we found
81ecdfbb
RW
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304$as_echo "pre-installed" >&6; }
2429c060 14305 fi
be01d343
PB
14306else
14307 ok=yes
14308 case " ${configdirs} " in
14309 *" binutils "*) ;;
14310 *) ok=no ;;
14311 esac
c6b750e1 14312
be01d343
PB
14313 if test $ok = yes; then
14314 # An in-tree tool is available and we can use it
14315 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14317$as_echo "just compiled" >&6; }
2429c060
PB
14318 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
b8025f34 14320 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14323 elif test "x$target" = "x$host"; then
14324 # We can use an host tool
14325 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14327$as_echo "host tool" >&6; }
be01d343
PB
14328 else
14329 # We need a cross tool
81ecdfbb
RW
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331$as_echo "pre-installed" >&6; }
be01d343
PB
14332 fi
14333fi
4b900473 14334
81ecdfbb
RW
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14336$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14337if test "x${build}" != "x${host}" ; then
2429c060
PB
14338 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
b8025f34 14340 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14343 else
14344 # Canadian cross, just use what we found
81ecdfbb
RW
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346$as_echo "pre-installed" >&6; }
2429c060 14347 fi
be01d343
PB
14348else
14349 ok=yes
14350 case " ${configdirs} " in
14351 *" binutils "*) ;;
14352 *) ok=no ;;
14353 esac
c6b750e1 14354
be01d343
PB
14355 if test $ok = yes; then
14356 # An in-tree tool is available and we can use it
14357 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14359$as_echo "just compiled" >&6; }
2429c060
PB
14360 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14361 # We already found the complete path
b8025f34 14362 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14364$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14365 elif test "x$target" = "x$host"; then
14366 # We can use an host tool
14367 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14369$as_echo "host tool" >&6; }
be01d343
PB
14370 else
14371 # We need a cross tool
81ecdfbb
RW
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373$as_echo "pre-installed" >&6; }
be01d343
PB
14374 fi
14375fi
4b900473 14376
b121d7d4
DD
14377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14378$as_echo_n "checking where to find the target readelf... " >&6; }
14379if test "x${build}" != "x${host}" ; then
14380 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
14382 ac_dir=`dirname $READELF_FOR_TARGET`
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384$as_echo "pre-installed in $ac_dir" >&6; }
14385 else
14386 # Canadian cross, just use what we found
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388$as_echo "pre-installed" >&6; }
14389 fi
14390else
14391 ok=yes
14392 case " ${configdirs} " in
14393 *" binutils "*) ;;
14394 *) ok=no ;;
14395 esac
14396
14397 if test $ok = yes; then
14398 # An in-tree tool is available and we can use it
14399 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14401$as_echo "just compiled" >&6; }
14402 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14403 # We already found the complete path
14404 ac_dir=`dirname $READELF_FOR_TARGET`
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14406$as_echo "pre-installed in $ac_dir" >&6; }
14407 elif test "x$target" = "x$host"; then
14408 # We can use an host tool
14409 READELF_FOR_TARGET='$(READELF)'
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14411$as_echo "host tool" >&6; }
14412 else
14413 # We need a cross tool
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14415$as_echo "pre-installed" >&6; }
14416 fi
14417fi
14418
81ecdfbb
RW
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14420$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14421if test "x${build}" != "x${host}" ; then
2429c060
PB
14422 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
b8025f34 14424 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14427 else
14428 # Canadian cross, just use what we found
81ecdfbb
RW
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14430$as_echo "pre-installed" >&6; }
2429c060 14431 fi
be01d343
PB
14432else
14433 ok=yes
14434 case " ${configdirs} " in
14435 *" binutils "*) ;;
14436 *) ok=no ;;
14437 esac
c6b750e1 14438
be01d343
PB
14439 if test $ok = yes; then
14440 # An in-tree tool is available and we can use it
9b980aa1 14441 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14443$as_echo "just compiled" >&6; }
2429c060
PB
14444 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14445 # We already found the complete path
b8025f34 14446 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14448$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14449 elif test "x$target" = "x$host"; then
14450 # We can use an host tool
14451 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14453$as_echo "host tool" >&6; }
be01d343
PB
14454 else
14455 # We need a cross tool
81ecdfbb
RW
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14457$as_echo "pre-installed" >&6; }
be01d343
PB
14458 fi
14459fi
4b900473 14460
81ecdfbb
RW
14461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14462$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14463if test "x${build}" != "x${host}" ; then
2429c060
PB
14464 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14465 # We already found the complete path
b8025f34 14466 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14468$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14469 else
14470 # Canadian cross, just use what we found
81ecdfbb
RW
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14472$as_echo "pre-installed" >&6; }
2429c060 14473 fi
be01d343
PB
14474else
14475 ok=yes
14476 case " ${configdirs} " in
14477 *" binutils "*) ;;
14478 *) ok=no ;;
14479 esac
c6b750e1 14480
be01d343
PB
14481 if test $ok = yes; then
14482 # An in-tree tool is available and we can use it
14483 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14485$as_echo "just compiled" >&6; }
2429c060
PB
14486 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14487 # We already found the complete path
b8025f34 14488 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14490$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14491 elif test "x$target" = "x$host"; then
14492 # We can use an host tool
14493 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14495$as_echo "host tool" >&6; }
be01d343
PB
14496 else
14497 # We need a cross tool
81ecdfbb
RW
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14499$as_echo "pre-installed" >&6; }
be01d343 14500 fi
a0da8069 14501fi
54752a6b 14502
81ecdfbb
RW
14503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14504$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14505if test "x${build}" != "x${host}" ; then
14506 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14507 # We already found the complete path
14508 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14510$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14511 else
14512 # Canadian cross, just use what we found
81ecdfbb
RW
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14514$as_echo "pre-installed" >&6; }
0c24b341
NC
14515 fi
14516else
14517 ok=yes
14518 case " ${configdirs} " in
14519 *" binutils "*) ;;
14520 *) ok=no ;;
14521 esac
14522
14523 if test $ok = yes; then
14524 # An in-tree tool is available and we can use it
14525 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14527$as_echo "just compiled" >&6; }
0c24b341
NC
14528 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14529 # We already found the complete path
14530 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14532$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14533 elif test "x$target" = "x$host"; then
14534 # We can use an host tool
14535 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14537$as_echo "host tool" >&6; }
0c24b341
NC
14538 else
14539 # We need a cross tool
81ecdfbb
RW
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14541$as_echo "pre-installed" >&6; }
0c24b341
NC
14542 fi
14543fi
14544
54752a6b
NN
14545
14546
be01d343 14547
4b900473 14548
a0da8069
NN
14549# Certain tools may need extra flags.
14550AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14551RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14552NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14553
be01d343
PB
14554# When building target libraries, except in a Canadian cross, we use
14555# the same toolchain as the compiler we just built.
14556COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14557COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14558COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14559if test $host = $build; then
14560 case " $configdirs " in
14561 *" gcc "*)
14562 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14563 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14564 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14565 ;;
14566 esac
14567fi
14568
14569
14570
14571
14572
81ecdfbb
RW
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14574$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14575# Check whether --enable-maintainer-mode was given.
14576if test "${enable_maintainer_mode+set}" = set; then :
14577 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14578else
14579 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14580fi
14581
14582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14583$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14584
14585
14586if test "$USE_MAINTAINER_MODE" = yes; then
14587 MAINTAINER_MODE_TRUE=
14588 MAINTAINER_MODE_FALSE='#'
14589else
14590 MAINTAINER_MODE_TRUE='#'
14591 MAINTAINER_MODE_FALSE=
c6b750e1 14592fi
3d5e36ae
AO
14593MAINT=$MAINTAINER_MODE_TRUE
14594
1d39f329
NN
14595# ---------------------
14596# GCC bootstrap support
14597# ---------------------
14598
14599# Stage specific cflags for build.
14600stage1_cflags="-g"
14601case $build in
14602 vax-*-*)
14603 case ${GCC} in
14604 yes) stage1_cflags="-g -Wa,-J" ;;
14605 *) stage1_cflags="-g -J" ;;
14606 esac ;;
1d39f329
NN
14607esac
14608
1d89b610 14609
1d39f329 14610
8a0d8a5c 14611# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14612# Check whether --enable-stage1-checking was given.
14613if test "${enable_stage1_checking+set}" = set; then :
14614 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14615else
5566c1fa 14616 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14617 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14618else
5566c1fa 14619 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14620fi
81ecdfbb 14621fi
8a0d8a5c
PB
14622
14623
c6b750e1 14624
81ecdfbb
RW
14625# Enable -Werror in bootstrap stage2 and later.
14626# Check whether --enable-werror was given.
14627if test "${enable_werror+set}" = set; then :
14628 enableval=$enable_werror;
1d39f329 14629else
a0323144 14630 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14631 enable_werror=yes
79fcd0ec
PB
14632else
14633 enable_werror=no
14634fi
81ecdfbb
RW
14635fi
14636
1a6f2dc7
NN
14637case ${enable_werror} in
14638 yes) stage2_werror_flag="--enable-werror-always" ;;
14639 *) stage2_werror_flag="" ;;
1d39f329
NN
14640esac
14641
14642
82033c9b
JBG
14643# Enable --enable-host-shared.
14644# Check whether --enable-host-shared was given.
14645if test "${enable_host_shared+set}" = set; then :
14646 enableval=$enable_host_shared; host_shared=$enableval
14647else
14648 host_shared=no
14649fi
14650
14651
14652
e8a5fa9c
RW
14653# Specify what files to not compare during bootstrap.
14654
14655compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14656case "$target" in
14657 hppa*64*-*-hpux*) ;;
14658 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14659 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14660esac
14661
14662
81ecdfbb
RW
14663ac_config_files="$ac_config_files Makefile"
14664
c6b750e1 14665cat >confcache <<\_ACEOF
a0da8069
NN
14666# This file is a shell script that caches the results of configure
14667# tests run on this system so they can be shared between configure
c6b750e1
DJ
14668# scripts and configure runs, see configure's option --config-cache.
14669# It is not useful on other systems. If it contains results you don't
14670# want to keep, you may remove or edit it.
a0da8069 14671#
c6b750e1
DJ
14672# config.status only pays attention to the cache file if you give it
14673# the --recheck option to rerun configure.
a0da8069 14674#
c6b750e1
DJ
14675# `ac_cv_env_foo' variables (set or unset) will be overridden when
14676# loading this file, other *unset* `ac_cv_foo' will be assigned the
14677# following values.
14678
14679_ACEOF
14680
a0da8069
NN
14681# The following way of writing the cache mishandles newlines in values,
14682# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14683# So, we kill variables containing newlines.
a0da8069
NN
14684# Ultrix sh set writes to stderr and can't be redirected directly,
14685# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14686(
14687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14688 eval ac_val=\$$ac_var
14689 case $ac_val in #(
14690 *${as_nl}*)
14691 case $ac_var in #(
14692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14693$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14694 esac
14695 case $ac_var in #(
14696 _ | IFS | as_nl) ;; #(
14697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14698 *) { eval $ac_var=; unset $ac_var;} ;;
14699 esac ;;
14700 esac
14701 done
14702
c6b750e1 14703 (set) 2>&1 |
81ecdfbb
RW
14704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14705 *${as_nl}ac_space=\ *)
14706 # `set' does not quote correctly, so add quotes: double-quote
14707 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14708 sed -n \
14709 "s/'/'\\\\''/g;
14710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14711 ;; #(
c6b750e1
DJ
14712 *)
14713 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14715 ;;
81ecdfbb
RW
14716 esac |
14717 sort
14718) |
c6b750e1 14719 sed '
81ecdfbb 14720 /^ac_cv_env_/b end
c6b750e1 14721 t clear
81ecdfbb 14722 :clear
c6b750e1
DJ
14723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14724 t end
81ecdfbb
RW
14725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14726 :end' >>confcache
14727if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14728 if test -w "$cache_file"; then
14729 test "x$cache_file" != "x/dev/null" &&
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14731$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14732 cat confcache >$cache_file
a0da8069 14733 else
81ecdfbb
RW
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14735$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14736 fi
852e5f18 14737fi
a0da8069 14738rm -f confcache
852e5f18 14739
a0da8069
NN
14740test "x$prefix" = xNONE && prefix=$ac_default_prefix
14741# Let make expand exec_prefix.
14742test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14743
a0da8069
NN
14744# Transform confdefs.h into DEFS.
14745# Protect against shell expansion while executing Makefile rules.
14746# Protect against Makefile macro expansion.
c6b750e1
DJ
14747#
14748# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14749# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14750# look for a macro that doesn't take arguments.
81ecdfbb
RW
14751ac_script='
14752:mline
14753/\\$/{
14754 N
14755 s,\\\n,,
14756 b mline
14757}
c6b750e1 14758t clear
81ecdfbb
RW
14759:clear
14760s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14761t quote
81ecdfbb 14762s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14763t quote
81ecdfbb
RW
14764b any
14765:quote
14766s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14767s/\[/\\&/g
14768s/\]/\\&/g
14769s/\$/$$/g
14770H
14771:any
14772${
14773 g
14774 s/^\n//
14775 s/\n/ /g
14776 p
14777}
14778'
14779DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14780
14781
14782ac_libobjs=
14783ac_ltlibobjs=
14784for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14785 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14786 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14787 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14788 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14789 # will be set to the directory where LIBOBJS objects are built.
14790 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14791 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14792done
14793LIBOBJS=$ac_libobjs
852e5f18 14794
c6b750e1 14795LTLIBOBJS=$ac_ltlibobjs
376a0e54 14796
cac3d6c4 14797
c6b750e1
DJ
14798
14799: ${CONFIG_STATUS=./config.status}
81ecdfbb 14800ac_write_fail=0
c6b750e1
DJ
14801ac_clean_files_save=$ac_clean_files
14802ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14803{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14804$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14805as_write_fail=0
14806cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14807#! $SHELL
14808# Generated by $as_me.
a0da8069 14809# Run this file to recreate the current configuration.
a0da8069 14810# Compiler output produced by configure, useful for debugging
c6b750e1 14811# configure, is in config.log if it exists.
376a0e54 14812
c6b750e1
DJ
14813debug=false
14814ac_cs_recheck=false
14815ac_cs_silent=false
c6b750e1 14816
81ecdfbb
RW
14817SHELL=\${CONFIG_SHELL-$SHELL}
14818export SHELL
14819_ASEOF
14820cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14821## -------------------- ##
14822## M4sh Initialization. ##
14823## -------------------- ##
14824
14825# Be more Bourne compatible
14826DUALCASE=1; export DUALCASE # for MKS sh
14827if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14828 emulate sh
14829 NULLCMD=:
81ecdfbb 14830 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14831 # is contrary to our usage. Disable this feature.
14832 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14833 setopt NO_GLOB_SUBST
14834else
14835 case `(set -o) 2>/dev/null` in #(
14836 *posix*) :
14837 set -o posix ;; #(
14838 *) :
14839 ;;
14840esac
c6b750e1 14841fi
c6b750e1 14842
81ecdfbb
RW
14843
14844as_nl='
14845'
14846export as_nl
14847# Printing a long string crashes Solaris 7 /usr/bin/printf.
14848as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14849as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14850as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14851# Prefer a ksh shell builtin over an external printf program on Solaris,
14852# but without wasting forks for bash or zsh.
14853if test -z "$BASH_VERSION$ZSH_VERSION" \
14854 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14855 as_echo='print -r --'
14856 as_echo_n='print -rn --'
14857elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14858 as_echo='printf %s\n'
14859 as_echo_n='printf %s'
14860else
14861 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14862 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14863 as_echo_n='/usr/ucb/echo -n'
14864 else
14865 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14866 as_echo_n_body='eval
14867 arg=$1;
14868 case $arg in #(
14869 *"$as_nl"*)
14870 expr "X$arg" : "X\\(.*\\)$as_nl";
14871 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14872 esac;
14873 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14874 '
14875 export as_echo_n_body
14876 as_echo_n='sh -c $as_echo_n_body as_echo'
14877 fi
14878 export as_echo_body
14879 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14880fi
14881
81ecdfbb
RW
14882# The user is always right.
14883if test "${PATH_SEPARATOR+set}" != set; then
14884 PATH_SEPARATOR=:
14885 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14886 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14887 PATH_SEPARATOR=';'
14888 }
14889fi
14890
14891
14892# IFS
14893# We need space, tab and new line, in precisely that order. Quoting is
14894# there to prevent editors from complaining about space-tab.
14895# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14896# splitting by setting IFS to empty value.)
14897IFS=" "" $as_nl"
14898
14899# Find who we are. Look in the path if we contain no directory separator.
14900case $0 in #((
14901 *[\\/]* ) as_myself=$0 ;;
14902 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14903for as_dir in $PATH
14904do
14905 IFS=$as_save_IFS
14906 test -z "$as_dir" && as_dir=.
14907 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14908 done
14909IFS=$as_save_IFS
14910
14911 ;;
14912esac
14913# We did not find ourselves, most probably we were run as `sh COMMAND'
14914# in which case we are not to be found in the path.
14915if test "x$as_myself" = x; then
14916 as_myself=$0
14917fi
14918if test ! -f "$as_myself"; then
14919 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14920 exit 1
14921fi
c6b750e1 14922
81ecdfbb
RW
14923# Unset variables that we do not need and which cause bugs (e.g. in
14924# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14925# suppresses any "Segmentation fault" message there. '((' could
14926# trigger a bug in pdksh 5.2.14.
14927for as_var in BASH_ENV ENV MAIL MAILPATH
14928do eval test x\${$as_var+set} = xset \
14929 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14930done
c6b750e1
DJ
14931PS1='$ '
14932PS2='> '
14933PS4='+ '
14934
14935# NLS nuisances.
81ecdfbb
RW
14936LC_ALL=C
14937export LC_ALL
14938LANGUAGE=C
14939export LANGUAGE
14940
14941# CDPATH.
14942(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14943
14944
14945# as_fn_error ERROR [LINENO LOG_FD]
14946# ---------------------------------
14947# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14948# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14949# script with status $?, using 1 if that was 0.
14950as_fn_error ()
14951{
14952 as_status=$?; test $as_status -eq 0 && as_status=1
14953 if test "$3"; then
14954 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14955 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14956 fi
81ecdfbb
RW
14957 $as_echo "$as_me: error: $1" >&2
14958 as_fn_exit $as_status
14959} # as_fn_error
14960
14961
14962# as_fn_set_status STATUS
14963# -----------------------
14964# Set $? to STATUS, without forking.
14965as_fn_set_status ()
14966{
14967 return $1
14968} # as_fn_set_status
14969
14970# as_fn_exit STATUS
14971# -----------------
14972# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14973as_fn_exit ()
14974{
14975 set +e
14976 as_fn_set_status $1
14977 exit $1
14978} # as_fn_exit
14979
14980# as_fn_unset VAR
14981# ---------------
14982# Portably unset VAR.
14983as_fn_unset ()
14984{
14985 { eval $1=; unset $1;}
14986}
14987as_unset=as_fn_unset
14988# as_fn_append VAR VALUE
14989# ----------------------
14990# Append the text in VALUE to the end of the definition contained in VAR. Take
14991# advantage of any shell optimizations that allow amortized linear growth over
14992# repeated appends, instead of the typical quadratic growth present in naive
14993# implementations.
14994if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14995 eval 'as_fn_append ()
14996 {
14997 eval $1+=\$2
14998 }'
14999else
15000 as_fn_append ()
15001 {
15002 eval $1=\$$1\$2
15003 }
15004fi # as_fn_append
15005
15006# as_fn_arith ARG...
15007# ------------------
15008# Perform arithmetic evaluation on the ARGs, and store the result in the
15009# global $as_val. Take advantage of shells that can avoid forks. The arguments
15010# must be portable across $(()) and expr.
15011if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15012 eval 'as_fn_arith ()
15013 {
15014 as_val=$(( $* ))
15015 }'
15016else
15017 as_fn_arith ()
15018 {
15019 as_val=`expr "$@" || test $? -eq 1`
15020 }
15021fi # as_fn_arith
15022
c6b750e1 15023
81ecdfbb
RW
15024if expr a : '\(a\)' >/dev/null 2>&1 &&
15025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15026 as_expr=expr
15027else
15028 as_expr=false
15029fi
15030
81ecdfbb 15031if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15032 as_basename=basename
15033else
15034 as_basename=false
15035fi
15036
81ecdfbb
RW
15037if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15038 as_dirname=dirname
15039else
15040 as_dirname=false
15041fi
c6b750e1 15042
81ecdfbb 15043as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15044$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15045 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15046 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15047$as_echo X/"$0" |
15048 sed '/^.*\/\([^/][^/]*\)\/*$/{
15049 s//\1/
15050 q
15051 }
15052 /^X\/\(\/\/\)$/{
15053 s//\1/
15054 q
15055 }
15056 /^X\/\(\/\).*/{
15057 s//\1/
15058 q
15059 }
15060 s/.*/./; q'`
c6b750e1 15061
c6b750e1
DJ
15062# Avoid depending upon Character Ranges.
15063as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15064as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15065as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15066as_cr_digits='0123456789'
15067as_cr_alnum=$as_cr_Letters$as_cr_digits
15068
81ecdfbb
RW
15069ECHO_C= ECHO_N= ECHO_T=
15070case `echo -n x` in #(((((
15071-n*)
15072 case `echo 'xy\c'` in
15073 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15074 xy) ECHO_C='\c';;
15075 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15076 ECHO_T=' ';;
15077 esac;;
15078*)
15079 ECHO_N='-n';;
c6b750e1
DJ
15080esac
15081
81ecdfbb
RW
15082rm -f conf$$ conf$$.exe conf$$.file
15083if test -d conf$$.dir; then
15084 rm -f conf$$.dir/conf$$.file
c6b750e1 15085else
81ecdfbb
RW
15086 rm -f conf$$.dir
15087 mkdir conf$$.dir 2>/dev/null
c6b750e1 15088fi
81ecdfbb
RW
15089if (echo >conf$$.file) 2>/dev/null; then
15090 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15091 as_ln_s='ln -s'
81ecdfbb
RW
15092 # ... but there are two gotchas:
15093 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15094 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15095 # In both cases, we have to default to `cp -p'.
15096 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15097 as_ln_s='cp -p'
15098 elif ln conf$$.file conf$$ 2>/dev/null; then
15099 as_ln_s=ln
15100 else
15101 as_ln_s='cp -p'
c6b750e1 15102 fi
c6b750e1
DJ
15103else
15104 as_ln_s='cp -p'
15105fi
81ecdfbb
RW
15106rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15107rmdir conf$$.dir 2>/dev/null
15108
15109
15110# as_fn_mkdir_p
15111# -------------
15112# Create "$as_dir" as a directory, including parents if necessary.
15113as_fn_mkdir_p ()
15114{
15115
15116 case $as_dir in #(
15117 -*) as_dir=./$as_dir;;
15118 esac
15119 test -d "$as_dir" || eval $as_mkdir_p || {
15120 as_dirs=
15121 while :; do
15122 case $as_dir in #(
15123 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15124 *) as_qdir=$as_dir;;
15125 esac
15126 as_dirs="'$as_qdir' $as_dirs"
15127 as_dir=`$as_dirname -- "$as_dir" ||
15128$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15129 X"$as_dir" : 'X\(//\)[^/]' \| \
15130 X"$as_dir" : 'X\(//\)$' \| \
15131 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15132$as_echo X"$as_dir" |
15133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15134 s//\1/
15135 q
15136 }
15137 /^X\(\/\/\)[^/].*/{
15138 s//\1/
15139 q
15140 }
15141 /^X\(\/\/\)$/{
15142 s//\1/
15143 q
15144 }
15145 /^X\(\/\).*/{
15146 s//\1/
15147 q
15148 }
15149 s/.*/./; q'`
15150 test -d "$as_dir" && break
15151 done
15152 test -z "$as_dirs" || eval "mkdir $as_dirs"
15153 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15154
c6b750e1 15155
81ecdfbb 15156} # as_fn_mkdir_p
c6b750e1 15157if mkdir -p . 2>/dev/null; then
81ecdfbb 15158 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15159else
15160 test -d ./-p && rmdir ./-p
15161 as_mkdir_p=false
15162fi
15163
81ecdfbb
RW
15164if test -x / >/dev/null 2>&1; then
15165 as_test_x='test -x'
15166else
15167 if ls -dL / >/dev/null 2>&1; then
15168 as_ls_L_option=L
15169 else
15170 as_ls_L_option=
15171 fi
15172 as_test_x='
15173 eval sh -c '\''
15174 if test -d "$1"; then
15175 test -d "$1/.";
15176 else
15177 case $1 in #(
15178 -*)set "./$1";;
15179 esac;
15180 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15181 ???[sx]*):;;*)false;;esac;fi
15182 '\'' sh
15183 '
15184fi
15185as_executable_p=$as_test_x
c6b750e1
DJ
15186
15187# Sed expression to map a string onto a valid CPP name.
15188as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15189
15190# Sed expression to map a string onto a valid variable name.
15191as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15192
15193
c6b750e1 15194exec 6>&1
81ecdfbb
RW
15195## ----------------------------------- ##
15196## Main body of $CONFIG_STATUS script. ##
15197## ----------------------------------- ##
15198_ASEOF
15199test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15200
15201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15202# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15203# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15204# values after options handling.
15205ac_log="
c6b750e1 15206This file was extended by $as_me, which was
81ecdfbb 15207generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
15208
15209 CONFIG_FILES = $CONFIG_FILES
15210 CONFIG_HEADERS = $CONFIG_HEADERS
15211 CONFIG_LINKS = $CONFIG_LINKS
15212 CONFIG_COMMANDS = $CONFIG_COMMANDS
15213 $ $0 $@
15214
81ecdfbb
RW
15215on `(hostname || uname -n) 2>/dev/null | sed 1q`
15216"
15217
c6b750e1
DJ
15218_ACEOF
15219
81ecdfbb
RW
15220case $ac_config_files in *"
15221"*) set x $ac_config_files; shift; ac_config_files=$*;;
15222esac
c6b750e1 15223
c6b750e1 15224
c6b750e1 15225
81ecdfbb
RW
15226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227# Files that config.status was made for.
15228config_files="$ac_config_files"
c6b750e1 15229
81ecdfbb 15230_ACEOF
c6b750e1 15231
81ecdfbb 15232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15233ac_cs_usage="\
81ecdfbb
RW
15234\`$as_me' instantiates files and other configuration actions
15235from templates according to the current configuration. Unless the files
15236and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15237
81ecdfbb 15238Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15239
15240 -h, --help print this help, then exit
81ecdfbb
RW
15241 -V, --version print version number and configuration settings, then exit
15242 -q, --quiet, --silent
15243 do not print progress messages
c6b750e1
DJ
15244 -d, --debug don't remove temporary files
15245 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15246 --file=FILE[:TEMPLATE]
15247 instantiate the configuration file FILE
c6b750e1
DJ
15248
15249Configuration files:
15250$config_files
15251
81ecdfbb 15252Report bugs to the package provider."
c6b750e1 15253
81ecdfbb
RW
15254_ACEOF
15255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
15256ac_cs_version="\\
15257config.status
81ecdfbb
RW
15258configured by $0, generated by GNU Autoconf 2.64,
15259 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 15260
81ecdfbb 15261Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
15262This config.status script is free software; the Free Software Foundation
15263gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15264
15265ac_pwd='$ac_pwd'
15266srcdir='$srcdir'
15267INSTALL='$INSTALL'
8e957354 15268AWK='$AWK'
81ecdfbb 15269test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15270_ACEOF
15271
81ecdfbb
RW
15272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15273# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15274ac_need_defaults=:
15275while test $# != 0
a0da8069 15276do
c6b750e1
DJ
15277 case $1 in
15278 --*=*)
81ecdfbb
RW
15279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15280 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15281 ac_shift=:
15282 ;;
81ecdfbb 15283 *)
c6b750e1
DJ
15284 ac_option=$1
15285 ac_optarg=$2
15286 ac_shift=shift
15287 ;;
c6b750e1
DJ
15288 esac
15289
15290 case $ac_option in
15291 # Handling of the options.
a0da8069 15292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15293 ac_cs_recheck=: ;;
81ecdfbb
RW
15294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15295 $as_echo "$ac_cs_version"; exit ;;
15296 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15297 debug=: ;;
15298 --file | --fil | --fi | --f )
15299 $ac_shift
81ecdfbb
RW
15300 case $ac_optarg in
15301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15302 esac
15303 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15304 ac_need_defaults=false;;
81ecdfbb
RW
15305 --he | --h | --help | --hel | -h )
15306 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15308 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15309 ac_cs_silent=: ;;
15310
15311 # This is an error.
81ecdfbb
RW
15312 -*) as_fn_error "unrecognized option: \`$1'
15313Try \`$0 --help' for more information." ;;
c6b750e1 15314
81ecdfbb
RW
15315 *) as_fn_append ac_config_targets " $1"
15316 ac_need_defaults=false ;;
c6b750e1 15317
376a0e54 15318 esac
c6b750e1 15319 shift
376a0e54
CM
15320done
15321
c6b750e1 15322ac_configure_extra_args=
376a0e54 15323
c6b750e1
DJ
15324if $ac_cs_silent; then
15325 exec 6>/dev/null
15326 ac_configure_extra_args="$ac_configure_extra_args --silent"
15327fi
376a0e54 15328
c6b750e1 15329_ACEOF
81ecdfbb 15330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15331if \$ac_cs_recheck; then
81ecdfbb
RW
15332 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15333 shift
15334 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15335 CONFIG_SHELL='$SHELL'
15336 export CONFIG_SHELL
15337 exec "\$@"
c6b750e1
DJ
15338fi
15339
15340_ACEOF
81ecdfbb
RW
15341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15342exec 5>>config.log
15343{
15344 echo
15345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15346## Running $as_me. ##
15347_ASBOX
15348 $as_echo "$ac_log"
15349} >&5
c6b750e1 15350
81ecdfbb
RW
15351_ACEOF
15352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15353#
15354# INIT-COMMANDS
15355#
15356extrasub_build="$extrasub_build"
15357 extrasub_host="$extrasub_host"
15358 extrasub_target="$extrasub_target"
15359
81ecdfbb 15360_ACEOF
c6b750e1 15361
81ecdfbb 15362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15363
81ecdfbb 15364# Handling of arguments.
c6b750e1
DJ
15365for ac_config_target in $ac_config_targets
15366do
81ecdfbb
RW
15367 case $ac_config_target in
15368 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15369
15370 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15371 esac
15372done
15373
81ecdfbb 15374
c6b750e1
DJ
15375# If the user did not use the arguments to specify the items to instantiate,
15376# then the envvar interface is used. Set only those that are not.
15377# We use the long form for the default assignment because of an extremely
15378# bizarre bug on SunOS 4.1.3.
15379if $ac_need_defaults; then
15380 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15381fi
15382
15383# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15384# simply because there is no reason against having it here, and in addition,
c6b750e1 15385# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15386# Hook for its removal unless debugging.
15387# Note that there is a small window in which the directory will not be cleaned:
15388# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15389$debug ||
15390{
81ecdfbb
RW
15391 tmp=
15392 trap 'exit_status=$?
15393 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15394' 0
15395 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15396}
c6b750e1
DJ
15397# Create a (secure) tmp directory for tmp files.
15398
15399{
81ecdfbb 15400 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15401 test -n "$tmp" && test -d "$tmp"
15402} ||
15403{
81ecdfbb
RW
15404 tmp=./conf$$-$RANDOM
15405 (umask 077 && mkdir "$tmp")
15406} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15407
15408# Set up the scripts for CONFIG_FILES section.
15409# No need to generate them if there are no CONFIG_FILES.
15410# This happens for instance with `./config.status config.h'.
15411if test -n "$CONFIG_FILES"; then
15412
15413if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15414 ac_cs_awk_getline=:
15415 ac_cs_awk_pipe_init=
15416 ac_cs_awk_read_file='
15417 while ((getline aline < (F[key])) > 0)
15418 print(aline)
15419 close(F[key])'
15420 ac_cs_awk_pipe_fini=
15421else
15422 ac_cs_awk_getline=false
15423 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15424 ac_cs_awk_read_file='
15425 print "|#_!!_#|"
15426 print "cat " F[key] " &&"
15427 '$ac_cs_awk_pipe_init
15428 # The final `:' finishes the AND list.
15429 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15430fi
15431ac_cr=`echo X | tr X '\015'`
15432# On cygwin, bash can eat \r inside `` if the user requested igncr.
15433# But we know of no other shell where ac_cr would be empty at this
15434# point, so we can use a bashism as a fallback.
15435if test "x$ac_cr" = x; then
15436 eval ac_cr=\$\'\\r\'
15437fi
15438ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15439if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15440 ac_cs_awk_cr='\r'
15441else
15442 ac_cs_awk_cr=$ac_cr
15443fi
15444
15445echo 'BEGIN {' >"$tmp/subs1.awk" &&
15446_ACEOF
15447
15448# Create commands to substitute file output variables.
c6b750e1 15449{
81ecdfbb
RW
15450 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15451 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15452 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15453 echo "_ACAWK" &&
15454 echo "_ACEOF"
15455} >conf$$files.sh &&
15456. ./conf$$files.sh ||
15457 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15458rm -f conf$$files.sh
c6b750e1 15459
81ecdfbb
RW
15460{
15461 echo "cat >conf$$subs.awk <<_ACEOF" &&
15462 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15463 echo "_ACEOF"
15464} >conf$$subs.sh ||
15465 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15466ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15467ac_delim='%!_!# '
15468for ac_last_try in false false false false false :; do
15469 . ./conf$$subs.sh ||
15470 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15471
15472 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15473 if test $ac_delim_n = $ac_delim_num; then
15474 break
15475 elif $ac_last_try; then
15476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15477 else
15478 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15479 fi
15480done
15481rm -f conf$$subs.sh
15482
15483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15484cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15485_ACEOF
81ecdfbb
RW
15486sed -n '
15487h
15488s/^/S["/; s/!.*/"]=/
15489p
15490g
15491s/^[^!]*!//
15492:repl
15493t repl
15494s/'"$ac_delim"'$//
15495t delim
15496:nl
15497h
15498s/\(.\{148\}\).*/\1/
15499t more1
15500s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15501p
15502n
15503b repl
15504:more1
15505s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15506p
15507g
15508s/.\{148\}//
15509t nl
15510:delim
15511h
15512s/\(.\{148\}\).*/\1/
15513t more2
15514s/["\\]/\\&/g; s/^/"/; s/$/"/
15515p
15516b
15517:more2
15518s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15519p
15520g
15521s/.\{148\}//
15522t delim
15523' <conf$$subs.awk | sed '
15524/^[^""]/{
15525 N
15526 s/\n//
15527}
15528' >>$CONFIG_STATUS || ac_write_fail=1
15529rm -f conf$$subs.awk
15530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15531_ACAWK
15532cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15533 for (key in S) S_is_set[key] = 1
15534 FS = "\a"
15535 \$ac_cs_awk_pipe_init
15536}
15537{
15538 line = $ 0
15539 nfields = split(line, field, "@")
15540 substed = 0
15541 len = length(field[1])
15542 for (i = 2; i < nfields; i++) {
15543 key = field[i]
15544 keylen = length(key)
15545 if (S_is_set[key]) {
15546 value = S[key]
15547 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15548 len += length(value) + length(field[++i])
15549 substed = 1
15550 } else
15551 len += 1 + keylen
15552 }
15553 if (nfields == 3 && !substed) {
15554 key = field[2]
15555 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15556 \$ac_cs_awk_read_file
15557 next
15558 }
15559 }
15560 print line
15561}
15562\$ac_cs_awk_pipe_fini
15563_ACAWK
15564_ACEOF
15565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15566if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15567 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15568else
15569 cat
15570fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15571 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15572_ACEOF
15573
15574# VPATH may cause trouble with some makes, so we remove $(srcdir),
15575# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15576# trailing colons and then remove the whole line if VPATH becomes empty
15577# (actually we leave an empty line to preserve line numbers).
15578if test "x$srcdir" = x.; then
15579 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15580s/:*\$(srcdir):*/:/
15581s/:*\${srcdir}:*/:/
15582s/:*@srcdir@:*/:/
15583s/^\([^=]*=[ ]*\):*/\1/
15584s/:*$//
15585s/^[^=]*=[ ]*$//
15586}'
15587fi
c6b750e1 15588
81ecdfbb
RW
15589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15590fi # test -n "$CONFIG_FILES"
c6b750e1 15591
c6b750e1 15592
81ecdfbb
RW
15593eval set X " :F $CONFIG_FILES "
15594shift
15595for ac_tag
15596do
15597 case $ac_tag in
15598 :[FHLC]) ac_mode=$ac_tag; continue;;
15599 esac
15600 case $ac_mode$ac_tag in
15601 :[FHL]*:*);;
15602 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15603 :[FH]-) ac_tag=-:-;;
15604 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15605 esac
15606 ac_save_IFS=$IFS
15607 IFS=:
15608 set x $ac_tag
15609 IFS=$ac_save_IFS
15610 shift
15611 ac_file=$1
15612 shift
252b5132 15613
81ecdfbb
RW
15614 case $ac_mode in
15615 :L) ac_source=$1;;
15616 :[FH])
15617 ac_file_inputs=
15618 for ac_f
15619 do
15620 case $ac_f in
15621 -) ac_f="$tmp/stdin";;
15622 *) # Look for the file first in the build tree, then in the source tree
15623 # (if the path is not absolute). The absolute path cannot be DOS-style,
15624 # because $ac_f cannot contain `:'.
15625 test -f "$ac_f" ||
15626 case $ac_f in
15627 [\\/$]*) false;;
15628 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15629 esac ||
15630 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15631 esac
15632 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15633 as_fn_append ac_file_inputs " '$ac_f'"
15634 done
c6b750e1 15635
81ecdfbb
RW
15636 # Let's still pretend it is `configure' which instantiates (i.e., don't
15637 # use $as_me), people would be surprised to read:
15638 # /* config.h. Generated by config.status. */
15639 configure_input='Generated from '`
15640 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15641 `' by configure.'
15642 if test x"$ac_file" != x-; then
15643 configure_input="$ac_file. $configure_input"
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15645$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15646 fi
81ecdfbb
RW
15647 # Neutralize special characters interpreted by sed in replacement strings.
15648 case $configure_input in #(
15649 *\&* | *\|* | *\\* )
15650 ac_sed_conf_input=`$as_echo "$configure_input" |
15651 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15652 *) ac_sed_conf_input=$configure_input;;
15653 esac
cac3d6c4 15654
81ecdfbb
RW
15655 case $ac_tag in
15656 *:-:* | *:-) cat >"$tmp/stdin" \
15657 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15658 esac
15659 ;;
a0da8069 15660 esac
252b5132 15661
81ecdfbb 15662 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15663$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15664 X"$ac_file" : 'X\(//\)[^/]' \| \
15665 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15666 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15667$as_echo X"$ac_file" |
15668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15669 s//\1/
15670 q
15671 }
15672 /^X\(\/\/\)[^/].*/{
15673 s//\1/
15674 q
15675 }
15676 /^X\(\/\/\)$/{
15677 s//\1/
15678 q
15679 }
15680 /^X\(\/\).*/{
15681 s//\1/
15682 q
15683 }
15684 s/.*/./; q'`
15685 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15686 ac_builddir=.
252b5132 15687
81ecdfbb
RW
15688case "$ac_dir" in
15689.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15690*)
15691 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15692 # A ".." for each directory in $ac_dir_suffix.
15693 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15694 case $ac_top_builddir_sub in
15695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15697 esac ;;
15698esac
15699ac_abs_top_builddir=$ac_pwd
15700ac_abs_builddir=$ac_pwd$ac_dir_suffix
15701# for backward compatibility:
15702ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15703
15704case $srcdir in
81ecdfbb 15705 .) # We are building in place.
c6b750e1 15706 ac_srcdir=.
81ecdfbb
RW
15707 ac_top_srcdir=$ac_top_builddir_sub
15708 ac_abs_top_srcdir=$ac_pwd ;;
15709 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15710 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15711 ac_top_srcdir=$srcdir
15712 ac_abs_top_srcdir=$srcdir ;;
15713 *) # Relative name.
15714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15715 ac_top_srcdir=$ac_top_build_prefix$srcdir
15716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15717esac
81ecdfbb 15718ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15719
252b5132 15720
81ecdfbb
RW
15721 case $ac_mode in
15722 :F)
15723 #
15724 # CONFIG_FILE
15725 #
c6b750e1
DJ
15726
15727 case $INSTALL in
15728 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15729 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15730 esac
81ecdfbb 15731_ACEOF
252b5132 15732
81ecdfbb
RW
15733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15734# If the template does not know about datarootdir, expand it.
15735# FIXME: This hack should be removed a few years after 2.60.
15736ac_datarootdir_hack=; ac_datarootdir_seen=
15737ac_sed_dataroot='
15738/datarootdir/ {
15739 p
15740 q
15741}
15742/@datadir@/p
15743/@docdir@/p
15744/@infodir@/p
15745/@localedir@/p
15746/@mandir@/p'
15747case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15748*datarootdir*) ac_datarootdir_seen=yes;;
15749*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15751$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15752_ACEOF
81ecdfbb
RW
15753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15754 ac_datarootdir_hack='
15755 s&@datadir@&$datadir&g
15756 s&@docdir@&$docdir&g
15757 s&@infodir@&$infodir&g
15758 s&@localedir@&$localedir&g
15759 s&@mandir@&$mandir&g
15760 s&\\\${datarootdir}&$datarootdir&g' ;;
15761esac
15762_ACEOF
15763
15764# Neutralize VPATH when `$srcdir' = `.'.
15765# Shell code in configure.ac might set extrasub.
15766# FIXME: do we really want to maintain this feature?
15767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15769$extrasub
15770_ACEOF
81ecdfbb 15771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15772:t
15773/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15774s|@configure_input@|$ac_sed_conf_input|;t t
15775s&@top_builddir@&$ac_top_builddir_sub&;t t
15776s&@top_build_prefix@&$ac_top_build_prefix&;t t
15777s&@srcdir@&$ac_srcdir&;t t
15778s&@abs_srcdir@&$ac_abs_srcdir&;t t
15779s&@top_srcdir@&$ac_top_srcdir&;t t
15780s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15781s&@builddir@&$ac_builddir&;t t
15782s&@abs_builddir@&$ac_abs_builddir&;t t
15783s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15784s&@INSTALL@&$ac_INSTALL&;t t
15785$ac_datarootdir_hack
15786"
15787eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15788if $ac_cs_awk_getline; then
15789 $AWK -f "$tmp/subs.awk"
15790else
15791 $AWK -f "$tmp/subs.awk" | $SHELL
15792fi >$tmp/out \
15793 || as_fn_error "could not create $ac_file" "$LINENO" 5
15794
15795test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15796 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15797 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15799which seems to be undefined. Please make sure it is defined." >&5
15800$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15801which seems to be undefined. Please make sure it is defined." >&2;}
15802
15803 rm -f "$tmp/stdin"
15804 case $ac_file in
15805 -) cat "$tmp/out" && rm -f "$tmp/out";;
15806 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15807 esac \
15808 || as_fn_error "could not create $ac_file" "$LINENO" 5
15809 ;;
c148b4cb 15810
c148b4cb 15811
c148b4cb 15812
81ecdfbb
RW
15813 esac
15814
06a51eac
RW
15815
15816 case $ac_file$ac_mode in
15817 "Makefile":F) sed "$extrasub_build" Makefile |
15818 sed "$extrasub_host" |
15819 sed "$extrasub_target" > mf$$
15820 mv -f mf$$ Makefile ;;
15821
15822 esac
81ecdfbb
RW
15823done # for ac_tag
15824
15825
15826as_fn_exit 0
c6b750e1 15827_ACEOF
c6b750e1
DJ
15828ac_clean_files=$ac_clean_files_save
15829
81ecdfbb
RW
15830test $ac_write_fail = 0 ||
15831 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15832
c6b750e1
DJ
15833
15834# configure is writing to config.log, and then calls config.status.
15835# config.status does its own redirection, appending to config.log.
15836# Unfortunately, on DOS this fails, as config.log is still kept open
15837# by configure, so config.status won't be able to write to it; its
15838# output is simply discarded. So we exec the FD to /dev/null,
15839# effectively closing config.log, so it can be properly (re)opened and
15840# appended to by config.status. When coming back to configure, we
15841# need to make the FD available again.
15842if test "$no_create" != yes; then
15843 ac_cs_success=:
15844 ac_config_status_args=
15845 test "$silent" = yes &&
15846 ac_config_status_args="$ac_config_status_args --quiet"
15847 exec 5>/dev/null
15848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15849 exec 5>>config.log
15850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15851 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15852 $ac_cs_success || as_fn_exit $?
15853fi
15854if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15856$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15857fi
c148b4cb 15858
This page took 1.683986 seconds and 4 git commands to generate.