*** empty log message ***
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
c6b750e1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
c6b750e1 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
581GFORTRAN_FOR_TARGET
582GCJ_FOR_TARGET
583GCC_FOR_TARGET
584CXX_FOR_TARGET
585CC_FOR_TARGET
586OBJDUMP
587OBJCOPY
588WINDMC
589WINDRES
590STRIP
591RANLIB
592NM
593LIPO
594LD
595DLLTOOL
596AS
597AR
598RUNTEST
599EXPECT
600MAKEINFO
601FLEX
602LEX
603M4
604BISON
605YACC
606config_shell
607WINDRES_FOR_BUILD
608WINDMC_FOR_BUILD
609RANLIB_FOR_BUILD
610NM_FOR_BUILD
611LD_FOR_BUILD
612LDFLAGS_FOR_BUILD
613GFORTRAN_FOR_BUILD
614GCJ_FOR_BUILD
615DLLTOOL_FOR_BUILD
616CXX_FOR_BUILD
617CXXFLAGS_FOR_BUILD
618CFLAGS_FOR_BUILD
619CC_FOR_BUILD
620AS_FOR_BUILD
621AR_FOR_BUILD
622target_configargs
623configdirs
624host_configargs
625build_configdirs
626build_configargs
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
634CXXFLAGS_FOR_TARGET
635CFLAGS_FOR_TARGET
636DEBUG_PREFIX_CFLAGS_FOR_TARGET
637SYSROOT_CFLAGS_FOR_TARGET
638stage1_languages
639clooginc
640clooglibs
641pplinc
642ppllibs
643poststage1_libs
644poststage1_ldflags
645stage1_libs
646stage1_ldflags
647extra_mpc_mpfr_configure_flags
648extra_mpc_gmp_configure_flags
649extra_mpfr_configure_flags
650gmpinc
651gmplibs
652do_compare
653GNATMAKE
654GNATBIND
655ac_ct_CXX
656CXXFLAGS
657CXX
658OBJEXT
659EXEEXT
660ac_ct_CC
661CPPFLAGS
662LDFLAGS
663CFLAGS
664CC
665target_subdir
666host_subdir
667build_subdir
668build_libsubdir
8e957354
PB
669AWK
670SED
81ecdfbb
RW
671LN_S
672LN
673INSTALL_DATA
674INSTALL_SCRIPT
675INSTALL_PROGRAM
676target_os
677target_vendor
678target_cpu
679target
680host_os
681host_vendor
682host_cpu
683host
684target_noncanonical
685host_noncanonical
686build_noncanonical
687build_os
688build_vendor
689build_cpu
690build
691TOPLEVEL_CONFIGURE_ARGUMENTS
692target_alias
693host_alias
694build_alias
695LIBS
696ECHO_T
697ECHO_N
698ECHO_C
699DEFS
700mandir
701localedir
702libdir
703psdir
704pdfdir
705dvidir
706htmldir
707infodir
708docdir
709oldincludedir
710includedir
711localstatedir
712sharedstatedir
713sysconfdir
714datadir
715datarootdir
716libexecdir
717sbindir
718bindir
719program_transform_name
720prefix
721exec_prefix
722PACKAGE_URL
723PACKAGE_BUGREPORT
724PACKAGE_STRING
725PACKAGE_VERSION
726PACKAGE_TARNAME
727PACKAGE_NAME
728PATH_SEPARATOR
729SHELL'
730ac_subst_files='serialization_dependencies
731host_makefile_frag
732target_makefile_frag
733alphaieee_frag
734ospace_frag'
735ac_user_opts='
736enable_option_checking
737with_build_libsubdir
738enable_gold
739enable_libada
740enable_libssp
741enable_build_with_cxx
742with_mpc
743with_mpc_include
744with_mpc_lib
745with_mpfr_dir
746with_mpfr
747with_mpfr_include
748with_mpfr_lib
749with_gmp_dir
750with_gmp
751with_gmp_include
752with_gmp_lib
753with_host_libstdcxx
754with_stage1_ldflags
755with_stage1_libs
756with_boot_ldflags
757with_boot_libs
758with_ppl
759with_ppl_include
760with_ppl_lib
761enable_ppl_version_check
762with_cloog
763with_cloog_include
764with_cloog_lib
765enable_cloog_version_check
766enable_stage1_languages
767enable_objc_gc
768with_build_sysroot
769with_debug_prefix_map
770enable_bootstrap
771enable_serial_configure
772with_build_time_tools
773enable_maintainer_mode
774enable_stage1_checking
775enable_werror
81ecdfbb
RW
776'
777 ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785CXX
786CXXFLAGS
787CCC
788AR
789AS
790DLLTOOL
791LD
792LIPO
793NM
794RANLIB
795STRIP
796WINDRES
797WINDMC
798OBJCOPY
799OBJDUMP
800CC_FOR_TARGET
801CXX_FOR_TARGET
802GCC_FOR_TARGET
803GCJ_FOR_TARGET
804GFORTRAN_FOR_TARGET
805AR_FOR_TARGET
806AS_FOR_TARGET
807DLLTOOL_FOR_TARGET
808LD_FOR_TARGET
809LIPO_FOR_TARGET
810NM_FOR_TARGET
811OBJDUMP_FOR_TARGET
812RANLIB_FOR_TARGET
813STRIP_FOR_TARGET
814WINDRES_FOR_TARGET
815WINDMC_FOR_TARGET'
816
a0da8069
NN
817
818# Initialize some variables set by options.
c6b750e1
DJ
819ac_init_help=
820ac_init_version=false
81ecdfbb
RW
821ac_unrecognized_opts=
822ac_unrecognized_sep=
a0da8069
NN
823# The variables have the same names as the options, with
824# dashes changed to underlines.
c6b750e1 825cache_file=/dev/null
a0da8069 826exec_prefix=NONE
a0da8069 827no_create=
a0da8069
NN
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
a0da8069
NN
836verbose=
837x_includes=NONE
838x_libraries=NONE
c6b750e1
DJ
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 845# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
a0da8069
NN
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
a0da8069
NN
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
81ecdfbb
RW
856docdir='${datarootdir}/doc/${PACKAGE}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
252b5132 865
a0da8069 866ac_prev=
81ecdfbb 867ac_dashdash=
a0da8069
NN
868for ac_option
869do
a0da8069
NN
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
81ecdfbb 872 eval $ac_prev=\$ac_option
a0da8069
NN
873 ac_prev=
874 continue
875 fi
252b5132 876
81ecdfbb
RW
877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
a0da8069
NN
881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
81ecdfbb
RW
884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
a0da8069
NN
887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 891 bindir=$ac_optarg ;;
a0da8069
NN
892
893 -build | --build | --buil | --bui | --bu)
c6b750e1 894 ac_prev=build_alias ;;
a0da8069 895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 896 build_alias=$ac_optarg ;;
a0da8069
NN
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
a0da8069 907
81ecdfbb 908 -datadir | --datadir | --datadi | --datad)
a0da8069 909 ac_prev=datadir ;;
81ecdfbb 910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 911 datadir=$ac_optarg ;;
a0da8069 912
81ecdfbb
RW
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
a0da8069 920 -disable-* | --disable-*)
81ecdfbb 921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 922 # Reject names that are not valid shell variable names.
81ecdfbb
RW
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929"enable_$ac_useropt"
930"*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=no ;;
935
936 -docdir | --docdir | --docdi | --doc | --do)
937 ac_prev=docdir ;;
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 docdir=$ac_optarg ;;
940
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 ac_prev=dvidir ;;
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 dvidir=$ac_optarg ;;
a0da8069
NN
945
946 -enable-* | --enable-*)
81ecdfbb 947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 948 # Reject names that are not valid shell variable names.
81ecdfbb
RW
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955"enable_$ac_useropt"
956"*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
a0da8069 959 esac
81ecdfbb 960 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
961
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
c6b750e1 969 exec_prefix=$ac_optarg ;;
a0da8069
NN
970
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
973 with_gas=yes ;;
974
c6b750e1
DJ
975 -help | --help | --hel | --he | -h)
976 ac_init_help=long ;;
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
a0da8069
NN
981
982 -host | --host | --hos | --ho)
c6b750e1 983 ac_prev=host_alias ;;
a0da8069 984 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 985 host_alias=$ac_optarg ;;
a0da8069 986
81ecdfbb
RW
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 ac_prev=htmldir ;;
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 | --ht=*)
991 htmldir=$ac_optarg ;;
992
a0da8069
NN
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 998 includedir=$ac_optarg ;;
a0da8069
NN
999
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 ac_prev=infodir ;;
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1003 infodir=$ac_optarg ;;
a0da8069
NN
1004
1005 -libdir | --libdir | --libdi | --libd)
1006 ac_prev=libdir ;;
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1008 libdir=$ac_optarg ;;
a0da8069
NN
1009
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1015 libexecdir=$ac_optarg ;;
a0da8069 1016
81ecdfbb
RW
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1021
a0da8069 1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1023 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1027 localstatedir=$ac_optarg ;;
a0da8069
NN
1028
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 ac_prev=mandir ;;
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1032 mandir=$ac_optarg ;;
a0da8069
NN
1033
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1036 with_fp=no ;;
1037
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1039 | --no-cr | --no-c | -n)
a0da8069
NN
1040 no_create=yes ;;
1041
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 no_recursion=yes ;;
1045
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1053 oldincludedir=$ac_optarg ;;
a0da8069
NN
1054
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 ac_prev=prefix ;;
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1058 prefix=$ac_optarg ;;
a0da8069
NN
1059
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1065 program_prefix=$ac_optarg ;;
a0da8069
NN
1066
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1072 program_suffix=$ac_optarg ;;
a0da8069
NN
1073
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1089 program_transform_name=$ac_optarg ;;
a0da8069 1090
81ecdfbb
RW
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 ac_prev=pdfdir ;;
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1095
1096 -psdir | --psdir | --psdi | --psd | --ps)
1097 ac_prev=psdir ;;
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 psdir=$ac_optarg ;;
1100
a0da8069
NN
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1103 silent=yes ;;
1104
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 ac_prev=sbindir ;;
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 | --sbi=* | --sb=*)
c6b750e1 1109 sbindir=$ac_optarg ;;
a0da8069
NN
1110
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1114 | --sha | --sh)
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 | --sha=* | --sh=*)
c6b750e1 1120 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1121
1122 -site | --site | --sit)
1123 ac_prev=site ;;
1124 -site=* | --site=* | --sit=*)
c6b750e1 1125 site=$ac_optarg ;;
a0da8069
NN
1126
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 ac_prev=srcdir ;;
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1130 srcdir=$ac_optarg ;;
a0da8069
NN
1131
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1137 sysconfdir=$ac_optarg ;;
a0da8069
NN
1138
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1140 ac_prev=target_alias ;;
a0da8069 1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1142 target_alias=$ac_optarg ;;
a0da8069
NN
1143
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 verbose=yes ;;
1146
c6b750e1
DJ
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
a0da8069
NN
1149
1150 -with-* | --with-*)
81ecdfbb 1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1152 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159"with_$ac_useropt"
1160"*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
a0da8069 1163 esac
81ecdfbb 1164 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1165
1166 -without-* | --without-*)
81ecdfbb 1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1168 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175"with_$ac_useropt"
1176"*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=no ;;
a0da8069
NN
1181
1182 --x)
1183 # Obsolete; use --with-x.
1184 with_x=yes ;;
1185
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1191 x_includes=$ac_optarg ;;
a0da8069
NN
1192
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1198 x_libraries=$ac_optarg ;;
a0da8069 1199
81ecdfbb
RW
1200 -*) as_fn_error "unrecognized option: \`$ac_option'
1201Try \`$0 --help' for more information."
a0da8069
NN
1202 ;;
1203
c6b750e1
DJ
1204 *=*)
1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1207 case $ac_envvar in #(
1208 '' | [0-9]* | *[!_$as_cr_alnum]* )
1209 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1210 esac
1211 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1212 export $ac_envvar ;;
1213
a0da8069 1214 *)
c6b750e1 1215 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1219 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1220 ;;
1221
1222 esac
1223done
1224
1225if test -n "$ac_prev"; then
c6b750e1 1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1227 as_fn_error "missing argument to $ac_option"
a0da8069 1228fi
a0da8069 1229
81ecdfbb
RW
1230if test -n "$ac_unrecognized_opts"; then
1231 case $enable_option_checking in
1232 no) ;;
1233 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1235 esac
81ecdfbb 1236fi
a0da8069 1237
81ecdfbb
RW
1238# Check all directory arguments for consistency.
1239for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir
a0da8069 1243do
81ecdfbb
RW
1244 eval ac_val=\$$ac_var
1245 # Remove trailing slashes.
1246 case $ac_val in
1247 */ )
1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249 eval $ac_var=\$ac_val;;
1250 esac
1251 # Be sure to have absolute directory names.
c6b750e1 1252 case $ac_val in
81ecdfbb
RW
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1255 esac
81ecdfbb 1256 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1257done
1258
c6b750e1
DJ
1259# There might be people who depend on the old broken behavior: `$host'
1260# used to hold the argument of --host etc.
1261# FIXME: To remove some day.
1262build=$build_alias
1263host=$host_alias
1264target=$target_alias
376a0e54 1265
c6b750e1
DJ
1266# FIXME: To remove some day.
1267if test "x$host_alias" != x; then
1268 if test "x$build_alias" = x; then
1269 cross_compiling=maybe
81ecdfbb 1270 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1271 If a cross compiler is detected then cross compile mode will be used." >&2
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1274 fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
a0da8069 1281
a0da8069 1282
81ecdfbb
RW
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error "pwd does not report name of working directory"
1289
1290
a0da8069
NN
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
81ecdfbb
RW
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300$as_echo X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\).*/{
1314 s//\1/
1315 q
1316 }
1317 s/.*/./; q'`
a0da8069 1318 srcdir=$ac_confdir
81ecdfbb 1319 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1320 srcdir=..
1321 fi
1322else
1323 ac_srcdir_defaulted=no
1324fi
81ecdfbb
RW
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1332 pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
9cc8ae67
PB
1343ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1344
81ecdfbb
RW
1345for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
c6b750e1
DJ
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359\`configure' configures this package to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
c6b750e1
DJ
1379Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1381 [$ac_default_prefix]
c6b750e1 1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1383 [PREFIX]
c6b750e1
DJ
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
81ecdfbb
RW
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1412_ACEOF
1413
1414 cat <<\_ACEOF
1415
1416Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 --target=TARGET configure for building compilers for TARGET [HOST]
1425_ACEOF
a0da8069 1426fi
a0da8069 1427
c6b750e1
DJ
1428if test -n "$ac_init_help"; then
1429
1430 cat <<\_ACEOF
1431
1432Optional Features:
81ecdfbb 1433 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
93f9b408 1436 --enable-gold use gold instead of ld
521ec477
DD
1437 --enable-libada build libada directory
1438 --enable-libssp build libssp directory
e8a5fa9c 1439 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f
JM
1440 --disable-ppl-version-check disable check for PPL version
1441 --disable-cloog-version-check disable check for CLooG version
521ec477 1442 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 1443 stage1. Mostly useful for compiler development.
521ec477
DD
1444 --enable-objc-gc enable use of Boehm's garbage collector with the
1445 GNU Objective-C runtime
1446 --enable-bootstrap enable bootstrapping [yes if native build]
1447 --enable-serial-[{host,target,build}-]configure
1448 force sequential configuration of
c6b750e1 1449 sub-packages for the host, target or build
521ec477 1450 machine, or all sub-packages
c6b750e1
DJ
1451 --enable-maintainer-mode enable make rules and dependencies not useful
1452 (and sometimes confusing) to the casual installer
521ec477
DD
1453 --enable-stage1-checking[=all] choose additional checking for stage1
1454 of the compiler
c6b750e1
DJ
1455 --enable-werror enable -Werror in bootstrap stage2 and later
1456
1457Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8a5fa9c
RW
1461 --with-mpc=PATH specify prefix directory for installed MPC package.
1462 Equivalent to --with-mpc-include=PATH/include
1463 plus --with-mpc-lib=PATH/lib
1464 --with-mpc-include=PATH
1465 specify directory for installed MPC include files
1466 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1467 --with-mpfr-dir=PATH this option has been REMOVED
1468 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
1469 Equivalent to --with-mpfr-include=PATH/include
1470 plus --with-mpfr-lib=PATH/lib
1471 --with-mpfr-include=PATH
521ec477
DD
1472 specify directory for installed MPFR include files
1473 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1474 --with-gmp-dir=PATH this option has been REMOVED
1475 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
1476 Equivalent to --with-gmp-include=PATH/include
1477 plus --with-gmp-lib=PATH/lib
521ec477
DD
1478 --with-gmp-include=PATH specify directory for installed GMP include files
1479 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
1480 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1481 when linking with PPL
e8a5fa9c
RW
1482 --with-stage1-ldflags=FLAGS Linker flags for stage1
1483 -with-stage1-libs=LIBS Libraries for stage1
1484 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1485 --with-boot-libs=LIBS Libraries for stage2 and later
e28c595f
JM
1486 --with-ppl=PATH Specify prefix directory for the installed PPL package
1487 Equivalent to --with-ppl-include=PATH/include
1488 plus --with-ppl-lib=PATH/lib
1489 --with-ppl-include=PATH Specify directory for installed PPL include files
1490 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1491 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1492 Equivalent to --with-cloog-include=PATH/include
1493 plus --with-cloog-lib=PATH/lib
1494 --with-cloog-include=PATH Specify directory for installed CLooG include files
1495 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
521ec477 1496 --with-build-sysroot=SYSROOT
c6b750e1 1497 use sysroot as the system root during the build
8a6ee3ab
JM
1498 --with-debug-prefix-map='A=B C=D ...'
1499 map A to B, C to D ... in debug information
521ec477 1500 --with-build-time-tools=PATH
c6b750e1 1501 use given path to find target tools during the build
c6b750e1
DJ
1502
1503Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
81ecdfbb
RW
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
9a819804
AO
1513 AR AR for the host
1514 AS AS for the host
1515 DLLTOOL DLLTOOL for the host
1516 LD LD for the host
1517 LIPO LIPO for the host
1518 NM NM for the host
1519 RANLIB RANLIB for the host
1520 STRIP STRIP for the host
1521 WINDRES WINDRES for the host
0c24b341 1522 WINDMC WINDMC for the host
9a819804
AO
1523 OBJCOPY OBJCOPY for the host
1524 OBJDUMP OBJDUMP for the host
1525 CC_FOR_TARGET
1526 CC for the target
1527 CXX_FOR_TARGET
1528 CXX for the target
1529 GCC_FOR_TARGET
1530 GCC for the target
1531 GCJ_FOR_TARGET
1532 GCJ for the target
1533 GFORTRAN_FOR_TARGET
1534 GFORTRAN for the target
1535 AR_FOR_TARGET
1536 AR for the target
1537 AS_FOR_TARGET
1538 AS for the target
1539 DLLTOOL_FOR_TARGET
1540 DLLTOOL for the target
1541 LD_FOR_TARGET
1542 LD for the target
1543 LIPO_FOR_TARGET
1544 LIPO for the target
1545 NM_FOR_TARGET
1546 NM for the target
1547 OBJDUMP_FOR_TARGET
1548 OBJDUMP for the target
1549 RANLIB_FOR_TARGET
1550 RANLIB for the target
1551 STRIP_FOR_TARGET
1552 STRIP for the target
1553 WINDRES_FOR_TARGET
1554 WINDRES for the target
0c24b341
NC
1555 WINDMC_FOR_TARGET
1556 WINDMC for the target
c6b750e1
DJ
1557
1558Use these variables to override the choices made by `configure' or to help
1559it to find libraries and programs with nonstandard names/locations.
1560
81ecdfbb 1561Report bugs to the package provider.
c6b750e1 1562_ACEOF
81ecdfbb 1563ac_status=$?
c6b750e1
DJ
1564fi
1565
1566if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
c6b750e1 1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1569 test -d "$ac_dir" ||
1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571 continue
c6b750e1
DJ
1572 ac_builddir=.
1573
81ecdfbb
RW
1574case "$ac_dir" in
1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576*)
1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 esac ;;
1584esac
1585ac_abs_top_builddir=$ac_pwd
1586ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587# for backward compatibility:
1588ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1589
1590case $srcdir in
81ecdfbb 1591 .) # We are building in place.
c6b750e1 1592 ac_srcdir=.
81ecdfbb
RW
1593 ac_top_srcdir=$ac_top_builddir_sub
1594 ac_abs_top_srcdir=$ac_pwd ;;
1595 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1596 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1597 ac_top_srcdir=$srcdir
1598 ac_abs_top_srcdir=$srcdir ;;
1599 *) # Relative name.
1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1603esac
81ecdfbb
RW
1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606 cd "$ac_dir" || { ac_status=$?; continue; }
1607 # Check for guested configure.
1608 if test -f "$ac_srcdir/configure.gnu"; then
1609 echo &&
1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611 elif test -f "$ac_srcdir/configure"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1614 else
81ecdfbb
RW
1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 fi || ac_status=$?
1617 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1618 done
1619fi
1620
81ecdfbb 1621test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1622if $ac_init_version; then
1623 cat <<\_ACEOF
81ecdfbb
RW
1624configure
1625generated by GNU Autoconf 2.64
c6b750e1 1626
81ecdfbb 1627Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1628This configure script is free software; the Free Software Foundation
1629gives unlimited permission to copy, distribute and modify it.
1630_ACEOF
81ecdfbb 1631 exit
c6b750e1 1632fi
81ecdfbb
RW
1633
1634## ------------------------ ##
1635## Autoconf initialization. ##
1636## ------------------------ ##
1637
1638# ac_fn_c_try_compile LINENO
1639# --------------------------
1640# Try to compile conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_compile ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 rm -f conftest.$ac_objext
1645 if { { ac_try="$ac_compile"
1646case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_compile") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && {
1661 test -z "$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 } && test -s conftest.$ac_objext; then :
1664 ac_retval=0
1665else
1666 $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670fi
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 return $ac_retval
1673
1674} # ac_fn_c_try_compile
1675
1676# ac_fn_cxx_try_compile LINENO
1677# ----------------------------
1678# Try to compile conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_cxx_try_compile ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext
1683 if { { ac_try="$ac_compile"
1684case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_compile") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_cxx_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest.$ac_objext; then :
1702 ac_retval=0
1703else
1704 $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708fi
1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 return $ac_retval
1711
1712} # ac_fn_cxx_try_compile
1713
1714# ac_fn_c_try_link LINENO
1715# -----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_link ()
1718{
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext conftest$ac_exeext
1721 if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest$ac_exeext && {
1740 test "$cross_compiling" = yes ||
1741 $as_test_x conftest$ac_exeext
1742 }; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749fi
1750 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1751 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1752 # interfere with the next link command; also delete a directory that is
1753 # left behind by Apple's compiler. We do this before executing the actions.
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 return $ac_retval
1757
1758} # ac_fn_c_try_link
1759cat >config.log <<_ACEOF
c6b750e1
DJ
1760This file contains any messages produced by compilers while
1761running configure, to aid debugging if configure makes a mistake.
1762
1763It was created by $as_me, which was
81ecdfbb 1764generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1765
1766 $ $0 $@
1767
1768_ACEOF
81ecdfbb 1769exec 5>>config.log
c6b750e1
DJ
1770{
1771cat <<_ASUNAME
1772## --------- ##
1773## Platform. ##
1774## --------- ##
1775
1776hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1777uname -m = `(uname -m) 2>/dev/null || echo unknown`
1778uname -r = `(uname -r) 2>/dev/null || echo unknown`
1779uname -s = `(uname -s) 2>/dev/null || echo unknown`
1780uname -v = `(uname -v) 2>/dev/null || echo unknown`
1781
1782/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1783/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1784
1785/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1786/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1787/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1788/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1789/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1790/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1791/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1792
1793_ASUNAME
1794
1795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796for as_dir in $PATH
1797do
1798 IFS=$as_save_IFS
1799 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1800 $as_echo "PATH: $as_dir"
1801 done
1802IFS=$as_save_IFS
c6b750e1
DJ
1803
1804} >&5
1805
1806cat >&5 <<_ACEOF
1807
1808
1809## ----------- ##
1810## Core tests. ##
1811## ----------- ##
1812
1813_ACEOF
1814
1815
1816# Keep a trace of the command line.
1817# Strip out --no-create and --no-recursion so they do not pile up.
1818# Strip out --silent because we don't want to record it for future runs.
1819# Also quote any args containing shell meta-characters.
1820# Make two passes to allow for proper duplicate-argument suppression.
1821ac_configure_args=
1822ac_configure_args0=
1823ac_configure_args1=
c6b750e1
DJ
1824ac_must_keep_next=false
1825for ac_pass in 1 2
1826do
1827 for ac_arg
1828 do
1829 case $ac_arg in
1830 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1832 | -silent | --silent | --silen | --sile | --sil)
1833 continue ;;
81ecdfbb
RW
1834 *\'*)
1835 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1836 esac
1837 case $ac_pass in
81ecdfbb 1838 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1839 2)
81ecdfbb 1840 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1841 if test $ac_must_keep_next = true; then
1842 ac_must_keep_next=false # Got value, back to normal.
1843 else
1844 case $ac_arg in
1845 *=* | --config-cache | -C | -disable-* | --disable-* \
1846 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1847 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1848 | -with-* | --with-* | -without-* | --without-* | --x)
1849 case "$ac_configure_args0 " in
1850 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1851 esac
1852 ;;
1853 -* ) ac_must_keep_next=true ;;
1854 esac
1855 fi
81ecdfbb 1856 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1857 ;;
1858 esac
1859 done
1860done
81ecdfbb
RW
1861{ ac_configure_args0=; unset ac_configure_args0;}
1862{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1863
1864# When interrupted or exit'd, cleanup temporary files, and complete
1865# config.log. We remove comments because anyway the quotes in there
1866# would cause problems or look ugly.
81ecdfbb
RW
1867# WARNING: Use '\'' to represent an apostrophe within the trap.
1868# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1869trap 'exit_status=$?
1870 # Save into config.log some information that might help in debugging.
1871 {
1872 echo
1873
1874 cat <<\_ASBOX
1875## ---------------- ##
1876## Cache variables. ##
1877## ---------------- ##
1878_ASBOX
1879 echo
1880 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1881(
1882 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1883 eval ac_val=\$$ac_var
1884 case $ac_val in #(
1885 *${as_nl}*)
1886 case $ac_var in #(
1887 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1888$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1889 esac
1890 case $ac_var in #(
1891 _ | IFS | as_nl) ;; #(
1892 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1893 *) { eval $ac_var=; unset $ac_var;} ;;
1894 esac ;;
1895 esac
1896 done
c6b750e1 1897 (set) 2>&1 |
81ecdfbb
RW
1898 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1899 *${as_nl}ac_space=\ *)
c6b750e1 1900 sed -n \
81ecdfbb
RW
1901 "s/'\''/'\''\\\\'\'''\''/g;
1902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1903 ;; #(
c6b750e1 1904 *)
81ecdfbb 1905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1906 ;;
81ecdfbb
RW
1907 esac |
1908 sort
1909)
c6b750e1
DJ
1910 echo
1911
1912 cat <<\_ASBOX
1913## ----------------- ##
1914## Output variables. ##
1915## ----------------- ##
1916_ASBOX
1917 echo
1918 for ac_var in $ac_subst_vars
1919 do
81ecdfbb
RW
1920 eval ac_val=\$$ac_var
1921 case $ac_val in
1922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923 esac
1924 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1925 done | sort
1926 echo
1927
1928 if test -n "$ac_subst_files"; then
1929 cat <<\_ASBOX
81ecdfbb
RW
1930## ------------------- ##
1931## File substitutions. ##
1932## ------------------- ##
c6b750e1
DJ
1933_ASBOX
1934 echo
1935 for ac_var in $ac_subst_files
1936 do
81ecdfbb
RW
1937 eval ac_val=\$$ac_var
1938 case $ac_val in
1939 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1940 esac
1941 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1942 done | sort
1943 echo
1944 fi
1945
1946 if test -s confdefs.h; then
1947 cat <<\_ASBOX
1948## ----------- ##
1949## confdefs.h. ##
1950## ----------- ##
1951_ASBOX
1952 echo
81ecdfbb 1953 cat confdefs.h
c6b750e1
DJ
1954 echo
1955 fi
1956 test "$ac_signal" != 0 &&
81ecdfbb
RW
1957 $as_echo "$as_me: caught signal $ac_signal"
1958 $as_echo "$as_me: exit $exit_status"
c6b750e1 1959 } >&5
81ecdfbb
RW
1960 rm -f core *.core core.conftest.* &&
1961 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 1962 exit $exit_status
81ecdfbb 1963' 0
c6b750e1 1964for ac_signal in 1 2 13 15; do
81ecdfbb 1965 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
1966done
1967ac_signal=0
1968
1969# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1970rm -f -r conftest* confdefs.h
1971
1972$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
1973
1974# Predefined preprocessor variables.
1975
1976cat >>confdefs.h <<_ACEOF
1977#define PACKAGE_NAME "$PACKAGE_NAME"
1978_ACEOF
1979
c6b750e1
DJ
1980cat >>confdefs.h <<_ACEOF
1981#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1982_ACEOF
1983
c6b750e1
DJ
1984cat >>confdefs.h <<_ACEOF
1985#define PACKAGE_VERSION "$PACKAGE_VERSION"
1986_ACEOF
1987
c6b750e1
DJ
1988cat >>confdefs.h <<_ACEOF
1989#define PACKAGE_STRING "$PACKAGE_STRING"
1990_ACEOF
1991
c6b750e1
DJ
1992cat >>confdefs.h <<_ACEOF
1993#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1994_ACEOF
1995
81ecdfbb
RW
1996cat >>confdefs.h <<_ACEOF
1997#define PACKAGE_URL "$PACKAGE_URL"
1998_ACEOF
1999
c6b750e1
DJ
2000
2001# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2002# Prefer an explicitly selected file to automatically selected ones.
2003ac_site_file1=NONE
2004ac_site_file2=NONE
2005if test -n "$CONFIG_SITE"; then
2006 ac_site_file1=$CONFIG_SITE
2007elif test "x$prefix" != xNONE; then
2008 ac_site_file1=$prefix/share/config.site
2009 ac_site_file2=$prefix/etc/config.site
2010else
2011 ac_site_file1=$ac_default_prefix/share/config.site
2012 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2013fi
81ecdfbb
RW
2014for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2015do
2016 test "x$ac_site_file" = xNONE && continue
a0da8069 2017 if test -r "$ac_site_file"; then
81ecdfbb
RW
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2019$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2020 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2021 . "$ac_site_file"
2022 fi
2023done
2024
2025if test -r "$cache_file"; then
c6b750e1
DJ
2026 # Some versions of bash will fail to source /dev/null (special
2027 # files actually), so we avoid doing that.
2028 if test -f "$cache_file"; then
81ecdfbb
RW
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2030$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2031 case $cache_file in
81ecdfbb
RW
2032 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2033 *) . "./$cache_file";;
c6b750e1
DJ
2034 esac
2035 fi
a0da8069 2036else
81ecdfbb
RW
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2038$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2039 >$cache_file
2040fi
2041
2042# Check that the precious variables saved in the cache have kept the same
2043# value.
2044ac_cache_corrupted=false
81ecdfbb 2045for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2046 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2047 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2048 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2049 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2050 case $ac_old_set,$ac_new_set in
2051 set,)
81ecdfbb
RW
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2053$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2054 ac_cache_corrupted=: ;;
2055 ,set)
81ecdfbb
RW
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2057$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2058 ac_cache_corrupted=: ;;
2059 ,);;
2060 *)
2061 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2062 # differences in whitespace do not lead to failure.
2063 ac_old_val_w=`echo x $ac_old_val`
2064 ac_new_val_w=`echo x $ac_new_val`
2065 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2067$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2068 ac_cache_corrupted=:
2069 else
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2071$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2072 eval $ac_var=\$ac_old_val
2073 fi
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2075$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2077$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2078 fi;;
2079 esac
2080 # Pass precious variables to config.status.
2081 if test "$ac_new_set" = set; then
2082 case $ac_new_val in
81ecdfbb 2083 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2084 *) ac_arg=$ac_var=$ac_new_val ;;
2085 esac
2086 case " $ac_configure_args " in
2087 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2088 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2089 esac
2090 fi
2091done
2092if $ac_cache_corrupted; then
81ecdfbb
RW
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2096$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2097 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2098fi
81ecdfbb
RW
2099## -------------------- ##
2100## Main body of script. ##
2101## -------------------- ##
a0da8069
NN
2102
2103ac_ext=c
a0da8069 2104ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108
2109
2110
2111
c6b750e1
DJ
2112
2113
34a0f3cf 2114
c6b750e1 2115
5b553f7e
RW
2116
2117progname=$0
2118# if PWD already has a value, it is probably wrong.
2119if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2120
2121# Export original configure arguments for use by sub-configures.
2122# Quote arguments with shell meta charatcers.
2123TOPLEVEL_CONFIGURE_ARGUMENTS=
2124set -- "$progname" "$@"
2125for ac_arg
2126do
2127 case "$ac_arg" in
2128 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2129 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2130 # if the argument is of the form -foo=baz, quote the baz part only
2131 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2132 *) ;;
2133 esac
2134 # Add the quoted argument to the list.
2135 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2136done
2137if test "$silent" = yes; then
2138 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2139fi
2140# Remove the initial space we just introduced and, as these will be
2141# expanded by make, quote '$'.
2142TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2143
c6b750e1
DJ
2144
2145# Find the build, host, and target systems.
a0da8069 2146ac_aux_dir=
81ecdfbb
RW
2147for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2148 for ac_t in install-sh install.sh shtool; do
2149 if test -f "$ac_dir/$ac_t"; then
2150 ac_aux_dir=$ac_dir
2151 ac_install_sh="$ac_aux_dir/$ac_t -c"
2152 break 2
2153 fi
2154 done
a0da8069
NN
2155done
2156if test -z "$ac_aux_dir"; then
81ecdfbb 2157 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2158fi
81ecdfbb
RW
2159
2160# These three variables are undocumented and unsupported,
2161# and are intended to be withdrawn in a future Autoconf release.
2162# They can cause serious problems if a builder's source tree is in a directory
2163# whose full name contains unusual characters.
2164ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2165ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2166ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2167
a0da8069 2168
c6b750e1 2169# Make sure we can run config.sub.
81ecdfbb
RW
2170$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2171 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2172
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2174$as_echo_n "checking build system type... " >&6; }
2175if test "${ac_cv_build+set}" = set; then :
2176 $as_echo_n "(cached) " >&6
2177else
2178 ac_build_alias=$build_alias
2179test "x$ac_build_alias" = x &&
2180 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2181test "x$ac_build_alias" = x &&
2182 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2183ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2184 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2185
2186fi
2187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2188$as_echo "$ac_cv_build" >&6; }
2189case $ac_cv_build in
2190*-*-*) ;;
2191*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2192esac
c6b750e1 2193build=$ac_cv_build
81ecdfbb
RW
2194ac_save_IFS=$IFS; IFS='-'
2195set x $ac_cv_build
2196shift
2197build_cpu=$1
2198build_vendor=$2
2199shift; shift
2200# Remember, the first character of IFS is used to create $*,
2201# except with old shells:
2202build_os=$*
2203IFS=$ac_save_IFS
2204case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2205
a0da8069 2206
c6b750e1
DJ
2207 case ${build_alias} in
2208 "") build_noncanonical=${build} ;;
2209 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2210esac
2211
2212
cac3d6c4 2213
c6b750e1
DJ
2214 case ${host_alias} in
2215 "") host_noncanonical=${build_noncanonical} ;;
2216 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2217esac
2218
cac3d6c4 2219
c6b750e1
DJ
2220
2221 case ${target_alias} in
2222 "") target_noncanonical=${host_noncanonical} ;;
2223 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2224esac
2225
cac3d6c4 2226
c6b750e1
DJ
2227
2228
2229test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2230 test "$program_prefix$program_suffix$program_transform_name" = \
2231 NONENONEs,x,x, &&
c6b750e1 2232 program_transform_name=s,y,y,
cac3d6c4 2233
81ecdfbb
RW
2234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2235$as_echo_n "checking host system type... " >&6; }
2236if test "${ac_cv_host+set}" = set; then :
2237 $as_echo_n "(cached) " >&6
cac3d6c4 2238else
81ecdfbb
RW
2239 if test "x$host_alias" = x; then
2240 ac_cv_host=$ac_cv_build
2241else
2242 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2243 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2244fi
c6b750e1
DJ
2245
2246fi
81ecdfbb
RW
2247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2248$as_echo "$ac_cv_host" >&6; }
2249case $ac_cv_host in
2250*-*-*) ;;
2251*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2252esac
c6b750e1 2253host=$ac_cv_host
81ecdfbb
RW
2254ac_save_IFS=$IFS; IFS='-'
2255set x $ac_cv_host
2256shift
2257host_cpu=$1
2258host_vendor=$2
2259shift; shift
2260# Remember, the first character of IFS is used to create $*,
2261# except with old shells:
2262host_os=$*
2263IFS=$ac_save_IFS
2264case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2265
2266
81ecdfbb
RW
2267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2268$as_echo_n "checking target system type... " >&6; }
2269if test "${ac_cv_target+set}" = set; then :
2270 $as_echo_n "(cached) " >&6
c6b750e1 2271else
81ecdfbb
RW
2272 if test "x$target_alias" = x; then
2273 ac_cv_target=$ac_cv_host
2274else
2275 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2276 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2277fi
c6b750e1 2278
cac3d6c4 2279fi
81ecdfbb
RW
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2281$as_echo "$ac_cv_target" >&6; }
2282case $ac_cv_target in
2283*-*-*) ;;
2284*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2285esac
c6b750e1 2286target=$ac_cv_target
81ecdfbb
RW
2287ac_save_IFS=$IFS; IFS='-'
2288set x $ac_cv_target
2289shift
2290target_cpu=$1
2291target_vendor=$2
2292shift; shift
2293# Remember, the first character of IFS is used to create $*,
2294# except with old shells:
2295target_os=$*
2296IFS=$ac_save_IFS
2297case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2298
2299
2300# The aliases save the names the user supplied, while $host etc.
2301# will get canonicalized.
2302test -n "$target_alias" &&
2303 test "$program_prefix$program_suffix$program_transform_name" = \
2304 NONENONEs,x,x, &&
2305 program_prefix=${target_alias}-
81ecdfbb 2306
a0da8069 2307test "$program_prefix" != NONE &&
81ecdfbb 2308 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2309# Use a double $ so make ignores it.
2310test "$program_suffix" != NONE &&
81ecdfbb
RW
2311 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2312# Double any \ or $.
c6b750e1 2313# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2314ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2315program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2316
a0da8069
NN
2317
2318
e5c3f801
NN
2319# Get 'install' or 'install-sh' and its variants.
2320# Find a good install program. We prefer a C program (faster),
2321# so one script is as good as another. But avoid the broken or
2322# incompatible versions:
2323# SysV /etc/install, /usr/sbin/install
2324# SunOS /usr/etc/install
2325# IRIX /sbin/install
2326# AIX /bin/install
c6b750e1 2327# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2328# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2329# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2330# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2331# OS/2's system install, which has a completely different semantic
e5c3f801 2332# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2333# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2335$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2336if test -z "$INSTALL"; then
81ecdfbb
RW
2337if test "${ac_cv_path_install+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2339else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2345 # Account for people who put trailing slashes in PATH elements.
2346case $as_dir/ in #((
2347 ./ | .// | /[cC]/* | \
c6b750e1 2348 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2349 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2350 /usr/ucb/* ) ;;
2351 *)
2352 # OSF1 and SCO ODT 3.0 have their own names for install.
2353 # Don't use installbsd from OSF since it installs stuff as root
2354 # by default.
2355 for ac_prog in ginstall scoinst install; do
2356 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2357 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2358 if test $ac_prog = install &&
c6b750e1 2359 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2360 # AIX install. It has an incompatible calling convention.
2361 :
c6b750e1
DJ
2362 elif test $ac_prog = install &&
2363 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364 # program-specific install script used by HP pwplus--don't use.
2365 :
e5c3f801 2366 else
58c85be7
RW
2367 rm -rf conftest.one conftest.two conftest.dir
2368 echo one > conftest.one
2369 echo two > conftest.two
2370 mkdir conftest.dir
2371 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2372 test -s conftest.one && test -s conftest.two &&
2373 test -s conftest.dir/conftest.one &&
2374 test -s conftest.dir/conftest.two
2375 then
2376 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2377 break 3
2378 fi
e5c3f801
NN
2379 fi
2380 fi
2381 done
c6b750e1
DJ
2382 done
2383 ;;
2384esac
81ecdfbb
RW
2385
2386 done
2387IFS=$as_save_IFS
c6b750e1 2388
58c85be7 2389rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2390
2391fi
2392 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2393 INSTALL=$ac_cv_path_install
e5c3f801 2394 else
58c85be7
RW
2395 # As a last resort, use the slow shell script. Don't cache a
2396 # value for INSTALL within a source directory, because that will
e5c3f801 2397 # break other packages using the cache if that directory is
58c85be7 2398 # removed, or if the value is a relative name.
c6b750e1 2399 INSTALL=$ac_install_sh
e5c3f801
NN
2400 fi
2401fi
81ecdfbb
RW
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2403$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2404
2405# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2406# It thinks the first close brace ends the variable substitution.
2407test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2408
c6b750e1 2409test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2410
2411test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2412
81ecdfbb
RW
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2414$as_echo_n "checking whether ln works... " >&6; }
2415if test "${acx_cv_prog_LN+set}" = set; then :
2416 $as_echo_n "(cached) " >&6
656fdd47
PB
2417else
2418 rm -f conftestdata_t
2419echo >conftestdata_f
2420if ln conftestdata_f conftestdata_t 2>/dev/null
2421then
2422 acx_cv_prog_LN=ln
2423else
2424 acx_cv_prog_LN=no
2425fi
2426rm -f conftestdata_f conftestdata_t
2427
2428fi
2429if test $acx_cv_prog_LN = no; then
2430 LN="cp"
81ecdfbb
RW
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2432$as_echo "no, using $LN" >&6; }
656fdd47
PB
2433else
2434 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2436$as_echo "yes" >&6; }
656fdd47
PB
2437fi
2438
81ecdfbb
RW
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2440$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2441LN_S=$as_ln_s
2442if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2444$as_echo "yes" >&6; }
cac3d6c4 2445else
81ecdfbb
RW
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2447$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2448fi
2449
8e957354
PB
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2451$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2452if test "${ac_cv_path_SED+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
2454else
2455 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2456 for ac_i in 1 2 3 4 5 6 7; do
2457 ac_script="$ac_script$as_nl$ac_script"
2458 done
2459 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2460 { ac_script=; unset ac_script;}
2461 if test -z "$SED"; then
2462 ac_path_SED_found=false
2463 # Loop through the user's path and test for each of PROGNAME-LIST
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_prog in sed gsed; do
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2472 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2473# Check for GNU ac_path_SED and select it if it is found.
2474 # Check for GNU $ac_path_SED
2475case `"$ac_path_SED" --version 2>&1` in
2476*GNU*)
2477 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2478*)
2479 ac_count=0
2480 $as_echo_n 0123456789 >"conftest.in"
2481 while :
2482 do
2483 cat "conftest.in" "conftest.in" >"conftest.tmp"
2484 mv "conftest.tmp" "conftest.in"
2485 cp "conftest.in" "conftest.nl"
2486 $as_echo '' >> "conftest.nl"
2487 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2489 as_fn_arith $ac_count + 1 && ac_count=$as_val
2490 if test $ac_count -gt ${ac_path_SED_max-0}; then
2491 # Best one so far, save it but keep looking for a better one
2492 ac_cv_path_SED="$ac_path_SED"
2493 ac_path_SED_max=$ac_count
2494 fi
2495 # 10*(2^10) chars as input seems more than enough
2496 test $ac_count -gt 10 && break
2497 done
2498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2499esac
2500
2501 $ac_path_SED_found && break 3
2502 done
2503 done
2504 done
2505IFS=$as_save_IFS
2506 if test -z "$ac_cv_path_SED"; then
2507 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2508 fi
2509else
2510 ac_cv_path_SED=$SED
2511fi
2512
2513fi
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2515$as_echo "$ac_cv_path_SED" >&6; }
2516 SED="$ac_cv_path_SED"
2517 rm -f conftest.sed
2518
2519for ac_prog in gawk mawk nawk awk
2520do
2521 # Extract the first word of "$ac_prog", so it can be a program name with args.
2522set dummy $ac_prog; ac_word=$2
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524$as_echo_n "checking for $ac_word... " >&6; }
2525if test "${ac_cv_prog_AWK+set}" = set; then :
2526 $as_echo_n "(cached) " >&6
2527else
2528 if test -n "$AWK"; then
2529 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538 ac_cv_prog_AWK="$ac_prog"
2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2
2541 fi
2542done
2543 done
2544IFS=$as_save_IFS
2545
2546fi
2547fi
2548AWK=$ac_cv_prog_AWK
2549if test -n "$AWK"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2551$as_echo "$AWK" >&6; }
2552else
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554$as_echo "no" >&6; }
2555fi
2556
2557
2558 test -n "$AWK" && break
2559done
2560
e5c3f801 2561
252b5132 2562### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2563### If we are on Windows, search for the shell. This will permit people
2564### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2565### without also having to set CONFIG_SHELL. This code will work when
2566### using bash, which sets OSTYPE.
2567case "${OSTYPE}" in
2568*win32*)
a0da8069
NN
2569 if test x${CONFIG_SHELL} = x ; then
2570 if test ! -f /bin/sh ; then
2571 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2572 CONFIG_SHELL=${SHELL}
2573 export CONFIG_SHELL
2574 else
2575 for prog in sh sh.exe bash bash.exe; do
2576 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2577 for dir in $PATH; do
2578 test -z "$dir" && dir=.
2579 if test -f $dir/$prog; then
2580 CONFIG_SHELL=$dir/$prog
2581 export CONFIG_SHELL
2582 break
2583 fi
2584 done
2585 IFS="$save_ifs"
2586 test -n "${CONFIG_SHELL}" && break
2587 done
2588 fi
2589 fi
2590 fi
2591 ;;
2592esac
2593
2594config_shell=${CONFIG_SHELL-/bin/sh}
2595
a0da8069 2596moveifchange=${srcdir}/move-if-change
252b5132 2597
0fdbe983
DJ
2598srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2599
2600# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2601# a relative path.
2602if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2603 INSTALL="${srcpwd}/install-sh -c"
2604fi
2605
a0da8069
NN
2606# Set srcdir to "." if that's what it is.
2607# This is important for multilib support.
2608pwd=`${PWDCMD-pwd}`
a0da8069
NN
2609if test "${pwd}" = "${srcpwd}" ; then
2610 srcdir=.
252b5132
RH
2611fi
2612
a0da8069 2613topsrcdir=$srcpwd
252b5132 2614
a0da8069 2615extra_host_args=
afefada0 2616
a0da8069
NN
2617### To add a new directory to the tree, first choose whether it is a target
2618### or a host dependent tool. Then put it into the appropriate list
2619### (library or tools, host or target), doing a dependency sort.
252b5132 2620
c6b750e1 2621# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2622# configdirs, or target_configdirs; see the serialization section below.
252b5132 2623
c6b750e1
DJ
2624# Dependency sorting is only needed when *configuration* must be done in
2625# a particular order. In all cases a dependency should be specified in
a0da8069 2626# the Makefile, whether or not it's implicitly specified here.
252b5132 2627
a0da8069
NN
2628# Double entries in build_configdirs, configdirs, or target_configdirs may
2629# cause circular dependencies and break everything horribly.
252b5132 2630
6a9cf61e
PB
2631# these library is used by various programs built for the build
2632# environment
2633#
2634build_libs="build-libiberty"
2635
2636# these tools are built for the build environment
ee025550 2637build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2638
a0da8069
NN
2639# these libraries are used by various programs built for the host environment
2640#
e8a5fa9c 2641host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
a0da8069 2642
a0da8069
NN
2643# these tools are built for the host environment
2644# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2645# know that we are building the simulator.
2646# binutils, gas and ld appear in that order because it makes sense to run
2647# "make check" in that particular order.
93f9b408 2648# If --enable-gold is used, "gold" will replace "ld".
f9806fa5 2649host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
2650
2651# libgcj represents the runtime libraries only used by gcj.
2652libgcj="target-libffi \
a0da8069
NN
2653 target-zlib \
2654 target-qthreads \
2655 target-libjava"
2656
2657# these libraries are built for the target environment, and are built after
2658# the host libraries and the host tools (which may be a cross compiler)
2659#
b1299c4e
DJ
2660target_libraries="target-libgcc \
2661 target-libiberty \
a0da8069
NN
2662 target-libgloss \
2663 target-newlib \
cff87f51 2664 target-libgomp \
b9459e83 2665 target-libstdc++-v3 \
4b1cb4fe 2666 target-libmudflap \
bb780410 2667 target-libssp \
4b1cb4fe 2668 target-libgfortran \
4f0ef2d8 2669 target-boehm-gc \
83326456 2670 ${libgcj} \
a2592b1b 2671 target-libobjc \
cff87f51 2672 target-libada"
a0da8069 2673
9c14acb8
NN
2674# these tools are built using the target libraries, and are intended to
2675# run only in the target environment
a0da8069 2676#
9c14acb8 2677# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2678# list belongs in this list. those programs are also very likely
2679# candidates for the "native_only" list which follows
2680#
a3dd767d 2681target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2682
a0da8069 2683################################################################################
252b5132 2684
a0da8069
NN
2685## All tools belong in one of the four categories, and are assigned above
2686## We assign ${configdirs} this way to remove all embedded newlines. This
2687## is important because configure will choke if they ever get through.
2688## ${configdirs} is directories we build using the host tools.
2689## ${target_configdirs} is directories we build using the target tools.
a0da8069 2690configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2691target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2692build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2693
9cc8ae67
PB
2694
2695
a0da8069 2696################################################################################
252b5132 2697
a0da8069 2698srcname="gnu development package"
252b5132 2699
a0da8069
NN
2700# This gets set non-empty for some net releases of packages.
2701appdirs=""
252b5132 2702
a0da8069
NN
2703# Define is_cross_compiler to save on calls to 'test'.
2704is_cross_compiler=
2705if test x"${host}" = x"${target}" ; then
2706 is_cross_compiler=no
252b5132 2707else
a0da8069 2708 is_cross_compiler=yes
c6b750e1 2709fi
252b5132 2710
9175bfc0 2711# Find the build and target subdir names.
dd12c3a8 2712
66a79c16
DJ
2713# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2714# have matching libraries, they should use host libraries: Makefile.tpl
2715# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2716# However, they still use the build modules, because the corresponding
2717# host modules (e.g. bison) are only built for the host when bootstrap
2718# finishes. So:
2719# - build_subdir is where we find build modules, and never changes.
2720# - build_libsubdir is where we find build libraries, and can be overridden.
2721
2722# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2723build_subdir="build-${build_noncanonical}"
c6b750e1 2724
81ecdfbb
RW
2725# Check whether --with-build-libsubdir was given.
2726if test "${with_build_libsubdir+set}" = set; then :
2727 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2728else
2729 build_libsubdir="$build_subdir"
81ecdfbb
RW
2730fi
2731
b00612cc
PB
2732# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2733if ( test $srcdir = . && test -d gcc ) \
2734 || test -d $srcdir/../host-${host_noncanonical}; then
2735 host_subdir="host-${host_noncanonical}"
2736else
2737 host_subdir=.
2738fi
dd12c3a8
NN
2739# No prefix.
2740target_subdir=${target_noncanonical}
c6b750e1 2741
252b5132 2742
a0da8069
NN
2743# Skipdirs are removed silently.
2744skipdirs=
2745# Noconfigdirs are removed loudly.
2746noconfigdirs=""
252b5132 2747
a0da8069
NN
2748use_gnu_ld=
2749# Make sure we don't let GNU ld be added if we didn't want it.
2750if test x$with_gnu_ld = xno ; then
2751 use_gnu_ld=no
93f9b408 2752 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2753fi
2754
a0da8069
NN
2755use_gnu_as=
2756# Make sure we don't let GNU as be added if we didn't want it.
2757if test x$with_gnu_as = xno ; then
2758 use_gnu_as=no
2759 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2760fi
2761
c6b750e1 2762# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2763# it's not even worth trying to configure, much less build, that tool.
252b5132 2764
a0da8069
NN
2765case ${with_x} in
2766 yes | "") ;; # the default value for this tree is that X11 is available
2767 no)
675c6968 2768 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2769 # We won't be able to build gdbtk without X.
c6b750e1 2770 enable_gdbtk=no
a0da8069
NN
2771 ;;
2772 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2773esac
252b5132 2774
a0da8069 2775# Some tools are only suitable for building in a "native" situation.
c6b750e1 2776# Remove these if host!=target.
701628f5 2777native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 2778
a0da8069
NN
2779# Similarly, some are only suitable for cross toolchains.
2780# Remove these if host=target.
2781cross_only="target-libgloss target-newlib target-opcodes"
2782
2783case $is_cross_compiler in
2784 no) skipdirs="${skipdirs} ${cross_only}" ;;
2785 yes) skipdirs="${skipdirs} ${native_only}" ;;
2786esac
252b5132 2787
a0da8069
NN
2788# If both --with-headers and --with-libs are specified, default to
2789# --without-newlib.
32be62b5
RS
2790if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2791 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2792 if test x"${with_newlib}" = x ; then
2793 with_newlib=no
2794 fi
252b5132
RH
2795fi
2796
a0da8069
NN
2797# Recognize --with-newlib/--without-newlib.
2798case ${with_newlib} in
2799 no) skipdirs="${skipdirs} target-newlib" ;;
2800 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2801esac
252b5132 2802
93f9b408
ILT
2803# Handle --enable-gold.
2804
81ecdfbb
RW
2805# Check whether --enable-gold was given.
2806if test "${enable_gold+set}" = set; then :
2807 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2808else
2809 ENABLE_GOLD=no
81ecdfbb
RW
2810fi
2811
93f9b408
ILT
2812if test "${ENABLE_GOLD}" = "yes"; then
2813 # Check for ELF target.
2814 is_elf=no
2815 case "${target}" in
2816 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2817 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8bcf2718 2818 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
93f9b408
ILT
2819 case "${target}" in
2820 *-*-linux*aout* | *-*-linux*oldld*)
2821 ;;
2822 *)
2823 is_elf=yes
2824 ;;
2825 esac
2826 esac
2827
2828 if test "$is_elf" = "yes"; then
2829 # Check for target supported by gold.
2830 case "${target}" in
4a657b0d 2831 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
93f9b408
ILT
2832 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2833 ;;
2834 esac
2835 fi
2836fi
2837
a0da8069 2838# Configure extra directories which are host specific
252b5132 2839
a0da8069
NN
2840case "${host}" in
2841 *-cygwin*)
2842 configdirs="$configdirs libtermcap" ;;
2843esac
252b5132 2844
59f7ec45
HPN
2845# A target can indicate whether a language isn't supported for some reason.
2846# Only spaces may be used in this macro; not newlines or tabs.
2847unsupported_languages=
2848
c6b750e1 2849# Remove more programs from consideration, based on the host or
a0da8069
NN
2850# target this usually means that a port of the program doesn't
2851# exist yet.
252b5132 2852
a0da8069
NN
2853case "${host}" in
2854 hppa*64*-*-*)
2855 noconfigdirs="$noconfigdirs byacc"
2856 ;;
ec11bdc6 2857 i[3456789]86-*-vsta)
675c6968 2858 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2859 ;;
ec11bdc6 2860 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2861 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2862 ;;
2d1e8239
NC
2863 x86_64-*-mingw*)
2864 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2865 ;;
ec11bdc6 2866 i[3456789]86-*-mingw32*)
675c6968 2867 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2868 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2869 ;;
ec11bdc6 2870 i[3456789]86-*-beos*)
675c6968 2871 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2872 ;;
a0da8069 2873 *-*-cygwin*)
a92834c8 2874 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2875 ;;
2876 *-*-netbsd*)
a92834c8 2877 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2878 ;;
2879 ppc*-*-pe)
675c6968 2880 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2881 ;;
2882 powerpc-*-beos*)
675c6968 2883 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2884 ;;
a0da8069 2885esac
252b5132 2886
4b1cb4fe 2887
81ecdfbb
RW
2888# Check whether --enable-libada was given.
2889if test "${enable_libada+set}" = set; then :
2890 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2891else
2892 ENABLE_LIBADA=yes
81ecdfbb
RW
2893fi
2894
a2592b1b 2895if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2896 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2897fi
2898
81ecdfbb
RW
2899# Check whether --enable-libssp was given.
2900if test "${enable_libssp+set}" = set; then :
2901 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
2902else
2903 ENABLE_LIBSSP=yes
81ecdfbb
RW
2904fi
2905
5f128533 2906
a0da8069
NN
2907# Save it here so that, even in case of --enable-libgcj, if the Java
2908# front-end isn't enabled, we still get libgcj disabled.
2909libgcj_saved=$libgcj
2910case $enable_libgcj in
2911yes)
2912 # If we reset it here, it won't get added to noconfigdirs in the
2913 # target-specific build rules, so it will be forcibly enabled
2914 # (unless the Java language itself isn't enabled).
2915 libgcj=
2916 ;;
2917no)
2918 # Make sure we get it printed in the list of not supported target libs.
2919 noconfigdirs="$noconfigdirs ${libgcj}"
2920 ;;
2921esac
252b5132 2922
4b1cb4fe 2923
a6df5a19
PB
2924# Disable libmudflap on some systems.
2925if test x$enable_libmudflap = x ; then
3e707e94 2926 case "${target}" in
29383458 2927 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 2928 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2929 ;;
2930 *-*-freebsd*)
2931 # Enable libmudflap by default in FreeBSD.
2932 ;;
2933 *)
2934 # Disable it by default everywhere else.
2935 noconfigdirs="$noconfigdirs target-libmudflap"
2936 ;;
2937 esac
a6df5a19 2938fi
4b1cb4fe 2939
a6df5a19
PB
2940# Disable libgomp on non POSIX hosted systems.
2941if test x$enable_libgomp = x ; then
b3ded179
PB
2942 # Enable libgomp by default on hosted POSIX systems.
2943 case "${target}" in
29383458 2944 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
2945 ;;
2946 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2947 ;;
64ce424c 2948 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2949 ;;
2950 *-*-darwin* | *-*-aix*)
2951 ;;
2952 *)
2953 noconfigdirs="$noconfigdirs target-libgomp"
2954 ;;
2955 esac
a6df5a19 2956fi
b3ded179 2957
691bb5a1
DD
2958# Default libgloss CPU subdirectory.
2959libgloss_dir="$target_cpu"
4b1cb4fe 2960
a0da8069
NN
2961case "${target}" in
2962 *-*-chorusos)
54d1c879 2963 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2964 ;;
24741ab2 2965 powerpc-*-darwin*)
9d39db92 2966 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2967 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 2968 ;;
85bd1942
TG
2969 i[3456789]86-*-darwin*)
2970 noconfigdirs="$noconfigdirs ld gprof"
2971 noconfigdirs="$noconfigdirs sim target-rda"
2972 ;;
e8a5fa9c 2973 x86_64-*-darwin[912]*)
652dec25
TG
2974 noconfigdirs="$noconfigdirs ld gas gprof"
2975 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2976 ;;
04d1ab34 2977 *-*-darwin*)
d320aacb 2978 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2979 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2980 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2981 ;;
a0da8069 2982 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2983 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2984 ;;
de0b4a87 2985 *-*-freebsd*)
4b1cb4fe
DD
2986 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2987 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2988 && test -f /usr/local/include/gmp.h; then
2989 with_gmp=/usr/local
2990 fi
2991
2992 # Skip some stuff that's unsupported on some FreeBSD configurations.
2993 case "${target}" in
2994 i*86-*-*) ;;
2995 alpha*-*-*) ;;
2996 *)
54d1c879 2997 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2998 ;;
2999 esac
3000 ;;
f8a495c8
NC
3001 *-*-kaos*)
3002 # Remove unsupported stuff on all kaOS configurations.
54d1c879 3003 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
3004 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3005 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3006 noconfigdirs="$noconfigdirs target-libgloss"
3007 ;;
a0da8069
NN
3008 *-*-netbsd*)
3009 # Skip some stuff on all NetBSD configurations.
3010 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3011
3012 # Skip some stuff that's unsupported on some NetBSD configurations.
3013 case "${target}" in
3014 i*86-*-netbsdelf*) ;;
5b474aa8 3015 arm*-*-netbsdelf*) ;;
a0da8069 3016 *)
54d1c879 3017 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3018 ;;
3019 esac
3020 ;;
2a3124ca 3021 *-*-netware*)
54d1c879 3022 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
3023 ;;
3024 *-*-rtems*)
54d1c879 3025 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3026 ;;
1587117a
EC
3027 # The tpf target doesn't support gdb yet.
3028 *-*-tpf*)
54d1c879 3029 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 3030 ;;
c1968181 3031 *-*-uclinux*)
54d1c879 3032 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3033 ;;
a0da8069 3034 *-*-vxworks*)
54d1c879 3035 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3036 ;;
3037 alpha*-dec-osf*)
3038 # ld works, but does not support shared libraries.
3039 # newlib is not 64 bit ready. I'm not sure about fileutils.
3040 # gas doesn't generate exception information.
3041 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3042 ;;
3043 alpha*-*-*vms*)
54d1c879 3044 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3045 ;;
3046 alpha*-*-linux*)
3047 # newlib is not 64 bit ready
3048 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3049 ;;
a0da8069
NN
3050 alpha*-*-*)
3051 # newlib is not 64 bit ready
54d1c879 3052 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3053 ;;
4a18bd6b 3054 am33_2.0-*-linux*)
54d1c879 3055 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3056 ;;
a0da8069 3057 sh-*-linux*)
54d1c879 3058 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3059 ;;
a0da8069 3060 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3061 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3062 noconfigdirs="$noconfigdirs target-examples"
3063 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 3064 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3065 noconfigdirs="$noconfigdirs expect dejagnu"
3066 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3067 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
3068 noconfigdirs="$noconfigdirs target-newlib"
3069 case "${host}" in
3070 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 3071 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
3072 ;;
3073 esac
691bb5a1 3074 libgloss_dir=wince
a0da8069
NN
3075 ;;
3076 arc-*-*)
54d1c879 3077 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3078 ;;
caeba88f 3079 arm-semi-aof )
caeba88f 3080 ;;
a0da8069 3081 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 3082 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3083 libgloss_dir=arm
a0da8069 3084 ;;
11b04d1f 3085 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 3086 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 3087 libgloss_dir=arm
a0da8069 3088 ;;
bd70a46f 3089 arm*-*-linux-gnueabi)
6d18b86b 3090 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
3091 case ${with_newlib} in
3092 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3093 esac
691bb5a1 3094 libgloss_dir=arm
bd70a46f 3095 ;;
df4a6958 3096 arm*-*-symbianelf*)
54d1c879 3097 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3098 libgloss_dir=arm
df4a6958 3099 ;;
a0da8069 3100 arm-*-pe*)
54d1c879 3101 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3102 ;;
a0da8069 3103 thumb-*-coff)
54d1c879 3104 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3105 ;;
3106 thumb-*-elf)
54d1c879 3107 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3108 ;;
a0da8069 3109 thumb-*-pe)
54d1c879 3110 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3111 ;;
3112 arm-*-riscix*)
54d1c879 3113 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3114 ;;
3115 avr-*-*)
266df637 3116 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3117 ;;
376a0e54 3118 bfin-*-*)
00d89675 3119 noconfigdirs="$noconfigdirs gdb"
3cf3372e 3120 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3121 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3122 fi
3123 ;;
a0da8069 3124 c4x-*-* | tic4x-*-*)
54d1c879 3125 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3126 ;;
3127 c54x*-*-* | tic54x-*-*)
54d1c879 3128 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3129 ;;
52310858
NC
3130 cr16-*-*)
3131 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3132 ;;
c7e66c6d 3133 cris-*-* | crisv32-*-*)
59f7ec45 3134 unsupported_languages="$unsupported_languages java"
c7e66c6d 3135 case "${target}" in
2faa2958 3136 *-*-aout)
096f7d00 3137 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3138 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3139 *-*-elf)
5e818318 3140 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 3141 *-*-linux*)
5e818318 3142 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3143 *)
096f7d00 3144 unsupported_languages="$unsupported_languages fortran"
54d1c879 3145 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3146 esac
691bb5a1 3147 libgloss_dir=cris
a0da8069 3148 ;;
3e707e94 3149 crx-*-*)
54d1c879 3150 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3151 ;;
a0da8069 3152 d10v-*-*)
54d1c879 3153 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3154 ;;
3155 d30v-*-*)
54d1c879 3156 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3157 ;;
691bb5a1
DD
3158 ep9312-*-elf | ep9312-*-coff)
3159 libgloss_dir=arm
3160 ;;
a0da8069 3161 fr30-*-elf*)
54d1c879 3162 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3163 ;;
3164 frv-*-*)
54d1c879 3165 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3166 ;;
20135e4c
NC
3167 moxie-*-*)
3168 noconfigdirs="$noconfigdirs ${libgcj}"
3169 noconfigdirs="$noconfigdirs gprof"
3170 ;;
a0da8069 3171 h8300*-*-*)
54d1c879 3172 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3173 ;;
3174 h8500-*-*)
54d1c879 3175 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3176 ;;
caeba88f 3177 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3178 ;;
a0da8069
NN
3179 hppa*64*-*-linux* | parisc*64*-*-linux*)
3180 # In this case, it's because the hppa64-linux target is for
3181 # the kernel only at this point and has no libc, and thus no
3182 # headers, crt*.o, etc., all of which are needed by these.
3183 noconfigdirs="$noconfigdirs target-zlib"
3184 ;;
5dcac624
DA
3185 parisc*-*-linux* | hppa*-*-linux*)
3186 ;;
a0da8069 3187 hppa*-*-*elf* | \
a0da8069
NN
3188 hppa*-*-lites* | \
3189 hppa*-*-openbsd* | \
3190 hppa*64*-*-*)
54d1c879 3191 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3192 ;;
3193 hppa*-hp-hpux11*)
3194 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3195 ;;
691bb5a1
DD
3196 hppa*-*-pro*)
3197 libgloss_dir=pa
3198 ;;
a0da8069
NN
3199 hppa*-*-*)
3200 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3201 # build on HP-UX 10.20.
54d1c879 3202 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3203 ;;
b07c2aad 3204 i960-*-*)
54d1c879 3205 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3206 ;;
a0da8069
NN
3207 ia64*-*-elf*)
3208 # No gdb support yet.
675c6968 3209 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3210 ;;
3211 ia64*-**-hpux*)
3212 # No gdb or ld support yet.
54d1c879 3213 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3214 ;;
19e99079
NC
3215 ia64*-*-*vms*)
3216 # No gdb or ld support yet.
3217 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3218 ;;
caeba88f 3219 i370-*-opened*)
caeba88f 3220 ;;
ec11bdc6 3221 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3222 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3223 libgloss_dir=i386
a0da8069 3224 ;;
ec11bdc6 3225 i[3456789]86-*-linux*)
a0da8069
NN
3226 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3227 # not build java stuff by default.
3228 case "${target}" in
3229 *-*-*libc1*)
54d1c879 3230 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3231 esac
3232
3233 # This section makes it possible to build newlib natively on linux.
3234 # If we are using a cross compiler then don't configure newlib.
3235 if test x${is_cross_compiler} != xno ; then
bba45b8b 3236 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3237 fi
3238 noconfigdirs="$noconfigdirs target-libgloss"
3239 # If we are not using a cross compiler, do configure newlib.
3240 # Note however, that newlib will only be configured in this situation
3241 # if the --with-newlib option has been given, because otherwise
3242 # 'target-newlib' will appear in skipdirs.
3243 ;;
ec11bdc6 3244 i[3456789]86-*-mingw32*)
45055374
CV
3245 target_configdirs="$target_configdirs target-winsup"
3246 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3247 ;;
2d1e8239
NC
3248 x86_64-*-mingw*)
3249 target_configdirs="$target_configdirs target-winsup"
3250 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3251 ;;
a0da8069
NN
3252 *-*-cygwin*)
3253 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3254 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3255 # always build newlib if winsup directory is present.
45055374 3256 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3257 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3258 elif test -d "$srcdir/newlib"; then
45055374 3259 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3260 fi
c6b750e1 3261 ;;
caeba88f
AL
3262 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3263 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3264 ;;
ec11bdc6 3265 i[3456789]86-*-pe)
54d1c879 3266 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3267 ;;
ec11bdc6 3268 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3269 # The linker does not yet know about weak symbols in COFF,
3270 # and is not configured to handle mixed ELF and COFF.
54d1c879 3271 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3272 ;;
ec11bdc6 3273 i[3456789]86-*-sco*)
54d1c879 3274 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3275 ;;
ec11bdc6 3276 i[3456789]86-*-solaris2*)
a0da8069
NN
3277 noconfigdirs="$noconfigdirs target-libgloss"
3278 ;;
ec11bdc6 3279 i[3456789]86-*-sysv4*)
54d1c879 3280 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3281 ;;
ec11bdc6 3282 i[3456789]86-*-beos*)
54d1c879 3283 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3284 ;;
b59bea8a 3285 i[3456789]86-*-rdos*)
2429c060
PB
3286 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3287 ;;
b07c2aad 3288 m32r-*-*)
54d1c879 3289 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3290 ;;
a0da8069 3291 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3292 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3293 libgloss_dir=m68hc11
a0da8069
NN
3294 ;;
3295 m68k-*-elf*)
54d1c879 3296 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3297 ;;
3298 m68k-*-coff*)
54d1c879 3299 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3300 ;;
691bb5a1
DD
3301 m68*-*-* | fido-*-*)
3302 libgloss_dir=m68k
3303 ;;
a0da8069
NN
3304 mcore-*-pe*)
3305 # The EPOC C++ environment does not support exceptions or rtti,
3306 # and so building libstdc++-v3 tends not to always work.
3307 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3308 ;;
3309 mmix-*-*)
59f7ec45 3310 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3311 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3312 ;;
3313 mn10200-*-*)
54d1c879 3314 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3315 ;;
3316 mn10300-*-*)
54d1c879 3317 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3318 ;;
4970f871 3319 mt-*-*)
cdb9b172
AH
3320 noconfigdirs="$noconfigdirs sim"
3321 ;;
a0da8069
NN
3322 powerpc-*-aix*)
3323 # copied from rs6000-*-* entry
e8a5fa9c 3324 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3325 ;;
3326 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3327 target_configdirs="$target_configdirs target-winsup"
54d1c879 3328 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3329 # always build newlib.
3330 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3331 ;;
3332 # This is temporary until we can link against shared libraries
3333 powerpcle-*-solaris*)
54d1c879 3334 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3335 libgloss_dir=rs6000
a0da8069
NN
3336 ;;
3337 powerpc-*-beos*)
54d1c879 3338 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3339 ;;
a0da8069 3340 powerpc-*-eabi)
54d1c879 3341 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3342 libgloss_dir=rs6000
caeba88f
AL
3343 ;;
3344 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3345 libgloss_dir=rs6000
a0da8069 3346 ;;
a0da8069 3347 rs6000-*-lynxos*)
54d1c879 3348 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3349 ;;
3350 rs6000-*-aix*)
e8a5fa9c 3351 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3352 ;;
3353 rs6000-*-*)
54d1c879 3354 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3355 ;;
3356 m68k-apollo-*)
54d1c879 3357 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3358 ;;
25a07265
NC
3359 microblaze*)
3360 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3361 ;;
5bd8be13
RS
3362 mips*-sde-elf*)
3363 skipdirs="$skipdirs target-libiberty"
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3365 if test x$with_newlib = xyes; then
3366 noconfigdirs="$noconfigdirs gprof"
3367 fi
3368 libgloss_dir=mips
3369 ;;
a0da8069 3370 mips*-*-irix5*)
54d1c879 3371 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3372 ;;
3373 mips*-*-irix6*)
a0da8069
NN
3374 # Linking libjava exceeds command-line length limits on at least
3375 # IRIX 6.2, but not on IRIX 6.5.
3376 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3377 # <oldham@codesourcery.com>
54d1c879 3378 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3379 ;;
a0da8069 3380 mips*-*-bsd*)
54d1c879 3381 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3382 ;;
a0da8069
NN
3383 mips*-*-linux*)
3384 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3385 ;;
3386 mips*-*-*)
54d1c879 3387 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3388 libgloss_dir=mips
a0da8069
NN
3389 ;;
3390 romp-*-*)
54d1c879 3391 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3392 ;;
dbf85af7 3393 sh-*-* | sh64-*-*)
a0da8069 3394 case "${host}" in
ec11bdc6
DD
3395 i[3456789]86-*-vsta) ;; # don't add gprof back in
3396 i[3456789]86-*-go32*) ;; # don't add gprof back in
3397 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3398 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3399 esac
e8a5fa9c
RW
3400 case "${target}" in
3401 sh*-*-elf)
3402 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3403 *)
3404 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3405 esac
a0da8069 3406 ;;
691bb5a1
DD
3407 sparclet-*-aout* | sparc86x-*-*)
3408 libgloss_dir=sparc
3409 ;;
a0da8069 3410 sparc-*-elf*)
54d1c879 3411 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3412 ;;
3413 sparc64-*-elf*)
54d1c879 3414 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3415 libgloss_dir=sparc
a0da8069
NN
3416 ;;
3417 sparclite-*-*)
54d1c879 3418 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3419 libgloss_dir=sparc
a0da8069
NN
3420 ;;
3421 sparc-*-sunos4*)
54d1c879 3422 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3423 if test x${is_cross_compiler} != xno ; then
3424 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3425 else
3426 use_gnu_ld=no
3427 fi
3428 ;;
e3c770b1 3429 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3430 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3431 ;;
a0da8069
NN
3432 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3433 ;;
3434 v810-*-*)
54d1c879 3435 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
3436 ;;
3437 v850-*-*)
54d1c879 3438 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3439 ;;
3440 v850e-*-*)
54d1c879 3441 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3442 ;;
3443 v850ea-*-*)
54d1c879 3444 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3445 ;;
3446 vax-*-vms)
54d1c879 3447 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3448 ;;
3449 vax-*-*)
54d1c879 3450 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3451 ;;
8b66833e 3452 xtensa*-*-*)
54d1c879 3453 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3454 ;;
a0da8069 3455 ip2k-*-*)
54d1c879 3456 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3457 ;;
29383458 3458 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3459 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3460 ;;
3461 *-*-lynxos*)
54d1c879 3462 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3463 ;;
a0da8069 3464 *-*-*)
54d1c879 3465 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3466 ;;
3467esac
252b5132 3468
a0da8069
NN
3469# If we aren't building newlib, then don't build libgloss, since libgloss
3470# depends upon some newlib header files.
3471case "${noconfigdirs}" in
3472 *target-libgloss*) ;;
3473 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3474esac
3475
a0da8069
NN
3476# Work in distributions that contain no compiler tools, like Autoconf.
3477tentative_cc=""
3478host_makefile_frag=/dev/null
3479if test -d ${srcdir}/config ; then
3480case "${host}" in
3481 m68k-hp-hpux*)
3482 # Avoid "too much defining" errors from HPUX compiler.
3483 tentative_cc="cc -Wp,-H256000"
3484 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3485 # If it's HP/UX ar, this should be harmless.
3486 RANLIB="ar ts"
3487 ;;
3488 m68k-apollo-sysv*)
3489 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3490 ;;
3491 m68k-apollo-bsd*)
3492 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3493 # chokes on bfd, the compiler won't let you assign integers to enums, and
3494 # other problems. Defining CC to gcc is a questionable way to say "don't use
3495 # the apollo compiler" (the preferred version of GCC could be called cc,
3496 # or whatever), but I'm not sure leaving CC as cc is any better...
3497 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3498 # Used to have BISON=yacc.
3499 tentative_cc=gcc
3500 ;;
3501 m88k-dg-dgux*)
3502 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3503 ;;
3504 m88k-harris-cxux*)
3505 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3506 tentative_cc="cc -Xa"
3507 host_makefile_frag="config/mh-cxux"
3508 ;;
3509 m88k-motorola-sysv*)
3510 ;;
3511 mips*-dec-ultrix*)
3512 tentative_cc="cc -Wf,-XNg1000"
3513 host_makefile_frag="config/mh-decstation"
3514 ;;
3515 mips*-nec-sysv4*)
3516 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3517 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3518 host_makefile_frag="config/mh-necv4"
3519 ;;
3520 mips*-sgi-irix4*)
3521 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3522 # environment. Also bump switch table size so that cp-parse will
3523 # compile. Bump string length limit so linker builds.
3524 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3525 ;;
3526 mips*-*-sysv4*)
3527 host_makefile_frag="config/mh-sysv4"
3528 ;;
3529 mips*-*-sysv*)
3530 # This is for a MIPS running RISC/os 4.52C.
3531
3532 # This is needed for GDB, but needs to be in the top-level make because
3533 # if a library is compiled with the bsd headers and gets linked with the
3534 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3535 # a different size).
3536 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3537 # known except to select the sysv environment. Could we use /proc instead?
3538 # These "sysv environments" and "bsd environments" often end up being a pain.
3539 #
3540 # This is not part of CFLAGS because perhaps not all C compilers have this
3541 # option.
3542 tentative_cc="cc -systype sysv"
3543 ;;
3544 i370-ibm-opened*)
3545 tentative_cc="c89"
3546 ;;
ec11bdc6 3547 i[3456789]86-*-sysv5*)
a0da8069
NN
3548 host_makefile_frag="config/mh-sysv5"
3549 ;;
ec11bdc6 3550 i[3456789]86-*-dgux*)
a0da8069
NN
3551 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3552 host_makefile_frag="config/mh-dgux386"
3553 ;;
ec11bdc6 3554 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3555 # The MetaWare compiler will generate a copyright message unless you
3556 # turn it off by adding the -Hnocopyr flag.
3557 tentative_cc="cc -Hnocopyr"
3558 ;;
ec11bdc6 3559 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3560 # for an NCR 3000 (i486/SVR4) system.
3561 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3562 # This compiler not only emits obnoxious copyright messages every time
3563 # you run it, but it chokes and dies on a whole bunch of GNU source
3564 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3565 tentative_cc="/usr/ccs/ATT/cc"
3566 host_makefile_frag="config/mh-ncr3000"
3567 ;;
ec11bdc6 3568 i[3456789]86-*-sco3.2v5*)
a0da8069 3569 ;;
ec11bdc6 3570 i[3456789]86-*-sco*)
a0da8069
NN
3571 # The native C compiler botches some simple uses of const. Unfortunately,
3572 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3573 tentative_cc="cc -Dconst="
3574 host_makefile_frag="config/mh-sco"
3575 ;;
ec11bdc6 3576 i[3456789]86-*-udk*)
a0da8069
NN
3577 host_makefile_frag="config/mh-sysv5"
3578 ;;
ec11bdc6 3579 i[3456789]86-*-solaris2*)
a0da8069
NN
3580 host_makefile_frag="config/mh-sysv4"
3581 ;;
ec11bdc6 3582 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3583 host_makefile_frag="config/mh-djgpp"
3584 ;;
3585 *-cygwin*)
e33b51a6 3586
81ecdfbb
RW
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3588$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6
NC
3589echo a >cygwin-cat-check
3590if test `cat cygwin-cat-check` == a ; then
8ade07e9 3591 rm cygwin-cat-check
81ecdfbb
RW
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593$as_echo "yes" >&6; }
e33b51a6 3594else
8ade07e9 3595 rm cygwin-cat-check
81ecdfbb
RW
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
3598 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3599 Please either mount the build directory in binary mode or run the following
3600 commands before running any configure script:
3601set -o igncr
3602export SHELLOPTS
81ecdfbb 3603 " "$LINENO" 5
e33b51a6 3604fi
e33b51a6 3605
a0da8069
NN
3606 host_makefile_frag="config/mh-cygwin"
3607 ;;
8a1599ab 3608 *-mingw*)
84e7906e 3609 host_makefile_frag="config/mh-mingw"
2d1e8239 3610 ;;
a0da8069
NN
3611 *-interix*)
3612 host_makefile_frag="config/mh-interix"
3613 ;;
3614 vax-*-ultrix2*)
3615 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3616 tentative_cc=gcc
3617 ;;
3618 *-*-solaris2*)
3619 host_makefile_frag="config/mh-solaris"
3620 ;;
3621 m68k-sun-sunos*)
3622 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3623 # without overflowing the jump tables (-J says to use a 32 bit table)
3624 tentative_cc="cc -J"
3625 ;;
da888c87 3626 hppa*-hp-hpux10*)
a0da8069 3627 tentative_cc="cc -Wp,-H256000"
da888c87 3628 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3629 ;;
da888c87
PB
3630 hppa*-hp-hpux* | hppa*-*-hiux*)
3631 tentative_cc="cc -Wp,-H256000"
3632 host_makefile_frag="config/mh-pa"
3633 ;;
3634 hppa*-*)
3635 host_makefile_frag="config/mh-pa"
3636 ;;
3637 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3638 tentative_cc="cc -Wp,-H256000"
3639 ;;
3640 rs6000-*-lynxos*)
3641 # /bin/cc is less than useful for our purposes. Always use GCC
3642 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3643 host_makefile_frag="config/mh-lynxrs6k"
3644 ;;
0df3d27f
PB
3645 powerpc-*-darwin*)
3646 host_makefile_frag="config/mh-ppc-darwin"
3647 ;;
f6d183c0
PB
3648 powerpc-*-aix*)
3649 host_makefile_frag="config/mh-ppc-aix"
3650 ;;
3651 rs6000-*-aix*)
3652 host_makefile_frag="config/mh-ppc-aix"
3653 ;;
a0da8069
NN
3654 *-*-lynxos*)
3655 # /bin/cc is less than useful for our purposes. Always use GCC
3656 tentative_cc="/bin/gcc"
3657 ;;
3658 *-*-sysv4*)
3659 host_makefile_frag="config/mh-sysv4"
3660 ;;
fe69863c
DD
3661 # This is placed last to prevent interfering with the cases above.
3662 i[3456789]86-*-*)
3663 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3664 host_makefile_frag="config/mh-x86omitfp"
3665 ;;
a0da8069
NN
3666esac
3667fi
3668
9e07f89d
NN
3669# If we aren't going to be using gcc, see if we can extract a definition
3670# of CC from the fragment.
3671# Actually, use the 'pre-extracted' version above.
3672if test -z "${CC}" && test "${build}" = "${host}" ; then
3673 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3674 found=
3675 for dir in $PATH; do
3676 test -z "$dir" && dir=.
3677 if test -f $dir/gcc; then
3678 found=yes
3679 break
3680 fi
3681 done
3682 IFS="$save_ifs"
3683 if test -z "${found}" && test -n "${tentative_cc}" ; then
3684 CC=$tentative_cc
3685 fi
3686fi
3687
3688if test "${build}" != "${host}" ; then
1576798e
PB
3689 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3690 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3691 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3692 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3693 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3694 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3695 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3696 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3697 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3698 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3699 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3700 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3701else
3702 AR_FOR_BUILD="\$(AR)"
3703 AS_FOR_BUILD="\$(AS)"
512b7dfb 3704 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3705 CXX_FOR_BUILD="\$(CXX)"
3706 GCJ_FOR_BUILD="\$(GCJ)"
3707 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3708 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3709 LD_FOR_BUILD="\$(LD)"
3710 NM_FOR_BUILD="\$(NM)"
3711 RANLIB_FOR_BUILD="\$(RANLIB)"
3712 WINDRES_FOR_BUILD="\$(WINDRES)"
3713 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3714fi
3715
3716ac_ext=c
c6b750e1
DJ
3717ac_cpp='$CPP $CPPFLAGS'
3718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721if test -n "$ac_tool_prefix"; then
3722 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3723set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725$as_echo_n "checking for $ac_word... " >&6; }
3726if test "${ac_cv_prog_CC+set}" = set; then :
3727 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3728else
3729 if test -n "$CC"; then
3730 ac_cv_prog_CC="$CC" # Let the user override the test.
3731else
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3739 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3741 break 2
3742 fi
3743done
81ecdfbb
RW
3744 done
3745IFS=$as_save_IFS
c6b750e1
DJ
3746
3747fi
3748fi
3749CC=$ac_cv_prog_CC
3750if test -n "$CC"; then
81ecdfbb
RW
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752$as_echo "$CC" >&6; }
c6b750e1 3753else
81ecdfbb
RW
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755$as_echo "no" >&6; }
c6b750e1
DJ
3756fi
3757
81ecdfbb 3758
c6b750e1
DJ
3759fi
3760if test -z "$ac_cv_prog_CC"; then
3761 ac_ct_CC=$CC
6a9cf61e 3762 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3763set dummy gcc; ac_word=$2
81ecdfbb
RW
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765$as_echo_n "checking for $ac_word... " >&6; }
3766if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3768else
3769 if test -n "$ac_ct_CC"; then
3770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3771else
3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
3774do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3779 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3781 break 2
3782 fi
3783done
81ecdfbb
RW
3784 done
3785IFS=$as_save_IFS
c6b750e1
DJ
3786
3787fi
3788fi
3789ac_ct_CC=$ac_cv_prog_ac_ct_CC
3790if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3792$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3793else
81ecdfbb
RW
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795$as_echo "no" >&6; }
c6b750e1
DJ
3796fi
3797
81ecdfbb
RW
3798 if test "x$ac_ct_CC" = x; then
3799 CC=""
3800 else
3801 case $cross_compiling:$ac_tool_warned in
3802yes:)
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3805ac_tool_warned=yes ;;
3806esac
3807 CC=$ac_ct_CC
3808 fi
c6b750e1
DJ
3809else
3810 CC="$ac_cv_prog_CC"
3811fi
3812
3813if test -z "$CC"; then
81ecdfbb
RW
3814 if test -n "$ac_tool_prefix"; then
3815 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3816set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818$as_echo_n "checking for $ac_word... " >&6; }
3819if test "${ac_cv_prog_CC+set}" = set; then :
3820 $as_echo_n "(cached) " >&6
9e07f89d
NN
3821else
3822 if test -n "$CC"; then
3823 ac_cv_prog_CC="$CC" # Let the user override the test.
3824else
c6b750e1
DJ
3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826for as_dir in $PATH
3827do
3828 IFS=$as_save_IFS
3829 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3832 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3834 break 2
3835 fi
3836done
81ecdfbb
RW
3837 done
3838IFS=$as_save_IFS
c6b750e1 3839
9e07f89d
NN
3840fi
3841fi
c6b750e1 3842CC=$ac_cv_prog_CC
9e07f89d 3843if test -n "$CC"; then
81ecdfbb
RW
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845$as_echo "$CC" >&6; }
c6b750e1 3846else
81ecdfbb
RW
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848$as_echo "no" >&6; }
c6b750e1
DJ
3849fi
3850
c6b750e1 3851
81ecdfbb 3852 fi
c6b750e1 3853fi
9e07f89d
NN
3854if test -z "$CC"; then
3855 # Extract the first word of "cc", so it can be a program name with args.
3856set dummy cc; ac_word=$2
81ecdfbb
RW
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858$as_echo_n "checking for $ac_word... " >&6; }
3859if test "${ac_cv_prog_CC+set}" = set; then :
3860 $as_echo_n "(cached) " >&6
9e07f89d
NN
3861else
3862 if test -n "$CC"; then
3863 ac_cv_prog_CC="$CC" # Let the user override the test.
3864else
9e07f89d 3865 ac_prog_rejected=no
c6b750e1
DJ
3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH
3868do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3874 ac_prog_rejected=yes
3875 continue
3876 fi
3877 ac_cv_prog_CC="cc"
81ecdfbb 3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3879 break 2
3880 fi
3881done
81ecdfbb
RW
3882 done
3883IFS=$as_save_IFS
c6b750e1 3884
9e07f89d
NN
3885if test $ac_prog_rejected = yes; then
3886 # We found a bogon in the path, so make sure we never use it.
3887 set dummy $ac_cv_prog_CC
3888 shift
c6b750e1 3889 if test $# != 0; then
9e07f89d
NN
3890 # We chose a different compiler from the bogus one.
3891 # However, it has the same basename, so the bogon will be chosen
3892 # first if we set CC to just the basename; use the full file name.
3893 shift
c6b750e1 3894 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3895 fi
3896fi
3897fi
3898fi
c6b750e1 3899CC=$ac_cv_prog_CC
9e07f89d 3900if test -n "$CC"; then
81ecdfbb
RW
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3902$as_echo "$CC" >&6; }
9e07f89d 3903else
81ecdfbb
RW
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905$as_echo "no" >&6; }
9e07f89d
NN
3906fi
3907
81ecdfbb 3908
c6b750e1
DJ
3909fi
3910if test -z "$CC"; then
3911 if test -n "$ac_tool_prefix"; then
81ecdfbb 3912 for ac_prog in cl.exe
c6b750e1
DJ
3913 do
3914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3915set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917$as_echo_n "checking for $ac_word... " >&6; }
3918if test "${ac_cv_prog_CC+set}" = set; then :
3919 $as_echo_n "(cached) " >&6
9e07f89d
NN
3920else
3921 if test -n "$CC"; then
3922 ac_cv_prog_CC="$CC" # Let the user override the test.
3923else
c6b750e1
DJ
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH
3926do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3931 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3933 break 2
376a0e54 3934 fi
c6b750e1 3935done
81ecdfbb
RW
3936 done
3937IFS=$as_save_IFS
cac3d6c4 3938
c6b750e1
DJ
3939fi
3940fi
3941CC=$ac_cv_prog_CC
3942if test -n "$CC"; then
81ecdfbb
RW
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3944$as_echo "$CC" >&6; }
cac3d6c4 3945else
81ecdfbb
RW
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947$as_echo "no" >&6; }
9e07f89d 3948fi
cac3d6c4 3949
81ecdfbb 3950
c6b750e1
DJ
3951 test -n "$CC" && break
3952 done
cac3d6c4 3953fi
c6b750e1
DJ
3954if test -z "$CC"; then
3955 ac_ct_CC=$CC
81ecdfbb 3956 for ac_prog in cl.exe
c6b750e1
DJ
3957do
3958 # Extract the first word of "$ac_prog", so it can be a program name with args.
3959set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961$as_echo_n "checking for $ac_word... " >&6; }
3962if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3963 $as_echo_n "(cached) " >&6
cac3d6c4 3964else
c6b750e1
DJ
3965 if test -n "$ac_ct_CC"; then
3966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3967else
c6b750e1
DJ
3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3975 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3977 break 2
3978 fi
3979done
81ecdfbb
RW
3980 done
3981IFS=$as_save_IFS
c6b750e1 3982
cac3d6c4
CM
3983fi
3984fi
c6b750e1
DJ
3985ac_ct_CC=$ac_cv_prog_ac_ct_CC
3986if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3988$as_echo "$ac_ct_CC" >&6; }
9e07f89d 3989else
81ecdfbb
RW
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991$as_echo "no" >&6; }
cac3d6c4 3992fi
376a0e54 3993
81ecdfbb 3994
c6b750e1
DJ
3995 test -n "$ac_ct_CC" && break
3996done
3997
81ecdfbb
RW
3998 if test "x$ac_ct_CC" = x; then
3999 CC=""
4000 else
4001 case $cross_compiling:$ac_tool_warned in
4002yes:)
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005ac_tool_warned=yes ;;
4006esac
4007 CC=$ac_ct_CC
4008 fi
c6b750e1
DJ
4009fi
4010
4011fi
4012
4013
81ecdfbb
RW
4014test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016as_fn_error "no acceptable C compiler found in \$PATH
4017See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4018
4019# Provide some information about the compiler.
81ecdfbb
RW
4020$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4021set X $ac_compile
4022ac_compiler=$2
4023for ac_option in --version -v -V -qversion; do
4024 { { ac_try="$ac_compiler $ac_option >&5"
4025case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4028esac
4029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030$as_echo "$ac_try_echo"; } >&5
4031 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4032 ac_status=$?
81ecdfbb
RW
4033 if test -s conftest.err; then
4034 sed '10a\
4035... rest of stderr output deleted ...
4036 10q' conftest.err >conftest.er1
4037 cat conftest.er1 >&5
4038 rm -f conftest.er1 conftest.err
4039 fi
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }
4042done
c6b750e1 4043
81ecdfbb 4044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4045/* end confdefs.h. */
4046
4047int
4048main ()
4049{
4050
4051 ;
4052 return 0;
4053}
4054_ACEOF
4055ac_clean_files_save=$ac_clean_files
81ecdfbb 4056ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4057# Try to create an executable without -o first, disregard a.out.
4058# It will help us diagnose broken compilers, and finding out an intuition
4059# of exeext.
81ecdfbb
RW
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4061$as_echo_n "checking for C compiler default output file name... " >&6; }
4062ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4063
4064# The possible output files:
4065ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4066
4067ac_rmfiles=
4068for ac_file in $ac_files
4069do
4070 case $ac_file in
4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4072 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4073 esac
4074done
4075rm -f $ac_rmfiles
4076
4077if { { ac_try="$ac_link_default"
4078case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083$as_echo "$ac_try_echo"; } >&5
4084 (eval "$ac_link_default") 2>&5
c6b750e1 4085 ac_status=$?
81ecdfbb
RW
4086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087 test $ac_status = 0; }; then :
4088 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4089# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4090# in a Makefile. We should not override ac_cv_exeext if it was cached,
4091# so that the user can short-circuit this test for compilers unknown to
4092# Autoconf.
4093for ac_file in $ac_files ''
c6b750e1
DJ
4094do
4095 test -f "$ac_file" || continue
4096 case $ac_file in
81ecdfbb 4097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4098 ;;
4099 [ab].out )
4100 # We found the default executable, but exeext='' is most
4101 # certainly right.
4102 break;;
4103 *.* )
81ecdfbb
RW
4104 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4105 then :; else
4106 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4107 fi
4108 # We set ac_cv_exeext here because the later test for it is not
4109 # safe: cross compilers may not add the suffix if given an `-o'
4110 # argument, so we may need to know it at that point already.
4111 # Even if this section looks crufty: it has the advantage of
4112 # actually working.
c6b750e1
DJ
4113 break;;
4114 * )
4115 break;;
4116 esac
4117done
81ecdfbb
RW
4118test "$ac_cv_exeext" = no && ac_cv_exeext=
4119
c6b750e1 4120else
81ecdfbb
RW
4121 ac_file=''
4122fi
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4124$as_echo "$ac_file" >&6; }
4125if test -z "$ac_file"; then :
4126 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
81ecdfbb
RW
4129{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4131{ as_fn_set_status 77
4132as_fn_error "C compiler cannot create executables
4133See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4134fi
c6b750e1 4135ac_exeext=$ac_cv_exeext
c6b750e1 4136
81ecdfbb 4137# Check that the compiler produces executables we can run. If not, either
c6b750e1 4138# the compiler is broken, or we cross compile.
81ecdfbb
RW
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4140$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4141# If not cross compiling, check that we can run a simple program.
4142if test "$cross_compiling" != yes; then
4143 if { ac_try='./$ac_file'
81ecdfbb
RW
4144 { { case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147esac
4148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149$as_echo "$ac_try_echo"; } >&5
4150 (eval "$ac_try") 2>&5
c6b750e1 4151 ac_status=$?
81ecdfbb
RW
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }; }; then
c6b750e1
DJ
4154 cross_compiling=no
4155 else
4156 if test "$cross_compiling" = maybe; then
4157 cross_compiling=yes
4158 else
81ecdfbb
RW
4159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4161as_fn_error "cannot run C compiled programs.
c6b750e1 4162If you meant to cross compile, use \`--host'.
81ecdfbb 4163See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4164 fi
4165 fi
4166fi
81ecdfbb
RW
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4168$as_echo "yes" >&6; }
c6b750e1 4169
81ecdfbb 4170rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4171ac_clean_files=$ac_clean_files_save
81ecdfbb 4172# Check that the compiler produces executables we can run. If not, either
c6b750e1 4173# the compiler is broken, or we cross compile.
81ecdfbb
RW
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4175$as_echo_n "checking whether we are cross compiling... " >&6; }
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4177$as_echo "$cross_compiling" >&6; }
4178
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4180$as_echo_n "checking for suffix of executables... " >&6; }
4181if { { ac_try="$ac_link"
4182case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187$as_echo "$ac_try_echo"; } >&5
4188 (eval "$ac_link") 2>&5
c6b750e1 4189 ac_status=$?
81ecdfbb
RW
4190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4191 test $ac_status = 0; }; then :
c6b750e1
DJ
4192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4193# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4194# work properly (i.e., refer to `conftest.exe'), while it won't with
4195# `rm'.
4196for ac_file in conftest.exe conftest conftest.*; do
4197 test -f "$ac_file" || continue
4198 case $ac_file in
81ecdfbb 4199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4200 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4201 break;;
4202 * ) break;;
4203 esac
4204done
4205else
81ecdfbb
RW
4206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4208as_fn_error "cannot compute suffix of executables: cannot compile and link
4209See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4210fi
c6b750e1 4211rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4213$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4214
4215rm -f conftest.$ac_ext
4216EXEEXT=$ac_cv_exeext
4217ac_exeext=$EXEEXT
81ecdfbb
RW
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4219$as_echo_n "checking for suffix of object files... " >&6; }
4220if test "${ac_cv_objext+set}" = set; then :
4221 $as_echo_n "(cached) " >&6
c6b750e1 4222else
81ecdfbb 4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4224/* end confdefs.h. */
4225
4226int
4227main ()
4228{
4229
4230 ;
4231 return 0;
4232}
4233_ACEOF
4234rm -f conftest.o conftest.obj
81ecdfbb
RW
4235if { { ac_try="$ac_compile"
4236case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241$as_echo "$ac_try_echo"; } >&5
4242 (eval "$ac_compile") 2>&5
c6b750e1 4243 ac_status=$?
81ecdfbb
RW
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }; then :
4246 for ac_file in conftest.o conftest.obj conftest.*; do
4247 test -f "$ac_file" || continue;
c6b750e1 4248 case $ac_file in
81ecdfbb 4249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4251 break;;
4252 esac
4253done
cac3d6c4 4254else
81ecdfbb 4255 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4256sed 's/^/| /' conftest.$ac_ext >&5
4257
81ecdfbb
RW
4258{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4260as_fn_error "cannot compute suffix of object files: cannot compile
4261See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4262fi
c6b750e1
DJ
4263rm -f conftest.$ac_cv_objext conftest.$ac_ext
4264fi
81ecdfbb
RW
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4266$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4267OBJEXT=$ac_cv_objext
4268ac_objext=$OBJEXT
81ecdfbb
RW
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4270$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4271if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
c6b750e1 4273else
81ecdfbb 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4275/* end confdefs.h. */
4276
4277int
4278main ()
4279{
4280#ifndef __GNUC__
4281 choke me
4282#endif
4283
4284 ;
4285 return 0;
4286}
4287_ACEOF
81ecdfbb 4288if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4289 ac_compiler_gnu=yes
4290else
81ecdfbb 4291 ac_compiler_gnu=no
c6b750e1 4292fi
81ecdfbb 4293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4294ac_cv_c_compiler_gnu=$ac_compiler_gnu
4295
4296fi
81ecdfbb
RW
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4298$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4299if test $ac_compiler_gnu = yes; then
4300 GCC=yes
4301else
4302 GCC=
4303fi
c6b750e1
DJ
4304ac_test_CFLAGS=${CFLAGS+set}
4305ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4307$as_echo_n "checking whether $CC accepts -g... " >&6; }
4308if test "${ac_cv_prog_cc_g+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4310else
4311 ac_save_c_werror_flag=$ac_c_werror_flag
4312 ac_c_werror_flag=yes
4313 ac_cv_prog_cc_g=no
4314 CFLAGS="-g"
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4316/* end confdefs.h. */
4317
4318int
4319main ()
4320{
4321
4322 ;
4323 return 0;
4324}
4325_ACEOF
81ecdfbb 4326if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4327 ac_cv_prog_cc_g=yes
4328else
81ecdfbb
RW
4329 CFLAGS=""
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h. */
4332
4333int
4334main ()
4335{
4336
4337 ;
4338 return 0;
4339}
4340_ACEOF
4341if ac_fn_c_try_compile "$LINENO"; then :
4342
4343else
4344 ac_c_werror_flag=$ac_save_c_werror_flag
4345 CFLAGS="-g"
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347/* end confdefs.h. */
cac3d6c4 4348
81ecdfbb
RW
4349int
4350main ()
4351{
4352
4353 ;
4354 return 0;
4355}
4356_ACEOF
4357if ac_fn_c_try_compile "$LINENO"; then :
4358 ac_cv_prog_cc_g=yes
4359fi
4360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4361fi
81ecdfbb 4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4363fi
81ecdfbb
RW
4364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4366fi
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4368$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4369if test "$ac_test_CFLAGS" = set; then
c6b750e1 4370 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4371elif test $ac_cv_prog_cc_g = yes; then
4372 if test "$GCC" = yes; then
4373 CFLAGS="-g -O2"
4374 else
4375 CFLAGS="-g"
4376 fi
4377else
4378 if test "$GCC" = yes; then
4379 CFLAGS="-O2"
4380 else
4381 CFLAGS=
4382 fi
4383fi
81ecdfbb
RW
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4385$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4386if test "${ac_cv_prog_cc_c89+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
c6b750e1 4388else
81ecdfbb 4389 ac_cv_prog_cc_c89=no
c6b750e1 4390ac_save_CC=$CC
81ecdfbb 4391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4392/* end confdefs.h. */
4393#include <stdarg.h>
4394#include <stdio.h>
4395#include <sys/types.h>
4396#include <sys/stat.h>
4397/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4398struct buf { int x; };
4399FILE * (*rcsopen) (struct buf *, struct stat *, int);
4400static char *e (p, i)
4401 char **p;
4402 int i;
4403{
4404 return p[i];
4405}
4406static char *f (char * (*g) (char **, int), char **p, ...)
4407{
4408 char *s;
4409 va_list v;
4410 va_start (v,p);
4411 s = g (p, va_arg (v,int));
4412 va_end (v);
4413 return s;
4414}
4415
4416/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4417 function prototypes and stuff, but not '\xHH' hex character constants.
4418 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4419 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4420 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4421 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4422 that's true only with -std. */
c6b750e1
DJ
4423int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4424
81ecdfbb
RW
4425/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4426 inside strings and character constants. */
4427#define FOO(x) 'x'
4428int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4429
c6b750e1
DJ
4430int test (int i, double x);
4431struct s1 {int (*f) (int a);};
4432struct s2 {int (*f) (double a);};
4433int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4434int argc;
4435char **argv;
4436int
4437main ()
4438{
4439return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4440 ;
4441 return 0;
4442}
4443_ACEOF
81ecdfbb
RW
4444for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4445 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4446do
4447 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4448 if ac_fn_c_try_compile "$LINENO"; then :
4449 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4450fi
81ecdfbb
RW
4451rm -f core conftest.err conftest.$ac_objext
4452 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4453done
81ecdfbb 4454rm -f conftest.$ac_ext
c6b750e1
DJ
4455CC=$ac_save_CC
4456
4457fi
81ecdfbb
RW
4458# AC_CACHE_VAL
4459case "x$ac_cv_prog_cc_c89" in
4460 x)
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4462$as_echo "none needed" >&6; } ;;
4463 xno)
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4465$as_echo "unsupported" >&6; } ;;
c6b750e1 4466 *)
81ecdfbb
RW
4467 CC="$CC $ac_cv_prog_cc_c89"
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4469$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4470esac
81ecdfbb 4471if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4472
c6b750e1
DJ
4473fi
4474
c6b750e1
DJ
4475ac_ext=c
4476ac_cpp='$CPP $CPPFLAGS'
4477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4480
81ecdfbb 4481ac_ext=cpp
18f6b6ee
PB
4482ac_cpp='$CXXCPP $CPPFLAGS'
4483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4486if test -z "$CXX"; then
4487 if test -n "$CCC"; then
4488 CXX=$CCC
4489 else
4490 if test -n "$ac_tool_prefix"; then
4491 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4492 do
4493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4494set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4496$as_echo_n "checking for $ac_word... " >&6; }
4497if test "${ac_cv_prog_CXX+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4499else
4500 if test -n "$CXX"; then
4501 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4502else
4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH
4505do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4510 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4512 break 2
4513 fi
4514done
81ecdfbb
RW
4515 done
4516IFS=$as_save_IFS
512b7dfb 4517
18f6b6ee
PB
4518fi
4519fi
4520CXX=$ac_cv_prog_CXX
4521if test -n "$CXX"; then
81ecdfbb
RW
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4523$as_echo "$CXX" >&6; }
18f6b6ee 4524else
81ecdfbb
RW
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526$as_echo "no" >&6; }
18f6b6ee
PB
4527fi
4528
81ecdfbb 4529
18f6b6ee
PB
4530 test -n "$CXX" && break
4531 done
4532fi
4533if test -z "$CXX"; then
4534 ac_ct_CXX=$CXX
81ecdfbb 4535 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4536do
4537 # Extract the first word of "$ac_prog", so it can be a program name with args.
4538set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540$as_echo_n "checking for $ac_word... " >&6; }
4541if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4543else
4544 if test -n "$ac_ct_CXX"; then
4545 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4546else
4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4554 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4556 break 2
512b7dfb 4557 fi
18f6b6ee 4558done
81ecdfbb
RW
4559 done
4560IFS=$as_save_IFS
512b7dfb 4561
18f6b6ee
PB
4562fi
4563fi
4564ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4565if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4567$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4568else
81ecdfbb
RW
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570$as_echo "no" >&6; }
18f6b6ee
PB
4571fi
4572
81ecdfbb 4573
18f6b6ee
PB
4574 test -n "$ac_ct_CXX" && break
4575done
18f6b6ee 4576
81ecdfbb
RW
4577 if test "x$ac_ct_CXX" = x; then
4578 CXX="g++"
4579 else
4580 case $cross_compiling:$ac_tool_warned in
4581yes:)
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4584ac_tool_warned=yes ;;
4585esac
4586 CXX=$ac_ct_CXX
4587 fi
18f6b6ee
PB
4588fi
4589
81ecdfbb
RW
4590 fi
4591fi
18f6b6ee 4592# Provide some information about the compiler.
81ecdfbb
RW
4593$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4594set X $ac_compile
4595ac_compiler=$2
4596for ac_option in --version -v -V -qversion; do
4597 { { ac_try="$ac_compiler $ac_option >&5"
4598case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601esac
4602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4603$as_echo "$ac_try_echo"; } >&5
4604 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4605 ac_status=$?
81ecdfbb
RW
4606 if test -s conftest.err; then
4607 sed '10a\
4608... rest of stderr output deleted ...
4609 10q' conftest.err >conftest.er1
4610 cat conftest.er1 >&5
4611 rm -f conftest.er1 conftest.err
4612 fi
4613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4614 test $ac_status = 0; }
4615done
18f6b6ee 4616
81ecdfbb
RW
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4618$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4619if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
18f6b6ee 4621else
81ecdfbb 4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4623/* end confdefs.h. */
4624
4625int
4626main ()
4627{
4628#ifndef __GNUC__
4629 choke me
4630#endif
4631
4632 ;
4633 return 0;
4634}
4635_ACEOF
81ecdfbb 4636if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4637 ac_compiler_gnu=yes
4638else
81ecdfbb 4639 ac_compiler_gnu=no
18f6b6ee 4640fi
81ecdfbb 4641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4642ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4643
4644fi
81ecdfbb
RW
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4646$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4647if test $ac_compiler_gnu = yes; then
4648 GXX=yes
4649else
4650 GXX=
4651fi
18f6b6ee
PB
4652ac_test_CXXFLAGS=${CXXFLAGS+set}
4653ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4655$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4656if test "${ac_cv_prog_cxx_g+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658else
4659 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4660 ac_cxx_werror_flag=yes
4661 ac_cv_prog_cxx_g=no
4662 CXXFLAGS="-g"
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4664/* end confdefs.h. */
4665
4666int
4667main ()
4668{
4669
4670 ;
4671 return 0;
4672}
4673_ACEOF
81ecdfbb 4674if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4675 ac_cv_prog_cxx_g=yes
4676else
81ecdfbb
RW
4677 CXXFLAGS=""
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4679/* end confdefs.h. */
81ecdfbb 4680
18f6b6ee
PB
4681int
4682main ()
4683{
81ecdfbb 4684
18f6b6ee
PB
4685 ;
4686 return 0;
4687}
4688_ACEOF
81ecdfbb 4689if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4690
81ecdfbb
RW
4691else
4692 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4693 CXXFLAGS="-g"
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4695/* end confdefs.h. */
81ecdfbb 4696
18f6b6ee
PB
4697int
4698main ()
4699{
81ecdfbb 4700
18f6b6ee
PB
4701 ;
4702 return 0;
4703}
4704_ACEOF
81ecdfbb
RW
4705if ac_fn_cxx_try_compile "$LINENO"; then :
4706 ac_cv_prog_cxx_g=yes
18f6b6ee 4707fi
81ecdfbb
RW
4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709fi
4710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711fi
4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4714fi
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4716$as_echo "$ac_cv_prog_cxx_g" >&6; }
4717if test "$ac_test_CXXFLAGS" = set; then
4718 CXXFLAGS=$ac_save_CXXFLAGS
4719elif test $ac_cv_prog_cxx_g = yes; then
4720 if test "$GXX" = yes; then
4721 CXXFLAGS="-g -O2"
4722 else
4723 CXXFLAGS="-g"
4724 fi
4725else
4726 if test "$GXX" = yes; then
4727 CXXFLAGS="-O2"
4728 else
4729 CXXFLAGS=
4730 fi
18f6b6ee 4731fi
18f6b6ee
PB
4732ac_ext=c
4733ac_cpp='$CPP $CPPFLAGS'
4734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737
4738
4739# We must set the default linker to the linker used by gcc for the correct
4740# operation of libtool. If LD is not defined and we are using gcc, try to
4741# set the LD default to the ld used by gcc.
4742if test -z "$LD"; then
4743 if test "$GCC" = yes; then
4744 case $build in
4745 *-*-mingw*)
4746 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4747 *)
4748 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4749 esac
4750 case $gcc_prog_ld in
4751 # Accept absolute paths.
4752 [\\/]* | [A-Za-z]:[\\/]*)
4753 LD="$gcc_prog_ld" ;;
4754 esac
4755 fi
512b7dfb
PB
4756fi
4757
4758
4759
4760
c6b750e1 4761if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4762 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4763set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765$as_echo_n "checking for $ac_word... " >&6; }
4766if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
9e07f89d 4768else
512b7dfb
PB
4769 if test -n "$GNATBIND"; then
4770 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4771else
c6b750e1
DJ
4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4779 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4781 break 2
4782 fi
4783done
81ecdfbb
RW
4784 done
4785IFS=$as_save_IFS
c6b750e1 4786
9e07f89d
NN
4787fi
4788fi
512b7dfb
PB
4789GNATBIND=$ac_cv_prog_GNATBIND
4790if test -n "$GNATBIND"; then
81ecdfbb
RW
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4792$as_echo "$GNATBIND" >&6; }
9e07f89d 4793else
81ecdfbb
RW
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795$as_echo "no" >&6; }
9e07f89d
NN
4796fi
4797
81ecdfbb 4798
c6b750e1 4799fi
512b7dfb
PB
4800if test -z "$ac_cv_prog_GNATBIND"; then
4801 ac_ct_GNATBIND=$GNATBIND
4802 # Extract the first word of "gnatbind", so it can be a program name with args.
4803set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805$as_echo_n "checking for $ac_word... " >&6; }
4806if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4807 $as_echo_n "(cached) " >&6
9e07f89d 4808else
512b7dfb
PB
4809 if test -n "$ac_ct_GNATBIND"; then
4810 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4811else
c6b750e1
DJ
4812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4819 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4821 break 2
4822 fi
4823done
81ecdfbb
RW
4824 done
4825IFS=$as_save_IFS
c6b750e1 4826
9e07f89d
NN
4827fi
4828fi
512b7dfb
PB
4829ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4830if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4832$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4833else
81ecdfbb
RW
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835$as_echo "no" >&6; }
9e07f89d
NN
4836fi
4837
81ecdfbb
RW
4838 if test "x$ac_ct_GNATBIND" = x; then
4839 GNATBIND="no"
4840 else
4841 case $cross_compiling:$ac_tool_warned in
4842yes:)
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4845ac_tool_warned=yes ;;
4846esac
4847 GNATBIND=$ac_ct_GNATBIND
4848 fi
24ff9987 4849else
512b7dfb 4850 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4851fi
4852
7df2cd5d 4853if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4854 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4855set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857$as_echo_n "checking for $ac_word... " >&6; }
4858if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
7df2cd5d 4860else
512b7dfb
PB
4861 if test -n "$GNATMAKE"; then
4862 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4863else
4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4871 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4873 break 2
4874 fi
4875done
81ecdfbb
RW
4876 done
4877IFS=$as_save_IFS
7df2cd5d
PB
4878
4879fi
4880fi
512b7dfb
PB
4881GNATMAKE=$ac_cv_prog_GNATMAKE
4882if test -n "$GNATMAKE"; then
81ecdfbb
RW
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4884$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4885else
81ecdfbb
RW
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887$as_echo "no" >&6; }
7df2cd5d
PB
4888fi
4889
81ecdfbb 4890
7df2cd5d 4891fi
512b7dfb
PB
4892if test -z "$ac_cv_prog_GNATMAKE"; then
4893 ac_ct_GNATMAKE=$GNATMAKE
4894 # Extract the first word of "gnatmake", so it can be a program name with args.
4895set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897$as_echo_n "checking for $ac_word... " >&6; }
4898if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4899 $as_echo_n "(cached) " >&6
7df2cd5d 4900else
512b7dfb
PB
4901 if test -n "$ac_ct_GNATMAKE"; then
4902 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4903else
4904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH
4906do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4911 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4913 break 2
4914 fi
4915done
81ecdfbb
RW
4916 done
4917IFS=$as_save_IFS
7df2cd5d 4918
7df2cd5d
PB
4919fi
4920fi
512b7dfb
PB
4921ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4922if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4924$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4925else
81ecdfbb
RW
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927$as_echo "no" >&6; }
7df2cd5d
PB
4928fi
4929
81ecdfbb
RW
4930 if test "x$ac_ct_GNATMAKE" = x; then
4931 GNATMAKE="no"
4932 else
4933 case $cross_compiling:$ac_tool_warned in
4934yes:)
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4937ac_tool_warned=yes ;;
4938esac
4939 GNATMAKE=$ac_ct_GNATMAKE
4940 fi
7df2cd5d 4941else
512b7dfb 4942 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4943fi
4944
81ecdfbb
RW
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4946$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4947if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
9e07f89d
NN
4949else
4950 cat >conftest.adb <<EOF
4951procedure conftest is begin null; end conftest;
4952EOF
4953acx_cv_cc_gcc_supports_ada=no
4954# There is a bug in old released versions of GCC which causes the
4955# driver to exit successfully when the appropriate language module
4956# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4957# Therefore we must check for the error message as well as an
4958# unsuccessful exit.
b8908782
DD
4959# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4960# given a .adb file, but produce no object file. So we must check
4961# if an object file was really produced to guard against this.
9e07f89d 4962errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4963if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4964 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4965fi
4966rm -f conftest.*
4967fi
81ecdfbb
RW
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4969$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 4970
512b7dfb 4971if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4972 have_gnat=yes
4973else
4974 have_gnat=no
4975fi
4976
81ecdfbb
RW
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4978$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4979if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4980 $as_echo_n "(cached) " >&6
b8908782
DD
4981else
4982 echo abfoo >t1
4983 echo cdfoo >t2
4984 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4985 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4986 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4987 :
4988 else
4989 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4990 fi
4991 fi
b8908782
DD
4992 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4993 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4994 :
b8908782
DD
4995 else
4996 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4997 fi
4998 fi
4999 rm t1 t2
5000
5001fi
81ecdfbb
RW
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5003$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5004do_compare="$gcc_cv_prog_cmp_skip"
5005
5006
9e07f89d 5007
e8a5fa9c 5008# See if we are building gcc with C++.
81ecdfbb
RW
5009# Check whether --enable-build-with-cxx was given.
5010if test "${enable_build_with_cxx+set}" = set; then :
5011 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5012else
5013 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5014fi
5015
e8a5fa9c
RW
5016
5017# Check for GMP, MPFR and MPC
4b900473 5018gmplibs="-lmpfr -lgmp"
4b1cb4fe 5019gmpinc=
4b900473 5020have_gmp=no
e8a5fa9c
RW
5021mpclibs=-lmpc
5022mpcinc=
5023have_mpc=no
5024
5025# Specify a location for mpc
5026# check for this first so it ends up on the link line before mpfr.
5027
81ecdfbb
RW
5028# Check whether --with-mpc was given.
5029if test "${with_mpc+set}" = set; then :
5030 withval=$with_mpc;
5031fi
e8a5fa9c 5032
e8a5fa9c 5033
81ecdfbb
RW
5034# Check whether --with-mpc_include was given.
5035if test "${with_mpc_include+set}" = set; then :
5036 withval=$with_mpc_include;
5037fi
e8a5fa9c 5038
e8a5fa9c 5039
81ecdfbb
RW
5040# Check whether --with-mpc_lib was given.
5041if test "${with_mpc_lib+set}" = set; then :
5042 withval=$with_mpc_lib;
5043fi
e8a5fa9c 5044
e8a5fa9c
RW
5045
5046if test "x$with_mpc" != x; then
5047 mpclibs="-L$with_mpc/lib -lmpc"
5048 mpcinc="-I$with_mpc/include $mpcinc"
5049fi
5050if test "x$with_mpc_include" != x; then
5051 mpcinc="-I$with_mpc_include $mpcinc"
5052fi
5053if test "x$with_mpc_lib" != x; then
5054 mpclibs="-L$with_mpc_lib -lmpc"
5055fi
5056if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5057 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
5058 mpcinc='-I$$s/mpc/src '"$mpcinc"
5059 # Do not test the mpc version. Assume that it is sufficient, since
5060 # it is in the source tree, and the library has not been built yet
5061 # but it would be included on the link line in the version check below
5062 # hence making the test fail.
5063 have_mpc=yes
5064fi
4b900473 5065
11b04d1f
DD
5066# Specify a location for mpfr
5067# check for this first so it ends up on the link line before gmp.
c6b750e1 5068
81ecdfbb
RW
5069# Check whether --with-mpfr-dir was given.
5070if test "${with_mpfr_dir+set}" = set; then :
5071 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5072Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5073fi
5074
11b04d1f
DD
5075
5076
81ecdfbb
RW
5077# Check whether --with-mpfr was given.
5078if test "${with_mpfr+set}" = set; then :
5079 withval=$with_mpfr;
5080fi
c6b750e1 5081
11b04d1f 5082
81ecdfbb
RW
5083# Check whether --with-mpfr_include was given.
5084if test "${with_mpfr_include+set}" = set; then :
5085 withval=$with_mpfr_include;
5086fi
c6b750e1 5087
8a0d8a5c 5088
81ecdfbb
RW
5089# Check whether --with-mpfr_lib was given.
5090if test "${with_mpfr_lib+set}" = set; then :
5091 withval=$with_mpfr_lib;
5092fi
8a0d8a5c 5093
11b04d1f
DD
5094
5095if test "x$with_mpfr" != x; then
5096 gmplibs="-L$with_mpfr/lib $gmplibs"
5097 gmpinc="-I$with_mpfr/include"
5098fi
8a0d8a5c
PB
5099if test "x$with_mpfr_include" != x; then
5100 gmpinc="-I$with_mpfr_include"
5101fi
5102if test "x$with_mpfr_lib" != x; then
5103 gmplibs="-L$with_mpfr_lib $gmplibs"
5104fi
4b900473
PB
5105if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5106 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
5107 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
e8a5fa9c 5108 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
4b900473
PB
5109 # Do not test the mpfr version. Assume that it is sufficient, since
5110 # it is in the source tree, and the library has not been built yet
5111 # but it would be included on the link line in the version check below
5112 # hence making the test fail.
5113 have_gmp=yes
5114fi
11b04d1f 5115
4b1cb4fe 5116# Specify a location for gmp
c6b750e1 5117
81ecdfbb
RW
5118# Check whether --with-gmp-dir was given.
5119if test "${with_gmp_dir+set}" = set; then :
5120 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5121Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5122fi
5123
4b1cb4fe
DD
5124
5125
81ecdfbb
RW
5126# Check whether --with-gmp was given.
5127if test "${with_gmp+set}" = set; then :
5128 withval=$with_gmp;
5129fi
c6b750e1 5130
4b1cb4fe 5131
81ecdfbb
RW
5132# Check whether --with-gmp_include was given.
5133if test "${with_gmp_include+set}" = set; then :
5134 withval=$with_gmp_include;
5135fi
c6b750e1 5136
8a0d8a5c 5137
81ecdfbb
RW
5138# Check whether --with-gmp_lib was given.
5139if test "${with_gmp_lib+set}" = set; then :
5140 withval=$with_gmp_lib;
5141fi
8a0d8a5c
PB
5142
5143
4b1cb4fe 5144
11b04d1f
DD
5145if test "x$with_gmp" != x; then
5146 gmplibs="-L$with_gmp/lib $gmplibs"
5147 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5148fi
8a0d8a5c
PB
5149if test "x$with_gmp_include" != x; then
5150 gmpinc="-I$with_gmp_include $gmpinc"
5151fi
5152if test "x$with_gmp_lib" != x; then
5153 gmplibs="-L$with_gmp_lib $gmplibs"
5154fi
4b900473
PB
5155if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5156 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
5157 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
e8a5fa9c
RW
5158 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
5159 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5160 # Do not test the gmp version. Assume that it is sufficient, since
5161 # it is in the source tree, and the library has not been built yet
5162 # but it would be included on the link line in the version check below
5163 # hence making the test fail.
5164 have_gmp=yes
5165fi
4b1cb4fe 5166
ceb92e78 5167if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5168 have_gmp=yes
5169 saved_CFLAGS="$CFLAGS"
5170 CFLAGS="$CFLAGS $gmpinc"
5171 # Check GMP actually works
81ecdfbb
RW
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5
5173$as_echo_n "checking for correct version of gmp.h... " >&6; }
c6b750e1 5174
81ecdfbb 5175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5176/* end confdefs.h. */
4b1cb4fe 5177#include "gmp.h"
c6b750e1
DJ
5178int
5179main ()
5180{
4b1cb4fe 5181
ef699244 5182 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4b900473
PB
5183 choke me
5184 #endif
c6b750e1
DJ
5185
5186 ;
5187 return 0;
5188}
5189_ACEOF
81ecdfbb
RW
5190if ac_fn_c_try_compile "$LINENO"; then :
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5192$as_echo "yes" >&6; }
c6b750e1 5193else
81ecdfbb
RW
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5196fi
81ecdfbb 5197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5198
e8a5fa9c 5199 # If we have GMP, check the MPFR version.
4b900473 5200 if test x"$have_gmp" = xyes; then
81ecdfbb
RW
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5
5202$as_echo_n "checking for correct version of mpfr.h... " >&6; }
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5204/* end confdefs.h. */
9b134994 5205#include <gmp.h>
4b900473 5206 #include <mpfr.h>
c6b750e1
DJ
5207int
5208main ()
5209{
9b134994 5210
ef699244 5211 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5212 choke me
5213 #endif
c6b750e1
DJ
5214
5215 ;
5216 return 0;
5217}
5218_ACEOF
81ecdfbb
RW
5219if ac_fn_c_try_compile "$LINENO"; then :
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5221/* end confdefs.h. */
4b1cb4fe 5222#include <gmp.h>
4b900473 5223 #include <mpfr.h>
c6b750e1
DJ
5224int
5225main ()
5226{
9dbaa842 5227
e28c595f 5228 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4b900473
PB
5229 choke me
5230 #endif
e8a5fa9c
RW
5231
5232 ;
5233 return 0;
5234}
5235_ACEOF
81ecdfbb
RW
5236if ac_fn_c_try_compile "$LINENO"; then :
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5238$as_echo "yes" >&6; }
e8a5fa9c 5239else
81ecdfbb
RW
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5241$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5242fi
81ecdfbb 5243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5244else
81ecdfbb
RW
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5247fi
81ecdfbb 5248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5249 fi
5250
5251 # Check for the MPC header version.
5252 if test x"$have_mpc" != xyes ; then
5253 CFLAGS="$CFLAGS $mpcinc"
81ecdfbb
RW
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5255$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5257/* end confdefs.h. */
5258#include <mpc.h>
5259int
5260main ()
5261{
5262
5263 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
5264 choke me
5265 #endif
5266
5267 ;
5268 return 0;
5269}
5270_ACEOF
81ecdfbb
RW
5271if ac_fn_c_try_compile "$LINENO"; then :
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5273$as_echo "yes" >&6; }; have_mpc=maybe
e8a5fa9c 5274else
81ecdfbb
RW
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
e8a5fa9c 5277fi
81ecdfbb 5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5279 fi
5280
5281 # Now check the MPFR library.
5282 if test x"$have_gmp" = xyes; then
5283 saved_LIBS="$LIBS"
5284 LIBS="$LIBS $gmplibs"
81ecdfbb
RW
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
5286$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5288/* end confdefs.h. */
5289#include <gmp.h>
5290 #include <mpfr.h>
5291int
5292main ()
5293{
5294
5295 mpfr_t n;
5296 mpfr_t x;
5297 int t;
5298 mpfr_init (n);
5299 mpfr_init (x);
5300 mpfr_atan2 (n, n, x, GMP_RNDN);
5301 mpfr_erfc (n, x, GMP_RNDN);
5302 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
5303
5304 ;
5305 return 0;
5306}
5307_ACEOF
81ecdfbb
RW
5308if ac_fn_c_try_link "$LINENO"; then :
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5310$as_echo "yes" >&6; }
c6b750e1 5311else
81ecdfbb
RW
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5314fi
81ecdfbb
RW
5315rm -f core conftest.err conftest.$ac_objext \
5316 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5317 LIBS="$saved_LIBS"
5318 fi
5319
5320 if test x"$have_mpc" = xmaybe; then
5321 saved_LIBS="$LIBS"
5322 LIBS="$LIBS $mpclibs $gmplibs"
81ecdfbb
RW
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc library" >&5
5324$as_echo_n "checking for the correct version of the mpc library... " >&6; }
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5326/* end confdefs.h. */
5327#include <mpc.h>
5328int
5329main ()
5330{
5331
5332 mpc_t n;
5333 mpc_init2 (n, 53);
5334 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5335 mpc_sin (n, n, MPC_RNDNN);
5336 mpc_cos (n, n, MPC_RNDNN);
5337 mpc_tan (n, n, MPC_RNDNN);
5338 mpc_sinh (n, n, MPC_RNDNN);
5339 mpc_cosh (n, n, MPC_RNDNN);
5340 mpc_tanh (n, n, MPC_RNDNN);
5341 mpc_exp (n, n, MPC_RNDNN);
5342 mpc_log (n, n, MPC_RNDNN);
5343 mpc_sqrt (n, n, MPC_RNDNN);
5344 mpc_proj (n, n, MPC_RNDNN);
5345 mpc_neg (n, n, MPC_RNDNN);
5346 mpc_sqr (n, n, MPC_RNDNN);
5347 mpc_clear (n);
5348
5349 ;
5350 return 0;
5351}
5352_ACEOF
81ecdfbb
RW
5353if ac_fn_c_try_link "$LINENO"; then :
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5355$as_echo "yes" >&6; }; have_mpc=yes
c6b750e1 5356else
81ecdfbb
RW
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
c6b750e1 5359fi
81ecdfbb
RW
5360rm -f core conftest.err conftest.$ac_objext \
5361 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c 5362 LIBS="$saved_LIBS"
4b900473 5363 fi
e8a5fa9c 5364
4b900473 5365 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5366
4b900473 5367 if test x$have_gmp != xyes; then
81ecdfbb 5368 as_fn_error "Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
9dbaa842
DD
5369Try the --with-gmp and/or --with-mpfr options to specify their locations.
5370Copies of these libraries' source code can be found at their respective
5371hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
5372See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5373If you obtained GMP and/or MPFR from a vendor distribution package, make
5374sure that you have installed both the libraries and the header files.
81ecdfbb 5375They may be located in separate packages." "$LINENO" 5
4b900473 5376 fi
9dbaa842
DD
5377fi
5378
e8a5fa9c
RW
5379if test x$have_mpc != xyes ; then
5380 mpcinc=
5381 mpclibs=
5382fi
5383
5384gmpinc="$mpcinc $gmpinc"
5385gmplibs="$mpclibs $gmplibs"
5386
5387# Flags needed for both GMP, MPFR and/or MPC.
5388
5389
5390
4b1cb4fe
DD
5391
5392
5393
29383458
JM
5394# Allow host libstdc++ to be specified for static linking with PPL.
5395
81ecdfbb
RW
5396# Check whether --with-host-libstdcxx was given.
5397if test "${with_host_libstdcxx+set}" = set; then :
5398 withval=$with_host_libstdcxx;
5399fi
29383458 5400
29383458
JM
5401
5402case $with_host_libstdcxx in
5403 no|yes)
81ecdfbb 5404 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5405 ;;
5406esac
e28c595f 5407
e8a5fa9c
RW
5408# Linker flags to use for stage1 or when not boostrapping.
5409
81ecdfbb
RW
5410# Check whether --with-stage1-ldflags was given.
5411if test "${with_stage1_ldflags+set}" = set; then :
5412 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5413 stage1_ldflags=
5414 else
5415 stage1_ldflags=$withval
5416 fi
5417else
5418 stage1_ldflags=
81ecdfbb
RW
5419fi
5420
e8a5fa9c
RW
5421
5422
5423# Libraries to use for stage1 or when not bootstrapping.
5424
81ecdfbb
RW
5425# Check whether --with-stage1-libs was given.
5426if test "${with_stage1_libs+set}" = set; then :
5427 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5428 stage1_libs=
5429 else
5430 stage1_libs=$withval
5431 fi
5432else
5433 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5434fi
5435
e8a5fa9c
RW
5436
5437
5438# Linker flags to use for stage2 and later builds.
5439
81ecdfbb
RW
5440# Check whether --with-boot-ldflags was given.
5441if test "${with_boot_ldflags+set}" = set; then :
5442 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5443 poststage1_ldflags=
5444 else
5445 poststage1_ldflags=$withval
5446 fi
5447else
5448 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5449 poststage1_ldflags=-static-libstdc++
5450 else
5451 poststage1_ldflags=
5452 fi
81ecdfbb
RW
5453fi
5454
e8a5fa9c
RW
5455
5456
5457# Libraries to use for stage2 and later builds. This defaults to the
5458# argument passed to --with-host-libstdcxx.
5459
81ecdfbb
RW
5460# Check whether --with-boot-libs was given.
5461if test "${with_boot_libs+set}" = set; then :
5462 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5463 poststage1_libs=
5464 else
5465 poststage1_libs=$withval
5466 fi
5467else
5468 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5469fi
5470
e8a5fa9c
RW
5471
5472
e28c595f
JM
5473# Check for PPL
5474ppl_major_version=0
5475ppl_minor_version=10
e8a5fa9c 5476ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5477pplinc=
5478
5479
81ecdfbb
RW
5480# Check whether --with-ppl was given.
5481if test "${with_ppl+set}" = set; then :
5482 withval=$with_ppl;
e8a5fa9c
RW
5483else
5484 with_ppl=no
81ecdfbb 5485fi
e28c595f 5486
e28c595f 5487
81ecdfbb
RW
5488# Check whether --with-ppl_include was given.
5489if test "${with_ppl_include+set}" = set; then :
5490 withval=$with_ppl_include;
5491fi
5492
e28c595f 5493
81ecdfbb
RW
5494# Check whether --with-ppl_lib was given.
5495if test "${with_ppl_lib+set}" = set; then :
5496 withval=$with_ppl_lib;
5497fi
e28c595f 5498
e28c595f 5499
29383458
JM
5500case $with_ppl in
5501 no)
5502 ppllibs=
5503 ;;
5504 *)
e8a5fa9c 5505 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458
JM
5506 pplinc="-I$with_ppl/include $pplinc"
5507 LIBS="$ppllibs $LIBS"
5508 ;;
5509esac
e28c595f
JM
5510if test "x$with_ppl_include" != x; then
5511 pplinc="-I$with_ppl_include $pplinc"
5512fi
5513if test "x$with_ppl_lib" != x; then
e8a5fa9c 5514 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5515 LIBS="$ppllibs $LIBS"
5516fi
5517if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
e8a5fa9c 5518 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
e28c595f
JM
5519 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5520 LIBS="$ppllibs $LIBS"
5521fi
5522
81ecdfbb
RW
5523# Check whether --enable-ppl-version-check was given.
5524if test "${enable_ppl_version_check+set}" = set; then :
5525 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5526else
5527 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5528fi
5529
e28c595f
JM
5530
5531if test "${ENABLE_PPL_CHECK}" = "yes"; then
5532 saved_CFLAGS="$CFLAGS"
5533 CFLAGS="$CFLAGS $pplinc $gmpinc"
81ecdfbb
RW
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5535$as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5537/* end confdefs.h. */
5538#include "ppl_c.h"
5539int
5540main ()
5541{
5542
5543 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5544 choke me
5545 #endif
5546
5547 ;
5548 return 0;
5549}
5550_ACEOF
81ecdfbb
RW
5551if ac_fn_c_try_compile "$LINENO"; then :
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553$as_echo "yes" >&6; }
e28c595f 5554else
81ecdfbb
RW
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }; ppllibs= ; pplinc=
e28c595f 5557fi
81ecdfbb 5558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5559 CFLAGS="$saved_CFLAGS"
5560fi
5561
5562# Flags needed for PPL
5563
5564
5565
5566
5567# Check for CLOOG
5568clooglibs=" -lcloog "
5569clooginc=" -DCLOOG_PPL_BACKEND "
5570
5571
81ecdfbb
RW
5572# Check whether --with-cloog was given.
5573if test "${with_cloog+set}" = set; then :
5574 withval=$with_cloog;
e8a5fa9c
RW
5575else
5576 with_cloog=no
81ecdfbb
RW
5577fi
5578
e28c595f 5579
81ecdfbb
RW
5580# Check whether --with-cloog_include was given.
5581if test "${with_cloog_include+set}" = set; then :
5582 withval=$with_cloog_include;
5583fi
e28c595f 5584
e28c595f 5585
81ecdfbb
RW
5586# Check whether --with-cloog_lib was given.
5587if test "${with_cloog_lib+set}" = set; then :
5588 withval=$with_cloog_lib;
5589fi
e28c595f 5590
e28c595f 5591
29383458
JM
5592case $with_cloog in
5593 no)
5594 clooglibs=
5595 clooginc=
5596 ;;
5597 *)
5598 clooglibs="-L$with_cloog/lib -lcloog"
5599 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5600 LIBS="$clooglibs $LIBS"
5601 ;;
5602esac
e28c595f
JM
5603if test "x$with_cloog_include" != x; then
5604 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5605fi
5606if test "x$with_cloog_lib" != x; then
5607 clooglibs="-L$with_cloog_lib -lcloog"
5608 LIBS="$clooglibs $LIBS"
5609fi
5610if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5611 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5612 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5613 LIBS="$clooglibs $LIBS"
5614fi
5615
81ecdfbb
RW
5616# Check whether --enable-cloog-version-check was given.
5617if test "${enable_cloog_version_check+set}" = set; then :
5618 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
e28c595f
JM
5619else
5620 ENABLE_CLOOG_CHECK=yes
81ecdfbb
RW
5621fi
5622
e28c595f
JM
5623
5624if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5625 saved_CFLAGS="$CFLAGS"
5626 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
81ecdfbb
RW
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
5628$as_echo_n "checking for correct version of CLooG... " >&6; }
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5630/* end confdefs.h. */
5631#include "cloog/cloog.h"
5632int
5633main ()
5634{
5635
5636 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
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
5646$as_echo "yes" >&6; }
e28c595f 5647else
81ecdfbb
RW
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649$as_echo "no" >&6; }; clooglibs= ; clooginc=
e28c595f 5650fi
81ecdfbb 5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5652 CFLAGS="$saved_CFLAGS"
5653fi
5654
5655# Flags needed for CLOOG
5656
5657
5658
5659
947f426e 5660# By default, C is the only stage 1 language.
9b134994 5661stage1_languages=,c,
1d39f329 5662
e8a5fa9c
RW
5663# Target libraries that we bootstrap.
5664bootstrap_target_libs=,target-libgcc,
5665
9e07f89d
NN
5666# Figure out what language subdirectories are present.
5667# Look if the user specified --enable-languages="..."; if not, use
5668# the environment variable $LANGUAGES if defined. $LANGUAGES might
5669# go away some day.
5670# NB: embedded tabs in this IF block -- do not untabify
5671if test -d ${srcdir}/gcc; then
5672 if test x"${enable_languages+set}" != xset; then
5673 if test x"${LANGUAGES+set}" = xset; then
5674 enable_languages="${LANGUAGES}"
5675 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5676 else
5677 enable_languages=all
5678 fi
5679 else
5680 if test x"${enable_languages}" = x ||
5681 test x"${enable_languages}" = xyes;
5682 then
5683 echo configure.in: --enable-languages needs at least one language argument 1>&2
5684 exit 1
5685 fi
5686 fi
5687 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5688
096f7d00
DE
5689 # 'f95' is the old name for the 'fortran' language. We issue a warning
5690 # and make the substitution.
5691 case ,${enable_languages}, in
5692 *,f95,*)
5693 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5694 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5695 ;;
5696 esac
5697
9e07f89d
NN
5698 # First scan to see if an enabled language requires some other language.
5699 # We assume that a given config-lang.in will list all the language
5700 # front ends it requires, even if some are required indirectly.
5701 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5702 case ${lang_frag} in
5703 ..) ;;
5704 # The odd quoting in the next line works around
5705 # an apparent bug in bash 1.12 on linux.
5706 ${srcdir}/gcc/[*]/config-lang.in) ;;
5707 *)
5708 # From the config-lang.in, get $language, $lang_requires
5709 language=
5710 lang_requires=
5711 . ${lang_frag}
5712 for other in ${lang_requires} ; do
5713 case ,${enable_languages}, in
5714 *,$other,*) ;;
5715 *,all,*) ;;
5716 *,$language,*)
5717 echo " \`$other' language required by \`$language'; enabling" 1>&2
5718 enable_languages="${enable_languages},${other}"
5719 ;;
5720 esac
5721 done
5722 ;;
5723 esac
5724 done
5725
9b134994 5726 new_enable_languages=,c,
9e07f89d 5727 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 5728 potential_languages=,c,
9e07f89d
NN
5729
5730 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5731 case ${lang_frag} in
5732 ..) ;;
5733 # The odd quoting in the next line works around
5734 # an apparent bug in bash 1.12 on linux.
5735 ${srcdir}/gcc/[*]/config-lang.in) ;;
5736 *)
c6b750e1 5737 # From the config-lang.in, get $language, $target_libs,
1d39f329 5738 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
5739 language=
5740 target_libs=
5741 lang_dirs=
64ce424c 5742 subdir_requires=
9b134994
PB
5743 boot_language=no
5744 build_by_default=yes
9e07f89d 5745 . ${lang_frag}
9b134994
PB
5746 if test x${language} = x; then
5747 echo "${lang_frag} doesn't set \$language." 1>&2
5748 exit 1
5749 fi
5750
e8a5fa9c
RW
5751 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5752 boot_language=yes
5753 fi
5754
9b134994
PB
5755 case ,${enable_languages}, in
5756 *,${language},*)
9e07f89d
NN
5757 # Language was explicitly selected; include it.
5758 add_this_lang=yes
5759 ;;
9b134994
PB
5760 *,all,*)
5761 # 'all' was selected, select it if it is a default language
5762 add_this_lang=${build_by_default}
9e07f89d
NN
5763 ;;
5764 *)
5765 add_this_lang=no
5766 ;;
5767 esac
4b1cb4fe 5768
64ce424c 5769 # Disable languages that need other directories if these aren't available.
1f3f1bbf 5770 for i in $subdir_requires; do
3d3adb43 5771 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
5772 case ,${enable_languages}, in
5773 *,${language},*)
5774 # Specifically requested language; tell them.
81ecdfbb 5775 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
5776 ;;
5777 *)
5778 # Silently disable.
9b134994 5779 add_this_lang=unsupported
64ce424c
PB
5780 ;;
5781 esac
5782 done
5783
9b134994
PB
5784 # Disable Ada if no preexisting GNAT is available.
5785 case ,${enable_languages},:${language}:${have_gnat} in
5786 *,${language},*:ada:no)
5787 # Specifically requested language; tell them.
81ecdfbb 5788 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
5789 ;;
5790 *:ada:no)
5791 # Silently disable.
5792 add_this_lang=unsupported
5793 ;;
5794 esac
5795
59f7ec45
HPN
5796 # Disable a language that is unsupported by the target.
5797 case " $unsupported_languages " in
5798 *" $language "*)
9b134994 5799 add_this_lang=unsupported
59f7ec45
HPN
5800 ;;
5801 esac
5802
4b1cb4fe 5803 case $add_this_lang in
9b134994 5804 unsupported)
9e07f89d 5805 # Remove language-dependent dirs.
1d39f329
NN
5806 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5807 ;;
9b134994
PB
5808 no)
5809 # Remove language-dependent dirs; still show language as supported.
5810 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5811 potential_languages="${potential_languages}${language},"
5812 ;;
5813 yes)
5814 new_enable_languages="${new_enable_languages}${language},"
5815 potential_languages="${potential_languages}${language},"
1d39f329
NN
5816 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5817 case ${boot_language} in
5818 yes)
4fa63067 5819 # Add to (comma-separated) list of stage 1 languages.
9b134994 5820 stage1_languages="${stage1_languages}${language},"
e8a5fa9c
RW
5821 # We need to bootstrap any supporting libraries.
5822 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
5823 ;;
5824 esac
5825 ;;
9e07f89d
NN
5826 esac
5827 ;;
5828 esac
5829 done
5830
81ecdfbb
RW
5831 # Check whether --enable-stage1-languages was given.
5832if test "${enable_stage1_languages+set}" = set; then :
5833 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
5834 ,no,|,,)
5835 # Set it to something that will have no effect in the loop below
5836 enable_stage1_languages=c ;;
5837 ,yes,)
5838 enable_stage1_languages=`echo $new_enable_languages | \
5839 sed -e "s/^,//" -e "s/,$//" ` ;;
5840 *,all,*)
5841 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5842 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5843 esac
5844
5845 # Add "good" languages from enable_stage1_languages to stage1_languages,
5846 # while "bad" languages go in missing_languages. Leave no duplicates.
5847 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5848 case $potential_languages in
5849 *,$i,*)
5850 case $stage1_languages in
5851 *,$i,*) ;;
5852 *) stage1_languages="$stage1_languages$i," ;;
5853 esac ;;
5854 *)
5855 case $missing_languages in
5856 *,$i,*) ;;
5857 *) missing_languages="$missing_languages$i," ;;
5858 esac ;;
5859 esac
5860 done
81ecdfbb
RW
5861fi
5862
9b134994
PB
5863
5864 # Remove leading/trailing commas that were added for simplicity
5865 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 5866 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
5867 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5868 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5869
9e07f89d 5870 if test "x$missing_languages" != x; then
81ecdfbb 5871 as_fn_error "
27258dd4 5872The following requested languages could not be built: ${missing_languages}
81ecdfbb 5873Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 5874 fi
9e07f89d
NN
5875 if test "x$new_enable_languages" != "x$enable_languages"; then
5876 echo The following languages will be built: ${new_enable_languages}
9b134994 5877 enable_languages="$new_enable_languages"
9e07f89d 5878 fi
9b134994 5879
c6b750e1 5880
81ec575a 5881 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5882fi
5883
a6df5a19
PB
5884# Handle --disable-<component> generically.
5885for dir in $configdirs $build_configdirs $target_configdirs ; do
5886 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5887 varname=`echo $dirname | sed -e s/+/_/g`
5888 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5889 noconfigdirs="$noconfigdirs $dir"
5890 fi
5891done
5892
4f0ef2d8 5893# Check for Boehm's garbage collector
81ecdfbb
RW
5894# Check whether --enable-objc-gc was given.
5895if test "${enable_objc_gc+set}" = set; then :
5896 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 5897 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 5898 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
5899 ;;
5900esac
81ecdfbb
RW
5901fi
5902
4f0ef2d8
CD
5903
5904# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5905case ,${enable_languages},:${enable_objc_gc} in
5906 *,objc,*:yes)
4f0ef2d8
CD
5907 # Keep target-boehm-gc if requested for Objective-C.
5908 ;;
4f0ef2d8 5909 *)
d42c4017
DA
5910 # Otherwise remove target-boehm-gc depending on target-libjava.
5911 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5912 noconfigdirs="$noconfigdirs target-boehm-gc"
5913 fi
4f0ef2d8
CD
5914 ;;
5915esac
5916
caeba88f
AL
5917# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5918# $build_configdirs and $target_configdirs.
9e07f89d
NN
5919# If we have the source for $noconfigdirs entries, add them to $notsupp.
5920
5921notsupp=""
5922for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5923 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5924 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5925 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5926 if test -r $srcdir/$dirname/configure ; then
5927 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5928 true
5929 else
5930 notsupp="$notsupp $dir"
5931 fi
5932 fi
5933 fi
caeba88f
AL
5934 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5935 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5936 if test -r $srcdir/$dirname/configure ; then
5937 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5938 true
5939 else
5940 notsupp="$notsupp $dir"
5941 fi
5942 fi
5943 fi
9e07f89d
NN
5944 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5945 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5946 if test -r $srcdir/$dirname/configure ; then
5947 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5948 true
5949 else
5950 notsupp="$notsupp $dir"
5951 fi
5952 fi
5953 fi
5954done
5955
5956# Sometimes the tools are distributed with libiberty but with no other
5957# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5958# Don't let libgcc imply libiberty either.
9e07f89d 5959if test -n "${target_configdirs}" ; then
f86e35b8 5960 libgcc=
9e07f89d
NN
5961 others=
5962 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5963 if test "$i" = "libgcc"; then
5964 libgcc=target-libgcc
5965 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5966 if test -r $srcdir/$i/configure ; then
5967 others=yes;
5968 break;
5969 fi
5970 fi
5971 done
5972 if test -z "${others}" ; then
f86e35b8 5973 target_configdirs=$libgcc
9e07f89d
NN
5974 fi
5975fi
5976
5977# Quietly strip out all directories which aren't configurable in this tree.
5978# This relies on all configurable subdirectories being autoconfiscated, which
5979# is now the case.
6a9cf61e
PB
5980build_configdirs_all="$build_configdirs"
5981build_configdirs=
5982for i in ${build_configdirs_all} ; do
c6b750e1 5983 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5984 if test -f ${srcdir}/$j/configure ; then
5985 build_configdirs="${build_configdirs} $i"
5986 fi
5987done
5988
9e07f89d
NN
5989configdirs_all="$configdirs"
5990configdirs=
5991for i in ${configdirs_all} ; do
5992 if test -f ${srcdir}/$i/configure ; then
5993 configdirs="${configdirs} $i"
5994 fi
5995done
6a9cf61e 5996
9e07f89d
NN
5997target_configdirs_all="$target_configdirs"
5998target_configdirs=
5999for i in ${target_configdirs_all} ; do
c6b750e1 6000 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6001 if test -f ${srcdir}/$j/configure ; then
6002 target_configdirs="${target_configdirs} $i"
6003 fi
6004done
6005
6006# Produce a warning message for the subdirs we can't configure.
6007# This isn't especially interesting in the Cygnus tree, but in the individual
6008# FSF releases, it's important to let people know when their machine isn't
6009# supported by the one or two programs in a package.
6010
6011if test -n "${notsupp}" && test -z "${norecursion}" ; then
6012 # If $appdirs is non-empty, at least one of those directories must still
6013 # be configured, or we error out. (E.g., if the gas release supports a
6014 # specified target in some subdirs but not the gas subdir, we shouldn't
6015 # pretend that all is well.)
6016 if test -n "$appdirs" ; then
6017 for dir in $appdirs ; do
6018 if test -r $dir/Makefile.in ; then
6019 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6020 appdirs=""
6021 break
6022 fi
6a9cf61e 6023 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6024 appdirs=""
6025 break
6026 fi
6027 fi
6028 done
6029 if test -n "$appdirs" ; then
6030 echo "*** This configuration is not supported by this package." 1>&2
6031 exit 1
6032 fi
6033 fi
6034 # Okay, some application will build, or we don't care to check. Still
6035 # notify of subdirs not getting built.
6036 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6037 echo " ${notsupp}" 1>&2
6038 echo " (Any other directories should still work fine.)" 1>&2
6039fi
6040
6041case "$host" in
6042 *msdosdjgpp*)
6043 enable_gdbtk=no ;;
6044esac
6045
18f6b6ee
PB
6046# To find our prefix, in gcc_cv_tool_prefix.
6047
6048# The user is always right.
6049if test "${PATH_SEPARATOR+set}" != set; then
6050 echo "#! /bin/sh" >conf$$.sh
6051 echo "exit 0" >>conf$$.sh
6052 chmod +x conf$$.sh
6053 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6054 PATH_SEPARATOR=';'
6055 else
6056 PATH_SEPARATOR=:
6057 fi
6058 rm -f conf$$.sh
6059fi
6060
6061
6062
6063if test "x$exec_prefix" = xNONE; then
6064 if test "x$prefix" = xNONE; then
6065 gcc_cv_tool_prefix=$ac_default_prefix
6066 else
6067 gcc_cv_tool_prefix=$prefix
6068 fi
6069else
6070 gcc_cv_tool_prefix=$exec_prefix
6071fi
6072
6073# If there is no compiler in the tree, use the PATH only. In any
6074# case, if there is no compiler in the tree nobody should use
6075# AS_FOR_TARGET and LD_FOR_TARGET.
6076if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6077 gcc_version=`cat $srcdir/gcc/BASE-VER`
6078 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6079 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6080 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6081 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6082 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6083 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6084else
6085 gcc_cv_tool_dirs=
6086fi
6087
6088if test x$build = x$target && test -n "$md_exec_prefix"; then
6089 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6090fi
6091
6092
6093
9e07f89d
NN
6094copy_dirs=
6095
c6b750e1 6096
81ecdfbb
RW
6097# Check whether --with-build-sysroot was given.
6098if test "${with_build_sysroot+set}" = set; then :
6099 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6100 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6101 fi
6102else
6103 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6104fi
a19b6204
MM
6105
6106
8a6ee3ab 6107
81ecdfbb
RW
6108
6109# Check whether --with-debug-prefix-map was given.
6110if test "${with_debug_prefix_map+set}" = set; then :
6111 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6112 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6113 for debug_map in $withval; do
6114 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6115 done
6116 fi
6117else
6118 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6119fi
6120
8a6ee3ab
JM
6121
6122
7f6ef0c0
PB
6123# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6124# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6125# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6126# We want to ensure that TARGET libraries (which we know are built with
6127# gcc) are built with "-O2 -g", so include those options when setting
6128# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6129if test "x$CFLAGS_FOR_TARGET" = x; then
6130 CFLAGS_FOR_TARGET=$CFLAGS
6131 case " $CFLAGS " in
6132 *" -O2 "*) ;;
6133 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6134 esac
6135 case " $CFLAGS " in
6136 *" -g "* | *" -g3 "*) ;;
6137 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6138 esac
6139fi
6140
6141
6142if test "x$CXXFLAGS_FOR_TARGET" = x; then
6143 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6144 case " $CXXFLAGS " in
6145 *" -O2 "*) ;;
6146 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6147 esac
6148 case " $CXXFLAGS " in
6149 *" -g "* | *" -g3 "*) ;;
6150 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6151 esac
6152fi
6153
6154
9e07f89d
NN
6155# Handle --with-headers=XXX. If the value is not "yes", the contents of
6156# the named directory are copied to $(tooldir)/sys-include.
6157if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6158 if test x${is_cross_compiler} = xno ; then
6159 echo 1>&2 '***' --with-headers is only supported when cross compiling
6160 exit 1
6161 fi
6162 if test x"${with_headers}" != xyes ; then
18f6b6ee 6163 x=${gcc_cv_tool_prefix}
c6b750e1 6164 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6165 fi
6166fi
6167
6168# Handle --with-libs=XXX. If the value is not "yes", the contents of
6169# the name directories are copied to $(tooldir)/lib. Multiple directories
6170# are permitted.
6171if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6172 if test x${is_cross_compiler} = xno ; then
6173 echo 1>&2 '***' --with-libs is only supported when cross compiling
6174 exit 1
6175 fi
6176 if test x"${with_libs}" != xyes ; then
6177 # Copy the libraries in reverse order, so that files in the first named
6178 # library override files in subsequent libraries.
18f6b6ee 6179 x=${gcc_cv_tool_prefix}
9e07f89d 6180 for l in ${with_libs}; do
c6b750e1 6181 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6182 done
6183 fi
6184fi
6185
2429c060
PB
6186# Set with_gnu_as and with_gnu_ld as appropriate.
6187#
6188# This is done by determining whether or not the appropriate directory
6189# is available, and by checking whether or not specific configurations
6190# have requested that this magic not happen.
c6b750e1
DJ
6191#
6192# The command line options always override the explicit settings in
2429c060
PB
6193# configure.in, and the settings in configure.in override this magic.
6194#
c6b750e1 6195# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
6196# want to do that, then you should use the --without-gnu-as and
6197# --without-gnu-ld options for the configure script.
6198
6199if test x${use_gnu_as} = x &&
6200 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6201 with_gnu_as=yes
6202 extra_host_args="$extra_host_args --with-gnu-as"
6203fi
6204
6205if test x${use_gnu_ld} = x &&
93f9b408 6206 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6207 with_gnu_ld=yes
6208 extra_host_args="$extra_host_args --with-gnu-ld"
6209fi
6210
6211# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6212# can detect this case.
6213
6214if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6215 with_newlib=yes
6216 extra_host_args="$extra_host_args --with-newlib"
6217fi
6218
9e07f89d
NN
6219# Handle ${copy_dirs}
6220set fnord ${copy_dirs}
6221shift
6222while test $# != 0 ; do
6223 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6224 :
6225 else
6226 echo Copying $1 to $2
6227
6228 # Use the install script to create the directory and all required
6229 # parent directories.
6230 if test -d $2 ; then
6231 :
6232 else
6233 echo >config.temp
6234 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6235 fi
6236
6237 # Copy the directory, assuming we have tar.
6238 # FIXME: Should we use B in the second tar? Not all systems support it.
6239 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6240
6241 # It is the responsibility of the user to correctly adjust all
6242 # symlinks. If somebody can figure out how to handle them correctly
6243 # here, feel free to add the code.
6244
6245 echo $1 > $2/COPIED
6246 fi
6247 shift; shift
6248done
6249
2429c060
PB
6250# Determine a target-dependent exec_prefix that the installed
6251# gcc will search in. Keep this list sorted by triplet, with
6252# the *-*-osname triplets last.
6253md_exec_prefix=
6254case "${target}" in
6255 alpha*-*-*vms*)
6256 md_exec_prefix=/gnu/lib/gcc-lib
6257 ;;
521ec477 6258 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6259 md_exec_prefix=/dev/env/DJDIR/bin
6260 ;;
521ec477 6261 i[34567]86-*-sco3.2v5*)
2429c060
PB
6262 if test $with_gnu_as = yes; then
6263 md_exec_prefix=/usr/gnu/bin
6264 else
6265 md_exec_prefix=/usr/ccs/bin/elf
6266 fi
6267 ;;
6268
6269 mn10300-*-* | \
6270 powerpc-*-chorusos* | \
6271 powerpc*-*-eabi* | \
6272 powerpc*-*-sysv* | \
6273 powerpc*-*-kaos* | \
6274 s390x-ibm-tpf*)
6275 md_exec_prefix=/usr/ccs/bin
6276 ;;
6277 sparc64-*-elf*)
6278 ;;
6279 v850*-*-*)
6280 md_exec_prefix=/usr/ccs/bin
6281 ;;
8b66833e 6282 xtensa*-*-elf*)
2429c060
PB
6283 ;;
6284
6285 *-*-beos* | \
6286 *-*-elf* | \
6287 *-*-hpux* | \
6288 *-*-netware* | \
6289 *-*-nto-qnx* | \
6290 *-*-rtems* | \
6291 *-*-solaris2* | \
521ec477 6292 *-*-sysv[45]* | \
2429c060
PB
6293 *-*-vxworks* | \
6294 *-wrs-windiss)
6295 md_exec_prefix=/usr/ccs/bin
6296 ;;
6297esac
6298
a0da8069
NN
6299extra_arflags_for_target=
6300extra_nmflags_for_target=
6301extra_ranlibflags_for_target=
6302target_makefile_frag=/dev/null
6303case "${target}" in
4e206d7e
DB
6304 mep*-*-*)
6305 target_makefile_frag="config/mt-mep"
6306 ;;
77d7106f
AM
6307 spu-*-*)
6308 target_makefile_frag="config/mt-spu"
6309 ;;
429acdec
RS
6310 mips*-sde-elf*)
6311 target_makefile_frag="config/mt-sde"
6312 ;;
f3b1e08e
RS
6313 mipsisa*-*-elfoabi*)
6314 target_makefile_frag="config/mt-mips-elfoabi"
6315 ;;
e7c8859c
RS
6316 mips*-*-*linux* | mips*-*-gnu*)
6317 target_makefile_frag="config/mt-mips-gnu"
6318 ;;
2a3124ca 6319 *-*-netware*)
a0da8069
NN
6320 target_makefile_frag="config/mt-netware"
6321 ;;
29383458 6322 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6323 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6324 ;;
6325 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6326 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6327 # commands to handle both 32-bit and 64-bit objects. These flags are
6328 # harmless if we're using GNU nm or ar.
6329 extra_arflags_for_target=" -X32_64"
6330 extra_nmflags_for_target=" -B -X32_64"
6331 ;;
6332 *-*-darwin*)
6333 # ranlib from Darwin requires the -c flag to look at common symbols.
6334 extra_ranlibflags_for_target=" -c"
6335 ;;
6336 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6337 target_makefile_frag="config/mt-wince"
6338 ;;
6339esac
6340
6341alphaieee_frag=/dev/null
6342case $target in
6343 alpha*-*-*)
6344 # This just makes sure to use the -mieee option to build target libs.
6345 # This should probably be set individually by each library.
6346 alphaieee_frag="config/mt-alphaieee"
6347 ;;
6348esac
6349
6350# If --enable-target-optspace always use -Os instead of -O2 to build
6351# the target libraries, similarly if it is not specified, use -Os
6352# on selected platforms.
6353ospace_frag=/dev/null
6354case "${enable_target_optspace}:${target}" in
6355 yes:*)
6356 ospace_frag="config/mt-ospace"
6357 ;;
6358 :d30v-*)
6359 ospace_frag="config/mt-d30v"
6360 ;;
6361 :m32r-* | :d10v-* | :fr30-*)
6362 ospace_frag="config/mt-ospace"
6363 ;;
6364 no:* | :*)
6365 ;;
6366 *)
6367 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6368 ;;
6369esac
6370
a0da8069
NN
6371# Default to using --with-stabs for certain targets.
6372if test x${with_stabs} = x ; then
6373 case "${target}" in
e31d1ea3 6374 mips*-*-irix[56]*)
a0da8069
NN
6375 ;;
6376 mips*-*-* | alpha*-*-osf*)
6377 with_stabs=yes;
6378 extra_host_args="${extra_host_args} --with-stabs"
6379 ;;
6380 esac
6381fi
6382
6383# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6384# them automatically.
6385case "${host}" in
c6b750e1 6386 hppa*64*-*-hpux11*)
a0da8069
NN
6387 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6388 ;;
6389esac
6390
a0da8069
NN
6391# Some systems (e.g., one of the i386-aix systems the gas testers are
6392# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6393tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6394build_tooldir=${tooldir}
6395
a0da8069
NN
6396# Create a .gdbinit file which runs the one in srcdir
6397# and tells GDB to look there for source files.
6398
6399if test -r ${srcdir}/.gdbinit ; then
6400 case ${srcdir} in
6401 .) ;;
6402 *) cat > ./.gdbinit <<EOF
6403# ${NO_EDIT}
6404dir ${srcdir}
6405dir .
6406source ${srcdir}/.gdbinit
6407EOF
6408 ;;
6409 esac
6410fi
6411
a0da8069
NN
6412# Make sure that the compiler is able to generate an executable. If it
6413# can't, we are probably in trouble. We don't care whether we can run the
6414# executable--we might be using a cross compiler--we only care whether it
6415# can be created. At this point the main configure script has set CC.
6416we_are_ok=no
6417echo "int main () { return 0; }" > conftest.c
6418${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6419if test $? = 0 ; then
6420 if test -s conftest || test -s conftest.exe ; then
6421 we_are_ok=yes
6422 fi
c6b750e1 6423fi
a0da8069
NN
6424case $we_are_ok in
6425 no)
6426 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6427 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6428 rm -f conftest*
6429 exit 1
6430 ;;
6431esac
6432rm -f conftest*
6433
6434# The Solaris /usr/ucb/cc compiler does not appear to work.
6435case "${host}" in
6436 sparc-sun-solaris2*)
6437 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6438 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6439 could_use=
6440 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6441 if test -d /opt/cygnus/bin ; then
6442 if test "$could_use" = "" ; then
6443 could_use="/opt/cygnus/bin"
6444 else
6445 could_use="$could_use or /opt/cygnus/bin"
6446 fi
6447 fi
6448 if test "$could_use" = "" ; then
6449 echo "Warning: compilation may fail because you're using"
6450 echo "/usr/ucb/cc. You should change your PATH or CC "
6451 echo "variable and rerun configure."
6452 else
6453 echo "Warning: compilation may fail because you're using"
6454 echo "/usr/ucb/cc, when you should use the C compiler from"
6455 echo "$could_use. You should change your"
6456 echo "PATH or CC variable and rerun configure."
6457 fi
6458 fi
6459 ;;
6460esac
6461
3bbd2f8f 6462# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6463case "${host}" in
6464 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 6465 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6466 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6467 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6468esac
6469
3bbd2f8f 6470# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6471# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6472# built executables to PATH.
3bbd2f8f
AL
6473if test "$RPATH_ENVVAR" = PATH; then
6474 GCC_SHLIB_SUBDIR=/shlib
6475else
6476 GCC_SHLIB_SUBDIR=
6477fi
6478
a0da8069
NN
6479# Record target_configdirs and the configure arguments for target and
6480# build configuration in Makefile.
6481target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6482build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6483
a0da8069
NN
6484# Determine whether gdb needs tk/tcl or not.
6485# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6486# and in that case we want gdb to be built without tk. Ugh!
6487# In fact I believe gdb is the *only* package directly dependent on tk,
6488# so we should be able to put the 'maybe's in unconditionally and
6489# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6490# 100% sure that that's safe though.
c180f501 6491
675c6968 6492gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6493case "$enable_gdbtk" in
6494 no)
6495 GDB_TK="" ;;
c180f501
AC
6496 yes)
6497 GDB_TK="${gdb_tk}" ;;
a0da8069 6498 *)
c180f501
AC
6499 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6500 # distro. Eventually someone will fix this and move Insight, nee
6501 # gdbtk to a separate directory.
6502 if test -d ${srcdir}/gdb/gdbtk ; then
6503 GDB_TK="${gdb_tk}"
6504 else
6505 GDB_TK=""
6506 fi
6507 ;;
a0da8069 6508esac
907be67c
DJ
6509CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6510INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6511
6bd3dfaa 6512# Strip out unwanted targets.
dd12c3a8
NN
6513
6514# While at that, we remove Makefiles if we were started for recursive
6515# configuration, so that the top-level Makefile reconfigures them,
6516# like we used to do when configure itself was recursive.
dd12c3a8 6517
6bd3dfaa
PB
6518# Loop over modules. $extrasub must be used with care, limiting as
6519# much as possible the usage of range addresses. That's because autoconf
6520# splits the sed script to overcome limits in the number of commands,
6521# and relying on carefully-timed sed passes may turn out to be very hard
6522# to maintain later. In this particular case, you just have to be careful
6523# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6524
81ecdfbb
RW
6525# Check whether --enable-bootstrap was given.
6526if test "${enable_bootstrap+set}" = set; then :
6527 enableval=$enable_bootstrap;
319cab08 6528else
9cb3fa6f 6529 enable_bootstrap=default
81ecdfbb
RW
6530fi
6531
319cab08 6532
9cb3fa6f
PB
6533# Issue errors and warnings for invalid/strange bootstrap combinations.
6534case "$configdirs" in
6535 *gcc*) have_compiler=yes ;;
6536 *) have_compiler=no ;;
6537esac
6538
6539case "$have_compiler:$host:$target:$enable_bootstrap" in
6540 *:*:*:no) ;;
6541
0aed8855 6542 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
6543 # and we are in a native configuration.
6544 yes:$build:$build:default)
0aed8855 6545 enable_bootstrap=yes ;;
9cb3fa6f
PB
6546
6547 *:*:*:default)
6548 enable_bootstrap=no ;;
6549
6550 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 6551 yes:$build:$build:yes)
9cb3fa6f
PB
6552 ;;
6553
6554 # Other configurations, but we have a compiler. Assume the user knows
6555 # what he's doing.
80911fe1 6556 yes:*:*:yes)
81ecdfbb
RW
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6558$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
6559 ;;
6560
6561 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 6562 no:*:*:yes)
81ecdfbb 6563 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
6564
6565 # Fail if wrong command line
6566 *)
81ecdfbb 6567 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
6568 ;;
6569esac
6570
6571# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
6572case "$enable_bootstrap" in
6573 yes)
498d4a71 6574 bootstrap_suffix=bootstrap ;;
319cab08 6575 no)
498d4a71 6576 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
6577esac
6578
6a9cf61e 6579for module in ${build_configdirs} ; do
498d4a71
CF
6580 if test -z "${no_recursion}" \
6581 && test -f ${build_subdir}/${module}/Makefile; then
6582 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6583 rm -f ${build_subdir}/${module}/Makefile
6584 fi
6585 extrasub="$extrasub
6586/^@if build-$module\$/d
6587/^@endif build-$module\$/d
6588/^@if build-$module-$bootstrap_suffix\$/d
6589/^@endif build-$module-$bootstrap_suffix\$/d"
6590done
6591for module in ${configdirs} ; do
80911fe1 6592 if test -z "${no_recursion}"; then
8cf39b1b 6593 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6594 if test -f ${file}; then
6595 echo 1>&2 "*** removing ${file} to force reconfigure"
6596 rm -f ${file}
6597 fi
6598 done
498d4a71
CF
6599 fi
6600 extrasub="$extrasub
6601/^@if $module\$/d
6602/^@endif $module\$/d
6603/^@if $module-$bootstrap_suffix\$/d
6604/^@endif $module-$bootstrap_suffix\$/d"
6605done
6606for module in ${target_configdirs} ; do
6607 if test -z "${no_recursion}" \
6608 && test -f ${target_subdir}/${module}/Makefile; then
6609 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6610 rm -f ${target_subdir}/${module}/Makefile
6611 fi
e8a5fa9c
RW
6612
6613 # We only bootstrap target libraries listed in bootstrap_target_libs.
6614 case $bootstrap_target_libs in
6615 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6616 *) target_bootstrap_suffix=no-bootstrap ;;
6617 esac
6618
498d4a71
CF
6619 extrasub="$extrasub
6620/^@if target-$module\$/d
6621/^@endif target-$module\$/d
e8a5fa9c
RW
6622/^@if target-$module-$target_bootstrap_suffix\$/d
6623/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
6624done
6625
6bd3dfaa
PB
6626extrasub="$extrasub
6627/^@if /,/^@endif /d"
a0da8069
NN
6628
6629# Create the serialization dependencies. This uses a temporary file.
6630
81ecdfbb
RW
6631# Check whether --enable-serial-configure was given.
6632if test "${enable_serial_configure+set}" = set; then :
6633 enableval=$enable_serial_configure;
6634fi
e6bfb94a
AO
6635
6636
1047cb91
DD
6637case ${enable_serial_configure} in
6638 yes)
6639 enable_serial_build_configure=yes
6640 enable_serial_host_configure=yes
6641 enable_serial_target_configure=yes
6642 ;;
6643esac
6644
a0da8069
NN
6645# These force 'configure's to be done one at a time, to avoid problems
6646# with contention over a shared config.cache.
6647rm -f serdep.tmp
e6bfb94a 6648echo '# serdep.tmp' > serdep.tmp
a0da8069 6649olditem=
1047cb91 6650test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6651for item in ${build_configdirs} ; do
6652 case ${olditem} in
6653 "") ;;
e6bfb94a 6654 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6655 esac
6656 olditem=${item}
6657done
6658olditem=
1047cb91 6659test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6660for item in ${configdirs} ; do
6661 case ${olditem} in
6662 "") ;;
e6bfb94a 6663 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6664 esac
6665 olditem=${item}
6666done
6667olditem=
1047cb91 6668test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6669for item in ${target_configdirs} ; do
6670 case ${olditem} in
6671 "") ;;
e6bfb94a 6672 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6673 esac
6674 olditem=${item}
6675done
6676serialization_dependencies=serdep.tmp
6677
6678
e6bfb94a 6679# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
6680# target, nonopt, and variable assignments. These are the ones we
6681# might not want to pass down to subconfigures. Also strip
6682# program-prefix, program-suffix, and program-transform-name, so that
6683# we can pass down a consistent program-transform-name.
6684baseargs=
6685keep_next=no
6686skip_next=no
6687eval "set -- $ac_configure_args"
18f6b6ee
PB
6688for ac_arg
6689do
c6b750e1
DJ
6690 if test X"$skip_next" = X"yes"; then
6691 skip_next=no
6692 continue
6693 fi
6694 if test X"$keep_next" = X"yes"; then
6695 case $ac_arg in
6696 *\'*)
6697 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6698 esac
6699 baseargs="$baseargs '$ac_arg'"
6700 keep_next=no
6701 continue
6702 fi
6703
6704 # Handle separated arguments. Based on the logic generated by
6705 # autoconf 2.59.
6706 case $ac_arg in
6707 *=* | --config-cache | -C | -disable-* | --disable-* \
6708 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6709 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6710 | -with-* | --with-* | -without-* | --without-* | --x)
6711 separate_arg=no
6712 ;;
6713 -*)
6714 separate_arg=yes
6715 ;;
6716 *)
6717 separate_arg=no
6718 ;;
6719 esac
6720
6721 case "$ac_arg" in
6722 --no*)
6723 continue
6724 ;;
6725 --c* | \
6726 --sr* | \
6727 --ho* | \
6728 --bu* | \
6729 --t* | \
6730 --program-* | \
6731 -cache_file* | \
6732 -srcdir* | \
6733 -host* | \
6734 -build* | \
6735 -target* | \
6736 -program-prefix* | \
6737 -program-suffix* | \
6738 -program-transform-name* )
6739 skip_next=$separate_arg
6740 continue
6741 ;;
6742 -*)
6743 # An option. Add it.
6744 case $ac_arg in
6745 *\'*)
6746 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6747 esac
6748 baseargs="$baseargs '$ac_arg'"
6749 keep_next=$separate_arg
6750 ;;
6751 *)
6752 # Either a variable assignment, or a nonopt (triplet). Don't
6753 # pass it down; let the Makefile handle this.
6754 continue
6755 ;;
6756 esac
6757done
6758# Remove the initial space we just introduced and, as these will be
6759# expanded by make, quote '$'.
6760baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 6761
f27d4f92
DJ
6762# Add in --program-transform-name, after --program-prefix and
6763# --program-suffix have been applied to it. Autoconf has already
6764# doubled dollar signs and backslashes in program_transform_name; we want
6765# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 6766# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
6767# Also, because we want to override the logic in subdir configure scripts to
6768# choose program_transform_name, replace any s,x,x, with s,y,y,.
6769sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6770${program_transform_name}
6771EOF_SED
6772gcc_transform_name=`cat conftestsed.out`
6773rm -f conftestsed.out
6774baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
6775if test "$silent" = yes; then
6776 baseargs="$baseargs --silent"
6777fi
34a0f3cf 6778baseargs="$baseargs --disable-option-checking"
f27d4f92 6779
a0da8069
NN
6780# For the build-side libraries, we just need to pretend we're native,
6781# and not use the same cache file. Multilibs are neither needed nor
6782# desired.
4b900473 6783build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
6784
6785# For host modules, accept cache file option, or specification as blank.
6786case "${cache_file}" in
6787"") # empty
6788 cache_file_option="" ;;
6789/* | [A-Za-z]:[\\/]* ) # absolute path
6790 cache_file_option="--cache-file=${cache_file}" ;;
6791*) # relative path
6792 cache_file_option="--cache-file=../${cache_file}" ;;
6793esac
6794
82252c06
NN
6795# Host dirs don't like to share a cache file either, horribly enough.
6796# This seems to be due to autoconf 2.5x stupidity.
4b900473 6797host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
6798
6799target_configargs=${baseargs}
6800
6801# Passing a --with-cross-host argument lets the target libraries know
6802# whether they are being built with a cross-compiler or being built
6803# native. However, it would be better to use other mechanisms to make the
6804# sorts of decisions they want to make on this basis. Please consider
6805# this option to be deprecated. FIXME.
6806if test x${is_cross_compiler} = xyes ; then
c6b750e1 6807 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
6808fi
6809
6810# Default to --enable-multilib.
6811if test x${enable_multilib} = x ; then
6812 target_configargs="--enable-multilib ${target_configargs}"
6813fi
6814
6815# Pass --with-newlib if appropriate. Note that target_configdirs has
6816# changed from the earlier setting of with_newlib.
6817if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6818 target_configargs="--with-newlib ${target_configargs}"
6819fi
6820
95036d20
NN
6821# Different target subdirs use different values of certain variables
6822# (notably CXX). Worse, multilibs use *lots* of different values.
6823# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6824# it doesn't automatically accept command-line overrides of them.
6825# This means it's not safe for target subdirs to share a cache file,
6826# which is disgusting, but there you have it. Hopefully this can be
6827# fixed in future. It's still worthwhile to use a cache file for each
6828# directory. I think.
6829
ae380b45
MS
6830# Pass the appropriate --build, --host, --target and --cache-file arguments.
6831# We need to pass --target, as newer autoconf's requires consistency
6832# for target_alias and gcc doesn't manage it consistently.
4b900473 6833target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 6834
a0da8069
NN
6835FLAGS_FOR_TARGET=
6836case " $target_configdirs " in
6837 *" newlib "*)
6838 case " $target_configargs " in
6839 *" --with-newlib "*)
6840 case "$target" in
6841 *-cygwin*)
564b43e5 6842 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
a0da8069
NN
6843 esac
6844
6845 # If we're not building GCC, don't discard standard headers.
6846 if test -d ${srcdir}/gcc; then
6847 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6848
6849 if test "${build}" != "${host}"; then
6850 # On Canadian crosses, CC_FOR_TARGET will have already been set
6851 # by `configure', so we won't have an opportunity to add -Bgcc/
6852 # to it. This is right: we don't want to search that directory
6853 # for binaries, but we want the header files in there, so add
6854 # them explicitly.
b00612cc 6855 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
6856
6857 # Someone might think of using the pre-installed headers on
6858 # Canadian crosses, in case the installed compiler is not fully
6859 # compatible with the compiler being built. In this case, it
6860 # would be better to flag an error than risking having
6861 # incompatible object files being constructed. We can't
6862 # guarantee that an error will be flagged, but let's hope the
6863 # compiler will do it, when presented with incompatible header
6864 # files.
6865 fi
6866 fi
6867
6868 case "${target}-${is_cross_compiler}" in
ec11bdc6 6869 i[3456789]86-*-linux*-no)
a0da8069
NN
6870 # Here host == target, so we don't need to build gcc,
6871 # so we don't want to discard standard headers.
6872 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6873 ;;
6874 *)
6875 # If we're building newlib, use its generic headers last, but search
6876 # for any libc-related directories first (so make it the last -B
6877 # switch).
6878 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
6879
6880 # If we're building libgloss, find the startup file, simulator library
6881 # and linker script.
6882 case " $target_configdirs " in
6883 *" libgloss "*)
6884 # Look for startup file, simulator library and maybe linker script.
6885 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6886 # Look for libnosys.a in case the target needs it.
6887 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6888 # Most targets have the linker script in the source directory.
6889 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6890 ;;
6891 esac
a0da8069
NN
6892 ;;
6893 esac
6894 ;;
6895 esac
6896 ;;
6897esac
45055374
CV
6898case "$target" in
6899*-mingw*)
6900 # Can't be handled as Cygwin above since Mingw does not use newlib.
6901 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' ;;
6902esac
a0da8069 6903
5fbad20a
DD
6904# Allow the user to override the flags for
6905# our build compiler if desired.
c66487f8
NC
6906if test x"${build}" = x"${host}" ; then
6907 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6908 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6909 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6910fi
5fbad20a 6911
a0da8069
NN
6912# On Canadian crosses, we'll be searching the right directories for
6913# the previously-installed cross compiler, so don't bother to add
6914# flags for directories within the install tree of the compiler
6915# being built; programs in there won't even run.
6916if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6917 # Search for pre-installed headers if nothing else fits.
bba45b8b 6918 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
6919fi
6920
6921if test "x${use_gnu_ld}" = x &&
6922 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6923 # Arrange for us to find uninstalled linker scripts.
b00612cc 6924 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6925fi
6926
a481dbb7
DD
6927# Search for other target-specific linker scripts and such.
6928case "${target}" in
4e206d7e
DB
6929 mep*)
6930 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6931 ;;
6932esac
6933
a0da8069 6934# Makefile fragments.
3e707e94
PB
6935for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6936do
6937 eval fragval=\$$frag
6938 if test $fragval != /dev/null; then
6939 eval $frag=${srcdir}/$fragval
6940 fi
6941done
a0da8069
NN
6942
6943
6944
6945
6946
6947# Miscellanea: directories, flags, etc.
6948
6949
6950
6951
6952
6953
6954
3bbd2f8f 6955
6a9cf61e 6956# Build module lists & subconfigure args.
a0da8069
NN
6957
6958
6959
be01d343
PB
6960# Host module lists & subconfigure args.
6961
6962
6963
6964# Target module lists & subconfigure args.
6965
6966
6967
6968# Build tools.
6969
6970
6971
1576798e
PB
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
be01d343
PB
6986# Generate default definitions for YACC, M4, LEX and other programs that run
6987# on the build machine. These are used if the Makefile can't locate these
6988# programs in objdir.
6989MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6990
6991for ac_prog in 'bison -y' byacc yacc
6992do
c6b750e1 6993 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6994set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996$as_echo_n "checking for $ac_word... " >&6; }
6997if test "${ac_cv_prog_YACC+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
be01d343
PB
6999else
7000 if test -n "$YACC"; then
7001 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7002else
c6b750e1
DJ
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7010 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7012 break 2
7013 fi
7014done
81ecdfbb
RW
7015 done
7016IFS=$as_save_IFS
c6b750e1 7017
be01d343
PB
7018fi
7019fi
c6b750e1 7020YACC=$ac_cv_prog_YACC
be01d343 7021if test -n "$YACC"; then
81ecdfbb
RW
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7023$as_echo "$YACC" >&6; }
be01d343 7024else
81ecdfbb
RW
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026$as_echo "no" >&6; }
be01d343
PB
7027fi
7028
81ecdfbb 7029
c6b750e1 7030 test -n "$YACC" && break
be01d343
PB
7031done
7032test -n "$YACC" || YACC="$MISSING bison -y"
7033
7034case " $build_configdirs " in
7035 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7036 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7037esac
7038
7039for ac_prog in bison
7040do
c6b750e1 7041 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7042set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044$as_echo_n "checking for $ac_word... " >&6; }
7045if test "${ac_cv_prog_BISON+set}" = set; then :
7046 $as_echo_n "(cached) " >&6
be01d343
PB
7047else
7048 if test -n "$BISON"; then
7049 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7050else
c6b750e1
DJ
7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7058 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7060 break 2
7061 fi
7062done
81ecdfbb
RW
7063 done
7064IFS=$as_save_IFS
c6b750e1 7065
be01d343
PB
7066fi
7067fi
c6b750e1 7068BISON=$ac_cv_prog_BISON
be01d343 7069if test -n "$BISON"; then
81ecdfbb
RW
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7071$as_echo "$BISON" >&6; }
be01d343 7072else
81ecdfbb
RW
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074$as_echo "no" >&6; }
be01d343
PB
7075fi
7076
81ecdfbb 7077
c6b750e1 7078 test -n "$BISON" && break
be01d343
PB
7079done
7080test -n "$BISON" || BISON="$MISSING bison"
7081
7082case " $build_configdirs " in
7083 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7084esac
7085
7086for ac_prog in gm4 gnum4 m4
7087do
c6b750e1 7088 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7089set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091$as_echo_n "checking for $ac_word... " >&6; }
7092if test "${ac_cv_prog_M4+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
be01d343
PB
7094else
7095 if test -n "$M4"; then
7096 ac_cv_prog_M4="$M4" # Let the user override the test.
7097else
c6b750e1
DJ
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7105 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7107 break 2
7108 fi
7109done
81ecdfbb
RW
7110 done
7111IFS=$as_save_IFS
c6b750e1 7112
be01d343
PB
7113fi
7114fi
c6b750e1 7115M4=$ac_cv_prog_M4
be01d343 7116if test -n "$M4"; then
81ecdfbb
RW
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7118$as_echo "$M4" >&6; }
be01d343 7119else
81ecdfbb
RW
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121$as_echo "no" >&6; }
be01d343
PB
7122fi
7123
81ecdfbb 7124
c6b750e1 7125 test -n "$M4" && break
be01d343
PB
7126done
7127test -n "$M4" || M4="$MISSING m4"
7128
7129case " $build_configdirs " in
7130 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7131esac
7132
7133for ac_prog in flex lex
7134do
c6b750e1 7135 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7136set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
7139if test "${ac_cv_prog_LEX+set}" = set; then :
7140 $as_echo_n "(cached) " >&6
be01d343
PB
7141else
7142 if test -n "$LEX"; then
7143 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7144else
c6b750e1
DJ
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7152 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7154 break 2
7155 fi
7156done
81ecdfbb
RW
7157 done
7158IFS=$as_save_IFS
c6b750e1 7159
be01d343
PB
7160fi
7161fi
c6b750e1 7162LEX=$ac_cv_prog_LEX
be01d343 7163if test -n "$LEX"; then
81ecdfbb
RW
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7165$as_echo "$LEX" >&6; }
be01d343 7166else
81ecdfbb
RW
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
be01d343
PB
7169fi
7170
81ecdfbb 7171
c6b750e1 7172 test -n "$LEX" && break
be01d343
PB
7173done
7174test -n "$LEX" || LEX="$MISSING flex"
7175
7176case " $build_configdirs " in
7177 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7178 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7179esac
7180
7181for ac_prog in flex
7182do
c6b750e1 7183 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7184set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186$as_echo_n "checking for $ac_word... " >&6; }
7187if test "${ac_cv_prog_FLEX+set}" = set; then :
7188 $as_echo_n "(cached) " >&6
be01d343
PB
7189else
7190 if test -n "$FLEX"; then
7191 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7192else
c6b750e1
DJ
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7200 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7202 break 2
7203 fi
7204done
81ecdfbb
RW
7205 done
7206IFS=$as_save_IFS
c6b750e1 7207
be01d343
PB
7208fi
7209fi
c6b750e1 7210FLEX=$ac_cv_prog_FLEX
be01d343 7211if test -n "$FLEX"; then
81ecdfbb
RW
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7213$as_echo "$FLEX" >&6; }
be01d343 7214else
81ecdfbb
RW
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216$as_echo "no" >&6; }
be01d343
PB
7217fi
7218
81ecdfbb 7219
c6b750e1 7220 test -n "$FLEX" && break
be01d343
PB
7221done
7222test -n "$FLEX" || FLEX="$MISSING flex"
7223
7224case " $build_configdirs " in
7225 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7226esac
7227
7228for ac_prog in makeinfo
7229do
c6b750e1 7230 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7231set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233$as_echo_n "checking for $ac_word... " >&6; }
7234if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
be01d343
PB
7236else
7237 if test -n "$MAKEINFO"; then
7238 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7239else
c6b750e1
DJ
7240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH
7242do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7247 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7249 break 2
7250 fi
7251done
81ecdfbb
RW
7252 done
7253IFS=$as_save_IFS
c6b750e1 7254
be01d343
PB
7255fi
7256fi
c6b750e1 7257MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7258if test -n "$MAKEINFO"; then
81ecdfbb
RW
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7260$as_echo "$MAKEINFO" >&6; }
be01d343 7261else
81ecdfbb
RW
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263$as_echo "no" >&6; }
be01d343
PB
7264fi
7265
81ecdfbb 7266
c6b750e1 7267 test -n "$MAKEINFO" && break
be01d343
PB
7268done
7269test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7270
7271case " $build_configdirs " in
7272 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7273 *)
7274
10ad8ef3 7275 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7276 # higher, else we use the "missing" dummy.
7277 if ${MAKEINFO} --version \
10ad8ef3 7278 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7279 :
7280 else
7281 MAKEINFO="$MISSING makeinfo"
7282 fi
7283 ;;
7284
7285esac
a0da8069 7286
be01d343 7287# FIXME: expect and dejagnu may become build tools?
a0da8069 7288
be01d343
PB
7289for ac_prog in expect
7290do
c6b750e1 7291 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7292set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294$as_echo_n "checking for $ac_word... " >&6; }
7295if test "${ac_cv_prog_EXPECT+set}" = set; then :
7296 $as_echo_n "(cached) " >&6
be01d343
PB
7297else
7298 if test -n "$EXPECT"; then
7299 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7300else
c6b750e1
DJ
7301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7308 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7310 break 2
7311 fi
7312done
81ecdfbb
RW
7313 done
7314IFS=$as_save_IFS
c6b750e1 7315
be01d343
PB
7316fi
7317fi
c6b750e1 7318EXPECT=$ac_cv_prog_EXPECT
be01d343 7319if test -n "$EXPECT"; then
81ecdfbb
RW
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7321$as_echo "$EXPECT" >&6; }
be01d343 7322else
81ecdfbb
RW
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324$as_echo "no" >&6; }
be01d343 7325fi
a0da8069 7326
81ecdfbb 7327
c6b750e1 7328 test -n "$EXPECT" && break
be01d343
PB
7329done
7330test -n "$EXPECT" || EXPECT="expect"
a0da8069 7331
be01d343
PB
7332case " $configdirs " in
7333 *" expect "*)
7334 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7335 ;;
7336esac
a0da8069 7337
be01d343
PB
7338for ac_prog in runtest
7339do
c6b750e1 7340 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7341set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
be01d343
PB
7346else
7347 if test -n "$RUNTEST"; then
7348 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7349else
c6b750e1
DJ
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7357 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7359 break 2
7360 fi
7361done
81ecdfbb
RW
7362 done
7363IFS=$as_save_IFS
c6b750e1 7364
be01d343
PB
7365fi
7366fi
c6b750e1 7367RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7368if test -n "$RUNTEST"; then
81ecdfbb
RW
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7370$as_echo "$RUNTEST" >&6; }
be01d343 7371else
81ecdfbb
RW
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
be01d343 7374fi
a0da8069 7375
81ecdfbb 7376
c6b750e1 7377 test -n "$RUNTEST" && break
be01d343
PB
7378done
7379test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7380
be01d343
PB
7381case " $configdirs " in
7382 *" dejagnu "*)
6b89cc21 7383 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7384 ;;
7385esac
a0da8069
NN
7386
7387
a0da8069 7388# Host tools.
859789af
AC
7389ncn_tool_prefix=
7390test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7391ncn_target_tool_prefix=
7392test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7393
9a819804
AO
7394
7395
7396if test -n "$AR"; then
7397 ac_cv_prog_AR=$AR
7398elif test -n "$ac_cv_prog_AR"; then
7399 AR=$ac_cv_prog_AR
7400fi
7401
7402if test -n "$ac_cv_prog_AR"; then
7403 for ncn_progname in ar; do
7404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7405set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
7408if test "${ac_cv_prog_AR+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
9a819804
AO
7410else
7411 if test -n "$AR"; then
7412 ac_cv_prog_AR="$AR" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7421 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7423 break 2
7424 fi
7425done
81ecdfbb
RW
7426 done
7427IFS=$as_save_IFS
9a819804
AO
7428
7429fi
7430fi
7431AR=$ac_cv_prog_AR
7432if test -n "$AR"; then
81ecdfbb
RW
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7434$as_echo "$AR" >&6; }
9a819804 7435else
81ecdfbb
RW
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
9a819804
AO
7438fi
7439
81ecdfbb 7440
9a819804
AO
7441 done
7442fi
7443
7444for ncn_progname in ar; do
05cbd757
PB
7445 if test -n "$ncn_tool_prefix"; then
7446 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7447set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449$as_echo_n "checking for $ac_word... " >&6; }
7450if test "${ac_cv_prog_AR+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
859789af
AC
7452else
7453 if test -n "$AR"; then
7454 ac_cv_prog_AR="$AR" # Let the user override the test.
7455else
c6b750e1
DJ
7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7463 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7465 break 2
7466 fi
7467done
81ecdfbb
RW
7468 done
7469IFS=$as_save_IFS
c6b750e1 7470
859789af
AC
7471fi
7472fi
c6b750e1 7473AR=$ac_cv_prog_AR
859789af 7474if test -n "$AR"; then
81ecdfbb
RW
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7476$as_echo "$AR" >&6; }
859789af 7477else
81ecdfbb
RW
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479$as_echo "no" >&6; }
859789af
AC
7480fi
7481
81ecdfbb 7482
05cbd757
PB
7483 fi
7484 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7486set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488$as_echo_n "checking for $ac_word... " >&6; }
7489if test "${ac_cv_prog_AR+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
859789af 7491else
05cbd757
PB
7492 if test -n "$AR"; then
7493 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7494else
c6b750e1
DJ
7495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7502 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7504 break 2
7505 fi
7506done
81ecdfbb
RW
7507 done
7508IFS=$as_save_IFS
c6b750e1 7509
859789af
AC
7510fi
7511fi
c6b750e1 7512AR=$ac_cv_prog_AR
05cbd757 7513if test -n "$AR"; then
81ecdfbb
RW
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7515$as_echo "$AR" >&6; }
859789af 7516else
81ecdfbb
RW
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518$as_echo "no" >&6; }
859789af 7519fi
c6b750e1 7520
81ecdfbb 7521
05cbd757
PB
7522 fi
7523 test -n "$ac_cv_prog_AR" && break
7524done
7525
7526if test -z "$ac_cv_prog_AR" ; then
7527 set dummy ar
7528 if test $build = $host ; then
7529 AR="$2"
859789af 7530 else
05cbd757 7531 AR="${ncn_tool_prefix}$2"
859789af 7532 fi
859789af
AC
7533fi
7534
9a819804
AO
7535
7536
7537if test -n "$AS"; then
7538 ac_cv_prog_AS=$AS
7539elif test -n "$ac_cv_prog_AS"; then
7540 AS=$ac_cv_prog_AS
7541fi
7542
7543if test -n "$ac_cv_prog_AS"; then
7544 for ncn_progname in as; do
7545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7546set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548$as_echo_n "checking for $ac_word... " >&6; }
7549if test "${ac_cv_prog_AS+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
9a819804
AO
7551else
7552 if test -n "$AS"; then
7553 ac_cv_prog_AS="$AS" # Let the user override the test.
7554else
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7562 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7564 break 2
7565 fi
7566done
81ecdfbb
RW
7567 done
7568IFS=$as_save_IFS
9a819804
AO
7569
7570fi
7571fi
7572AS=$ac_cv_prog_AS
7573if test -n "$AS"; then
81ecdfbb
RW
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7575$as_echo "$AS" >&6; }
9a819804 7576else
81ecdfbb
RW
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
9a819804
AO
7579fi
7580
81ecdfbb 7581
9a819804
AO
7582 done
7583fi
7584
7585for ncn_progname in as; do
05cbd757
PB
7586 if test -n "$ncn_tool_prefix"; then
7587 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7588set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590$as_echo_n "checking for $ac_word... " >&6; }
7591if test "${ac_cv_prog_AS+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
859789af
AC
7593else
7594 if test -n "$AS"; then
7595 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
7596else
7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7604 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7606 break 2
7607 fi
7608done
81ecdfbb
RW
7609 done
7610IFS=$as_save_IFS
c6b750e1 7611
859789af
AC
7612fi
7613fi
c6b750e1 7614AS=$ac_cv_prog_AS
859789af 7615if test -n "$AS"; then
81ecdfbb
RW
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7617$as_echo "$AS" >&6; }
859789af 7618else
81ecdfbb
RW
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620$as_echo "no" >&6; }
859789af
AC
7621fi
7622
81ecdfbb 7623
05cbd757
PB
7624 fi
7625 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7627set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629$as_echo_n "checking for $ac_word... " >&6; }
7630if test "${ac_cv_prog_AS+set}" = set; then :
7631 $as_echo_n "(cached) " >&6
859789af 7632else
05cbd757
PB
7633 if test -n "$AS"; then
7634 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 7635else
c6b750e1
DJ
7636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7643 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7645 break 2
7646 fi
7647done
81ecdfbb
RW
7648 done
7649IFS=$as_save_IFS
c6b750e1 7650
859789af
AC
7651fi
7652fi
c6b750e1 7653AS=$ac_cv_prog_AS
05cbd757 7654if test -n "$AS"; then
81ecdfbb
RW
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7656$as_echo "$AS" >&6; }
859789af 7657else
81ecdfbb
RW
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659$as_echo "no" >&6; }
859789af 7660fi
c6b750e1 7661
81ecdfbb 7662
05cbd757
PB
7663 fi
7664 test -n "$ac_cv_prog_AS" && break
7665done
7666
7667if test -z "$ac_cv_prog_AS" ; then
7668 set dummy as
7669 if test $build = $host ; then
7670 AS="$2"
859789af 7671 else
05cbd757 7672 AS="${ncn_tool_prefix}$2"
859789af 7673 fi
859789af
AC
7674fi
7675
9a819804
AO
7676
7677
7678if test -n "$DLLTOOL"; then
7679 ac_cv_prog_DLLTOOL=$DLLTOOL
7680elif test -n "$ac_cv_prog_DLLTOOL"; then
7681 DLLTOOL=$ac_cv_prog_DLLTOOL
7682fi
7683
7684if test -n "$ac_cv_prog_DLLTOOL"; then
7685 for ncn_progname in dlltool; do
7686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7687set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689$as_echo_n "checking for $ac_word... " >&6; }
7690if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7691 $as_echo_n "(cached) " >&6
9a819804
AO
7692else
7693 if test -n "$DLLTOOL"; then
7694 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7695else
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7703 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7705 break 2
7706 fi
7707done
81ecdfbb
RW
7708 done
7709IFS=$as_save_IFS
9a819804
AO
7710
7711fi
7712fi
7713DLLTOOL=$ac_cv_prog_DLLTOOL
7714if test -n "$DLLTOOL"; then
81ecdfbb
RW
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7716$as_echo "$DLLTOOL" >&6; }
9a819804 7717else
81ecdfbb
RW
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719$as_echo "no" >&6; }
9a819804
AO
7720fi
7721
81ecdfbb 7722
9a819804
AO
7723 done
7724fi
7725
7726for ncn_progname in dlltool; do
05cbd757
PB
7727 if test -n "$ncn_tool_prefix"; then
7728 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7729set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731$as_echo_n "checking for $ac_word... " >&6; }
7732if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7733 $as_echo_n "(cached) " >&6
859789af
AC
7734else
7735 if test -n "$DLLTOOL"; then
7736 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7737else
c6b750e1
DJ
7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7745 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7747 break 2
7748 fi
7749done
81ecdfbb
RW
7750 done
7751IFS=$as_save_IFS
c6b750e1 7752
859789af
AC
7753fi
7754fi
c6b750e1 7755DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 7756if test -n "$DLLTOOL"; then
81ecdfbb
RW
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7758$as_echo "$DLLTOOL" >&6; }
859789af 7759else
81ecdfbb
RW
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761$as_echo "no" >&6; }
859789af
AC
7762fi
7763
81ecdfbb 7764
05cbd757
PB
7765 fi
7766 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7768set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770$as_echo_n "checking for $ac_word... " >&6; }
7771if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
859789af 7773else
05cbd757
PB
7774 if test -n "$DLLTOOL"; then
7775 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 7776else
c6b750e1
DJ
7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7784 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7786 break 2
7787 fi
7788done
81ecdfbb
RW
7789 done
7790IFS=$as_save_IFS
c6b750e1 7791
859789af
AC
7792fi
7793fi
c6b750e1 7794DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 7795if test -n "$DLLTOOL"; then
81ecdfbb
RW
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7797$as_echo "$DLLTOOL" >&6; }
859789af 7798else
81ecdfbb
RW
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800$as_echo "no" >&6; }
859789af 7801fi
c6b750e1 7802
81ecdfbb 7803
05cbd757
PB
7804 fi
7805 test -n "$ac_cv_prog_DLLTOOL" && break
7806done
7807
7808if test -z "$ac_cv_prog_DLLTOOL" ; then
7809 set dummy dlltool
7810 if test $build = $host ; then
7811 DLLTOOL="$2"
859789af 7812 else
05cbd757 7813 DLLTOOL="${ncn_tool_prefix}$2"
859789af 7814 fi
859789af
AC
7815fi
7816
9a819804
AO
7817
7818
7819if test -n "$LD"; then
7820 ac_cv_prog_LD=$LD
7821elif test -n "$ac_cv_prog_LD"; then
7822 LD=$ac_cv_prog_LD
7823fi
7824
7825if test -n "$ac_cv_prog_LD"; then
7826 for ncn_progname in ld; do
7827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7828set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830$as_echo_n "checking for $ac_word... " >&6; }
7831if test "${ac_cv_prog_LD+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
9a819804
AO
7833else
7834 if test -n "$LD"; then
7835 ac_cv_prog_LD="$LD" # Let the user override the test.
7836else
7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7844 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7846 break 2
7847 fi
7848done
81ecdfbb
RW
7849 done
7850IFS=$as_save_IFS
9a819804
AO
7851
7852fi
7853fi
7854LD=$ac_cv_prog_LD
7855if test -n "$LD"; then
81ecdfbb
RW
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7857$as_echo "$LD" >&6; }
9a819804 7858else
81ecdfbb
RW
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860$as_echo "no" >&6; }
9a819804
AO
7861fi
7862
81ecdfbb 7863
9a819804
AO
7864 done
7865fi
7866
7867for ncn_progname in ld; do
05cbd757
PB
7868 if test -n "$ncn_tool_prefix"; then
7869 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7870set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872$as_echo_n "checking for $ac_word... " >&6; }
7873if test "${ac_cv_prog_LD+set}" = set; then :
7874 $as_echo_n "(cached) " >&6
859789af
AC
7875else
7876 if test -n "$LD"; then
7877 ac_cv_prog_LD="$LD" # Let the user override the test.
7878else
c6b750e1
DJ
7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7886 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7888 break 2
7889 fi
7890done
81ecdfbb
RW
7891 done
7892IFS=$as_save_IFS
c6b750e1 7893
859789af
AC
7894fi
7895fi
c6b750e1 7896LD=$ac_cv_prog_LD
859789af 7897if test -n "$LD"; then
81ecdfbb
RW
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7899$as_echo "$LD" >&6; }
859789af 7900else
81ecdfbb
RW
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902$as_echo "no" >&6; }
859789af
AC
7903fi
7904
81ecdfbb 7905
05cbd757
PB
7906 fi
7907 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7909set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911$as_echo_n "checking for $ac_word... " >&6; }
7912if test "${ac_cv_prog_LD+set}" = set; then :
7913 $as_echo_n "(cached) " >&6
859789af 7914else
05cbd757
PB
7915 if test -n "$LD"; then
7916 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 7917else
c6b750e1
DJ
7918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919for as_dir in $PATH
7920do
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7925 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7927 break 2
7928 fi
7929done
81ecdfbb
RW
7930 done
7931IFS=$as_save_IFS
c6b750e1 7932
859789af
AC
7933fi
7934fi
c6b750e1 7935LD=$ac_cv_prog_LD
05cbd757 7936if test -n "$LD"; then
81ecdfbb
RW
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7938$as_echo "$LD" >&6; }
859789af 7939else
81ecdfbb
RW
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941$as_echo "no" >&6; }
859789af 7942fi
c6b750e1 7943
81ecdfbb 7944
05cbd757
PB
7945 fi
7946 test -n "$ac_cv_prog_LD" && break
7947done
7948
7949if test -z "$ac_cv_prog_LD" ; then
7950 set dummy ld
7951 if test $build = $host ; then
7952 LD="$2"
859789af 7953 else
05cbd757 7954 LD="${ncn_tool_prefix}$2"
859789af 7955 fi
859789af
AC
7956fi
7957
9a819804
AO
7958
7959
7960if test -n "$LIPO"; then
7961 ac_cv_prog_LIPO=$LIPO
7962elif test -n "$ac_cv_prog_LIPO"; then
7963 LIPO=$ac_cv_prog_LIPO
7964fi
7965
7966if test -n "$ac_cv_prog_LIPO"; then
7967 for ncn_progname in lipo; do
7968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7969set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971$as_echo_n "checking for $ac_word... " >&6; }
7972if test "${ac_cv_prog_LIPO+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
9a819804
AO
7974else
7975 if test -n "$LIPO"; then
7976 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7977else
7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7985 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7987 break 2
7988 fi
7989done
81ecdfbb
RW
7990 done
7991IFS=$as_save_IFS
9a819804
AO
7992
7993fi
7994fi
7995LIPO=$ac_cv_prog_LIPO
7996if test -n "$LIPO"; then
81ecdfbb
RW
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7998$as_echo "$LIPO" >&6; }
9a819804 7999else
81ecdfbb
RW
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001$as_echo "no" >&6; }
9a819804
AO
8002fi
8003
81ecdfbb 8004
9a819804
AO
8005 done
8006fi
8007
8008for ncn_progname in lipo; do
be01d343
PB
8009 if test -n "$ncn_tool_prefix"; then
8010 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8011set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013$as_echo_n "checking for $ac_word... " >&6; }
8014if test "${ac_cv_prog_LIPO+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
be01d343
PB
8016else
8017 if test -n "$LIPO"; then
8018 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8019else
c6b750e1
DJ
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8027 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8029 break 2
8030 fi
8031done
81ecdfbb
RW
8032 done
8033IFS=$as_save_IFS
c6b750e1 8034
be01d343
PB
8035fi
8036fi
c6b750e1 8037LIPO=$ac_cv_prog_LIPO
be01d343 8038if test -n "$LIPO"; then
81ecdfbb
RW
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8040$as_echo "$LIPO" >&6; }
be01d343 8041else
81ecdfbb
RW
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043$as_echo "no" >&6; }
be01d343
PB
8044fi
8045
81ecdfbb 8046
be01d343
PB
8047 fi
8048 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8050set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052$as_echo_n "checking for $ac_word... " >&6; }
8053if test "${ac_cv_prog_LIPO+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
be01d343
PB
8055else
8056 if test -n "$LIPO"; then
8057 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8058else
c6b750e1
DJ
8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8066 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8068 break 2
8069 fi
8070done
81ecdfbb
RW
8071 done
8072IFS=$as_save_IFS
c6b750e1 8073
be01d343
PB
8074fi
8075fi
c6b750e1 8076LIPO=$ac_cv_prog_LIPO
be01d343 8077if test -n "$LIPO"; then
81ecdfbb
RW
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8079$as_echo "$LIPO" >&6; }
be01d343 8080else
81ecdfbb
RW
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
be01d343 8083fi
c6b750e1 8084
81ecdfbb 8085
be01d343
PB
8086 fi
8087 test -n "$ac_cv_prog_LIPO" && break
8088done
8089
8090if test -z "$ac_cv_prog_LIPO" ; then
8091 set dummy lipo
8092 if test $build = $host ; then
8093 LIPO="$2"
8094 else
8095 LIPO="${ncn_tool_prefix}$2"
8096 fi
8097fi
8098
9a819804
AO
8099
8100
8101if test -n "$NM"; then
8102 ac_cv_prog_NM=$NM
8103elif test -n "$ac_cv_prog_NM"; then
8104 NM=$ac_cv_prog_NM
8105fi
8106
8107if test -n "$ac_cv_prog_NM"; then
8108 for ncn_progname in nm; do
8109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8110set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112$as_echo_n "checking for $ac_word... " >&6; }
8113if test "${ac_cv_prog_NM+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
859789af
AC
8115else
8116 if test -n "$NM"; then
8117 ac_cv_prog_NM="$NM" # Let the user override the test.
8118else
c6b750e1
DJ
8119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120for as_dir in $PATH
8121do
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8126 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8128 break 2
8129 fi
8130done
81ecdfbb
RW
8131 done
8132IFS=$as_save_IFS
c6b750e1 8133
859789af
AC
8134fi
8135fi
c6b750e1 8136NM=$ac_cv_prog_NM
859789af 8137if test -n "$NM"; then
81ecdfbb
RW
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8139$as_echo "$NM" >&6; }
859789af 8140else
81ecdfbb
RW
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142$as_echo "no" >&6; }
859789af
AC
8143fi
8144
81ecdfbb 8145
9a819804
AO
8146 done
8147fi
8148
8149for ncn_progname in nm; do
8150 if test -n "$ncn_tool_prefix"; then
8151 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8152set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154$as_echo_n "checking for $ac_word... " >&6; }
8155if test "${ac_cv_prog_NM+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
859789af 8157else
05cbd757
PB
8158 if test -n "$NM"; then
8159 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8160else
c6b750e1
DJ
8161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162for as_dir in $PATH
8163do
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8168 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8170 break 2
8171 fi
8172done
81ecdfbb
RW
8173 done
8174IFS=$as_save_IFS
c6b750e1 8175
859789af
AC
8176fi
8177fi
c6b750e1 8178NM=$ac_cv_prog_NM
05cbd757 8179if test -n "$NM"; then
81ecdfbb
RW
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8181$as_echo "$NM" >&6; }
859789af 8182else
81ecdfbb
RW
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184$as_echo "no" >&6; }
859789af 8185fi
c6b750e1 8186
81ecdfbb 8187
05cbd757 8188 fi
9a819804
AO
8189 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8191set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193$as_echo_n "checking for $ac_word... " >&6; }
8194if test "${ac_cv_prog_NM+set}" = set; then :
8195 $as_echo_n "(cached) " >&6
9a819804
AO
8196else
8197 if test -n "$NM"; then
8198 ac_cv_prog_NM="$NM" # Let the user override the test.
8199else
8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201for as_dir in $PATH
8202do
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8207 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8209 break 2
8210 fi
8211done
81ecdfbb
RW
8212 done
8213IFS=$as_save_IFS
9a819804
AO
8214
8215fi
8216fi
8217NM=$ac_cv_prog_NM
8218if test -n "$NM"; then
81ecdfbb
RW
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8220$as_echo "$NM" >&6; }
9a819804 8221else
81ecdfbb
RW
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223$as_echo "no" >&6; }
9a819804
AO
8224fi
8225
81ecdfbb 8226
9a819804
AO
8227 fi
8228 test -n "$ac_cv_prog_NM" && break
8229done
8230
8231if test -z "$ac_cv_prog_NM" ; then
8232 set dummy nm
8233 if test $build = $host ; then
8234 NM="$2"
8235 else
8236 NM="${ncn_tool_prefix}$2"
8237 fi
8238fi
8239
8240
8241
8242if test -n "$RANLIB"; then
8243 ac_cv_prog_RANLIB=$RANLIB
8244elif test -n "$ac_cv_prog_RANLIB"; then
8245 RANLIB=$ac_cv_prog_RANLIB
8246fi
8247
8248if test -n "$ac_cv_prog_RANLIB"; then
8249 for ncn_progname in ranlib; do
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_RANLIB+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
9a819804
AO
8256else
8257 if test -n "$RANLIB"; then
8258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8259else
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
9a819804 8267 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8269 break 2
8270 fi
8271done
81ecdfbb
RW
8272 done
8273IFS=$as_save_IFS
9a819804
AO
8274
8275fi
8276fi
8277RANLIB=$ac_cv_prog_RANLIB
8278if test -n "$RANLIB"; then
81ecdfbb
RW
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8280$as_echo "$RANLIB" >&6; }
9a819804 8281else
81ecdfbb
RW
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
9a819804
AO
8284fi
8285
81ecdfbb 8286
9a819804
AO
8287 done
8288fi
859789af 8289
9a819804 8290for ncn_progname in ranlib; do
05cbd757
PB
8291 if test -n "$ncn_tool_prefix"; then
8292 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8293set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295$as_echo_n "checking for $ac_word... " >&6; }
8296if test "${ac_cv_prog_RANLIB+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
859789af
AC
8298else
8299 if test -n "$RANLIB"; then
8300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8301else
c6b750e1
DJ
8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8309 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8311 break 2
8312 fi
8313done
81ecdfbb
RW
8314 done
8315IFS=$as_save_IFS
c6b750e1 8316
859789af
AC
8317fi
8318fi
c6b750e1 8319RANLIB=$ac_cv_prog_RANLIB
859789af 8320if test -n "$RANLIB"; then
81ecdfbb
RW
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8322$as_echo "$RANLIB" >&6; }
859789af 8323else
81ecdfbb
RW
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325$as_echo "no" >&6; }
859789af
AC
8326fi
8327
81ecdfbb 8328
05cbd757
PB
8329 fi
8330 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8332set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334$as_echo_n "checking for $ac_word... " >&6; }
8335if test "${ac_cv_prog_RANLIB+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
859789af 8337else
05cbd757
PB
8338 if test -n "$RANLIB"; then
8339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8340else
c6b750e1
DJ
8341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342for as_dir in $PATH
8343do
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8348 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8350 break 2
8351 fi
8352done
81ecdfbb
RW
8353 done
8354IFS=$as_save_IFS
c6b750e1 8355
859789af
AC
8356fi
8357fi
c6b750e1 8358RANLIB=$ac_cv_prog_RANLIB
05cbd757 8359if test -n "$RANLIB"; then
81ecdfbb
RW
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8361$as_echo "$RANLIB" >&6; }
859789af 8362else
81ecdfbb
RW
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
859789af 8365fi
c6b750e1 8366
81ecdfbb 8367
859789af 8368 fi
05cbd757
PB
8369 test -n "$ac_cv_prog_RANLIB" && break
8370done
8371
8372if test -z "$ac_cv_prog_RANLIB" ; then
8373 RANLIB=":"
859789af
AC
8374fi
8375
9a819804
AO
8376
8377
8378if test -n "$STRIP"; then
8379 ac_cv_prog_STRIP=$STRIP
8380elif test -n "$ac_cv_prog_STRIP"; then
8381 STRIP=$ac_cv_prog_STRIP
8382fi
8383
8384if test -n "$ac_cv_prog_STRIP"; then
8385 for ncn_progname in strip; do
8386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8387set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389$as_echo_n "checking for $ac_word... " >&6; }
8390if test "${ac_cv_prog_STRIP+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
9a819804
AO
8392else
8393 if test -n "$STRIP"; then
8394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8395else
8396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397for as_dir in $PATH
8398do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8403 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8405 break 2
8406 fi
8407done
81ecdfbb
RW
8408 done
8409IFS=$as_save_IFS
9a819804
AO
8410
8411fi
8412fi
8413STRIP=$ac_cv_prog_STRIP
8414if test -n "$STRIP"; then
81ecdfbb
RW
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8416$as_echo "$STRIP" >&6; }
9a819804 8417else
81ecdfbb
RW
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419$as_echo "no" >&6; }
9a819804
AO
8420fi
8421
81ecdfbb 8422
9a819804
AO
8423 done
8424fi
8425
8426for ncn_progname in strip; do
be01d343
PB
8427 if test -n "$ncn_tool_prefix"; then
8428 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8429set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431$as_echo_n "checking for $ac_word... " >&6; }
8432if test "${ac_cv_prog_STRIP+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
be01d343
PB
8434else
8435 if test -n "$STRIP"; then
8436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8437else
c6b750e1
DJ
8438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8445 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8447 break 2
8448 fi
8449done
81ecdfbb
RW
8450 done
8451IFS=$as_save_IFS
c6b750e1 8452
be01d343
PB
8453fi
8454fi
c6b750e1 8455STRIP=$ac_cv_prog_STRIP
be01d343 8456if test -n "$STRIP"; then
81ecdfbb
RW
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8458$as_echo "$STRIP" >&6; }
be01d343 8459else
81ecdfbb
RW
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461$as_echo "no" >&6; }
be01d343
PB
8462fi
8463
81ecdfbb 8464
be01d343
PB
8465 fi
8466 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8468set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470$as_echo_n "checking for $ac_word... " >&6; }
8471if test "${ac_cv_prog_STRIP+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
be01d343
PB
8473else
8474 if test -n "$STRIP"; then
8475 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8476else
c6b750e1
DJ
8477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480 IFS=$as_save_IFS
8481 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8484 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8486 break 2
8487 fi
8488done
81ecdfbb
RW
8489 done
8490IFS=$as_save_IFS
c6b750e1 8491
be01d343
PB
8492fi
8493fi
c6b750e1 8494STRIP=$ac_cv_prog_STRIP
be01d343 8495if test -n "$STRIP"; then
81ecdfbb
RW
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8497$as_echo "$STRIP" >&6; }
be01d343 8498else
81ecdfbb
RW
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500$as_echo "no" >&6; }
be01d343 8501fi
c6b750e1 8502
81ecdfbb 8503
be01d343
PB
8504 fi
8505 test -n "$ac_cv_prog_STRIP" && break
8506done
8507
8508if test -z "$ac_cv_prog_STRIP" ; then
8509 STRIP=":"
8510fi
8511
9a819804
AO
8512
8513
8514if test -n "$WINDRES"; then
8515 ac_cv_prog_WINDRES=$WINDRES
8516elif test -n "$ac_cv_prog_WINDRES"; then
8517 WINDRES=$ac_cv_prog_WINDRES
8518fi
8519
8520if test -n "$ac_cv_prog_WINDRES"; then
8521 for ncn_progname in windres; do
8522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8523set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525$as_echo_n "checking for $ac_word... " >&6; }
8526if test "${ac_cv_prog_WINDRES+set}" = set; then :
8527 $as_echo_n "(cached) " >&6
9a819804
AO
8528else
8529 if test -n "$WINDRES"; then
8530 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8531else
8532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533for as_dir in $PATH
8534do
8535 IFS=$as_save_IFS
8536 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8539 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8541 break 2
8542 fi
8543done
81ecdfbb
RW
8544 done
8545IFS=$as_save_IFS
9a819804
AO
8546
8547fi
8548fi
8549WINDRES=$ac_cv_prog_WINDRES
8550if test -n "$WINDRES"; then
81ecdfbb
RW
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8552$as_echo "$WINDRES" >&6; }
9a819804 8553else
81ecdfbb
RW
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555$as_echo "no" >&6; }
9a819804
AO
8556fi
8557
81ecdfbb 8558
9a819804
AO
8559 done
8560fi
8561
8562for ncn_progname in windres; do
05cbd757
PB
8563 if test -n "$ncn_tool_prefix"; then
8564 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8565set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567$as_echo_n "checking for $ac_word... " >&6; }
8568if test "${ac_cv_prog_WINDRES+set}" = set; then :
8569 $as_echo_n "(cached) " >&6
859789af
AC
8570else
8571 if test -n "$WINDRES"; then
8572 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8573else
c6b750e1
DJ
8574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575for as_dir in $PATH
8576do
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8581 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8583 break 2
8584 fi
8585done
81ecdfbb
RW
8586 done
8587IFS=$as_save_IFS
c6b750e1 8588
859789af
AC
8589fi
8590fi
c6b750e1 8591WINDRES=$ac_cv_prog_WINDRES
859789af 8592if test -n "$WINDRES"; then
81ecdfbb
RW
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8594$as_echo "$WINDRES" >&6; }
859789af 8595else
81ecdfbb
RW
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597$as_echo "no" >&6; }
859789af
AC
8598fi
8599
81ecdfbb 8600
05cbd757
PB
8601 fi
8602 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8604set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606$as_echo_n "checking for $ac_word... " >&6; }
8607if test "${ac_cv_prog_WINDRES+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
859789af 8609else
05cbd757
PB
8610 if test -n "$WINDRES"; then
8611 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 8612else
c6b750e1
DJ
8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
8615do
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8620 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8622 break 2
8623 fi
8624done
81ecdfbb
RW
8625 done
8626IFS=$as_save_IFS
c6b750e1 8627
859789af
AC
8628fi
8629fi
c6b750e1 8630WINDRES=$ac_cv_prog_WINDRES
05cbd757 8631if test -n "$WINDRES"; then
81ecdfbb
RW
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8633$as_echo "$WINDRES" >&6; }
859789af 8634else
81ecdfbb
RW
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
859789af 8637fi
c6b750e1 8638
81ecdfbb 8639
05cbd757
PB
8640 fi
8641 test -n "$ac_cv_prog_WINDRES" && break
8642done
8643
8644if test -z "$ac_cv_prog_WINDRES" ; then
8645 set dummy windres
8646 if test $build = $host ; then
8647 WINDRES="$2"
859789af 8648 else
05cbd757 8649 WINDRES="${ncn_tool_prefix}$2"
859789af 8650 fi
859789af
AC
8651fi
8652
9a819804
AO
8653
8654
0c24b341
NC
8655if test -n "$WINDMC"; then
8656 ac_cv_prog_WINDMC=$WINDMC
8657elif test -n "$ac_cv_prog_WINDMC"; then
8658 WINDMC=$ac_cv_prog_WINDMC
8659fi
8660
8661if test -n "$ac_cv_prog_WINDMC"; then
8662 for ncn_progname in windmc; do
8663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8664set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666$as_echo_n "checking for $ac_word... " >&6; }
8667if test "${ac_cv_prog_WINDMC+set}" = set; then :
8668 $as_echo_n "(cached) " >&6
0c24b341
NC
8669else
8670 if test -n "$WINDMC"; then
8671 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8672else
8673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674for as_dir in $PATH
8675do
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8680 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8682 break 2
8683 fi
8684done
81ecdfbb
RW
8685 done
8686IFS=$as_save_IFS
0c24b341
NC
8687
8688fi
8689fi
8690WINDMC=$ac_cv_prog_WINDMC
8691if test -n "$WINDMC"; then
81ecdfbb
RW
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8693$as_echo "$WINDMC" >&6; }
0c24b341 8694else
81ecdfbb
RW
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696$as_echo "no" >&6; }
0c24b341
NC
8697fi
8698
81ecdfbb 8699
0c24b341
NC
8700 done
8701fi
8702
8703for ncn_progname in windmc; do
8704 if test -n "$ncn_tool_prefix"; then
8705 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8706set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708$as_echo_n "checking for $ac_word... " >&6; }
8709if test "${ac_cv_prog_WINDMC+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
0c24b341
NC
8711else
8712 if test -n "$WINDMC"; then
8713 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8714else
8715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716for as_dir in $PATH
8717do
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8722 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8724 break 2
8725 fi
8726done
81ecdfbb
RW
8727 done
8728IFS=$as_save_IFS
0c24b341
NC
8729
8730fi
8731fi
8732WINDMC=$ac_cv_prog_WINDMC
8733if test -n "$WINDMC"; then
81ecdfbb
RW
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8735$as_echo "$WINDMC" >&6; }
0c24b341 8736else
81ecdfbb
RW
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738$as_echo "no" >&6; }
0c24b341
NC
8739fi
8740
81ecdfbb 8741
0c24b341
NC
8742 fi
8743 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8745set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747$as_echo_n "checking for $ac_word... " >&6; }
8748if test "${ac_cv_prog_WINDMC+set}" = set; then :
8749 $as_echo_n "(cached) " >&6
0c24b341
NC
8750else
8751 if test -n "$WINDMC"; then
8752 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8753else
8754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $PATH
8756do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8761 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8763 break 2
8764 fi
8765done
81ecdfbb
RW
8766 done
8767IFS=$as_save_IFS
0c24b341
NC
8768
8769fi
8770fi
8771WINDMC=$ac_cv_prog_WINDMC
8772if test -n "$WINDMC"; then
81ecdfbb
RW
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8774$as_echo "$WINDMC" >&6; }
0c24b341 8775else
81ecdfbb
RW
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777$as_echo "no" >&6; }
0c24b341
NC
8778fi
8779
81ecdfbb 8780
0c24b341
NC
8781 fi
8782 test -n "$ac_cv_prog_WINDMC" && break
8783done
8784
8785if test -z "$ac_cv_prog_WINDMC" ; then
8786 set dummy windmc
8787 if test $build = $host ; then
8788 WINDMC="$2"
8789 else
8790 WINDMC="${ncn_tool_prefix}$2"
8791 fi
8792fi
8793
8794
8795
9a819804
AO
8796if test -n "$OBJCOPY"; then
8797 ac_cv_prog_OBJCOPY=$OBJCOPY
8798elif test -n "$ac_cv_prog_OBJCOPY"; then
8799 OBJCOPY=$ac_cv_prog_OBJCOPY
8800fi
8801
8802if test -n "$ac_cv_prog_OBJCOPY"; then
8803 for ncn_progname in objcopy; do
8804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8805set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807$as_echo_n "checking for $ac_word... " >&6; }
8808if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
9a819804
AO
8810else
8811 if test -n "$OBJCOPY"; then
8812 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8813else
8814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815for as_dir in $PATH
8816do
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8821 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8823 break 2
8824 fi
8825done
81ecdfbb
RW
8826 done
8827IFS=$as_save_IFS
9a819804
AO
8828
8829fi
8830fi
8831OBJCOPY=$ac_cv_prog_OBJCOPY
8832if test -n "$OBJCOPY"; then
81ecdfbb
RW
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8834$as_echo "$OBJCOPY" >&6; }
9a819804 8835else
81ecdfbb
RW
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837$as_echo "no" >&6; }
9a819804
AO
8838fi
8839
81ecdfbb 8840
9a819804
AO
8841 done
8842fi
8843
8844for ncn_progname in objcopy; do
05cbd757
PB
8845 if test -n "$ncn_tool_prefix"; then
8846 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8847set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8849$as_echo_n "checking for $ac_word... " >&6; }
8850if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8851 $as_echo_n "(cached) " >&6
859789af
AC
8852else
8853 if test -n "$OBJCOPY"; then
8854 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8855else
c6b750e1
DJ
8856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857for as_dir in $PATH
8858do
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8863 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8865 break 2
8866 fi
8867done
81ecdfbb
RW
8868 done
8869IFS=$as_save_IFS
c6b750e1 8870
859789af
AC
8871fi
8872fi
c6b750e1 8873OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 8874if test -n "$OBJCOPY"; then
81ecdfbb
RW
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8876$as_echo "$OBJCOPY" >&6; }
859789af 8877else
81ecdfbb
RW
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879$as_echo "no" >&6; }
859789af
AC
8880fi
8881
81ecdfbb 8882
05cbd757
PB
8883 fi
8884 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8886set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888$as_echo_n "checking for $ac_word... " >&6; }
8889if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
859789af 8891else
05cbd757
PB
8892 if test -n "$OBJCOPY"; then
8893 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 8894else
c6b750e1
DJ
8895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896for as_dir in $PATH
8897do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8902 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8904 break 2
8905 fi
8906done
81ecdfbb
RW
8907 done
8908IFS=$as_save_IFS
c6b750e1 8909
859789af
AC
8910fi
8911fi
c6b750e1 8912OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 8913if test -n "$OBJCOPY"; then
81ecdfbb
RW
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8915$as_echo "$OBJCOPY" >&6; }
859789af 8916else
81ecdfbb
RW
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918$as_echo "no" >&6; }
859789af 8919fi
c6b750e1 8920
81ecdfbb 8921
05cbd757
PB
8922 fi
8923 test -n "$ac_cv_prog_OBJCOPY" && break
8924done
8925
8926if test -z "$ac_cv_prog_OBJCOPY" ; then
8927 set dummy objcopy
8928 if test $build = $host ; then
8929 OBJCOPY="$2"
859789af 8930 else
05cbd757 8931 OBJCOPY="${ncn_tool_prefix}$2"
859789af 8932 fi
859789af
AC
8933fi
8934
9a819804
AO
8935
8936
8937if test -n "$OBJDUMP"; then
8938 ac_cv_prog_OBJDUMP=$OBJDUMP
8939elif test -n "$ac_cv_prog_OBJDUMP"; then
8940 OBJDUMP=$ac_cv_prog_OBJDUMP
8941fi
8942
8943if test -n "$ac_cv_prog_OBJDUMP"; then
8944 for ncn_progname in objdump; do
8945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8946set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948$as_echo_n "checking for $ac_word... " >&6; }
8949if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8950 $as_echo_n "(cached) " >&6
9a819804
AO
8951else
8952 if test -n "$OBJDUMP"; then
8953 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8954else
8955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956for as_dir in $PATH
8957do
8958 IFS=$as_save_IFS
8959 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8960 for ac_exec_ext in '' $ac_executable_extensions; do
8961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8962 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 8963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8964 break 2
8965 fi
8966done
81ecdfbb
RW
8967 done
8968IFS=$as_save_IFS
9a819804
AO
8969
8970fi
8971fi
8972OBJDUMP=$ac_cv_prog_OBJDUMP
8973if test -n "$OBJDUMP"; then
81ecdfbb
RW
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8975$as_echo "$OBJDUMP" >&6; }
9a819804 8976else
81ecdfbb
RW
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978$as_echo "no" >&6; }
9a819804
AO
8979fi
8980
81ecdfbb 8981
9a819804
AO
8982 done
8983fi
8984
8985for ncn_progname in objdump; do
05cbd757
PB
8986 if test -n "$ncn_tool_prefix"; then
8987 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8988set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990$as_echo_n "checking for $ac_word... " >&6; }
8991if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8992 $as_echo_n "(cached) " >&6
859789af
AC
8993else
8994 if test -n "$OBJDUMP"; then
8995 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8996else
c6b750e1
DJ
8997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998for as_dir in $PATH
8999do
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9004 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9006 break 2
9007 fi
9008done
81ecdfbb
RW
9009 done
9010IFS=$as_save_IFS
c6b750e1 9011
859789af
AC
9012fi
9013fi
c6b750e1 9014OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9015if test -n "$OBJDUMP"; then
81ecdfbb
RW
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9017$as_echo "$OBJDUMP" >&6; }
859789af 9018else
81ecdfbb
RW
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020$as_echo "no" >&6; }
859789af
AC
9021fi
9022
81ecdfbb 9023
05cbd757
PB
9024 fi
9025 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9027set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029$as_echo_n "checking for $ac_word... " >&6; }
9030if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
859789af 9032else
05cbd757
PB
9033 if test -n "$OBJDUMP"; then
9034 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9035else
c6b750e1
DJ
9036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037for as_dir in $PATH
9038do
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9041 for ac_exec_ext in '' $ac_executable_extensions; do
9042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9043 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9045 break 2
9046 fi
9047done
81ecdfbb
RW
9048 done
9049IFS=$as_save_IFS
c6b750e1 9050
859789af
AC
9051fi
9052fi
c6b750e1 9053OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9054if test -n "$OBJDUMP"; then
81ecdfbb
RW
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9056$as_echo "$OBJDUMP" >&6; }
859789af 9057else
81ecdfbb
RW
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059$as_echo "no" >&6; }
859789af 9060fi
c6b750e1 9061
81ecdfbb 9062
05cbd757
PB
9063 fi
9064 test -n "$ac_cv_prog_OBJDUMP" && break
9065done
9066
9067if test -z "$ac_cv_prog_OBJDUMP" ; then
9068 set dummy objdump
9069 if test $build = $host ; then
9070 OBJDUMP="$2"
859789af 9071 else
05cbd757 9072 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9073 fi
859789af
AC
9074fi
9075
a0da8069
NN
9076
9077
9078
9079
9080
be01d343 9081# Target tools.
c6b750e1 9082
81ecdfbb
RW
9083# Check whether --with-build-time-tools was given.
9084if test "${with_build_time_tools+set}" = set; then :
9085 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9086 x/*) ;;
9087 *)
9088 with_build_time_tools=
81ecdfbb
RW
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9090$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9091 ;;
9092 esac
859789af 9093else
2429c060 9094 with_build_time_tools=
81ecdfbb
RW
9095fi
9096
859789af 9097
9a819804
AO
9098
9099
9100if test -n "$CC_FOR_TARGET"; then
9101 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9102elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9103 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9104fi
9105
9106if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9107 for ncn_progname in cc gcc; do
9108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9109set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111$as_echo_n "checking for $ac_word... " >&6; }
9112if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9a819804
AO
9114else
9115 if test -n "$CC_FOR_TARGET"; then
9116 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9117else
9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9125 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9127 break 2
9128 fi
9129done
81ecdfbb
RW
9130 done
9131IFS=$as_save_IFS
9a819804
AO
9132
9133fi
9134fi
9135CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9136if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9138$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9139else
81ecdfbb
RW
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141$as_echo "no" >&6; }
9a819804
AO
9142fi
9143
81ecdfbb 9144
9a819804
AO
9145 done
9146fi
9147
9148if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9149 for ncn_progname in cc gcc; do
81ecdfbb
RW
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9151$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9152 if test -x $with_build_time_tools/${ncn_progname}; then
9153 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9155$as_echo "yes" >&6; }
cac3d6c4 9156 break
2429c060 9157 else
81ecdfbb
RW
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159$as_echo "no" >&6; }
cac3d6c4
CM
9160 fi
9161 done
55db4b87
PB
9162fi
9163
2429c060
PB
9164if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9165 for ncn_progname in cc gcc; do
9166 if test -n "$ncn_target_tool_prefix"; then
9167 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9168set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170$as_echo_n "checking for $ac_word... " >&6; }
9171if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9172 $as_echo_n "(cached) " >&6
55db4b87
PB
9173else
9174 if test -n "$CC_FOR_TARGET"; then
9175 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9176else
c6b750e1
DJ
9177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178for as_dir in $PATH
9179do
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9184 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9186 break 2
9187 fi
9188done
81ecdfbb
RW
9189 done
9190IFS=$as_save_IFS
c6b750e1 9191
55db4b87
PB
9192fi
9193fi
c6b750e1 9194CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9195if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9197$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9198else
81ecdfbb
RW
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200$as_echo "no" >&6; }
55db4b87
PB
9201fi
9202
81ecdfbb 9203
2429c060
PB
9204 fi
9205 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9207set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209$as_echo_n "checking for $ac_word... " >&6; }
9210if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
55db4b87 9212else
05cbd757
PB
9213 if test -n "$CC_FOR_TARGET"; then
9214 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9215else
c6b750e1
DJ
9216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217for as_dir in $PATH
9218do
9219 IFS=$as_save_IFS
9220 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9223 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9225 break 2
9226 fi
9227done
81ecdfbb
RW
9228 done
9229IFS=$as_save_IFS
c6b750e1 9230
55db4b87
PB
9231fi
9232fi
c6b750e1 9233CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9234if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9236$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9237else
81ecdfbb
RW
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239$as_echo "no" >&6; }
55db4b87 9240fi
c6b750e1 9241
81ecdfbb 9242
2429c060
PB
9243 fi
9244 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9245 done
9246fi
c6b750e1 9247
05cbd757
PB
9248if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9249 set dummy cc gcc
9250 if test $build = $target ; then
9251 CC_FOR_TARGET="$2"
55db4b87 9252 else
05cbd757 9253 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9254 fi
d3f5afc4
MS
9255else
9256 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9257fi
9258
9a819804
AO
9259
9260
9261if test -n "$CXX_FOR_TARGET"; then
9262 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9263elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9264 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9265fi
9266
9267if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9268 for ncn_progname in c++ g++ cxx gxx; do
9269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9270set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272$as_echo_n "checking for $ac_word... " >&6; }
9273if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9274 $as_echo_n "(cached) " >&6
9a819804
AO
9275else
9276 if test -n "$CXX_FOR_TARGET"; then
9277 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9278else
9279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280for as_dir in $PATH
9281do
9282 IFS=$as_save_IFS
9283 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9284 for ac_exec_ext in '' $ac_executable_extensions; do
9285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9286 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9288 break 2
9289 fi
9290done
81ecdfbb
RW
9291 done
9292IFS=$as_save_IFS
9a819804
AO
9293
9294fi
9295fi
9296CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9297if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9299$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9300else
81ecdfbb
RW
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
9a819804
AO
9303fi
9304
81ecdfbb 9305
9a819804
AO
9306 done
9307fi
9308
9309if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9310 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9312$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9313 if test -x $with_build_time_tools/${ncn_progname}; then
9314 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9316$as_echo "yes" >&6; }
2429c060
PB
9317 break
9318 else
81ecdfbb
RW
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320$as_echo "no" >&6; }
2429c060
PB
9321 fi
9322 done
9323fi
9324
9325if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9326 for ncn_progname in c++ g++ cxx gxx; do
9327 if test -n "$ncn_target_tool_prefix"; then
9328 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9329set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331$as_echo_n "checking for $ac_word... " >&6; }
9332if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9333 $as_echo_n "(cached) " >&6
55db4b87
PB
9334else
9335 if test -n "$CXX_FOR_TARGET"; then
9336 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9337else
c6b750e1
DJ
9338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339for as_dir in $PATH
9340do
9341 IFS=$as_save_IFS
9342 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9343 for ac_exec_ext in '' $ac_executable_extensions; do
9344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9345 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9347 break 2
9348 fi
9349done
81ecdfbb
RW
9350 done
9351IFS=$as_save_IFS
c6b750e1 9352
55db4b87
PB
9353fi
9354fi
c6b750e1 9355CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9356if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9358$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9359else
81ecdfbb
RW
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361$as_echo "no" >&6; }
55db4b87
PB
9362fi
9363
81ecdfbb 9364
2429c060
PB
9365 fi
9366 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9368set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9370$as_echo_n "checking for $ac_word... " >&6; }
9371if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9372 $as_echo_n "(cached) " >&6
55db4b87 9373else
05cbd757
PB
9374 if test -n "$CXX_FOR_TARGET"; then
9375 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9376else
c6b750e1
DJ
9377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378for as_dir in $PATH
9379do
9380 IFS=$as_save_IFS
9381 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9382 for ac_exec_ext in '' $ac_executable_extensions; do
9383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9384 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9386 break 2
9387 fi
9388done
81ecdfbb
RW
9389 done
9390IFS=$as_save_IFS
c6b750e1 9391
55db4b87
PB
9392fi
9393fi
c6b750e1 9394CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9395if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9397$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9398else
81ecdfbb
RW
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400$as_echo "no" >&6; }
55db4b87 9401fi
c6b750e1 9402
81ecdfbb 9403
2429c060
PB
9404 fi
9405 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9406 done
9407fi
c6b750e1 9408
05cbd757
PB
9409if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9410 set dummy c++ g++ cxx gxx
9411 if test $build = $target ; then
9412 CXX_FOR_TARGET="$2"
55db4b87 9413 else
05cbd757 9414 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9415 fi
d3f5afc4
MS
9416else
9417 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9418fi
9419
9a819804
AO
9420
9421
9422if test -n "$GCC_FOR_TARGET"; then
9423 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9424elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9425 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9426fi
9427
9428if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9429 for ncn_progname in gcc; do
9430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9431set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433$as_echo_n "checking for $ac_word... " >&6; }
9434if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9435 $as_echo_n "(cached) " >&6
9a819804
AO
9436else
9437 if test -n "$GCC_FOR_TARGET"; then
9438 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9439else
9440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441for as_dir in $PATH
9442do
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9447 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9449 break 2
9450 fi
9451done
81ecdfbb
RW
9452 done
9453IFS=$as_save_IFS
9a819804
AO
9454
9455fi
9456fi
9457GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9458if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9460$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 9461else
81ecdfbb
RW
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463$as_echo "no" >&6; }
9a819804
AO
9464fi
9465
81ecdfbb 9466
9a819804
AO
9467 done
9468fi
9469
9470if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9471 for ncn_progname in gcc; do
81ecdfbb
RW
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9473$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9474 if test -x $with_build_time_tools/${ncn_progname}; then
9475 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9477$as_echo "yes" >&6; }
2429c060
PB
9478 break
9479 else
81ecdfbb
RW
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481$as_echo "no" >&6; }
2429c060
PB
9482 fi
9483 done
9484fi
9485
9486if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9487 for ncn_progname in gcc; do
9488 if test -n "$ncn_target_tool_prefix"; then
9489 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9490set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492$as_echo_n "checking for $ac_word... " >&6; }
9493if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
859789af 9495else
2429c060
PB
9496 if test -n "$GCC_FOR_TARGET"; then
9497 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9498else
c6b750e1
DJ
9499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500for as_dir in $PATH
9501do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9506 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9508 break 2
9509 fi
9510done
81ecdfbb
RW
9511 done
9512IFS=$as_save_IFS
c6b750e1 9513
55db4b87
PB
9514fi
9515fi
c6b750e1 9516GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 9517if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9519$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 9520else
81ecdfbb
RW
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522$as_echo "no" >&6; }
55db4b87
PB
9523fi
9524
81ecdfbb 9525
2429c060
PB
9526 fi
9527 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9529set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531$as_echo_n "checking for $ac_word... " >&6; }
9532if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9533 $as_echo_n "(cached) " >&6
55db4b87 9534else
05cbd757
PB
9535 if test -n "$GCC_FOR_TARGET"; then
9536 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9537else
c6b750e1
DJ
9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539for as_dir in $PATH
9540do
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9543 for ac_exec_ext in '' $ac_executable_extensions; do
9544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9545 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9547 break 2
9548 fi
9549done
81ecdfbb
RW
9550 done
9551IFS=$as_save_IFS
c6b750e1 9552
55db4b87
PB
9553fi
9554fi
c6b750e1 9555GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 9556if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9558$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 9559else
81ecdfbb
RW
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561$as_echo "no" >&6; }
55db4b87 9562fi
c6b750e1 9563
81ecdfbb 9564
2429c060
PB
9565 fi
9566 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9567 done
9568fi
c6b750e1 9569
05cbd757
PB
9570if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9571 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
9572else
9573 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
9574fi
9575
9a819804
AO
9576
9577
9578if test -n "$GCJ_FOR_TARGET"; then
9579 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9580elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9581 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9582fi
9583
9584if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9585 for ncn_progname in gcj; do
9586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9587set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589$as_echo_n "checking for $ac_word... " >&6; }
9590if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9591 $as_echo_n "(cached) " >&6
9a819804
AO
9592else
9593 if test -n "$GCJ_FOR_TARGET"; then
9594 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9595else
9596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597for as_dir in $PATH
9598do
9599 IFS=$as_save_IFS
9600 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9601 for ac_exec_ext in '' $ac_executable_extensions; do
9602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9603 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 9604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9605 break 2
9606 fi
9607done
81ecdfbb
RW
9608 done
9609IFS=$as_save_IFS
9a819804
AO
9610
9611fi
9612fi
9613GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9614if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9616$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9617else
81ecdfbb
RW
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619$as_echo "no" >&6; }
9a819804
AO
9620fi
9621
81ecdfbb 9622
9a819804
AO
9623 done
9624fi
9625
9626if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9627 for ncn_progname in gcj; do
81ecdfbb
RW
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9629$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9630 if test -x $with_build_time_tools/${ncn_progname}; then
9631 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9633$as_echo "yes" >&6; }
2429c060
PB
9634 break
9635 else
81ecdfbb
RW
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637$as_echo "no" >&6; }
2429c060
PB
9638 fi
9639 done
9640fi
9641
9642if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9643 for ncn_progname in gcj; do
9644 if test -n "$ncn_target_tool_prefix"; then
9645 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9646set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648$as_echo_n "checking for $ac_word... " >&6; }
9649if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
55db4b87
PB
9651else
9652 if test -n "$GCJ_FOR_TARGET"; then
9653 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9654else
c6b750e1
DJ
9655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656for as_dir in $PATH
9657do
9658 IFS=$as_save_IFS
9659 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9660 for ac_exec_ext in '' $ac_executable_extensions; do
9661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9662 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9664 break 2
9665 fi
9666done
81ecdfbb
RW
9667 done
9668IFS=$as_save_IFS
c6b750e1 9669
55db4b87
PB
9670fi
9671fi
9a819804
AO
9672GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9673if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9675$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9676else
81ecdfbb
RW
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9678$as_echo "no" >&6; }
9a819804
AO
9679fi
9680
81ecdfbb 9681
9a819804
AO
9682 fi
9683 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9685set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687$as_echo_n "checking for $ac_word... " >&6; }
9688if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9a819804
AO
9690else
9691 if test -n "$GCJ_FOR_TARGET"; then
9692 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9693else
9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9701 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 9702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9703 break 2
9704 fi
9705done
81ecdfbb
RW
9706 done
9707IFS=$as_save_IFS
9a819804
AO
9708
9709fi
9710fi
9711GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9712if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9714$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9715else
81ecdfbb
RW
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717$as_echo "no" >&6; }
9a819804
AO
9718fi
9719
81ecdfbb 9720
9a819804
AO
9721 fi
9722 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9723 done
9724fi
9725
9726if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9727 set dummy gcj
9728 if test $build = $target ; then
9729 GCJ_FOR_TARGET="$2"
9730 else
9731 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9732 fi
d3f5afc4
MS
9733else
9734 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
9735fi
9736
9737
9738
9739if test -n "$GFORTRAN_FOR_TARGET"; then
9740 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9741elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9742 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
9743fi
9744
9a819804
AO
9745if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9746 for ncn_progname in gfortran; do
9747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9748set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750$as_echo_n "checking for $ac_word... " >&6; }
9751if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9752 $as_echo_n "(cached) " >&6
55db4b87 9753else
9a819804
AO
9754 if test -n "$GFORTRAN_FOR_TARGET"; then
9755 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 9756else
c6b750e1
DJ
9757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9758for as_dir in $PATH
9759do
9760 IFS=$as_save_IFS
9761 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9762 for ac_exec_ext in '' $ac_executable_extensions; do
9763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9764 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 9765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9766 break 2
9767 fi
9768done
81ecdfbb
RW
9769 done
9770IFS=$as_save_IFS
c6b750e1 9771
55db4b87
PB
9772fi
9773fi
9a819804
AO
9774GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9775if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9777$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 9778else
81ecdfbb
RW
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780$as_echo "no" >&6; }
55db4b87 9781fi
c6b750e1 9782
81ecdfbb 9783
2429c060
PB
9784 done
9785fi
c6b750e1 9786
9a819804 9787if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9788 for ncn_progname in gfortran; do
81ecdfbb
RW
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9790$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9791 if test -x $with_build_time_tools/${ncn_progname}; then
9792 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9794$as_echo "yes" >&6; }
2429c060
PB
9795 break
9796 else
81ecdfbb
RW
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798$as_echo "no" >&6; }
2429c060
PB
9799 fi
9800 done
9801fi
9802
9803if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9804 for ncn_progname in gfortran; do
9805 if test -n "$ncn_target_tool_prefix"; then
9806 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9807set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809$as_echo_n "checking for $ac_word... " >&6; }
9810if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
55db4b87
PB
9812else
9813 if test -n "$GFORTRAN_FOR_TARGET"; then
9814 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9815else
c6b750e1
DJ
9816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817for as_dir in $PATH
9818do
9819 IFS=$as_save_IFS
9820 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9821 for ac_exec_ext in '' $ac_executable_extensions; do
9822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9823 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9825 break 2
9826 fi
9827done
81ecdfbb
RW
9828 done
9829IFS=$as_save_IFS
c6b750e1 9830
55db4b87
PB
9831fi
9832fi
c6b750e1 9833GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 9834if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9836$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 9837else
81ecdfbb
RW
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839$as_echo "no" >&6; }
55db4b87
PB
9840fi
9841
81ecdfbb 9842
2429c060
PB
9843 fi
9844 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9846set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848$as_echo_n "checking for $ac_word... " >&6; }
9849if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
55db4b87 9851else
05cbd757 9852 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9853 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9854else
9855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856for as_dir in $PATH
9857do
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9862 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 9863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9864 break 2
9865 fi
9866done
81ecdfbb
RW
9867 done
9868IFS=$as_save_IFS
c6b750e1 9869
55db4b87
PB
9870fi
9871fi
c6b750e1 9872GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 9873if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9875$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 9876else
81ecdfbb
RW
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878$as_echo "no" >&6; }
55db4b87 9879fi
c6b750e1 9880
81ecdfbb 9881
2429c060
PB
9882 fi
9883 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9884 done
9885fi
c6b750e1 9886
05cbd757
PB
9887if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9888 set dummy gfortran
9889 if test $build = $target ; then
9890 GFORTRAN_FOR_TARGET="$2"
55db4b87 9891 else
05cbd757 9892 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9893 fi
d3f5afc4
MS
9894else
9895 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
9896fi
9897
2429c060
PB
9898
9899
2429c060
PB
9900cat > conftest.c << \EOF
9901#ifdef __GNUC__
9902 gcc_yay;
9903#endif
9904EOF
9905if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9906 have_gcc_for_target=yes
859789af 9907else
2429c060
PB
9908 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9909 have_gcc_for_target=no
859789af 9910fi
2429c060
PB
9911rm conftest.c
9912
9913
9914
859789af 9915
2429c060
PB
9916if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9917 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
9919$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9920 if test -x $with_build_time_tools/ar; then
9921 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9922 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
9924$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 9925 else
81ecdfbb
RW
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927$as_echo "no" >&6; }
3a35eeb3 9928 fi
2429c060
PB
9929 elif test $build != $host && test $have_gcc_for_target = yes; then
9930 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
9931 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9932 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 9933 fi
2429c060 9934fi
c6b750e1 9935if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9936 # Extract the first word of "ar", so it can be a program name with args.
9937set dummy ar; ac_word=$2
81ecdfbb
RW
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939$as_echo_n "checking for $ac_word... " >&6; }
9940if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
9941 $as_echo_n "(cached) " >&6
859789af 9942else
c6b750e1
DJ
9943 case $AR_FOR_TARGET in
9944 [\\/]* | ?:[\\/]*)
2429c060
PB
9945 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9946 ;;
2429c060 9947 *)
c6b750e1
DJ
9948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9949for as_dir in $gcc_cv_tool_dirs
9950do
9951 IFS=$as_save_IFS
9952 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9953 for ac_exec_ext in '' $ac_executable_extensions; do
9954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9955 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 9956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9957 break 2
9958 fi
9959done
81ecdfbb
RW
9960 done
9961IFS=$as_save_IFS
c6b750e1 9962
2429c060
PB
9963 ;;
9964esac
859789af 9965fi
c6b750e1 9966AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 9967if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9969$as_echo "$AR_FOR_TARGET" >&6; }
859789af 9970else
81ecdfbb
RW
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972$as_echo "no" >&6; }
859789af 9973fi
05cbd757 9974
81ecdfbb 9975
2429c060
PB
9976fi
9977if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
9978
9979
9980if test -n "$AR_FOR_TARGET"; then
9981 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9982elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9983 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9984fi
9985
9986if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9987 for ncn_progname in ar; do
9988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9989set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991$as_echo_n "checking for $ac_word... " >&6; }
9992if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9993 $as_echo_n "(cached) " >&6
9a819804
AO
9994else
9995 if test -n "$AR_FOR_TARGET"; then
9996 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9997else
9998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999for as_dir in $PATH
10000do
10001 IFS=$as_save_IFS
10002 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10003 for ac_exec_ext in '' $ac_executable_extensions; do
10004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10005 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10007 break 2
10008 fi
10009done
81ecdfbb
RW
10010 done
10011IFS=$as_save_IFS
9a819804
AO
10012
10013fi
10014fi
10015AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10016if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10018$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10019else
81ecdfbb
RW
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021$as_echo "no" >&6; }
9a819804
AO
10022fi
10023
81ecdfbb 10024
9a819804
AO
10025 done
10026fi
10027
10028if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10029 for ncn_progname in ar; do
81ecdfbb
RW
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10031$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10032 if test -x $with_build_time_tools/${ncn_progname}; then
10033 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10035$as_echo "yes" >&6; }
2429c060
PB
10036 break
10037 else
81ecdfbb
RW
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039$as_echo "no" >&6; }
2429c060
PB
10040 fi
10041 done
859789af
AC
10042fi
10043
2429c060
PB
10044if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10045 for ncn_progname in ar; do
10046 if test -n "$ncn_target_tool_prefix"; then
10047 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10048set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050$as_echo_n "checking for $ac_word... " >&6; }
10051if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
7e0f7140 10053else
2429c060
PB
10054 if test -n "$AR_FOR_TARGET"; then
10055 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10056else
c6b750e1
DJ
10057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058for as_dir in $PATH
10059do
10060 IFS=$as_save_IFS
10061 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10064 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10066 break 2
10067 fi
10068done
81ecdfbb
RW
10069 done
10070IFS=$as_save_IFS
c6b750e1 10071
7e0f7140
GK
10072fi
10073fi
c6b750e1 10074AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10075if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10077$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10078else
81ecdfbb
RW
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080$as_echo "no" >&6; }
7e0f7140
GK
10081fi
10082
81ecdfbb 10083
2429c060
PB
10084 fi
10085 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10087set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089$as_echo_n "checking for $ac_word... " >&6; }
10090if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
7e0f7140 10092else
2429c060
PB
10093 if test -n "$AR_FOR_TARGET"; then
10094 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10095else
c6b750e1
DJ
10096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097for as_dir in $PATH
10098do
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10103 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10105 break 2
10106 fi
10107done
81ecdfbb
RW
10108 done
10109IFS=$as_save_IFS
c6b750e1 10110
7e0f7140
GK
10111fi
10112fi
c6b750e1 10113AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10114if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10116$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10117else
81ecdfbb
RW
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119$as_echo "no" >&6; }
7e0f7140 10120fi
c6b750e1 10121
81ecdfbb 10122
2429c060
PB
10123 fi
10124 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10125 done
10126fi
c6b750e1 10127
2429c060
PB
10128if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10129 set dummy ar
7e0f7140 10130 if test $build = $target ; then
2429c060 10131 AR_FOR_TARGET="$2"
7e0f7140 10132 else
2429c060 10133 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10134 fi
d3f5afc4
MS
10135else
10136 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10137fi
10138
3a35eeb3
PB
10139else
10140 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10141fi
10142
10143
10144
10145
10146if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10147 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10149$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10150 if test -x $with_build_time_tools/as; then
10151 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10152 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10154$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10155 else
81ecdfbb
RW
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157$as_echo "no" >&6; }
3a35eeb3 10158 fi
2429c060
PB
10159 elif test $build != $host && test $have_gcc_for_target = yes; then
10160 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10161 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10162 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10163 fi
10164fi
c6b750e1 10165if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10166 # Extract the first word of "as", so it can be a program name with args.
10167set dummy as; ac_word=$2
81ecdfbb
RW
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169$as_echo_n "checking for $ac_word... " >&6; }
10170if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
2429c060 10172else
c6b750e1
DJ
10173 case $AS_FOR_TARGET in
10174 [\\/]* | ?:[\\/]*)
2429c060
PB
10175 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10176 ;;
2429c060 10177 *)
c6b750e1
DJ
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179for as_dir in $gcc_cv_tool_dirs
10180do
10181 IFS=$as_save_IFS
10182 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10185 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10187 break 2
10188 fi
10189done
81ecdfbb
RW
10190 done
10191IFS=$as_save_IFS
c6b750e1 10192
2429c060
PB
10193 ;;
10194esac
10195fi
c6b750e1 10196AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10197if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10199$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10200else
81ecdfbb
RW
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202$as_echo "no" >&6; }
2429c060
PB
10203fi
10204
81ecdfbb 10205
2429c060
PB
10206fi
10207if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10208
10209
10210if test -n "$AS_FOR_TARGET"; then
10211 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10212elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10213 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10214fi
10215
10216if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10217 for ncn_progname in as; do
10218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10219set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10221$as_echo_n "checking for $ac_word... " >&6; }
10222if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10223 $as_echo_n "(cached) " >&6
9a819804
AO
10224else
10225 if test -n "$AS_FOR_TARGET"; then
10226 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10227else
10228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229for as_dir in $PATH
10230do
10231 IFS=$as_save_IFS
10232 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10233 for ac_exec_ext in '' $ac_executable_extensions; do
10234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10235 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10237 break 2
10238 fi
10239done
81ecdfbb
RW
10240 done
10241IFS=$as_save_IFS
9a819804
AO
10242
10243fi
10244fi
10245AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10246if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10248$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10249else
81ecdfbb
RW
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10251$as_echo "no" >&6; }
9a819804
AO
10252fi
10253
81ecdfbb 10254
9a819804
AO
10255 done
10256fi
10257
10258if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10259 for ncn_progname in as; do
81ecdfbb
RW
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10261$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10262 if test -x $with_build_time_tools/${ncn_progname}; then
10263 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10265$as_echo "yes" >&6; }
2429c060
PB
10266 break
10267 else
81ecdfbb
RW
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269$as_echo "no" >&6; }
2429c060
PB
10270 fi
10271 done
10272fi
10273
10274if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10275 for ncn_progname in as; do
10276 if test -n "$ncn_target_tool_prefix"; then
10277 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10278set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280$as_echo_n "checking for $ac_word... " >&6; }
10281if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
2429c060
PB
10283else
10284 if test -n "$AS_FOR_TARGET"; then
10285 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10286else
c6b750e1
DJ
10287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288for as_dir in $PATH
10289do
10290 IFS=$as_save_IFS
10291 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10292 for ac_exec_ext in '' $ac_executable_extensions; do
10293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10294 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10296 break 2
10297 fi
10298done
81ecdfbb
RW
10299 done
10300IFS=$as_save_IFS
c6b750e1 10301
2429c060
PB
10302fi
10303fi
c6b750e1 10304AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10305if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10307$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10308else
81ecdfbb
RW
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10310$as_echo "no" >&6; }
2429c060
PB
10311fi
10312
81ecdfbb 10313
2429c060
PB
10314 fi
10315 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10317set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10319$as_echo_n "checking for $ac_word... " >&6; }
10320if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10321 $as_echo_n "(cached) " >&6
2429c060
PB
10322else
10323 if test -n "$AS_FOR_TARGET"; then
10324 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10325else
c6b750e1
DJ
10326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327for as_dir in $PATH
10328do
10329 IFS=$as_save_IFS
10330 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10333 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10335 break 2
10336 fi
10337done
81ecdfbb
RW
10338 done
10339IFS=$as_save_IFS
c6b750e1 10340
2429c060
PB
10341fi
10342fi
c6b750e1 10343AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10344if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10346$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10347else
81ecdfbb
RW
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349$as_echo "no" >&6; }
2429c060 10350fi
c6b750e1 10351
81ecdfbb 10352
2429c060
PB
10353 fi
10354 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10355 done
10356fi
c6b750e1 10357
2429c060
PB
10358if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10359 set dummy as
10360 if test $build = $target ; then
10361 AS_FOR_TARGET="$2"
10362 else
10363 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10364 fi
d3f5afc4
MS
10365else
10366 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
10367fi
10368
3a35eeb3
PB
10369else
10370 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
10371fi
10372
10373
10374
10375
10376if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10377 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10379$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10380 if test -x $with_build_time_tools/dlltool; then
10381 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10382 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10384$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 10385 else
81ecdfbb
RW
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387$as_echo "no" >&6; }
3a35eeb3 10388 fi
2429c060
PB
10389 elif test $build != $host && test $have_gcc_for_target = yes; then
10390 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
10391 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10392 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
10393 fi
10394fi
c6b750e1 10395if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10396 # Extract the first word of "dlltool", so it can be a program name with args.
10397set dummy dlltool; ac_word=$2
81ecdfbb
RW
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10399$as_echo_n "checking for $ac_word... " >&6; }
10400if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10401 $as_echo_n "(cached) " >&6
2429c060 10402else
c6b750e1
DJ
10403 case $DLLTOOL_FOR_TARGET in
10404 [\\/]* | ?:[\\/]*)
2429c060
PB
10405 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10406 ;;
2429c060 10407 *)
c6b750e1
DJ
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $gcc_cv_tool_dirs
10410do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10415 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10417 break 2
10418 fi
10419done
81ecdfbb
RW
10420 done
10421IFS=$as_save_IFS
c6b750e1 10422
2429c060
PB
10423 ;;
10424esac
10425fi
c6b750e1 10426DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 10427if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10429$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10430else
81ecdfbb
RW
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432$as_echo "no" >&6; }
2429c060
PB
10433fi
10434
81ecdfbb 10435
2429c060
PB
10436fi
10437if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
10438
10439
10440if test -n "$DLLTOOL_FOR_TARGET"; then
10441 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10442elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10443 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10444fi
10445
10446if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10447 for ncn_progname in dlltool; do
10448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10449set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451$as_echo_n "checking for $ac_word... " >&6; }
10452if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10453 $as_echo_n "(cached) " >&6
9a819804
AO
10454else
10455 if test -n "$DLLTOOL_FOR_TARGET"; then
10456 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10457else
10458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459for as_dir in $PATH
10460do
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10465 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10467 break 2
10468 fi
10469done
81ecdfbb
RW
10470 done
10471IFS=$as_save_IFS
9a819804
AO
10472
10473fi
10474fi
10475DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10476if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10478$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 10479else
81ecdfbb
RW
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481$as_echo "no" >&6; }
9a819804
AO
10482fi
10483
81ecdfbb 10484
9a819804
AO
10485 done
10486fi
10487
10488if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10489 for ncn_progname in dlltool; do
81ecdfbb
RW
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10491$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10492 if test -x $with_build_time_tools/${ncn_progname}; then
10493 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10495$as_echo "yes" >&6; }
2429c060
PB
10496 break
10497 else
81ecdfbb
RW
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499$as_echo "no" >&6; }
2429c060
PB
10500 fi
10501 done
10502fi
10503
10504if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10505 for ncn_progname in dlltool; do
10506 if test -n "$ncn_target_tool_prefix"; then
10507 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10508set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510$as_echo_n "checking for $ac_word... " >&6; }
10511if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10512 $as_echo_n "(cached) " >&6
2429c060
PB
10513else
10514 if test -n "$DLLTOOL_FOR_TARGET"; then
10515 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10516else
c6b750e1
DJ
10517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518for as_dir in $PATH
10519do
10520 IFS=$as_save_IFS
10521 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10524 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10526 break 2
10527 fi
10528done
81ecdfbb
RW
10529 done
10530IFS=$as_save_IFS
c6b750e1 10531
2429c060
PB
10532fi
10533fi
c6b750e1 10534DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10535if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10537$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10538else
81ecdfbb
RW
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540$as_echo "no" >&6; }
2429c060
PB
10541fi
10542
81ecdfbb 10543
2429c060
PB
10544 fi
10545 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10547set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10549$as_echo_n "checking for $ac_word... " >&6; }
10550if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10551 $as_echo_n "(cached) " >&6
2429c060
PB
10552else
10553 if test -n "$DLLTOOL_FOR_TARGET"; then
10554 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10555else
c6b750e1
DJ
10556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557for as_dir in $PATH
10558do
10559 IFS=$as_save_IFS
10560 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10561 for ac_exec_ext in '' $ac_executable_extensions; do
10562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10563 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 10564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10565 break 2
10566 fi
10567done
81ecdfbb
RW
10568 done
10569IFS=$as_save_IFS
c6b750e1 10570
2429c060
PB
10571fi
10572fi
c6b750e1 10573DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10574if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10576$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10577else
81ecdfbb
RW
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579$as_echo "no" >&6; }
2429c060 10580fi
c6b750e1 10581
81ecdfbb 10582
2429c060
PB
10583 fi
10584 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10585 done
10586fi
c6b750e1 10587
2429c060
PB
10588if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10589 set dummy dlltool
10590 if test $build = $target ; then
10591 DLLTOOL_FOR_TARGET="$2"
10592 else
10593 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10594 fi
d3f5afc4
MS
10595else
10596 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
10597fi
10598
3a35eeb3
PB
10599else
10600 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
10601fi
10602
10603
10604
10605
10606if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10607 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10609$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10610 if test -x $with_build_time_tools/ld; then
10611 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10612 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10614$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 10615 else
81ecdfbb
RW
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617$as_echo "no" >&6; }
3a35eeb3 10618 fi
2429c060
PB
10619 elif test $build != $host && test $have_gcc_for_target = yes; then
10620 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
10621 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10622 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
10623 fi
10624fi
c6b750e1 10625if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10626 # Extract the first word of "ld", so it can be a program name with args.
10627set dummy ld; ac_word=$2
81ecdfbb
RW
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10629$as_echo_n "checking for $ac_word... " >&6; }
10630if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10631 $as_echo_n "(cached) " >&6
2429c060 10632else
c6b750e1
DJ
10633 case $LD_FOR_TARGET in
10634 [\\/]* | ?:[\\/]*)
2429c060
PB
10635 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10636 ;;
2429c060 10637 *)
c6b750e1
DJ
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639for as_dir in $gcc_cv_tool_dirs
10640do
10641 IFS=$as_save_IFS
10642 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10645 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10647 break 2
10648 fi
10649done
81ecdfbb
RW
10650 done
10651IFS=$as_save_IFS
c6b750e1 10652
2429c060
PB
10653 ;;
10654esac
10655fi
c6b750e1 10656LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 10657if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10659$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10660else
81ecdfbb
RW
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662$as_echo "no" >&6; }
2429c060
PB
10663fi
10664
81ecdfbb 10665
2429c060
PB
10666fi
10667if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
10668
10669
10670if test -n "$LD_FOR_TARGET"; then
10671 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10672elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10673 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10674fi
10675
10676if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10677 for ncn_progname in ld; do
10678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10679set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681$as_echo_n "checking for $ac_word... " >&6; }
10682if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10683 $as_echo_n "(cached) " >&6
9a819804
AO
10684else
10685 if test -n "$LD_FOR_TARGET"; then
10686 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10687else
10688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689for as_dir in $PATH
10690do
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10695 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10697 break 2
10698 fi
10699done
81ecdfbb
RW
10700 done
10701IFS=$as_save_IFS
9a819804
AO
10702
10703fi
10704fi
10705LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10706if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10708$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 10709else
81ecdfbb
RW
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711$as_echo "no" >&6; }
9a819804
AO
10712fi
10713
81ecdfbb 10714
9a819804
AO
10715 done
10716fi
10717
10718if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10719 for ncn_progname in ld; do
81ecdfbb
RW
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10721$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10722 if test -x $with_build_time_tools/${ncn_progname}; then
10723 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10725$as_echo "yes" >&6; }
2429c060
PB
10726 break
10727 else
81ecdfbb
RW
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729$as_echo "no" >&6; }
2429c060
PB
10730 fi
10731 done
10732fi
10733
10734if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10735 for ncn_progname in ld; do
10736 if test -n "$ncn_target_tool_prefix"; then
10737 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10738set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10740$as_echo_n "checking for $ac_word... " >&6; }
10741if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10742 $as_echo_n "(cached) " >&6
2429c060
PB
10743else
10744 if test -n "$LD_FOR_TARGET"; then
10745 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10746else
c6b750e1
DJ
10747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748for as_dir in $PATH
10749do
10750 IFS=$as_save_IFS
10751 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10752 for ac_exec_ext in '' $ac_executable_extensions; do
10753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10754 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10756 break 2
10757 fi
10758done
81ecdfbb
RW
10759 done
10760IFS=$as_save_IFS
c6b750e1 10761
2429c060
PB
10762fi
10763fi
c6b750e1 10764LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10765if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10767$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10768else
81ecdfbb
RW
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770$as_echo "no" >&6; }
2429c060
PB
10771fi
10772
81ecdfbb 10773
2429c060
PB
10774 fi
10775 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10777set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779$as_echo_n "checking for $ac_word... " >&6; }
10780if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
2429c060
PB
10782else
10783 if test -n "$LD_FOR_TARGET"; then
10784 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10785else
c6b750e1
DJ
10786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787for as_dir in $PATH
10788do
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10791 for ac_exec_ext in '' $ac_executable_extensions; do
10792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10793 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 10794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10795 break 2
10796 fi
10797done
81ecdfbb
RW
10798 done
10799IFS=$as_save_IFS
c6b750e1 10800
2429c060
PB
10801fi
10802fi
c6b750e1 10803LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10804if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10806$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10807else
81ecdfbb
RW
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809$as_echo "no" >&6; }
2429c060 10810fi
c6b750e1 10811
81ecdfbb 10812
2429c060
PB
10813 fi
10814 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10815 done
10816fi
c6b750e1 10817
2429c060
PB
10818if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10819 set dummy ld
10820 if test $build = $target ; then
10821 LD_FOR_TARGET="$2"
10822 else
10823 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10824 fi
d3f5afc4
MS
10825else
10826 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
10827fi
10828
3a35eeb3
PB
10829else
10830 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
10831fi
10832
10833
10834
10835
10836if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10837 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
10839$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10840 if test -x $with_build_time_tools/lipo; then
10841 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10842 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10844$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 10845 else
81ecdfbb
RW
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847$as_echo "no" >&6; }
3a35eeb3 10848 fi
2429c060
PB
10849 elif test $build != $host && test $have_gcc_for_target = yes; then
10850 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
10851 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10852 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
10853 fi
10854fi
9a819804
AO
10855if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10856 # Extract the first word of "lipo", so it can be a program name with args.
10857set dummy lipo; ac_word=$2
81ecdfbb
RW
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859$as_echo_n "checking for $ac_word... " >&6; }
10860if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
9a819804
AO
10862else
10863 case $LIPO_FOR_TARGET in
10864 [\\/]* | ?:[\\/]*)
10865 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10866 ;;
10867 *)
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869for as_dir in $gcc_cv_tool_dirs
10870do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10875 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10877 break 2
10878 fi
10879done
81ecdfbb
RW
10880 done
10881IFS=$as_save_IFS
9a819804
AO
10882
10883 ;;
10884esac
10885fi
10886LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 10887if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10889$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 10890else
81ecdfbb
RW
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892$as_echo "no" >&6; }
9a819804
AO
10893fi
10894
81ecdfbb 10895
9a819804
AO
10896fi
10897if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10898
10899
10900if test -n "$LIPO_FOR_TARGET"; then
10901 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10902elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10903 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10904fi
10905
10906if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10907 for ncn_progname in lipo; do
10908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10909set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911$as_echo_n "checking for $ac_word... " >&6; }
10912if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
2429c060 10914else
9a819804
AO
10915 if test -n "$LIPO_FOR_TARGET"; then
10916 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10917else
10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919for as_dir in $PATH
c6b750e1
DJ
10920do
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10925 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10927 break 2
10928 fi
10929done
81ecdfbb
RW
10930 done
10931IFS=$as_save_IFS
c6b750e1 10932
2429c060 10933fi
9a819804
AO
10934fi
10935LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10936if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10938$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 10939else
81ecdfbb
RW
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941$as_echo "no" >&6; }
2429c060
PB
10942fi
10943
81ecdfbb 10944
9a819804 10945 done
2429c060 10946fi
9a819804
AO
10947
10948if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10949 for ncn_progname in lipo; do
81ecdfbb
RW
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10951$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10952 if test -x $with_build_time_tools/${ncn_progname}; then
10953 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10955$as_echo "yes" >&6; }
2429c060
PB
10956 break
10957 else
81ecdfbb
RW
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959$as_echo "no" >&6; }
2429c060
PB
10960 fi
10961 done
10962fi
10963
10964if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10965 for ncn_progname in lipo; do
10966 if test -n "$ncn_target_tool_prefix"; then
10967 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10968set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10970$as_echo_n "checking for $ac_word... " >&6; }
10971if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10972 $as_echo_n "(cached) " >&6
2429c060
PB
10973else
10974 if test -n "$LIPO_FOR_TARGET"; then
10975 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10976else
c6b750e1
DJ
10977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978for as_dir in $PATH
10979do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10984 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10986 break 2
10987 fi
10988done
81ecdfbb
RW
10989 done
10990IFS=$as_save_IFS
c6b750e1 10991
2429c060
PB
10992fi
10993fi
c6b750e1 10994LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10995if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10997$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 10998else
81ecdfbb
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
2429c060
PB
11001fi
11002
81ecdfbb 11003
2429c060
PB
11004 fi
11005 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11007set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11009$as_echo_n "checking for $ac_word... " >&6; }
11010if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11011 $as_echo_n "(cached) " >&6
2429c060
PB
11012else
11013 if test -n "$LIPO_FOR_TARGET"; then
11014 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11015else
c6b750e1
DJ
11016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017for as_dir in $PATH
11018do
11019 IFS=$as_save_IFS
11020 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11021 for ac_exec_ext in '' $ac_executable_extensions; do
11022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11023 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11025 break 2
11026 fi
11027done
81ecdfbb
RW
11028 done
11029IFS=$as_save_IFS
c6b750e1 11030
2429c060
PB
11031fi
11032fi
c6b750e1 11033LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11034if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11036$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11037else
81ecdfbb
RW
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039$as_echo "no" >&6; }
2429c060 11040fi
c6b750e1 11041
81ecdfbb 11042
2429c060
PB
11043 fi
11044 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11045 done
11046fi
c6b750e1 11047
2429c060
PB
11048if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11049 set dummy lipo
11050 if test $build = $target ; then
11051 LIPO_FOR_TARGET="$2"
11052 else
11053 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11054 fi
d3f5afc4
MS
11055else
11056 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11057fi
11058
3a35eeb3
PB
11059else
11060 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11061fi
11062
11063
11064
11065
11066if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11067 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11069$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11070 if test -x $with_build_time_tools/nm; then
11071 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11072 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11074$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11075 else
81ecdfbb
RW
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077$as_echo "no" >&6; }
3a35eeb3 11078 fi
2429c060
PB
11079 elif test $build != $host && test $have_gcc_for_target = yes; then
11080 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11081 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11082 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11083 fi
11084fi
c6b750e1 11085if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11086 # Extract the first word of "nm", so it can be a program name with args.
11087set dummy nm; ac_word=$2
81ecdfbb
RW
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089$as_echo_n "checking for $ac_word... " >&6; }
11090if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11091 $as_echo_n "(cached) " >&6
2429c060 11092else
c6b750e1
DJ
11093 case $NM_FOR_TARGET in
11094 [\\/]* | ?:[\\/]*)
2429c060
PB
11095 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11096 ;;
2429c060 11097 *)
c6b750e1
DJ
11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099for as_dir in $gcc_cv_tool_dirs
11100do
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11105 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11107 break 2
11108 fi
11109done
81ecdfbb
RW
11110 done
11111IFS=$as_save_IFS
c6b750e1 11112
2429c060
PB
11113 ;;
11114esac
11115fi
c6b750e1 11116NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11117if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11119$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11120else
81ecdfbb
RW
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122$as_echo "no" >&6; }
2429c060
PB
11123fi
11124
81ecdfbb 11125
2429c060
PB
11126fi
11127if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11128
11129
11130if test -n "$NM_FOR_TARGET"; then
11131 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11132elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11133 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11134fi
11135
11136if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11137 for ncn_progname in nm; do
11138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11139set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141$as_echo_n "checking for $ac_word... " >&6; }
11142if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11143 $as_echo_n "(cached) " >&6
9a819804
AO
11144else
11145 if test -n "$NM_FOR_TARGET"; then
11146 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11147else
11148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149for as_dir in $PATH
11150do
11151 IFS=$as_save_IFS
11152 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11153 for ac_exec_ext in '' $ac_executable_extensions; do
11154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11155 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11157 break 2
11158 fi
11159done
81ecdfbb
RW
11160 done
11161IFS=$as_save_IFS
9a819804
AO
11162
11163fi
11164fi
11165NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11166if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11168$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11169else
81ecdfbb
RW
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171$as_echo "no" >&6; }
9a819804
AO
11172fi
11173
81ecdfbb 11174
9a819804
AO
11175 done
11176fi
11177
11178if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11179 for ncn_progname in nm; do
81ecdfbb
RW
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11181$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11182 if test -x $with_build_time_tools/${ncn_progname}; then
11183 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185$as_echo "yes" >&6; }
2429c060
PB
11186 break
11187 else
81ecdfbb
RW
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189$as_echo "no" >&6; }
2429c060
PB
11190 fi
11191 done
11192fi
11193
11194if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11195 for ncn_progname in nm; do
11196 if test -n "$ncn_target_tool_prefix"; then
11197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11198set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200$as_echo_n "checking for $ac_word... " >&6; }
11201if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
859789af 11203else
55db4b87
PB
11204 if test -n "$NM_FOR_TARGET"; then
11205 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11206else
c6b750e1
DJ
11207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208for as_dir in $PATH
11209do
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11214 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11216 break 2
11217 fi
11218done
81ecdfbb
RW
11219 done
11220IFS=$as_save_IFS
c6b750e1 11221
859789af
AC
11222fi
11223fi
c6b750e1 11224NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11225if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11227$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11228else
81ecdfbb
RW
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
859789af
AC
11231fi
11232
81ecdfbb 11233
2429c060
PB
11234 fi
11235 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11237set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239$as_echo_n "checking for $ac_word... " >&6; }
11240if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11241 $as_echo_n "(cached) " >&6
859789af 11242else
05cbd757
PB
11243 if test -n "$NM_FOR_TARGET"; then
11244 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11245else
c6b750e1
DJ
11246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247for as_dir in $PATH
11248do
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11251 for ac_exec_ext in '' $ac_executable_extensions; do
11252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11253 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11255 break 2
11256 fi
11257done
81ecdfbb
RW
11258 done
11259IFS=$as_save_IFS
c6b750e1 11260
859789af
AC
11261fi
11262fi
c6b750e1 11263NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11264if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11266$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11267else
81ecdfbb
RW
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
859789af 11270fi
c6b750e1 11271
81ecdfbb 11272
2429c060
PB
11273 fi
11274 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11275 done
11276fi
c6b750e1 11277
05cbd757
PB
11278if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11279 set dummy nm
11280 if test $build = $target ; then
11281 NM_FOR_TARGET="$2"
859789af 11282 else
05cbd757 11283 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11284 fi
d3f5afc4
MS
11285else
11286 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11287fi
11288
3a35eeb3
PB
11289else
11290 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11291fi
11292
11293
11294
11295
11296if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11297 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11299$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11300 if test -x $with_build_time_tools/objdump; then
11301 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11302 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11304$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 11305 else
81ecdfbb
RW
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307$as_echo "no" >&6; }
3a35eeb3 11308 fi
2429c060
PB
11309 elif test $build != $host && test $have_gcc_for_target = yes; then
11310 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
11311 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11312 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
11313 fi
11314fi
c6b750e1 11315if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11316 # Extract the first word of "objdump", so it can be a program name with args.
11317set dummy objdump; ac_word=$2
81ecdfbb
RW
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319$as_echo_n "checking for $ac_word... " >&6; }
11320if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11321 $as_echo_n "(cached) " >&6
2429c060 11322else
c6b750e1
DJ
11323 case $OBJDUMP_FOR_TARGET in
11324 [\\/]* | ?:[\\/]*)
2429c060
PB
11325 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11326 ;;
2429c060 11327 *)
c6b750e1
DJ
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $gcc_cv_tool_dirs
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11335 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11337 break 2
11338 fi
11339done
81ecdfbb
RW
11340 done
11341IFS=$as_save_IFS
c6b750e1 11342
2429c060
PB
11343 ;;
11344esac
11345fi
c6b750e1 11346OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 11347if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11349$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 11350else
81ecdfbb
RW
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352$as_echo "no" >&6; }
2429c060
PB
11353fi
11354
81ecdfbb 11355
2429c060
PB
11356fi
11357if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
11358
11359
11360if test -n "$OBJDUMP_FOR_TARGET"; then
11361 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11362elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11363 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11364fi
11365
11366if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11367 for ncn_progname in objdump; do
11368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11369set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371$as_echo_n "checking for $ac_word... " >&6; }
11372if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11373 $as_echo_n "(cached) " >&6
9a819804
AO
11374else
11375 if test -n "$OBJDUMP_FOR_TARGET"; then
11376 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11377else
11378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379for as_dir in $PATH
11380do
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11383 for ac_exec_ext in '' $ac_executable_extensions; do
11384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11385 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11387 break 2
11388 fi
11389done
81ecdfbb
RW
11390 done
11391IFS=$as_save_IFS
9a819804
AO
11392
11393fi
11394fi
11395OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11396if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11398$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 11399else
81ecdfbb
RW
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401$as_echo "no" >&6; }
9a819804
AO
11402fi
11403
81ecdfbb 11404
9a819804
AO
11405 done
11406fi
11407
11408if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11409 for ncn_progname in objdump; do
81ecdfbb
RW
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11411$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11412 if test -x $with_build_time_tools/${ncn_progname}; then
11413 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11415$as_echo "yes" >&6; }
2429c060
PB
11416 break
11417 else
81ecdfbb
RW
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419$as_echo "no" >&6; }
2429c060
PB
11420 fi
11421 done
11422fi
11423
11424if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11425 for ncn_progname in objdump; do
11426 if test -n "$ncn_target_tool_prefix"; then
11427 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11428set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11430$as_echo_n "checking for $ac_word... " >&6; }
11431if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11432 $as_echo_n "(cached) " >&6
5ae72758
DJ
11433else
11434 if test -n "$OBJDUMP_FOR_TARGET"; then
11435 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11436else
c6b750e1
DJ
11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $PATH
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11444 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11446 break 2
11447 fi
11448done
81ecdfbb
RW
11449 done
11450IFS=$as_save_IFS
c6b750e1 11451
5ae72758
DJ
11452fi
11453fi
c6b750e1 11454OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11455if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11457$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 11458else
81ecdfbb
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
5ae72758
DJ
11461fi
11462
81ecdfbb 11463
2429c060
PB
11464 fi
11465 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 11467set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469$as_echo_n "checking for $ac_word... " >&6; }
11470if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
5ae72758
DJ
11472else
11473 if test -n "$OBJDUMP_FOR_TARGET"; then
11474 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11475else
c6b750e1
DJ
11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $PATH
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11483 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11485 break 2
11486 fi
11487done
81ecdfbb
RW
11488 done
11489IFS=$as_save_IFS
c6b750e1 11490
5ae72758
DJ
11491fi
11492fi
c6b750e1 11493OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11494if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11496$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 11497else
81ecdfbb
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
5ae72758 11500fi
c6b750e1 11501
81ecdfbb 11502
2429c060
PB
11503 fi
11504 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11505 done
11506fi
c6b750e1 11507
5ae72758
DJ
11508if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11509 set dummy objdump
11510 if test $build = $target ; then
11511 OBJDUMP_FOR_TARGET="$2"
11512 else
11513 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11514 fi
d3f5afc4
MS
11515else
11516 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
11517fi
11518
3a35eeb3
PB
11519else
11520 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
11521fi
11522
11523
11524
11525
11526if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11527 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11529$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11530 if test -x $with_build_time_tools/ranlib; then
11531 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11532 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11534$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 11535 else
81ecdfbb
RW
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537$as_echo "no" >&6; }
3a35eeb3 11538 fi
2429c060
PB
11539 elif test $build != $host && test $have_gcc_for_target = yes; then
11540 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
11541 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11542 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
11543 fi
11544fi
c6b750e1 11545if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11546 # Extract the first word of "ranlib", so it can be a program name with args.
11547set dummy ranlib; ac_word=$2
81ecdfbb
RW
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549$as_echo_n "checking for $ac_word... " >&6; }
11550if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
2429c060 11552else
c6b750e1
DJ
11553 case $RANLIB_FOR_TARGET in
11554 [\\/]* | ?:[\\/]*)
2429c060
PB
11555 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11556 ;;
2429c060 11557 *)
c6b750e1
DJ
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559for as_dir in $gcc_cv_tool_dirs
11560do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11565 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11567 break 2
11568 fi
11569done
81ecdfbb
RW
11570 done
11571IFS=$as_save_IFS
c6b750e1 11572
2429c060
PB
11573 ;;
11574esac
11575fi
c6b750e1 11576RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 11577if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11579$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 11580else
81ecdfbb
RW
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582$as_echo "no" >&6; }
2429c060
PB
11583fi
11584
81ecdfbb 11585
2429c060
PB
11586fi
11587if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
11588
11589
11590if test -n "$RANLIB_FOR_TARGET"; then
11591 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11592elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11593 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11594fi
11595
11596if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11597 for ncn_progname in ranlib; do
11598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11599set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601$as_echo_n "checking for $ac_word... " >&6; }
11602if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11603 $as_echo_n "(cached) " >&6
9a819804
AO
11604else
11605 if test -n "$RANLIB_FOR_TARGET"; then
11606 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11607else
11608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609for as_dir in $PATH
11610do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11615 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11617 break 2
11618 fi
11619done
81ecdfbb
RW
11620 done
11621IFS=$as_save_IFS
9a819804
AO
11622
11623fi
11624fi
11625RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11626if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11628$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 11629else
81ecdfbb
RW
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631$as_echo "no" >&6; }
9a819804
AO
11632fi
11633
81ecdfbb 11634
9a819804
AO
11635 done
11636fi
11637
11638if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11639 for ncn_progname in ranlib; do
81ecdfbb
RW
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11641$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11642 if test -x $with_build_time_tools/${ncn_progname}; then
11643 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645$as_echo "yes" >&6; }
2429c060
PB
11646 break
11647 else
81ecdfbb
RW
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649$as_echo "no" >&6; }
2429c060
PB
11650 fi
11651 done
11652fi
11653
11654if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11655 for ncn_progname in ranlib; do
11656 if test -n "$ncn_target_tool_prefix"; then
11657 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 11658set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660$as_echo_n "checking for $ac_word... " >&6; }
11661if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
859789af 11663else
55db4b87
PB
11664 if test -n "$RANLIB_FOR_TARGET"; then
11665 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11666else
c6b750e1
DJ
11667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668for as_dir in $PATH
11669do
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11672 for ac_exec_ext in '' $ac_executable_extensions; do
11673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11674 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11676 break 2
11677 fi
11678done
81ecdfbb
RW
11679 done
11680IFS=$as_save_IFS
c6b750e1 11681
859789af
AC
11682fi
11683fi
c6b750e1 11684RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 11685if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11687$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 11688else
81ecdfbb
RW
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
859789af
AC
11691fi
11692
81ecdfbb 11693
2429c060
PB
11694 fi
11695 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11697set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699$as_echo_n "checking for $ac_word... " >&6; }
11700if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11701 $as_echo_n "(cached) " >&6
859789af 11702else
05cbd757
PB
11703 if test -n "$RANLIB_FOR_TARGET"; then
11704 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11705else
c6b750e1
DJ
11706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707for as_dir in $PATH
11708do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11713 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11715 break 2
11716 fi
11717done
81ecdfbb
RW
11718 done
11719IFS=$as_save_IFS
c6b750e1 11720
859789af
AC
11721fi
11722fi
c6b750e1 11723RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 11724if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11726$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 11727else
81ecdfbb
RW
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729$as_echo "no" >&6; }
859789af 11730fi
c6b750e1 11731
81ecdfbb 11732
2429c060
PB
11733 fi
11734 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11735 done
11736fi
c6b750e1 11737
2429c060
PB
11738if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11739 set dummy ranlib
11740 if test $build = $target ; then
11741 RANLIB_FOR_TARGET="$2"
11742 else
11743 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11744 fi
d3f5afc4
MS
11745else
11746 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 11747fi
05cbd757 11748
3a35eeb3
PB
11749else
11750 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
11751fi
11752
2429c060
PB
11753
11754
11755
11756if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11757 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
11759$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11760 if test -x $with_build_time_tools/strip; then
11761 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11762 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11764$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 11765 else
81ecdfbb
RW
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767$as_echo "no" >&6; }
3a35eeb3 11768 fi
2429c060
PB
11769 elif test $build != $host && test $have_gcc_for_target = yes; then
11770 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
11771 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11772 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
11773 fi
11774fi
c6b750e1 11775if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11776 # Extract the first word of "strip", so it can be a program name with args.
11777set dummy strip; ac_word=$2
81ecdfbb
RW
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779$as_echo_n "checking for $ac_word... " >&6; }
11780if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
11781 $as_echo_n "(cached) " >&6
2429c060 11782else
c6b750e1
DJ
11783 case $STRIP_FOR_TARGET in
11784 [\\/]* | ?:[\\/]*)
2429c060
PB
11785 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11786 ;;
2429c060 11787 *)
c6b750e1
DJ
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789for as_dir in $gcc_cv_tool_dirs
11790do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11795 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11797 break 2
11798 fi
11799done
81ecdfbb
RW
11800 done
11801IFS=$as_save_IFS
c6b750e1 11802
2429c060
PB
11803 ;;
11804esac
11805fi
c6b750e1 11806STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 11807if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11809$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 11810else
81ecdfbb
RW
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812$as_echo "no" >&6; }
2429c060
PB
11813fi
11814
81ecdfbb 11815
2429c060
PB
11816fi
11817if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
11818
11819
11820if test -n "$STRIP_FOR_TARGET"; then
11821 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11822elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11823 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11824fi
11825
11826if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11827 for ncn_progname in strip; do
11828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11829set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831$as_echo_n "checking for $ac_word... " >&6; }
11832if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11833 $as_echo_n "(cached) " >&6
9a819804
AO
11834else
11835 if test -n "$STRIP_FOR_TARGET"; then
11836 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11837else
11838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
11840do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11845 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11847 break 2
11848 fi
11849done
81ecdfbb
RW
11850 done
11851IFS=$as_save_IFS
9a819804
AO
11852
11853fi
11854fi
11855STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11856if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11858$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 11859else
81ecdfbb
RW
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861$as_echo "no" >&6; }
9a819804
AO
11862fi
11863
81ecdfbb 11864
9a819804
AO
11865 done
11866fi
11867
11868if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11869 for ncn_progname in strip; do
81ecdfbb
RW
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11871$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11872 if test -x $with_build_time_tools/${ncn_progname}; then
11873 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875$as_echo "yes" >&6; }
2429c060
PB
11876 break
11877 else
81ecdfbb
RW
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879$as_echo "no" >&6; }
2429c060
PB
11880 fi
11881 done
11882fi
11883
11884if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11885 for ncn_progname in strip; do
11886 if test -n "$ncn_target_tool_prefix"; then
11887 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11888set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890$as_echo_n "checking for $ac_word... " >&6; }
11891if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
7e0f7140
GK
11893else
11894 if test -n "$STRIP_FOR_TARGET"; then
11895 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
11896else
11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $PATH
11899do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11904 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11906 break 2
11907 fi
11908done
81ecdfbb
RW
11909 done
11910IFS=$as_save_IFS
c6b750e1 11911
7e0f7140
GK
11912fi
11913fi
c6b750e1 11914STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11915if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11917$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 11918else
81ecdfbb
RW
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
7e0f7140
GK
11921fi
11922
81ecdfbb 11923
2429c060
PB
11924 fi
11925 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11927set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929$as_echo_n "checking for $ac_word... " >&6; }
11930if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11931 $as_echo_n "(cached) " >&6
7e0f7140
GK
11932else
11933 if test -n "$STRIP_FOR_TARGET"; then
11934 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11935else
c6b750e1
DJ
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11943 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11945 break 2
11946 fi
11947done
81ecdfbb
RW
11948 done
11949IFS=$as_save_IFS
c6b750e1 11950
7e0f7140
GK
11951fi
11952fi
c6b750e1 11953STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11954if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11956$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 11957else
81ecdfbb
RW
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
7e0f7140 11960fi
c6b750e1 11961
81ecdfbb 11962
2429c060
PB
11963 fi
11964 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11965 done
11966fi
c6b750e1 11967
7e0f7140
GK
11968if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11969 set dummy strip
11970 if test $build = $target ; then
11971 STRIP_FOR_TARGET="$2"
11972 else
11973 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11974 fi
d3f5afc4
MS
11975else
11976 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
11977fi
11978
3a35eeb3
PB
11979else
11980 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
11981fi
11982
11983
11984
11985
11986if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11987 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
11989$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11990 if test -x $with_build_time_tools/windres; then
11991 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11992 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11994$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 11995 else
81ecdfbb
RW
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997$as_echo "no" >&6; }
3a35eeb3 11998 fi
2429c060
PB
11999 elif test $build != $host && test $have_gcc_for_target = yes; then
12000 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12001 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12002 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12003 fi
12004fi
c6b750e1 12005if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12006 # Extract the first word of "windres", so it can be a program name with args.
12007set dummy windres; ac_word=$2
81ecdfbb
RW
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009$as_echo_n "checking for $ac_word... " >&6; }
12010if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12011 $as_echo_n "(cached) " >&6
2429c060 12012else
c6b750e1
DJ
12013 case $WINDRES_FOR_TARGET in
12014 [\\/]* | ?:[\\/]*)
2429c060
PB
12015 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12016 ;;
2429c060 12017 *)
c6b750e1
DJ
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019for as_dir in $gcc_cv_tool_dirs
12020do
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12025 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12027 break 2
12028 fi
12029done
81ecdfbb
RW
12030 done
12031IFS=$as_save_IFS
c6b750e1 12032
2429c060
PB
12033 ;;
12034esac
12035fi
c6b750e1 12036WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12037if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12039$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12040else
81ecdfbb
RW
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042$as_echo "no" >&6; }
2429c060
PB
12043fi
12044
81ecdfbb 12045
2429c060
PB
12046fi
12047if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12048
12049
12050if test -n "$WINDRES_FOR_TARGET"; then
12051 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12052elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12053 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12054fi
12055
12056if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12057 for ncn_progname in windres; do
12058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12059set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061$as_echo_n "checking for $ac_word... " >&6; }
12062if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12063 $as_echo_n "(cached) " >&6
9a819804
AO
12064else
12065 if test -n "$WINDRES_FOR_TARGET"; then
12066 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12067else
12068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069for as_dir in $PATH
12070do
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12075 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12077 break 2
12078 fi
12079done
81ecdfbb
RW
12080 done
12081IFS=$as_save_IFS
9a819804
AO
12082
12083fi
12084fi
12085WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12086if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12088$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12089else
81ecdfbb
RW
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091$as_echo "no" >&6; }
9a819804
AO
12092fi
12093
81ecdfbb 12094
9a819804
AO
12095 done
12096fi
12097
12098if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12099 for ncn_progname in windres; do
81ecdfbb
RW
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12101$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12102 if test -x $with_build_time_tools/${ncn_progname}; then
12103 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105$as_echo "yes" >&6; }
2429c060
PB
12106 break
12107 else
81ecdfbb
RW
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109$as_echo "no" >&6; }
2429c060
PB
12110 fi
12111 done
12112fi
12113
12114if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12115 for ncn_progname in windres; do
12116 if test -n "$ncn_target_tool_prefix"; then
12117 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12118set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120$as_echo_n "checking for $ac_word... " >&6; }
12121if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
859789af 12123else
55db4b87
PB
12124 if test -n "$WINDRES_FOR_TARGET"; then
12125 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12126else
c6b750e1
DJ
12127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12134 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12136 break 2
12137 fi
12138done
81ecdfbb
RW
12139 done
12140IFS=$as_save_IFS
c6b750e1 12141
859789af
AC
12142fi
12143fi
c6b750e1 12144WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12145if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12147$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12148else
81ecdfbb
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
859789af
AC
12151fi
12152
81ecdfbb 12153
2429c060
PB
12154 fi
12155 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12157set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159$as_echo_n "checking for $ac_word... " >&6; }
12160if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12161 $as_echo_n "(cached) " >&6
859789af 12162else
05cbd757
PB
12163 if test -n "$WINDRES_FOR_TARGET"; then
12164 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12165else
c6b750e1
DJ
12166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167for as_dir in $PATH
12168do
12169 IFS=$as_save_IFS
12170 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12173 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12175 break 2
12176 fi
12177done
81ecdfbb
RW
12178 done
12179IFS=$as_save_IFS
c6b750e1 12180
859789af
AC
12181fi
12182fi
c6b750e1 12183WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12184if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12186$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12187else
81ecdfbb
RW
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189$as_echo "no" >&6; }
859789af 12190fi
c6b750e1 12191
81ecdfbb 12192
2429c060
PB
12193 fi
12194 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12195 done
12196fi
c6b750e1 12197
05cbd757
PB
12198if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12199 set dummy windres
12200 if test $build = $target ; then
12201 WINDRES_FOR_TARGET="$2"
859789af 12202 else
05cbd757 12203 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12204 fi
d3f5afc4
MS
12205else
12206 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12207fi
12208
3a35eeb3
PB
12209else
12210 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12211fi
12212
852e5f18 12213
0c24b341
NC
12214
12215
12216if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12217 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12219$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12220 if test -x $with_build_time_tools/windmc; then
12221 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12222 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12224$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12225 else
81ecdfbb
RW
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227$as_echo "no" >&6; }
0c24b341
NC
12228 fi
12229 elif test $build != $host && test $have_gcc_for_target = yes; then
12230 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12231 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12232 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12233 fi
12234fi
12235if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12236 # Extract the first word of "windmc", so it can be a program name with args.
12237set dummy windmc; ac_word=$2
81ecdfbb
RW
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239$as_echo_n "checking for $ac_word... " >&6; }
12240if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12241 $as_echo_n "(cached) " >&6
0c24b341
NC
12242else
12243 case $WINDMC_FOR_TARGET in
12244 [\\/]* | ?:[\\/]*)
12245 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12246 ;;
12247 *)
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249for as_dir in $gcc_cv_tool_dirs
12250do
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12253 for ac_exec_ext in '' $ac_executable_extensions; do
12254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12255 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12257 break 2
12258 fi
12259done
81ecdfbb
RW
12260 done
12261IFS=$as_save_IFS
0c24b341
NC
12262
12263 ;;
12264esac
12265fi
12266WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12267if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12269$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12270else
81ecdfbb
RW
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272$as_echo "no" >&6; }
0c24b341
NC
12273fi
12274
81ecdfbb 12275
0c24b341
NC
12276fi
12277if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12278
12279
12280if test -n "$WINDMC_FOR_TARGET"; then
12281 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12282elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12283 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12284fi
12285
12286if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12287 for ncn_progname in windmc; do
12288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12289set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291$as_echo_n "checking for $ac_word... " >&6; }
12292if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
0c24b341
NC
12294else
12295 if test -n "$WINDMC_FOR_TARGET"; then
12296 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12297else
12298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299for as_dir in $PATH
12300do
12301 IFS=$as_save_IFS
12302 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12305 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12307 break 2
12308 fi
12309done
81ecdfbb
RW
12310 done
12311IFS=$as_save_IFS
0c24b341
NC
12312
12313fi
12314fi
12315WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12316if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12318$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12319else
81ecdfbb
RW
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321$as_echo "no" >&6; }
0c24b341
NC
12322fi
12323
81ecdfbb 12324
0c24b341
NC
12325 done
12326fi
12327
12328if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12329 for ncn_progname in windmc; do
81ecdfbb
RW
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12331$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
12332 if test -x $with_build_time_tools/${ncn_progname}; then
12333 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12335$as_echo "yes" >&6; }
0c24b341
NC
12336 break
12337 else
81ecdfbb
RW
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339$as_echo "no" >&6; }
0c24b341
NC
12340 fi
12341 done
12342fi
12343
12344if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12345 for ncn_progname in windmc; do
12346 if test -n "$ncn_target_tool_prefix"; then
12347 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12348set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350$as_echo_n "checking for $ac_word... " >&6; }
12351if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12352 $as_echo_n "(cached) " >&6
0c24b341
NC
12353else
12354 if test -n "$WINDMC_FOR_TARGET"; then
12355 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12356else
12357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $PATH
12359do
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12362 for ac_exec_ext in '' $ac_executable_extensions; do
12363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12364 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12366 break 2
12367 fi
12368done
81ecdfbb
RW
12369 done
12370IFS=$as_save_IFS
0c24b341
NC
12371
12372fi
12373fi
12374WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12375if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12377$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12378else
81ecdfbb
RW
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
0c24b341
NC
12381fi
12382
81ecdfbb 12383
0c24b341
NC
12384 fi
12385 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12387set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389$as_echo_n "checking for $ac_word... " >&6; }
12390if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
0c24b341
NC
12392else
12393 if test -n "$WINDMC_FOR_TARGET"; then
12394 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12395else
12396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397for as_dir in $PATH
12398do
12399 IFS=$as_save_IFS
12400 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12403 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12405 break 2
12406 fi
12407done
81ecdfbb
RW
12408 done
12409IFS=$as_save_IFS
0c24b341
NC
12410
12411fi
12412fi
12413WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12414if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12416$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12417else
81ecdfbb
RW
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419$as_echo "no" >&6; }
0c24b341
NC
12420fi
12421
81ecdfbb 12422
0c24b341
NC
12423 fi
12424 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12425 done
12426fi
12427
12428if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12429 set dummy windmc
12430 if test $build = $target ; then
12431 WINDMC_FOR_TARGET="$2"
12432 else
12433 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12434 fi
12435else
12436 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12437fi
12438
12439else
12440 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12441fi
12442
12443
be01d343
PB
12444RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12445
81ecdfbb
RW
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12447$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 12448if test "x${build}" != "x${host}" ; then
2429c060
PB
12449 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12450 # We already found the complete path
b8025f34 12451 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12453$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12454 else
12455 # Canadian cross, just use what we found
81ecdfbb
RW
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12457$as_echo "pre-installed" >&6; }
2429c060 12458 fi
be01d343
PB
12459else
12460 ok=yes
12461 case " ${configdirs} " in
12462 *" binutils "*) ;;
12463 *) ok=no ;;
12464 esac
c6b750e1 12465
be01d343
PB
12466 if test $ok = yes; then
12467 # An in-tree tool is available and we can use it
12468 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12470$as_echo "just compiled" >&6; }
2429c060
PB
12471 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12472 # We already found the complete path
b8025f34 12473 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12475$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12476 elif test "x$target" = "x$host"; then
12477 # We can use an host tool
12478 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12480$as_echo "host tool" >&6; }
be01d343
PB
12481 else
12482 # We need a cross tool
81ecdfbb
RW
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12484$as_echo "pre-installed" >&6; }
be01d343
PB
12485 fi
12486fi
4b900473 12487
81ecdfbb
RW
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12489$as_echo_n "checking where to find the target as... " >&6; }
be01d343 12490if test "x${build}" != "x${host}" ; then
2429c060
PB
12491 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12492 # We already found the complete path
b8025f34 12493 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12495$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12496 else
12497 # Canadian cross, just use what we found
81ecdfbb
RW
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12499$as_echo "pre-installed" >&6; }
2429c060 12500 fi
be01d343
PB
12501else
12502 ok=yes
12503 case " ${configdirs} " in
12504 *" gas "*) ;;
12505 *) ok=no ;;
12506 esac
c6b750e1 12507
be01d343
PB
12508 if test $ok = yes; then
12509 # An in-tree tool is available and we can use it
12510 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12512$as_echo "just compiled" >&6; }
2429c060
PB
12513 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12514 # We already found the complete path
b8025f34 12515 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12517$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12518 elif test "x$target" = "x$host"; then
12519 # We can use an host tool
12520 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12522$as_echo "host tool" >&6; }
be01d343
PB
12523 else
12524 # We need a cross tool
81ecdfbb
RW
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12526$as_echo "pre-installed" >&6; }
be01d343
PB
12527 fi
12528fi
4b900473 12529
81ecdfbb
RW
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12531$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 12532if test "x${build}" != "x${host}" ; then
2429c060
PB
12533 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12534 # We already found the complete path
b8025f34 12535 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12537$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12538 else
12539 # Canadian cross, just use what we found
81ecdfbb
RW
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12541$as_echo "pre-installed" >&6; }
2429c060 12542 fi
be01d343
PB
12543else
12544 ok=yes
12545 case " ${configdirs} " in
12546 *" gcc "*) ;;
12547 *) ok=no ;;
12548 esac
c6b750e1 12549
be01d343
PB
12550 if test $ok = yes; then
12551 # An in-tree tool is available and we can use it
12552 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12554$as_echo "just compiled" >&6; }
2429c060
PB
12555 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12556 # We already found the complete path
b8025f34 12557 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12559$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12560 elif test "x$target" = "x$host"; then
12561 # We can use an host tool
12562 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12564$as_echo "host tool" >&6; }
be01d343
PB
12565 else
12566 # We need a cross tool
81ecdfbb
RW
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12568$as_echo "pre-installed" >&6; }
be01d343
PB
12569 fi
12570fi
4b900473 12571
81ecdfbb
RW
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12573$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 12574if test "x${build}" != "x${host}" ; then
2429c060
PB
12575 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12576 # We already found the complete path
b8025f34 12577 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12579$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12580 else
12581 # Canadian cross, just use what we found
81ecdfbb
RW
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12583$as_echo "pre-installed" >&6; }
2429c060 12584 fi
be01d343
PB
12585else
12586 ok=yes
12587 case " ${configdirs} " in
12588 *" gcc "*) ;;
12589 *) ok=no ;;
12590 esac
12591 case ,${enable_languages}, in
12592 *,c++,*) ;;
12593 *) ok=no ;;
12594 esac
12595 if test $ok = yes; then
12596 # An in-tree tool is available and we can use it
12597 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12599$as_echo "just compiled" >&6; }
2429c060
PB
12600 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12601 # We already found the complete path
b8025f34 12602 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12604$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12605 elif test "x$target" = "x$host"; then
12606 # We can use an host tool
12607 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12609$as_echo "host tool" >&6; }
be01d343
PB
12610 else
12611 # We need a cross tool
81ecdfbb
RW
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12613$as_echo "pre-installed" >&6; }
be01d343
PB
12614 fi
12615fi
4b900473 12616
81ecdfbb
RW
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12618$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 12619if test "x${build}" != "x${host}" ; then
2429c060
PB
12620 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12621 # We already found the complete path
b8025f34 12622 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12624$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12625 else
12626 # Canadian cross, just use what we found
81ecdfbb
RW
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12628$as_echo "pre-installed" >&6; }
2429c060 12629 fi
be01d343
PB
12630else
12631 ok=yes
12632 case " ${configdirs} " in
12633 *" gcc "*) ;;
12634 *) ok=no ;;
12635 esac
12636 case ,${enable_languages}, in
12637 *,c++,*) ;;
12638 *) ok=no ;;
12639 esac
12640 if test $ok = yes; then
12641 # An in-tree tool is available and we can use it
12642 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12644$as_echo "just compiled" >&6; }
2429c060
PB
12645 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12646 # We already found the complete path
b8025f34 12647 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12649$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12650 elif test "x$target" = "x$host"; then
12651 # We can use an host tool
12652 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12654$as_echo "host tool" >&6; }
be01d343
PB
12655 else
12656 # We need a cross tool
81ecdfbb
RW
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12658$as_echo "pre-installed" >&6; }
be01d343
PB
12659 fi
12660fi
4b900473 12661
81ecdfbb
RW
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12663$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 12664if test "x${build}" != "x${host}" ; then
2429c060
PB
12665 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12666 # We already found the complete path
b8025f34 12667 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12669$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12670 else
12671 # Canadian cross, just use what we found
81ecdfbb
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12673$as_echo "pre-installed" >&6; }
2429c060 12674 fi
be01d343
PB
12675else
12676 ok=yes
12677 case " ${configdirs} " in
12678 *" binutils "*) ;;
12679 *) ok=no ;;
12680 esac
c6b750e1 12681
be01d343
PB
12682 if test $ok = yes; then
12683 # An in-tree tool is available and we can use it
12684 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12686$as_echo "just compiled" >&6; }
2429c060
PB
12687 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12688 # We already found the complete path
b8025f34 12689 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12691$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12692 elif test "x$target" = "x$host"; then
12693 # We can use an host tool
12694 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12696$as_echo "host tool" >&6; }
be01d343
PB
12697 else
12698 # We need a cross tool
81ecdfbb
RW
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12700$as_echo "pre-installed" >&6; }
be01d343
PB
12701 fi
12702fi
4b900473 12703
81ecdfbb
RW
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12705$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 12706if test "x${build}" != "x${host}" ; then
2429c060
PB
12707 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12708 # We already found the complete path
b8025f34 12709 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12711$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12712 else
12713 # Canadian cross, just use what we found
81ecdfbb
RW
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12715$as_echo "pre-installed" >&6; }
2429c060 12716 fi
be01d343
PB
12717else
12718 ok=yes
12719 case " ${configdirs} " in
12720 *" gcc "*) ;;
12721 *) ok=no ;;
12722 esac
c6b750e1 12723
be01d343
PB
12724 if test $ok = yes; then
12725 # An in-tree tool is available and we can use it
12726 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12728$as_echo "just compiled" >&6; }
2429c060
PB
12729 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12730 # We already found the complete path
b8025f34 12731 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12733$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12734 elif test "x$target" = "x$host"; then
12735 # We can use an host tool
12736 GCC_FOR_TARGET='$()'
81ecdfbb
RW
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12738$as_echo "host tool" >&6; }
be01d343
PB
12739 else
12740 # We need a cross tool
81ecdfbb
RW
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12742$as_echo "pre-installed" >&6; }
be01d343
PB
12743 fi
12744fi
4b900473 12745
81ecdfbb
RW
12746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
12747$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 12748if test "x${build}" != "x${host}" ; then
2429c060
PB
12749 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12750 # We already found the complete path
b8025f34 12751 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12753$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12754 else
12755 # Canadian cross, just use what we found
81ecdfbb
RW
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12757$as_echo "pre-installed" >&6; }
2429c060 12758 fi
be01d343
PB
12759else
12760 ok=yes
12761 case " ${configdirs} " in
12762 *" gcc "*) ;;
12763 *) ok=no ;;
12764 esac
12765 case ,${enable_languages}, in
12766 *,java,*) ;;
12767 *) ok=no ;;
12768 esac
12769 if test $ok = yes; then
12770 # An in-tree tool is available and we can use it
12771 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12773$as_echo "just compiled" >&6; }
2429c060
PB
12774 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12775 # We already found the complete path
b8025f34 12776 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12778$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12779 elif test "x$target" = "x$host"; then
12780 # We can use an host tool
12781 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12783$as_echo "host tool" >&6; }
be01d343
PB
12784 else
12785 # We need a cross tool
81ecdfbb
RW
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12787$as_echo "pre-installed" >&6; }
be01d343
PB
12788 fi
12789fi
4b900473 12790
81ecdfbb
RW
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
12792$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 12793if test "x${build}" != "x${host}" ; then
2429c060
PB
12794 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12795 # We already found the complete path
b8025f34 12796 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12798$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12799 else
12800 # Canadian cross, just use what we found
81ecdfbb
RW
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12802$as_echo "pre-installed" >&6; }
2429c060 12803 fi
be01d343
PB
12804else
12805 ok=yes
12806 case " ${configdirs} " in
12807 *" gcc "*) ;;
12808 *) ok=no ;;
12809 esac
12810 case ,${enable_languages}, in
12811 *,fortran,*) ;;
12812 *) ok=no ;;
12813 esac
12814 if test $ok = yes; then
12815 # An in-tree tool is available and we can use it
12816 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12818$as_echo "just compiled" >&6; }
2429c060
PB
12819 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12820 # We already found the complete path
b8025f34 12821 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12823$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12824 elif test "x$target" = "x$host"; then
12825 # We can use an host tool
12826 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12828$as_echo "host tool" >&6; }
be01d343
PB
12829 else
12830 # We need a cross tool
81ecdfbb
RW
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12832$as_echo "pre-installed" >&6; }
be01d343
PB
12833 fi
12834fi
4b900473 12835
81ecdfbb
RW
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
12837$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 12838if test "x${build}" != "x${host}" ; then
2429c060
PB
12839 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12840 # We already found the complete path
b8025f34 12841 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12843$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12844 else
12845 # Canadian cross, just use what we found
81ecdfbb
RW
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12847$as_echo "pre-installed" >&6; }
2429c060 12848 fi
be01d343
PB
12849else
12850 ok=yes
12851 case " ${configdirs} " in
12852 *" ld "*) ;;
12853 *) ok=no ;;
12854 esac
c6b750e1 12855
be01d343
PB
12856 if test $ok = yes; then
12857 # An in-tree tool is available and we can use it
12858 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12860$as_echo "just compiled" >&6; }
2429c060
PB
12861 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12862 # We already found the complete path
b8025f34 12863 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12865$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12866 elif test "x$target" = "x$host"; then
12867 # We can use an host tool
12868 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12870$as_echo "host tool" >&6; }
be01d343
PB
12871 else
12872 # We need a cross tool
81ecdfbb
RW
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12874$as_echo "pre-installed" >&6; }
be01d343
PB
12875 fi
12876fi
4b900473 12877
81ecdfbb
RW
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
12879$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 12880if test "x${build}" != "x${host}" ; then
2429c060
PB
12881 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12882 # We already found the complete path
b8025f34 12883 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12885$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12886 else
12887 # Canadian cross, just use what we found
81ecdfbb
RW
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12889$as_echo "pre-installed" >&6; }
2429c060 12890 fi
be01d343 12891else
2429c060
PB
12892 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12893 # We already found the complete path
b8025f34 12894 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12896$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 12897 elif test "x$target" = "x$host"; then
be01d343
PB
12898 # We can use an host tool
12899 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12901$as_echo "host tool" >&6; }
be01d343
PB
12902 else
12903 # We need a cross tool
81ecdfbb
RW
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12905$as_echo "pre-installed" >&6; }
be01d343
PB
12906 fi
12907fi
4b900473 12908
81ecdfbb
RW
12909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
12910$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 12911if test "x${build}" != "x${host}" ; then
2429c060
PB
12912 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12913 # We already found the complete path
b8025f34 12914 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12916$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12917 else
12918 # Canadian cross, just use what we found
81ecdfbb
RW
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12920$as_echo "pre-installed" >&6; }
2429c060 12921 fi
be01d343
PB
12922else
12923 ok=yes
12924 case " ${configdirs} " in
12925 *" binutils "*) ;;
12926 *) ok=no ;;
12927 esac
c6b750e1 12928
be01d343
PB
12929 if test $ok = yes; then
12930 # An in-tree tool is available and we can use it
12931 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12933$as_echo "just compiled" >&6; }
2429c060
PB
12934 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12935 # We already found the complete path
b8025f34 12936 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12938$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12939 elif test "x$target" = "x$host"; then
12940 # We can use an host tool
12941 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12943$as_echo "host tool" >&6; }
be01d343
PB
12944 else
12945 # We need a cross tool
81ecdfbb
RW
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12947$as_echo "pre-installed" >&6; }
be01d343
PB
12948 fi
12949fi
4b900473 12950
81ecdfbb
RW
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
12952$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 12953if test "x${build}" != "x${host}" ; then
2429c060
PB
12954 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12955 # We already found the complete path
b8025f34 12956 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12958$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12959 else
12960 # Canadian cross, just use what we found
81ecdfbb
RW
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12962$as_echo "pre-installed" >&6; }
2429c060 12963 fi
be01d343
PB
12964else
12965 ok=yes
12966 case " ${configdirs} " in
12967 *" binutils "*) ;;
12968 *) ok=no ;;
12969 esac
c6b750e1 12970
be01d343
PB
12971 if test $ok = yes; then
12972 # An in-tree tool is available and we can use it
12973 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12975$as_echo "just compiled" >&6; }
2429c060
PB
12976 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12977 # We already found the complete path
b8025f34 12978 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12980$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12981 elif test "x$target" = "x$host"; then
12982 # We can use an host tool
12983 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12985$as_echo "host tool" >&6; }
be01d343
PB
12986 else
12987 # We need a cross tool
81ecdfbb
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12989$as_echo "pre-installed" >&6; }
be01d343
PB
12990 fi
12991fi
4b900473 12992
81ecdfbb
RW
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
12994$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 12995if test "x${build}" != "x${host}" ; then
2429c060
PB
12996 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12997 # We already found the complete path
b8025f34 12998 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13000$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13001 else
13002 # Canadian cross, just use what we found
81ecdfbb
RW
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13004$as_echo "pre-installed" >&6; }
2429c060 13005 fi
be01d343
PB
13006else
13007 ok=yes
13008 case " ${configdirs} " in
13009 *" binutils "*) ;;
13010 *) ok=no ;;
13011 esac
c6b750e1 13012
be01d343
PB
13013 if test $ok = yes; then
13014 # An in-tree tool is available and we can use it
13015 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13017$as_echo "just compiled" >&6; }
2429c060
PB
13018 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13019 # We already found the complete path
b8025f34 13020 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13022$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13023 elif test "x$target" = "x$host"; then
13024 # We can use an host tool
13025 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13027$as_echo "host tool" >&6; }
be01d343
PB
13028 else
13029 # We need a cross tool
81ecdfbb
RW
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13031$as_echo "pre-installed" >&6; }
be01d343
PB
13032 fi
13033fi
4b900473 13034
81ecdfbb
RW
13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13036$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13037if test "x${build}" != "x${host}" ; then
2429c060
PB
13038 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13039 # We already found the complete path
b8025f34 13040 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13042$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13043 else
13044 # Canadian cross, just use what we found
81ecdfbb
RW
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13046$as_echo "pre-installed" >&6; }
2429c060 13047 fi
be01d343
PB
13048else
13049 ok=yes
13050 case " ${configdirs} " in
13051 *" binutils "*) ;;
13052 *) ok=no ;;
13053 esac
c6b750e1 13054
be01d343
PB
13055 if test $ok = yes; then
13056 # An in-tree tool is available and we can use it
13057 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
81ecdfbb
RW
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13059$as_echo "just compiled" >&6; }
2429c060
PB
13060 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13061 # We already found the complete path
b8025f34 13062 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13064$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13065 elif test "x$target" = "x$host"; then
13066 # We can use an host tool
13067 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13069$as_echo "host tool" >&6; }
be01d343
PB
13070 else
13071 # We need a cross tool
81ecdfbb
RW
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13073$as_echo "pre-installed" >&6; }
be01d343
PB
13074 fi
13075fi
4b900473 13076
81ecdfbb
RW
13077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13078$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13079if test "x${build}" != "x${host}" ; then
2429c060
PB
13080 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13081 # We already found the complete path
b8025f34 13082 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13084$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13085 else
13086 # Canadian cross, just use what we found
81ecdfbb
RW
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13088$as_echo "pre-installed" >&6; }
2429c060 13089 fi
be01d343
PB
13090else
13091 ok=yes
13092 case " ${configdirs} " in
13093 *" binutils "*) ;;
13094 *) ok=no ;;
13095 esac
c6b750e1 13096
be01d343
PB
13097 if test $ok = yes; then
13098 # An in-tree tool is available and we can use it
13099 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13101$as_echo "just compiled" >&6; }
2429c060
PB
13102 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13103 # We already found the complete path
b8025f34 13104 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13106$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13107 elif test "x$target" = "x$host"; then
13108 # We can use an host tool
13109 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13111$as_echo "host tool" >&6; }
be01d343
PB
13112 else
13113 # We need a cross tool
81ecdfbb
RW
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13115$as_echo "pre-installed" >&6; }
be01d343 13116 fi
a0da8069 13117fi
54752a6b 13118
81ecdfbb
RW
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13120$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13121if test "x${build}" != "x${host}" ; then
13122 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13123 # We already found the complete path
13124 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13126$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13127 else
13128 # Canadian cross, just use what we found
81ecdfbb
RW
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13130$as_echo "pre-installed" >&6; }
0c24b341
NC
13131 fi
13132else
13133 ok=yes
13134 case " ${configdirs} " in
13135 *" binutils "*) ;;
13136 *) ok=no ;;
13137 esac
13138
13139 if test $ok = yes; then
13140 # An in-tree tool is available and we can use it
13141 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13143$as_echo "just compiled" >&6; }
0c24b341
NC
13144 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13145 # We already found the complete path
13146 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13148$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13149 elif test "x$target" = "x$host"; then
13150 # We can use an host tool
13151 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13153$as_echo "host tool" >&6; }
0c24b341
NC
13154 else
13155 # We need a cross tool
81ecdfbb
RW
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13157$as_echo "pre-installed" >&6; }
0c24b341
NC
13158 fi
13159fi
13160
54752a6b
NN
13161
13162
be01d343 13163
4b900473 13164
a0da8069
NN
13165# Certain tools may need extra flags.
13166AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13167RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13168NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13169
be01d343
PB
13170# When building target libraries, except in a Canadian cross, we use
13171# the same toolchain as the compiler we just built.
13172COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13173COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13174COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13175if test $host = $build; then
13176 case " $configdirs " in
13177 *" gcc "*)
13178 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13179 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13180 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13181 ;;
13182 esac
13183fi
13184
13185
13186
13187
13188
81ecdfbb
RW
13189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13190$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13191# Check whether --enable-maintainer-mode was given.
13192if test "${enable_maintainer_mode+set}" = set; then :
13193 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13194else
13195 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13196fi
13197
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13199$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13200
13201
13202if test "$USE_MAINTAINER_MODE" = yes; then
13203 MAINTAINER_MODE_TRUE=
13204 MAINTAINER_MODE_FALSE='#'
13205else
13206 MAINTAINER_MODE_TRUE='#'
13207 MAINTAINER_MODE_FALSE=
c6b750e1 13208fi
3d5e36ae
AO
13209MAINT=$MAINTAINER_MODE_TRUE
13210
1d39f329
NN
13211# ---------------------
13212# GCC bootstrap support
13213# ---------------------
13214
13215# Stage specific cflags for build.
13216stage1_cflags="-g"
13217case $build in
13218 vax-*-*)
13219 case ${GCC} in
13220 yes) stage1_cflags="-g -Wa,-J" ;;
13221 *) stage1_cflags="-g -J" ;;
13222 esac ;;
1d39f329
NN
13223esac
13224
1d89b610 13225# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 13226if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
13227 saved_CFLAGS="$CFLAGS"
13228
13229 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13230 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13232$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
13234/* end confdefs.h. */
13235
2038f525
PB
13236#if (__GNUC__ < 3) \
13237 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13238 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13239#error http://gcc.gnu.org/PR29382
13240#endif
13241
c6b750e1
DJ
13242int
13243main ()
13244{
13245
13246 ;
13247 return 0;
13248}
13249_ACEOF
81ecdfbb
RW
13250if ac_fn_c_try_compile "$LINENO"; then :
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13252$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 13253else
81ecdfbb
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
c6b750e1 13256fi
81ecdfbb 13257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
13258
13259 CFLAGS="$saved_CFLAGS"
13260fi
13261
13262
1d39f329 13263
8a0d8a5c 13264# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
13265# Check whether --enable-stage1-checking was given.
13266if test "${enable_stage1_checking+set}" = set; then :
13267 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 13268else
5566c1fa 13269 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 13270 stage1_checking=--enable-checking=yes,types
8a0d8a5c 13271else
5566c1fa 13272 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 13273fi
81ecdfbb 13274fi
8a0d8a5c
PB
13275
13276
c6b750e1 13277
81ecdfbb
RW
13278# Enable -Werror in bootstrap stage2 and later.
13279# Check whether --enable-werror was given.
13280if test "${enable_werror+set}" = set; then :
13281 enableval=$enable_werror;
1d39f329 13282else
a0323144 13283 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 13284 enable_werror=yes
79fcd0ec
PB
13285else
13286 enable_werror=no
13287fi
81ecdfbb
RW
13288fi
13289
1a6f2dc7
NN
13290case ${enable_werror} in
13291 yes) stage2_werror_flag="--enable-werror-always" ;;
13292 *) stage2_werror_flag="" ;;
1d39f329
NN
13293esac
13294
13295
e8a5fa9c
RW
13296# Specify what files to not compare during bootstrap.
13297
13298compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13299case "$target" in
13300 hppa*64*-*-hpux*) ;;
13301 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13302esac
13303
13304
81ecdfbb
RW
13305ac_config_files="$ac_config_files Makefile"
13306
c6b750e1 13307cat >confcache <<\_ACEOF
a0da8069
NN
13308# This file is a shell script that caches the results of configure
13309# tests run on this system so they can be shared between configure
c6b750e1
DJ
13310# scripts and configure runs, see configure's option --config-cache.
13311# It is not useful on other systems. If it contains results you don't
13312# want to keep, you may remove or edit it.
a0da8069 13313#
c6b750e1
DJ
13314# config.status only pays attention to the cache file if you give it
13315# the --recheck option to rerun configure.
a0da8069 13316#
c6b750e1
DJ
13317# `ac_cv_env_foo' variables (set or unset) will be overridden when
13318# loading this file, other *unset* `ac_cv_foo' will be assigned the
13319# following values.
13320
13321_ACEOF
13322
a0da8069
NN
13323# The following way of writing the cache mishandles newlines in values,
13324# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13325# So, we kill variables containing newlines.
a0da8069
NN
13326# Ultrix sh set writes to stderr and can't be redirected directly,
13327# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13328(
13329 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13330 eval ac_val=\$$ac_var
13331 case $ac_val in #(
13332 *${as_nl}*)
13333 case $ac_var in #(
13334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13335$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13336 esac
13337 case $ac_var in #(
13338 _ | IFS | as_nl) ;; #(
13339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13340 *) { eval $ac_var=; unset $ac_var;} ;;
13341 esac ;;
13342 esac
13343 done
13344
c6b750e1 13345 (set) 2>&1 |
81ecdfbb
RW
13346 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13347 *${as_nl}ac_space=\ *)
13348 # `set' does not quote correctly, so add quotes: double-quote
13349 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
13350 sed -n \
13351 "s/'/'\\\\''/g;
13352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13353 ;; #(
c6b750e1
DJ
13354 *)
13355 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13356 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 13357 ;;
81ecdfbb
RW
13358 esac |
13359 sort
13360) |
c6b750e1 13361 sed '
81ecdfbb 13362 /^ac_cv_env_/b end
c6b750e1 13363 t clear
81ecdfbb 13364 :clear
c6b750e1
DJ
13365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13366 t end
81ecdfbb
RW
13367 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13368 :end' >>confcache
13369if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13370 if test -w "$cache_file"; then
13371 test "x$cache_file" != "x/dev/null" &&
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13373$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 13374 cat confcache >$cache_file
a0da8069 13375 else
81ecdfbb
RW
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13377$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 13378 fi
852e5f18 13379fi
a0da8069 13380rm -f confcache
852e5f18 13381
a0da8069
NN
13382test "x$prefix" = xNONE && prefix=$ac_default_prefix
13383# Let make expand exec_prefix.
13384test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 13385
a0da8069
NN
13386# Transform confdefs.h into DEFS.
13387# Protect against shell expansion while executing Makefile rules.
13388# Protect against Makefile macro expansion.
c6b750e1
DJ
13389#
13390# If the first sed substitution is executed (which looks for macros that
81ecdfbb 13391# take arguments), then branch to the quote section. Otherwise,
c6b750e1 13392# look for a macro that doesn't take arguments.
81ecdfbb
RW
13393ac_script='
13394:mline
13395/\\$/{
13396 N
13397 s,\\\n,,
13398 b mline
13399}
c6b750e1 13400t clear
81ecdfbb
RW
13401:clear
13402s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 13403t quote
81ecdfbb 13404s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 13405t quote
81ecdfbb
RW
13406b any
13407:quote
13408s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13409s/\[/\\&/g
13410s/\]/\\&/g
13411s/\$/$$/g
13412H
13413:any
13414${
13415 g
13416 s/^\n//
13417 s/\n/ /g
13418 p
13419}
13420'
13421DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
13422
13423
13424ac_libobjs=
13425ac_ltlibobjs=
13426for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13427 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13428 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13429 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13430 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13431 # will be set to the directory where LIBOBJS objects are built.
13432 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13433 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
13434done
13435LIBOBJS=$ac_libobjs
852e5f18 13436
c6b750e1 13437LTLIBOBJS=$ac_ltlibobjs
376a0e54 13438
cac3d6c4 13439
c6b750e1
DJ
13440
13441: ${CONFIG_STATUS=./config.status}
81ecdfbb 13442ac_write_fail=0
c6b750e1
DJ
13443ac_clean_files_save=$ac_clean_files
13444ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13446$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13447as_write_fail=0
13448cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
13449#! $SHELL
13450# Generated by $as_me.
a0da8069 13451# Run this file to recreate the current configuration.
a0da8069 13452# Compiler output produced by configure, useful for debugging
c6b750e1 13453# configure, is in config.log if it exists.
376a0e54 13454
c6b750e1
DJ
13455debug=false
13456ac_cs_recheck=false
13457ac_cs_silent=false
c6b750e1 13458
81ecdfbb
RW
13459SHELL=\${CONFIG_SHELL-$SHELL}
13460export SHELL
13461_ASEOF
13462cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13463## -------------------- ##
13464## M4sh Initialization. ##
13465## -------------------- ##
13466
13467# Be more Bourne compatible
13468DUALCASE=1; export DUALCASE # for MKS sh
13469if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
13470 emulate sh
13471 NULLCMD=:
81ecdfbb 13472 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
13473 # is contrary to our usage. Disable this feature.
13474 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
13475 setopt NO_GLOB_SUBST
13476else
13477 case `(set -o) 2>/dev/null` in #(
13478 *posix*) :
13479 set -o posix ;; #(
13480 *) :
13481 ;;
13482esac
c6b750e1 13483fi
c6b750e1 13484
81ecdfbb
RW
13485
13486as_nl='
13487'
13488export as_nl
13489# Printing a long string crashes Solaris 7 /usr/bin/printf.
13490as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13491as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13492as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13493# Prefer a ksh shell builtin over an external printf program on Solaris,
13494# but without wasting forks for bash or zsh.
13495if test -z "$BASH_VERSION$ZSH_VERSION" \
13496 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13497 as_echo='print -r --'
13498 as_echo_n='print -rn --'
13499elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13500 as_echo='printf %s\n'
13501 as_echo_n='printf %s'
13502else
13503 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13504 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13505 as_echo_n='/usr/ucb/echo -n'
13506 else
13507 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13508 as_echo_n_body='eval
13509 arg=$1;
13510 case $arg in #(
13511 *"$as_nl"*)
13512 expr "X$arg" : "X\\(.*\\)$as_nl";
13513 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13514 esac;
13515 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13516 '
13517 export as_echo_n_body
13518 as_echo_n='sh -c $as_echo_n_body as_echo'
13519 fi
13520 export as_echo_body
13521 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
13522fi
13523
81ecdfbb
RW
13524# The user is always right.
13525if test "${PATH_SEPARATOR+set}" != set; then
13526 PATH_SEPARATOR=:
13527 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13528 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13529 PATH_SEPARATOR=';'
13530 }
13531fi
13532
13533
13534# IFS
13535# We need space, tab and new line, in precisely that order. Quoting is
13536# there to prevent editors from complaining about space-tab.
13537# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13538# splitting by setting IFS to empty value.)
13539IFS=" "" $as_nl"
13540
13541# Find who we are. Look in the path if we contain no directory separator.
13542case $0 in #((
13543 *[\\/]* ) as_myself=$0 ;;
13544 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545for as_dir in $PATH
13546do
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13550 done
13551IFS=$as_save_IFS
13552
13553 ;;
13554esac
13555# We did not find ourselves, most probably we were run as `sh COMMAND'
13556# in which case we are not to be found in the path.
13557if test "x$as_myself" = x; then
13558 as_myself=$0
13559fi
13560if test ! -f "$as_myself"; then
13561 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13562 exit 1
13563fi
c6b750e1 13564
81ecdfbb
RW
13565# Unset variables that we do not need and which cause bugs (e.g. in
13566# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13567# suppresses any "Segmentation fault" message there. '((' could
13568# trigger a bug in pdksh 5.2.14.
13569for as_var in BASH_ENV ENV MAIL MAILPATH
13570do eval test x\${$as_var+set} = xset \
13571 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13572done
c6b750e1
DJ
13573PS1='$ '
13574PS2='> '
13575PS4='+ '
13576
13577# NLS nuisances.
81ecdfbb
RW
13578LC_ALL=C
13579export LC_ALL
13580LANGUAGE=C
13581export LANGUAGE
13582
13583# CDPATH.
13584(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13585
13586
13587# as_fn_error ERROR [LINENO LOG_FD]
13588# ---------------------------------
13589# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13590# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13591# script with status $?, using 1 if that was 0.
13592as_fn_error ()
13593{
13594 as_status=$?; test $as_status -eq 0 && as_status=1
13595 if test "$3"; then
13596 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13597 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 13598 fi
81ecdfbb
RW
13599 $as_echo "$as_me: error: $1" >&2
13600 as_fn_exit $as_status
13601} # as_fn_error
13602
13603
13604# as_fn_set_status STATUS
13605# -----------------------
13606# Set $? to STATUS, without forking.
13607as_fn_set_status ()
13608{
13609 return $1
13610} # as_fn_set_status
13611
13612# as_fn_exit STATUS
13613# -----------------
13614# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13615as_fn_exit ()
13616{
13617 set +e
13618 as_fn_set_status $1
13619 exit $1
13620} # as_fn_exit
13621
13622# as_fn_unset VAR
13623# ---------------
13624# Portably unset VAR.
13625as_fn_unset ()
13626{
13627 { eval $1=; unset $1;}
13628}
13629as_unset=as_fn_unset
13630# as_fn_append VAR VALUE
13631# ----------------------
13632# Append the text in VALUE to the end of the definition contained in VAR. Take
13633# advantage of any shell optimizations that allow amortized linear growth over
13634# repeated appends, instead of the typical quadratic growth present in naive
13635# implementations.
13636if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13637 eval 'as_fn_append ()
13638 {
13639 eval $1+=\$2
13640 }'
13641else
13642 as_fn_append ()
13643 {
13644 eval $1=\$$1\$2
13645 }
13646fi # as_fn_append
13647
13648# as_fn_arith ARG...
13649# ------------------
13650# Perform arithmetic evaluation on the ARGs, and store the result in the
13651# global $as_val. Take advantage of shells that can avoid forks. The arguments
13652# must be portable across $(()) and expr.
13653if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13654 eval 'as_fn_arith ()
13655 {
13656 as_val=$(( $* ))
13657 }'
13658else
13659 as_fn_arith ()
13660 {
13661 as_val=`expr "$@" || test $? -eq 1`
13662 }
13663fi # as_fn_arith
13664
c6b750e1 13665
81ecdfbb
RW
13666if expr a : '\(a\)' >/dev/null 2>&1 &&
13667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
13668 as_expr=expr
13669else
13670 as_expr=false
13671fi
13672
81ecdfbb 13673if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
13674 as_basename=basename
13675else
13676 as_basename=false
13677fi
13678
81ecdfbb
RW
13679if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13680 as_dirname=dirname
13681else
13682 as_dirname=false
13683fi
c6b750e1 13684
81ecdfbb 13685as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
13686$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13687 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
13688 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13689$as_echo X/"$0" |
13690 sed '/^.*\/\([^/][^/]*\)\/*$/{
13691 s//\1/
13692 q
13693 }
13694 /^X\/\(\/\/\)$/{
13695 s//\1/
13696 q
13697 }
13698 /^X\/\(\/\).*/{
13699 s//\1/
13700 q
13701 }
13702 s/.*/./; q'`
c6b750e1 13703
c6b750e1
DJ
13704# Avoid depending upon Character Ranges.
13705as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13706as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13707as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13708as_cr_digits='0123456789'
13709as_cr_alnum=$as_cr_Letters$as_cr_digits
13710
81ecdfbb
RW
13711ECHO_C= ECHO_N= ECHO_T=
13712case `echo -n x` in #(((((
13713-n*)
13714 case `echo 'xy\c'` in
13715 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13716 xy) ECHO_C='\c';;
13717 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13718 ECHO_T=' ';;
13719 esac;;
13720*)
13721 ECHO_N='-n';;
c6b750e1
DJ
13722esac
13723
81ecdfbb
RW
13724rm -f conf$$ conf$$.exe conf$$.file
13725if test -d conf$$.dir; then
13726 rm -f conf$$.dir/conf$$.file
c6b750e1 13727else
81ecdfbb
RW
13728 rm -f conf$$.dir
13729 mkdir conf$$.dir 2>/dev/null
c6b750e1 13730fi
81ecdfbb
RW
13731if (echo >conf$$.file) 2>/dev/null; then
13732 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 13733 as_ln_s='ln -s'
81ecdfbb
RW
13734 # ... but there are two gotchas:
13735 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13736 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13737 # In both cases, we have to default to `cp -p'.
13738 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13739 as_ln_s='cp -p'
13740 elif ln conf$$.file conf$$ 2>/dev/null; then
13741 as_ln_s=ln
13742 else
13743 as_ln_s='cp -p'
c6b750e1 13744 fi
c6b750e1
DJ
13745else
13746 as_ln_s='cp -p'
13747fi
81ecdfbb
RW
13748rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13749rmdir conf$$.dir 2>/dev/null
13750
13751
13752# as_fn_mkdir_p
13753# -------------
13754# Create "$as_dir" as a directory, including parents if necessary.
13755as_fn_mkdir_p ()
13756{
13757
13758 case $as_dir in #(
13759 -*) as_dir=./$as_dir;;
13760 esac
13761 test -d "$as_dir" || eval $as_mkdir_p || {
13762 as_dirs=
13763 while :; do
13764 case $as_dir in #(
13765 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13766 *) as_qdir=$as_dir;;
13767 esac
13768 as_dirs="'$as_qdir' $as_dirs"
13769 as_dir=`$as_dirname -- "$as_dir" ||
13770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13771 X"$as_dir" : 'X\(//\)[^/]' \| \
13772 X"$as_dir" : 'X\(//\)$' \| \
13773 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13774$as_echo X"$as_dir" |
13775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13776 s//\1/
13777 q
13778 }
13779 /^X\(\/\/\)[^/].*/{
13780 s//\1/
13781 q
13782 }
13783 /^X\(\/\/\)$/{
13784 s//\1/
13785 q
13786 }
13787 /^X\(\/\).*/{
13788 s//\1/
13789 q
13790 }
13791 s/.*/./; q'`
13792 test -d "$as_dir" && break
13793 done
13794 test -z "$as_dirs" || eval "mkdir $as_dirs"
13795 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13796
c6b750e1 13797
81ecdfbb 13798} # as_fn_mkdir_p
c6b750e1 13799if mkdir -p . 2>/dev/null; then
81ecdfbb 13800 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
13801else
13802 test -d ./-p && rmdir ./-p
13803 as_mkdir_p=false
13804fi
13805
81ecdfbb
RW
13806if test -x / >/dev/null 2>&1; then
13807 as_test_x='test -x'
13808else
13809 if ls -dL / >/dev/null 2>&1; then
13810 as_ls_L_option=L
13811 else
13812 as_ls_L_option=
13813 fi
13814 as_test_x='
13815 eval sh -c '\''
13816 if test -d "$1"; then
13817 test -d "$1/.";
13818 else
13819 case $1 in #(
13820 -*)set "./$1";;
13821 esac;
13822 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13823 ???[sx]*):;;*)false;;esac;fi
13824 '\'' sh
13825 '
13826fi
13827as_executable_p=$as_test_x
c6b750e1
DJ
13828
13829# Sed expression to map a string onto a valid CPP name.
13830as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13831
13832# Sed expression to map a string onto a valid variable name.
13833as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13834
13835
c6b750e1 13836exec 6>&1
81ecdfbb
RW
13837## ----------------------------------- ##
13838## Main body of $CONFIG_STATUS script. ##
13839## ----------------------------------- ##
13840_ASEOF
13841test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13842
13843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13844# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 13845# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
13846# values after options handling.
13847ac_log="
c6b750e1 13848This file was extended by $as_me, which was
81ecdfbb 13849generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
13850
13851 CONFIG_FILES = $CONFIG_FILES
13852 CONFIG_HEADERS = $CONFIG_HEADERS
13853 CONFIG_LINKS = $CONFIG_LINKS
13854 CONFIG_COMMANDS = $CONFIG_COMMANDS
13855 $ $0 $@
13856
81ecdfbb
RW
13857on `(hostname || uname -n) 2>/dev/null | sed 1q`
13858"
13859
c6b750e1
DJ
13860_ACEOF
13861
81ecdfbb
RW
13862case $ac_config_files in *"
13863"*) set x $ac_config_files; shift; ac_config_files=$*;;
13864esac
c6b750e1 13865
c6b750e1 13866
c6b750e1 13867
81ecdfbb
RW
13868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13869# Files that config.status was made for.
13870config_files="$ac_config_files"
c6b750e1 13871
81ecdfbb 13872_ACEOF
c6b750e1 13873
81ecdfbb 13874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 13875ac_cs_usage="\
81ecdfbb
RW
13876\`$as_me' instantiates files and other configuration actions
13877from templates according to the current configuration. Unless the files
13878and actions are specified as TAGs, all are instantiated by default.
c6b750e1 13879
81ecdfbb 13880Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
13881
13882 -h, --help print this help, then exit
81ecdfbb
RW
13883 -V, --version print version number and configuration settings, then exit
13884 -q, --quiet, --silent
13885 do not print progress messages
c6b750e1
DJ
13886 -d, --debug don't remove temporary files
13887 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13888 --file=FILE[:TEMPLATE]
13889 instantiate the configuration file FILE
c6b750e1
DJ
13890
13891Configuration files:
13892$config_files
13893
81ecdfbb 13894Report bugs to the package provider."
c6b750e1 13895
81ecdfbb
RW
13896_ACEOF
13897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
13898ac_cs_version="\\
13899config.status
81ecdfbb
RW
13900configured by $0, generated by GNU Autoconf 2.64,
13901 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 13902
81ecdfbb 13903Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
13904This config.status script is free software; the Free Software Foundation
13905gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13906
13907ac_pwd='$ac_pwd'
13908srcdir='$srcdir'
13909INSTALL='$INSTALL'
8e957354 13910AWK='$AWK'
81ecdfbb 13911test -n "\$AWK" || AWK=awk
c6b750e1
DJ
13912_ACEOF
13913
81ecdfbb
RW
13914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13915# The default lists apply if the user does not specify any file.
c6b750e1
DJ
13916ac_need_defaults=:
13917while test $# != 0
a0da8069 13918do
c6b750e1
DJ
13919 case $1 in
13920 --*=*)
81ecdfbb
RW
13921 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13922 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
13923 ac_shift=:
13924 ;;
81ecdfbb 13925 *)
c6b750e1
DJ
13926 ac_option=$1
13927 ac_optarg=$2
13928 ac_shift=shift
13929 ;;
c6b750e1
DJ
13930 esac
13931
13932 case $ac_option in
13933 # Handling of the options.
a0da8069 13934 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 13935 ac_cs_recheck=: ;;
81ecdfbb
RW
13936 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13937 $as_echo "$ac_cs_version"; exit ;;
13938 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
13939 debug=: ;;
13940 --file | --fil | --fi | --f )
13941 $ac_shift
81ecdfbb
RW
13942 case $ac_optarg in
13943 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13944 esac
13945 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 13946 ac_need_defaults=false;;
81ecdfbb
RW
13947 --he | --h | --help | --hel | -h )
13948 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
13949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13950 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13951 ac_cs_silent=: ;;
13952
13953 # This is an error.
81ecdfbb
RW
13954 -*) as_fn_error "unrecognized option: \`$1'
13955Try \`$0 --help' for more information." ;;
c6b750e1 13956
81ecdfbb
RW
13957 *) as_fn_append ac_config_targets " $1"
13958 ac_need_defaults=false ;;
c6b750e1 13959
376a0e54 13960 esac
c6b750e1 13961 shift
376a0e54
CM
13962done
13963
c6b750e1 13964ac_configure_extra_args=
376a0e54 13965
c6b750e1
DJ
13966if $ac_cs_silent; then
13967 exec 6>/dev/null
13968 ac_configure_extra_args="$ac_configure_extra_args --silent"
13969fi
376a0e54 13970
c6b750e1 13971_ACEOF
81ecdfbb 13972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 13973if \$ac_cs_recheck; then
81ecdfbb
RW
13974 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13975 shift
13976 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13977 CONFIG_SHELL='$SHELL'
13978 export CONFIG_SHELL
13979 exec "\$@"
c6b750e1
DJ
13980fi
13981
13982_ACEOF
81ecdfbb
RW
13983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13984exec 5>>config.log
13985{
13986 echo
13987 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13988## Running $as_me. ##
13989_ASBOX
13990 $as_echo "$ac_log"
13991} >&5
c6b750e1 13992
81ecdfbb
RW
13993_ACEOF
13994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13995_ACEOF
c6b750e1 13996
81ecdfbb 13997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 13998
81ecdfbb 13999# Handling of arguments.
c6b750e1
DJ
14000for ac_config_target in $ac_config_targets
14001do
81ecdfbb
RW
14002 case $ac_config_target in
14003 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14004
14005 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14006 esac
14007done
14008
81ecdfbb 14009
c6b750e1
DJ
14010# If the user did not use the arguments to specify the items to instantiate,
14011# then the envvar interface is used. Set only those that are not.
14012# We use the long form for the default assignment because of an extremely
14013# bizarre bug on SunOS 4.1.3.
14014if $ac_need_defaults; then
14015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14016fi
14017
14018# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14019# simply because there is no reason against having it here, and in addition,
c6b750e1 14020# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14021# Hook for its removal unless debugging.
14022# Note that there is a small window in which the directory will not be cleaned:
14023# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14024$debug ||
14025{
81ecdfbb
RW
14026 tmp=
14027 trap 'exit_status=$?
14028 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14029' 0
14030 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14031}
c6b750e1
DJ
14032# Create a (secure) tmp directory for tmp files.
14033
14034{
81ecdfbb 14035 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14036 test -n "$tmp" && test -d "$tmp"
14037} ||
14038{
81ecdfbb
RW
14039 tmp=./conf$$-$RANDOM
14040 (umask 077 && mkdir "$tmp")
14041} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14042
14043# Set up the scripts for CONFIG_FILES section.
14044# No need to generate them if there are no CONFIG_FILES.
14045# This happens for instance with `./config.status config.h'.
14046if test -n "$CONFIG_FILES"; then
14047
14048if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14049 ac_cs_awk_getline=:
14050 ac_cs_awk_pipe_init=
14051 ac_cs_awk_read_file='
14052 while ((getline aline < (F[key])) > 0)
14053 print(aline)
14054 close(F[key])'
14055 ac_cs_awk_pipe_fini=
14056else
14057 ac_cs_awk_getline=false
14058 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14059 ac_cs_awk_read_file='
14060 print "|#_!!_#|"
14061 print "cat " F[key] " &&"
14062 '$ac_cs_awk_pipe_init
14063 # The final `:' finishes the AND list.
14064 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14065fi
14066ac_cr=`echo X | tr X '\015'`
14067# On cygwin, bash can eat \r inside `` if the user requested igncr.
14068# But we know of no other shell where ac_cr would be empty at this
14069# point, so we can use a bashism as a fallback.
14070if test "x$ac_cr" = x; then
14071 eval ac_cr=\$\'\\r\'
14072fi
14073ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14074if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14075 ac_cs_awk_cr='\r'
14076else
14077 ac_cs_awk_cr=$ac_cr
14078fi
14079
14080echo 'BEGIN {' >"$tmp/subs1.awk" &&
14081_ACEOF
14082
14083# Create commands to substitute file output variables.
c6b750e1 14084{
81ecdfbb
RW
14085 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14086 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14087 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14088 echo "_ACAWK" &&
14089 echo "_ACEOF"
14090} >conf$$files.sh &&
14091. ./conf$$files.sh ||
14092 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14093rm -f conf$$files.sh
c6b750e1 14094
81ecdfbb
RW
14095{
14096 echo "cat >conf$$subs.awk <<_ACEOF" &&
14097 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14098 echo "_ACEOF"
14099} >conf$$subs.sh ||
14100 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14101ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14102ac_delim='%!_!# '
14103for ac_last_try in false false false false false :; do
14104 . ./conf$$subs.sh ||
14105 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14106
14107 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14108 if test $ac_delim_n = $ac_delim_num; then
14109 break
14110 elif $ac_last_try; then
14111 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14112 else
14113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14114 fi
14115done
14116rm -f conf$$subs.sh
14117
14118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14119cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14120_ACEOF
81ecdfbb
RW
14121sed -n '
14122h
14123s/^/S["/; s/!.*/"]=/
14124p
14125g
14126s/^[^!]*!//
14127:repl
14128t repl
14129s/'"$ac_delim"'$//
14130t delim
14131:nl
14132h
14133s/\(.\{148\}\).*/\1/
14134t more1
14135s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14136p
14137n
14138b repl
14139:more1
14140s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14141p
14142g
14143s/.\{148\}//
14144t nl
14145:delim
14146h
14147s/\(.\{148\}\).*/\1/
14148t more2
14149s/["\\]/\\&/g; s/^/"/; s/$/"/
14150p
14151b
14152:more2
14153s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14154p
14155g
14156s/.\{148\}//
14157t delim
14158' <conf$$subs.awk | sed '
14159/^[^""]/{
14160 N
14161 s/\n//
14162}
14163' >>$CONFIG_STATUS || ac_write_fail=1
14164rm -f conf$$subs.awk
14165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14166_ACAWK
14167cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14168 for (key in S) S_is_set[key] = 1
14169 FS = "\a"
14170 \$ac_cs_awk_pipe_init
14171}
14172{
14173 line = $ 0
14174 nfields = split(line, field, "@")
14175 substed = 0
14176 len = length(field[1])
14177 for (i = 2; i < nfields; i++) {
14178 key = field[i]
14179 keylen = length(key)
14180 if (S_is_set[key]) {
14181 value = S[key]
14182 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14183 len += length(value) + length(field[++i])
14184 substed = 1
14185 } else
14186 len += 1 + keylen
14187 }
14188 if (nfields == 3 && !substed) {
14189 key = field[2]
14190 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14191 \$ac_cs_awk_read_file
14192 next
14193 }
14194 }
14195 print line
14196}
14197\$ac_cs_awk_pipe_fini
14198_ACAWK
14199_ACEOF
14200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14201if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14202 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14203else
14204 cat
14205fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14206 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14207_ACEOF
14208
14209# VPATH may cause trouble with some makes, so we remove $(srcdir),
14210# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14211# trailing colons and then remove the whole line if VPATH becomes empty
14212# (actually we leave an empty line to preserve line numbers).
14213if test "x$srcdir" = x.; then
14214 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14215s/:*\$(srcdir):*/:/
14216s/:*\${srcdir}:*/:/
14217s/:*@srcdir@:*/:/
14218s/^\([^=]*=[ ]*\):*/\1/
14219s/:*$//
14220s/^[^=]*=[ ]*$//
14221}'
14222fi
c6b750e1 14223
81ecdfbb
RW
14224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14225fi # test -n "$CONFIG_FILES"
c6b750e1 14226
c6b750e1 14227
81ecdfbb
RW
14228eval set X " :F $CONFIG_FILES "
14229shift
14230for ac_tag
14231do
14232 case $ac_tag in
14233 :[FHLC]) ac_mode=$ac_tag; continue;;
14234 esac
14235 case $ac_mode$ac_tag in
14236 :[FHL]*:*);;
14237 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14238 :[FH]-) ac_tag=-:-;;
14239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14240 esac
14241 ac_save_IFS=$IFS
14242 IFS=:
14243 set x $ac_tag
14244 IFS=$ac_save_IFS
14245 shift
14246 ac_file=$1
14247 shift
252b5132 14248
81ecdfbb
RW
14249 case $ac_mode in
14250 :L) ac_source=$1;;
14251 :[FH])
14252 ac_file_inputs=
14253 for ac_f
14254 do
14255 case $ac_f in
14256 -) ac_f="$tmp/stdin";;
14257 *) # Look for the file first in the build tree, then in the source tree
14258 # (if the path is not absolute). The absolute path cannot be DOS-style,
14259 # because $ac_f cannot contain `:'.
14260 test -f "$ac_f" ||
14261 case $ac_f in
14262 [\\/$]*) false;;
14263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14264 esac ||
14265 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14266 esac
14267 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14268 as_fn_append ac_file_inputs " '$ac_f'"
14269 done
c6b750e1 14270
81ecdfbb
RW
14271 # Let's still pretend it is `configure' which instantiates (i.e., don't
14272 # use $as_me), people would be surprised to read:
14273 # /* config.h. Generated by config.status. */
14274 configure_input='Generated from '`
14275 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14276 `' by configure.'
14277 if test x"$ac_file" != x-; then
14278 configure_input="$ac_file. $configure_input"
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14280$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 14281 fi
81ecdfbb
RW
14282 # Neutralize special characters interpreted by sed in replacement strings.
14283 case $configure_input in #(
14284 *\&* | *\|* | *\\* )
14285 ac_sed_conf_input=`$as_echo "$configure_input" |
14286 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14287 *) ac_sed_conf_input=$configure_input;;
14288 esac
cac3d6c4 14289
81ecdfbb
RW
14290 case $ac_tag in
14291 *:-:* | *:-) cat >"$tmp/stdin" \
14292 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14293 esac
14294 ;;
a0da8069 14295 esac
252b5132 14296
81ecdfbb 14297 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
14298$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14299 X"$ac_file" : 'X\(//\)[^/]' \| \
14300 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
14301 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14302$as_echo X"$ac_file" |
14303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14304 s//\1/
14305 q
14306 }
14307 /^X\(\/\/\)[^/].*/{
14308 s//\1/
14309 q
14310 }
14311 /^X\(\/\/\)$/{
14312 s//\1/
14313 q
14314 }
14315 /^X\(\/\).*/{
14316 s//\1/
14317 q
14318 }
14319 s/.*/./; q'`
14320 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 14321 ac_builddir=.
252b5132 14322
81ecdfbb
RW
14323case "$ac_dir" in
14324.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14325*)
14326 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14327 # A ".." for each directory in $ac_dir_suffix.
14328 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14329 case $ac_top_builddir_sub in
14330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14332 esac ;;
14333esac
14334ac_abs_top_builddir=$ac_pwd
14335ac_abs_builddir=$ac_pwd$ac_dir_suffix
14336# for backward compatibility:
14337ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
14338
14339case $srcdir in
81ecdfbb 14340 .) # We are building in place.
c6b750e1 14341 ac_srcdir=.
81ecdfbb
RW
14342 ac_top_srcdir=$ac_top_builddir_sub
14343 ac_abs_top_srcdir=$ac_pwd ;;
14344 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 14345 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
14346 ac_top_srcdir=$srcdir
14347 ac_abs_top_srcdir=$srcdir ;;
14348 *) # Relative name.
14349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14350 ac_top_srcdir=$ac_top_build_prefix$srcdir
14351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 14352esac
81ecdfbb 14353ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 14354
252b5132 14355
81ecdfbb
RW
14356 case $ac_mode in
14357 :F)
14358 #
14359 # CONFIG_FILE
14360 #
c6b750e1
DJ
14361
14362 case $INSTALL in
14363 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 14364 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 14365 esac
81ecdfbb 14366_ACEOF
252b5132 14367
81ecdfbb
RW
14368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14369# If the template does not know about datarootdir, expand it.
14370# FIXME: This hack should be removed a few years after 2.60.
14371ac_datarootdir_hack=; ac_datarootdir_seen=
14372ac_sed_dataroot='
14373/datarootdir/ {
14374 p
14375 q
14376}
14377/@datadir@/p
14378/@docdir@/p
14379/@infodir@/p
14380/@localedir@/p
14381/@mandir@/p'
14382case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14383*datarootdir*) ac_datarootdir_seen=yes;;
14384*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14386$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 14387_ACEOF
81ecdfbb
RW
14388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14389 ac_datarootdir_hack='
14390 s&@datadir@&$datadir&g
14391 s&@docdir@&$docdir&g
14392 s&@infodir@&$infodir&g
14393 s&@localedir@&$localedir&g
14394 s&@mandir@&$mandir&g
14395 s&\\\${datarootdir}&$datarootdir&g' ;;
14396esac
14397_ACEOF
14398
14399# Neutralize VPATH when `$srcdir' = `.'.
14400# Shell code in configure.ac might set extrasub.
14401# FIXME: do we really want to maintain this feature?
14402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14403ac_sed_extra="$ac_vpsub
c6b750e1
DJ
14404$extrasub
14405_ACEOF
81ecdfbb 14406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
14407:t
14408/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
14409s|@configure_input@|$ac_sed_conf_input|;t t
14410s&@top_builddir@&$ac_top_builddir_sub&;t t
14411s&@top_build_prefix@&$ac_top_build_prefix&;t t
14412s&@srcdir@&$ac_srcdir&;t t
14413s&@abs_srcdir@&$ac_abs_srcdir&;t t
14414s&@top_srcdir@&$ac_top_srcdir&;t t
14415s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14416s&@builddir@&$ac_builddir&;t t
14417s&@abs_builddir@&$ac_abs_builddir&;t t
14418s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14419s&@INSTALL@&$ac_INSTALL&;t t
14420$ac_datarootdir_hack
14421"
14422eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14423if $ac_cs_awk_getline; then
14424 $AWK -f "$tmp/subs.awk"
14425else
14426 $AWK -f "$tmp/subs.awk" | $SHELL
14427fi >$tmp/out \
14428 || as_fn_error "could not create $ac_file" "$LINENO" 5
14429
14430test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14431 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14432 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14434which seems to be undefined. Please make sure it is defined." >&5
14435$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14436which seems to be undefined. Please make sure it is defined." >&2;}
14437
14438 rm -f "$tmp/stdin"
14439 case $ac_file in
14440 -) cat "$tmp/out" && rm -f "$tmp/out";;
14441 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14442 esac \
14443 || as_fn_error "could not create $ac_file" "$LINENO" 5
14444 ;;
c148b4cb 14445
c148b4cb 14446
c148b4cb 14447
81ecdfbb
RW
14448 esac
14449
14450done # for ac_tag
14451
14452
14453as_fn_exit 0
c6b750e1 14454_ACEOF
c6b750e1
DJ
14455ac_clean_files=$ac_clean_files_save
14456
81ecdfbb
RW
14457test $ac_write_fail = 0 ||
14458 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14459
c6b750e1
DJ
14460
14461# configure is writing to config.log, and then calls config.status.
14462# config.status does its own redirection, appending to config.log.
14463# Unfortunately, on DOS this fails, as config.log is still kept open
14464# by configure, so config.status won't be able to write to it; its
14465# output is simply discarded. So we exec the FD to /dev/null,
14466# effectively closing config.log, so it can be properly (re)opened and
14467# appended to by config.status. When coming back to configure, we
14468# need to make the FD available again.
14469if test "$no_create" != yes; then
14470 ac_cs_success=:
14471 ac_config_status_args=
14472 test "$silent" = yes &&
14473 ac_config_status_args="$ac_config_status_args --quiet"
14474 exec 5>/dev/null
14475 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14476 exec 5>>config.log
14477 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14478 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14479 $ac_cs_success || as_fn_exit $?
14480fi
14481if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14483$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 14484fi
c148b4cb 14485
This page took 1.362975 seconds and 4 git commands to generate.