]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
* configure.ac (ppc*-*-pe): Remove host case.
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
c6b750e1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
c6b750e1 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
e552509b 581GOC_FOR_TARGET
81ecdfbb
RW
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
607config_shell
608WINDRES_FOR_BUILD
609WINDMC_FOR_BUILD
610RANLIB_FOR_BUILD
611NM_FOR_BUILD
612LD_FOR_BUILD
613LDFLAGS_FOR_BUILD
e552509b 614GOC_FOR_BUILD
81ecdfbb
RW
615GFORTRAN_FOR_BUILD
616GCJ_FOR_BUILD
617DLLTOOL_FOR_BUILD
618CXX_FOR_BUILD
619CXXFLAGS_FOR_BUILD
620CFLAGS_FOR_BUILD
621CC_FOR_BUILD
622AS_FOR_BUILD
623AR_FOR_BUILD
911e63d0 624target_configdirs
81ecdfbb 625configdirs
81ecdfbb 626build_configdirs
81ecdfbb
RW
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
4074d5f2
RW
634target_configargs
635host_configargs
636build_configargs
96655cc4 637BUILD_CONFIG
81ecdfbb
RW
638CXXFLAGS_FOR_TARGET
639CFLAGS_FOR_TARGET
640DEBUG_PREFIX_CFLAGS_FOR_TARGET
641SYSROOT_CFLAGS_FOR_TARGET
642stage1_languages
700d40ca 643extra_host_libiberty_configure_flags
81ecdfbb
RW
644clooginc
645clooglibs
646pplinc
647ppllibs
81ecdfbb 648poststage1_ldflags
143754cd 649poststage1_libs
81ecdfbb
RW
650stage1_libs
651stage1_ldflags
652extra_mpc_mpfr_configure_flags
653extra_mpc_gmp_configure_flags
654extra_mpfr_configure_flags
655gmpinc
656gmplibs
657do_compare
658GNATMAKE
659GNATBIND
660ac_ct_CXX
661CXXFLAGS
662CXX
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670target_subdir
671host_subdir
672build_subdir
673build_libsubdir
8e957354
PB
674AWK
675SED
81ecdfbb
RW
676LN_S
677LN
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681target_os
682target_vendor
683target_cpu
684target
685host_os
686host_vendor
687host_cpu
688host
689target_noncanonical
690host_noncanonical
691build_noncanonical
692build_os
693build_vendor
694build_cpu
695build
696TOPLEVEL_CONFIGURE_ARGUMENTS
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files='serialization_dependencies
736host_makefile_frag
737target_makefile_frag
738alphaieee_frag
739ospace_frag'
740ac_user_opts='
741enable_option_checking
742with_build_libsubdir
743enable_gold
c7791212 744enable_ld
89a1e9c3
PB
745enable_libquadmath
746enable_libquadmath_support
81ecdfbb
RW
747enable_libada
748enable_libssp
749enable_build_with_cxx
750with_mpc
751with_mpc_include
752with_mpc_lib
753with_mpfr_dir
754with_mpfr
755with_mpfr_include
756with_mpfr_lib
757with_gmp_dir
758with_gmp
759with_gmp_include
760with_gmp_lib
761with_host_libstdcxx
762with_stage1_ldflags
763with_stage1_libs
81ecdfbb 764with_boot_libs
143754cd 765with_boot_ldflags
81ecdfbb
RW
766with_ppl
767with_ppl_include
768with_ppl_lib
769enable_ppl_version_check
770with_cloog
771with_cloog_include
772with_cloog_lib
e552509b 773enable_cloog_backend
81ecdfbb 774enable_cloog_version_check
700d40ca 775enable_lto
81ecdfbb
RW
776enable_stage1_languages
777enable_objc_gc
778with_build_sysroot
779with_debug_prefix_map
780enable_bootstrap
96655cc4 781with_build_config
81ecdfbb
RW
782enable_serial_configure
783with_build_time_tools
784enable_maintainer_mode
785enable_stage1_checking
786enable_werror
81ecdfbb
RW
787'
788 ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CXX
797CXXFLAGS
798CCC
4074d5f2
RW
799build_configargs
800host_configargs
801target_configargs
81ecdfbb
RW
802AR
803AS
804DLLTOOL
805LD
806LIPO
807NM
808RANLIB
809STRIP
810WINDRES
811WINDMC
812OBJCOPY
813OBJDUMP
814CC_FOR_TARGET
815CXX_FOR_TARGET
816GCC_FOR_TARGET
817GCJ_FOR_TARGET
818GFORTRAN_FOR_TARGET
e552509b 819GOC_FOR_TARGET
81ecdfbb
RW
820AR_FOR_TARGET
821AS_FOR_TARGET
822DLLTOOL_FOR_TARGET
823LD_FOR_TARGET
824LIPO_FOR_TARGET
825NM_FOR_TARGET
826OBJDUMP_FOR_TARGET
827RANLIB_FOR_TARGET
828STRIP_FOR_TARGET
829WINDRES_FOR_TARGET
830WINDMC_FOR_TARGET'
831
a0da8069
NN
832
833# Initialize some variables set by options.
c6b750e1
DJ
834ac_init_help=
835ac_init_version=false
81ecdfbb
RW
836ac_unrecognized_opts=
837ac_unrecognized_sep=
a0da8069
NN
838# The variables have the same names as the options, with
839# dashes changed to underlines.
c6b750e1 840cache_file=/dev/null
a0da8069 841exec_prefix=NONE
a0da8069 842no_create=
a0da8069
NN
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
a0da8069
NN
851verbose=
852x_includes=NONE
853x_libraries=NONE
c6b750e1
DJ
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 860# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
a0da8069
NN
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
a0da8069
NN
869includedir='${prefix}/include'
870oldincludedir='/usr/include'
81ecdfbb
RW
871docdir='${datarootdir}/doc/${PACKAGE}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
252b5132 880
a0da8069 881ac_prev=
81ecdfbb 882ac_dashdash=
a0da8069
NN
883for ac_option
884do
a0da8069
NN
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
81ecdfbb 887 eval $ac_prev=\$ac_option
a0da8069
NN
888 ac_prev=
889 continue
890 fi
252b5132 891
81ecdfbb
RW
892 case $ac_option in
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *) ac_optarg=yes ;;
895 esac
a0da8069
NN
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
81ecdfbb
RW
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
a0da8069
NN
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 906 bindir=$ac_optarg ;;
a0da8069
NN
907
908 -build | --build | --buil | --bui | --bu)
c6b750e1 909 ac_prev=build_alias ;;
a0da8069 910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 911 build_alias=$ac_optarg ;;
a0da8069
NN
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
a0da8069 922
81ecdfbb 923 -datadir | --datadir | --datadi | --datad)
a0da8069 924 ac_prev=datadir ;;
81ecdfbb 925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 926 datadir=$ac_optarg ;;
a0da8069 927
81ecdfbb
RW
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
a0da8069 935 -disable-* | --disable-*)
81ecdfbb 936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 937 # Reject names that are not valid shell variable names.
81ecdfbb
RW
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944"enable_$ac_useropt"
945"*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
a0da8069
NN
960
961 -enable-* | --enable-*)
81ecdfbb 962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 963 # Reject names that are not valid shell variable names.
81ecdfbb
RW
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970"enable_$ac_useropt"
971"*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
a0da8069 974 esac
81ecdfbb 975 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
c6b750e1 984 exec_prefix=$ac_optarg ;;
a0da8069
NN
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
c6b750e1
DJ
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
a0da8069
NN
996
997 -host | --host | --hos | --ho)
c6b750e1 998 ac_prev=host_alias ;;
a0da8069 999 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1000 host_alias=$ac_optarg ;;
a0da8069 1001
81ecdfbb
RW
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
a0da8069
NN
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1013 includedir=$ac_optarg ;;
a0da8069
NN
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1018 infodir=$ac_optarg ;;
a0da8069
NN
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1023 libdir=$ac_optarg ;;
a0da8069
NN
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1030 libexecdir=$ac_optarg ;;
a0da8069 1031
81ecdfbb
RW
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
a0da8069 1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1038 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1042 localstatedir=$ac_optarg ;;
a0da8069
NN
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1047 mandir=$ac_optarg ;;
a0da8069
NN
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1054 | --no-cr | --no-c | -n)
a0da8069
NN
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1068 oldincludedir=$ac_optarg ;;
a0da8069
NN
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1073 prefix=$ac_optarg ;;
a0da8069
NN
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1080 program_prefix=$ac_optarg ;;
a0da8069
NN
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1087 program_suffix=$ac_optarg ;;
a0da8069
NN
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1104 program_transform_name=$ac_optarg ;;
a0da8069 1105
81ecdfbb
RW
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
a0da8069
NN
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
c6b750e1 1124 sbindir=$ac_optarg ;;
a0da8069
NN
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
c6b750e1 1135 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
c6b750e1 1140 site=$ac_optarg ;;
a0da8069
NN
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1145 srcdir=$ac_optarg ;;
a0da8069
NN
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1152 sysconfdir=$ac_optarg ;;
a0da8069
NN
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1155 ac_prev=target_alias ;;
a0da8069 1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1157 target_alias=$ac_optarg ;;
a0da8069
NN
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
c6b750e1
DJ
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
a0da8069
NN
1164
1165 -with-* | --with-*)
81ecdfbb 1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1167 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174"with_$ac_useropt"
1175"*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
a0da8069 1178 esac
81ecdfbb 1179 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1180
1181 -without-* | --without-*)
81ecdfbb 1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1183 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
a0da8069
NN
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1206 x_includes=$ac_optarg ;;
a0da8069
NN
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1213 x_libraries=$ac_optarg ;;
a0da8069 1214
81ecdfbb
RW
1215 -*) as_fn_error "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information."
a0da8069
NN
1217 ;;
1218
c6b750e1
DJ
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1227 export $ac_envvar ;;
1228
a0da8069 1229 *)
c6b750e1 1230 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1235 ;;
1236
1237 esac
1238done
1239
1240if test -n "$ac_prev"; then
c6b750e1 1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1242 as_fn_error "missing argument to $ac_option"
a0da8069 1243fi
a0da8069 1244
81ecdfbb
RW
1245if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1250 esac
81ecdfbb 1251fi
a0da8069 1252
81ecdfbb
RW
1253# Check all directory arguments for consistency.
1254for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
a0da8069 1258do
81ecdfbb
RW
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
c6b750e1 1267 case $ac_val in
81ecdfbb
RW
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1270 esac
81ecdfbb 1271 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1272done
1273
c6b750e1
DJ
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
376a0e54 1280
c6b750e1
DJ
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
81ecdfbb 1285 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1286 If a cross compiler is detected then cross compile mode will be used." >&2
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290fi
1291
1292ac_tool_prefix=
1293test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295test "$silent" = yes && exec 6>/dev/null
a0da8069 1296
a0da8069 1297
81ecdfbb
RW
1298ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299ac_ls_di=`ls -di .` &&
1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error "working directory cannot be determined"
1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error "pwd does not report name of working directory"
1304
1305
a0da8069
NN
1306# Find the source files, if location was not specified.
1307if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
81ecdfbb
RW
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315$as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
a0da8069 1333 srcdir=$ac_confdir
81ecdfbb 1334 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1335 srcdir=..
1336 fi
1337else
1338 ac_srcdir_defaulted=no
1339fi
81ecdfbb
RW
1340if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1343fi
1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1347 pwd)`
1348# When building in place, set srcdir=.
1349if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351fi
1352# Remove unnecessary trailing slashes from srcdir.
1353# Double slashes in file names in object file debugging info
1354# mess up M-x gdb in Emacs.
1355case $srcdir in
1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357esac
6d0cd39e
AM
1358case $srcdir in
1359 *" "*)
1360 as_fn_error "path to source, $srcdir, contains spaces"
1361 ;;
1362esac
9cc8ae67
PB
1363ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1364
81ecdfbb
RW
1365for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370done
c6b750e1
DJ
1371
1372#
1373# Report the --help message.
1374#
1375if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379\`configure' configures this package to adapt to many kinds of systems.
1380
1381Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386Defaults for the options are specified in brackets.
1387
1388Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
c6b750e1
DJ
1399Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1401 [$ac_default_prefix]
c6b750e1 1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1403 [PREFIX]
c6b750e1
DJ
1404
1405By default, \`make install' will install all the files in
1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408for instance \`--prefix=\$HOME'.
1409
1410For better control, use the options below.
1411
1412Fine tuning of the installation directories:
81ecdfbb
RW
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1432_ACEOF
1433
1434 cat <<\_ACEOF
1435
1436Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445_ACEOF
a0da8069 1446fi
a0da8069 1447
c6b750e1
DJ
1448if test -n "$ac_init_help"; then
1449
1450 cat <<\_ACEOF
1451
1452Optional Features:
81ecdfbb 1453 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1456 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1457 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1458 --disable-libquadmath do not build libquadmath directory
1459 --disable-libquadmath-support
1460 disable libquadmath support for Fortran
521ec477
DD
1461 --enable-libada build libada directory
1462 --enable-libssp build libssp directory
e8a5fa9c 1463 --enable-build-with-cxx build with C++ compiler instead of C compiler
7837304f
AS
1464 --disable-ppl-version-check
1465 disable check for PPL version
ceca0218
PB
1466 --enable-cloog-backend[=BACKEND]
1467 set the CLooG BACKEND used to either isl, ppl or
1468 ppl-legacy (default)
e552509b
ILT
1469 --disable-cloog-version-check
1470 disable check for CLooG version
700d40ca 1471 --enable-lto enable link time optimization support
7837304f
AS
1472 --enable-stage1-languages[=all]
1473 choose additional languages to build during stage1.
1474 Mostly useful for compiler development
1475 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1476 Objective-C runtime
521ec477
DD
1477 --enable-bootstrap enable bootstrapping [yes if native build]
1478 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1479 force sequential configuration of sub-packages for
1480 the host, target or build machine, or all
1481 sub-packages
1482 --enable-maintainer-mode
1483 enable make rules and dependencies not useful (and
1484 sometimes confusing) to the casual installer
1485 --enable-stage1-checking[=all]
1486 choose additional checking for stage1 of the
1487 compiler
c6b750e1
DJ
1488 --enable-werror enable -Werror in bootstrap stage2 and later
1489
1490Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1494 --with-mpc=PATH specify prefix directory for installed MPC package.
1495 Equivalent to --with-mpc-include=PATH/include plus
1496 --with-mpc-lib=PATH/lib
1497 --with-mpc-include=PATH specify directory for installed MPC include files
1498 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1499 --with-mpfr-dir=PATH this option has been REMOVED
1500 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1501 Equivalent to --with-mpfr-include=PATH/include plus
1502 --with-mpfr-lib=PATH/lib
c6b750e1 1503 --with-mpfr-include=PATH
521ec477
DD
1504 specify directory for installed MPFR include files
1505 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1506 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1507 --with-gmp=PATH specify prefix directory for the installed GMP
1508 package. Equivalent to
1509 --with-gmp-include=PATH/include plus
1510 --with-gmp-lib=PATH/lib
521ec477
DD
1511 --with-gmp-include=PATH specify directory for installed GMP include files
1512 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1513 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1514 linking with PPL
1515 --with-stage1-ldflags=FLAGS
1516 linker flags for stage1
1517 --with-stage1-libs=LIBS libraries for stage1
1518 --with-boot-libs=LIBS libraries for stage2 and later
1519 --with-boot-ldflags=FLAGS
1520 linker flags for stage2 and later
1521 --with-ppl=PATH specify prefix directory for the installed PPL
1522 package. Equivalent to
1523 --with-ppl-include=PATH/include plus
1524 --with-ppl-lib=PATH/lib
1525 --with-ppl-include=PATH specify directory for installed PPL include files
1526 --with-ppl-lib=PATH specify directory for the installed PPL library
e552509b
ILT
1527 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1528 package. Equivalent to
1529 --with-cloog-include=PATH/include plus
1530 --with-cloog-lib=PATH/lib
1531 --with-cloog-include=PATH
1532 Specify directory for installed CLooG include files
1533 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1534 library
521ec477 1535 --with-build-sysroot=SYSROOT
c6b750e1 1536 use sysroot as the system root during the build
8a6ee3ab 1537 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1538 map A to B, C to D ... in debug information
1539 --with-build-config='NAME NAME2...'
1540 use config/NAME.mk build configuration
521ec477 1541 --with-build-time-tools=PATH
c6b750e1 1542 use given path to find target tools during the build
c6b750e1
DJ
1543
1544Some influential environment variables:
1545 CC C compiler command
1546 CFLAGS C compiler flags
1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1548 nonstandard directory <lib dir>
81ecdfbb
RW
1549 LIBS libraries to pass to the linker, e.g. -l<library>
1550 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1551 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1552 CXX C++ compiler command
1553 CXXFLAGS C++ compiler flags
4074d5f2
RW
1554 build_configargs
1555 additional configure arguments for build directories
1556 host_configargs
1557 additional configure arguments for host directories
1558 target_configargs
1559 additional configure arguments for target directories
9a819804
AO
1560 AR AR for the host
1561 AS AS for the host
1562 DLLTOOL DLLTOOL for the host
1563 LD LD for the host
1564 LIPO LIPO for the host
1565 NM NM for the host
1566 RANLIB RANLIB for the host
1567 STRIP STRIP for the host
1568 WINDRES WINDRES for the host
0c24b341 1569 WINDMC WINDMC for the host
9a819804
AO
1570 OBJCOPY OBJCOPY for the host
1571 OBJDUMP OBJDUMP for the host
1572 CC_FOR_TARGET
1573 CC for the target
1574 CXX_FOR_TARGET
1575 CXX for the target
1576 GCC_FOR_TARGET
1577 GCC for the target
1578 GCJ_FOR_TARGET
1579 GCJ for the target
1580 GFORTRAN_FOR_TARGET
1581 GFORTRAN for the target
e552509b
ILT
1582 GOC_FOR_TARGET
1583 GOC for the target
9a819804
AO
1584 AR_FOR_TARGET
1585 AR for the target
1586 AS_FOR_TARGET
1587 AS for the target
1588 DLLTOOL_FOR_TARGET
1589 DLLTOOL for the target
1590 LD_FOR_TARGET
1591 LD for the target
1592 LIPO_FOR_TARGET
1593 LIPO for the target
1594 NM_FOR_TARGET
1595 NM for the target
1596 OBJDUMP_FOR_TARGET
1597 OBJDUMP for the target
1598 RANLIB_FOR_TARGET
1599 RANLIB for the target
1600 STRIP_FOR_TARGET
1601 STRIP for the target
1602 WINDRES_FOR_TARGET
1603 WINDRES for the target
0c24b341
NC
1604 WINDMC_FOR_TARGET
1605 WINDMC for the target
c6b750e1
DJ
1606
1607Use these variables to override the choices made by `configure' or to help
1608it to find libraries and programs with nonstandard names/locations.
1609
81ecdfbb 1610Report bugs to the package provider.
c6b750e1 1611_ACEOF
81ecdfbb 1612ac_status=$?
c6b750e1
DJ
1613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
c6b750e1 1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
c6b750e1
DJ
1621 ac_builddir=.
1622
81ecdfbb
RW
1623case "$ac_dir" in
1624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625*)
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633esac
1634ac_abs_top_builddir=$ac_pwd
1635ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636# for backward compatibility:
1637ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1638
1639case $srcdir in
81ecdfbb 1640 .) # We are building in place.
c6b750e1 1641 ac_srcdir=.
81ecdfbb
RW
1642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1645 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1652esac
81ecdfbb
RW
1653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1663 else
81ecdfbb
RW
1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1667 done
1668fi
1669
81ecdfbb 1670test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1671if $ac_init_version; then
1672 cat <<\_ACEOF
81ecdfbb
RW
1673configure
1674generated by GNU Autoconf 2.64
c6b750e1 1675
81ecdfbb 1676Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1677This configure script is free software; the Free Software Foundation
1678gives unlimited permission to copy, distribute and modify it.
1679_ACEOF
81ecdfbb 1680 exit
c6b750e1 1681fi
81ecdfbb
RW
1682
1683## ------------------------ ##
1684## Autoconf initialization. ##
1685## ------------------------ ##
1686
1687# ac_fn_c_try_compile LINENO
1688# --------------------------
1689# Try to compile conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_c_try_compile ()
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719fi
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1722
1723} # ac_fn_c_try_compile
1724
1725# ac_fn_cxx_try_compile LINENO
1726# ----------------------------
1727# Try to compile conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_cxx_try_compile ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_cxx_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 return $ac_retval
1760
1761} # ac_fn_cxx_try_compile
1762
1763# ac_fn_c_try_link LINENO
1764# -----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_link ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 $as_test_x conftest$ac_exeext
1791 }; then :
1792 ac_retval=0
1793else
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798fi
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 return $ac_retval
1806
1807} # ac_fn_c_try_link
1808cat >config.log <<_ACEOF
c6b750e1
DJ
1809This file contains any messages produced by compilers while
1810running configure, to aid debugging if configure makes a mistake.
1811
1812It was created by $as_me, which was
81ecdfbb 1813generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1814
1815 $ $0 $@
1816
1817_ACEOF
81ecdfbb 1818exec 5>>config.log
c6b750e1
DJ
1819{
1820cat <<_ASUNAME
1821## --------- ##
1822## Platform. ##
1823## --------- ##
1824
1825hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1826uname -m = `(uname -m) 2>/dev/null || echo unknown`
1827uname -r = `(uname -r) 2>/dev/null || echo unknown`
1828uname -s = `(uname -s) 2>/dev/null || echo unknown`
1829uname -v = `(uname -v) 2>/dev/null || echo unknown`
1830
1831/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1832/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1833
1834/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1835/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1836/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1837/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1838/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1839/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1840/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1841
1842_ASUNAME
1843
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1849 $as_echo "PATH: $as_dir"
1850 done
1851IFS=$as_save_IFS
c6b750e1
DJ
1852
1853} >&5
1854
1855cat >&5 <<_ACEOF
1856
1857
1858## ----------- ##
1859## Core tests. ##
1860## ----------- ##
1861
1862_ACEOF
1863
1864
1865# Keep a trace of the command line.
1866# Strip out --no-create and --no-recursion so they do not pile up.
1867# Strip out --silent because we don't want to record it for future runs.
1868# Also quote any args containing shell meta-characters.
1869# Make two passes to allow for proper duplicate-argument suppression.
1870ac_configure_args=
1871ac_configure_args0=
1872ac_configure_args1=
c6b750e1
DJ
1873ac_must_keep_next=false
1874for ac_pass in 1 2
1875do
1876 for ac_arg
1877 do
1878 case $ac_arg in
1879 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881 | -silent | --silent | --silen | --sile | --sil)
1882 continue ;;
81ecdfbb
RW
1883 *\'*)
1884 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1885 esac
1886 case $ac_pass in
81ecdfbb 1887 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1888 2)
81ecdfbb 1889 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1890 if test $ac_must_keep_next = true; then
1891 ac_must_keep_next=false # Got value, back to normal.
1892 else
1893 case $ac_arg in
1894 *=* | --config-cache | -C | -disable-* | --disable-* \
1895 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897 | -with-* | --with-* | -without-* | --without-* | --x)
1898 case "$ac_configure_args0 " in
1899 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900 esac
1901 ;;
1902 -* ) ac_must_keep_next=true ;;
1903 esac
1904 fi
81ecdfbb 1905 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1906 ;;
1907 esac
1908 done
1909done
81ecdfbb
RW
1910{ ac_configure_args0=; unset ac_configure_args0;}
1911{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1912
1913# When interrupted or exit'd, cleanup temporary files, and complete
1914# config.log. We remove comments because anyway the quotes in there
1915# would cause problems or look ugly.
81ecdfbb
RW
1916# WARNING: Use '\'' to represent an apostrophe within the trap.
1917# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1918trap 'exit_status=$?
1919 # Save into config.log some information that might help in debugging.
1920 {
1921 echo
1922
1923 cat <<\_ASBOX
1924## ---------------- ##
1925## Cache variables. ##
1926## ---------------- ##
1927_ASBOX
1928 echo
1929 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1930(
1931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932 eval ac_val=\$$ac_var
1933 case $ac_val in #(
1934 *${as_nl}*)
1935 case $ac_var in #(
1936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1938 esac
1939 case $ac_var in #(
1940 _ | IFS | as_nl) ;; #(
1941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942 *) { eval $ac_var=; unset $ac_var;} ;;
1943 esac ;;
1944 esac
1945 done
c6b750e1 1946 (set) 2>&1 |
81ecdfbb
RW
1947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948 *${as_nl}ac_space=\ *)
c6b750e1 1949 sed -n \
81ecdfbb
RW
1950 "s/'\''/'\''\\\\'\'''\''/g;
1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952 ;; #(
c6b750e1 1953 *)
81ecdfbb 1954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1955 ;;
81ecdfbb
RW
1956 esac |
1957 sort
1958)
c6b750e1
DJ
1959 echo
1960
1961 cat <<\_ASBOX
1962## ----------------- ##
1963## Output variables. ##
1964## ----------------- ##
1965_ASBOX
1966 echo
1967 for ac_var in $ac_subst_vars
1968 do
81ecdfbb
RW
1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1974 done | sort
1975 echo
1976
1977 if test -n "$ac_subst_files"; then
1978 cat <<\_ASBOX
81ecdfbb
RW
1979## ------------------- ##
1980## File substitutions. ##
1981## ------------------- ##
c6b750e1
DJ
1982_ASBOX
1983 echo
1984 for ac_var in $ac_subst_files
1985 do
81ecdfbb
RW
1986 eval ac_val=\$$ac_var
1987 case $ac_val in
1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 esac
1990 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1991 done | sort
1992 echo
1993 fi
1994
1995 if test -s confdefs.h; then
1996 cat <<\_ASBOX
1997## ----------- ##
1998## confdefs.h. ##
1999## ----------- ##
2000_ASBOX
2001 echo
81ecdfbb 2002 cat confdefs.h
c6b750e1
DJ
2003 echo
2004 fi
2005 test "$ac_signal" != 0 &&
81ecdfbb
RW
2006 $as_echo "$as_me: caught signal $ac_signal"
2007 $as_echo "$as_me: exit $exit_status"
c6b750e1 2008 } >&5
81ecdfbb
RW
2009 rm -f core *.core core.conftest.* &&
2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2011 exit $exit_status
81ecdfbb 2012' 0
c6b750e1 2013for ac_signal in 1 2 13 15; do
81ecdfbb 2014 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2015done
2016ac_signal=0
2017
2018# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2019rm -f -r conftest* confdefs.h
2020
2021$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2022
2023# Predefined preprocessor variables.
2024
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_NAME "$PACKAGE_NAME"
2027_ACEOF
2028
c6b750e1
DJ
2029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2031_ACEOF
2032
c6b750e1
DJ
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_VERSION "$PACKAGE_VERSION"
2035_ACEOF
2036
c6b750e1
DJ
2037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_STRING "$PACKAGE_STRING"
2039_ACEOF
2040
c6b750e1
DJ
2041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2043_ACEOF
2044
81ecdfbb
RW
2045cat >>confdefs.h <<_ACEOF
2046#define PACKAGE_URL "$PACKAGE_URL"
2047_ACEOF
2048
c6b750e1
DJ
2049
2050# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2051# Prefer an explicitly selected file to automatically selected ones.
2052ac_site_file1=NONE
2053ac_site_file2=NONE
2054if test -n "$CONFIG_SITE"; then
2055 ac_site_file1=$CONFIG_SITE
2056elif test "x$prefix" != xNONE; then
2057 ac_site_file1=$prefix/share/config.site
2058 ac_site_file2=$prefix/etc/config.site
2059else
2060 ac_site_file1=$ac_default_prefix/share/config.site
2061 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2062fi
81ecdfbb
RW
2063for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2064do
2065 test "x$ac_site_file" = xNONE && continue
a0da8069 2066 if test -r "$ac_site_file"; then
81ecdfbb
RW
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2069 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2070 . "$ac_site_file"
2071 fi
2072done
2073
2074if test -r "$cache_file"; then
c6b750e1
DJ
2075 # Some versions of bash will fail to source /dev/null (special
2076 # files actually), so we avoid doing that.
2077 if test -f "$cache_file"; then
81ecdfbb
RW
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2080 case $cache_file in
81ecdfbb
RW
2081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082 *) . "./$cache_file";;
c6b750e1
DJ
2083 esac
2084 fi
a0da8069 2085else
81ecdfbb
RW
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2088 >$cache_file
2089fi
2090
2091# Check that the precious variables saved in the cache have kept the same
2092# value.
2093ac_cache_corrupted=false
81ecdfbb 2094for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2096 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2097 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2098 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2099 case $ac_old_set,$ac_new_set in
2100 set,)
81ecdfbb
RW
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2102$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2103 ac_cache_corrupted=: ;;
2104 ,set)
81ecdfbb
RW
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2106$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2107 ac_cache_corrupted=: ;;
2108 ,);;
2109 *)
2110 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2111 # differences in whitespace do not lead to failure.
2112 ac_old_val_w=`echo x $ac_old_val`
2113 ac_new_val_w=`echo x $ac_new_val`
2114 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2116$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2117 ac_cache_corrupted=:
2118 else
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2120$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2121 eval $ac_var=\$ac_old_val
2122 fi
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2124$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2126$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2127 fi;;
2128 esac
2129 # Pass precious variables to config.status.
2130 if test "$ac_new_set" = set; then
2131 case $ac_new_val in
81ecdfbb 2132 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2133 *) ac_arg=$ac_var=$ac_new_val ;;
2134 esac
2135 case " $ac_configure_args " in
2136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2137 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2138 esac
2139 fi
2140done
2141if $ac_cache_corrupted; then
81ecdfbb
RW
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2145$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2146 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2147fi
81ecdfbb
RW
2148## -------------------- ##
2149## Main body of script. ##
2150## -------------------- ##
a0da8069
NN
2151
2152ac_ext=c
a0da8069 2153ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157
2158
2159
2160
c6b750e1
DJ
2161
2162
34a0f3cf 2163
c6b750e1 2164
5b553f7e
RW
2165
2166progname=$0
2167# if PWD already has a value, it is probably wrong.
2168if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2169
2170# Export original configure arguments for use by sub-configures.
2171# Quote arguments with shell meta charatcers.
2172TOPLEVEL_CONFIGURE_ARGUMENTS=
2173set -- "$progname" "$@"
2174for ac_arg
2175do
2176 case "$ac_arg" in
2177 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2178 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2179 # if the argument is of the form -foo=baz, quote the baz part only
2180 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2181 *) ;;
2182 esac
2183 # Add the quoted argument to the list.
2184 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2185done
2186if test "$silent" = yes; then
2187 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2188fi
2189# Remove the initial space we just introduced and, as these will be
2190# expanded by make, quote '$'.
2191TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2192
c6b750e1
DJ
2193
2194# Find the build, host, and target systems.
a0da8069 2195ac_aux_dir=
81ecdfbb
RW
2196for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2197 for ac_t in install-sh install.sh shtool; do
2198 if test -f "$ac_dir/$ac_t"; then
2199 ac_aux_dir=$ac_dir
2200 ac_install_sh="$ac_aux_dir/$ac_t -c"
2201 break 2
2202 fi
2203 done
a0da8069
NN
2204done
2205if test -z "$ac_aux_dir"; then
81ecdfbb 2206 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2207fi
81ecdfbb
RW
2208
2209# These three variables are undocumented and unsupported,
2210# and are intended to be withdrawn in a future Autoconf release.
2211# They can cause serious problems if a builder's source tree is in a directory
2212# whose full name contains unusual characters.
2213ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2214ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2215ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2216
a0da8069 2217
c6b750e1 2218# Make sure we can run config.sub.
81ecdfbb
RW
2219$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2220 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2221
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2223$as_echo_n "checking build system type... " >&6; }
2224if test "${ac_cv_build+set}" = set; then :
2225 $as_echo_n "(cached) " >&6
2226else
2227 ac_build_alias=$build_alias
2228test "x$ac_build_alias" = x &&
2229 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2230test "x$ac_build_alias" = x &&
2231 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2232ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2233 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2234
2235fi
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2237$as_echo "$ac_cv_build" >&6; }
2238case $ac_cv_build in
2239*-*-*) ;;
2240*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2241esac
c6b750e1 2242build=$ac_cv_build
81ecdfbb
RW
2243ac_save_IFS=$IFS; IFS='-'
2244set x $ac_cv_build
2245shift
2246build_cpu=$1
2247build_vendor=$2
2248shift; shift
2249# Remember, the first character of IFS is used to create $*,
2250# except with old shells:
2251build_os=$*
2252IFS=$ac_save_IFS
2253case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2254
a0da8069 2255
c6b750e1
DJ
2256 case ${build_alias} in
2257 "") build_noncanonical=${build} ;;
2258 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2259esac
2260
2261
cac3d6c4 2262
c6b750e1
DJ
2263 case ${host_alias} in
2264 "") host_noncanonical=${build_noncanonical} ;;
2265 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2266esac
2267
cac3d6c4 2268
c6b750e1
DJ
2269
2270 case ${target_alias} in
2271 "") target_noncanonical=${host_noncanonical} ;;
2272 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2273esac
2274
cac3d6c4 2275
c6b750e1
DJ
2276
2277
2278test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2279 test "$program_prefix$program_suffix$program_transform_name" = \
2280 NONENONEs,x,x, &&
c6b750e1 2281 program_transform_name=s,y,y,
cac3d6c4 2282
81ecdfbb
RW
2283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2284$as_echo_n "checking host system type... " >&6; }
2285if test "${ac_cv_host+set}" = set; then :
2286 $as_echo_n "(cached) " >&6
cac3d6c4 2287else
81ecdfbb
RW
2288 if test "x$host_alias" = x; then
2289 ac_cv_host=$ac_cv_build
2290else
2291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2292 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2293fi
c6b750e1
DJ
2294
2295fi
81ecdfbb
RW
2296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2297$as_echo "$ac_cv_host" >&6; }
2298case $ac_cv_host in
2299*-*-*) ;;
2300*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2301esac
c6b750e1 2302host=$ac_cv_host
81ecdfbb
RW
2303ac_save_IFS=$IFS; IFS='-'
2304set x $ac_cv_host
2305shift
2306host_cpu=$1
2307host_vendor=$2
2308shift; shift
2309# Remember, the first character of IFS is used to create $*,
2310# except with old shells:
2311host_os=$*
2312IFS=$ac_save_IFS
2313case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2314
2315
81ecdfbb
RW
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2317$as_echo_n "checking target system type... " >&6; }
2318if test "${ac_cv_target+set}" = set; then :
2319 $as_echo_n "(cached) " >&6
c6b750e1 2320else
81ecdfbb
RW
2321 if test "x$target_alias" = x; then
2322 ac_cv_target=$ac_cv_host
2323else
2324 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2325 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2326fi
c6b750e1 2327
cac3d6c4 2328fi
81ecdfbb
RW
2329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2330$as_echo "$ac_cv_target" >&6; }
2331case $ac_cv_target in
2332*-*-*) ;;
2333*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2334esac
c6b750e1 2335target=$ac_cv_target
81ecdfbb
RW
2336ac_save_IFS=$IFS; IFS='-'
2337set x $ac_cv_target
2338shift
2339target_cpu=$1
2340target_vendor=$2
2341shift; shift
2342# Remember, the first character of IFS is used to create $*,
2343# except with old shells:
2344target_os=$*
2345IFS=$ac_save_IFS
2346case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2347
2348
2349# The aliases save the names the user supplied, while $host etc.
2350# will get canonicalized.
2351test -n "$target_alias" &&
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2353 NONENONEs,x,x, &&
2354 program_prefix=${target_alias}-
81ecdfbb 2355
a0da8069 2356test "$program_prefix" != NONE &&
81ecdfbb 2357 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2358# Use a double $ so make ignores it.
2359test "$program_suffix" != NONE &&
81ecdfbb
RW
2360 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2361# Double any \ or $.
c6b750e1 2362# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2363ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2364program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2365
a0da8069
NN
2366
2367
e5c3f801
NN
2368# Get 'install' or 'install-sh' and its variants.
2369# Find a good install program. We prefer a C program (faster),
2370# so one script is as good as another. But avoid the broken or
2371# incompatible versions:
2372# SysV /etc/install, /usr/sbin/install
2373# SunOS /usr/etc/install
2374# IRIX /sbin/install
2375# AIX /bin/install
c6b750e1 2376# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2377# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2378# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2379# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2380# OS/2's system install, which has a completely different semantic
e5c3f801 2381# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2382# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2384$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2385if test -z "$INSTALL"; then
81ecdfbb
RW
2386if test "${ac_cv_path_install+set}" = set; then :
2387 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2388else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390for as_dir in $PATH
2391do
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2394 # Account for people who put trailing slashes in PATH elements.
2395case $as_dir/ in #((
2396 ./ | .// | /[cC]/* | \
c6b750e1 2397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2398 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2399 /usr/ucb/* ) ;;
2400 *)
2401 # OSF1 and SCO ODT 3.0 have their own names for install.
2402 # Don't use installbsd from OSF since it installs stuff as root
2403 # by default.
2404 for ac_prog in ginstall scoinst install; do
2405 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2406 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2407 if test $ac_prog = install &&
c6b750e1 2408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2409 # AIX install. It has an incompatible calling convention.
2410 :
c6b750e1
DJ
2411 elif test $ac_prog = install &&
2412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2413 # program-specific install script used by HP pwplus--don't use.
2414 :
e5c3f801 2415 else
58c85be7
RW
2416 rm -rf conftest.one conftest.two conftest.dir
2417 echo one > conftest.one
2418 echo two > conftest.two
2419 mkdir conftest.dir
2420 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2421 test -s conftest.one && test -s conftest.two &&
2422 test -s conftest.dir/conftest.one &&
2423 test -s conftest.dir/conftest.two
2424 then
2425 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2426 break 3
2427 fi
e5c3f801
NN
2428 fi
2429 fi
2430 done
c6b750e1
DJ
2431 done
2432 ;;
2433esac
81ecdfbb
RW
2434
2435 done
2436IFS=$as_save_IFS
c6b750e1 2437
58c85be7 2438rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2439
2440fi
2441 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2442 INSTALL=$ac_cv_path_install
e5c3f801 2443 else
58c85be7
RW
2444 # As a last resort, use the slow shell script. Don't cache a
2445 # value for INSTALL within a source directory, because that will
e5c3f801 2446 # break other packages using the cache if that directory is
58c85be7 2447 # removed, or if the value is a relative name.
c6b750e1 2448 INSTALL=$ac_install_sh
e5c3f801
NN
2449 fi
2450fi
81ecdfbb
RW
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2452$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2453
2454# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2455# It thinks the first close brace ends the variable substitution.
2456test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2457
c6b750e1 2458test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2459
2460test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2461
81ecdfbb
RW
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2463$as_echo_n "checking whether ln works... " >&6; }
2464if test "${acx_cv_prog_LN+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
656fdd47
PB
2466else
2467 rm -f conftestdata_t
2468echo >conftestdata_f
2469if ln conftestdata_f conftestdata_t 2>/dev/null
2470then
2471 acx_cv_prog_LN=ln
2472else
2473 acx_cv_prog_LN=no
2474fi
2475rm -f conftestdata_f conftestdata_t
2476
2477fi
2478if test $acx_cv_prog_LN = no; then
2479 LN="cp"
81ecdfbb
RW
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2481$as_echo "no, using $LN" >&6; }
656fdd47
PB
2482else
2483 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2485$as_echo "yes" >&6; }
656fdd47
PB
2486fi
2487
81ecdfbb
RW
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2489$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2490LN_S=$as_ln_s
2491if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493$as_echo "yes" >&6; }
cac3d6c4 2494else
81ecdfbb
RW
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2496$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2497fi
2498
8e957354
PB
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2500$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2501if test "${ac_cv_path_SED+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2503else
2504 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2505 for ac_i in 1 2 3 4 5 6 7; do
2506 ac_script="$ac_script$as_nl$ac_script"
2507 done
2508 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2509 { ac_script=; unset ac_script;}
2510 if test -z "$SED"; then
2511 ac_path_SED_found=false
2512 # Loop through the user's path and test for each of PROGNAME-LIST
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_prog in sed gsed; do
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2521 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2522# Check for GNU ac_path_SED and select it if it is found.
2523 # Check for GNU $ac_path_SED
2524case `"$ac_path_SED" --version 2>&1` in
2525*GNU*)
2526 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2527*)
2528 ac_count=0
2529 $as_echo_n 0123456789 >"conftest.in"
2530 while :
2531 do
2532 cat "conftest.in" "conftest.in" >"conftest.tmp"
2533 mv "conftest.tmp" "conftest.in"
2534 cp "conftest.in" "conftest.nl"
2535 $as_echo '' >> "conftest.nl"
2536 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2538 as_fn_arith $ac_count + 1 && ac_count=$as_val
2539 if test $ac_count -gt ${ac_path_SED_max-0}; then
2540 # Best one so far, save it but keep looking for a better one
2541 ac_cv_path_SED="$ac_path_SED"
2542 ac_path_SED_max=$ac_count
2543 fi
2544 # 10*(2^10) chars as input seems more than enough
2545 test $ac_count -gt 10 && break
2546 done
2547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2548esac
2549
2550 $ac_path_SED_found && break 3
2551 done
2552 done
2553 done
2554IFS=$as_save_IFS
2555 if test -z "$ac_cv_path_SED"; then
2556 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2557 fi
2558else
2559 ac_cv_path_SED=$SED
2560fi
2561
2562fi
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2564$as_echo "$ac_cv_path_SED" >&6; }
2565 SED="$ac_cv_path_SED"
2566 rm -f conftest.sed
2567
2568for ac_prog in gawk mawk nawk awk
2569do
2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
2571set dummy $ac_prog; ac_word=$2
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573$as_echo_n "checking for $ac_word... " >&6; }
2574if test "${ac_cv_prog_AWK+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576else
2577 if test -n "$AWK"; then
2578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_AWK="$ac_prog"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591done
2592 done
2593IFS=$as_save_IFS
2594
2595fi
2596fi
2597AWK=$ac_cv_prog_AWK
2598if test -n "$AWK"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2600$as_echo "$AWK" >&6; }
2601else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603$as_echo "no" >&6; }
2604fi
2605
2606
2607 test -n "$AWK" && break
2608done
2609
e5c3f801 2610
252b5132 2611### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2612### If we are on Windows, search for the shell. This will permit people
2613### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2614### without also having to set CONFIG_SHELL. This code will work when
2615### using bash, which sets OSTYPE.
2616case "${OSTYPE}" in
2617*win32*)
a0da8069
NN
2618 if test x${CONFIG_SHELL} = x ; then
2619 if test ! -f /bin/sh ; then
2620 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2621 CONFIG_SHELL=${SHELL}
2622 export CONFIG_SHELL
2623 else
2624 for prog in sh sh.exe bash bash.exe; do
2625 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2626 for dir in $PATH; do
2627 test -z "$dir" && dir=.
2628 if test -f $dir/$prog; then
2629 CONFIG_SHELL=$dir/$prog
2630 export CONFIG_SHELL
2631 break
2632 fi
2633 done
2634 IFS="$save_ifs"
2635 test -n "${CONFIG_SHELL}" && break
2636 done
2637 fi
2638 fi
2639 fi
2640 ;;
2641esac
2642
2643config_shell=${CONFIG_SHELL-/bin/sh}
2644
a0da8069 2645moveifchange=${srcdir}/move-if-change
252b5132 2646
0fdbe983
DJ
2647srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2648
2649# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2650# a relative path.
2651if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2652 INSTALL="${srcpwd}/install-sh -c"
2653fi
2654
a0da8069
NN
2655# Set srcdir to "." if that's what it is.
2656# This is important for multilib support.
2657pwd=`${PWDCMD-pwd}`
a0da8069
NN
2658if test "${pwd}" = "${srcpwd}" ; then
2659 srcdir=.
252b5132
RH
2660fi
2661
a0da8069 2662topsrcdir=$srcpwd
252b5132 2663
a0da8069 2664extra_host_args=
afefada0 2665
a0da8069
NN
2666### To add a new directory to the tree, first choose whether it is a target
2667### or a host dependent tool. Then put it into the appropriate list
2668### (library or tools, host or target), doing a dependency sort.
252b5132 2669
c6b750e1 2670# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2671# configdirs, or target_configdirs; see the serialization section below.
252b5132 2672
c6b750e1
DJ
2673# Dependency sorting is only needed when *configuration* must be done in
2674# a particular order. In all cases a dependency should be specified in
a0da8069 2675# the Makefile, whether or not it's implicitly specified here.
252b5132 2676
a0da8069
NN
2677# Double entries in build_configdirs, configdirs, or target_configdirs may
2678# cause circular dependencies and break everything horribly.
252b5132 2679
6a9cf61e
PB
2680# these library is used by various programs built for the build
2681# environment
2682#
2683build_libs="build-libiberty"
2684
2685# these tools are built for the build environment
ee025550 2686build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2687
a0da8069
NN
2688# these libraries are used by various programs built for the host environment
2689#
1f53ca9a 2690host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2691
a0da8069
NN
2692# these tools are built for the host environment
2693# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2694# know that we are building the simulator.
2695# binutils, gas and ld appear in that order because it makes sense to run
2696# "make check" in that particular order.
e6de499b 2697# If --enable-gold is used, "gold" may replace "ld".
f9806fa5 2698host_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
2699
2700# libgcj represents the runtime libraries only used by gcj.
2701libgcj="target-libffi \
a0da8069
NN
2702 target-zlib \
2703 target-qthreads \
2704 target-libjava"
2705
2706# these libraries are built for the target environment, and are built after
2707# the host libraries and the host tools (which may be a cross compiler)
2708#
b1299c4e
DJ
2709target_libraries="target-libgcc \
2710 target-libiberty \
a0da8069
NN
2711 target-libgloss \
2712 target-newlib \
cff87f51 2713 target-libgomp \
b9459e83 2714 target-libstdc++-v3 \
4b1cb4fe 2715 target-libmudflap \
bb780410 2716 target-libssp \
e552509b 2717 target-libquadmath \
4b1cb4fe 2718 target-libgfortran \
4f0ef2d8 2719 target-boehm-gc \
83326456 2720 ${libgcj} \
a2592b1b 2721 target-libobjc \
e552509b
ILT
2722 target-libada \
2723 target-libgo"
a0da8069 2724
9c14acb8
NN
2725# these tools are built using the target libraries, and are intended to
2726# run only in the target environment
a0da8069 2727#
9c14acb8 2728# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2729# list belongs in this list. those programs are also very likely
2730# candidates for the "native_only" list which follows
2731#
a3dd767d 2732target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2733
a0da8069 2734################################################################################
252b5132 2735
a0da8069
NN
2736## All tools belong in one of the four categories, and are assigned above
2737## We assign ${configdirs} this way to remove all embedded newlines. This
2738## is important because configure will choke if they ever get through.
2739## ${configdirs} is directories we build using the host tools.
2740## ${target_configdirs} is directories we build using the target tools.
a0da8069 2741configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2742target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2743build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2744
9cc8ae67
PB
2745
2746
a0da8069 2747################################################################################
252b5132 2748
a0da8069 2749srcname="gnu development package"
252b5132 2750
a0da8069
NN
2751# This gets set non-empty for some net releases of packages.
2752appdirs=""
252b5132 2753
a0da8069
NN
2754# Define is_cross_compiler to save on calls to 'test'.
2755is_cross_compiler=
2756if test x"${host}" = x"${target}" ; then
2757 is_cross_compiler=no
252b5132 2758else
a0da8069 2759 is_cross_compiler=yes
c6b750e1 2760fi
252b5132 2761
9175bfc0 2762# Find the build and target subdir names.
dd12c3a8 2763
66a79c16
DJ
2764# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2765# have matching libraries, they should use host libraries: Makefile.tpl
2766# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2767# However, they still use the build modules, because the corresponding
2768# host modules (e.g. bison) are only built for the host when bootstrap
2769# finishes. So:
2770# - build_subdir is where we find build modules, and never changes.
2771# - build_libsubdir is where we find build libraries, and can be overridden.
2772
2773# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2774build_subdir="build-${build_noncanonical}"
c6b750e1 2775
81ecdfbb
RW
2776# Check whether --with-build-libsubdir was given.
2777if test "${with_build_libsubdir+set}" = set; then :
2778 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2779else
2780 build_libsubdir="$build_subdir"
81ecdfbb
RW
2781fi
2782
b00612cc
PB
2783# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2784if ( test $srcdir = . && test -d gcc ) \
2785 || test -d $srcdir/../host-${host_noncanonical}; then
2786 host_subdir="host-${host_noncanonical}"
2787else
2788 host_subdir=.
2789fi
dd12c3a8
NN
2790# No prefix.
2791target_subdir=${target_noncanonical}
c6b750e1 2792
2fd0b40b
RW
2793# Be sure to cover against remnants of an in-tree build.
2794if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2795 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2796Use a pristine source tree when building in a separate tree" "$LINENO" 5
2797fi
252b5132 2798
a0da8069
NN
2799# Skipdirs are removed silently.
2800skipdirs=
2801# Noconfigdirs are removed loudly.
2802noconfigdirs=""
252b5132 2803
a0da8069
NN
2804use_gnu_ld=
2805# Make sure we don't let GNU ld be added if we didn't want it.
2806if test x$with_gnu_ld = xno ; then
2807 use_gnu_ld=no
93f9b408 2808 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2809fi
2810
a0da8069
NN
2811use_gnu_as=
2812# Make sure we don't let GNU as be added if we didn't want it.
2813if test x$with_gnu_as = xno ; then
2814 use_gnu_as=no
2815 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2816fi
2817
700d40ca
ILT
2818use_included_zlib=
2819# Make sure we don't let ZLIB be added if we didn't want it.
2820if test x$with_system_zlib = xyes ; then
2821 use_included_zlib=no
2822 noconfigdirs="$noconfigdirs zlib"
2823fi
2824
c6b750e1 2825# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2826# it's not even worth trying to configure, much less build, that tool.
252b5132 2827
a0da8069
NN
2828case ${with_x} in
2829 yes | "") ;; # the default value for this tree is that X11 is available
2830 no)
675c6968 2831 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2832 # We won't be able to build gdbtk without X.
c6b750e1 2833 enable_gdbtk=no
a0da8069
NN
2834 ;;
2835 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2836esac
252b5132 2837
a0da8069 2838# Some tools are only suitable for building in a "native" situation.
c6b750e1 2839# Remove these if host!=target.
701628f5 2840native_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 2841
a0da8069
NN
2842# Similarly, some are only suitable for cross toolchains.
2843# Remove these if host=target.
2844cross_only="target-libgloss target-newlib target-opcodes"
2845
2846case $is_cross_compiler in
2847 no) skipdirs="${skipdirs} ${cross_only}" ;;
2848 yes) skipdirs="${skipdirs} ${native_only}" ;;
2849esac
252b5132 2850
a0da8069
NN
2851# If both --with-headers and --with-libs are specified, default to
2852# --without-newlib.
32be62b5
RS
2853if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2854 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2855 if test x"${with_newlib}" = x ; then
2856 with_newlib=no
2857 fi
252b5132
RH
2858fi
2859
a0da8069
NN
2860# Recognize --with-newlib/--without-newlib.
2861case ${with_newlib} in
2862 no) skipdirs="${skipdirs} target-newlib" ;;
2863 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2864esac
252b5132 2865
c7791212
NC
2866# Handle --enable-gold, --enable-ld.
2867# --disable-gold [--enable-ld]
2868# Build only ld. Default option.
d3b50760
L
2869# --enable-gold [--enable-ld]
2870# Build both gold and ld. Install gold as "ld.gold", install ld
2871# as "ld.bfd" and "ld".
2872# --enable-gold=default [--enable-ld]
c7791212
NC
2873# Build both gold and ld. Install gold as "ld.gold" and "ld",
2874# install ld as "ld.bfd".
2875# --enable-gold[=default] --disable-ld
2876# Build only gold, which is then installed as both "ld.gold" and "ld".
2877# --enable-gold --enable-ld=default
d3b50760
L
2878# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2879# and ld.bfd).
c7791212
NC
2880# In other words, ld is default
2881# --enable-gold=default --enable-ld=default
2882# Error.
2883
2884default_ld=
81ecdfbb
RW
2885# Check whether --enable-gold was given.
2886if test "${enable_gold+set}" = set; then :
2887 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2888else
2889 ENABLE_GOLD=no
81ecdfbb
RW
2890fi
2891
c7791212
NC
2892case "${ENABLE_GOLD}" in
2893 yes|default)
e6de499b
NC
2894 # Check for ELF target.
2895 is_elf=no
2896 case "${target}" in
2897 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2898 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2899 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2900 case "${target}" in
2901 *-*-linux*aout* | *-*-linux*oldld*)
2902 ;;
2903 *)
2904 is_elf=yes
2905 ;;
2906 esac
2907 esac
2908
2909 if test "$is_elf" = "yes"; then
2910 # Check for target supported by gold.
93f9b408 2911 case "${target}" in
e6de499b 2912 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
c7791212
NC
2913 configdirs="$configdirs gold"
2914 if test x${ENABLE_GOLD} = xdefault; then
2915 default_ld=gold
2916 fi
e6de499b 2917 ENABLE_GOLD=yes
93f9b408
ILT
2918 ;;
2919 esac
e6de499b
NC
2920 fi
2921 ;;
2922 no)
2923 ;;
2924 *)
2925 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2926 ;;
c7791212
NC
2927esac
2928
2929# Check whether --enable-ld was given.
2930if test "${enable_ld+set}" = set; then :
2931 enableval=$enable_ld; ENABLE_LD=$enableval
2932else
2933 ENABLE_LD=yes
2934fi
2935
2936
2937case "${ENABLE_LD}" in
2938 default)
d3b50760 2939 if test x${default_ld} != x; then
c7791212
NC
2940 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2941 fi
2942 ;;
2943 yes)
2944 ;;
2945 no)
2946 if test x${ENABLE_GOLD} != xyes; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2948$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2949 fi
2950 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2951 ;;
2952 *)
2953 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2954 ;;
2955esac
93f9b408 2956
a0da8069 2957# Configure extra directories which are host specific
252b5132 2958
a0da8069
NN
2959case "${host}" in
2960 *-cygwin*)
2961 configdirs="$configdirs libtermcap" ;;
2962esac
252b5132 2963
59f7ec45
HPN
2964# A target can indicate whether a language isn't supported for some reason.
2965# Only spaces may be used in this macro; not newlines or tabs.
2966unsupported_languages=
2967
c6b750e1 2968# Remove more programs from consideration, based on the host or
a0da8069
NN
2969# target this usually means that a port of the program doesn't
2970# exist yet.
252b5132 2971
a0da8069
NN
2972case "${host}" in
2973 hppa*64*-*-*)
2974 noconfigdirs="$noconfigdirs byacc"
2975 ;;
ec11bdc6 2976 i[3456789]86-*-vsta)
675c6968 2977 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2978 ;;
ec11bdc6 2979 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2980 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2981 ;;
2d1e8239
NC
2982 x86_64-*-mingw*)
2983 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2984 ;;
ec11bdc6 2985 i[3456789]86-*-mingw32*)
675c6968 2986 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2987 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2988 ;;
ec11bdc6 2989 i[3456789]86-*-beos*)
675c6968 2990 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2991 ;;
a0da8069 2992 *-*-cygwin*)
a92834c8 2993 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2994 ;;
2995 *-*-netbsd*)
a92834c8 2996 noconfigdirs="$noconfigdirs rcs"
a0da8069 2997 ;;
a0da8069 2998 powerpc-*-beos*)
675c6968 2999 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 3000 ;;
a0da8069 3001esac
252b5132 3002
4b1cb4fe 3003
89a1e9c3
PB
3004# Check whether --enable-libquadmath was given.
3005if test "${enable_libquadmath+set}" = set; then :
3006 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3007else
3008 ENABLE_LIBQUADMATH=yes
3009fi
3010
3011if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3012 noconfigdirs="$noconfigdirs target-libquadmath"
3013fi
3014
3015
3016# Check whether --enable-libquadmath-support was given.
3017if test "${enable_libquadmath_support+set}" = set; then :
3018 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3019else
3020 ENABLE_LIBQUADMATH_SUPPORT=yes
3021fi
3022
3023enable_libquadmath_support=
3024if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3025 enable_libquadmath_support=no
3026fi
3027
3028
81ecdfbb
RW
3029# Check whether --enable-libada was given.
3030if test "${enable_libada+set}" = set; then :
3031 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3032else
3033 ENABLE_LIBADA=yes
81ecdfbb
RW
3034fi
3035
a2592b1b 3036if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3037 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3038fi
3039
81ecdfbb
RW
3040# Check whether --enable-libssp was given.
3041if test "${enable_libssp+set}" = set; then :
3042 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3043else
3044 ENABLE_LIBSSP=yes
81ecdfbb
RW
3045fi
3046
5f128533 3047
a0da8069
NN
3048# Save it here so that, even in case of --enable-libgcj, if the Java
3049# front-end isn't enabled, we still get libgcj disabled.
3050libgcj_saved=$libgcj
3051case $enable_libgcj in
3052yes)
3053 # If we reset it here, it won't get added to noconfigdirs in the
3054 # target-specific build rules, so it will be forcibly enabled
3055 # (unless the Java language itself isn't enabled).
3056 libgcj=
3057 ;;
3058no)
3059 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3060 # Don't disable libffi, though, other languages use it.
3061 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3062 # Clear libgcj_saved so that even if java is enabled libffi won't be
3063 # built.
3064 libgcj_saved=
a0da8069
NN
3065 ;;
3066esac
252b5132 3067
4b1cb4fe 3068
a6df5a19
PB
3069# Disable libmudflap on some systems.
3070if test x$enable_libmudflap = x ; then
3e707e94 3071 case "${target}" in
29383458 3072 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3073 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3074 ;;
3075 *-*-freebsd*)
3076 # Enable libmudflap by default in FreeBSD.
3077 ;;
3078 *)
3079 # Disable it by default everywhere else.
3080 noconfigdirs="$noconfigdirs target-libmudflap"
3081 ;;
3082 esac
a6df5a19 3083fi
4b1cb4fe 3084
a6df5a19
PB
3085# Disable libgomp on non POSIX hosted systems.
3086if test x$enable_libgomp = x ; then
b3ded179
PB
3087 # Enable libgomp by default on hosted POSIX systems.
3088 case "${target}" in
29383458 3089 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
3090 ;;
3091 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3092 ;;
64ce424c 3093 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3094 ;;
3095 *-*-darwin* | *-*-aix*)
3096 ;;
3097 *)
3098 noconfigdirs="$noconfigdirs target-libgomp"
3099 ;;
3100 esac
a6df5a19 3101fi
b3ded179 3102
691bb5a1
DD
3103# Default libgloss CPU subdirectory.
3104libgloss_dir="$target_cpu"
4b1cb4fe 3105
a0da8069
NN
3106case "${target}" in
3107 *-*-chorusos)
54d1c879 3108 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3109 ;;
24741ab2 3110 powerpc-*-darwin*)
9d39db92 3111 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3112 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3113 ;;
85bd1942
TG
3114 i[3456789]86-*-darwin*)
3115 noconfigdirs="$noconfigdirs ld gprof"
3116 noconfigdirs="$noconfigdirs sim target-rda"
3117 ;;
e8a5fa9c 3118 x86_64-*-darwin[912]*)
652dec25
TG
3119 noconfigdirs="$noconfigdirs ld gas gprof"
3120 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3121 ;;
04d1ab34 3122 *-*-darwin*)
d320aacb 3123 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3124 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3125 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3126 ;;
a0da8069 3127 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 3128 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3129 ;;
de0b4a87 3130 *-*-freebsd*)
4b1cb4fe
DD
3131 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3132 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3133 && test -f /usr/local/include/gmp.h; then
3134 with_gmp=/usr/local
3135 fi
3136
3137 # Skip some stuff that's unsupported on some FreeBSD configurations.
3138 case "${target}" in
3139 i*86-*-*) ;;
3140 alpha*-*-*) ;;
143754cd 3141 x86_64-*-*) ;;
4b1cb4fe 3142 *)
54d1c879 3143 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3144 ;;
3145 esac
3146 ;;
f8a495c8
NC
3147 *-*-kaos*)
3148 # Remove unsupported stuff on all kaOS configurations.
54d1c879 3149 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
3150 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3151 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3152 noconfigdirs="$noconfigdirs target-libgloss"
3153 ;;
a0da8069
NN
3154 *-*-netbsd*)
3155 # Skip some stuff on all NetBSD configurations.
3156 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3157
3158 # Skip some stuff that's unsupported on some NetBSD configurations.
3159 case "${target}" in
3160 i*86-*-netbsdelf*) ;;
5b474aa8 3161 arm*-*-netbsdelf*) ;;
a0da8069 3162 *)
54d1c879 3163 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3164 ;;
3165 esac
3166 ;;
2a3124ca 3167 *-*-netware*)
54d1c879 3168 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
3169 ;;
3170 *-*-rtems*)
a009f2e7 3171 skipdirs="${skipdirs} target-libiberty"
54d1c879 3172 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3173 ;;
1587117a
EC
3174 # The tpf target doesn't support gdb yet.
3175 *-*-tpf*)
54d1c879 3176 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 3177 ;;
c1968181 3178 *-*-uclinux*)
54d1c879 3179 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3180 ;;
a0da8069 3181 *-*-vxworks*)
54d1c879 3182 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3183 ;;
3184 alpha*-dec-osf*)
3185 # ld works, but does not support shared libraries.
3186 # newlib is not 64 bit ready. I'm not sure about fileutils.
3187 # gas doesn't generate exception information.
3188 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3189 ;;
3190 alpha*-*-*vms*)
d594eacc 3191 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3192 ;;
3193 alpha*-*-linux*)
3194 # newlib is not 64 bit ready
3195 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3196 ;;
a0da8069
NN
3197 alpha*-*-*)
3198 # newlib is not 64 bit ready
54d1c879 3199 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3200 ;;
4a18bd6b 3201 am33_2.0-*-linux*)
54d1c879 3202 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3203 ;;
a0da8069 3204 sh-*-linux*)
54d1c879 3205 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3206 ;;
a0da8069 3207 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3208 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3209 noconfigdirs="$noconfigdirs target-examples"
3210 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 3211 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3212 noconfigdirs="$noconfigdirs expect dejagnu"
3213 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3214 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
3215 noconfigdirs="$noconfigdirs target-newlib"
3216 case "${host}" in
3217 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 3218 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
3219 ;;
3220 esac
691bb5a1 3221 libgloss_dir=wince
a0da8069
NN
3222 ;;
3223 arc-*-*)
782cb41f 3224 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3225 ;;
93cc359e 3226 arm-*-coff)
54d1c879 3227 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3228 libgloss_dir=arm
a0da8069 3229 ;;
93cc359e 3230 arm-*-elf* | arm*-*-eabi* )
a0da8069 3231 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 3232 libgloss_dir=arm
a0da8069 3233 ;;
bd70a46f 3234 arm*-*-linux-gnueabi)
6d18b86b 3235 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
3236 case ${with_newlib} in
3237 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3238 esac
691bb5a1 3239 libgloss_dir=arm
bd70a46f 3240 ;;
df4a6958 3241 arm*-*-symbianelf*)
54d1c879 3242 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3243 libgloss_dir=arm
df4a6958 3244 ;;
a0da8069 3245 arm-*-pe*)
54d1c879 3246 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3247 ;;
a0da8069 3248 arm-*-riscix*)
54d1c879 3249 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3250 ;;
3251 avr-*-*)
266df637 3252 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3253 ;;
376a0e54 3254 bfin-*-*)
df51e4e1 3255 unsupported_languages="$unsupported_languages java"
7837304f 3256 noconfigdirs="$noconfigdirs target-boehm-gc"
3cf3372e 3257 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3258 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3259 fi
3260 ;;
a0da8069 3261 c4x-*-* | tic4x-*-*)
54d1c879 3262 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3263 ;;
3264 c54x*-*-* | tic54x-*-*)
54d1c879 3265 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3266 ;;
52310858
NC
3267 cr16-*-*)
3268 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3269 ;;
c7e66c6d 3270 cris-*-* | crisv32-*-*)
59f7ec45 3271 unsupported_languages="$unsupported_languages java"
c7e66c6d 3272 case "${target}" in
2faa2958 3273 *-*-aout)
096f7d00 3274 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3275 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
d357cef7
HPN
3276 *-*-elf) # See PR46792 regarding target-libffi.
3277 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3278 *-*-linux*)
5e818318 3279 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3280 *)
096f7d00 3281 unsupported_languages="$unsupported_languages fortran"
54d1c879 3282 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3283 esac
691bb5a1 3284 libgloss_dir=cris
a0da8069
NN
3285 ;;
3286 d10v-*-*)
54d1c879 3287 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3288 ;;
3289 d30v-*-*)
54d1c879 3290 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3291 ;;
3292 fr30-*-elf*)
54d1c879 3293 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3294 ;;
3295 frv-*-*)
54d1c879 3296 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3297 ;;
20135e4c
NC
3298 moxie-*-*)
3299 noconfigdirs="$noconfigdirs ${libgcj}"
3300 noconfigdirs="$noconfigdirs gprof"
3301 ;;
a0da8069 3302 h8300*-*-*)
54d1c879 3303 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3304 ;;
3305 h8500-*-*)
54d1c879 3306 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3307 ;;
caeba88f 3308 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3309 ;;
93cc359e 3310 hppa*64*-*-linux*)
a0da8069
NN
3311 # In this case, it's because the hppa64-linux target is for
3312 # the kernel only at this point and has no libc, and thus no
3313 # headers, crt*.o, etc., all of which are needed by these.
3314 noconfigdirs="$noconfigdirs target-zlib"
3315 ;;
f0ff0f90 3316 hppa*-*-linux*)
5dcac624 3317 ;;
a0da8069 3318 hppa*-*-*elf* | \
a0da8069
NN
3319 hppa*-*-lites* | \
3320 hppa*-*-openbsd* | \
3321 hppa*64*-*-*)
54d1c879 3322 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3323 ;;
3324 hppa*-hp-hpux11*)
3325 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3326 ;;
691bb5a1
DD
3327 hppa*-*-pro*)
3328 libgloss_dir=pa
3329 ;;
a0da8069
NN
3330 hppa*-*-*)
3331 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3332 # build on HP-UX 10.20.
54d1c879 3333 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3334 ;;
b07c2aad 3335 i960-*-*)
54d1c879 3336 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3337 ;;
a0da8069
NN
3338 ia64*-*-elf*)
3339 # No gdb support yet.
675c6968 3340 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3341 ;;
3342 ia64*-**-hpux*)
92c9a463
JB
3343 # No ld support yet.
3344 noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
a0da8069 3345 ;;
19e99079
NC
3346 ia64*-*-*vms*)
3347 # No gdb or ld support yet.
3348 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3349 ;;
ec11bdc6 3350 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3351 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3352 libgloss_dir=i386
a0da8069 3353 ;;
ec11bdc6 3354 i[3456789]86-*-linux*)
a0da8069
NN
3355 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3356 # not build java stuff by default.
3357 case "${target}" in
3358 *-*-*libc1*)
54d1c879 3359 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3360 esac
3361
3362 # This section makes it possible to build newlib natively on linux.
3363 # If we are using a cross compiler then don't configure newlib.
3364 if test x${is_cross_compiler} != xno ; then
bba45b8b 3365 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3366 fi
3367 noconfigdirs="$noconfigdirs target-libgloss"
3368 # If we are not using a cross compiler, do configure newlib.
3369 # Note however, that newlib will only be configured in this situation
3370 # if the --with-newlib option has been given, because otherwise
3371 # 'target-newlib' will appear in skipdirs.
3372 ;;
1f53ca9a
AO
3373 i[3456789]86-w64-mingw*)
3374 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3375 ;;
3376 i[3456789]86-*-mingw*)
45055374
CV
3377 target_configdirs="$target_configdirs target-winsup"
3378 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3379 ;;
2d1e8239 3380 x86_64-*-mingw*)
2d1e8239 3381 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3382 ;;
a0da8069
NN
3383 *-*-cygwin*)
3384 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3385 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3386 # always build newlib if winsup directory is present.
45055374 3387 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3388 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3389 elif test -d "$srcdir/newlib"; then
45055374 3390 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3391 fi
c6b750e1 3392 ;;
f0ff0f90 3393 i[3456789]86-*-interix* )
caeba88f 3394 ;;
ec11bdc6 3395 i[3456789]86-*-pe)
782cb41f 3396 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3397 ;;
ec11bdc6 3398 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3399 # The linker does not yet know about weak symbols in COFF,
3400 # and is not configured to handle mixed ELF and COFF.
54d1c879 3401 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3402 ;;
ec11bdc6 3403 i[3456789]86-*-sco*)
54d1c879 3404 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3405 ;;
ec11bdc6 3406 i[3456789]86-*-solaris2*)
a0da8069
NN
3407 noconfigdirs="$noconfigdirs target-libgloss"
3408 ;;
ec11bdc6 3409 i[3456789]86-*-sysv4*)
54d1c879 3410 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3411 ;;
ec11bdc6 3412 i[3456789]86-*-beos*)
54d1c879 3413 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3414 ;;
b59bea8a 3415 i[3456789]86-*-rdos*)
2429c060
PB
3416 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3417 ;;
b07c2aad 3418 m32r-*-*)
54d1c879 3419 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3420 ;;
a0da8069 3421 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
782cb41f 3422 noconfigdirs="$noconfigdirs target-libiberty"
691bb5a1 3423 libgloss_dir=m68hc11
a0da8069
NN
3424 ;;
3425 m68k-*-elf*)
54d1c879 3426 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3427 ;;
3428 m68k-*-coff*)
54d1c879 3429 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3430 ;;
691bb5a1
DD
3431 m68*-*-* | fido-*-*)
3432 libgloss_dir=m68k
3433 ;;
a0da8069 3434 mmix-*-*)
59f7ec45 3435 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3436 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3437 ;;
3438 mn10200-*-*)
54d1c879 3439 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3440 ;;
3441 mn10300-*-*)
54d1c879 3442 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3443 ;;
4970f871 3444 mt-*-*)
cdb9b172
AH
3445 noconfigdirs="$noconfigdirs sim"
3446 ;;
887ebfb4
RW
3447 picochip-*-*)
3448 noconfigdirs="$noconfigdirs target-libiberty"
3449 ;;
a0da8069
NN
3450 powerpc-*-aix*)
3451 # copied from rs6000-*-* entry
e8a5fa9c 3452 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069 3453 ;;
93cc359e 3454 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3455 target_configdirs="$target_configdirs target-winsup"
54d1c879 3456 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3457 # always build newlib.
3458 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3459 ;;
3460 # This is temporary until we can link against shared libraries
3461 powerpcle-*-solaris*)
54d1c879 3462 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3463 libgloss_dir=rs6000
a0da8069
NN
3464 ;;
3465 powerpc-*-beos*)
54d1c879 3466 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3467 ;;
a0da8069 3468 powerpc-*-eabi)
54d1c879 3469 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3470 libgloss_dir=rs6000
caeba88f
AL
3471 ;;
3472 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3473 libgloss_dir=rs6000
a0da8069 3474 ;;
a0da8069 3475 rs6000-*-lynxos*)
54d1c879 3476 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3477 ;;
3478 rs6000-*-aix*)
e8a5fa9c 3479 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3480 ;;
3481 rs6000-*-*)
54d1c879 3482 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3483 ;;
3484 m68k-apollo-*)
54d1c879 3485 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3486 ;;
25a07265 3487 microblaze*)
29821356 3488 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
25a07265 3489 ;;
5bd8be13
RS
3490 mips*-sde-elf*)
3491 skipdirs="$skipdirs target-libiberty"
3492 noconfigdirs="$noconfigdirs ${libgcj}"
3493 if test x$with_newlib = xyes; then
3494 noconfigdirs="$noconfigdirs gprof"
3495 fi
3496 libgloss_dir=mips
3497 ;;
a0da8069 3498 mips*-*-irix5*)
54d1c879 3499 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3500 ;;
3501 mips*-*-irix6*)
a0da8069
NN
3502 # Linking libjava exceeds command-line length limits on at least
3503 # IRIX 6.2, but not on IRIX 6.5.
3504 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3505 # <oldham@codesourcery.com>
54d1c879 3506 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3507 ;;
a0da8069 3508 mips*-*-bsd*)
54d1c879 3509 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3510 ;;
a0da8069
NN
3511 mips*-*-linux*)
3512 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3513 ;;
3514 mips*-*-*)
54d1c879 3515 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3516 libgloss_dir=mips
a0da8069
NN
3517 ;;
3518 romp-*-*)
54d1c879 3519 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3520 ;;
dbf85af7 3521 sh-*-* | sh64-*-*)
a0da8069 3522 case "${host}" in
ec11bdc6
DD
3523 i[3456789]86-*-vsta) ;; # don't add gprof back in
3524 i[3456789]86-*-go32*) ;; # don't add gprof back in
3525 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3526 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3527 esac
e8a5fa9c
RW
3528 case "${target}" in
3529 sh*-*-elf)
3530 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3531 *)
3532 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3533 esac
a0da8069 3534 ;;
691bb5a1
DD
3535 sparclet-*-aout* | sparc86x-*-*)
3536 libgloss_dir=sparc
3537 ;;
a0da8069 3538 sparc-*-elf*)
54d1c879 3539 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3540 ;;
3541 sparc64-*-elf*)
54d1c879 3542 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3543 libgloss_dir=sparc
a0da8069
NN
3544 ;;
3545 sparclite-*-*)
54d1c879 3546 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3547 libgloss_dir=sparc
a0da8069
NN
3548 ;;
3549 sparc-*-sunos4*)
54d1c879 3550 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3551 if test x${is_cross_compiler} != xno ; then
3552 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3553 else
3554 use_gnu_ld=no
3555 fi
3556 ;;
e3c770b1 3557 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3558 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3559 ;;
a0da8069
NN
3560 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3561 ;;
619a3713
JM
3562 tic6x-*-*)
3563 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3564 ;;
a0da8069 3565 v810-*-*)
54d1c879 3566 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069 3567 ;;
1cd986c5
NC
3568 v850*-*-*)
3569 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3570 ;;
3571 vax-*-vms)
54d1c879 3572 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3573 ;;
3574 vax-*-*)
54d1c879 3575 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3576 ;;
8b66833e 3577 xtensa*-*-*)
54d1c879 3578 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3579 ;;
a0da8069 3580 ip2k-*-*)
54d1c879 3581 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3582 ;;
29383458 3583 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3584 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3585 ;;
3586 *-*-lynxos*)
54d1c879 3587 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3588 ;;
a0da8069 3589 *-*-*)
54d1c879 3590 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3591 ;;
3592esac
252b5132 3593
a0da8069
NN
3594# If we aren't building newlib, then don't build libgloss, since libgloss
3595# depends upon some newlib header files.
3596case "${noconfigdirs}" in
3597 *target-libgloss*) ;;
3598 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3599esac
3600
a0da8069
NN
3601# Work in distributions that contain no compiler tools, like Autoconf.
3602tentative_cc=""
3603host_makefile_frag=/dev/null
3604if test -d ${srcdir}/config ; then
3605case "${host}" in
3606 m68k-hp-hpux*)
3607 # Avoid "too much defining" errors from HPUX compiler.
3608 tentative_cc="cc -Wp,-H256000"
3609 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3610 # If it's HP/UX ar, this should be harmless.
3611 RANLIB="ar ts"
3612 ;;
3613 m68k-apollo-sysv*)
3614 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3615 ;;
3616 m68k-apollo-bsd*)
3617 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3618 # chokes on bfd, the compiler won't let you assign integers to enums, and
3619 # other problems. Defining CC to gcc is a questionable way to say "don't use
3620 # the apollo compiler" (the preferred version of GCC could be called cc,
3621 # or whatever), but I'm not sure leaving CC as cc is any better...
3622 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3623 # Used to have BISON=yacc.
3624 tentative_cc=gcc
3625 ;;
3626 m88k-dg-dgux*)
3627 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3628 ;;
3629 m88k-harris-cxux*)
3630 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3631 tentative_cc="cc -Xa"
3632 host_makefile_frag="config/mh-cxux"
3633 ;;
3634 m88k-motorola-sysv*)
3635 ;;
3636 mips*-dec-ultrix*)
3637 tentative_cc="cc -Wf,-XNg1000"
3638 host_makefile_frag="config/mh-decstation"
3639 ;;
3640 mips*-nec-sysv4*)
3641 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3642 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3643 host_makefile_frag="config/mh-necv4"
3644 ;;
3645 mips*-sgi-irix4*)
3646 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3647 # environment. Also bump switch table size so that cp-parse will
3648 # compile. Bump string length limit so linker builds.
3649 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3650 ;;
3651 mips*-*-sysv4*)
3652 host_makefile_frag="config/mh-sysv4"
3653 ;;
3654 mips*-*-sysv*)
3655 # This is for a MIPS running RISC/os 4.52C.
3656
3657 # This is needed for GDB, but needs to be in the top-level make because
3658 # if a library is compiled with the bsd headers and gets linked with the
3659 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3660 # a different size).
3661 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3662 # known except to select the sysv environment. Could we use /proc instead?
3663 # These "sysv environments" and "bsd environments" often end up being a pain.
3664 #
3665 # This is not part of CFLAGS because perhaps not all C compilers have this
3666 # option.
3667 tentative_cc="cc -systype sysv"
3668 ;;
3669 i370-ibm-opened*)
3670 tentative_cc="c89"
3671 ;;
ec11bdc6 3672 i[3456789]86-*-sysv5*)
a0da8069
NN
3673 host_makefile_frag="config/mh-sysv5"
3674 ;;
ec11bdc6 3675 i[3456789]86-*-dgux*)
a0da8069
NN
3676 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3677 host_makefile_frag="config/mh-dgux386"
3678 ;;
ec11bdc6 3679 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3680 # The MetaWare compiler will generate a copyright message unless you
3681 # turn it off by adding the -Hnocopyr flag.
3682 tentative_cc="cc -Hnocopyr"
3683 ;;
ec11bdc6 3684 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3685 # for an NCR 3000 (i486/SVR4) system.
3686 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3687 # This compiler not only emits obnoxious copyright messages every time
3688 # you run it, but it chokes and dies on a whole bunch of GNU source
3689 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3690 tentative_cc="/usr/ccs/ATT/cc"
3691 host_makefile_frag="config/mh-ncr3000"
3692 ;;
ec11bdc6 3693 i[3456789]86-*-sco3.2v5*)
a0da8069 3694 ;;
ec11bdc6 3695 i[3456789]86-*-sco*)
a0da8069
NN
3696 # The native C compiler botches some simple uses of const. Unfortunately,
3697 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3698 tentative_cc="cc -Dconst="
3699 host_makefile_frag="config/mh-sco"
3700 ;;
ec11bdc6 3701 i[3456789]86-*-udk*)
a0da8069
NN
3702 host_makefile_frag="config/mh-sysv5"
3703 ;;
ec11bdc6 3704 i[3456789]86-*-solaris2*)
a0da8069
NN
3705 host_makefile_frag="config/mh-sysv4"
3706 ;;
ec11bdc6 3707 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3708 host_makefile_frag="config/mh-djgpp"
3709 ;;
3710 *-cygwin*)
e33b51a6 3711
81ecdfbb
RW
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3713$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3714echo a >cygwin-cat-check
1f53ca9a 3715if test `cat cygwin-cat-check` = a ; then
8ade07e9 3716 rm cygwin-cat-check
81ecdfbb
RW
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3718$as_echo "yes" >&6; }
e33b51a6 3719else
8ade07e9 3720 rm cygwin-cat-check
81ecdfbb
RW
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722$as_echo "no" >&6; }
3723 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3724 Please either mount the build directory in binary mode or run the following
3725 commands before running any configure script:
3726set -o igncr
3727export SHELLOPTS
81ecdfbb 3728 " "$LINENO" 5
e33b51a6 3729fi
e33b51a6 3730
a0da8069
NN
3731 host_makefile_frag="config/mh-cygwin"
3732 ;;
8a1599ab 3733 *-mingw*)
84e7906e 3734 host_makefile_frag="config/mh-mingw"
2d1e8239 3735 ;;
a0da8069
NN
3736 *-interix*)
3737 host_makefile_frag="config/mh-interix"
3738 ;;
3739 vax-*-ultrix2*)
3740 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3741 tentative_cc=gcc
3742 ;;
3743 *-*-solaris2*)
3744 host_makefile_frag="config/mh-solaris"
3745 ;;
3746 m68k-sun-sunos*)
3747 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3748 # without overflowing the jump tables (-J says to use a 32 bit table)
3749 tentative_cc="cc -J"
3750 ;;
da888c87 3751 hppa*-hp-hpux10*)
a0da8069 3752 tentative_cc="cc -Wp,-H256000"
da888c87 3753 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3754 ;;
da888c87
PB
3755 hppa*-hp-hpux* | hppa*-*-hiux*)
3756 tentative_cc="cc -Wp,-H256000"
3757 host_makefile_frag="config/mh-pa"
3758 ;;
3759 hppa*-*)
3760 host_makefile_frag="config/mh-pa"
3761 ;;
3762 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3763 tentative_cc="cc -Wp,-H256000"
3764 ;;
3765 rs6000-*-lynxos*)
3766 # /bin/cc is less than useful for our purposes. Always use GCC
3767 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3768 host_makefile_frag="config/mh-lynxrs6k"
3769 ;;
e552509b
ILT
3770 *-*-darwin*)
3771 host_makefile_frag="config/mh-darwin"
0df3d27f 3772 ;;
f6d183c0
PB
3773 powerpc-*-aix*)
3774 host_makefile_frag="config/mh-ppc-aix"
3775 ;;
3776 rs6000-*-aix*)
3777 host_makefile_frag="config/mh-ppc-aix"
3778 ;;
a0da8069
NN
3779 *-*-lynxos*)
3780 # /bin/cc is less than useful for our purposes. Always use GCC
3781 tentative_cc="/bin/gcc"
3782 ;;
3783 *-*-sysv4*)
3784 host_makefile_frag="config/mh-sysv4"
3785 ;;
fe69863c
DD
3786 # This is placed last to prevent interfering with the cases above.
3787 i[3456789]86-*-*)
3788 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3789 host_makefile_frag="config/mh-x86omitfp"
3790 ;;
a0da8069
NN
3791esac
3792fi
3793
9e07f89d
NN
3794# If we aren't going to be using gcc, see if we can extract a definition
3795# of CC from the fragment.
3796# Actually, use the 'pre-extracted' version above.
3797if test -z "${CC}" && test "${build}" = "${host}" ; then
3798 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3799 found=
3800 for dir in $PATH; do
3801 test -z "$dir" && dir=.
3802 if test -f $dir/gcc; then
3803 found=yes
3804 break
3805 fi
3806 done
3807 IFS="$save_ifs"
3808 if test -z "${found}" && test -n "${tentative_cc}" ; then
3809 CC=$tentative_cc
3810 fi
3811fi
3812
3813if test "${build}" != "${host}" ; then
1576798e
PB
3814 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3815 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3816 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3817 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3818 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3819 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3820 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3821 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3822 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3823 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3824 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3825 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3826 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3827else
3828 AR_FOR_BUILD="\$(AR)"
3829 AS_FOR_BUILD="\$(AS)"
512b7dfb 3830 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3831 CXX_FOR_BUILD="\$(CXX)"
3832 GCJ_FOR_BUILD="\$(GCJ)"
3833 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3834 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3835 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3836 LD_FOR_BUILD="\$(LD)"
3837 NM_FOR_BUILD="\$(NM)"
3838 RANLIB_FOR_BUILD="\$(RANLIB)"
3839 WINDRES_FOR_BUILD="\$(WINDRES)"
3840 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3841fi
3842
3843ac_ext=c
c6b750e1
DJ
3844ac_cpp='$CPP $CPPFLAGS'
3845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848if test -n "$ac_tool_prefix"; then
3849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3850set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852$as_echo_n "checking for $ac_word... " >&6; }
3853if test "${ac_cv_prog_CC+set}" = set; then :
3854 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3855else
3856 if test -n "$CC"; then
3857 ac_cv_prog_CC="$CC" # Let the user override the test.
3858else
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3868 break 2
3869 fi
3870done
81ecdfbb
RW
3871 done
3872IFS=$as_save_IFS
c6b750e1
DJ
3873
3874fi
3875fi
3876CC=$ac_cv_prog_CC
3877if test -n "$CC"; then
81ecdfbb
RW
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3879$as_echo "$CC" >&6; }
c6b750e1 3880else
81ecdfbb
RW
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882$as_echo "no" >&6; }
c6b750e1
DJ
3883fi
3884
81ecdfbb 3885
c6b750e1
DJ
3886fi
3887if test -z "$ac_cv_prog_CC"; then
3888 ac_ct_CC=$CC
6a9cf61e 3889 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3890set dummy gcc; ac_word=$2
81ecdfbb
RW
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892$as_echo_n "checking for $ac_word... " >&6; }
3893if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3894 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3895else
3896 if test -n "$ac_ct_CC"; then
3897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3898else
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3906 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3908 break 2
3909 fi
3910done
81ecdfbb
RW
3911 done
3912IFS=$as_save_IFS
c6b750e1
DJ
3913
3914fi
3915fi
3916ac_ct_CC=$ac_cv_prog_ac_ct_CC
3917if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3919$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3920else
81ecdfbb
RW
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
c6b750e1
DJ
3923fi
3924
81ecdfbb
RW
3925 if test "x$ac_ct_CC" = x; then
3926 CC=""
3927 else
3928 case $cross_compiling:$ac_tool_warned in
3929yes:)
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3932ac_tool_warned=yes ;;
3933esac
3934 CC=$ac_ct_CC
3935 fi
c6b750e1
DJ
3936else
3937 CC="$ac_cv_prog_CC"
3938fi
3939
3940if test -z "$CC"; then
81ecdfbb
RW
3941 if test -n "$ac_tool_prefix"; then
3942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3943set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945$as_echo_n "checking for $ac_word... " >&6; }
3946if test "${ac_cv_prog_CC+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
9e07f89d
NN
3948else
3949 if test -n "$CC"; then
3950 ac_cv_prog_CC="$CC" # Let the user override the test.
3951else
c6b750e1
DJ
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3959 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3961 break 2
3962 fi
3963done
81ecdfbb
RW
3964 done
3965IFS=$as_save_IFS
c6b750e1 3966
9e07f89d
NN
3967fi
3968fi
c6b750e1 3969CC=$ac_cv_prog_CC
9e07f89d 3970if test -n "$CC"; then
81ecdfbb
RW
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972$as_echo "$CC" >&6; }
c6b750e1 3973else
81ecdfbb
RW
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975$as_echo "no" >&6; }
c6b750e1
DJ
3976fi
3977
c6b750e1 3978
81ecdfbb 3979 fi
c6b750e1 3980fi
9e07f89d
NN
3981if test -z "$CC"; then
3982 # Extract the first word of "cc", so it can be a program name with args.
3983set dummy cc; ac_word=$2
81ecdfbb
RW
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985$as_echo_n "checking for $ac_word... " >&6; }
3986if test "${ac_cv_prog_CC+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
9e07f89d
NN
3988else
3989 if test -n "$CC"; then
3990 ac_cv_prog_CC="$CC" # Let the user override the test.
3991else
9e07f89d 3992 ac_prog_rejected=no
c6b750e1
DJ
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4001 ac_prog_rejected=yes
4002 continue
4003 fi
4004 ac_cv_prog_CC="cc"
81ecdfbb 4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4006 break 2
4007 fi
4008done
81ecdfbb
RW
4009 done
4010IFS=$as_save_IFS
c6b750e1 4011
9e07f89d
NN
4012if test $ac_prog_rejected = yes; then
4013 # We found a bogon in the path, so make sure we never use it.
4014 set dummy $ac_cv_prog_CC
4015 shift
c6b750e1 4016 if test $# != 0; then
9e07f89d
NN
4017 # We chose a different compiler from the bogus one.
4018 # However, it has the same basename, so the bogon will be chosen
4019 # first if we set CC to just the basename; use the full file name.
4020 shift
c6b750e1 4021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4022 fi
4023fi
4024fi
4025fi
c6b750e1 4026CC=$ac_cv_prog_CC
9e07f89d 4027if test -n "$CC"; then
81ecdfbb
RW
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4029$as_echo "$CC" >&6; }
9e07f89d 4030else
81ecdfbb
RW
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032$as_echo "no" >&6; }
9e07f89d
NN
4033fi
4034
81ecdfbb 4035
c6b750e1
DJ
4036fi
4037if test -z "$CC"; then
4038 if test -n "$ac_tool_prefix"; then
81ecdfbb 4039 for ac_prog in cl.exe
c6b750e1
DJ
4040 do
4041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044$as_echo_n "checking for $ac_word... " >&6; }
4045if test "${ac_cv_prog_CC+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
9e07f89d
NN
4047else
4048 if test -n "$CC"; then
4049 ac_cv_prog_CC="$CC" # Let the user override the test.
4050else
c6b750e1
DJ
4051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052for as_dir in $PATH
4053do
4054 IFS=$as_save_IFS
4055 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4060 break 2
376a0e54 4061 fi
c6b750e1 4062done
81ecdfbb
RW
4063 done
4064IFS=$as_save_IFS
cac3d6c4 4065
c6b750e1
DJ
4066fi
4067fi
4068CC=$ac_cv_prog_CC
4069if test -n "$CC"; then
81ecdfbb
RW
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071$as_echo "$CC" >&6; }
cac3d6c4 4072else
81ecdfbb
RW
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074$as_echo "no" >&6; }
9e07f89d 4075fi
cac3d6c4 4076
81ecdfbb 4077
c6b750e1
DJ
4078 test -n "$CC" && break
4079 done
cac3d6c4 4080fi
c6b750e1
DJ
4081if test -z "$CC"; then
4082 ac_ct_CC=$CC
81ecdfbb 4083 for ac_prog in cl.exe
c6b750e1
DJ
4084do
4085 # Extract the first word of "$ac_prog", so it can be a program name with args.
4086set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088$as_echo_n "checking for $ac_word... " >&6; }
4089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
cac3d6c4 4091else
c6b750e1
DJ
4092 if test -n "$ac_ct_CC"; then
4093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4094else
c6b750e1
DJ
4095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4102 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4104 break 2
4105 fi
4106done
81ecdfbb
RW
4107 done
4108IFS=$as_save_IFS
c6b750e1 4109
cac3d6c4
CM
4110fi
4111fi
c6b750e1
DJ
4112ac_ct_CC=$ac_cv_prog_ac_ct_CC
4113if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4115$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4116else
81ecdfbb
RW
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
cac3d6c4 4119fi
376a0e54 4120
81ecdfbb 4121
c6b750e1
DJ
4122 test -n "$ac_ct_CC" && break
4123done
4124
81ecdfbb
RW
4125 if test "x$ac_ct_CC" = x; then
4126 CC=""
4127 else
4128 case $cross_compiling:$ac_tool_warned in
4129yes:)
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4132ac_tool_warned=yes ;;
4133esac
4134 CC=$ac_ct_CC
4135 fi
c6b750e1
DJ
4136fi
4137
4138fi
4139
4140
81ecdfbb
RW
4141test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4143as_fn_error "no acceptable C compiler found in \$PATH
4144See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4145
4146# Provide some information about the compiler.
81ecdfbb
RW
4147$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4148set X $ac_compile
4149ac_compiler=$2
4150for ac_option in --version -v -V -qversion; do
4151 { { ac_try="$ac_compiler $ac_option >&5"
4152case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157$as_echo "$ac_try_echo"; } >&5
4158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4159 ac_status=$?
81ecdfbb
RW
4160 if test -s conftest.err; then
4161 sed '10a\
4162... rest of stderr output deleted ...
4163 10q' conftest.err >conftest.er1
4164 cat conftest.er1 >&5
4165 rm -f conftest.er1 conftest.err
4166 fi
4167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4168 test $ac_status = 0; }
4169done
c6b750e1 4170
81ecdfbb 4171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4172/* end confdefs.h. */
4173
4174int
4175main ()
4176{
4177
4178 ;
4179 return 0;
4180}
4181_ACEOF
4182ac_clean_files_save=$ac_clean_files
81ecdfbb 4183ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4184# Try to create an executable without -o first, disregard a.out.
4185# It will help us diagnose broken compilers, and finding out an intuition
4186# of exeext.
81ecdfbb
RW
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4188$as_echo_n "checking for C compiler default output file name... " >&6; }
4189ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4190
4191# The possible output files:
4192ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4193
4194ac_rmfiles=
4195for ac_file in $ac_files
4196do
4197 case $ac_file in
4198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4200 esac
4201done
4202rm -f $ac_rmfiles
4203
4204if { { ac_try="$ac_link_default"
4205case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208esac
4209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4210$as_echo "$ac_try_echo"; } >&5
4211 (eval "$ac_link_default") 2>&5
c6b750e1 4212 ac_status=$?
81ecdfbb
RW
4213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214 test $ac_status = 0; }; then :
4215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4216# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4217# in a Makefile. We should not override ac_cv_exeext if it was cached,
4218# so that the user can short-circuit this test for compilers unknown to
4219# Autoconf.
4220for ac_file in $ac_files ''
c6b750e1
DJ
4221do
4222 test -f "$ac_file" || continue
4223 case $ac_file in
81ecdfbb 4224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4225 ;;
4226 [ab].out )
4227 # We found the default executable, but exeext='' is most
4228 # certainly right.
4229 break;;
4230 *.* )
81ecdfbb
RW
4231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4232 then :; else
4233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4234 fi
4235 # We set ac_cv_exeext here because the later test for it is not
4236 # safe: cross compilers may not add the suffix if given an `-o'
4237 # argument, so we may need to know it at that point already.
4238 # Even if this section looks crufty: it has the advantage of
4239 # actually working.
c6b750e1
DJ
4240 break;;
4241 * )
4242 break;;
4243 esac
4244done
81ecdfbb
RW
4245test "$ac_cv_exeext" = no && ac_cv_exeext=
4246
c6b750e1 4247else
81ecdfbb
RW
4248 ac_file=''
4249fi
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4251$as_echo "$ac_file" >&6; }
4252if test -z "$ac_file"; then :
4253 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4254sed 's/^/| /' conftest.$ac_ext >&5
4255
81ecdfbb
RW
4256{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4258{ as_fn_set_status 77
4259as_fn_error "C compiler cannot create executables
4260See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4261fi
c6b750e1 4262ac_exeext=$ac_cv_exeext
c6b750e1 4263
81ecdfbb 4264# Check that the compiler produces executables we can run. If not, either
c6b750e1 4265# the compiler is broken, or we cross compile.
81ecdfbb
RW
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4267$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4268# If not cross compiling, check that we can run a simple program.
4269if test "$cross_compiling" != yes; then
4270 if { ac_try='./$ac_file'
81ecdfbb
RW
4271 { { case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276$as_echo "$ac_try_echo"; } >&5
4277 (eval "$ac_try") 2>&5
c6b750e1 4278 ac_status=$?
81ecdfbb
RW
4279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4280 test $ac_status = 0; }; }; then
c6b750e1
DJ
4281 cross_compiling=no
4282 else
4283 if test "$cross_compiling" = maybe; then
4284 cross_compiling=yes
4285 else
81ecdfbb
RW
4286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4288as_fn_error "cannot run C compiled programs.
c6b750e1 4289If you meant to cross compile, use \`--host'.
81ecdfbb 4290See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4291 fi
4292 fi
4293fi
81ecdfbb
RW
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4295$as_echo "yes" >&6; }
c6b750e1 4296
81ecdfbb 4297rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4298ac_clean_files=$ac_clean_files_save
81ecdfbb 4299# Check that the compiler produces executables we can run. If not, either
c6b750e1 4300# the compiler is broken, or we cross compile.
81ecdfbb
RW
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4302$as_echo_n "checking whether we are cross compiling... " >&6; }
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4304$as_echo "$cross_compiling" >&6; }
4305
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4307$as_echo_n "checking for suffix of executables... " >&6; }
4308if { { ac_try="$ac_link"
4309case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312esac
4313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314$as_echo "$ac_try_echo"; } >&5
4315 (eval "$ac_link") 2>&5
c6b750e1 4316 ac_status=$?
81ecdfbb
RW
4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }; then :
c6b750e1
DJ
4319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4320# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4321# work properly (i.e., refer to `conftest.exe'), while it won't with
4322# `rm'.
4323for ac_file in conftest.exe conftest conftest.*; do
4324 test -f "$ac_file" || continue
4325 case $ac_file in
81ecdfbb 4326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4328 break;;
4329 * ) break;;
4330 esac
4331done
4332else
81ecdfbb
RW
4333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335as_fn_error "cannot compute suffix of executables: cannot compile and link
4336See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4337fi
c6b750e1 4338rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4340$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4341
4342rm -f conftest.$ac_ext
4343EXEEXT=$ac_cv_exeext
4344ac_exeext=$EXEEXT
81ecdfbb
RW
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4346$as_echo_n "checking for suffix of object files... " >&6; }
4347if test "${ac_cv_objext+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
c6b750e1 4349else
81ecdfbb 4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4351/* end confdefs.h. */
4352
4353int
4354main ()
4355{
4356
4357 ;
4358 return 0;
4359}
4360_ACEOF
4361rm -f conftest.o conftest.obj
81ecdfbb
RW
4362if { { ac_try="$ac_compile"
4363case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366esac
4367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368$as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_compile") 2>&5
c6b750e1 4370 ac_status=$?
81ecdfbb
RW
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; then :
4373 for ac_file in conftest.o conftest.obj conftest.*; do
4374 test -f "$ac_file" || continue;
c6b750e1 4375 case $ac_file in
81ecdfbb 4376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4377 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4378 break;;
4379 esac
4380done
cac3d6c4 4381else
81ecdfbb 4382 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
81ecdfbb
RW
4385{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4387as_fn_error "cannot compute suffix of object files: cannot compile
4388See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4389fi
c6b750e1
DJ
4390rm -f conftest.$ac_cv_objext conftest.$ac_ext
4391fi
81ecdfbb
RW
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4393$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4394OBJEXT=$ac_cv_objext
4395ac_objext=$OBJEXT
81ecdfbb
RW
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4397$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4398if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
c6b750e1 4400else
81ecdfbb 4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4402/* end confdefs.h. */
4403
4404int
4405main ()
4406{
4407#ifndef __GNUC__
4408 choke me
4409#endif
4410
4411 ;
4412 return 0;
4413}
4414_ACEOF
81ecdfbb 4415if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4416 ac_compiler_gnu=yes
4417else
81ecdfbb 4418 ac_compiler_gnu=no
c6b750e1 4419fi
81ecdfbb 4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4421ac_cv_c_compiler_gnu=$ac_compiler_gnu
4422
4423fi
81ecdfbb
RW
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4425$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4426if test $ac_compiler_gnu = yes; then
4427 GCC=yes
4428else
4429 GCC=
4430fi
c6b750e1
DJ
4431ac_test_CFLAGS=${CFLAGS+set}
4432ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4434$as_echo_n "checking whether $CC accepts -g... " >&6; }
4435if test "${ac_cv_prog_cc_g+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4437else
4438 ac_save_c_werror_flag=$ac_c_werror_flag
4439 ac_c_werror_flag=yes
4440 ac_cv_prog_cc_g=no
4441 CFLAGS="-g"
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4443/* end confdefs.h. */
4444
4445int
4446main ()
4447{
4448
4449 ;
4450 return 0;
4451}
4452_ACEOF
81ecdfbb 4453if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4454 ac_cv_prog_cc_g=yes
4455else
81ecdfbb
RW
4456 CFLAGS=""
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458/* end confdefs.h. */
4459
4460int
4461main ()
4462{
4463
4464 ;
4465 return 0;
4466}
4467_ACEOF
4468if ac_fn_c_try_compile "$LINENO"; then :
4469
4470else
4471 ac_c_werror_flag=$ac_save_c_werror_flag
4472 CFLAGS="-g"
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474/* end confdefs.h. */
cac3d6c4 4475
81ecdfbb
RW
4476int
4477main ()
4478{
4479
4480 ;
4481 return 0;
4482}
4483_ACEOF
4484if ac_fn_c_try_compile "$LINENO"; then :
4485 ac_cv_prog_cc_g=yes
4486fi
4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4488fi
81ecdfbb 4489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4490fi
81ecdfbb
RW
4491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 ac_c_werror_flag=$ac_save_c_werror_flag
4493fi
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4495$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4496if test "$ac_test_CFLAGS" = set; then
c6b750e1 4497 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4498elif test $ac_cv_prog_cc_g = yes; then
4499 if test "$GCC" = yes; then
4500 CFLAGS="-g -O2"
4501 else
4502 CFLAGS="-g"
4503 fi
4504else
4505 if test "$GCC" = yes; then
4506 CFLAGS="-O2"
4507 else
4508 CFLAGS=
4509 fi
4510fi
81ecdfbb
RW
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4512$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4513if test "${ac_cv_prog_cc_c89+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
c6b750e1 4515else
81ecdfbb 4516 ac_cv_prog_cc_c89=no
c6b750e1 4517ac_save_CC=$CC
81ecdfbb 4518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4519/* end confdefs.h. */
4520#include <stdarg.h>
4521#include <stdio.h>
4522#include <sys/types.h>
4523#include <sys/stat.h>
4524/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4525struct buf { int x; };
4526FILE * (*rcsopen) (struct buf *, struct stat *, int);
4527static char *e (p, i)
4528 char **p;
4529 int i;
4530{
4531 return p[i];
4532}
4533static char *f (char * (*g) (char **, int), char **p, ...)
4534{
4535 char *s;
4536 va_list v;
4537 va_start (v,p);
4538 s = g (p, va_arg (v,int));
4539 va_end (v);
4540 return s;
4541}
4542
4543/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4544 function prototypes and stuff, but not '\xHH' hex character constants.
4545 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4546 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4547 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4548 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4549 that's true only with -std. */
c6b750e1
DJ
4550int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4551
81ecdfbb
RW
4552/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4553 inside strings and character constants. */
4554#define FOO(x) 'x'
4555int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4556
c6b750e1
DJ
4557int test (int i, double x);
4558struct s1 {int (*f) (int a);};
4559struct s2 {int (*f) (double a);};
4560int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4561int argc;
4562char **argv;
4563int
4564main ()
4565{
4566return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4567 ;
4568 return 0;
4569}
4570_ACEOF
81ecdfbb
RW
4571for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4572 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4573do
4574 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4575 if ac_fn_c_try_compile "$LINENO"; then :
4576 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4577fi
81ecdfbb
RW
4578rm -f core conftest.err conftest.$ac_objext
4579 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4580done
81ecdfbb 4581rm -f conftest.$ac_ext
c6b750e1
DJ
4582CC=$ac_save_CC
4583
4584fi
81ecdfbb
RW
4585# AC_CACHE_VAL
4586case "x$ac_cv_prog_cc_c89" in
4587 x)
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4589$as_echo "none needed" >&6; } ;;
4590 xno)
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4592$as_echo "unsupported" >&6; } ;;
c6b750e1 4593 *)
81ecdfbb
RW
4594 CC="$CC $ac_cv_prog_cc_c89"
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4596$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4597esac
81ecdfbb 4598if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4599
c6b750e1
DJ
4600fi
4601
c6b750e1
DJ
4602ac_ext=c
4603ac_cpp='$CPP $CPPFLAGS'
4604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4607
81ecdfbb 4608ac_ext=cpp
18f6b6ee
PB
4609ac_cpp='$CXXCPP $CPPFLAGS'
4610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4613if test -z "$CXX"; then
4614 if test -n "$CCC"; then
4615 CXX=$CCC
4616 else
4617 if test -n "$ac_tool_prefix"; then
4618 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4619 do
4620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4621set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623$as_echo_n "checking for $ac_word... " >&6; }
4624if test "${ac_cv_prog_CXX+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4626else
4627 if test -n "$CXX"; then
4628 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4629else
4630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4637 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4639 break 2
4640 fi
4641done
81ecdfbb
RW
4642 done
4643IFS=$as_save_IFS
512b7dfb 4644
18f6b6ee
PB
4645fi
4646fi
4647CXX=$ac_cv_prog_CXX
4648if test -n "$CXX"; then
81ecdfbb
RW
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4650$as_echo "$CXX" >&6; }
18f6b6ee 4651else
81ecdfbb
RW
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653$as_echo "no" >&6; }
18f6b6ee
PB
4654fi
4655
81ecdfbb 4656
18f6b6ee
PB
4657 test -n "$CXX" && break
4658 done
4659fi
4660if test -z "$CXX"; then
4661 ac_ct_CXX=$CXX
81ecdfbb 4662 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4663do
4664 # Extract the first word of "$ac_prog", so it can be a program name with args.
4665set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667$as_echo_n "checking for $ac_word... " >&6; }
4668if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4669 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4670else
4671 if test -n "$ac_ct_CXX"; then
4672 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4673else
4674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in $PATH
4676do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4681 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4683 break 2
512b7dfb 4684 fi
18f6b6ee 4685done
81ecdfbb
RW
4686 done
4687IFS=$as_save_IFS
512b7dfb 4688
18f6b6ee
PB
4689fi
4690fi
4691ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4692if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4694$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4695else
81ecdfbb
RW
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697$as_echo "no" >&6; }
18f6b6ee
PB
4698fi
4699
81ecdfbb 4700
18f6b6ee
PB
4701 test -n "$ac_ct_CXX" && break
4702done
18f6b6ee 4703
81ecdfbb
RW
4704 if test "x$ac_ct_CXX" = x; then
4705 CXX="g++"
4706 else
4707 case $cross_compiling:$ac_tool_warned in
4708yes:)
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711ac_tool_warned=yes ;;
4712esac
4713 CXX=$ac_ct_CXX
4714 fi
18f6b6ee
PB
4715fi
4716
81ecdfbb
RW
4717 fi
4718fi
18f6b6ee 4719# Provide some information about the compiler.
81ecdfbb
RW
4720$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4721set X $ac_compile
4722ac_compiler=$2
4723for ac_option in --version -v -V -qversion; do
4724 { { ac_try="$ac_compiler $ac_option >&5"
4725case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728esac
4729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4730$as_echo "$ac_try_echo"; } >&5
4731 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4732 ac_status=$?
81ecdfbb
RW
4733 if test -s conftest.err; then
4734 sed '10a\
4735... rest of stderr output deleted ...
4736 10q' conftest.err >conftest.er1
4737 cat conftest.er1 >&5
4738 rm -f conftest.er1 conftest.err
4739 fi
4740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4741 test $ac_status = 0; }
4742done
18f6b6ee 4743
81ecdfbb
RW
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4745$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4746if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4747 $as_echo_n "(cached) " >&6
18f6b6ee 4748else
81ecdfbb 4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4750/* end confdefs.h. */
4751
4752int
4753main ()
4754{
4755#ifndef __GNUC__
4756 choke me
4757#endif
4758
4759 ;
4760 return 0;
4761}
4762_ACEOF
81ecdfbb 4763if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4764 ac_compiler_gnu=yes
4765else
81ecdfbb 4766 ac_compiler_gnu=no
18f6b6ee 4767fi
81ecdfbb 4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4769ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4770
4771fi
81ecdfbb
RW
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4773$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4774if test $ac_compiler_gnu = yes; then
4775 GXX=yes
4776else
4777 GXX=
4778fi
18f6b6ee
PB
4779ac_test_CXXFLAGS=${CXXFLAGS+set}
4780ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4782$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4783if test "${ac_cv_prog_cxx_g+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4785else
4786 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4787 ac_cxx_werror_flag=yes
4788 ac_cv_prog_cxx_g=no
4789 CXXFLAGS="-g"
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4791/* end confdefs.h. */
4792
4793int
4794main ()
4795{
4796
4797 ;
4798 return 0;
4799}
4800_ACEOF
81ecdfbb 4801if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4802 ac_cv_prog_cxx_g=yes
4803else
81ecdfbb
RW
4804 CXXFLAGS=""
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4806/* end confdefs.h. */
81ecdfbb 4807
18f6b6ee
PB
4808int
4809main ()
4810{
81ecdfbb 4811
18f6b6ee
PB
4812 ;
4813 return 0;
4814}
4815_ACEOF
81ecdfbb 4816if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4817
81ecdfbb
RW
4818else
4819 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4820 CXXFLAGS="-g"
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4822/* end confdefs.h. */
81ecdfbb 4823
18f6b6ee
PB
4824int
4825main ()
4826{
81ecdfbb 4827
18f6b6ee
PB
4828 ;
4829 return 0;
4830}
4831_ACEOF
81ecdfbb
RW
4832if ac_fn_cxx_try_compile "$LINENO"; then :
4833 ac_cv_prog_cxx_g=yes
18f6b6ee 4834fi
81ecdfbb
RW
4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836fi
4837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838fi
4839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4841fi
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4843$as_echo "$ac_cv_prog_cxx_g" >&6; }
4844if test "$ac_test_CXXFLAGS" = set; then
4845 CXXFLAGS=$ac_save_CXXFLAGS
4846elif test $ac_cv_prog_cxx_g = yes; then
4847 if test "$GXX" = yes; then
4848 CXXFLAGS="-g -O2"
4849 else
4850 CXXFLAGS="-g"
4851 fi
4852else
4853 if test "$GXX" = yes; then
4854 CXXFLAGS="-O2"
4855 else
4856 CXXFLAGS=
4857 fi
18f6b6ee 4858fi
18f6b6ee
PB
4859ac_ext=c
4860ac_cpp='$CPP $CPPFLAGS'
4861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864
4865
4866# We must set the default linker to the linker used by gcc for the correct
4867# operation of libtool. If LD is not defined and we are using gcc, try to
4868# set the LD default to the ld used by gcc.
4869if test -z "$LD"; then
4870 if test "$GCC" = yes; then
4871 case $build in
4872 *-*-mingw*)
4873 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4874 *)
4875 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4876 esac
4877 case $gcc_prog_ld in
4878 # Accept absolute paths.
4879 [\\/]* | [A-Za-z]:[\\/]*)
4880 LD="$gcc_prog_ld" ;;
4881 esac
4882 fi
512b7dfb
PB
4883fi
4884
4885
4886
4887
c6b750e1 4888if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4889 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4890set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892$as_echo_n "checking for $ac_word... " >&6; }
4893if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
9e07f89d 4895else
512b7dfb
PB
4896 if test -n "$GNATBIND"; then
4897 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4898else
c6b750e1
DJ
4899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900for as_dir in $PATH
4901do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4906 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4908 break 2
4909 fi
4910done
81ecdfbb
RW
4911 done
4912IFS=$as_save_IFS
c6b750e1 4913
9e07f89d
NN
4914fi
4915fi
512b7dfb
PB
4916GNATBIND=$ac_cv_prog_GNATBIND
4917if test -n "$GNATBIND"; then
81ecdfbb
RW
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4919$as_echo "$GNATBIND" >&6; }
9e07f89d 4920else
81ecdfbb
RW
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
9e07f89d
NN
4923fi
4924
81ecdfbb 4925
c6b750e1 4926fi
512b7dfb
PB
4927if test -z "$ac_cv_prog_GNATBIND"; then
4928 ac_ct_GNATBIND=$GNATBIND
4929 # Extract the first word of "gnatbind", so it can be a program name with args.
4930set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932$as_echo_n "checking for $ac_word... " >&6; }
4933if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
9e07f89d 4935else
512b7dfb
PB
4936 if test -n "$ac_ct_GNATBIND"; then
4937 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4938else
c6b750e1
DJ
4939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940for as_dir in $PATH
4941do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4946 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4948 break 2
4949 fi
4950done
81ecdfbb
RW
4951 done
4952IFS=$as_save_IFS
c6b750e1 4953
9e07f89d
NN
4954fi
4955fi
512b7dfb
PB
4956ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4957if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4959$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4960else
81ecdfbb
RW
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962$as_echo "no" >&6; }
9e07f89d
NN
4963fi
4964
81ecdfbb
RW
4965 if test "x$ac_ct_GNATBIND" = x; then
4966 GNATBIND="no"
4967 else
4968 case $cross_compiling:$ac_tool_warned in
4969yes:)
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4972ac_tool_warned=yes ;;
4973esac
4974 GNATBIND=$ac_ct_GNATBIND
4975 fi
24ff9987 4976else
512b7dfb 4977 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4978fi
4979
7df2cd5d 4980if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4981 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4982set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
4985if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
7df2cd5d 4987else
512b7dfb
PB
4988 if test -n "$GNATMAKE"; then
4989 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4998 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5000 break 2
5001 fi
5002done
81ecdfbb
RW
5003 done
5004IFS=$as_save_IFS
7df2cd5d
PB
5005
5006fi
5007fi
512b7dfb
PB
5008GNATMAKE=$ac_cv_prog_GNATMAKE
5009if test -n "$GNATMAKE"; then
81ecdfbb
RW
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5011$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5012else
81ecdfbb
RW
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014$as_echo "no" >&6; }
7df2cd5d
PB
5015fi
5016
81ecdfbb 5017
7df2cd5d 5018fi
512b7dfb
PB
5019if test -z "$ac_cv_prog_GNATMAKE"; then
5020 ac_ct_GNATMAKE=$GNATMAKE
5021 # Extract the first word of "gnatmake", so it can be a program name with args.
5022set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
5025if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
7df2cd5d 5027else
512b7dfb
PB
5028 if test -n "$ac_ct_GNATMAKE"; then
5029 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5030else
5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5038 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5040 break 2
5041 fi
5042done
81ecdfbb
RW
5043 done
5044IFS=$as_save_IFS
7df2cd5d 5045
7df2cd5d
PB
5046fi
5047fi
512b7dfb
PB
5048ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5049if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5051$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5052else
81ecdfbb
RW
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
7df2cd5d
PB
5055fi
5056
81ecdfbb
RW
5057 if test "x$ac_ct_GNATMAKE" = x; then
5058 GNATMAKE="no"
5059 else
5060 case $cross_compiling:$ac_tool_warned in
5061yes:)
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5064ac_tool_warned=yes ;;
5065esac
5066 GNATMAKE=$ac_ct_GNATMAKE
5067 fi
7df2cd5d 5068else
512b7dfb 5069 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5070fi
5071
81ecdfbb
RW
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5073$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5074if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
9e07f89d
NN
5076else
5077 cat >conftest.adb <<EOF
5078procedure conftest is begin null; end conftest;
5079EOF
5080acx_cv_cc_gcc_supports_ada=no
5081# There is a bug in old released versions of GCC which causes the
5082# driver to exit successfully when the appropriate language module
5083# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5084# Therefore we must check for the error message as well as an
5085# unsuccessful exit.
b8908782
DD
5086# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5087# given a .adb file, but produce no object file. So we must check
5088# if an object file was really produced to guard against this.
9e07f89d 5089errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5090if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5091 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5092fi
5093rm -f conftest.*
5094fi
81ecdfbb
RW
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5096$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5097
512b7dfb 5098if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5099 have_gnat=yes
5100else
5101 have_gnat=no
5102fi
5103
81ecdfbb
RW
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5105$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5106if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
b8908782
DD
5108else
5109 echo abfoo >t1
5110 echo cdfoo >t2
5111 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5112 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5113 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5114 :
5115 else
5116 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5117 fi
5118 fi
b8908782
DD
5119 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5120 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5121 :
b8908782
DD
5122 else
5123 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5124 fi
5125 fi
5126 rm t1 t2
5127
5128fi
81ecdfbb
RW
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5130$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5131do_compare="$gcc_cv_prog_cmp_skip"
5132
5133
9e07f89d 5134
e8a5fa9c 5135# See if we are building gcc with C++.
81ecdfbb
RW
5136# Check whether --enable-build-with-cxx was given.
5137if test "${enable_build_with_cxx+set}" = set; then :
5138 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5139else
5140 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5141fi
5142
e8a5fa9c 5143
d5f2ee2e
KG
5144# Used for setting $lt_cv_objdir
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5146$as_echo_n "checking for objdir... " >&6; }
5147if test "${lt_cv_objdir+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5149else
5150 rm -f .libs 2>/dev/null
5151mkdir .libs 2>/dev/null
5152if test -d .libs; then
5153 lt_cv_objdir=.libs
5154else
5155 # MS-DOS does not allow filenames that begin with a dot.
5156 lt_cv_objdir=_libs
5157fi
5158rmdir .libs 2>/dev/null
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5161$as_echo "$lt_cv_objdir" >&6; }
5162objdir=$lt_cv_objdir
5163
5164
5165
5166
5167
5168cat >>confdefs.h <<_ACEOF
5169#define LT_OBJDIR "$lt_cv_objdir/"
5170_ACEOF
5171
5172
5173
e8a5fa9c 5174# Check for GMP, MPFR and MPC
d9b76ff9 5175gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5176gmpinc=
4b900473 5177have_gmp=no
e8a5fa9c
RW
5178
5179# Specify a location for mpc
5180# check for this first so it ends up on the link line before mpfr.
5181
81ecdfbb
RW
5182# Check whether --with-mpc was given.
5183if test "${with_mpc+set}" = set; then :
5184 withval=$with_mpc;
5185fi
e8a5fa9c 5186
e8a5fa9c 5187
e552509b 5188# Check whether --with-mpc-include was given.
81ecdfbb
RW
5189if test "${with_mpc_include+set}" = set; then :
5190 withval=$with_mpc_include;
5191fi
e8a5fa9c 5192
e8a5fa9c 5193
e552509b 5194# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5195if test "${with_mpc_lib+set}" = set; then :
5196 withval=$with_mpc_lib;
5197fi
e8a5fa9c 5198
e8a5fa9c
RW
5199
5200if test "x$with_mpc" != x; then
d9b76ff9
KG
5201 gmplibs="-L$with_mpc/lib $gmplibs"
5202 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5203fi
5204if test "x$with_mpc_include" != x; then
d9b76ff9 5205 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5206fi
5207if test "x$with_mpc_lib" != x; then
d9b76ff9 5208 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5209fi
5210if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5211 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5212 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5213 # Do not test the mpc version. Assume that it is sufficient, since
5214 # it is in the source tree, and the library has not been built yet
5215 # but it would be included on the link line in the version check below
5216 # hence making the test fail.
d9b76ff9 5217 have_gmp=yes
e8a5fa9c 5218fi
4b900473 5219
11b04d1f
DD
5220# Specify a location for mpfr
5221# check for this first so it ends up on the link line before gmp.
c6b750e1 5222
81ecdfbb
RW
5223# Check whether --with-mpfr-dir was given.
5224if test "${with_mpfr_dir+set}" = set; then :
5225 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5226Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5227fi
5228
11b04d1f
DD
5229
5230
81ecdfbb
RW
5231# Check whether --with-mpfr was given.
5232if test "${with_mpfr+set}" = set; then :
5233 withval=$with_mpfr;
5234fi
c6b750e1 5235
11b04d1f 5236
e552509b 5237# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5238if test "${with_mpfr_include+set}" = set; then :
5239 withval=$with_mpfr_include;
5240fi
c6b750e1 5241
8a0d8a5c 5242
e552509b 5243# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5244if test "${with_mpfr_lib+set}" = set; then :
5245 withval=$with_mpfr_lib;
5246fi
8a0d8a5c 5247
11b04d1f
DD
5248
5249if test "x$with_mpfr" != x; then
5250 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5251 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5252fi
8a0d8a5c 5253if test "x$with_mpfr_include" != x; then
d9b76ff9 5254 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5255fi
5256if test "x$with_mpfr_lib" != x; then
5257 gmplibs="-L$with_mpfr_lib $gmplibs"
5258fi
4b900473 5259if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5260 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5261 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5262 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5263 # Do not test the mpfr version. Assume that it is sufficient, since
5264 # it is in the source tree, and the library has not been built yet
5265 # but it would be included on the link line in the version check below
5266 # hence making the test fail.
5267 have_gmp=yes
5268fi
11b04d1f 5269
4b1cb4fe 5270# Specify a location for gmp
c6b750e1 5271
81ecdfbb
RW
5272# Check whether --with-gmp-dir was given.
5273if test "${with_gmp_dir+set}" = set; then :
5274 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5275Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5276fi
5277
4b1cb4fe
DD
5278
5279
81ecdfbb
RW
5280# Check whether --with-gmp was given.
5281if test "${with_gmp+set}" = set; then :
5282 withval=$with_gmp;
5283fi
c6b750e1 5284
4b1cb4fe 5285
e552509b 5286# Check whether --with-gmp-include was given.
81ecdfbb
RW
5287if test "${with_gmp_include+set}" = set; then :
5288 withval=$with_gmp_include;
5289fi
c6b750e1 5290
8a0d8a5c 5291
e552509b 5292# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5293if test "${with_gmp_lib+set}" = set; then :
5294 withval=$with_gmp_lib;
5295fi
8a0d8a5c
PB
5296
5297
4b1cb4fe 5298
11b04d1f
DD
5299if test "x$with_gmp" != x; then
5300 gmplibs="-L$with_gmp/lib $gmplibs"
5301 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5302fi
8a0d8a5c
PB
5303if test "x$with_gmp_include" != x; then
5304 gmpinc="-I$with_gmp_include $gmpinc"
5305fi
5306if test "x$with_gmp_lib" != x; then
5307 gmplibs="-L$with_gmp_lib $gmplibs"
5308fi
4b900473 5309if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5310 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5311 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5312 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5313 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5314 # Do not test the gmp version. Assume that it is sufficient, since
5315 # it is in the source tree, and the library has not been built yet
5316 # but it would be included on the link line in the version check below
5317 # hence making the test fail.
5318 have_gmp=yes
5319fi
4b1cb4fe 5320
ceb92e78 5321if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5322 have_gmp=yes
5323 saved_CFLAGS="$CFLAGS"
5324 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5325 # Check for the recommended and required versions of GMP.
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5327$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5328
5329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5330/* end confdefs.h. */
5331#include "gmp.h"
5332int
5333main ()
5334{
5335
5336 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5337 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5338 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5339 choke me
5340 #endif
5341
5342 ;
5343 return 0;
5344}
5345_ACEOF
5346if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5348/* end confdefs.h. */
a6b5846e 5349#include <gmp.h>
c6b750e1
DJ
5350int
5351main ()
5352{
4b1cb4fe 5353
a6b5846e
KG
5354 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5355 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5356 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5357 choke me
5358 #endif
c6b750e1
DJ
5359
5360 ;
5361 return 0;
5362}
5363_ACEOF
81ecdfbb
RW
5364if ac_fn_c_try_compile "$LINENO"; then :
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5366$as_echo "yes" >&6; }
a6b5846e
KG
5367else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5369$as_echo "buggy but acceptable" >&6; }
5370fi
5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5372else
81ecdfbb
RW
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5375fi
81ecdfbb 5376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5377
e8a5fa9c 5378 # If we have GMP, check the MPFR version.
4b900473 5379 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5380 # Check for the recommended and required versions of MPFR.
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5382$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5384/* end confdefs.h. */
9b134994 5385#include <gmp.h>
4b900473 5386 #include <mpfr.h>
c6b750e1
DJ
5387int
5388main ()
5389{
9b134994 5390
ef699244 5391 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5392 choke me
5393 #endif
c6b750e1
DJ
5394
5395 ;
5396 return 0;
5397}
5398_ACEOF
81ecdfbb
RW
5399if ac_fn_c_try_compile "$LINENO"; then :
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5401/* end confdefs.h. */
4b1cb4fe 5402#include <gmp.h>
4b900473 5403 #include <mpfr.h>
c6b750e1
DJ
5404int
5405main ()
5406{
9dbaa842 5407
a6b5846e 5408 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5409 choke me
5410 #endif
e8a5fa9c
RW
5411
5412 ;
5413 return 0;
5414}
5415_ACEOF
81ecdfbb
RW
5416if ac_fn_c_try_compile "$LINENO"; then :
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5418$as_echo "yes" >&6; }
e8a5fa9c 5419else
81ecdfbb
RW
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5421$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5422fi
81ecdfbb 5423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5424else
81ecdfbb
RW
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5427fi
81ecdfbb 5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5429 fi
5430
5431 # Check for the MPC header version.
d9b76ff9 5432 if test x"$have_gmp" = xyes ; then
a6b5846e 5433 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5435$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5437/* end confdefs.h. */
5438#include <mpc.h>
5439int
5440main ()
5441{
5442
a6b5846e
KG
5443 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5444 choke me
5445 #endif
5446
5447 ;
5448 return 0;
5449}
5450_ACEOF
5451if ac_fn_c_try_compile "$LINENO"; then :
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h. */
5454#include <mpc.h>
5455int
5456main ()
5457{
5458
5459 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5460 choke me
5461 #endif
5462
5463 ;
5464 return 0;
5465}
5466_ACEOF
81ecdfbb
RW
5467if ac_fn_c_try_compile "$LINENO"; then :
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5469$as_echo "yes" >&6; }
a6b5846e
KG
5470else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5472$as_echo "buggy but acceptable" >&6; }
5473fi
5474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5475else
81ecdfbb 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5477$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5478fi
81ecdfbb 5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5480 fi
5481
5482 # Now check the MPFR library.
5483 if test x"$have_gmp" = xyes; then
5484 saved_LIBS="$LIBS"
5485 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5487$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5489/* end confdefs.h. */
d9b76ff9 5490#include <mpc.h>
e8a5fa9c
RW
5491int
5492main ()
5493{
5494
5495 mpfr_t n;
5496 mpfr_t x;
d9b76ff9 5497 mpc_t c;
e8a5fa9c
RW
5498 int t;
5499 mpfr_init (n);
5500 mpfr_init (x);
5501 mpfr_atan2 (n, n, x, GMP_RNDN);
5502 mpfr_erfc (n, x, GMP_RNDN);
5503 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5504 mpfr_clear(n);
5505 mpfr_clear(x);
5506 mpc_init2 (c, 53);
5507 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5508 mpc_cosh (c, c, MPC_RNDNN);
5509 mpc_pow (c, c, c, MPC_RNDNN);
5510 mpc_acosh (c, c, MPC_RNDNN);
5511 mpc_clear (c);
c6b750e1
DJ
5512
5513 ;
5514 return 0;
5515}
5516_ACEOF
81ecdfbb
RW
5517if ac_fn_c_try_link "$LINENO"; then :
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5519$as_echo "yes" >&6; }
c6b750e1 5520else
81ecdfbb
RW
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5523fi
81ecdfbb
RW
5524rm -f core conftest.err conftest.$ac_objext \
5525 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5526 LIBS="$saved_LIBS"
5527 fi
5528
4b900473 5529 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5530
a6b5846e
KG
5531# The library versions listed in the error message below should match
5532# the HARD-minimums enforced above.
4b900473 5533 if test x$have_gmp != xyes; then
a6b5846e 5534 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5535Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5536their locations. Source code for these libraries can be found at
5537their respective hosting sites as well as at
5538ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5539http://gcc.gnu.org/install/prerequisites.html for additional info. If
5540you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5541make sure that you have installed both the libraries and the header
5542files. They may be located in separate packages." "$LINENO" 5
4b900473 5543 fi
9dbaa842
DD
5544fi
5545
e8a5fa9c
RW
5546# Flags needed for both GMP, MPFR and/or MPC.
5547
5548
5549
4b1cb4fe
DD
5550
5551
5552
29383458
JM
5553# Allow host libstdc++ to be specified for static linking with PPL.
5554
81ecdfbb
RW
5555# Check whether --with-host-libstdcxx was given.
5556if test "${with_host_libstdcxx+set}" = set; then :
5557 withval=$with_host_libstdcxx;
5558fi
29383458 5559
29383458
JM
5560
5561case $with_host_libstdcxx in
5562 no|yes)
81ecdfbb 5563 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5564 ;;
5565esac
e28c595f 5566
e8a5fa9c
RW
5567# Linker flags to use for stage1 or when not boostrapping.
5568
81ecdfbb
RW
5569# Check whether --with-stage1-ldflags was given.
5570if test "${with_stage1_ldflags+set}" = set; then :
5571 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5572 stage1_ldflags=
5573 else
5574 stage1_ldflags=$withval
5575 fi
5576else
5577 stage1_ldflags=
81ecdfbb
RW
5578fi
5579
e8a5fa9c
RW
5580
5581
5582# Libraries to use for stage1 or when not bootstrapping.
5583
81ecdfbb
RW
5584# Check whether --with-stage1-libs was given.
5585if test "${with_stage1_libs+set}" = set; then :
5586 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5587 stage1_libs=
5588 else
5589 stage1_libs=$withval
5590 fi
5591else
5592 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5593fi
5594
e8a5fa9c
RW
5595
5596
e8a5fa9c
RW
5597# Libraries to use for stage2 and later builds. This defaults to the
5598# argument passed to --with-host-libstdcxx.
5599
81ecdfbb
RW
5600# Check whether --with-boot-libs was given.
5601if test "${with_boot_libs+set}" = set; then :
5602 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5603 poststage1_libs=
5604 else
5605 poststage1_libs=$withval
5606 fi
5607else
5608 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5609fi
5610
e8a5fa9c
RW
5611
5612
143754cd
NC
5613# Linker flags to use for stage2 and later builds.
5614
5615# Check whether --with-boot-ldflags was given.
5616if test "${with_boot_ldflags+set}" = set; then :
5617 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5618 poststage1_ldflags=
5619 else
5620 poststage1_ldflags=$withval
5621 fi
5622else
5623 poststage1_ldflags=
4f11b223
ILT
5624 # In stages 2 and 3, default to linking libstdc++ and libgcc
5625 # statically. But if the user explicitly specified the libraries to
5626 # use, trust that they are doing what they want.
5627 if test "$poststage1_libs" = ""; then
143754cd
NC
5628 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5629 fi
5630fi
5631
5632
5633
e28c595f 5634# Check for PPL
b123da99 5635ppllibs=
e28c595f 5636pplinc=
b123da99 5637pwllib=
e28c595f
JM
5638
5639
81ecdfbb
RW
5640# Check whether --with-ppl was given.
5641if test "${with_ppl+set}" = set; then :
5642 withval=$with_ppl;
81ecdfbb 5643fi
e28c595f 5644
e28c595f 5645
e552509b 5646# Check whether --with-ppl-include was given.
81ecdfbb
RW
5647if test "${with_ppl_include+set}" = set; then :
5648 withval=$with_ppl_include;
5649fi
5650
e28c595f 5651
e552509b 5652# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5653if test "${with_ppl_lib+set}" = set; then :
5654 withval=$with_ppl_lib;
5655fi
e28c595f 5656
e28c595f 5657
b123da99
SP
5658# Check whether --enable-ppl-version-check was given.
5659if test "${enable_ppl_version_check+set}" = set; then :
5660 enableval=$enable_ppl_version_check;
5661fi
5662
5663
29383458 5664case $with_ppl in
b123da99 5665 yes | no | "")
1f53ca9a 5666 ;;
29383458 5667 *)
b123da99 5668 ppllibs="-L$with_ppl/lib"
29383458 5669 pplinc="-I$with_ppl/include $pplinc"
b123da99
SP
5670 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5671 with_ppl=yes
5672 else
5673 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5674 fi
29383458
JM
5675 ;;
5676esac
b123da99
SP
5677
5678if test x"$with_ppl_include" != x; then
e28c595f 5679 pplinc="-I$with_ppl_include $pplinc"
b123da99 5680 with_ppl=yes
e28c595f 5681fi
b123da99 5682
e28c595f 5683if test "x$with_ppl_lib" != x; then
b123da99
SP
5684 ppllibs="-L$with_ppl_lib"
5685 with_ppl=yes
e28c595f 5686fi
b123da99
SP
5687
5688if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5689 if test x"$enable_watchdog" = xyes; then
5690 pwllib="-lpwl"
5691 fi
5692 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
1f53ca9a
AO
5693 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5694 enable_ppl_version_check=no
b123da99 5695 with_ppl=yes
e28c595f
JM
5696fi
5697
86ed8cf6 5698if test "x$with_ppl" != xno; then
b123da99 5699 if test "x$pwllib" = x; then
0e8ad34f
RO
5700 saved_LIBS="$LIBS"
5701 LIBS="$LIBS $ppllibs -lstdc++ -lm"
b123da99
SP
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5703$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5704if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706else
5707 ac_check_lib_save_LIBS=$LIBS
5708LIBS="-lpwl $LIBS"
5709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h. */
5711
5712/* Override any GCC internal prototype to avoid an error.
5713 Use char because int might match the return type of a GCC
5714 builtin and then its argument prototype would still apply. */
5715#ifdef __cplusplus
5716extern "C"
5717#endif
5718char PWL_handle_timeout ();
5719int
5720main ()
5721{
5722return PWL_handle_timeout ();
5723 ;
5724 return 0;
5725}
5726_ACEOF
5727if ac_fn_c_try_link "$LINENO"; then :
5728 ac_cv_lib_pwl_PWL_handle_timeout=yes
e28c595f 5729else
b123da99
SP
5730 ac_cv_lib_pwl_PWL_handle_timeout=no
5731fi
5732rm -f core conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
5734LIBS=$ac_check_lib_save_LIBS
5735fi
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5737$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5738if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5739 pwllib="-lpwl"
81ecdfbb
RW
5740fi
5741
0e8ad34f 5742 LIBS="$saved_LIBS"
b123da99 5743 fi
e28c595f 5744
b123da99
SP
5745 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5746
5747 if test "$enable_ppl_version_check" != no; then
5748 saved_CFLAGS="$CFLAGS"
5749 CFLAGS="$CFLAGS $pplinc $gmpinc"
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5751$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5753/* end confdefs.h. */
5754#include "ppl_c.h"
5755int
5756main ()
5757{
5758
b123da99
SP
5759 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5760 choke me
5761 #endif
e28c595f
JM
5762
5763 ;
5764 return 0;
5765}
5766_ACEOF
81ecdfbb
RW
5767if ac_fn_c_try_compile "$LINENO"; then :
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5769$as_echo "yes" >&6; }
e28c595f 5770else
81ecdfbb 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5772$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5773fi
81ecdfbb 5774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b123da99
SP
5775 CFLAGS="$saved_CFLAGS"
5776 fi
e28c595f
JM
5777fi
5778
5779# Flags needed for PPL
5780
5781
5782
5783
5784# Check for CLOOG
e552509b 5785
e28c595f
JM
5786
5787
81ecdfbb
RW
5788# Check whether --with-cloog was given.
5789if test "${with_cloog+set}" = set; then :
5790 withval=$with_cloog;
81ecdfbb
RW
5791fi
5792
e28c595f 5793
e552509b 5794# Check whether --with-cloog-include was given.
81ecdfbb
RW
5795if test "${with_cloog_include+set}" = set; then :
5796 withval=$with_cloog_include;
5797fi
e28c595f 5798
e28c595f 5799
e552509b 5800# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5801if test "${with_cloog_lib+set}" = set; then :
5802 withval=$with_cloog_lib;
5803fi
e28c595f 5804
e28c595f 5805
e552509b
ILT
5806 # Check whether --enable-cloog-backend was given.
5807if test "${enable_cloog_backend+set}" = set; then :
5808 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5809 cloog_backend=isl
5810 elif test "x${enableval}" = "xppl"; then
5811 cloog_backend=ppl
5812 else
5813 cloog_backend=ppl-legacy
5814 fi
5815else
5816 cloog_backend=ppl-legacy
5817fi
5818
5819 # Check whether --enable-cloog-version-check was given.
5820if test "${enable_cloog_version_check+set}" = set; then :
5821 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5822else
5823 ENABLE_CLOOG_CHECK=yes
5824fi
5825
5826
5827 # Initialize clooglibs and clooginc.
5828 case $with_cloog in
5829 no)
5830 clooglibs=
5831 clooginc=
5832 ;;
5833 "" | yes)
5834 ;;
5835 *)
5836 clooglibs="-L$with_cloog/lib"
5837 clooginc="-I$with_cloog/include"
5838 ;;
5839 esac
5840 if test "x${with_cloog_include}" != x ; then
5841 clooginc="-I$with_cloog_include"
5842 fi
5843 if test "x${with_cloog_lib}" != x; then
5844 clooglibs="-L$with_cloog_lib"
5845 fi
5846
5847
5848
5849
5850
1f53ca9a 5851if test "x$with_ppl" = "xno"; then
8d8eef9a
RW
5852
5853
5854
5855 if test "x${with_cloog}" = xno; then
5856 graphite_requested=no
5857 elif test "x${with_cloog}" != x \
5858 || test "x${with_cloog_include}" != x \
5859 || test "x${with_cloog_lib}" != x ; then
5860 graphite_requested=yes
5861 else
5862 graphite_requested=no
5863 fi
5864
5865
5866 if test "${graphite_requested}" = yes; then
5867 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5868 fi
1f53ca9a
AO
5869 with_cloog=no
5870fi
e552509b
ILT
5871if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5872 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5873 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5874 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5875fi
5876if test "x$with_cloog" != "xno"; then
1f53ca9a 5877
e552509b
ILT
5878
5879
5880 _cloog_saved_CFLAGS=$CFLAGS
5881 _cloog_saved_CPPFLAGS=$CPPFLAGS
5882 _cloog_saved_LDFLAGS=$LDFLAGS
5883 _cloog_saved_LIBS=$LIBS
5884
5885 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5886
5887 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5888 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5889 LDFLAGS="${LDFLAGS} ${clooglibs}"
5890
5891 case $cloog_backend in
5892 "ppl-legacy")
5893 CFLAGS="${CFLAGS} ${pplinc}"
5894 LDFLAGS="${LDFLAGS} ${ppllibs}"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5896$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5897if test "${gcc_cv_cloog_type+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899else
5900 LIBS="-lcloog ${_cloog_saved_LIBS}"
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h. */
5903#include "cloog/cloog.h"
5904int
5905main ()
5906{
5907#ifndef CLOOG_PPL_BACKEND
5908 choke me
5909 #endif
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914if ac_fn_c_try_link "$LINENO"; then :
5915 gcc_cv_cloog_type="PPL Legacy"
5916else
5917 gcc_cv_cloog_type=no
5918fi
5919rm -f core conftest.err conftest.$ac_objext \
5920 conftest$ac_exeext conftest.$ac_ext
e28c595f 5921fi
e552509b
ILT
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5923$as_echo "$gcc_cv_cloog_type" >&6; }
5924 ;;
5925 "isl")
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5927$as_echo_n "checking for installed CLooG ISL... " >&6; }
5928if test "${gcc_cv_cloog_type+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930else
5931 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933/* end confdefs.h. */
5934#include "cloog/cloog.h"
5935int
5936main ()
5937{
5938cloog_version ()
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943if ac_fn_c_try_link "$LINENO"; then :
5944 gcc_cv_cloog_type="ISL"
5945else
5946 gcc_cv_cloog_type=no
e28c595f 5947fi
e552509b
ILT
5948rm -f core conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
e28c595f 5950fi
e552509b
ILT
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5952$as_echo "$gcc_cv_cloog_type" >&6; }
5953 ;;
5954 "ppl")
5955 CFLAGS="${CFLAGS} ${pplinc}"
5956 LDFLAGS="${LDFLAGS} ${ppllibs}"
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5958$as_echo_n "checking for installed CLooG PPL... " >&6; }
5959if test "${gcc_cv_cloog_type+set}" = set; then :
5960 $as_echo_n "(cached) " >&6
e28c595f 5961else
e552509b
ILT
5962 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964/* end confdefs.h. */
5965#include "cloog/cloog.h"
5966 #include "cloog/ppl/cloog.h"
5967int
5968main ()
5969{
5970cloog_version ()
5971 ;
5972 return 0;
5973}
5974_ACEOF
5975if ac_fn_c_try_link "$LINENO"; then :
5976 gcc_cv_cloog_type="PPL"
5977else
5978 gcc_cv_cloog_type=no
81ecdfbb 5979fi
e552509b
ILT
5980rm -f core conftest.err conftest.$ac_objext \
5981 conftest$ac_exeext conftest.$ac_ext
5982fi
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5984$as_echo "$gcc_cv_cloog_type" >&6; }
5985 ;;
5986 *)
5987 gcc_cv_cloog_type=""
5988 esac
5989
5990 case $gcc_cv_cloog_type in
5991 "PPL Legacy")
5992 clooginc="${clooginc}"
5993 clooglibs="${clooglibs} -lcloog"
5994 cloog_org=no
5995 ;;
5996 "ISL")
5997 clooginc="${clooginc} ${_cloogorginc}"
b123da99 5998 clooglibs="${clooglibs} -lcloog-isl -lisl"
e552509b
ILT
5999 cloog_org=yes
6000 ;;
6001 "PPL")
6002 clooginc="${clooginc} ${_cloogorginc}"
6003 clooglibs="${clooglibs} -lcloog-ppl"
6004 cloog_org=yes
6005 ;;
6006 *)
6007 clooglibs=
6008 clooginc=
6009 cloog_org=
6010 ;;
6011 esac
81ecdfbb 6012
e552509b
ILT
6013 LIBS=$_cloog_saved_LIBS
6014 CFLAGS=$_cloog_saved_CFLAGS
6015 CPPFLAGS=$_cloog_saved_CPPFLAGS
6016 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 6017
e552509b
ILT
6018
6019
6020
6021
6022 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6023 _cloog_saved_CFLAGS=$CFLAGS
6024 _cloog_saved_LDFLAGS=$LDFLAGS
6025
6026 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
6027 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
6028
6029 if test "${cloog_org}" = yes ; then
8d8eef9a
RW
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
6031$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
e552509b
ILT
6032if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
6033 $as_echo_n "(cached) " >&6
6034else
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h. */
6037#include "cloog/cloog.h"
6038int
6039main ()
6040{
6041#if CLOOG_VERSION_MAJOR != 0 \
8d8eef9a
RW
6042 || CLOOG_VERSION_MINOR != 16 \
6043 || CLOOG_VERSION_REVISION < 1
e552509b
ILT
6044 choke me
6045 #endif
6046 ;
6047 return 0;
6048}
6049_ACEOF
6050if ac_fn_c_try_compile "$LINENO"; then :
6051 gcc_cv_cloog_ct_0_14_0=yes
6052else
6053 gcc_cv_cloog_ct_0_14_0=no
6054fi
6055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056fi
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
6058$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
6059 elif test "${cloog_org}" = no ; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 6061$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
6062if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6064else
81ecdfbb 6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
6066/* end confdefs.h. */
6067#include "cloog/cloog.h"
6068int
6069main ()
6070{
e552509b
ILT
6071#if CLOOG_VERSION_MAJOR != 0 \
6072 || CLOOG_VERSION_MINOR != 15 \
6073 || CLOOG_VERSION_REVISION < 5
6074 choke me
6075 #endif
e28c595f
JM
6076 ;
6077 return 0;
6078}
6079_ACEOF
a009f2e7
RW
6080if ac_fn_c_try_compile "$LINENO"; then :
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h. */
6083#include "cloog/cloog.h"
6084int
6085main ()
6086{
e552509b
ILT
6087#if CLOOG_VERSION_MAJOR != 0 \
6088 || CLOOG_VERSION_MINOR != 15 \
6089 || CLOOG_VERSION_REVISION < 9
6090 choke me
6091 #endif
a009f2e7
RW
6092 ;
6093 return 0;
6094}
6095_ACEOF
81ecdfbb 6096if ac_fn_c_try_compile "$LINENO"; then :
e552509b 6097 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 6098else
e552509b 6099 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6102else
e552509b 6103 gcc_cv_cloog_ct_0_15_5=no
e28c595f 6104fi
81ecdfbb 6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6106fi
e552509b
ILT
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6108$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6109 fi
6110
6111 CFLAGS=$_cloog_saved_CFLAGS
6112 LDFLAGS=$_cloog_saved_LDFLAGS
6113 fi
6114
6115
6116
e28c595f 6117
e28c595f
JM
6118
6119
6120
8d8eef9a
RW
6121 if test "x${with_cloog}" = xno; then
6122 graphite_requested=no
6123 elif test "x${with_cloog}" != x \
e552509b
ILT
6124 || test "x${with_cloog_include}" != x \
6125 || test "x${with_cloog_lib}" != x ; then
6126 graphite_requested=yes
6127 else
6128 graphite_requested=no
6129 fi
6130
6131
6132
6133 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6134 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6135 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6136 clooglibs=
6137 clooginc=
6138 fi
6139
6140 if test "${graphite_requested}" = yes \
6141 && test "x${clooglibs}" = x \
6142 && test "x${clooginc}" = x ; then
6143
8d8eef9a 6144 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
6145 fi
6146
6147
6148fi
6149
700d40ca
ILT
6150# Check for LTO support.
6151# Check whether --enable-lto was given.
6152if test "${enable_lto+set}" = set; then :
6153 enableval=$enable_lto; enable_lto=$enableval
6154else
6155 enable_lto=yes; default_enable_lto=yes
6156fi
6157
6158
143754cd 6159
e49e5c92
DK
6160
6161
6162target_elf=no
6163case $target in
6164 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6165 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6166 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6167 target_elf=no
6168 ;;
6169 *)
6170 target_elf=yes
6171 ;;
6172esac
6173
6174if test $target_elf = yes; then :
74cea91b
DK
6175 # ELF platforms build the lto-plugin always.
6176 build_lto_plugin=yes
e49e5c92 6177
e49e5c92
DK
6178else
6179 if test x"$default_enable_lto" = x"yes" ; then
29821356 6180 case $target in
a8eb3f0a 6181 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
74cea91b 6182 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6183 *) enable_lto=no ;;
6184 esac
e49e5c92 6185 else
29821356
RW
6186 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6187 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6188 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6189 # warn during gcc/ subconfigure; unless you're bootstrapping with
6190 # -flto it won't be needed until after installation anyway.
6191 case $target in
a8eb3f0a 6192 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6193 *) if test x"$enable_lto" = x"yes"; then
6194 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6195 fi
6196 ;;
6197 esac
6198 fi
a8eb3f0a 6199 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6200 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6201 case $target in
74cea91b 6202 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6203 *) ;;
6204 esac
74cea91b 6205
e49e5c92
DK
6206fi
6207
700d40ca 6208
e28c595f 6209
947f426e 6210# By default, C is the only stage 1 language.
9b134994 6211stage1_languages=,c,
1d39f329 6212
e8a5fa9c 6213# Target libraries that we bootstrap.
2aa2364a 6214bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6215
9e07f89d
NN
6216# Figure out what language subdirectories are present.
6217# Look if the user specified --enable-languages="..."; if not, use
6218# the environment variable $LANGUAGES if defined. $LANGUAGES might
6219# go away some day.
6220# NB: embedded tabs in this IF block -- do not untabify
6221if test -d ${srcdir}/gcc; then
6222 if test x"${enable_languages+set}" != xset; then
6223 if test x"${LANGUAGES+set}" = xset; then
6224 enable_languages="${LANGUAGES}"
6225 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6226 else
6227 enable_languages=all
6228 fi
6229 else
6230 if test x"${enable_languages}" = x ||
6231 test x"${enable_languages}" = xyes;
6232 then
6233 echo configure.in: --enable-languages needs at least one language argument 1>&2
6234 exit 1
6235 fi
6236 fi
6237 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6238
096f7d00
DE
6239 # 'f95' is the old name for the 'fortran' language. We issue a warning
6240 # and make the substitution.
6241 case ,${enable_languages}, in
6242 *,f95,*)
6243 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6244 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6245 ;;
6246 esac
6247
9e07f89d
NN
6248 # First scan to see if an enabled language requires some other language.
6249 # We assume that a given config-lang.in will list all the language
6250 # front ends it requires, even if some are required indirectly.
6251 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6252 case ${lang_frag} in
6253 ..) ;;
6254 # The odd quoting in the next line works around
6255 # an apparent bug in bash 1.12 on linux.
6256 ${srcdir}/gcc/[*]/config-lang.in) ;;
6257 *)
e552509b
ILT
6258 # From the config-lang.in, get $language, $lang_requires, and
6259 # $lang_requires_boot_languages.
9e07f89d
NN
6260 language=
6261 lang_requires=
e552509b 6262 lang_requires_boot_languages=
9e07f89d 6263 . ${lang_frag}
e552509b 6264 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6265 case ,${enable_languages}, in
6266 *,$other,*) ;;
6267 *,all,*) ;;
6268 *,$language,*)
6269 echo " \`$other' language required by \`$language'; enabling" 1>&2
6270 enable_languages="${enable_languages},${other}"
6271 ;;
6272 esac
6273 done
e552509b
ILT
6274 for other in ${lang_requires_boot_languages} ; do
6275 if test "$other" != "c"; then
6276 case ,${enable_stage1_languages}, in
6277 *,$other,*) ;;
6278 *,all,*) ;;
6279 *)
6280 case ,${enable_languages}, in
6281 *,$language,*)
6282 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6283 enable_stage1_languages="$enable_stage1_languages,${other}"
6284 ;;
6285 esac
6286 ;;
6287 esac
6288 fi
6289 done
9e07f89d
NN
6290 ;;
6291 esac
6292 done
6293
9b134994 6294 new_enable_languages=,c,
700d40ca
ILT
6295
6296 # If LTO is enabled, add the LTO front end.
6297 extra_host_libiberty_configure_flags=
6298 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6299 case ,${enable_languages}, in
6300 *,lto,*) ;;
6301 *) enable_languages="${enable_languages},lto" ;;
6302 esac
a8eb3f0a 6303 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6304 configdirs="$configdirs lto-plugin"
6305 extra_host_libiberty_configure_flags=--enable-shared
6306 fi
6307 fi
6308
6309
9e07f89d 6310 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6311 potential_languages=,c,
9e07f89d 6312
9e1a94f4
ILT
6313 enabled_target_libs=
6314 disabled_target_libs=
6315
9e07f89d
NN
6316 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6317 case ${lang_frag} in
6318 ..) ;;
6319 # The odd quoting in the next line works around
6320 # an apparent bug in bash 1.12 on linux.
6321 ${srcdir}/gcc/[*]/config-lang.in) ;;
6322 *)
c6b750e1 6323 # From the config-lang.in, get $language, $target_libs,
1d39f329 6324 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6325 language=
6326 target_libs=
6327 lang_dirs=
64ce424c 6328 subdir_requires=
9b134994
PB
6329 boot_language=no
6330 build_by_default=yes
9e07f89d 6331 . ${lang_frag}
9b134994
PB
6332 if test x${language} = x; then
6333 echo "${lang_frag} doesn't set \$language." 1>&2
6334 exit 1
6335 fi
6336
1f53ca9a
AO
6337 if test "$language" = "c++" \
6338 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6339 boot_language=yes
6340 fi
6341
9b134994
PB
6342 case ,${enable_languages}, in
6343 *,${language},*)
9e07f89d
NN
6344 # Language was explicitly selected; include it.
6345 add_this_lang=yes
6346 ;;
9b134994
PB
6347 *,all,*)
6348 # 'all' was selected, select it if it is a default language
6349 add_this_lang=${build_by_default}
9e07f89d
NN
6350 ;;
6351 *)
6352 add_this_lang=no
6353 ;;
6354 esac
4b1cb4fe 6355
64ce424c 6356 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6357 for i in $subdir_requires; do
3d3adb43 6358 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6359 case ,${enable_languages}, in
6360 *,${language},*)
6361 # Specifically requested language; tell them.
81ecdfbb 6362 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6363 ;;
6364 *)
6365 # Silently disable.
9b134994 6366 add_this_lang=unsupported
64ce424c
PB
6367 ;;
6368 esac
6369 done
6370
9b134994
PB
6371 # Disable Ada if no preexisting GNAT is available.
6372 case ,${enable_languages},:${language}:${have_gnat} in
6373 *,${language},*:ada:no)
6374 # Specifically requested language; tell them.
81ecdfbb 6375 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6376 ;;
6377 *:ada:no)
6378 # Silently disable.
6379 add_this_lang=unsupported
6380 ;;
6381 esac
6382
59f7ec45
HPN
6383 # Disable a language that is unsupported by the target.
6384 case " $unsupported_languages " in
6385 *" $language "*)
9b134994 6386 add_this_lang=unsupported
59f7ec45
HPN
6387 ;;
6388 esac
6389
4b1cb4fe 6390 case $add_this_lang in
9b134994 6391 unsupported)
9e07f89d 6392 # Remove language-dependent dirs.
9e1a94f4
ILT
6393 disabled_target_libs="$disabled_target_libs $target_libs"
6394 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6395 ;;
9b134994
PB
6396 no)
6397 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6398 disabled_target_libs="$disabled_target_libs $target_libs"
6399 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6400 potential_languages="${potential_languages}${language},"
6401 ;;
6402 yes)
6403 new_enable_languages="${new_enable_languages}${language},"
6404 potential_languages="${potential_languages}${language},"
1d39f329 6405 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6406 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6407 case "${boot_language}:,$enable_stage1_languages," in
6408 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6409 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6410 case ",$stage1_languages," in
6411 *,$language,* | ,yes, | ,all,) ;;
6412 *) stage1_languages="${stage1_languages}${language}," ;;
6413 esac
e8a5fa9c
RW
6414 # We need to bootstrap any supporting libraries.
6415 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6416 ;;
6417 esac
6418 ;;
9e07f89d
NN
6419 esac
6420 ;;
6421 esac
6422 done
6423
9e1a94f4
ILT
6424 # Add target libraries which are only needed for disabled languages
6425 # to noconfigdirs.
6426 if test -n "$disabled_target_libs"; then
6427 for dir in $disabled_target_libs; do
6428 case " $enabled_target_libs " in
6429 *" ${dir} "*) ;;
6430 *) noconfigdirs="$noconfigdirs $dir" ;;
6431 esac
6432 done
6433 fi
6434
81ecdfbb
RW
6435 # Check whether --enable-stage1-languages was given.
6436if test "${enable_stage1_languages+set}" = set; then :
6437 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6438 ,no,|,,)
6439 # Set it to something that will have no effect in the loop below
6440 enable_stage1_languages=c ;;
6441 ,yes,)
6442 enable_stage1_languages=`echo $new_enable_languages | \
6443 sed -e "s/^,//" -e "s/,$//" ` ;;
6444 *,all,*)
6445 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6446 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6447 esac
6448
6449 # Add "good" languages from enable_stage1_languages to stage1_languages,
6450 # while "bad" languages go in missing_languages. Leave no duplicates.
6451 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6452 case $potential_languages in
6453 *,$i,*)
6454 case $stage1_languages in
6455 *,$i,*) ;;
6456 *) stage1_languages="$stage1_languages$i," ;;
6457 esac ;;
6458 *)
6459 case $missing_languages in
6460 *,$i,*) ;;
6461 *) missing_languages="$missing_languages$i," ;;
6462 esac ;;
6463 esac
6464 done
81ecdfbb
RW
6465fi
6466
9b134994
PB
6467
6468 # Remove leading/trailing commas that were added for simplicity
6469 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6470 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6471 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6472 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6473
9e07f89d 6474 if test "x$missing_languages" != x; then
81ecdfbb 6475 as_fn_error "
27258dd4 6476The following requested languages could not be built: ${missing_languages}
81ecdfbb 6477Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6478 fi
9e07f89d
NN
6479 if test "x$new_enable_languages" != "x$enable_languages"; then
6480 echo The following languages will be built: ${new_enable_languages}
9b134994 6481 enable_languages="$new_enable_languages"
9e07f89d 6482 fi
9b134994 6483
c6b750e1 6484
81ec575a 6485 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6486fi
6487
a6df5a19
PB
6488# Handle --disable-<component> generically.
6489for dir in $configdirs $build_configdirs $target_configdirs ; do
6490 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6491 varname=`echo $dirname | sed -e s/+/_/g`
6492 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6493 noconfigdirs="$noconfigdirs $dir"
6494 fi
6495done
6496
4f0ef2d8 6497# Check for Boehm's garbage collector
81ecdfbb
RW
6498# Check whether --enable-objc-gc was given.
6499if test "${enable_objc_gc+set}" = set; then :
6500 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6501 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6502 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6503 ;;
6504esac
81ecdfbb
RW
6505fi
6506
4f0ef2d8
CD
6507
6508# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6509case ,${enable_languages},:${enable_objc_gc} in
6510 *,objc,*:yes)
4f0ef2d8
CD
6511 # Keep target-boehm-gc if requested for Objective-C.
6512 ;;
4f0ef2d8 6513 *)
d42c4017
DA
6514 # Otherwise remove target-boehm-gc depending on target-libjava.
6515 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6516 noconfigdirs="$noconfigdirs target-boehm-gc"
6517 fi
4f0ef2d8
CD
6518 ;;
6519esac
6520
caeba88f
AL
6521# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6522# $build_configdirs and $target_configdirs.
9e07f89d
NN
6523# If we have the source for $noconfigdirs entries, add them to $notsupp.
6524
6525notsupp=""
6526for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6527 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6528 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6529 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6530 if test -r $srcdir/$dirname/configure ; then
6531 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6532 true
6533 else
6534 notsupp="$notsupp $dir"
6535 fi
6536 fi
6537 fi
caeba88f
AL
6538 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6539 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6540 if test -r $srcdir/$dirname/configure ; then
6541 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6542 true
6543 else
6544 notsupp="$notsupp $dir"
6545 fi
6546 fi
6547 fi
9e07f89d
NN
6548 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6549 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6550 if test -r $srcdir/$dirname/configure ; then
6551 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6552 true
6553 else
6554 notsupp="$notsupp $dir"
6555 fi
6556 fi
6557 fi
6558done
6559
6560# Sometimes the tools are distributed with libiberty but with no other
6561# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6562# Don't let libgcc imply libiberty either.
9e07f89d 6563if test -n "${target_configdirs}" ; then
f86e35b8 6564 libgcc=
9e07f89d
NN
6565 others=
6566 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6567 if test "$i" = "libgcc"; then
6568 libgcc=target-libgcc
6569 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6570 if test -r $srcdir/$i/configure ; then
6571 others=yes;
6572 break;
6573 fi
6574 fi
6575 done
6576 if test -z "${others}" ; then
f86e35b8 6577 target_configdirs=$libgcc
9e07f89d
NN
6578 fi
6579fi
6580
6581# Quietly strip out all directories which aren't configurable in this tree.
6582# This relies on all configurable subdirectories being autoconfiscated, which
6583# is now the case.
6a9cf61e
PB
6584build_configdirs_all="$build_configdirs"
6585build_configdirs=
6586for i in ${build_configdirs_all} ; do
c6b750e1 6587 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6588 if test -f ${srcdir}/$j/configure ; then
6589 build_configdirs="${build_configdirs} $i"
6590 fi
6591done
6592
9e07f89d
NN
6593configdirs_all="$configdirs"
6594configdirs=
6595for i in ${configdirs_all} ; do
6596 if test -f ${srcdir}/$i/configure ; then
6597 configdirs="${configdirs} $i"
6598 fi
6599done
6a9cf61e 6600
9e07f89d
NN
6601target_configdirs_all="$target_configdirs"
6602target_configdirs=
6603for i in ${target_configdirs_all} ; do
c6b750e1 6604 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6605 if test -f ${srcdir}/$j/configure ; then
6606 target_configdirs="${target_configdirs} $i"
6607 fi
6608done
6609
6610# Produce a warning message for the subdirs we can't configure.
6611# This isn't especially interesting in the Cygnus tree, but in the individual
6612# FSF releases, it's important to let people know when their machine isn't
6613# supported by the one or two programs in a package.
6614
6615if test -n "${notsupp}" && test -z "${norecursion}" ; then
6616 # If $appdirs is non-empty, at least one of those directories must still
6617 # be configured, or we error out. (E.g., if the gas release supports a
6618 # specified target in some subdirs but not the gas subdir, we shouldn't
6619 # pretend that all is well.)
6620 if test -n "$appdirs" ; then
6621 for dir in $appdirs ; do
6622 if test -r $dir/Makefile.in ; then
6623 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6624 appdirs=""
6625 break
6626 fi
6a9cf61e 6627 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6628 appdirs=""
6629 break
6630 fi
6631 fi
6632 done
6633 if test -n "$appdirs" ; then
6634 echo "*** This configuration is not supported by this package." 1>&2
6635 exit 1
6636 fi
6637 fi
6638 # Okay, some application will build, or we don't care to check. Still
6639 # notify of subdirs not getting built.
6640 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6641 echo " ${notsupp}" 1>&2
6642 echo " (Any other directories should still work fine.)" 1>&2
6643fi
6644
6645case "$host" in
6646 *msdosdjgpp*)
6647 enable_gdbtk=no ;;
6648esac
6649
18f6b6ee
PB
6650# To find our prefix, in gcc_cv_tool_prefix.
6651
6652# The user is always right.
6653if test "${PATH_SEPARATOR+set}" != set; then
6654 echo "#! /bin/sh" >conf$$.sh
6655 echo "exit 0" >>conf$$.sh
6656 chmod +x conf$$.sh
6657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6658 PATH_SEPARATOR=';'
6659 else
6660 PATH_SEPARATOR=:
6661 fi
6662 rm -f conf$$.sh
6663fi
6664
6665
6666
6667if test "x$exec_prefix" = xNONE; then
6668 if test "x$prefix" = xNONE; then
6669 gcc_cv_tool_prefix=$ac_default_prefix
6670 else
6671 gcc_cv_tool_prefix=$prefix
6672 fi
6673else
6674 gcc_cv_tool_prefix=$exec_prefix
6675fi
6676
6677# If there is no compiler in the tree, use the PATH only. In any
6678# case, if there is no compiler in the tree nobody should use
6679# AS_FOR_TARGET and LD_FOR_TARGET.
6680if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6681 gcc_version=`cat $srcdir/gcc/BASE-VER`
6682 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6683 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6684 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6685 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6686 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6687 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6688else
6689 gcc_cv_tool_dirs=
6690fi
6691
6692if test x$build = x$target && test -n "$md_exec_prefix"; then
6693 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6694fi
6695
6696
6697
9e07f89d
NN
6698copy_dirs=
6699
c6b750e1 6700
81ecdfbb
RW
6701# Check whether --with-build-sysroot was given.
6702if test "${with_build_sysroot+set}" = set; then :
6703 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6704 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6705 fi
6706else
6707 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6708fi
a19b6204
MM
6709
6710
8a6ee3ab 6711
81ecdfbb
RW
6712
6713# Check whether --with-debug-prefix-map was given.
6714if test "${with_debug_prefix_map+set}" = set; then :
6715 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6716 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6717 for debug_map in $withval; do
6718 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6719 done
6720 fi
6721else
6722 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6723fi
6724
8a6ee3ab
JM
6725
6726
7f6ef0c0
PB
6727# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6728# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6729# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6730# We want to ensure that TARGET libraries (which we know are built with
6731# gcc) are built with "-O2 -g", so include those options when setting
6732# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6733if test "x$CFLAGS_FOR_TARGET" = x; then
6734 CFLAGS_FOR_TARGET=$CFLAGS
6735 case " $CFLAGS " in
6736 *" -O2 "*) ;;
6737 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6738 esac
6739 case " $CFLAGS " in
6740 *" -g "* | *" -g3 "*) ;;
6741 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6742 esac
6743fi
6744
6745
6746if test "x$CXXFLAGS_FOR_TARGET" = x; then
6747 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6748 case " $CXXFLAGS " in
6749 *" -O2 "*) ;;
6750 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6751 esac
6752 case " $CXXFLAGS " in
6753 *" -g "* | *" -g3 "*) ;;
6754 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6755 esac
6756fi
6757
6758
9e07f89d
NN
6759# Handle --with-headers=XXX. If the value is not "yes", the contents of
6760# the named directory are copied to $(tooldir)/sys-include.
6761if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6762 if test x${is_cross_compiler} = xno ; then
6763 echo 1>&2 '***' --with-headers is only supported when cross compiling
6764 exit 1
6765 fi
6766 if test x"${with_headers}" != xyes ; then
18f6b6ee 6767 x=${gcc_cv_tool_prefix}
c6b750e1 6768 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6769 fi
6770fi
6771
6772# Handle --with-libs=XXX. If the value is not "yes", the contents of
6773# the name directories are copied to $(tooldir)/lib. Multiple directories
6774# are permitted.
6775if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6776 if test x${is_cross_compiler} = xno ; then
6777 echo 1>&2 '***' --with-libs is only supported when cross compiling
6778 exit 1
6779 fi
6780 if test x"${with_libs}" != xyes ; then
6781 # Copy the libraries in reverse order, so that files in the first named
6782 # library override files in subsequent libraries.
18f6b6ee 6783 x=${gcc_cv_tool_prefix}
9e07f89d 6784 for l in ${with_libs}; do
c6b750e1 6785 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6786 done
6787 fi
6788fi
6789
700d40ca 6790# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6791#
6792# This is done by determining whether or not the appropriate directory
6793# is available, and by checking whether or not specific configurations
6794# have requested that this magic not happen.
c6b750e1
DJ
6795#
6796# The command line options always override the explicit settings in
2429c060
PB
6797# configure.in, and the settings in configure.in override this magic.
6798#
c6b750e1 6799# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6800# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6801# --without-gnu-ld options for the configure script. Similarly, if
6802# the default is to use the included zlib and you don't want to do that,
6803# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6804
6805if test x${use_gnu_as} = x &&
6806 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6807 with_gnu_as=yes
6808 extra_host_args="$extra_host_args --with-gnu-as"
6809fi
6810
6811if test x${use_gnu_ld} = x &&
93f9b408 6812 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6813 with_gnu_ld=yes
6814 extra_host_args="$extra_host_args --with-gnu-ld"
6815fi
6816
700d40ca
ILT
6817if test x${use_included_zlib} = x &&
6818 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6819 :
6820else
6821 with_system_zlib=yes
6822 extra_host_args="$extra_host_args --with-system-zlib"
6823fi
6824
2429c060
PB
6825# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6826# can detect this case.
6827
6828if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6829 with_newlib=yes
6830 extra_host_args="$extra_host_args --with-newlib"
6831fi
6832
9e07f89d
NN
6833# Handle ${copy_dirs}
6834set fnord ${copy_dirs}
6835shift
6836while test $# != 0 ; do
6837 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6838 :
6839 else
6840 echo Copying $1 to $2
6841
6842 # Use the install script to create the directory and all required
6843 # parent directories.
6844 if test -d $2 ; then
6845 :
6846 else
6847 echo >config.temp
6848 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6849 fi
6850
6851 # Copy the directory, assuming we have tar.
6852 # FIXME: Should we use B in the second tar? Not all systems support it.
6853 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6854
6855 # It is the responsibility of the user to correctly adjust all
6856 # symlinks. If somebody can figure out how to handle them correctly
6857 # here, feel free to add the code.
6858
6859 echo $1 > $2/COPIED
6860 fi
6861 shift; shift
6862done
6863
2429c060
PB
6864# Determine a target-dependent exec_prefix that the installed
6865# gcc will search in. Keep this list sorted by triplet, with
6866# the *-*-osname triplets last.
6867md_exec_prefix=
6868case "${target}" in
6869 alpha*-*-*vms*)
6870 md_exec_prefix=/gnu/lib/gcc-lib
6871 ;;
521ec477 6872 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6873 md_exec_prefix=/dev/env/DJDIR/bin
6874 ;;
521ec477 6875 i[34567]86-*-sco3.2v5*)
2429c060
PB
6876 if test $with_gnu_as = yes; then
6877 md_exec_prefix=/usr/gnu/bin
6878 else
6879 md_exec_prefix=/usr/ccs/bin/elf
6880 fi
6881 ;;
6882
6883 mn10300-*-* | \
6884 powerpc-*-chorusos* | \
6885 powerpc*-*-eabi* | \
6886 powerpc*-*-sysv* | \
6887 powerpc*-*-kaos* | \
6888 s390x-ibm-tpf*)
6889 md_exec_prefix=/usr/ccs/bin
6890 ;;
6891 sparc64-*-elf*)
6892 ;;
6893 v850*-*-*)
6894 md_exec_prefix=/usr/ccs/bin
6895 ;;
8b66833e 6896 xtensa*-*-elf*)
2429c060
PB
6897 ;;
6898
6899 *-*-beos* | \
6900 *-*-elf* | \
6901 *-*-hpux* | \
6902 *-*-netware* | \
6903 *-*-nto-qnx* | \
6904 *-*-rtems* | \
6905 *-*-solaris2* | \
521ec477 6906 *-*-sysv[45]* | \
2429c060
PB
6907 *-*-vxworks* | \
6908 *-wrs-windiss)
6909 md_exec_prefix=/usr/ccs/bin
6910 ;;
6911esac
6912
a0da8069
NN
6913extra_arflags_for_target=
6914extra_nmflags_for_target=
6915extra_ranlibflags_for_target=
6916target_makefile_frag=/dev/null
6917case "${target}" in
4e206d7e
DB
6918 mep*-*-*)
6919 target_makefile_frag="config/mt-mep"
6920 ;;
77d7106f
AM
6921 spu-*-*)
6922 target_makefile_frag="config/mt-spu"
6923 ;;
429acdec
RS
6924 mips*-sde-elf*)
6925 target_makefile_frag="config/mt-sde"
6926 ;;
f3b1e08e
RS
6927 mipsisa*-*-elfoabi*)
6928 target_makefile_frag="config/mt-mips-elfoabi"
6929 ;;
e7c8859c
RS
6930 mips*-*-*linux* | mips*-*-gnu*)
6931 target_makefile_frag="config/mt-mips-gnu"
6932 ;;
2a3124ca 6933 *-*-netware*)
a0da8069
NN
6934 target_makefile_frag="config/mt-netware"
6935 ;;
29383458 6936 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6937 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6938 ;;
6939 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6940 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6941 # commands to handle both 32-bit and 64-bit objects. These flags are
6942 # harmless if we're using GNU nm or ar.
6943 extra_arflags_for_target=" -X32_64"
6944 extra_nmflags_for_target=" -B -X32_64"
6945 ;;
92f4e989
JM
6946 *-*-darwin[3-9]*)
6947 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6948 extra_ranlibflags_for_target=" -c"
6949 ;;
6950 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6951 target_makefile_frag="config/mt-wince"
6952 ;;
6953esac
6954
6955alphaieee_frag=/dev/null
6956case $target in
6957 alpha*-*-*)
6958 # This just makes sure to use the -mieee option to build target libs.
6959 # This should probably be set individually by each library.
6960 alphaieee_frag="config/mt-alphaieee"
6961 ;;
6962esac
6963
6964# If --enable-target-optspace always use -Os instead of -O2 to build
6965# the target libraries, similarly if it is not specified, use -Os
6966# on selected platforms.
6967ospace_frag=/dev/null
6968case "${enable_target_optspace}:${target}" in
6969 yes:*)
6970 ospace_frag="config/mt-ospace"
6971 ;;
6972 :d30v-*)
6973 ospace_frag="config/mt-d30v"
6974 ;;
6975 :m32r-* | :d10v-* | :fr30-*)
6976 ospace_frag="config/mt-ospace"
6977 ;;
6978 no:* | :*)
6979 ;;
6980 *)
6981 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6982 ;;
6983esac
6984
a0da8069
NN
6985# Default to using --with-stabs for certain targets.
6986if test x${with_stabs} = x ; then
6987 case "${target}" in
e31d1ea3 6988 mips*-*-irix[56]*)
a0da8069
NN
6989 ;;
6990 mips*-*-* | alpha*-*-osf*)
6991 with_stabs=yes;
6992 extra_host_args="${extra_host_args} --with-stabs"
6993 ;;
6994 esac
6995fi
6996
6997# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6998# them automatically.
6999case "${host}" in
c6b750e1 7000 hppa*64*-*-hpux11*)
a0da8069
NN
7001 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
7002 ;;
7003esac
7004
a0da8069
NN
7005# Some systems (e.g., one of the i386-aix systems the gas testers are
7006# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7007tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7008build_tooldir=${tooldir}
7009
a0da8069
NN
7010# Create a .gdbinit file which runs the one in srcdir
7011# and tells GDB to look there for source files.
7012
7013if test -r ${srcdir}/.gdbinit ; then
7014 case ${srcdir} in
7015 .) ;;
7016 *) cat > ./.gdbinit <<EOF
7017# ${NO_EDIT}
7018dir ${srcdir}
7019dir .
7020source ${srcdir}/.gdbinit
7021EOF
7022 ;;
7023 esac
7024fi
7025
a0da8069
NN
7026# Make sure that the compiler is able to generate an executable. If it
7027# can't, we are probably in trouble. We don't care whether we can run the
7028# executable--we might be using a cross compiler--we only care whether it
7029# can be created. At this point the main configure script has set CC.
7030we_are_ok=no
7031echo "int main () { return 0; }" > conftest.c
7032${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7033if test $? = 0 ; then
7034 if test -s conftest || test -s conftest.exe ; then
7035 we_are_ok=yes
7036 fi
c6b750e1 7037fi
a0da8069
NN
7038case $we_are_ok in
7039 no)
7040 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7041 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7042 rm -f conftest*
7043 exit 1
7044 ;;
7045esac
7046rm -f conftest*
7047
7048# The Solaris /usr/ucb/cc compiler does not appear to work.
7049case "${host}" in
7050 sparc-sun-solaris2*)
7051 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
7052 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
7053 could_use=
7054 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
7055 if test -d /opt/cygnus/bin ; then
7056 if test "$could_use" = "" ; then
7057 could_use="/opt/cygnus/bin"
7058 else
7059 could_use="$could_use or /opt/cygnus/bin"
7060 fi
7061 fi
7062 if test "$could_use" = "" ; then
7063 echo "Warning: compilation may fail because you're using"
7064 echo "/usr/ucb/cc. You should change your PATH or CC "
7065 echo "variable and rerun configure."
7066 else
7067 echo "Warning: compilation may fail because you're using"
7068 echo "/usr/ucb/cc, when you should use the C compiler from"
7069 echo "$could_use. You should change your"
7070 echo "PATH or CC variable and rerun configure."
7071 fi
7072 fi
7073 ;;
7074esac
7075
3bbd2f8f 7076# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7077case "${host}" in
7078 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 7079 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7080 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7081 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7082esac
7083
3bbd2f8f 7084# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7085# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7086# built executables to PATH.
3bbd2f8f
AL
7087if test "$RPATH_ENVVAR" = PATH; then
7088 GCC_SHLIB_SUBDIR=/shlib
7089else
7090 GCC_SHLIB_SUBDIR=
7091fi
7092
a0da8069
NN
7093# Record target_configdirs and the configure arguments for target and
7094# build configuration in Makefile.
7095target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7096build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 7097
2aa2364a
JR
7098# If we are building libgomp, bootstrap it.
7099if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7100 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7101fi
7102
a0da8069
NN
7103# Determine whether gdb needs tk/tcl or not.
7104# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7105# and in that case we want gdb to be built without tk. Ugh!
7106# In fact I believe gdb is the *only* package directly dependent on tk,
7107# so we should be able to put the 'maybe's in unconditionally and
7108# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7109# 100% sure that that's safe though.
c180f501 7110
675c6968 7111gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7112case "$enable_gdbtk" in
7113 no)
7114 GDB_TK="" ;;
c180f501
AC
7115 yes)
7116 GDB_TK="${gdb_tk}" ;;
a0da8069 7117 *)
c180f501
AC
7118 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7119 # distro. Eventually someone will fix this and move Insight, nee
7120 # gdbtk to a separate directory.
7121 if test -d ${srcdir}/gdb/gdbtk ; then
7122 GDB_TK="${gdb_tk}"
7123 else
7124 GDB_TK=""
7125 fi
7126 ;;
a0da8069 7127esac
907be67c
DJ
7128CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7129INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7130
6bd3dfaa 7131# Strip out unwanted targets.
dd12c3a8
NN
7132
7133# While at that, we remove Makefiles if we were started for recursive
7134# configuration, so that the top-level Makefile reconfigures them,
7135# like we used to do when configure itself was recursive.
dd12c3a8 7136
06a51eac
RW
7137# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7138# but now we're fixing up the Makefile ourselves with the additional
7139# commands passed to AC_CONFIG_FILES. Use separate variables
7140# extrasub-{build,host,target} not because there is any reason to split
7141# the substitutions up that way, but only to remain below the limit of
7142# 99 commands in a script, for HP-UX sed.
7143# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7144
81ecdfbb
RW
7145# Check whether --enable-bootstrap was given.
7146if test "${enable_bootstrap+set}" = set; then :
7147 enableval=$enable_bootstrap;
319cab08 7148else
9cb3fa6f 7149 enable_bootstrap=default
81ecdfbb
RW
7150fi
7151
319cab08 7152
9cb3fa6f
PB
7153# Issue errors and warnings for invalid/strange bootstrap combinations.
7154case "$configdirs" in
7155 *gcc*) have_compiler=yes ;;
7156 *) have_compiler=no ;;
7157esac
7158
7159case "$have_compiler:$host:$target:$enable_bootstrap" in
7160 *:*:*:no) ;;
7161
0aed8855 7162 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
7163 # and we are in a native configuration.
7164 yes:$build:$build:default)
0aed8855 7165 enable_bootstrap=yes ;;
9cb3fa6f
PB
7166
7167 *:*:*:default)
7168 enable_bootstrap=no ;;
7169
7170 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 7171 yes:$build:$build:yes)
9cb3fa6f
PB
7172 ;;
7173
7174 # Other configurations, but we have a compiler. Assume the user knows
7175 # what he's doing.
80911fe1 7176 yes:*:*:yes)
81ecdfbb
RW
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7178$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
7179 ;;
7180
7181 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 7182 no:*:*:yes)
81ecdfbb 7183 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
7184
7185 # Fail if wrong command line
7186 *)
81ecdfbb 7187 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
7188 ;;
7189esac
7190
4385ad3c
RW
7191case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7192 *,c++,*:yes:yes) ;;
7193 *:yes:yes)
7194 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7195 ;;
7196esac
7197
16b1ad29
RW
7198case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7199 yes:yes:*\ gold\ *:*,c++,*) ;;
7200 yes:yes:*\ gold\ *:*)
7201 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7202 ;;
7203esac
7204
9cb3fa6f 7205# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7206case $enable_bootstrap in
319cab08 7207 yes)
96655cc4
AO
7208 bootstrap_suffix=bootstrap
7209 BUILD_CONFIG=bootstrap-debug
7210 ;;
319cab08 7211 no)
96655cc4
AO
7212 bootstrap_suffix=no-bootstrap
7213 BUILD_CONFIG=
7214 ;;
319cab08
PB
7215esac
7216
96655cc4
AO
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7218$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7219
7220
7221# Check whether --with-build-config was given.
7222if test "${with_build_config+set}" = set; then :
7223 withval=$with_build_config; case $with_build_config in
7224 yes) with_build_config= ;;
7225 no) with_build_config= BUILD_CONFIG= ;;
7226 esac
7227fi
7228
7229
7230if test "x${with_build_config}" != x; then
7231 BUILD_CONFIG=$with_build_config
7232else
7233 case $BUILD_CONFIG in
7234 bootstrap-debug)
7235 if echo "int f (void) { return 0; }" > conftest.c &&
7236 ${CC} -c conftest.c &&
7237 mv conftest.o conftest.o.g0 &&
7238 ${CC} -c -g conftest.c &&
7239 mv conftest.o conftest.o.g &&
a009f2e7 7240 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7241 :
7242 else
7243 BUILD_CONFIG=
7244 fi
7245 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7246 ;;
7247 esac
7248fi
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7250$as_echo "$BUILD_CONFIG" >&6; }
7251
7252
06a51eac 7253extrasub_build=
6a9cf61e 7254for module in ${build_configdirs} ; do
498d4a71
CF
7255 if test -z "${no_recursion}" \
7256 && test -f ${build_subdir}/${module}/Makefile; then
7257 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7258 rm -f ${build_subdir}/${module}/Makefile
7259 fi
06a51eac 7260 extrasub_build="$extrasub_build
498d4a71
CF
7261/^@if build-$module\$/d
7262/^@endif build-$module\$/d
7263/^@if build-$module-$bootstrap_suffix\$/d
7264/^@endif build-$module-$bootstrap_suffix\$/d"
7265done
06a51eac 7266extrasub_host=
498d4a71 7267for module in ${configdirs} ; do
80911fe1 7268 if test -z "${no_recursion}"; then
8cf39b1b 7269 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7270 if test -f ${file}; then
7271 echo 1>&2 "*** removing ${file} to force reconfigure"
7272 rm -f ${file}
7273 fi
7274 done
498d4a71 7275 fi
06a51eac 7276 extrasub_host="$extrasub_host
498d4a71
CF
7277/^@if $module\$/d
7278/^@endif $module\$/d
7279/^@if $module-$bootstrap_suffix\$/d
7280/^@endif $module-$bootstrap_suffix\$/d"
7281done
06a51eac 7282extrasub_target=
498d4a71
CF
7283for module in ${target_configdirs} ; do
7284 if test -z "${no_recursion}" \
7285 && test -f ${target_subdir}/${module}/Makefile; then
7286 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7287 rm -f ${target_subdir}/${module}/Makefile
7288 fi
e8a5fa9c
RW
7289
7290 # We only bootstrap target libraries listed in bootstrap_target_libs.
7291 case $bootstrap_target_libs in
7292 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7293 *) target_bootstrap_suffix=no-bootstrap ;;
7294 esac
7295
06a51eac 7296 extrasub_target="$extrasub_target
498d4a71
CF
7297/^@if target-$module\$/d
7298/^@endif target-$module\$/d
e8a5fa9c
RW
7299/^@if target-$module-$target_bootstrap_suffix\$/d
7300/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7301done
7302
06a51eac
RW
7303# Do the final fixup along with target modules.
7304extrasub_target="$extrasub_target
6bd3dfaa 7305/^@if /,/^@endif /d"
a0da8069
NN
7306
7307# Create the serialization dependencies. This uses a temporary file.
7308
81ecdfbb
RW
7309# Check whether --enable-serial-configure was given.
7310if test "${enable_serial_configure+set}" = set; then :
7311 enableval=$enable_serial_configure;
7312fi
e6bfb94a
AO
7313
7314
1047cb91
DD
7315case ${enable_serial_configure} in
7316 yes)
7317 enable_serial_build_configure=yes
7318 enable_serial_host_configure=yes
7319 enable_serial_target_configure=yes
7320 ;;
7321esac
7322
a0da8069
NN
7323# These force 'configure's to be done one at a time, to avoid problems
7324# with contention over a shared config.cache.
7325rm -f serdep.tmp
e6bfb94a 7326echo '# serdep.tmp' > serdep.tmp
a0da8069 7327olditem=
1047cb91 7328test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7329for item in ${build_configdirs} ; do
7330 case ${olditem} in
7331 "") ;;
e6bfb94a 7332 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7333 esac
7334 olditem=${item}
7335done
7336olditem=
1047cb91 7337test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7338for item in ${configdirs} ; do
7339 case ${olditem} in
7340 "") ;;
e6bfb94a 7341 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7342 esac
7343 olditem=${item}
7344done
7345olditem=
1047cb91 7346test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7347for item in ${target_configdirs} ; do
7348 case ${olditem} in
7349 "") ;;
e6bfb94a 7350 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7351 esac
7352 olditem=${item}
7353done
7354serialization_dependencies=serdep.tmp
7355
7356
e6bfb94a 7357# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7358# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7359# might not want to pass down to subconfigures. The exception being
7360# --cache-file=/dev/null, which is used to turn off the use of cache
7361# files altogether, and which should be passed on to subconfigures.
7362# Also strip program-prefix, program-suffix, and program-transform-name,
7363# so that we can pass down a consistent program-transform-name.
c6b750e1 7364baseargs=
65b4571a 7365tbaseargs=
c6b750e1
DJ
7366keep_next=no
7367skip_next=no
7368eval "set -- $ac_configure_args"
18f6b6ee
PB
7369for ac_arg
7370do
c6b750e1
DJ
7371 if test X"$skip_next" = X"yes"; then
7372 skip_next=no
7373 continue
7374 fi
7375 if test X"$keep_next" = X"yes"; then
7376 case $ac_arg in
7377 *\'*)
7378 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7379 esac
7380 baseargs="$baseargs '$ac_arg'"
65b4571a 7381 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7382 keep_next=no
7383 continue
7384 fi
7385
7386 # Handle separated arguments. Based on the logic generated by
7387 # autoconf 2.59.
7388 case $ac_arg in
7389 *=* | --config-cache | -C | -disable-* | --disable-* \
7390 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7391 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7392 | -with-* | --with-* | -without-* | --without-* | --x)
7393 separate_arg=no
7394 ;;
7395 -*)
7396 separate_arg=yes
7397 ;;
7398 *)
7399 separate_arg=no
7400 ;;
7401 esac
7402
65b4571a
AO
7403 skip_targ=no
7404 case $ac_arg in
7405
7406 --with-* | --without-*)
7407 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7408
7409 case $libopt in
7410 *[-_]include)
7411 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7412 ;;
7413 *[-_]lib)
7414 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7415 ;;
7416 *)
7417 lib=$libopt
7418 ;;
7419 esac
7420
7421
7422 case $lib in
7423 mpc | mpfr | gmp | ppl | cloog)
7424 # If we're processing --with-$lib, --with-$lib-include or
7425 # --with-$lib-lib, for one of the libs above, and target is
7426 # different from host, don't pass the current argument to any
7427 # target library's configure.
7428 if test x$is_cross_compiler = xyes; then
7429 skip_targ=yes
7430 fi
7431 ;;
7432 esac
7433 ;;
7434 esac
7435
c6b750e1 7436 case "$ac_arg" in
30167e0a
NC
7437 --cache-file=/dev/null | \
7438 -cache-file=/dev/null )
7439 # Handled here to avoid the test to skip args below.
7440 baseargs="$baseargs '$ac_arg'"
65b4571a 7441 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7442 # Assert: $separate_arg should always be no.
7443 keep_next=$separate_arg
7444 ;;
c6b750e1
DJ
7445 --no*)
7446 continue
7447 ;;
7448 --c* | \
7449 --sr* | \
7450 --ho* | \
7451 --bu* | \
7452 --t* | \
7453 --program-* | \
7454 -cache_file* | \
7455 -srcdir* | \
7456 -host* | \
7457 -build* | \
7458 -target* | \
7459 -program-prefix* | \
7460 -program-suffix* | \
7461 -program-transform-name* )
7462 skip_next=$separate_arg
7463 continue
7464 ;;
7465 -*)
7466 # An option. Add it.
7467 case $ac_arg in
7468 *\'*)
7469 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7470 esac
7471 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7472 if test X"$skip_targ" = Xno; then
7473 tbaseargs="$tbaseargs '$ac_arg'"
7474 fi
c6b750e1
DJ
7475 keep_next=$separate_arg
7476 ;;
7477 *)
7478 # Either a variable assignment, or a nonopt (triplet). Don't
7479 # pass it down; let the Makefile handle this.
7480 continue
7481 ;;
7482 esac
7483done
7484# Remove the initial space we just introduced and, as these will be
7485# expanded by make, quote '$'.
7486baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7487
f27d4f92
DJ
7488# Add in --program-transform-name, after --program-prefix and
7489# --program-suffix have been applied to it. Autoconf has already
7490# doubled dollar signs and backslashes in program_transform_name; we want
7491# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7492# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7493# Also, because we want to override the logic in subdir configure scripts to
7494# choose program_transform_name, replace any s,x,x, with s,y,y,.
7495sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7496${program_transform_name}
7497EOF_SED
7498gcc_transform_name=`cat conftestsed.out`
7499rm -f conftestsed.out
7500baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7501tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7502if test "$silent" = yes; then
7503 baseargs="$baseargs --silent"
65b4571a 7504 tbaseargs="$tbaseargs --silent"
2444379b 7505fi
34a0f3cf 7506baseargs="$baseargs --disable-option-checking"
65b4571a 7507tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7508
4074d5f2
RW
7509# Record and document user additions to sub configure arguments.
7510
7511
7512
7513
a0da8069
NN
7514# For the build-side libraries, we just need to pretend we're native,
7515# and not use the same cache file. Multilibs are neither needed nor
7516# desired.
4074d5f2 7517build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7518
7519# For host modules, accept cache file option, or specification as blank.
7520case "${cache_file}" in
7521"") # empty
7522 cache_file_option="" ;;
7523/* | [A-Za-z]:[\\/]* ) # absolute path
7524 cache_file_option="--cache-file=${cache_file}" ;;
7525*) # relative path
7526 cache_file_option="--cache-file=../${cache_file}" ;;
7527esac
7528
82252c06
NN
7529# Host dirs don't like to share a cache file either, horribly enough.
7530# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7531host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7532
65b4571a 7533target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7534
7535# Passing a --with-cross-host argument lets the target libraries know
7536# whether they are being built with a cross-compiler or being built
7537# native. However, it would be better to use other mechanisms to make the
7538# sorts of decisions they want to make on this basis. Please consider
7539# this option to be deprecated. FIXME.
7540if test x${is_cross_compiler} = xyes ; then
c6b750e1 7541 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7542fi
7543
938d2b74
RW
7544# Default to --enable-multilib.
7545if test x${enable_multilib} = x ; then
a0da8069 7546 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7547fi
a0da8069
NN
7548
7549# Pass --with-newlib if appropriate. Note that target_configdirs has
7550# changed from the earlier setting of with_newlib.
7551if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7552 target_configargs="--with-newlib ${target_configargs}"
7553fi
7554
95036d20
NN
7555# Different target subdirs use different values of certain variables
7556# (notably CXX). Worse, multilibs use *lots* of different values.
7557# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7558# it doesn't automatically accept command-line overrides of them.
7559# This means it's not safe for target subdirs to share a cache file,
7560# which is disgusting, but there you have it. Hopefully this can be
7561# fixed in future. It's still worthwhile to use a cache file for each
7562# directory. I think.
7563
ae380b45
MS
7564# Pass the appropriate --build, --host, --target and --cache-file arguments.
7565# We need to pass --target, as newer autoconf's requires consistency
7566# for target_alias and gcc doesn't manage it consistently.
4b900473 7567target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7568
a0da8069
NN
7569FLAGS_FOR_TARGET=
7570case " $target_configdirs " in
7571 *" newlib "*)
7572 case " $target_configargs " in
7573 *" --with-newlib "*)
7574 case "$target" in
1f53ca9a
AO
7575 *-cygwin*)
7576 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'
7577 ;;
a0da8069
NN
7578 esac
7579
7580 # If we're not building GCC, don't discard standard headers.
7581 if test -d ${srcdir}/gcc; then
7582 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7583
7584 if test "${build}" != "${host}"; then
7585 # On Canadian crosses, CC_FOR_TARGET will have already been set
7586 # by `configure', so we won't have an opportunity to add -Bgcc/
7587 # to it. This is right: we don't want to search that directory
7588 # for binaries, but we want the header files in there, so add
7589 # them explicitly.
e552509b 7590 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7591
7592 # Someone might think of using the pre-installed headers on
7593 # Canadian crosses, in case the installed compiler is not fully
7594 # compatible with the compiler being built. In this case, it
7595 # would be better to flag an error than risking having
7596 # incompatible object files being constructed. We can't
7597 # guarantee that an error will be flagged, but let's hope the
7598 # compiler will do it, when presented with incompatible header
7599 # files.
7600 fi
7601 fi
7602
7603 case "${target}-${is_cross_compiler}" in
ec11bdc6 7604 i[3456789]86-*-linux*-no)
a0da8069
NN
7605 # Here host == target, so we don't need to build gcc,
7606 # so we don't want to discard standard headers.
7607 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7608 ;;
7609 *)
7610 # If we're building newlib, use its generic headers last, but search
7611 # for any libc-related directories first (so make it the last -B
7612 # switch).
7613 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
7614
7615 # If we're building libgloss, find the startup file, simulator library
7616 # and linker script.
7617 case " $target_configdirs " in
7618 *" libgloss "*)
7619 # Look for startup file, simulator library and maybe linker script.
7620 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7621 # Look for libnosys.a in case the target needs it.
7622 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7623 # Most targets have the linker script in the source directory.
7624 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7625 ;;
7626 esac
a0da8069
NN
7627 ;;
7628 esac
7629 ;;
7630 esac
7631 ;;
7632esac
1f53ca9a 7633
45055374 7634case "$target" in
1f53ca9a
AO
7635 x86_64-*mingw* | *-w64-mingw*)
7636 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7637 # however, use a symlink named 'mingw' in ${prefix} .
7638 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7639 ;;
7640 *-mingw*)
7641 # MinGW can't be handled as Cygwin above since it does not use newlib.
7642 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'
7643 ;;
45055374 7644esac
a0da8069 7645
5fbad20a
DD
7646# Allow the user to override the flags for
7647# our build compiler if desired.
c66487f8
NC
7648if test x"${build}" = x"${host}" ; then
7649 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7650 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7651 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7652fi
5fbad20a 7653
a0da8069
NN
7654# On Canadian crosses, we'll be searching the right directories for
7655# the previously-installed cross compiler, so don't bother to add
7656# flags for directories within the install tree of the compiler
7657# being built; programs in there won't even run.
7658if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7659 # Search for pre-installed headers if nothing else fits.
bba45b8b 7660 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
7661fi
7662
7663if test "x${use_gnu_ld}" = x &&
7664 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7665 # Arrange for us to find uninstalled linker scripts.
b00612cc 7666 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7667fi
7668
a481dbb7
DD
7669# Search for other target-specific linker scripts and such.
7670case "${target}" in
4e206d7e
DB
7671 mep*)
7672 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7673 ;;
7674esac
7675
a0da8069 7676# Makefile fragments.
3e707e94
PB
7677for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7678do
7679 eval fragval=\$$frag
7680 if test $fragval != /dev/null; then
7681 eval $frag=${srcdir}/$fragval
7682 fi
7683done
a0da8069
NN
7684
7685
7686
7687
7688
7689# Miscellanea: directories, flags, etc.
7690
7691
7692
7693
7694
7695
7696
3bbd2f8f 7697
6a9cf61e 7698# Build module lists & subconfigure args.
a0da8069
NN
7699
7700
7701
be01d343
PB
7702# Host module lists & subconfigure args.
7703
7704
7705
911e63d0 7706
be01d343
PB
7707# Target module lists & subconfigure args.
7708
7709
7710
7711# Build tools.
7712
7713
7714
1576798e
PB
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
e552509b 7729
be01d343
PB
7730# Generate default definitions for YACC, M4, LEX and other programs that run
7731# on the build machine. These are used if the Makefile can't locate these
7732# programs in objdir.
7733MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7734
7735for ac_prog in 'bison -y' byacc yacc
7736do
c6b750e1 7737 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7738set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740$as_echo_n "checking for $ac_word... " >&6; }
7741if test "${ac_cv_prog_YACC+set}" = set; then :
7742 $as_echo_n "(cached) " >&6
be01d343
PB
7743else
7744 if test -n "$YACC"; then
7745 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7746else
c6b750e1
DJ
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7754 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7756 break 2
7757 fi
7758done
81ecdfbb
RW
7759 done
7760IFS=$as_save_IFS
c6b750e1 7761
be01d343
PB
7762fi
7763fi
c6b750e1 7764YACC=$ac_cv_prog_YACC
be01d343 7765if test -n "$YACC"; then
81ecdfbb
RW
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7767$as_echo "$YACC" >&6; }
be01d343 7768else
81ecdfbb
RW
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770$as_echo "no" >&6; }
be01d343
PB
7771fi
7772
81ecdfbb 7773
c6b750e1 7774 test -n "$YACC" && break
be01d343
PB
7775done
7776test -n "$YACC" || YACC="$MISSING bison -y"
7777
7778case " $build_configdirs " in
7779 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7780 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7781esac
7782
7783for ac_prog in bison
7784do
c6b750e1 7785 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7786set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788$as_echo_n "checking for $ac_word... " >&6; }
7789if test "${ac_cv_prog_BISON+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
be01d343
PB
7791else
7792 if test -n "$BISON"; then
7793 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7794else
c6b750e1
DJ
7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7802 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7804 break 2
7805 fi
7806done
81ecdfbb
RW
7807 done
7808IFS=$as_save_IFS
c6b750e1 7809
be01d343
PB
7810fi
7811fi
c6b750e1 7812BISON=$ac_cv_prog_BISON
be01d343 7813if test -n "$BISON"; then
81ecdfbb
RW
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7815$as_echo "$BISON" >&6; }
be01d343 7816else
81ecdfbb
RW
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818$as_echo "no" >&6; }
be01d343
PB
7819fi
7820
81ecdfbb 7821
c6b750e1 7822 test -n "$BISON" && break
be01d343
PB
7823done
7824test -n "$BISON" || BISON="$MISSING bison"
7825
7826case " $build_configdirs " in
7827 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7828esac
7829
7830for ac_prog in gm4 gnum4 m4
7831do
c6b750e1 7832 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7833set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835$as_echo_n "checking for $ac_word... " >&6; }
7836if test "${ac_cv_prog_M4+set}" = set; then :
7837 $as_echo_n "(cached) " >&6
be01d343
PB
7838else
7839 if test -n "$M4"; then
7840 ac_cv_prog_M4="$M4" # Let the user override the test.
7841else
c6b750e1
DJ
7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7849 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7851 break 2
7852 fi
7853done
81ecdfbb
RW
7854 done
7855IFS=$as_save_IFS
c6b750e1 7856
be01d343
PB
7857fi
7858fi
c6b750e1 7859M4=$ac_cv_prog_M4
be01d343 7860if test -n "$M4"; then
81ecdfbb
RW
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7862$as_echo "$M4" >&6; }
be01d343 7863else
81ecdfbb
RW
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865$as_echo "no" >&6; }
be01d343
PB
7866fi
7867
81ecdfbb 7868
c6b750e1 7869 test -n "$M4" && break
be01d343
PB
7870done
7871test -n "$M4" || M4="$MISSING m4"
7872
7873case " $build_configdirs " in
7874 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7875esac
7876
7877for ac_prog in flex lex
7878do
c6b750e1 7879 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7880set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882$as_echo_n "checking for $ac_word... " >&6; }
7883if test "${ac_cv_prog_LEX+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
be01d343
PB
7885else
7886 if test -n "$LEX"; then
7887 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7888else
c6b750e1
DJ
7889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890for as_dir in $PATH
7891do
7892 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7896 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7898 break 2
7899 fi
7900done
81ecdfbb
RW
7901 done
7902IFS=$as_save_IFS
c6b750e1 7903
be01d343
PB
7904fi
7905fi
c6b750e1 7906LEX=$ac_cv_prog_LEX
be01d343 7907if test -n "$LEX"; then
81ecdfbb
RW
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7909$as_echo "$LEX" >&6; }
be01d343 7910else
81ecdfbb
RW
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912$as_echo "no" >&6; }
be01d343
PB
7913fi
7914
81ecdfbb 7915
c6b750e1 7916 test -n "$LEX" && break
be01d343
PB
7917done
7918test -n "$LEX" || LEX="$MISSING flex"
7919
7920case " $build_configdirs " in
7921 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7922 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7923esac
7924
7925for ac_prog in flex
7926do
c6b750e1 7927 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7928set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930$as_echo_n "checking for $ac_word... " >&6; }
7931if test "${ac_cv_prog_FLEX+set}" = set; then :
7932 $as_echo_n "(cached) " >&6
be01d343
PB
7933else
7934 if test -n "$FLEX"; then
7935 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7936else
c6b750e1
DJ
7937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938for as_dir in $PATH
7939do
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7944 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7946 break 2
7947 fi
7948done
81ecdfbb
RW
7949 done
7950IFS=$as_save_IFS
c6b750e1 7951
be01d343
PB
7952fi
7953fi
c6b750e1 7954FLEX=$ac_cv_prog_FLEX
be01d343 7955if test -n "$FLEX"; then
81ecdfbb
RW
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7957$as_echo "$FLEX" >&6; }
be01d343 7958else
81ecdfbb
RW
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960$as_echo "no" >&6; }
be01d343
PB
7961fi
7962
81ecdfbb 7963
c6b750e1 7964 test -n "$FLEX" && break
be01d343
PB
7965done
7966test -n "$FLEX" || FLEX="$MISSING flex"
7967
7968case " $build_configdirs " in
7969 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7970esac
7971
7972for ac_prog in makeinfo
7973do
c6b750e1 7974 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7975set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977$as_echo_n "checking for $ac_word... " >&6; }
7978if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
be01d343
PB
7980else
7981 if test -n "$MAKEINFO"; then
7982 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7983else
c6b750e1
DJ
7984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985for as_dir in $PATH
7986do
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7991 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7993 break 2
7994 fi
7995done
81ecdfbb
RW
7996 done
7997IFS=$as_save_IFS
c6b750e1 7998
be01d343
PB
7999fi
8000fi
c6b750e1 8001MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8002if test -n "$MAKEINFO"; then
81ecdfbb
RW
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8004$as_echo "$MAKEINFO" >&6; }
be01d343 8005else
81ecdfbb
RW
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007$as_echo "no" >&6; }
be01d343
PB
8008fi
8009
81ecdfbb 8010
c6b750e1 8011 test -n "$MAKEINFO" && break
be01d343
PB
8012done
8013test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8014
8015case " $build_configdirs " in
8016 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8017 *)
8018
10ad8ef3 8019 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8020 # higher, else we use the "missing" dummy.
8021 if ${MAKEINFO} --version \
10ad8ef3 8022 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8023 :
8024 else
8025 MAKEINFO="$MISSING makeinfo"
8026 fi
8027 ;;
8028
8029esac
a0da8069 8030
be01d343 8031# FIXME: expect and dejagnu may become build tools?
a0da8069 8032
be01d343
PB
8033for ac_prog in expect
8034do
c6b750e1 8035 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8036set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038$as_echo_n "checking for $ac_word... " >&6; }
8039if test "${ac_cv_prog_EXPECT+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
be01d343
PB
8041else
8042 if test -n "$EXPECT"; then
8043 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8044else
c6b750e1
DJ
8045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046for as_dir in $PATH
8047do
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8052 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8054 break 2
8055 fi
8056done
81ecdfbb
RW
8057 done
8058IFS=$as_save_IFS
c6b750e1 8059
be01d343
PB
8060fi
8061fi
c6b750e1 8062EXPECT=$ac_cv_prog_EXPECT
be01d343 8063if test -n "$EXPECT"; then
81ecdfbb
RW
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8065$as_echo "$EXPECT" >&6; }
be01d343 8066else
81ecdfbb
RW
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068$as_echo "no" >&6; }
be01d343 8069fi
a0da8069 8070
81ecdfbb 8071
c6b750e1 8072 test -n "$EXPECT" && break
be01d343
PB
8073done
8074test -n "$EXPECT" || EXPECT="expect"
a0da8069 8075
be01d343
PB
8076case " $configdirs " in
8077 *" expect "*)
8078 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8079 ;;
8080esac
a0da8069 8081
be01d343
PB
8082for ac_prog in runtest
8083do
c6b750e1 8084 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8085set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087$as_echo_n "checking for $ac_word... " >&6; }
8088if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
be01d343
PB
8090else
8091 if test -n "$RUNTEST"; then
8092 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8093else
c6b750e1
DJ
8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095for as_dir in $PATH
8096do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8101 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8103 break 2
8104 fi
8105done
81ecdfbb
RW
8106 done
8107IFS=$as_save_IFS
c6b750e1 8108
be01d343
PB
8109fi
8110fi
c6b750e1 8111RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8112if test -n "$RUNTEST"; then
81ecdfbb
RW
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8114$as_echo "$RUNTEST" >&6; }
be01d343 8115else
81ecdfbb
RW
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117$as_echo "no" >&6; }
be01d343 8118fi
a0da8069 8119
81ecdfbb 8120
c6b750e1 8121 test -n "$RUNTEST" && break
be01d343
PB
8122done
8123test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8124
be01d343
PB
8125case " $configdirs " in
8126 *" dejagnu "*)
6b89cc21 8127 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8128 ;;
8129esac
a0da8069
NN
8130
8131
a0da8069 8132# Host tools.
859789af
AC
8133ncn_tool_prefix=
8134test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8135ncn_target_tool_prefix=
8136test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8137
9a819804
AO
8138
8139
8140if test -n "$AR"; then
8141 ac_cv_prog_AR=$AR
8142elif test -n "$ac_cv_prog_AR"; then
8143 AR=$ac_cv_prog_AR
8144fi
8145
8146if test -n "$ac_cv_prog_AR"; then
8147 for ncn_progname in ar; do
8148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8149set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151$as_echo_n "checking for $ac_word... " >&6; }
8152if test "${ac_cv_prog_AR+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
9a819804
AO
8154else
8155 if test -n "$AR"; then
8156 ac_cv_prog_AR="$AR" # Let the user override the test.
8157else
8158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159for as_dir in $PATH
8160do
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8165 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8167 break 2
8168 fi
8169done
81ecdfbb
RW
8170 done
8171IFS=$as_save_IFS
9a819804
AO
8172
8173fi
8174fi
8175AR=$ac_cv_prog_AR
8176if test -n "$AR"; then
81ecdfbb
RW
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8178$as_echo "$AR" >&6; }
9a819804 8179else
81ecdfbb
RW
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181$as_echo "no" >&6; }
9a819804
AO
8182fi
8183
81ecdfbb 8184
9a819804
AO
8185 done
8186fi
8187
8188for ncn_progname in ar; do
05cbd757
PB
8189 if test -n "$ncn_tool_prefix"; then
8190 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8191set dummy ${ncn_tool_prefix}${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_AR+set}" = set; then :
8195 $as_echo_n "(cached) " >&6
859789af
AC
8196else
8197 if test -n "$AR"; then
8198 ac_cv_prog_AR="$AR" # Let the user override the test.
8199else
c6b750e1
DJ
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
c6b750e1 8207 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8209 break 2
8210 fi
8211done
81ecdfbb
RW
8212 done
8213IFS=$as_save_IFS
c6b750e1 8214
859789af
AC
8215fi
8216fi
c6b750e1 8217AR=$ac_cv_prog_AR
859789af 8218if test -n "$AR"; then
81ecdfbb
RW
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8220$as_echo "$AR" >&6; }
859789af 8221else
81ecdfbb
RW
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223$as_echo "no" >&6; }
859789af
AC
8224fi
8225
81ecdfbb 8226
05cbd757
PB
8227 fi
8228 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8230set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232$as_echo_n "checking for $ac_word... " >&6; }
8233if test "${ac_cv_prog_AR+set}" = set; then :
8234 $as_echo_n "(cached) " >&6
859789af 8235else
05cbd757
PB
8236 if test -n "$AR"; then
8237 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8238else
c6b750e1
DJ
8239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240for as_dir in $PATH
8241do
8242 IFS=$as_save_IFS
8243 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8246 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8248 break 2
8249 fi
8250done
81ecdfbb
RW
8251 done
8252IFS=$as_save_IFS
c6b750e1 8253
859789af
AC
8254fi
8255fi
c6b750e1 8256AR=$ac_cv_prog_AR
05cbd757 8257if test -n "$AR"; then
81ecdfbb
RW
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8259$as_echo "$AR" >&6; }
859789af 8260else
81ecdfbb
RW
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262$as_echo "no" >&6; }
859789af 8263fi
c6b750e1 8264
81ecdfbb 8265
05cbd757
PB
8266 fi
8267 test -n "$ac_cv_prog_AR" && break
8268done
8269
8270if test -z "$ac_cv_prog_AR" ; then
8271 set dummy ar
8272 if test $build = $host ; then
8273 AR="$2"
859789af 8274 else
05cbd757 8275 AR="${ncn_tool_prefix}$2"
859789af 8276 fi
859789af
AC
8277fi
8278
9a819804
AO
8279
8280
8281if test -n "$AS"; then
8282 ac_cv_prog_AS=$AS
8283elif test -n "$ac_cv_prog_AS"; then
8284 AS=$ac_cv_prog_AS
8285fi
8286
8287if test -n "$ac_cv_prog_AS"; then
8288 for ncn_progname in as; do
8289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8290set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8292$as_echo_n "checking for $ac_word... " >&6; }
8293if test "${ac_cv_prog_AS+set}" = set; then :
8294 $as_echo_n "(cached) " >&6
9a819804
AO
8295else
8296 if test -n "$AS"; then
8297 ac_cv_prog_AS="$AS" # Let the user override the test.
8298else
8299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300for as_dir in $PATH
8301do
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8306 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8308 break 2
8309 fi
8310done
81ecdfbb
RW
8311 done
8312IFS=$as_save_IFS
9a819804
AO
8313
8314fi
8315fi
8316AS=$ac_cv_prog_AS
8317if test -n "$AS"; then
81ecdfbb
RW
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8319$as_echo "$AS" >&6; }
9a819804 8320else
81ecdfbb
RW
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322$as_echo "no" >&6; }
9a819804
AO
8323fi
8324
81ecdfbb 8325
9a819804
AO
8326 done
8327fi
8328
8329for ncn_progname in as; do
05cbd757
PB
8330 if test -n "$ncn_tool_prefix"; then
8331 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8332set dummy ${ncn_tool_prefix}${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_AS+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
859789af
AC
8337else
8338 if test -n "$AS"; then
8339 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8340else
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_AS="${ncn_tool_prefix}${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 8358AS=$ac_cv_prog_AS
859789af 8359if test -n "$AS"; then
81ecdfbb
RW
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8361$as_echo "$AS" >&6; }
859789af 8362else
81ecdfbb
RW
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
859789af
AC
8365fi
8366
81ecdfbb 8367
05cbd757
PB
8368 fi
8369 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8371set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373$as_echo_n "checking for $ac_word... " >&6; }
8374if test "${ac_cv_prog_AS+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
859789af 8376else
05cbd757
PB
8377 if test -n "$AS"; then
8378 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8379else
c6b750e1
DJ
8380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381for as_dir in $PATH
8382do
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8387 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8389 break 2
8390 fi
8391done
81ecdfbb
RW
8392 done
8393IFS=$as_save_IFS
c6b750e1 8394
859789af
AC
8395fi
8396fi
c6b750e1 8397AS=$ac_cv_prog_AS
05cbd757 8398if test -n "$AS"; then
81ecdfbb
RW
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8400$as_echo "$AS" >&6; }
859789af 8401else
81ecdfbb
RW
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403$as_echo "no" >&6; }
859789af 8404fi
c6b750e1 8405
81ecdfbb 8406
05cbd757
PB
8407 fi
8408 test -n "$ac_cv_prog_AS" && break
8409done
8410
8411if test -z "$ac_cv_prog_AS" ; then
8412 set dummy as
8413 if test $build = $host ; then
8414 AS="$2"
859789af 8415 else
05cbd757 8416 AS="${ncn_tool_prefix}$2"
859789af 8417 fi
859789af
AC
8418fi
8419
9a819804
AO
8420
8421
8422if test -n "$DLLTOOL"; then
8423 ac_cv_prog_DLLTOOL=$DLLTOOL
8424elif test -n "$ac_cv_prog_DLLTOOL"; then
8425 DLLTOOL=$ac_cv_prog_DLLTOOL
8426fi
8427
8428if test -n "$ac_cv_prog_DLLTOOL"; then
8429 for ncn_progname in dlltool; do
8430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8431set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433$as_echo_n "checking for $ac_word... " >&6; }
8434if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8435 $as_echo_n "(cached) " >&6
9a819804
AO
8436else
8437 if test -n "$DLLTOOL"; then
8438 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8439else
8440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441for as_dir in $PATH
8442do
8443 IFS=$as_save_IFS
8444 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8447 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8449 break 2
8450 fi
8451done
81ecdfbb
RW
8452 done
8453IFS=$as_save_IFS
9a819804
AO
8454
8455fi
8456fi
8457DLLTOOL=$ac_cv_prog_DLLTOOL
8458if test -n "$DLLTOOL"; then
81ecdfbb
RW
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8460$as_echo "$DLLTOOL" >&6; }
9a819804 8461else
81ecdfbb
RW
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463$as_echo "no" >&6; }
9a819804
AO
8464fi
8465
81ecdfbb 8466
9a819804
AO
8467 done
8468fi
8469
8470for ncn_progname in dlltool; do
05cbd757
PB
8471 if test -n "$ncn_tool_prefix"; then
8472 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8473set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475$as_echo_n "checking for $ac_word... " >&6; }
8476if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8477 $as_echo_n "(cached) " >&6
859789af
AC
8478else
8479 if test -n "$DLLTOOL"; then
8480 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8481else
c6b750e1
DJ
8482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483for as_dir in $PATH
8484do
8485 IFS=$as_save_IFS
8486 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8487 for ac_exec_ext in '' $ac_executable_extensions; do
8488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8489 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8491 break 2
8492 fi
8493done
81ecdfbb
RW
8494 done
8495IFS=$as_save_IFS
c6b750e1 8496
859789af
AC
8497fi
8498fi
c6b750e1 8499DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8500if test -n "$DLLTOOL"; then
81ecdfbb
RW
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8502$as_echo "$DLLTOOL" >&6; }
859789af 8503else
81ecdfbb
RW
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505$as_echo "no" >&6; }
859789af
AC
8506fi
8507
81ecdfbb 8508
05cbd757
PB
8509 fi
8510 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8512set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514$as_echo_n "checking for $ac_word... " >&6; }
8515if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
859789af 8517else
05cbd757
PB
8518 if test -n "$DLLTOOL"; then
8519 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8520else
c6b750e1
DJ
8521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522for as_dir in $PATH
8523do
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8528 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8530 break 2
8531 fi
8532done
81ecdfbb
RW
8533 done
8534IFS=$as_save_IFS
c6b750e1 8535
859789af
AC
8536fi
8537fi
c6b750e1 8538DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8539if test -n "$DLLTOOL"; then
81ecdfbb
RW
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8541$as_echo "$DLLTOOL" >&6; }
859789af 8542else
81ecdfbb
RW
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544$as_echo "no" >&6; }
859789af 8545fi
c6b750e1 8546
81ecdfbb 8547
05cbd757
PB
8548 fi
8549 test -n "$ac_cv_prog_DLLTOOL" && break
8550done
8551
8552if test -z "$ac_cv_prog_DLLTOOL" ; then
8553 set dummy dlltool
8554 if test $build = $host ; then
8555 DLLTOOL="$2"
859789af 8556 else
05cbd757 8557 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8558 fi
859789af
AC
8559fi
8560
9a819804
AO
8561
8562
8563if test -n "$LD"; then
8564 ac_cv_prog_LD=$LD
8565elif test -n "$ac_cv_prog_LD"; then
8566 LD=$ac_cv_prog_LD
8567fi
8568
8569if test -n "$ac_cv_prog_LD"; then
8570 for ncn_progname in ld; do
8571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8572set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574$as_echo_n "checking for $ac_word... " >&6; }
8575if test "${ac_cv_prog_LD+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
9a819804
AO
8577else
8578 if test -n "$LD"; then
8579 ac_cv_prog_LD="$LD" # Let the user override the test.
8580else
8581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582for as_dir in $PATH
8583do
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8588 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8590 break 2
8591 fi
8592done
81ecdfbb
RW
8593 done
8594IFS=$as_save_IFS
9a819804
AO
8595
8596fi
8597fi
8598LD=$ac_cv_prog_LD
8599if test -n "$LD"; then
81ecdfbb
RW
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8601$as_echo "$LD" >&6; }
9a819804 8602else
81ecdfbb
RW
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604$as_echo "no" >&6; }
9a819804
AO
8605fi
8606
81ecdfbb 8607
9a819804
AO
8608 done
8609fi
8610
8611for ncn_progname in ld; do
05cbd757
PB
8612 if test -n "$ncn_tool_prefix"; then
8613 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8614set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616$as_echo_n "checking for $ac_word... " >&6; }
8617if test "${ac_cv_prog_LD+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
859789af
AC
8619else
8620 if test -n "$LD"; then
8621 ac_cv_prog_LD="$LD" # Let the user override the test.
8622else
c6b750e1
DJ
8623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624for as_dir in $PATH
8625do
8626 IFS=$as_save_IFS
8627 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8628 for ac_exec_ext in '' $ac_executable_extensions; do
8629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8630 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8632 break 2
8633 fi
8634done
81ecdfbb
RW
8635 done
8636IFS=$as_save_IFS
c6b750e1 8637
859789af
AC
8638fi
8639fi
c6b750e1 8640LD=$ac_cv_prog_LD
859789af 8641if test -n "$LD"; then
81ecdfbb
RW
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8643$as_echo "$LD" >&6; }
859789af 8644else
81ecdfbb
RW
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646$as_echo "no" >&6; }
859789af
AC
8647fi
8648
81ecdfbb 8649
05cbd757
PB
8650 fi
8651 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8653set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655$as_echo_n "checking for $ac_word... " >&6; }
8656if test "${ac_cv_prog_LD+set}" = set; then :
8657 $as_echo_n "(cached) " >&6
859789af 8658else
05cbd757
PB
8659 if test -n "$LD"; then
8660 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8661else
c6b750e1
DJ
8662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663for as_dir in $PATH
8664do
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8669 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8671 break 2
8672 fi
8673done
81ecdfbb
RW
8674 done
8675IFS=$as_save_IFS
c6b750e1 8676
859789af
AC
8677fi
8678fi
c6b750e1 8679LD=$ac_cv_prog_LD
05cbd757 8680if test -n "$LD"; then
81ecdfbb
RW
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8682$as_echo "$LD" >&6; }
859789af 8683else
81ecdfbb
RW
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685$as_echo "no" >&6; }
859789af 8686fi
c6b750e1 8687
81ecdfbb 8688
05cbd757
PB
8689 fi
8690 test -n "$ac_cv_prog_LD" && break
8691done
8692
8693if test -z "$ac_cv_prog_LD" ; then
8694 set dummy ld
8695 if test $build = $host ; then
8696 LD="$2"
859789af 8697 else
05cbd757 8698 LD="${ncn_tool_prefix}$2"
859789af 8699 fi
859789af
AC
8700fi
8701
9a819804
AO
8702
8703
8704if test -n "$LIPO"; then
8705 ac_cv_prog_LIPO=$LIPO
8706elif test -n "$ac_cv_prog_LIPO"; then
8707 LIPO=$ac_cv_prog_LIPO
8708fi
8709
8710if test -n "$ac_cv_prog_LIPO"; then
8711 for ncn_progname in lipo; do
8712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8713set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715$as_echo_n "checking for $ac_word... " >&6; }
8716if test "${ac_cv_prog_LIPO+set}" = set; then :
8717 $as_echo_n "(cached) " >&6
9a819804
AO
8718else
8719 if test -n "$LIPO"; then
8720 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8721else
8722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723for as_dir in $PATH
8724do
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8729 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8731 break 2
8732 fi
8733done
81ecdfbb
RW
8734 done
8735IFS=$as_save_IFS
9a819804
AO
8736
8737fi
8738fi
8739LIPO=$ac_cv_prog_LIPO
8740if test -n "$LIPO"; then
81ecdfbb
RW
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8742$as_echo "$LIPO" >&6; }
9a819804 8743else
81ecdfbb
RW
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745$as_echo "no" >&6; }
9a819804
AO
8746fi
8747
81ecdfbb 8748
9a819804
AO
8749 done
8750fi
8751
8752for ncn_progname in lipo; do
be01d343
PB
8753 if test -n "$ncn_tool_prefix"; then
8754 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8755set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757$as_echo_n "checking for $ac_word... " >&6; }
8758if test "${ac_cv_prog_LIPO+set}" = set; then :
8759 $as_echo_n "(cached) " >&6
be01d343
PB
8760else
8761 if test -n "$LIPO"; then
8762 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8763else
c6b750e1
DJ
8764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765for as_dir in $PATH
8766do
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8771 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8773 break 2
8774 fi
8775done
81ecdfbb
RW
8776 done
8777IFS=$as_save_IFS
c6b750e1 8778
be01d343
PB
8779fi
8780fi
c6b750e1 8781LIPO=$ac_cv_prog_LIPO
be01d343 8782if test -n "$LIPO"; then
81ecdfbb
RW
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8784$as_echo "$LIPO" >&6; }
be01d343 8785else
81ecdfbb
RW
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787$as_echo "no" >&6; }
be01d343
PB
8788fi
8789
81ecdfbb 8790
be01d343
PB
8791 fi
8792 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8794set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796$as_echo_n "checking for $ac_word... " >&6; }
8797if test "${ac_cv_prog_LIPO+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
be01d343
PB
8799else
8800 if test -n "$LIPO"; then
8801 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8802else
c6b750e1
DJ
8803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804for as_dir in $PATH
8805do
8806 IFS=$as_save_IFS
8807 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8810 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8812 break 2
8813 fi
8814done
81ecdfbb
RW
8815 done
8816IFS=$as_save_IFS
c6b750e1 8817
be01d343
PB
8818fi
8819fi
c6b750e1 8820LIPO=$ac_cv_prog_LIPO
be01d343 8821if test -n "$LIPO"; then
81ecdfbb
RW
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8823$as_echo "$LIPO" >&6; }
be01d343 8824else
81ecdfbb
RW
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826$as_echo "no" >&6; }
be01d343 8827fi
c6b750e1 8828
81ecdfbb 8829
be01d343
PB
8830 fi
8831 test -n "$ac_cv_prog_LIPO" && break
8832done
8833
8834if test -z "$ac_cv_prog_LIPO" ; then
8835 set dummy lipo
8836 if test $build = $host ; then
8837 LIPO="$2"
8838 else
8839 LIPO="${ncn_tool_prefix}$2"
8840 fi
8841fi
8842
9a819804
AO
8843
8844
8845if test -n "$NM"; then
8846 ac_cv_prog_NM=$NM
8847elif test -n "$ac_cv_prog_NM"; then
8848 NM=$ac_cv_prog_NM
8849fi
8850
8851if test -n "$ac_cv_prog_NM"; then
8852 for ncn_progname in nm; do
8853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8854set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856$as_echo_n "checking for $ac_word... " >&6; }
8857if test "${ac_cv_prog_NM+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
859789af
AC
8859else
8860 if test -n "$NM"; then
8861 ac_cv_prog_NM="$NM" # Let the user override the test.
8862else
c6b750e1
DJ
8863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864for as_dir in $PATH
8865do
8866 IFS=$as_save_IFS
8867 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8870 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8872 break 2
8873 fi
8874done
81ecdfbb
RW
8875 done
8876IFS=$as_save_IFS
c6b750e1 8877
859789af
AC
8878fi
8879fi
c6b750e1 8880NM=$ac_cv_prog_NM
859789af 8881if test -n "$NM"; then
81ecdfbb
RW
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8883$as_echo "$NM" >&6; }
859789af 8884else
81ecdfbb
RW
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886$as_echo "no" >&6; }
859789af
AC
8887fi
8888
81ecdfbb 8889
9a819804
AO
8890 done
8891fi
8892
8893for ncn_progname in nm; do
8894 if test -n "$ncn_tool_prefix"; then
8895 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8896set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898$as_echo_n "checking for $ac_word... " >&6; }
8899if test "${ac_cv_prog_NM+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
859789af 8901else
05cbd757
PB
8902 if test -n "$NM"; then
8903 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8904else
c6b750e1
DJ
8905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906for as_dir in $PATH
8907do
8908 IFS=$as_save_IFS
8909 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8910 for ac_exec_ext in '' $ac_executable_extensions; do
8911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8912 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8914 break 2
8915 fi
8916done
81ecdfbb
RW
8917 done
8918IFS=$as_save_IFS
c6b750e1 8919
859789af
AC
8920fi
8921fi
c6b750e1 8922NM=$ac_cv_prog_NM
05cbd757 8923if test -n "$NM"; then
81ecdfbb
RW
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8925$as_echo "$NM" >&6; }
859789af 8926else
81ecdfbb
RW
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928$as_echo "no" >&6; }
859789af 8929fi
c6b750e1 8930
81ecdfbb 8931
05cbd757 8932 fi
9a819804
AO
8933 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8935set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937$as_echo_n "checking for $ac_word... " >&6; }
8938if test "${ac_cv_prog_NM+set}" = set; then :
8939 $as_echo_n "(cached) " >&6
9a819804
AO
8940else
8941 if test -n "$NM"; then
8942 ac_cv_prog_NM="$NM" # Let the user override the test.
8943else
8944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945for as_dir in $PATH
8946do
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8951 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8953 break 2
8954 fi
8955done
81ecdfbb
RW
8956 done
8957IFS=$as_save_IFS
9a819804
AO
8958
8959fi
8960fi
8961NM=$ac_cv_prog_NM
8962if test -n "$NM"; then
81ecdfbb
RW
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8964$as_echo "$NM" >&6; }
9a819804 8965else
81ecdfbb
RW
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967$as_echo "no" >&6; }
9a819804
AO
8968fi
8969
81ecdfbb 8970
9a819804
AO
8971 fi
8972 test -n "$ac_cv_prog_NM" && break
8973done
8974
8975if test -z "$ac_cv_prog_NM" ; then
8976 set dummy nm
8977 if test $build = $host ; then
8978 NM="$2"
8979 else
8980 NM="${ncn_tool_prefix}$2"
8981 fi
8982fi
8983
8984
8985
8986if test -n "$RANLIB"; then
8987 ac_cv_prog_RANLIB=$RANLIB
8988elif test -n "$ac_cv_prog_RANLIB"; then
8989 RANLIB=$ac_cv_prog_RANLIB
8990fi
8991
8992if test -n "$ac_cv_prog_RANLIB"; then
8993 for ncn_progname in ranlib; do
8994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8995set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997$as_echo_n "checking for $ac_word... " >&6; }
8998if test "${ac_cv_prog_RANLIB+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9a819804
AO
9000else
9001 if test -n "$RANLIB"; then
9002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9003else
9004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005for as_dir in $PATH
9006do
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9011 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9013 break 2
9014 fi
9015done
81ecdfbb
RW
9016 done
9017IFS=$as_save_IFS
9a819804
AO
9018
9019fi
9020fi
9021RANLIB=$ac_cv_prog_RANLIB
9022if test -n "$RANLIB"; then
81ecdfbb
RW
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9024$as_echo "$RANLIB" >&6; }
9a819804 9025else
81ecdfbb
RW
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027$as_echo "no" >&6; }
9a819804
AO
9028fi
9029
81ecdfbb 9030
9a819804
AO
9031 done
9032fi
859789af 9033
9a819804 9034for ncn_progname in ranlib; do
05cbd757
PB
9035 if test -n "$ncn_tool_prefix"; then
9036 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9037set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039$as_echo_n "checking for $ac_word... " >&6; }
9040if test "${ac_cv_prog_RANLIB+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
859789af
AC
9042else
9043 if test -n "$RANLIB"; then
9044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9045else
c6b750e1
DJ
9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047for as_dir in $PATH
9048do
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9053 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9055 break 2
9056 fi
9057done
81ecdfbb
RW
9058 done
9059IFS=$as_save_IFS
c6b750e1 9060
859789af
AC
9061fi
9062fi
c6b750e1 9063RANLIB=$ac_cv_prog_RANLIB
859789af 9064if test -n "$RANLIB"; then
81ecdfbb
RW
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9066$as_echo "$RANLIB" >&6; }
859789af 9067else
81ecdfbb
RW
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069$as_echo "no" >&6; }
859789af
AC
9070fi
9071
81ecdfbb 9072
05cbd757
PB
9073 fi
9074 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9076set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078$as_echo_n "checking for $ac_word... " >&6; }
9079if test "${ac_cv_prog_RANLIB+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
859789af 9081else
05cbd757
PB
9082 if test -n "$RANLIB"; then
9083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9084else
c6b750e1
DJ
9085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9092 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9094 break 2
9095 fi
9096done
81ecdfbb
RW
9097 done
9098IFS=$as_save_IFS
c6b750e1 9099
859789af
AC
9100fi
9101fi
c6b750e1 9102RANLIB=$ac_cv_prog_RANLIB
05cbd757 9103if test -n "$RANLIB"; then
81ecdfbb
RW
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9105$as_echo "$RANLIB" >&6; }
859789af 9106else
81ecdfbb
RW
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108$as_echo "no" >&6; }
859789af 9109fi
c6b750e1 9110
81ecdfbb 9111
859789af 9112 fi
05cbd757
PB
9113 test -n "$ac_cv_prog_RANLIB" && break
9114done
9115
9116if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9117 RANLIB="true"
859789af
AC
9118fi
9119
9a819804
AO
9120
9121
9122if test -n "$STRIP"; then
9123 ac_cv_prog_STRIP=$STRIP
9124elif test -n "$ac_cv_prog_STRIP"; then
9125 STRIP=$ac_cv_prog_STRIP
9126fi
9127
9128if test -n "$ac_cv_prog_STRIP"; then
9129 for ncn_progname in strip; do
9130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9131set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133$as_echo_n "checking for $ac_word... " >&6; }
9134if test "${ac_cv_prog_STRIP+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9a819804
AO
9136else
9137 if test -n "$STRIP"; then
9138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9139else
9140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141for as_dir in $PATH
9142do
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9147 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9149 break 2
9150 fi
9151done
81ecdfbb
RW
9152 done
9153IFS=$as_save_IFS
9a819804
AO
9154
9155fi
9156fi
9157STRIP=$ac_cv_prog_STRIP
9158if test -n "$STRIP"; then
81ecdfbb
RW
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9160$as_echo "$STRIP" >&6; }
9a819804 9161else
81ecdfbb
RW
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163$as_echo "no" >&6; }
9a819804
AO
9164fi
9165
81ecdfbb 9166
9a819804
AO
9167 done
9168fi
9169
9170for ncn_progname in strip; do
be01d343
PB
9171 if test -n "$ncn_tool_prefix"; then
9172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9173set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9175$as_echo_n "checking for $ac_word... " >&6; }
9176if test "${ac_cv_prog_STRIP+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
be01d343
PB
9178else
9179 if test -n "$STRIP"; then
9180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9181else
c6b750e1
DJ
9182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183for as_dir in $PATH
9184do
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9189 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9191 break 2
9192 fi
9193done
81ecdfbb
RW
9194 done
9195IFS=$as_save_IFS
c6b750e1 9196
be01d343
PB
9197fi
9198fi
c6b750e1 9199STRIP=$ac_cv_prog_STRIP
be01d343 9200if test -n "$STRIP"; then
81ecdfbb
RW
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9202$as_echo "$STRIP" >&6; }
be01d343 9203else
81ecdfbb
RW
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205$as_echo "no" >&6; }
be01d343
PB
9206fi
9207
81ecdfbb 9208
be01d343
PB
9209 fi
9210 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9212set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214$as_echo_n "checking for $ac_word... " >&6; }
9215if test "${ac_cv_prog_STRIP+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
be01d343
PB
9217else
9218 if test -n "$STRIP"; then
9219 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9220else
c6b750e1
DJ
9221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222for as_dir in $PATH
9223do
9224 IFS=$as_save_IFS
9225 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9228 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9230 break 2
9231 fi
9232done
81ecdfbb
RW
9233 done
9234IFS=$as_save_IFS
c6b750e1 9235
be01d343
PB
9236fi
9237fi
c6b750e1 9238STRIP=$ac_cv_prog_STRIP
be01d343 9239if test -n "$STRIP"; then
81ecdfbb
RW
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9241$as_echo "$STRIP" >&6; }
be01d343 9242else
81ecdfbb
RW
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
be01d343 9245fi
c6b750e1 9246
81ecdfbb 9247
be01d343
PB
9248 fi
9249 test -n "$ac_cv_prog_STRIP" && break
9250done
9251
9252if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9253 STRIP="true"
be01d343
PB
9254fi
9255
9a819804
AO
9256
9257
9258if test -n "$WINDRES"; then
9259 ac_cv_prog_WINDRES=$WINDRES
9260elif test -n "$ac_cv_prog_WINDRES"; then
9261 WINDRES=$ac_cv_prog_WINDRES
9262fi
9263
9264if test -n "$ac_cv_prog_WINDRES"; then
9265 for ncn_progname in windres; do
9266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9267set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269$as_echo_n "checking for $ac_word... " >&6; }
9270if test "${ac_cv_prog_WINDRES+set}" = set; then :
9271 $as_echo_n "(cached) " >&6
9a819804
AO
9272else
9273 if test -n "$WINDRES"; then
9274 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9275else
9276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277for as_dir in $PATH
9278do
9279 IFS=$as_save_IFS
9280 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9283 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9285 break 2
9286 fi
9287done
81ecdfbb
RW
9288 done
9289IFS=$as_save_IFS
9a819804
AO
9290
9291fi
9292fi
9293WINDRES=$ac_cv_prog_WINDRES
9294if test -n "$WINDRES"; then
81ecdfbb
RW
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9296$as_echo "$WINDRES" >&6; }
9a819804 9297else
81ecdfbb
RW
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299$as_echo "no" >&6; }
9a819804
AO
9300fi
9301
81ecdfbb 9302
9a819804
AO
9303 done
9304fi
9305
9306for ncn_progname in windres; do
05cbd757
PB
9307 if test -n "$ncn_tool_prefix"; then
9308 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9309set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311$as_echo_n "checking for $ac_word... " >&6; }
9312if test "${ac_cv_prog_WINDRES+set}" = set; then :
9313 $as_echo_n "(cached) " >&6
859789af
AC
9314else
9315 if test -n "$WINDRES"; then
9316 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9317else
c6b750e1
DJ
9318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319for as_dir in $PATH
9320do
9321 IFS=$as_save_IFS
9322 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9323 for ac_exec_ext in '' $ac_executable_extensions; do
9324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9325 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9327 break 2
9328 fi
9329done
81ecdfbb
RW
9330 done
9331IFS=$as_save_IFS
c6b750e1 9332
859789af
AC
9333fi
9334fi
c6b750e1 9335WINDRES=$ac_cv_prog_WINDRES
859789af 9336if test -n "$WINDRES"; then
81ecdfbb
RW
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9338$as_echo "$WINDRES" >&6; }
859789af 9339else
81ecdfbb
RW
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341$as_echo "no" >&6; }
859789af
AC
9342fi
9343
81ecdfbb 9344
05cbd757
PB
9345 fi
9346 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9348set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9350$as_echo_n "checking for $ac_word... " >&6; }
9351if test "${ac_cv_prog_WINDRES+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
859789af 9353else
05cbd757
PB
9354 if test -n "$WINDRES"; then
9355 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9356else
c6b750e1
DJ
9357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358for as_dir in $PATH
9359do
9360 IFS=$as_save_IFS
9361 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9362 for ac_exec_ext in '' $ac_executable_extensions; do
9363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9364 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9366 break 2
9367 fi
9368done
81ecdfbb
RW
9369 done
9370IFS=$as_save_IFS
c6b750e1 9371
859789af
AC
9372fi
9373fi
c6b750e1 9374WINDRES=$ac_cv_prog_WINDRES
05cbd757 9375if test -n "$WINDRES"; then
81ecdfbb
RW
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9377$as_echo "$WINDRES" >&6; }
859789af 9378else
81ecdfbb
RW
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9380$as_echo "no" >&6; }
859789af 9381fi
c6b750e1 9382
81ecdfbb 9383
05cbd757
PB
9384 fi
9385 test -n "$ac_cv_prog_WINDRES" && break
9386done
9387
9388if test -z "$ac_cv_prog_WINDRES" ; then
9389 set dummy windres
9390 if test $build = $host ; then
9391 WINDRES="$2"
859789af 9392 else
05cbd757 9393 WINDRES="${ncn_tool_prefix}$2"
859789af 9394 fi
859789af
AC
9395fi
9396
9a819804
AO
9397
9398
0c24b341
NC
9399if test -n "$WINDMC"; then
9400 ac_cv_prog_WINDMC=$WINDMC
9401elif test -n "$ac_cv_prog_WINDMC"; then
9402 WINDMC=$ac_cv_prog_WINDMC
9403fi
9404
9405if test -n "$ac_cv_prog_WINDMC"; then
9406 for ncn_progname in windmc; do
9407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9408set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410$as_echo_n "checking for $ac_word... " >&6; }
9411if test "${ac_cv_prog_WINDMC+set}" = set; then :
9412 $as_echo_n "(cached) " >&6
0c24b341
NC
9413else
9414 if test -n "$WINDMC"; then
9415 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9416else
9417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $PATH
9419do
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9424 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9426 break 2
9427 fi
9428done
81ecdfbb
RW
9429 done
9430IFS=$as_save_IFS
0c24b341
NC
9431
9432fi
9433fi
9434WINDMC=$ac_cv_prog_WINDMC
9435if test -n "$WINDMC"; then
81ecdfbb
RW
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9437$as_echo "$WINDMC" >&6; }
0c24b341 9438else
81ecdfbb
RW
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440$as_echo "no" >&6; }
0c24b341
NC
9441fi
9442
81ecdfbb 9443
0c24b341
NC
9444 done
9445fi
9446
9447for ncn_progname in windmc; do
9448 if test -n "$ncn_tool_prefix"; then
9449 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9450set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452$as_echo_n "checking for $ac_word... " >&6; }
9453if test "${ac_cv_prog_WINDMC+set}" = set; then :
9454 $as_echo_n "(cached) " >&6
0c24b341
NC
9455else
9456 if test -n "$WINDMC"; then
9457 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9458else
9459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460for as_dir in $PATH
9461do
9462 IFS=$as_save_IFS
9463 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9464 for ac_exec_ext in '' $ac_executable_extensions; do
9465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9466 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9468 break 2
9469 fi
9470done
81ecdfbb
RW
9471 done
9472IFS=$as_save_IFS
0c24b341
NC
9473
9474fi
9475fi
9476WINDMC=$ac_cv_prog_WINDMC
9477if test -n "$WINDMC"; then
81ecdfbb
RW
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9479$as_echo "$WINDMC" >&6; }
0c24b341 9480else
81ecdfbb
RW
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482$as_echo "no" >&6; }
0c24b341
NC
9483fi
9484
81ecdfbb 9485
0c24b341
NC
9486 fi
9487 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9489set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491$as_echo_n "checking for $ac_word... " >&6; }
9492if test "${ac_cv_prog_WINDMC+set}" = set; then :
9493 $as_echo_n "(cached) " >&6
0c24b341
NC
9494else
9495 if test -n "$WINDMC"; then
9496 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9497else
9498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499for as_dir in $PATH
9500do
9501 IFS=$as_save_IFS
9502 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9505 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9507 break 2
9508 fi
9509done
81ecdfbb
RW
9510 done
9511IFS=$as_save_IFS
0c24b341
NC
9512
9513fi
9514fi
9515WINDMC=$ac_cv_prog_WINDMC
9516if test -n "$WINDMC"; then
81ecdfbb
RW
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9518$as_echo "$WINDMC" >&6; }
0c24b341 9519else
81ecdfbb
RW
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521$as_echo "no" >&6; }
0c24b341
NC
9522fi
9523
81ecdfbb 9524
0c24b341
NC
9525 fi
9526 test -n "$ac_cv_prog_WINDMC" && break
9527done
9528
9529if test -z "$ac_cv_prog_WINDMC" ; then
9530 set dummy windmc
9531 if test $build = $host ; then
9532 WINDMC="$2"
9533 else
9534 WINDMC="${ncn_tool_prefix}$2"
9535 fi
9536fi
9537
9538
9539
9a819804
AO
9540if test -n "$OBJCOPY"; then
9541 ac_cv_prog_OBJCOPY=$OBJCOPY
9542elif test -n "$ac_cv_prog_OBJCOPY"; then
9543 OBJCOPY=$ac_cv_prog_OBJCOPY
9544fi
9545
9546if test -n "$ac_cv_prog_OBJCOPY"; then
9547 for ncn_progname in objcopy; do
9548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9549set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551$as_echo_n "checking for $ac_word... " >&6; }
9552if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9553 $as_echo_n "(cached) " >&6
9a819804
AO
9554else
9555 if test -n "$OBJCOPY"; then
9556 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9557else
9558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559for as_dir in $PATH
9560do
9561 IFS=$as_save_IFS
9562 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9565 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9567 break 2
9568 fi
9569done
81ecdfbb
RW
9570 done
9571IFS=$as_save_IFS
9a819804
AO
9572
9573fi
9574fi
9575OBJCOPY=$ac_cv_prog_OBJCOPY
9576if test -n "$OBJCOPY"; then
81ecdfbb
RW
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9578$as_echo "$OBJCOPY" >&6; }
9a819804 9579else
81ecdfbb
RW
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581$as_echo "no" >&6; }
9a819804
AO
9582fi
9583
81ecdfbb 9584
9a819804
AO
9585 done
9586fi
9587
9588for ncn_progname in objcopy; do
05cbd757
PB
9589 if test -n "$ncn_tool_prefix"; then
9590 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9591set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593$as_echo_n "checking for $ac_word... " >&6; }
9594if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9595 $as_echo_n "(cached) " >&6
859789af
AC
9596else
9597 if test -n "$OBJCOPY"; then
9598 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9599else
c6b750e1
DJ
9600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601for as_dir in $PATH
9602do
9603 IFS=$as_save_IFS
9604 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9605 for ac_exec_ext in '' $ac_executable_extensions; do
9606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9607 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9609 break 2
9610 fi
9611done
81ecdfbb
RW
9612 done
9613IFS=$as_save_IFS
c6b750e1 9614
859789af
AC
9615fi
9616fi
c6b750e1 9617OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9618if test -n "$OBJCOPY"; then
81ecdfbb
RW
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9620$as_echo "$OBJCOPY" >&6; }
859789af 9621else
81ecdfbb
RW
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623$as_echo "no" >&6; }
859789af
AC
9624fi
9625
81ecdfbb 9626
05cbd757
PB
9627 fi
9628 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9630set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632$as_echo_n "checking for $ac_word... " >&6; }
9633if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
859789af 9635else
05cbd757
PB
9636 if test -n "$OBJCOPY"; then
9637 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9638else
c6b750e1
DJ
9639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640for as_dir in $PATH
9641do
9642 IFS=$as_save_IFS
9643 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9644 for ac_exec_ext in '' $ac_executable_extensions; do
9645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9646 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9648 break 2
9649 fi
9650done
81ecdfbb
RW
9651 done
9652IFS=$as_save_IFS
c6b750e1 9653
859789af
AC
9654fi
9655fi
c6b750e1 9656OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9657if test -n "$OBJCOPY"; then
81ecdfbb
RW
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9659$as_echo "$OBJCOPY" >&6; }
859789af 9660else
81ecdfbb
RW
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662$as_echo "no" >&6; }
859789af 9663fi
c6b750e1 9664
81ecdfbb 9665
05cbd757
PB
9666 fi
9667 test -n "$ac_cv_prog_OBJCOPY" && break
9668done
9669
9670if test -z "$ac_cv_prog_OBJCOPY" ; then
9671 set dummy objcopy
9672 if test $build = $host ; then
9673 OBJCOPY="$2"
859789af 9674 else
05cbd757 9675 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9676 fi
859789af
AC
9677fi
9678
9a819804
AO
9679
9680
9681if test -n "$OBJDUMP"; then
9682 ac_cv_prog_OBJDUMP=$OBJDUMP
9683elif test -n "$ac_cv_prog_OBJDUMP"; then
9684 OBJDUMP=$ac_cv_prog_OBJDUMP
9685fi
9686
9687if test -n "$ac_cv_prog_OBJDUMP"; then
9688 for ncn_progname in objdump; do
9689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9690set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692$as_echo_n "checking for $ac_word... " >&6; }
9693if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9a819804
AO
9695else
9696 if test -n "$OBJDUMP"; then
9697 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9698else
9699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $PATH
9701do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9706 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9708 break 2
9709 fi
9710done
81ecdfbb
RW
9711 done
9712IFS=$as_save_IFS
9a819804
AO
9713
9714fi
9715fi
9716OBJDUMP=$ac_cv_prog_OBJDUMP
9717if test -n "$OBJDUMP"; then
81ecdfbb
RW
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9719$as_echo "$OBJDUMP" >&6; }
9a819804 9720else
81ecdfbb
RW
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722$as_echo "no" >&6; }
9a819804
AO
9723fi
9724
81ecdfbb 9725
9a819804
AO
9726 done
9727fi
9728
9729for ncn_progname in objdump; do
05cbd757
PB
9730 if test -n "$ncn_tool_prefix"; then
9731 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9732set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734$as_echo_n "checking for $ac_word... " >&6; }
9735if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
859789af
AC
9737else
9738 if test -n "$OBJDUMP"; then
9739 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9740else
c6b750e1
DJ
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9748 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9750 break 2
9751 fi
9752done
81ecdfbb
RW
9753 done
9754IFS=$as_save_IFS
c6b750e1 9755
859789af
AC
9756fi
9757fi
c6b750e1 9758OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9759if test -n "$OBJDUMP"; then
81ecdfbb
RW
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9761$as_echo "$OBJDUMP" >&6; }
859789af 9762else
81ecdfbb
RW
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764$as_echo "no" >&6; }
859789af
AC
9765fi
9766
81ecdfbb 9767
05cbd757
PB
9768 fi
9769 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9771set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773$as_echo_n "checking for $ac_word... " >&6; }
9774if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9775 $as_echo_n "(cached) " >&6
859789af 9776else
05cbd757
PB
9777 if test -n "$OBJDUMP"; then
9778 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9779else
c6b750e1
DJ
9780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781for as_dir in $PATH
9782do
9783 IFS=$as_save_IFS
9784 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9785 for ac_exec_ext in '' $ac_executable_extensions; do
9786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9787 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9789 break 2
9790 fi
9791done
81ecdfbb
RW
9792 done
9793IFS=$as_save_IFS
c6b750e1 9794
859789af
AC
9795fi
9796fi
c6b750e1 9797OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9798if test -n "$OBJDUMP"; then
81ecdfbb
RW
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9800$as_echo "$OBJDUMP" >&6; }
859789af 9801else
81ecdfbb
RW
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803$as_echo "no" >&6; }
859789af 9804fi
c6b750e1 9805
81ecdfbb 9806
05cbd757
PB
9807 fi
9808 test -n "$ac_cv_prog_OBJDUMP" && break
9809done
9810
9811if test -z "$ac_cv_prog_OBJDUMP" ; then
9812 set dummy objdump
9813 if test $build = $host ; then
9814 OBJDUMP="$2"
859789af 9815 else
05cbd757 9816 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9817 fi
859789af
AC
9818fi
9819
a0da8069
NN
9820
9821
9822
9823
9824
be01d343 9825# Target tools.
c6b750e1 9826
81ecdfbb
RW
9827# Check whether --with-build-time-tools was given.
9828if test "${with_build_time_tools+set}" = set; then :
9829 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9830 x/*) ;;
9831 *)
9832 with_build_time_tools=
81ecdfbb
RW
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9834$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9835 ;;
9836 esac
859789af 9837else
2429c060 9838 with_build_time_tools=
81ecdfbb
RW
9839fi
9840
859789af 9841
9a819804
AO
9842
9843
9844if test -n "$CC_FOR_TARGET"; then
9845 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9846elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9847 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9848fi
9849
9850if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9851 for ncn_progname in cc gcc; do
9852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9853set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9855$as_echo_n "checking for $ac_word... " >&6; }
9856if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9857 $as_echo_n "(cached) " >&6
9a819804
AO
9858else
9859 if test -n "$CC_FOR_TARGET"; then
9860 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9861else
9862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863for as_dir in $PATH
9864do
9865 IFS=$as_save_IFS
9866 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9867 for ac_exec_ext in '' $ac_executable_extensions; do
9868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9869 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9871 break 2
9872 fi
9873done
81ecdfbb
RW
9874 done
9875IFS=$as_save_IFS
9a819804
AO
9876
9877fi
9878fi
9879CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9880if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9882$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9883else
81ecdfbb
RW
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885$as_echo "no" >&6; }
9a819804
AO
9886fi
9887
81ecdfbb 9888
9a819804
AO
9889 done
9890fi
9891
9892if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9893 for ncn_progname in cc gcc; do
81ecdfbb
RW
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9895$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9896 if test -x $with_build_time_tools/${ncn_progname}; then
9897 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9899$as_echo "yes" >&6; }
cac3d6c4 9900 break
2429c060 9901 else
81ecdfbb
RW
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903$as_echo "no" >&6; }
cac3d6c4
CM
9904 fi
9905 done
55db4b87
PB
9906fi
9907
2429c060
PB
9908if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9909 for ncn_progname in cc gcc; do
9910 if test -n "$ncn_target_tool_prefix"; then
9911 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9912set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914$as_echo_n "checking for $ac_word... " >&6; }
9915if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9916 $as_echo_n "(cached) " >&6
55db4b87
PB
9917else
9918 if test -n "$CC_FOR_TARGET"; then
9919 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9920else
c6b750e1
DJ
9921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922for as_dir in $PATH
9923do
9924 IFS=$as_save_IFS
9925 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9926 for ac_exec_ext in '' $ac_executable_extensions; do
9927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9928 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9930 break 2
9931 fi
9932done
81ecdfbb
RW
9933 done
9934IFS=$as_save_IFS
c6b750e1 9935
55db4b87
PB
9936fi
9937fi
c6b750e1 9938CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9939if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9941$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9942else
81ecdfbb
RW
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944$as_echo "no" >&6; }
55db4b87
PB
9945fi
9946
81ecdfbb 9947
2429c060
PB
9948 fi
9949 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9951set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953$as_echo_n "checking for $ac_word... " >&6; }
9954if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9955 $as_echo_n "(cached) " >&6
55db4b87 9956else
05cbd757
PB
9957 if test -n "$CC_FOR_TARGET"; then
9958 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9959else
c6b750e1
DJ
9960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961for as_dir in $PATH
9962do
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9965 for ac_exec_ext in '' $ac_executable_extensions; do
9966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9967 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9969 break 2
9970 fi
9971done
81ecdfbb
RW
9972 done
9973IFS=$as_save_IFS
c6b750e1 9974
55db4b87
PB
9975fi
9976fi
c6b750e1 9977CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9978if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9980$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9981else
81ecdfbb
RW
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983$as_echo "no" >&6; }
55db4b87 9984fi
c6b750e1 9985
81ecdfbb 9986
2429c060
PB
9987 fi
9988 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9989 done
9990fi
c6b750e1 9991
05cbd757
PB
9992if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9993 set dummy cc gcc
9994 if test $build = $target ; then
9995 CC_FOR_TARGET="$2"
55db4b87 9996 else
05cbd757 9997 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9998 fi
d3f5afc4
MS
9999else
10000 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10001fi
10002
9a819804
AO
10003
10004
10005if test -n "$CXX_FOR_TARGET"; then
10006 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10007elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10008 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10009fi
10010
10011if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10012 for ncn_progname in c++ g++ cxx gxx; do
10013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10014set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10016$as_echo_n "checking for $ac_word... " >&6; }
10017if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10018 $as_echo_n "(cached) " >&6
9a819804
AO
10019else
10020 if test -n "$CXX_FOR_TARGET"; then
10021 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10022else
10023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024for as_dir in $PATH
10025do
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10030 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10032 break 2
10033 fi
10034done
81ecdfbb
RW
10035 done
10036IFS=$as_save_IFS
9a819804
AO
10037
10038fi
10039fi
10040CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10041if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10043$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10044else
81ecdfbb
RW
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046$as_echo "no" >&6; }
9a819804
AO
10047fi
10048
81ecdfbb 10049
9a819804
AO
10050 done
10051fi
10052
10053if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10054 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10056$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10057 if test -x $with_build_time_tools/${ncn_progname}; then
10058 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10060$as_echo "yes" >&6; }
2429c060
PB
10061 break
10062 else
81ecdfbb
RW
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064$as_echo "no" >&6; }
2429c060
PB
10065 fi
10066 done
10067fi
10068
10069if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10070 for ncn_progname in c++ g++ cxx gxx; do
10071 if test -n "$ncn_target_tool_prefix"; then
10072 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10073set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075$as_echo_n "checking for $ac_word... " >&6; }
10076if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
55db4b87
PB
10078else
10079 if test -n "$CXX_FOR_TARGET"; then
10080 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10081else
c6b750e1
DJ
10082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083for as_dir in $PATH
10084do
10085 IFS=$as_save_IFS
10086 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10087 for ac_exec_ext in '' $ac_executable_extensions; do
10088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10089 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10091 break 2
10092 fi
10093done
81ecdfbb
RW
10094 done
10095IFS=$as_save_IFS
c6b750e1 10096
55db4b87
PB
10097fi
10098fi
c6b750e1 10099CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10100if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10102$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10103else
81ecdfbb
RW
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105$as_echo "no" >&6; }
55db4b87
PB
10106fi
10107
81ecdfbb 10108
2429c060
PB
10109 fi
10110 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10112set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10114$as_echo_n "checking for $ac_word... " >&6; }
10115if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10116 $as_echo_n "(cached) " >&6
55db4b87 10117else
05cbd757
PB
10118 if test -n "$CXX_FOR_TARGET"; then
10119 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10120else
c6b750e1
DJ
10121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10122for as_dir in $PATH
10123do
10124 IFS=$as_save_IFS
10125 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10126 for ac_exec_ext in '' $ac_executable_extensions; do
10127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10128 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10130 break 2
10131 fi
10132done
81ecdfbb
RW
10133 done
10134IFS=$as_save_IFS
c6b750e1 10135
55db4b87
PB
10136fi
10137fi
c6b750e1 10138CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10139if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10141$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10142else
81ecdfbb
RW
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144$as_echo "no" >&6; }
55db4b87 10145fi
c6b750e1 10146
81ecdfbb 10147
2429c060
PB
10148 fi
10149 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10150 done
10151fi
c6b750e1 10152
05cbd757
PB
10153if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10154 set dummy c++ g++ cxx gxx
10155 if test $build = $target ; then
10156 CXX_FOR_TARGET="$2"
55db4b87 10157 else
05cbd757 10158 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10159 fi
d3f5afc4
MS
10160else
10161 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10162fi
10163
9a819804
AO
10164
10165
10166if test -n "$GCC_FOR_TARGET"; then
10167 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10168elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10169 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10170fi
10171
10172if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10173 for ncn_progname in gcc; do
10174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10175set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10177$as_echo_n "checking for $ac_word... " >&6; }
10178if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10179 $as_echo_n "(cached) " >&6
9a819804
AO
10180else
10181 if test -n "$GCC_FOR_TARGET"; then
10182 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10183else
10184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185for as_dir in $PATH
10186do
10187 IFS=$as_save_IFS
10188 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10191 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10193 break 2
10194 fi
10195done
81ecdfbb
RW
10196 done
10197IFS=$as_save_IFS
9a819804
AO
10198
10199fi
10200fi
10201GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10202if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10204$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10205else
81ecdfbb
RW
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207$as_echo "no" >&6; }
9a819804
AO
10208fi
10209
81ecdfbb 10210
9a819804
AO
10211 done
10212fi
10213
10214if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10215 for ncn_progname in gcc; do
81ecdfbb
RW
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10217$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10218 if test -x $with_build_time_tools/${ncn_progname}; then
10219 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10221$as_echo "yes" >&6; }
2429c060
PB
10222 break
10223 else
81ecdfbb
RW
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225$as_echo "no" >&6; }
2429c060
PB
10226 fi
10227 done
10228fi
10229
10230if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10231 for ncn_progname in gcc; do
10232 if test -n "$ncn_target_tool_prefix"; then
10233 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10234set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10236$as_echo_n "checking for $ac_word... " >&6; }
10237if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10238 $as_echo_n "(cached) " >&6
859789af 10239else
2429c060
PB
10240 if test -n "$GCC_FOR_TARGET"; then
10241 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10242else
c6b750e1
DJ
10243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244for as_dir in $PATH
10245do
10246 IFS=$as_save_IFS
10247 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10248 for ac_exec_ext in '' $ac_executable_extensions; do
10249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10250 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10252 break 2
10253 fi
10254done
81ecdfbb
RW
10255 done
10256IFS=$as_save_IFS
c6b750e1 10257
55db4b87
PB
10258fi
10259fi
c6b750e1 10260GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10261if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10263$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10264else
81ecdfbb
RW
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266$as_echo "no" >&6; }
55db4b87
PB
10267fi
10268
81ecdfbb 10269
2429c060
PB
10270 fi
10271 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10273set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275$as_echo_n "checking for $ac_word... " >&6; }
10276if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
55db4b87 10278else
05cbd757
PB
10279 if test -n "$GCC_FOR_TARGET"; then
10280 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10281else
c6b750e1
DJ
10282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283for as_dir in $PATH
10284do
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10289 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10291 break 2
10292 fi
10293done
81ecdfbb
RW
10294 done
10295IFS=$as_save_IFS
c6b750e1 10296
55db4b87
PB
10297fi
10298fi
c6b750e1 10299GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10300if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10302$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10303else
81ecdfbb
RW
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305$as_echo "no" >&6; }
55db4b87 10306fi
c6b750e1 10307
81ecdfbb 10308
2429c060
PB
10309 fi
10310 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10311 done
10312fi
c6b750e1 10313
05cbd757
PB
10314if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10315 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10316else
10317 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10318fi
10319
9a819804
AO
10320
10321
10322if test -n "$GCJ_FOR_TARGET"; then
10323 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10324elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10325 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10326fi
10327
10328if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10329 for ncn_progname in gcj; do
10330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10331set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10333$as_echo_n "checking for $ac_word... " >&6; }
10334if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10335 $as_echo_n "(cached) " >&6
9a819804
AO
10336else
10337 if test -n "$GCJ_FOR_TARGET"; then
10338 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10339else
10340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341for as_dir in $PATH
10342do
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10345 for ac_exec_ext in '' $ac_executable_extensions; do
10346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10347 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10349 break 2
10350 fi
10351done
81ecdfbb
RW
10352 done
10353IFS=$as_save_IFS
9a819804
AO
10354
10355fi
10356fi
10357GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10358if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10360$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10361else
81ecdfbb
RW
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363$as_echo "no" >&6; }
9a819804
AO
10364fi
10365
81ecdfbb 10366
9a819804
AO
10367 done
10368fi
10369
10370if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10371 for ncn_progname in gcj; do
81ecdfbb
RW
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10373$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10374 if test -x $with_build_time_tools/${ncn_progname}; then
10375 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10377$as_echo "yes" >&6; }
2429c060
PB
10378 break
10379 else
81ecdfbb
RW
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381$as_echo "no" >&6; }
2429c060
PB
10382 fi
10383 done
10384fi
10385
10386if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10387 for ncn_progname in gcj; do
10388 if test -n "$ncn_target_tool_prefix"; then
10389 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10390set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392$as_echo_n "checking for $ac_word... " >&6; }
10393if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
55db4b87
PB
10395else
10396 if test -n "$GCJ_FOR_TARGET"; then
10397 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10398else
c6b750e1
DJ
10399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400for as_dir in $PATH
10401do
10402 IFS=$as_save_IFS
10403 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10404 for ac_exec_ext in '' $ac_executable_extensions; do
10405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10406 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10408 break 2
10409 fi
10410done
81ecdfbb
RW
10411 done
10412IFS=$as_save_IFS
c6b750e1 10413
55db4b87
PB
10414fi
10415fi
9a819804
AO
10416GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10417if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10419$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10420else
81ecdfbb
RW
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422$as_echo "no" >&6; }
9a819804
AO
10423fi
10424
81ecdfbb 10425
9a819804
AO
10426 fi
10427 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10429set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431$as_echo_n "checking for $ac_word... " >&6; }
10432if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10433 $as_echo_n "(cached) " >&6
9a819804
AO
10434else
10435 if test -n "$GCJ_FOR_TARGET"; then
10436 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10437else
10438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439for as_dir in $PATH
10440do
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10445 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10447 break 2
10448 fi
10449done
81ecdfbb
RW
10450 done
10451IFS=$as_save_IFS
9a819804
AO
10452
10453fi
10454fi
10455GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10456if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10458$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10459else
81ecdfbb
RW
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461$as_echo "no" >&6; }
9a819804
AO
10462fi
10463
81ecdfbb 10464
9a819804
AO
10465 fi
10466 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10467 done
10468fi
10469
10470if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10471 set dummy gcj
10472 if test $build = $target ; then
10473 GCJ_FOR_TARGET="$2"
10474 else
10475 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10476 fi
d3f5afc4
MS
10477else
10478 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10479fi
10480
10481
10482
10483if test -n "$GFORTRAN_FOR_TARGET"; then
10484 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10485elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10486 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10487fi
10488
9a819804
AO
10489if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10490 for ncn_progname in gfortran; do
10491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10492set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494$as_echo_n "checking for $ac_word... " >&6; }
10495if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10496 $as_echo_n "(cached) " >&6
55db4b87 10497else
9a819804
AO
10498 if test -n "$GFORTRAN_FOR_TARGET"; then
10499 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10500else
c6b750e1
DJ
10501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502for as_dir in $PATH
10503do
10504 IFS=$as_save_IFS
10505 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10506 for ac_exec_ext in '' $ac_executable_extensions; do
10507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10508 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10510 break 2
10511 fi
10512done
81ecdfbb
RW
10513 done
10514IFS=$as_save_IFS
c6b750e1 10515
55db4b87
PB
10516fi
10517fi
9a819804
AO
10518GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10519if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10521$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10522else
81ecdfbb
RW
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524$as_echo "no" >&6; }
55db4b87 10525fi
c6b750e1 10526
81ecdfbb 10527
2429c060
PB
10528 done
10529fi
c6b750e1 10530
9a819804 10531if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10532 for ncn_progname in gfortran; do
81ecdfbb
RW
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10534$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10535 if test -x $with_build_time_tools/${ncn_progname}; then
10536 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10538$as_echo "yes" >&6; }
2429c060
PB
10539 break
10540 else
81ecdfbb
RW
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542$as_echo "no" >&6; }
2429c060
PB
10543 fi
10544 done
10545fi
10546
10547if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10548 for ncn_progname in gfortran; do
10549 if test -n "$ncn_target_tool_prefix"; then
10550 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10551set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553$as_echo_n "checking for $ac_word... " >&6; }
10554if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10555 $as_echo_n "(cached) " >&6
55db4b87
PB
10556else
10557 if test -n "$GFORTRAN_FOR_TARGET"; then
10558 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10559else
c6b750e1
DJ
10560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561for as_dir in $PATH
10562do
10563 IFS=$as_save_IFS
10564 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10565 for ac_exec_ext in '' $ac_executable_extensions; do
10566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10567 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10569 break 2
10570 fi
10571done
81ecdfbb
RW
10572 done
10573IFS=$as_save_IFS
c6b750e1 10574
55db4b87
PB
10575fi
10576fi
c6b750e1 10577GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10578if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10580$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10581else
81ecdfbb
RW
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583$as_echo "no" >&6; }
55db4b87
PB
10584fi
10585
81ecdfbb 10586
2429c060
PB
10587 fi
10588 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10590set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592$as_echo_n "checking for $ac_word... " >&6; }
10593if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10594 $as_echo_n "(cached) " >&6
55db4b87 10595else
05cbd757 10596 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10597 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10598else
10599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600for as_dir in $PATH
10601do
10602 IFS=$as_save_IFS
10603 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10604 for ac_exec_ext in '' $ac_executable_extensions; do
10605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10606 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10608 break 2
10609 fi
10610done
81ecdfbb
RW
10611 done
10612IFS=$as_save_IFS
c6b750e1 10613
55db4b87
PB
10614fi
10615fi
c6b750e1 10616GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10617if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10619$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10620else
81ecdfbb
RW
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622$as_echo "no" >&6; }
55db4b87 10623fi
c6b750e1 10624
81ecdfbb 10625
2429c060
PB
10626 fi
10627 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10628 done
10629fi
c6b750e1 10630
05cbd757
PB
10631if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10632 set dummy gfortran
10633 if test $build = $target ; then
10634 GFORTRAN_FOR_TARGET="$2"
55db4b87 10635 else
05cbd757 10636 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10637 fi
d3f5afc4
MS
10638else
10639 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10640fi
10641
2429c060
PB
10642
10643
e552509b
ILT
10644if test -n "$GOC_FOR_TARGET"; then
10645 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10646elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10647 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10648fi
10649
10650if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10651 for ncn_progname in gccgo; do
10652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10653set dummy ${ncn_progname}; ac_word=$2
10654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655$as_echo_n "checking for $ac_word... " >&6; }
10656if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10657 $as_echo_n "(cached) " >&6
10658else
10659 if test -n "$GOC_FOR_TARGET"; then
10660 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10661else
10662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663for as_dir in $PATH
10664do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10669 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10672 fi
10673done
10674 done
10675IFS=$as_save_IFS
10676
10677fi
10678fi
10679GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10680if test -n "$GOC_FOR_TARGET"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10682$as_echo "$GOC_FOR_TARGET" >&6; }
10683else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685$as_echo "no" >&6; }
10686fi
10687
10688
10689 done
10690fi
10691
10692if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10693 for ncn_progname in gccgo; do
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10695$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10696 if test -x $with_build_time_tools/${ncn_progname}; then
10697 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10699$as_echo "yes" >&6; }
10700 break
10701 else
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703$as_echo "no" >&6; }
10704 fi
10705 done
10706fi
10707
10708if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10709 for ncn_progname in gccgo; do
10710 if test -n "$ncn_target_tool_prefix"; then
10711 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10712set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714$as_echo_n "checking for $ac_word... " >&6; }
10715if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10717else
10718 if test -n "$GOC_FOR_TARGET"; then
10719 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10720else
10721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722for as_dir in $PATH
10723do
10724 IFS=$as_save_IFS
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10728 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 break 2
10731 fi
10732done
10733 done
10734IFS=$as_save_IFS
10735
10736fi
10737fi
10738GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10739if test -n "$GOC_FOR_TARGET"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10741$as_echo "$GOC_FOR_TARGET" >&6; }
10742else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744$as_echo "no" >&6; }
10745fi
10746
10747
10748 fi
10749 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10751set dummy ${ncn_progname}; ac_word=$2
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753$as_echo_n "checking for $ac_word... " >&6; }
10754if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
10756else
10757 if test -n "$GOC_FOR_TARGET"; then
10758 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10759else
10760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761for as_dir in $PATH
10762do
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10767 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10769 break 2
10770 fi
10771done
10772 done
10773IFS=$as_save_IFS
10774
10775fi
10776fi
10777GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10778if test -n "$GOC_FOR_TARGET"; then
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10780$as_echo "$GOC_FOR_TARGET" >&6; }
10781else
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783$as_echo "no" >&6; }
10784fi
10785
10786
10787 fi
10788 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10789 done
10790fi
10791
10792if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10793 set dummy gccgo
10794 if test $build = $target ; then
10795 GOC_FOR_TARGET="$2"
10796 else
10797 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10798 fi
10799else
10800 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10801fi
10802
10803
10804
2429c060
PB
10805cat > conftest.c << \EOF
10806#ifdef __GNUC__
10807 gcc_yay;
10808#endif
10809EOF
10810if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10811 have_gcc_for_target=yes
859789af 10812else
2429c060
PB
10813 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10814 have_gcc_for_target=no
859789af 10815fi
2429c060
PB
10816rm conftest.c
10817
10818
10819
859789af 10820
2429c060
PB
10821if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10822 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10824$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10825 if test -x $with_build_time_tools/ar; then
10826 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10827 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10829$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10830 else
81ecdfbb
RW
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832$as_echo "no" >&6; }
3a35eeb3 10833 fi
2429c060
PB
10834 elif test $build != $host && test $have_gcc_for_target = yes; then
10835 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10836 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10837 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10838 fi
2429c060 10839fi
c6b750e1 10840if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10841 # Extract the first word of "ar", so it can be a program name with args.
10842set dummy ar; ac_word=$2
81ecdfbb
RW
10843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844$as_echo_n "checking for $ac_word... " >&6; }
10845if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
859789af 10847else
c6b750e1
DJ
10848 case $AR_FOR_TARGET in
10849 [\\/]* | ?:[\\/]*)
2429c060
PB
10850 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10851 ;;
2429c060 10852 *)
c6b750e1
DJ
10853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854for as_dir in $gcc_cv_tool_dirs
10855do
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10860 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10862 break 2
10863 fi
10864done
81ecdfbb
RW
10865 done
10866IFS=$as_save_IFS
c6b750e1 10867
2429c060
PB
10868 ;;
10869esac
859789af 10870fi
c6b750e1 10871AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10872if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10874$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10875else
81ecdfbb
RW
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877$as_echo "no" >&6; }
859789af 10878fi
05cbd757 10879
81ecdfbb 10880
2429c060
PB
10881fi
10882if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10883
10884
10885if test -n "$AR_FOR_TARGET"; then
10886 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10887elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10888 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10889fi
10890
10891if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10892 for ncn_progname in ar; do
10893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10894set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896$as_echo_n "checking for $ac_word... " >&6; }
10897if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
9a819804
AO
10899else
10900 if test -n "$AR_FOR_TARGET"; then
10901 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10902else
10903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904for as_dir in $PATH
10905do
10906 IFS=$as_save_IFS
10907 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10908 for ac_exec_ext in '' $ac_executable_extensions; do
10909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10910 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10912 break 2
10913 fi
10914done
81ecdfbb
RW
10915 done
10916IFS=$as_save_IFS
9a819804
AO
10917
10918fi
10919fi
10920AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10921if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10923$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10924else
81ecdfbb
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926$as_echo "no" >&6; }
9a819804
AO
10927fi
10928
81ecdfbb 10929
9a819804
AO
10930 done
10931fi
10932
10933if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10934 for ncn_progname in ar; do
81ecdfbb
RW
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10936$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10937 if test -x $with_build_time_tools/${ncn_progname}; then
10938 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10940$as_echo "yes" >&6; }
2429c060
PB
10941 break
10942 else
81ecdfbb
RW
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944$as_echo "no" >&6; }
2429c060
PB
10945 fi
10946 done
859789af
AC
10947fi
10948
2429c060
PB
10949if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10950 for ncn_progname in ar; do
10951 if test -n "$ncn_target_tool_prefix"; then
10952 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10953set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10955$as_echo_n "checking for $ac_word... " >&6; }
10956if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10957 $as_echo_n "(cached) " >&6
7e0f7140 10958else
2429c060
PB
10959 if test -n "$AR_FOR_TARGET"; then
10960 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10961else
c6b750e1
DJ
10962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963for as_dir in $PATH
10964do
10965 IFS=$as_save_IFS
10966 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10969 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10971 break 2
10972 fi
10973done
81ecdfbb
RW
10974 done
10975IFS=$as_save_IFS
c6b750e1 10976
7e0f7140
GK
10977fi
10978fi
c6b750e1 10979AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10980if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10982$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10983else
81ecdfbb
RW
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985$as_echo "no" >&6; }
7e0f7140
GK
10986fi
10987
81ecdfbb 10988
2429c060
PB
10989 fi
10990 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10992set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994$as_echo_n "checking for $ac_word... " >&6; }
10995if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10996 $as_echo_n "(cached) " >&6
7e0f7140 10997else
2429c060
PB
10998 if test -n "$AR_FOR_TARGET"; then
10999 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11000else
c6b750e1
DJ
11001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002for as_dir in $PATH
11003do
11004 IFS=$as_save_IFS
11005 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11008 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11010 break 2
11011 fi
11012done
81ecdfbb
RW
11013 done
11014IFS=$as_save_IFS
c6b750e1 11015
7e0f7140
GK
11016fi
11017fi
c6b750e1 11018AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11019if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11021$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11022else
81ecdfbb
RW
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024$as_echo "no" >&6; }
7e0f7140 11025fi
c6b750e1 11026
81ecdfbb 11027
2429c060
PB
11028 fi
11029 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11030 done
11031fi
c6b750e1 11032
2429c060
PB
11033if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11034 set dummy ar
7e0f7140 11035 if test $build = $target ; then
2429c060 11036 AR_FOR_TARGET="$2"
7e0f7140 11037 else
2429c060 11038 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11039 fi
d3f5afc4
MS
11040else
11041 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11042fi
11043
3a35eeb3
PB
11044else
11045 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11046fi
11047
11048
11049
11050
11051if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11052 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11054$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11055 if test -x $with_build_time_tools/as; then
11056 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11057 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11059$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11060 else
81ecdfbb
RW
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062$as_echo "no" >&6; }
3a35eeb3 11063 fi
2429c060
PB
11064 elif test $build != $host && test $have_gcc_for_target = yes; then
11065 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11066 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11067 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11068 fi
11069fi
c6b750e1 11070if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11071 # Extract the first word of "as", so it can be a program name with args.
11072set dummy as; ac_word=$2
81ecdfbb
RW
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074$as_echo_n "checking for $ac_word... " >&6; }
11075if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
2429c060 11077else
c6b750e1
DJ
11078 case $AS_FOR_TARGET in
11079 [\\/]* | ?:[\\/]*)
2429c060
PB
11080 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11081 ;;
2429c060 11082 *)
c6b750e1
DJ
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084for as_dir in $gcc_cv_tool_dirs
11085do
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11090 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11092 break 2
11093 fi
11094done
81ecdfbb
RW
11095 done
11096IFS=$as_save_IFS
c6b750e1 11097
2429c060
PB
11098 ;;
11099esac
11100fi
c6b750e1 11101AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11102if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11104$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11105else
81ecdfbb
RW
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107$as_echo "no" >&6; }
2429c060
PB
11108fi
11109
81ecdfbb 11110
2429c060
PB
11111fi
11112if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11113
11114
11115if test -n "$AS_FOR_TARGET"; then
11116 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11117elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11118 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11119fi
11120
11121if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11122 for ncn_progname in as; do
11123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11124set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126$as_echo_n "checking for $ac_word... " >&6; }
11127if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11128 $as_echo_n "(cached) " >&6
9a819804
AO
11129else
11130 if test -n "$AS_FOR_TARGET"; then
11131 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11132else
11133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134for as_dir in $PATH
11135do
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11140 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11142 break 2
11143 fi
11144done
81ecdfbb
RW
11145 done
11146IFS=$as_save_IFS
9a819804
AO
11147
11148fi
11149fi
11150AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11151if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11153$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11154else
81ecdfbb
RW
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156$as_echo "no" >&6; }
9a819804
AO
11157fi
11158
81ecdfbb 11159
9a819804
AO
11160 done
11161fi
11162
11163if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11164 for ncn_progname in as; do
81ecdfbb
RW
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11166$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11167 if test -x $with_build_time_tools/${ncn_progname}; then
11168 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11170$as_echo "yes" >&6; }
2429c060
PB
11171 break
11172 else
81ecdfbb
RW
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174$as_echo "no" >&6; }
2429c060
PB
11175 fi
11176 done
11177fi
11178
11179if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11180 for ncn_progname in as; do
11181 if test -n "$ncn_target_tool_prefix"; then
11182 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11183set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185$as_echo_n "checking for $ac_word... " >&6; }
11186if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11187 $as_echo_n "(cached) " >&6
2429c060
PB
11188else
11189 if test -n "$AS_FOR_TARGET"; then
11190 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11191else
c6b750e1
DJ
11192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193for as_dir in $PATH
11194do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11199 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11201 break 2
11202 fi
11203done
81ecdfbb
RW
11204 done
11205IFS=$as_save_IFS
c6b750e1 11206
2429c060
PB
11207fi
11208fi
c6b750e1 11209AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11210if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11212$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11213else
81ecdfbb
RW
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215$as_echo "no" >&6; }
2429c060
PB
11216fi
11217
81ecdfbb 11218
2429c060
PB
11219 fi
11220 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11222set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224$as_echo_n "checking for $ac_word... " >&6; }
11225if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
2429c060
PB
11227else
11228 if test -n "$AS_FOR_TARGET"; then
11229 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11230else
c6b750e1
DJ
11231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232for as_dir in $PATH
11233do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11238 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11240 break 2
11241 fi
11242done
81ecdfbb
RW
11243 done
11244IFS=$as_save_IFS
c6b750e1 11245
2429c060
PB
11246fi
11247fi
c6b750e1 11248AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11249if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11251$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11252else
81ecdfbb
RW
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254$as_echo "no" >&6; }
2429c060 11255fi
c6b750e1 11256
81ecdfbb 11257
2429c060
PB
11258 fi
11259 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11260 done
11261fi
c6b750e1 11262
2429c060
PB
11263if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11264 set dummy as
11265 if test $build = $target ; then
11266 AS_FOR_TARGET="$2"
11267 else
11268 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11269 fi
d3f5afc4
MS
11270else
11271 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11272fi
11273
3a35eeb3
PB
11274else
11275 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11276fi
11277
11278
11279
11280
11281if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11282 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11284$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11285 if test -x $with_build_time_tools/dlltool; then
11286 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11287 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11289$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11290 else
81ecdfbb
RW
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292$as_echo "no" >&6; }
3a35eeb3 11293 fi
2429c060
PB
11294 elif test $build != $host && test $have_gcc_for_target = yes; then
11295 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11296 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11297 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11298 fi
11299fi
c6b750e1 11300if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11301 # Extract the first word of "dlltool", so it can be a program name with args.
11302set dummy dlltool; ac_word=$2
81ecdfbb
RW
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11304$as_echo_n "checking for $ac_word... " >&6; }
11305if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11306 $as_echo_n "(cached) " >&6
2429c060 11307else
c6b750e1
DJ
11308 case $DLLTOOL_FOR_TARGET in
11309 [\\/]* | ?:[\\/]*)
2429c060
PB
11310 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11311 ;;
2429c060 11312 *)
c6b750e1
DJ
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314for as_dir in $gcc_cv_tool_dirs
11315do
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11320 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11322 break 2
11323 fi
11324done
81ecdfbb
RW
11325 done
11326IFS=$as_save_IFS
c6b750e1 11327
2429c060
PB
11328 ;;
11329esac
11330fi
c6b750e1 11331DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11332if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11334$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11335else
81ecdfbb
RW
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337$as_echo "no" >&6; }
2429c060
PB
11338fi
11339
81ecdfbb 11340
2429c060
PB
11341fi
11342if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11343
11344
11345if test -n "$DLLTOOL_FOR_TARGET"; then
11346 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11347elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11348 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11349fi
11350
11351if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11352 for ncn_progname in dlltool; do
11353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11354set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356$as_echo_n "checking for $ac_word... " >&6; }
11357if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11358 $as_echo_n "(cached) " >&6
9a819804
AO
11359else
11360 if test -n "$DLLTOOL_FOR_TARGET"; then
11361 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11362else
11363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364for as_dir in $PATH
11365do
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11370 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11372 break 2
11373 fi
11374done
81ecdfbb
RW
11375 done
11376IFS=$as_save_IFS
9a819804
AO
11377
11378fi
11379fi
11380DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11381if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11383$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11384else
81ecdfbb
RW
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386$as_echo "no" >&6; }
9a819804
AO
11387fi
11388
81ecdfbb 11389
9a819804
AO
11390 done
11391fi
11392
11393if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11394 for ncn_progname in dlltool; do
81ecdfbb
RW
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11396$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11397 if test -x $with_build_time_tools/${ncn_progname}; then
11398 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11400$as_echo "yes" >&6; }
2429c060
PB
11401 break
11402 else
81ecdfbb
RW
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404$as_echo "no" >&6; }
2429c060
PB
11405 fi
11406 done
11407fi
11408
11409if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11410 for ncn_progname in dlltool; do
11411 if test -n "$ncn_target_tool_prefix"; then
11412 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11413set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415$as_echo_n "checking for $ac_word... " >&6; }
11416if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11417 $as_echo_n "(cached) " >&6
2429c060
PB
11418else
11419 if test -n "$DLLTOOL_FOR_TARGET"; then
11420 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11421else
c6b750e1
DJ
11422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423for as_dir in $PATH
11424do
11425 IFS=$as_save_IFS
11426 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11429 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11431 break 2
11432 fi
11433done
81ecdfbb
RW
11434 done
11435IFS=$as_save_IFS
c6b750e1 11436
2429c060
PB
11437fi
11438fi
c6b750e1 11439DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11440if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11442$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11443else
81ecdfbb
RW
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445$as_echo "no" >&6; }
2429c060
PB
11446fi
11447
81ecdfbb 11448
2429c060
PB
11449 fi
11450 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11452set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454$as_echo_n "checking for $ac_word... " >&6; }
11455if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
2429c060
PB
11457else
11458 if test -n "$DLLTOOL_FOR_TARGET"; then
11459 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11460else
c6b750e1
DJ
11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11468 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11470 break 2
11471 fi
11472done
81ecdfbb
RW
11473 done
11474IFS=$as_save_IFS
c6b750e1 11475
2429c060
PB
11476fi
11477fi
c6b750e1 11478DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11479if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11481$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11482else
81ecdfbb
RW
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484$as_echo "no" >&6; }
2429c060 11485fi
c6b750e1 11486
81ecdfbb 11487
2429c060
PB
11488 fi
11489 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11490 done
11491fi
c6b750e1 11492
2429c060
PB
11493if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11494 set dummy dlltool
11495 if test $build = $target ; then
11496 DLLTOOL_FOR_TARGET="$2"
11497 else
11498 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11499 fi
d3f5afc4
MS
11500else
11501 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11502fi
11503
3a35eeb3
PB
11504else
11505 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11506fi
11507
11508
11509
11510
11511if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11512 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11514$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11515 if test -x $with_build_time_tools/ld; then
11516 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11517 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11519$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11520 else
81ecdfbb
RW
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522$as_echo "no" >&6; }
3a35eeb3 11523 fi
2429c060
PB
11524 elif test $build != $host && test $have_gcc_for_target = yes; then
11525 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11526 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11527 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11528 fi
11529fi
c6b750e1 11530if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11531 # Extract the first word of "ld", so it can be a program name with args.
11532set dummy ld; ac_word=$2
81ecdfbb
RW
11533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11534$as_echo_n "checking for $ac_word... " >&6; }
11535if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11536 $as_echo_n "(cached) " >&6
2429c060 11537else
c6b750e1
DJ
11538 case $LD_FOR_TARGET in
11539 [\\/]* | ?:[\\/]*)
2429c060
PB
11540 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11541 ;;
2429c060 11542 *)
c6b750e1
DJ
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544for as_dir in $gcc_cv_tool_dirs
11545do
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11550 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11552 break 2
11553 fi
11554done
81ecdfbb
RW
11555 done
11556IFS=$as_save_IFS
c6b750e1 11557
2429c060
PB
11558 ;;
11559esac
11560fi
c6b750e1 11561LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11562if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11564$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11565else
81ecdfbb
RW
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567$as_echo "no" >&6; }
2429c060
PB
11568fi
11569
81ecdfbb 11570
2429c060
PB
11571fi
11572if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11573
11574
11575if test -n "$LD_FOR_TARGET"; then
11576 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11577elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11578 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11579fi
11580
11581if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11582 for ncn_progname in ld; do
11583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11584set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11586$as_echo_n "checking for $ac_word... " >&6; }
11587if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11588 $as_echo_n "(cached) " >&6
9a819804
AO
11589else
11590 if test -n "$LD_FOR_TARGET"; then
11591 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11592else
11593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594for as_dir in $PATH
11595do
11596 IFS=$as_save_IFS
11597 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11598 for ac_exec_ext in '' $ac_executable_extensions; do
11599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11600 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11602 break 2
11603 fi
11604done
81ecdfbb
RW
11605 done
11606IFS=$as_save_IFS
9a819804
AO
11607
11608fi
11609fi
11610LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11611if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11613$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11614else
81ecdfbb
RW
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616$as_echo "no" >&6; }
9a819804
AO
11617fi
11618
81ecdfbb 11619
9a819804
AO
11620 done
11621fi
11622
11623if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11624 for ncn_progname in ld; do
81ecdfbb
RW
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11626$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11627 if test -x $with_build_time_tools/${ncn_progname}; then
11628 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11630$as_echo "yes" >&6; }
2429c060
PB
11631 break
11632 else
81ecdfbb
RW
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634$as_echo "no" >&6; }
2429c060
PB
11635 fi
11636 done
11637fi
11638
11639if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11640 for ncn_progname in ld; do
11641 if test -n "$ncn_target_tool_prefix"; then
11642 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11643set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645$as_echo_n "checking for $ac_word... " >&6; }
11646if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11647 $as_echo_n "(cached) " >&6
2429c060
PB
11648else
11649 if test -n "$LD_FOR_TARGET"; then
11650 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11651else
c6b750e1
DJ
11652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653for as_dir in $PATH
11654do
11655 IFS=$as_save_IFS
11656 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11657 for ac_exec_ext in '' $ac_executable_extensions; do
11658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11659 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11661 break 2
11662 fi
11663done
81ecdfbb
RW
11664 done
11665IFS=$as_save_IFS
c6b750e1 11666
2429c060
PB
11667fi
11668fi
c6b750e1 11669LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11670if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11672$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11673else
81ecdfbb
RW
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675$as_echo "no" >&6; }
2429c060
PB
11676fi
11677
81ecdfbb 11678
2429c060
PB
11679 fi
11680 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11682set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684$as_echo_n "checking for $ac_word... " >&6; }
11685if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
2429c060
PB
11687else
11688 if test -n "$LD_FOR_TARGET"; then
11689 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11690else
c6b750e1
DJ
11691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692for as_dir in $PATH
11693do
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11698 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11700 break 2
11701 fi
11702done
81ecdfbb
RW
11703 done
11704IFS=$as_save_IFS
c6b750e1 11705
2429c060
PB
11706fi
11707fi
c6b750e1 11708LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11709if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11711$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11712else
81ecdfbb
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714$as_echo "no" >&6; }
2429c060 11715fi
c6b750e1 11716
81ecdfbb 11717
2429c060
PB
11718 fi
11719 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11720 done
11721fi
c6b750e1 11722
2429c060
PB
11723if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11724 set dummy ld
11725 if test $build = $target ; then
11726 LD_FOR_TARGET="$2"
11727 else
11728 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11729 fi
d3f5afc4
MS
11730else
11731 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11732fi
11733
3a35eeb3
PB
11734else
11735 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11736fi
11737
11738
11739
11740
11741if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11742 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11744$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11745 if test -x $with_build_time_tools/lipo; then
11746 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11747 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11749$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11750 else
81ecdfbb
RW
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752$as_echo "no" >&6; }
3a35eeb3 11753 fi
2429c060
PB
11754 elif test $build != $host && test $have_gcc_for_target = yes; then
11755 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11756 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11757 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11758 fi
11759fi
9a819804
AO
11760if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11761 # Extract the first word of "lipo", so it can be a program name with args.
11762set dummy lipo; ac_word=$2
81ecdfbb
RW
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764$as_echo_n "checking for $ac_word... " >&6; }
11765if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11766 $as_echo_n "(cached) " >&6
9a819804
AO
11767else
11768 case $LIPO_FOR_TARGET in
11769 [\\/]* | ?:[\\/]*)
11770 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11771 ;;
11772 *)
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774for as_dir in $gcc_cv_tool_dirs
11775do
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11780 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11782 break 2
11783 fi
11784done
81ecdfbb
RW
11785 done
11786IFS=$as_save_IFS
9a819804
AO
11787
11788 ;;
11789esac
11790fi
11791LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11792if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11794$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11795else
81ecdfbb
RW
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797$as_echo "no" >&6; }
9a819804
AO
11798fi
11799
81ecdfbb 11800
9a819804
AO
11801fi
11802if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11803
11804
11805if test -n "$LIPO_FOR_TARGET"; then
11806 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11807elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11808 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11809fi
11810
11811if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11812 for ncn_progname in lipo; do
11813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11814set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816$as_echo_n "checking for $ac_word... " >&6; }
11817if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
2429c060 11819else
9a819804
AO
11820 if test -n "$LIPO_FOR_TARGET"; then
11821 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11822else
11823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824for as_dir in $PATH
c6b750e1
DJ
11825do
11826 IFS=$as_save_IFS
11827 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11830 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11832 break 2
11833 fi
11834done
81ecdfbb
RW
11835 done
11836IFS=$as_save_IFS
c6b750e1 11837
2429c060 11838fi
9a819804
AO
11839fi
11840LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11841if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11843$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11844else
81ecdfbb
RW
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846$as_echo "no" >&6; }
2429c060
PB
11847fi
11848
81ecdfbb 11849
9a819804 11850 done
2429c060 11851fi
9a819804
AO
11852
11853if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11854 for ncn_progname in lipo; do
81ecdfbb
RW
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11856$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11857 if test -x $with_build_time_tools/${ncn_progname}; then
11858 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11860$as_echo "yes" >&6; }
2429c060
PB
11861 break
11862 else
81ecdfbb
RW
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864$as_echo "no" >&6; }
2429c060
PB
11865 fi
11866 done
11867fi
11868
11869if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11870 for ncn_progname in lipo; do
11871 if test -n "$ncn_target_tool_prefix"; then
11872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11873set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875$as_echo_n "checking for $ac_word... " >&6; }
11876if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11877 $as_echo_n "(cached) " >&6
2429c060
PB
11878else
11879 if test -n "$LIPO_FOR_TARGET"; then
11880 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11881else
c6b750e1
DJ
11882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883for as_dir in $PATH
11884do
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11889 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11891 break 2
11892 fi
11893done
81ecdfbb
RW
11894 done
11895IFS=$as_save_IFS
c6b750e1 11896
2429c060
PB
11897fi
11898fi
c6b750e1 11899LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11900if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11902$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11903else
81ecdfbb
RW
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905$as_echo "no" >&6; }
2429c060
PB
11906fi
11907
81ecdfbb 11908
2429c060
PB
11909 fi
11910 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11912set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914$as_echo_n "checking for $ac_word... " >&6; }
11915if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
2429c060
PB
11917else
11918 if test -n "$LIPO_FOR_TARGET"; then
11919 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11920else
c6b750e1
DJ
11921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH
11923do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11928 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11930 break 2
11931 fi
11932done
81ecdfbb
RW
11933 done
11934IFS=$as_save_IFS
c6b750e1 11935
2429c060
PB
11936fi
11937fi
c6b750e1 11938LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11939if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11941$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11942else
81ecdfbb
RW
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
2429c060 11945fi
c6b750e1 11946
81ecdfbb 11947
2429c060
PB
11948 fi
11949 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11950 done
11951fi
c6b750e1 11952
2429c060
PB
11953if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11954 set dummy lipo
11955 if test $build = $target ; then
11956 LIPO_FOR_TARGET="$2"
11957 else
11958 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11959 fi
d3f5afc4
MS
11960else
11961 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11962fi
11963
3a35eeb3
PB
11964else
11965 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11966fi
11967
11968
11969
11970
11971if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11972 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11974$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11975 if test -x $with_build_time_tools/nm; then
11976 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11977 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11979$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11980 else
81ecdfbb
RW
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982$as_echo "no" >&6; }
3a35eeb3 11983 fi
2429c060
PB
11984 elif test $build != $host && test $have_gcc_for_target = yes; then
11985 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11986 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11987 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11988 fi
11989fi
c6b750e1 11990if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11991 # Extract the first word of "nm", so it can be a program name with args.
11992set dummy nm; ac_word=$2
81ecdfbb
RW
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994$as_echo_n "checking for $ac_word... " >&6; }
11995if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11996 $as_echo_n "(cached) " >&6
2429c060 11997else
c6b750e1
DJ
11998 case $NM_FOR_TARGET in
11999 [\\/]* | ?:[\\/]*)
2429c060
PB
12000 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12001 ;;
2429c060 12002 *)
c6b750e1
DJ
12003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004for as_dir in $gcc_cv_tool_dirs
12005do
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12010 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12012 break 2
12013 fi
12014done
81ecdfbb
RW
12015 done
12016IFS=$as_save_IFS
c6b750e1 12017
2429c060
PB
12018 ;;
12019esac
12020fi
c6b750e1 12021NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12022if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12024$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12025else
81ecdfbb
RW
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027$as_echo "no" >&6; }
2429c060
PB
12028fi
12029
81ecdfbb 12030
2429c060
PB
12031fi
12032if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12033
12034
12035if test -n "$NM_FOR_TARGET"; then
12036 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12037elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12038 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12039fi
12040
12041if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12042 for ncn_progname in nm; do
12043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12044set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046$as_echo_n "checking for $ac_word... " >&6; }
12047if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12048 $as_echo_n "(cached) " >&6
9a819804
AO
12049else
12050 if test -n "$NM_FOR_TARGET"; then
12051 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12052else
12053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054for as_dir in $PATH
12055do
12056 IFS=$as_save_IFS
12057 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12058 for ac_exec_ext in '' $ac_executable_extensions; do
12059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12060 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12062 break 2
12063 fi
12064done
81ecdfbb
RW
12065 done
12066IFS=$as_save_IFS
9a819804
AO
12067
12068fi
12069fi
12070NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12071if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12073$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12074else
81ecdfbb
RW
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076$as_echo "no" >&6; }
9a819804
AO
12077fi
12078
81ecdfbb 12079
9a819804
AO
12080 done
12081fi
12082
12083if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12084 for ncn_progname in nm; do
81ecdfbb
RW
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12086$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12087 if test -x $with_build_time_tools/${ncn_progname}; then
12088 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12090$as_echo "yes" >&6; }
2429c060
PB
12091 break
12092 else
81ecdfbb
RW
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094$as_echo "no" >&6; }
2429c060
PB
12095 fi
12096 done
12097fi
12098
12099if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12100 for ncn_progname in nm; do
12101 if test -n "$ncn_target_tool_prefix"; then
12102 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12103set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105$as_echo_n "checking for $ac_word... " >&6; }
12106if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12107 $as_echo_n "(cached) " >&6
859789af 12108else
55db4b87
PB
12109 if test -n "$NM_FOR_TARGET"; then
12110 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12111else
c6b750e1
DJ
12112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113for as_dir in $PATH
12114do
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12119 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12121 break 2
12122 fi
12123done
81ecdfbb
RW
12124 done
12125IFS=$as_save_IFS
c6b750e1 12126
859789af
AC
12127fi
12128fi
c6b750e1 12129NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12130if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12132$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12133else
81ecdfbb
RW
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135$as_echo "no" >&6; }
859789af
AC
12136fi
12137
81ecdfbb 12138
2429c060
PB
12139 fi
12140 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12142set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144$as_echo_n "checking for $ac_word... " >&6; }
12145if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
859789af 12147else
05cbd757
PB
12148 if test -n "$NM_FOR_TARGET"; then
12149 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12150else
c6b750e1
DJ
12151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152for as_dir in $PATH
12153do
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12158 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12160 break 2
12161 fi
12162done
81ecdfbb
RW
12163 done
12164IFS=$as_save_IFS
c6b750e1 12165
859789af
AC
12166fi
12167fi
c6b750e1 12168NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12169if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12171$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12172else
81ecdfbb
RW
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174$as_echo "no" >&6; }
859789af 12175fi
c6b750e1 12176
81ecdfbb 12177
2429c060
PB
12178 fi
12179 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12180 done
12181fi
c6b750e1 12182
05cbd757
PB
12183if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12184 set dummy nm
12185 if test $build = $target ; then
12186 NM_FOR_TARGET="$2"
859789af 12187 else
05cbd757 12188 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12189 fi
d3f5afc4
MS
12190else
12191 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12192fi
12193
3a35eeb3
PB
12194else
12195 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12196fi
12197
12198
12199
12200
12201if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12202 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12204$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12205 if test -x $with_build_time_tools/objdump; then
12206 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12207 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12209$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12210 else
81ecdfbb
RW
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212$as_echo "no" >&6; }
3a35eeb3 12213 fi
2429c060
PB
12214 elif test $build != $host && test $have_gcc_for_target = yes; then
12215 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12216 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12217 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12218 fi
12219fi
c6b750e1 12220if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12221 # Extract the first word of "objdump", so it can be a program name with args.
12222set dummy objdump; ac_word=$2
81ecdfbb
RW
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12224$as_echo_n "checking for $ac_word... " >&6; }
12225if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12226 $as_echo_n "(cached) " >&6
2429c060 12227else
c6b750e1
DJ
12228 case $OBJDUMP_FOR_TARGET in
12229 [\\/]* | ?:[\\/]*)
2429c060
PB
12230 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12231 ;;
2429c060 12232 *)
c6b750e1
DJ
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234for as_dir in $gcc_cv_tool_dirs
12235do
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12240 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12242 break 2
12243 fi
12244done
81ecdfbb
RW
12245 done
12246IFS=$as_save_IFS
c6b750e1 12247
2429c060
PB
12248 ;;
12249esac
12250fi
c6b750e1 12251OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12252if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12254$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12255else
81ecdfbb
RW
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257$as_echo "no" >&6; }
2429c060
PB
12258fi
12259
81ecdfbb 12260
2429c060
PB
12261fi
12262if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12263
12264
12265if test -n "$OBJDUMP_FOR_TARGET"; then
12266 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12267elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12268 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12269fi
12270
12271if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12272 for ncn_progname in objdump; do
12273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12274set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276$as_echo_n "checking for $ac_word... " >&6; }
12277if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12278 $as_echo_n "(cached) " >&6
9a819804
AO
12279else
12280 if test -n "$OBJDUMP_FOR_TARGET"; then
12281 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12282else
12283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284for as_dir in $PATH
12285do
12286 IFS=$as_save_IFS
12287 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12288 for ac_exec_ext in '' $ac_executable_extensions; do
12289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12290 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12292 break 2
12293 fi
12294done
81ecdfbb
RW
12295 done
12296IFS=$as_save_IFS
9a819804
AO
12297
12298fi
12299fi
12300OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12301if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12303$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12304else
81ecdfbb
RW
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
9a819804
AO
12307fi
12308
81ecdfbb 12309
9a819804
AO
12310 done
12311fi
12312
12313if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12314 for ncn_progname in objdump; do
81ecdfbb
RW
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12316$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12317 if test -x $with_build_time_tools/${ncn_progname}; then
12318 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12320$as_echo "yes" >&6; }
2429c060
PB
12321 break
12322 else
81ecdfbb
RW
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324$as_echo "no" >&6; }
2429c060
PB
12325 fi
12326 done
12327fi
12328
12329if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12330 for ncn_progname in objdump; do
12331 if test -n "$ncn_target_tool_prefix"; then
12332 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12333set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335$as_echo_n "checking for $ac_word... " >&6; }
12336if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
5ae72758
DJ
12338else
12339 if test -n "$OBJDUMP_FOR_TARGET"; then
12340 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12341else
c6b750e1
DJ
12342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343for as_dir in $PATH
12344do
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12349 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12351 break 2
12352 fi
12353done
81ecdfbb
RW
12354 done
12355IFS=$as_save_IFS
c6b750e1 12356
5ae72758
DJ
12357fi
12358fi
c6b750e1 12359OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12360if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12362$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12363else
81ecdfbb
RW
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365$as_echo "no" >&6; }
5ae72758
DJ
12366fi
12367
81ecdfbb 12368
2429c060
PB
12369 fi
12370 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12372set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374$as_echo_n "checking for $ac_word... " >&6; }
12375if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
5ae72758
DJ
12377else
12378 if test -n "$OBJDUMP_FOR_TARGET"; then
12379 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12380else
c6b750e1
DJ
12381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382for as_dir in $PATH
12383do
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12388 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12390 break 2
12391 fi
12392done
81ecdfbb
RW
12393 done
12394IFS=$as_save_IFS
c6b750e1 12395
5ae72758
DJ
12396fi
12397fi
c6b750e1 12398OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12399if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12401$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12402else
81ecdfbb
RW
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404$as_echo "no" >&6; }
5ae72758 12405fi
c6b750e1 12406
81ecdfbb 12407
2429c060
PB
12408 fi
12409 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12410 done
12411fi
c6b750e1 12412
5ae72758
DJ
12413if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12414 set dummy objdump
12415 if test $build = $target ; then
12416 OBJDUMP_FOR_TARGET="$2"
12417 else
12418 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12419 fi
d3f5afc4
MS
12420else
12421 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12422fi
12423
3a35eeb3
PB
12424else
12425 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12426fi
12427
12428
12429
12430
12431if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12432 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12434$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12435 if test -x $with_build_time_tools/ranlib; then
12436 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12437 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12439$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12440 else
81ecdfbb
RW
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442$as_echo "no" >&6; }
3a35eeb3 12443 fi
2429c060
PB
12444 elif test $build != $host && test $have_gcc_for_target = yes; then
12445 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12446 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12447 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12448 fi
12449fi
c6b750e1 12450if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12451 # Extract the first word of "ranlib", so it can be a program name with args.
12452set dummy ranlib; ac_word=$2
81ecdfbb
RW
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12454$as_echo_n "checking for $ac_word... " >&6; }
12455if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12456 $as_echo_n "(cached) " >&6
2429c060 12457else
c6b750e1
DJ
12458 case $RANLIB_FOR_TARGET in
12459 [\\/]* | ?:[\\/]*)
2429c060
PB
12460 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12461 ;;
2429c060 12462 *)
c6b750e1
DJ
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464for as_dir in $gcc_cv_tool_dirs
12465do
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12470 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12472 break 2
12473 fi
12474done
81ecdfbb
RW
12475 done
12476IFS=$as_save_IFS
c6b750e1 12477
2429c060
PB
12478 ;;
12479esac
12480fi
c6b750e1 12481RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12482if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12484$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12485else
81ecdfbb
RW
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487$as_echo "no" >&6; }
2429c060
PB
12488fi
12489
81ecdfbb 12490
2429c060
PB
12491fi
12492if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12493
12494
12495if test -n "$RANLIB_FOR_TARGET"; then
12496 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12497elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12498 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12499fi
12500
12501if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12502 for ncn_progname in ranlib; do
12503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12504set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12506$as_echo_n "checking for $ac_word... " >&6; }
12507if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
9a819804
AO
12509else
12510 if test -n "$RANLIB_FOR_TARGET"; then
12511 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12512else
12513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514for as_dir in $PATH
12515do
12516 IFS=$as_save_IFS
12517 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12518 for ac_exec_ext in '' $ac_executable_extensions; do
12519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12520 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12522 break 2
12523 fi
12524done
81ecdfbb
RW
12525 done
12526IFS=$as_save_IFS
9a819804
AO
12527
12528fi
12529fi
12530RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12531if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12533$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12534else
81ecdfbb
RW
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536$as_echo "no" >&6; }
9a819804
AO
12537fi
12538
81ecdfbb 12539
9a819804
AO
12540 done
12541fi
12542
12543if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12544 for ncn_progname in ranlib; do
81ecdfbb
RW
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12546$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12547 if test -x $with_build_time_tools/${ncn_progname}; then
12548 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12550$as_echo "yes" >&6; }
2429c060
PB
12551 break
12552 else
81ecdfbb
RW
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554$as_echo "no" >&6; }
2429c060
PB
12555 fi
12556 done
12557fi
12558
12559if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12560 for ncn_progname in ranlib; do
12561 if test -n "$ncn_target_tool_prefix"; then
12562 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12563set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12565$as_echo_n "checking for $ac_word... " >&6; }
12566if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12567 $as_echo_n "(cached) " >&6
859789af 12568else
55db4b87
PB
12569 if test -n "$RANLIB_FOR_TARGET"; then
12570 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12571else
c6b750e1
DJ
12572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573for as_dir in $PATH
12574do
12575 IFS=$as_save_IFS
12576 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12577 for ac_exec_ext in '' $ac_executable_extensions; do
12578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12579 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12581 break 2
12582 fi
12583done
81ecdfbb
RW
12584 done
12585IFS=$as_save_IFS
c6b750e1 12586
859789af
AC
12587fi
12588fi
c6b750e1 12589RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12590if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12592$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12593else
81ecdfbb
RW
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595$as_echo "no" >&6; }
859789af
AC
12596fi
12597
81ecdfbb 12598
2429c060
PB
12599 fi
12600 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12602set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604$as_echo_n "checking for $ac_word... " >&6; }
12605if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12606 $as_echo_n "(cached) " >&6
859789af 12607else
05cbd757
PB
12608 if test -n "$RANLIB_FOR_TARGET"; then
12609 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12610else
c6b750e1
DJ
12611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612for as_dir in $PATH
12613do
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12618 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12620 break 2
12621 fi
12622done
81ecdfbb
RW
12623 done
12624IFS=$as_save_IFS
c6b750e1 12625
859789af
AC
12626fi
12627fi
c6b750e1 12628RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12629if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12631$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12632else
81ecdfbb
RW
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634$as_echo "no" >&6; }
859789af 12635fi
c6b750e1 12636
81ecdfbb 12637
2429c060
PB
12638 fi
12639 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12640 done
12641fi
c6b750e1 12642
2429c060
PB
12643if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12644 set dummy ranlib
12645 if test $build = $target ; then
12646 RANLIB_FOR_TARGET="$2"
12647 else
12648 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12649 fi
d3f5afc4
MS
12650else
12651 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12652fi
05cbd757 12653
3a35eeb3
PB
12654else
12655 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12656fi
12657
2429c060
PB
12658
12659
12660
12661if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12662 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12664$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12665 if test -x $with_build_time_tools/strip; then
12666 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12667 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12669$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12670 else
81ecdfbb
RW
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672$as_echo "no" >&6; }
3a35eeb3 12673 fi
2429c060
PB
12674 elif test $build != $host && test $have_gcc_for_target = yes; then
12675 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12676 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12677 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12678 fi
12679fi
c6b750e1 12680if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12681 # Extract the first word of "strip", so it can be a program name with args.
12682set dummy strip; ac_word=$2
81ecdfbb
RW
12683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12684$as_echo_n "checking for $ac_word... " >&6; }
12685if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12686 $as_echo_n "(cached) " >&6
2429c060 12687else
c6b750e1
DJ
12688 case $STRIP_FOR_TARGET in
12689 [\\/]* | ?:[\\/]*)
2429c060
PB
12690 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12691 ;;
2429c060 12692 *)
c6b750e1
DJ
12693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694for as_dir in $gcc_cv_tool_dirs
12695do
12696 IFS=$as_save_IFS
12697 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12698 for ac_exec_ext in '' $ac_executable_extensions; do
12699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12700 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12702 break 2
12703 fi
12704done
81ecdfbb
RW
12705 done
12706IFS=$as_save_IFS
c6b750e1 12707
2429c060
PB
12708 ;;
12709esac
12710fi
c6b750e1 12711STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12712if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12714$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12715else
81ecdfbb
RW
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717$as_echo "no" >&6; }
2429c060
PB
12718fi
12719
81ecdfbb 12720
2429c060
PB
12721fi
12722if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12723
12724
12725if test -n "$STRIP_FOR_TARGET"; then
12726 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12727elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12728 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12729fi
12730
12731if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12732 for ncn_progname in strip; do
12733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12734set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736$as_echo_n "checking for $ac_word... " >&6; }
12737if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12738 $as_echo_n "(cached) " >&6
9a819804
AO
12739else
12740 if test -n "$STRIP_FOR_TARGET"; then
12741 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12742else
12743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744for as_dir in $PATH
12745do
12746 IFS=$as_save_IFS
12747 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12750 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12752 break 2
12753 fi
12754done
81ecdfbb
RW
12755 done
12756IFS=$as_save_IFS
9a819804
AO
12757
12758fi
12759fi
12760STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12761if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12763$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12764else
81ecdfbb
RW
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766$as_echo "no" >&6; }
9a819804
AO
12767fi
12768
81ecdfbb 12769
9a819804
AO
12770 done
12771fi
12772
12773if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12774 for ncn_progname in strip; do
81ecdfbb
RW
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12776$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12777 if test -x $with_build_time_tools/${ncn_progname}; then
12778 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12780$as_echo "yes" >&6; }
2429c060
PB
12781 break
12782 else
81ecdfbb
RW
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784$as_echo "no" >&6; }
2429c060
PB
12785 fi
12786 done
12787fi
12788
12789if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12790 for ncn_progname in strip; do
12791 if test -n "$ncn_target_tool_prefix"; then
12792 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12793set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12795$as_echo_n "checking for $ac_word... " >&6; }
12796if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12797 $as_echo_n "(cached) " >&6
7e0f7140
GK
12798else
12799 if test -n "$STRIP_FOR_TARGET"; then
12800 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12801else
12802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803for as_dir in $PATH
12804do
12805 IFS=$as_save_IFS
12806 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12807 for ac_exec_ext in '' $ac_executable_extensions; do
12808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12809 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12811 break 2
12812 fi
12813done
81ecdfbb
RW
12814 done
12815IFS=$as_save_IFS
c6b750e1 12816
7e0f7140
GK
12817fi
12818fi
c6b750e1 12819STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12820if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12822$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12823else
81ecdfbb
RW
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825$as_echo "no" >&6; }
7e0f7140
GK
12826fi
12827
81ecdfbb 12828
2429c060
PB
12829 fi
12830 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12832set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834$as_echo_n "checking for $ac_word... " >&6; }
12835if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
7e0f7140
GK
12837else
12838 if test -n "$STRIP_FOR_TARGET"; then
12839 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12840else
c6b750e1
DJ
12841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842for as_dir in $PATH
12843do
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12848 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12850 break 2
12851 fi
12852done
81ecdfbb
RW
12853 done
12854IFS=$as_save_IFS
c6b750e1 12855
7e0f7140
GK
12856fi
12857fi
c6b750e1 12858STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12859if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12861$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12862else
81ecdfbb
RW
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864$as_echo "no" >&6; }
7e0f7140 12865fi
c6b750e1 12866
81ecdfbb 12867
2429c060
PB
12868 fi
12869 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12870 done
12871fi
c6b750e1 12872
7e0f7140
GK
12873if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12874 set dummy strip
12875 if test $build = $target ; then
12876 STRIP_FOR_TARGET="$2"
12877 else
12878 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12879 fi
d3f5afc4
MS
12880else
12881 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12882fi
12883
3a35eeb3
PB
12884else
12885 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12886fi
12887
12888
12889
12890
12891if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12892 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12894$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12895 if test -x $with_build_time_tools/windres; then
12896 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12897 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12899$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12900 else
81ecdfbb
RW
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902$as_echo "no" >&6; }
3a35eeb3 12903 fi
2429c060
PB
12904 elif test $build != $host && test $have_gcc_for_target = yes; then
12905 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12906 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12907 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12908 fi
12909fi
c6b750e1 12910if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12911 # Extract the first word of "windres", so it can be a program name with args.
12912set dummy windres; ac_word=$2
81ecdfbb
RW
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12914$as_echo_n "checking for $ac_word... " >&6; }
12915if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12916 $as_echo_n "(cached) " >&6
2429c060 12917else
c6b750e1
DJ
12918 case $WINDRES_FOR_TARGET in
12919 [\\/]* | ?:[\\/]*)
2429c060
PB
12920 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12921 ;;
2429c060 12922 *)
c6b750e1
DJ
12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924for as_dir in $gcc_cv_tool_dirs
12925do
12926 IFS=$as_save_IFS
12927 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12928 for ac_exec_ext in '' $ac_executable_extensions; do
12929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12930 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12932 break 2
12933 fi
12934done
81ecdfbb
RW
12935 done
12936IFS=$as_save_IFS
c6b750e1 12937
2429c060
PB
12938 ;;
12939esac
12940fi
c6b750e1 12941WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12942if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12944$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12945else
81ecdfbb
RW
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947$as_echo "no" >&6; }
2429c060
PB
12948fi
12949
81ecdfbb 12950
2429c060
PB
12951fi
12952if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12953
12954
12955if test -n "$WINDRES_FOR_TARGET"; then
12956 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12957elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12958 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12959fi
12960
12961if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12962 for ncn_progname in windres; do
12963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12964set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966$as_echo_n "checking for $ac_word... " >&6; }
12967if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12968 $as_echo_n "(cached) " >&6
9a819804
AO
12969else
12970 if test -n "$WINDRES_FOR_TARGET"; then
12971 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12972else
12973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974for as_dir in $PATH
12975do
12976 IFS=$as_save_IFS
12977 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12978 for ac_exec_ext in '' $ac_executable_extensions; do
12979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12980 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12982 break 2
12983 fi
12984done
81ecdfbb
RW
12985 done
12986IFS=$as_save_IFS
9a819804
AO
12987
12988fi
12989fi
12990WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12991if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12993$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12994else
81ecdfbb
RW
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996$as_echo "no" >&6; }
9a819804
AO
12997fi
12998
81ecdfbb 12999
9a819804
AO
13000 done
13001fi
13002
13003if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13004 for ncn_progname in windres; do
81ecdfbb
RW
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13006$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13007 if test -x $with_build_time_tools/${ncn_progname}; then
13008 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13010$as_echo "yes" >&6; }
2429c060
PB
13011 break
13012 else
81ecdfbb
RW
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014$as_echo "no" >&6; }
2429c060
PB
13015 fi
13016 done
13017fi
13018
13019if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13020 for ncn_progname in windres; do
13021 if test -n "$ncn_target_tool_prefix"; then
13022 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13023set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025$as_echo_n "checking for $ac_word... " >&6; }
13026if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13027 $as_echo_n "(cached) " >&6
859789af 13028else
55db4b87
PB
13029 if test -n "$WINDRES_FOR_TARGET"; then
13030 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13031else
c6b750e1
DJ
13032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033for as_dir in $PATH
13034do
13035 IFS=$as_save_IFS
13036 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13039 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13041 break 2
13042 fi
13043done
81ecdfbb
RW
13044 done
13045IFS=$as_save_IFS
c6b750e1 13046
859789af
AC
13047fi
13048fi
c6b750e1 13049WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13050if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13052$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13053else
81ecdfbb
RW
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055$as_echo "no" >&6; }
859789af
AC
13056fi
13057
81ecdfbb 13058
2429c060
PB
13059 fi
13060 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13062set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064$as_echo_n "checking for $ac_word... " >&6; }
13065if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
859789af 13067else
05cbd757
PB
13068 if test -n "$WINDRES_FOR_TARGET"; then
13069 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13070else
c6b750e1
DJ
13071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072for as_dir in $PATH
13073do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13078 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13080 break 2
13081 fi
13082done
81ecdfbb
RW
13083 done
13084IFS=$as_save_IFS
c6b750e1 13085
859789af
AC
13086fi
13087fi
c6b750e1 13088WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13089if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13091$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13092else
81ecdfbb
RW
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094$as_echo "no" >&6; }
859789af 13095fi
c6b750e1 13096
81ecdfbb 13097
2429c060
PB
13098 fi
13099 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13100 done
13101fi
c6b750e1 13102
05cbd757
PB
13103if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13104 set dummy windres
13105 if test $build = $target ; then
13106 WINDRES_FOR_TARGET="$2"
859789af 13107 else
05cbd757 13108 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13109 fi
d3f5afc4
MS
13110else
13111 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13112fi
13113
3a35eeb3
PB
13114else
13115 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13116fi
13117
852e5f18 13118
0c24b341
NC
13119
13120
13121if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13122 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13124$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13125 if test -x $with_build_time_tools/windmc; then
13126 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13127 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13129$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13130 else
81ecdfbb
RW
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132$as_echo "no" >&6; }
0c24b341
NC
13133 fi
13134 elif test $build != $host && test $have_gcc_for_target = yes; then
13135 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13136 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13137 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13138 fi
13139fi
13140if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13141 # Extract the first word of "windmc", so it can be a program name with args.
13142set dummy windmc; ac_word=$2
81ecdfbb
RW
13143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144$as_echo_n "checking for $ac_word... " >&6; }
13145if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
0c24b341
NC
13147else
13148 case $WINDMC_FOR_TARGET in
13149 [\\/]* | ?:[\\/]*)
13150 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13151 ;;
13152 *)
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154for as_dir in $gcc_cv_tool_dirs
13155do
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13160 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13162 break 2
13163 fi
13164done
81ecdfbb
RW
13165 done
13166IFS=$as_save_IFS
0c24b341
NC
13167
13168 ;;
13169esac
13170fi
13171WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13172if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13174$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13175else
81ecdfbb
RW
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177$as_echo "no" >&6; }
0c24b341
NC
13178fi
13179
81ecdfbb 13180
0c24b341
NC
13181fi
13182if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13183
13184
13185if test -n "$WINDMC_FOR_TARGET"; then
13186 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13187elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13188 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13189fi
13190
13191if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13192 for ncn_progname in windmc; do
13193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13194set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13196$as_echo_n "checking for $ac_word... " >&6; }
13197if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13198 $as_echo_n "(cached) " >&6
0c24b341
NC
13199else
13200 if test -n "$WINDMC_FOR_TARGET"; then
13201 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13202else
13203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204for as_dir in $PATH
13205do
13206 IFS=$as_save_IFS
13207 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13208 for ac_exec_ext in '' $ac_executable_extensions; do
13209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13210 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13212 break 2
13213 fi
13214done
81ecdfbb
RW
13215 done
13216IFS=$as_save_IFS
0c24b341
NC
13217
13218fi
13219fi
13220WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13221if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13223$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13224else
81ecdfbb
RW
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226$as_echo "no" >&6; }
0c24b341
NC
13227fi
13228
81ecdfbb 13229
0c24b341
NC
13230 done
13231fi
13232
13233if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13234 for ncn_progname in windmc; do
81ecdfbb
RW
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13236$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13237 if test -x $with_build_time_tools/${ncn_progname}; then
13238 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240$as_echo "yes" >&6; }
0c24b341
NC
13241 break
13242 else
81ecdfbb
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244$as_echo "no" >&6; }
0c24b341
NC
13245 fi
13246 done
13247fi
13248
13249if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13250 for ncn_progname in windmc; do
13251 if test -n "$ncn_target_tool_prefix"; then
13252 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13253set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255$as_echo_n "checking for $ac_word... " >&6; }
13256if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
0c24b341
NC
13258else
13259 if test -n "$WINDMC_FOR_TARGET"; then
13260 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13261else
13262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263for as_dir in $PATH
13264do
13265 IFS=$as_save_IFS
13266 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13269 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13271 break 2
13272 fi
13273done
81ecdfbb
RW
13274 done
13275IFS=$as_save_IFS
0c24b341
NC
13276
13277fi
13278fi
13279WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13280if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13282$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13283else
81ecdfbb
RW
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285$as_echo "no" >&6; }
0c24b341
NC
13286fi
13287
81ecdfbb 13288
0c24b341
NC
13289 fi
13290 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13292set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294$as_echo_n "checking for $ac_word... " >&6; }
13295if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13296 $as_echo_n "(cached) " >&6
0c24b341
NC
13297else
13298 if test -n "$WINDMC_FOR_TARGET"; then
13299 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13300else
13301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302for as_dir in $PATH
13303do
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13308 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13310 break 2
13311 fi
13312done
81ecdfbb
RW
13313 done
13314IFS=$as_save_IFS
0c24b341
NC
13315
13316fi
13317fi
13318WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13319if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13321$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13322else
81ecdfbb
RW
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324$as_echo "no" >&6; }
0c24b341
NC
13325fi
13326
81ecdfbb 13327
0c24b341
NC
13328 fi
13329 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13330 done
13331fi
13332
13333if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13334 set dummy windmc
13335 if test $build = $target ; then
13336 WINDMC_FOR_TARGET="$2"
13337 else
13338 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13339 fi
13340else
13341 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13342fi
13343
13344else
13345 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13346fi
13347
13348
be01d343
PB
13349RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13350
81ecdfbb
RW
13351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13352$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13353if test "x${build}" != "x${host}" ; then
2429c060
PB
13354 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13355 # We already found the complete path
b8025f34 13356 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13358$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13359 else
13360 # Canadian cross, just use what we found
81ecdfbb
RW
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13362$as_echo "pre-installed" >&6; }
2429c060 13363 fi
be01d343
PB
13364else
13365 ok=yes
13366 case " ${configdirs} " in
13367 *" binutils "*) ;;
13368 *) ok=no ;;
13369 esac
c6b750e1 13370
be01d343
PB
13371 if test $ok = yes; then
13372 # An in-tree tool is available and we can use it
13373 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13375$as_echo "just compiled" >&6; }
2429c060
PB
13376 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13377 # We already found the complete path
b8025f34 13378 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13380$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13381 elif test "x$target" = "x$host"; then
13382 # We can use an host tool
13383 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13385$as_echo "host tool" >&6; }
be01d343
PB
13386 else
13387 # We need a cross tool
81ecdfbb
RW
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13389$as_echo "pre-installed" >&6; }
be01d343
PB
13390 fi
13391fi
4b900473 13392
81ecdfbb
RW
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13394$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13395if test "x${build}" != "x${host}" ; then
2429c060
PB
13396 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13397 # We already found the complete path
b8025f34 13398 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13400$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13401 else
13402 # Canadian cross, just use what we found
81ecdfbb
RW
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13404$as_echo "pre-installed" >&6; }
2429c060 13405 fi
be01d343
PB
13406else
13407 ok=yes
13408 case " ${configdirs} " in
13409 *" gas "*) ;;
13410 *) ok=no ;;
13411 esac
c6b750e1 13412
be01d343
PB
13413 if test $ok = yes; then
13414 # An in-tree tool is available and we can use it
13415 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13417$as_echo "just compiled" >&6; }
2429c060
PB
13418 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13419 # We already found the complete path
b8025f34 13420 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13422$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13423 elif test "x$target" = "x$host"; then
13424 # We can use an host tool
13425 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13427$as_echo "host tool" >&6; }
be01d343
PB
13428 else
13429 # We need a cross tool
81ecdfbb
RW
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13431$as_echo "pre-installed" >&6; }
be01d343
PB
13432 fi
13433fi
4b900473 13434
81ecdfbb
RW
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13436$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13437if test "x${build}" != "x${host}" ; then
2429c060
PB
13438 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13439 # We already found the complete path
b8025f34 13440 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13442$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13443 else
13444 # Canadian cross, just use what we found
81ecdfbb
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13446$as_echo "pre-installed" >&6; }
2429c060 13447 fi
be01d343
PB
13448else
13449 ok=yes
13450 case " ${configdirs} " in
13451 *" gcc "*) ;;
13452 *) ok=no ;;
13453 esac
c6b750e1 13454
be01d343
PB
13455 if test $ok = yes; then
13456 # An in-tree tool is available and we can use it
13457 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13459$as_echo "just compiled" >&6; }
2429c060
PB
13460 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13461 # We already found the complete path
b8025f34 13462 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13464$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13465 elif test "x$target" = "x$host"; then
13466 # We can use an host tool
13467 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13469$as_echo "host tool" >&6; }
be01d343
PB
13470 else
13471 # We need a cross tool
81ecdfbb
RW
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13473$as_echo "pre-installed" >&6; }
be01d343
PB
13474 fi
13475fi
4b900473 13476
81ecdfbb
RW
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13478$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13479if test "x${build}" != "x${host}" ; then
2429c060
PB
13480 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13481 # We already found the complete path
b8025f34 13482 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13484$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13485 else
13486 # Canadian cross, just use what we found
81ecdfbb
RW
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13488$as_echo "pre-installed" >&6; }
2429c060 13489 fi
be01d343
PB
13490else
13491 ok=yes
13492 case " ${configdirs} " in
13493 *" gcc "*) ;;
13494 *) ok=no ;;
13495 esac
13496 case ,${enable_languages}, in
13497 *,c++,*) ;;
13498 *) ok=no ;;
13499 esac
13500 if test $ok = yes; then
13501 # An in-tree tool is available and we can use it
87cda2cf 13502 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13504$as_echo "just compiled" >&6; }
2429c060
PB
13505 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13506 # We already found the complete path
b8025f34 13507 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13509$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13510 elif test "x$target" = "x$host"; then
13511 # We can use an host tool
13512 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13514$as_echo "host tool" >&6; }
be01d343
PB
13515 else
13516 # We need a cross tool
81ecdfbb
RW
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13518$as_echo "pre-installed" >&6; }
be01d343
PB
13519 fi
13520fi
4b900473 13521
81ecdfbb
RW
13522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13523$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13524if test "x${build}" != "x${host}" ; then
2429c060
PB
13525 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13526 # We already found the complete path
b8025f34 13527 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13529$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13530 else
13531 # Canadian cross, just use what we found
81ecdfbb
RW
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13533$as_echo "pre-installed" >&6; }
2429c060 13534 fi
be01d343
PB
13535else
13536 ok=yes
13537 case " ${configdirs} " in
13538 *" gcc "*) ;;
13539 *) ok=no ;;
13540 esac
13541 case ,${enable_languages}, in
13542 *,c++,*) ;;
13543 *) ok=no ;;
13544 esac
13545 if test $ok = yes; then
13546 # An in-tree tool is available and we can use it
13547 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
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13549$as_echo "just compiled" >&6; }
2429c060
PB
13550 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13551 # We already found the complete path
b8025f34 13552 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13554$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13555 elif test "x$target" = "x$host"; then
13556 # We can use an host tool
13557 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13559$as_echo "host tool" >&6; }
be01d343
PB
13560 else
13561 # We need a cross tool
81ecdfbb
RW
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13563$as_echo "pre-installed" >&6; }
be01d343
PB
13564 fi
13565fi
4b900473 13566
81ecdfbb
RW
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13568$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13569if test "x${build}" != "x${host}" ; then
2429c060
PB
13570 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13571 # We already found the complete path
b8025f34 13572 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13574$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13575 else
13576 # Canadian cross, just use what we found
81ecdfbb
RW
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13578$as_echo "pre-installed" >&6; }
2429c060 13579 fi
be01d343
PB
13580else
13581 ok=yes
13582 case " ${configdirs} " in
13583 *" binutils "*) ;;
13584 *) ok=no ;;
13585 esac
c6b750e1 13586
be01d343
PB
13587 if test $ok = yes; then
13588 # An in-tree tool is available and we can use it
13589 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13591$as_echo "just compiled" >&6; }
2429c060
PB
13592 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13593 # We already found the complete path
b8025f34 13594 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13596$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13597 elif test "x$target" = "x$host"; then
13598 # We can use an host tool
13599 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13601$as_echo "host tool" >&6; }
be01d343
PB
13602 else
13603 # We need a cross tool
81ecdfbb
RW
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13605$as_echo "pre-installed" >&6; }
be01d343
PB
13606 fi
13607fi
4b900473 13608
81ecdfbb
RW
13609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13610$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13611if test "x${build}" != "x${host}" ; then
2429c060
PB
13612 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13613 # We already found the complete path
b8025f34 13614 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13616$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13617 else
13618 # Canadian cross, just use what we found
81ecdfbb
RW
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13620$as_echo "pre-installed" >&6; }
2429c060 13621 fi
be01d343
PB
13622else
13623 ok=yes
13624 case " ${configdirs} " in
13625 *" gcc "*) ;;
13626 *) ok=no ;;
13627 esac
c6b750e1 13628
be01d343
PB
13629 if test $ok = yes; then
13630 # An in-tree tool is available and we can use it
13631 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13633$as_echo "just compiled" >&6; }
2429c060
PB
13634 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13635 # We already found the complete path
b8025f34 13636 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13638$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13639 elif test "x$target" = "x$host"; then
13640 # We can use an host tool
13641 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13643$as_echo "host tool" >&6; }
be01d343
PB
13644 else
13645 # We need a cross tool
81ecdfbb
RW
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13647$as_echo "pre-installed" >&6; }
be01d343
PB
13648 fi
13649fi
4b900473 13650
81ecdfbb
RW
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13652$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13653if test "x${build}" != "x${host}" ; then
2429c060
PB
13654 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13655 # We already found the complete path
b8025f34 13656 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13658$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13659 else
13660 # Canadian cross, just use what we found
81ecdfbb
RW
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13662$as_echo "pre-installed" >&6; }
2429c060 13663 fi
be01d343
PB
13664else
13665 ok=yes
13666 case " ${configdirs} " in
13667 *" gcc "*) ;;
13668 *) ok=no ;;
13669 esac
13670 case ,${enable_languages}, in
13671 *,java,*) ;;
13672 *) ok=no ;;
13673 esac
13674 if test $ok = yes; then
13675 # An in-tree tool is available and we can use it
13676 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13678$as_echo "just compiled" >&6; }
2429c060
PB
13679 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13680 # We already found the complete path
b8025f34 13681 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13683$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13684 elif test "x$target" = "x$host"; then
13685 # We can use an host tool
13686 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13688$as_echo "host tool" >&6; }
be01d343
PB
13689 else
13690 # We need a cross tool
81ecdfbb
RW
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13692$as_echo "pre-installed" >&6; }
be01d343
PB
13693 fi
13694fi
4b900473 13695
81ecdfbb
RW
13696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13697$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13698if test "x${build}" != "x${host}" ; then
2429c060
PB
13699 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13700 # We already found the complete path
b8025f34 13701 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13703$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13704 else
13705 # Canadian cross, just use what we found
81ecdfbb
RW
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13707$as_echo "pre-installed" >&6; }
2429c060 13708 fi
be01d343
PB
13709else
13710 ok=yes
13711 case " ${configdirs} " in
13712 *" gcc "*) ;;
13713 *) ok=no ;;
13714 esac
13715 case ,${enable_languages}, in
13716 *,fortran,*) ;;
13717 *) ok=no ;;
13718 esac
13719 if test $ok = yes; then
13720 # An in-tree tool is available and we can use it
13721 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13723$as_echo "just compiled" >&6; }
2429c060
PB
13724 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13725 # We already found the complete path
b8025f34 13726 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13728$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13729 elif test "x$target" = "x$host"; then
13730 # We can use an host tool
13731 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13733$as_echo "host tool" >&6; }
be01d343
PB
13734 else
13735 # We need a cross tool
81ecdfbb
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13737$as_echo "pre-installed" >&6; }
be01d343
PB
13738 fi
13739fi
4b900473 13740
e552509b
ILT
13741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13742$as_echo_n "checking where to find the target gccgo... " >&6; }
13743if test "x${build}" != "x${host}" ; then
13744 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13745 # We already found the complete path
13746 ac_dir=`dirname $GOC_FOR_TARGET`
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13748$as_echo "pre-installed in $ac_dir" >&6; }
13749 else
13750 # Canadian cross, just use what we found
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13752$as_echo "pre-installed" >&6; }
13753 fi
13754else
13755 ok=yes
13756 case " ${configdirs} " in
13757 *" gcc "*) ;;
13758 *) ok=no ;;
13759 esac
13760 case ,${enable_languages}, in
13761 *,go,*) ;;
13762 *) ok=no ;;
13763 esac
13764 if test $ok = yes; then
13765 # An in-tree tool is available and we can use it
13766 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13768$as_echo "just compiled" >&6; }
13769 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13770 # We already found the complete path
13771 ac_dir=`dirname $GOC_FOR_TARGET`
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13773$as_echo "pre-installed in $ac_dir" >&6; }
13774 elif test "x$target" = "x$host"; then
13775 # We can use an host tool
13776 GOC_FOR_TARGET='$(GOC)'
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13778$as_echo "host tool" >&6; }
13779 else
13780 # We need a cross tool
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13782$as_echo "pre-installed" >&6; }
13783 fi
13784fi
13785
81ecdfbb
RW
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13787$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13788if test "x${build}" != "x${host}" ; then
2429c060
PB
13789 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
b8025f34 13791 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13794 else
13795 # Canadian cross, just use what we found
81ecdfbb
RW
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13797$as_echo "pre-installed" >&6; }
2429c060 13798 fi
be01d343
PB
13799else
13800 ok=yes
13801 case " ${configdirs} " in
13802 *" ld "*) ;;
13803 *) ok=no ;;
13804 esac
c6b750e1 13805
be01d343
PB
13806 if test $ok = yes; then
13807 # An in-tree tool is available and we can use it
13808 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13810$as_echo "just compiled" >&6; }
2429c060
PB
13811 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13812 # We already found the complete path
b8025f34 13813 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13815$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13816 elif test "x$target" = "x$host"; then
13817 # We can use an host tool
13818 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13820$as_echo "host tool" >&6; }
be01d343
PB
13821 else
13822 # We need a cross tool
81ecdfbb
RW
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13824$as_echo "pre-installed" >&6; }
be01d343
PB
13825 fi
13826fi
4b900473 13827
81ecdfbb
RW
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13829$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13830if test "x${build}" != "x${host}" ; then
2429c060
PB
13831 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13832 # We already found the complete path
b8025f34 13833 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13835$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13836 else
13837 # Canadian cross, just use what we found
81ecdfbb
RW
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13839$as_echo "pre-installed" >&6; }
2429c060 13840 fi
be01d343 13841else
2429c060
PB
13842 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13843 # We already found the complete path
b8025f34 13844 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13846$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13847 elif test "x$target" = "x$host"; then
be01d343
PB
13848 # We can use an host tool
13849 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13851$as_echo "host tool" >&6; }
be01d343
PB
13852 else
13853 # We need a cross tool
81ecdfbb
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13855$as_echo "pre-installed" >&6; }
be01d343
PB
13856 fi
13857fi
4b900473 13858
81ecdfbb
RW
13859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13860$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13861if test "x${build}" != "x${host}" ; then
2429c060
PB
13862 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13863 # We already found the complete path
b8025f34 13864 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13866$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13867 else
13868 # Canadian cross, just use what we found
81ecdfbb
RW
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13870$as_echo "pre-installed" >&6; }
2429c060 13871 fi
be01d343
PB
13872else
13873 ok=yes
13874 case " ${configdirs} " in
13875 *" binutils "*) ;;
13876 *) ok=no ;;
13877 esac
c6b750e1 13878
be01d343
PB
13879 if test $ok = yes; then
13880 # An in-tree tool is available and we can use it
13881 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13883$as_echo "just compiled" >&6; }
2429c060
PB
13884 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13885 # We already found the complete path
b8025f34 13886 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13888$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13889 elif test "x$target" = "x$host"; then
13890 # We can use an host tool
13891 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13893$as_echo "host tool" >&6; }
be01d343
PB
13894 else
13895 # We need a cross tool
81ecdfbb
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13897$as_echo "pre-installed" >&6; }
be01d343
PB
13898 fi
13899fi
4b900473 13900
81ecdfbb
RW
13901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13902$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13903if test "x${build}" != "x${host}" ; then
2429c060
PB
13904 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13905 # We already found the complete path
b8025f34 13906 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13908$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13909 else
13910 # Canadian cross, just use what we found
81ecdfbb
RW
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13912$as_echo "pre-installed" >&6; }
2429c060 13913 fi
be01d343
PB
13914else
13915 ok=yes
13916 case " ${configdirs} " in
13917 *" binutils "*) ;;
13918 *) ok=no ;;
13919 esac
c6b750e1 13920
be01d343
PB
13921 if test $ok = yes; then
13922 # An in-tree tool is available and we can use it
13923 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13925$as_echo "just compiled" >&6; }
2429c060
PB
13926 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13927 # We already found the complete path
b8025f34 13928 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13930$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13931 elif test "x$target" = "x$host"; then
13932 # We can use an host tool
13933 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13935$as_echo "host tool" >&6; }
be01d343
PB
13936 else
13937 # We need a cross tool
81ecdfbb
RW
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13939$as_echo "pre-installed" >&6; }
be01d343
PB
13940 fi
13941fi
4b900473 13942
81ecdfbb
RW
13943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13944$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13945if test "x${build}" != "x${host}" ; then
2429c060
PB
13946 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13947 # We already found the complete path
b8025f34 13948 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13950$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13951 else
13952 # Canadian cross, just use what we found
81ecdfbb
RW
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13954$as_echo "pre-installed" >&6; }
2429c060 13955 fi
be01d343
PB
13956else
13957 ok=yes
13958 case " ${configdirs} " in
13959 *" binutils "*) ;;
13960 *) ok=no ;;
13961 esac
c6b750e1 13962
be01d343
PB
13963 if test $ok = yes; then
13964 # An in-tree tool is available and we can use it
13965 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13967$as_echo "just compiled" >&6; }
2429c060
PB
13968 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13969 # We already found the complete path
b8025f34 13970 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13972$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13973 elif test "x$target" = "x$host"; then
13974 # We can use an host tool
13975 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13977$as_echo "host tool" >&6; }
be01d343
PB
13978 else
13979 # We need a cross tool
81ecdfbb
RW
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13981$as_echo "pre-installed" >&6; }
be01d343
PB
13982 fi
13983fi
4b900473 13984
81ecdfbb
RW
13985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13986$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13987if test "x${build}" != "x${host}" ; then
2429c060
PB
13988 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13989 # We already found the complete path
b8025f34 13990 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13992$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13993 else
13994 # Canadian cross, just use what we found
81ecdfbb
RW
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13996$as_echo "pre-installed" >&6; }
2429c060 13997 fi
be01d343
PB
13998else
13999 ok=yes
14000 case " ${configdirs} " in
14001 *" binutils "*) ;;
14002 *) ok=no ;;
14003 esac
c6b750e1 14004
be01d343
PB
14005 if test $ok = yes; then
14006 # An in-tree tool is available and we can use it
9b980aa1 14007 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14009$as_echo "just compiled" >&6; }
2429c060
PB
14010 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14011 # We already found the complete path
b8025f34 14012 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14014$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14015 elif test "x$target" = "x$host"; then
14016 # We can use an host tool
14017 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14019$as_echo "host tool" >&6; }
be01d343
PB
14020 else
14021 # We need a cross tool
81ecdfbb
RW
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14023$as_echo "pre-installed" >&6; }
be01d343
PB
14024 fi
14025fi
4b900473 14026
81ecdfbb
RW
14027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14028$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14029if test "x${build}" != "x${host}" ; then
2429c060
PB
14030 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14031 # We already found the complete path
b8025f34 14032 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14034$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14035 else
14036 # Canadian cross, just use what we found
81ecdfbb
RW
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14038$as_echo "pre-installed" >&6; }
2429c060 14039 fi
be01d343
PB
14040else
14041 ok=yes
14042 case " ${configdirs} " in
14043 *" binutils "*) ;;
14044 *) ok=no ;;
14045 esac
c6b750e1 14046
be01d343
PB
14047 if test $ok = yes; then
14048 # An in-tree tool is available and we can use it
14049 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14051$as_echo "just compiled" >&6; }
2429c060
PB
14052 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14053 # We already found the complete path
b8025f34 14054 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14057 elif test "x$target" = "x$host"; then
14058 # We can use an host tool
14059 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14061$as_echo "host tool" >&6; }
be01d343
PB
14062 else
14063 # We need a cross tool
81ecdfbb
RW
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14065$as_echo "pre-installed" >&6; }
be01d343 14066 fi
a0da8069 14067fi
54752a6b 14068
81ecdfbb
RW
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14070$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14071if test "x${build}" != "x${host}" ; then
14072 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14073 # We already found the complete path
14074 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14076$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14077 else
14078 # Canadian cross, just use what we found
81ecdfbb
RW
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080$as_echo "pre-installed" >&6; }
0c24b341
NC
14081 fi
14082else
14083 ok=yes
14084 case " ${configdirs} " in
14085 *" binutils "*) ;;
14086 *) ok=no ;;
14087 esac
14088
14089 if test $ok = yes; then
14090 # An in-tree tool is available and we can use it
14091 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14093$as_echo "just compiled" >&6; }
0c24b341
NC
14094 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14095 # We already found the complete path
14096 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14098$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14099 elif test "x$target" = "x$host"; then
14100 # We can use an host tool
14101 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14103$as_echo "host tool" >&6; }
0c24b341
NC
14104 else
14105 # We need a cross tool
81ecdfbb
RW
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14107$as_echo "pre-installed" >&6; }
0c24b341
NC
14108 fi
14109fi
14110
54752a6b
NN
14111
14112
be01d343 14113
4b900473 14114
a0da8069
NN
14115# Certain tools may need extra flags.
14116AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14117RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14118NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14119
be01d343
PB
14120# When building target libraries, except in a Canadian cross, we use
14121# the same toolchain as the compiler we just built.
14122COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14123COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14124COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14125if test $host = $build; then
14126 case " $configdirs " in
14127 *" gcc "*)
14128 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14129 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14130 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14131 ;;
14132 esac
14133fi
14134
14135
14136
14137
14138
81ecdfbb
RW
14139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14140$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14141# Check whether --enable-maintainer-mode was given.
14142if test "${enable_maintainer_mode+set}" = set; then :
14143 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14144else
14145 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14146fi
14147
14148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14149$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14150
14151
14152if test "$USE_MAINTAINER_MODE" = yes; then
14153 MAINTAINER_MODE_TRUE=
14154 MAINTAINER_MODE_FALSE='#'
14155else
14156 MAINTAINER_MODE_TRUE='#'
14157 MAINTAINER_MODE_FALSE=
c6b750e1 14158fi
3d5e36ae
AO
14159MAINT=$MAINTAINER_MODE_TRUE
14160
1d39f329
NN
14161# ---------------------
14162# GCC bootstrap support
14163# ---------------------
14164
14165# Stage specific cflags for build.
14166stage1_cflags="-g"
14167case $build in
14168 vax-*-*)
14169 case ${GCC} in
14170 yes) stage1_cflags="-g -Wa,-J" ;;
14171 *) stage1_cflags="-g -J" ;;
14172 esac ;;
1d39f329
NN
14173esac
14174
1d89b610 14175# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 14176if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
14177 saved_CFLAGS="$CFLAGS"
14178
14179 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14180 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14182$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
14184/* end confdefs.h. */
14185
2038f525
PB
14186#if (__GNUC__ < 3) \
14187 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14188 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14189#error http://gcc.gnu.org/PR29382
14190#endif
14191
c6b750e1
DJ
14192int
14193main ()
14194{
14195
14196 ;
14197 return 0;
14198}
14199_ACEOF
81ecdfbb
RW
14200if ac_fn_c_try_compile "$LINENO"; then :
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14202$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14203else
81ecdfbb
RW
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205$as_echo "no" >&6; }
c6b750e1 14206fi
81ecdfbb 14207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14208
14209 CFLAGS="$saved_CFLAGS"
14210fi
14211
14212
1d39f329 14213
8a0d8a5c 14214# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14215# Check whether --enable-stage1-checking was given.
14216if test "${enable_stage1_checking+set}" = set; then :
14217 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14218else
5566c1fa 14219 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14220 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14221else
5566c1fa 14222 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14223fi
81ecdfbb 14224fi
8a0d8a5c
PB
14225
14226
c6b750e1 14227
81ecdfbb
RW
14228# Enable -Werror in bootstrap stage2 and later.
14229# Check whether --enable-werror was given.
14230if test "${enable_werror+set}" = set; then :
14231 enableval=$enable_werror;
1d39f329 14232else
a0323144 14233 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14234 enable_werror=yes
79fcd0ec
PB
14235else
14236 enable_werror=no
14237fi
81ecdfbb
RW
14238fi
14239
1a6f2dc7
NN
14240case ${enable_werror} in
14241 yes) stage2_werror_flag="--enable-werror-always" ;;
14242 *) stage2_werror_flag="" ;;
1d39f329
NN
14243esac
14244
14245
e8a5fa9c
RW
14246# Specify what files to not compare during bootstrap.
14247
14248compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14249case "$target" in
14250 hppa*64*-*-hpux*) ;;
14251 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14252esac
1f53ca9a
AO
14253case " $configdirs " in
14254*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14255esac
e8a5fa9c
RW
14256
14257
81ecdfbb
RW
14258ac_config_files="$ac_config_files Makefile"
14259
c6b750e1 14260cat >confcache <<\_ACEOF
a0da8069
NN
14261# This file is a shell script that caches the results of configure
14262# tests run on this system so they can be shared between configure
c6b750e1
DJ
14263# scripts and configure runs, see configure's option --config-cache.
14264# It is not useful on other systems. If it contains results you don't
14265# want to keep, you may remove or edit it.
a0da8069 14266#
c6b750e1
DJ
14267# config.status only pays attention to the cache file if you give it
14268# the --recheck option to rerun configure.
a0da8069 14269#
c6b750e1
DJ
14270# `ac_cv_env_foo' variables (set or unset) will be overridden when
14271# loading this file, other *unset* `ac_cv_foo' will be assigned the
14272# following values.
14273
14274_ACEOF
14275
a0da8069
NN
14276# The following way of writing the cache mishandles newlines in values,
14277# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14278# So, we kill variables containing newlines.
a0da8069
NN
14279# Ultrix sh set writes to stderr and can't be redirected directly,
14280# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14281(
14282 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14283 eval ac_val=\$$ac_var
14284 case $ac_val in #(
14285 *${as_nl}*)
14286 case $ac_var in #(
14287 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14288$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14289 esac
14290 case $ac_var in #(
14291 _ | IFS | as_nl) ;; #(
14292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14293 *) { eval $ac_var=; unset $ac_var;} ;;
14294 esac ;;
14295 esac
14296 done
14297
c6b750e1 14298 (set) 2>&1 |
81ecdfbb
RW
14299 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14300 *${as_nl}ac_space=\ *)
14301 # `set' does not quote correctly, so add quotes: double-quote
14302 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14303 sed -n \
14304 "s/'/'\\\\''/g;
14305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14306 ;; #(
c6b750e1
DJ
14307 *)
14308 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14310 ;;
81ecdfbb
RW
14311 esac |
14312 sort
14313) |
c6b750e1 14314 sed '
81ecdfbb 14315 /^ac_cv_env_/b end
c6b750e1 14316 t clear
81ecdfbb 14317 :clear
c6b750e1
DJ
14318 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14319 t end
81ecdfbb
RW
14320 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14321 :end' >>confcache
14322if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14323 if test -w "$cache_file"; then
14324 test "x$cache_file" != "x/dev/null" &&
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14326$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14327 cat confcache >$cache_file
a0da8069 14328 else
81ecdfbb
RW
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14330$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14331 fi
852e5f18 14332fi
a0da8069 14333rm -f confcache
852e5f18 14334
a0da8069
NN
14335test "x$prefix" = xNONE && prefix=$ac_default_prefix
14336# Let make expand exec_prefix.
14337test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14338
a0da8069
NN
14339# Transform confdefs.h into DEFS.
14340# Protect against shell expansion while executing Makefile rules.
14341# Protect against Makefile macro expansion.
c6b750e1
DJ
14342#
14343# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14344# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14345# look for a macro that doesn't take arguments.
81ecdfbb
RW
14346ac_script='
14347:mline
14348/\\$/{
14349 N
14350 s,\\\n,,
14351 b mline
14352}
c6b750e1 14353t clear
81ecdfbb
RW
14354:clear
14355s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14356t quote
81ecdfbb 14357s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14358t quote
81ecdfbb
RW
14359b any
14360:quote
14361s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14362s/\[/\\&/g
14363s/\]/\\&/g
14364s/\$/$$/g
14365H
14366:any
14367${
14368 g
14369 s/^\n//
14370 s/\n/ /g
14371 p
14372}
14373'
14374DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14375
14376
14377ac_libobjs=
14378ac_ltlibobjs=
14379for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14380 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14381 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14382 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14383 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14384 # will be set to the directory where LIBOBJS objects are built.
14385 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14386 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14387done
14388LIBOBJS=$ac_libobjs
852e5f18 14389
c6b750e1 14390LTLIBOBJS=$ac_ltlibobjs
376a0e54 14391
cac3d6c4 14392
c6b750e1
DJ
14393
14394: ${CONFIG_STATUS=./config.status}
81ecdfbb 14395ac_write_fail=0
c6b750e1
DJ
14396ac_clean_files_save=$ac_clean_files
14397ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14398{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14399$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14400as_write_fail=0
14401cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14402#! $SHELL
14403# Generated by $as_me.
a0da8069 14404# Run this file to recreate the current configuration.
a0da8069 14405# Compiler output produced by configure, useful for debugging
c6b750e1 14406# configure, is in config.log if it exists.
376a0e54 14407
c6b750e1
DJ
14408debug=false
14409ac_cs_recheck=false
14410ac_cs_silent=false
c6b750e1 14411
81ecdfbb
RW
14412SHELL=\${CONFIG_SHELL-$SHELL}
14413export SHELL
14414_ASEOF
14415cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14416## -------------------- ##
14417## M4sh Initialization. ##
14418## -------------------- ##
14419
14420# Be more Bourne compatible
14421DUALCASE=1; export DUALCASE # for MKS sh
14422if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14423 emulate sh
14424 NULLCMD=:
81ecdfbb 14425 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14426 # is contrary to our usage. Disable this feature.
14427 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14428 setopt NO_GLOB_SUBST
14429else
14430 case `(set -o) 2>/dev/null` in #(
14431 *posix*) :
14432 set -o posix ;; #(
14433 *) :
14434 ;;
14435esac
c6b750e1 14436fi
c6b750e1 14437
81ecdfbb
RW
14438
14439as_nl='
14440'
14441export as_nl
14442# Printing a long string crashes Solaris 7 /usr/bin/printf.
14443as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14444as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14445as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14446# Prefer a ksh shell builtin over an external printf program on Solaris,
14447# but without wasting forks for bash or zsh.
14448if test -z "$BASH_VERSION$ZSH_VERSION" \
14449 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14450 as_echo='print -r --'
14451 as_echo_n='print -rn --'
14452elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14453 as_echo='printf %s\n'
14454 as_echo_n='printf %s'
14455else
14456 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14457 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14458 as_echo_n='/usr/ucb/echo -n'
14459 else
14460 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14461 as_echo_n_body='eval
14462 arg=$1;
14463 case $arg in #(
14464 *"$as_nl"*)
14465 expr "X$arg" : "X\\(.*\\)$as_nl";
14466 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14467 esac;
14468 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14469 '
14470 export as_echo_n_body
14471 as_echo_n='sh -c $as_echo_n_body as_echo'
14472 fi
14473 export as_echo_body
14474 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14475fi
14476
81ecdfbb
RW
14477# The user is always right.
14478if test "${PATH_SEPARATOR+set}" != set; then
14479 PATH_SEPARATOR=:
14480 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14481 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14482 PATH_SEPARATOR=';'
14483 }
14484fi
14485
14486
14487# IFS
14488# We need space, tab and new line, in precisely that order. Quoting is
14489# there to prevent editors from complaining about space-tab.
14490# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14491# splitting by setting IFS to empty value.)
14492IFS=" "" $as_nl"
14493
14494# Find who we are. Look in the path if we contain no directory separator.
14495case $0 in #((
14496 *[\\/]* ) as_myself=$0 ;;
14497 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14498for as_dir in $PATH
14499do
14500 IFS=$as_save_IFS
14501 test -z "$as_dir" && as_dir=.
14502 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14503 done
14504IFS=$as_save_IFS
14505
14506 ;;
14507esac
14508# We did not find ourselves, most probably we were run as `sh COMMAND'
14509# in which case we are not to be found in the path.
14510if test "x$as_myself" = x; then
14511 as_myself=$0
14512fi
14513if test ! -f "$as_myself"; then
14514 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14515 exit 1
14516fi
c6b750e1 14517
81ecdfbb
RW
14518# Unset variables that we do not need and which cause bugs (e.g. in
14519# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14520# suppresses any "Segmentation fault" message there. '((' could
14521# trigger a bug in pdksh 5.2.14.
14522for as_var in BASH_ENV ENV MAIL MAILPATH
14523do eval test x\${$as_var+set} = xset \
14524 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14525done
c6b750e1
DJ
14526PS1='$ '
14527PS2='> '
14528PS4='+ '
14529
14530# NLS nuisances.
81ecdfbb
RW
14531LC_ALL=C
14532export LC_ALL
14533LANGUAGE=C
14534export LANGUAGE
14535
14536# CDPATH.
14537(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14538
14539
14540# as_fn_error ERROR [LINENO LOG_FD]
14541# ---------------------------------
14542# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14543# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14544# script with status $?, using 1 if that was 0.
14545as_fn_error ()
14546{
14547 as_status=$?; test $as_status -eq 0 && as_status=1
14548 if test "$3"; then
14549 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14550 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14551 fi
81ecdfbb
RW
14552 $as_echo "$as_me: error: $1" >&2
14553 as_fn_exit $as_status
14554} # as_fn_error
14555
14556
14557# as_fn_set_status STATUS
14558# -----------------------
14559# Set $? to STATUS, without forking.
14560as_fn_set_status ()
14561{
14562 return $1
14563} # as_fn_set_status
14564
14565# as_fn_exit STATUS
14566# -----------------
14567# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14568as_fn_exit ()
14569{
14570 set +e
14571 as_fn_set_status $1
14572 exit $1
14573} # as_fn_exit
14574
14575# as_fn_unset VAR
14576# ---------------
14577# Portably unset VAR.
14578as_fn_unset ()
14579{
14580 { eval $1=; unset $1;}
14581}
14582as_unset=as_fn_unset
14583# as_fn_append VAR VALUE
14584# ----------------------
14585# Append the text in VALUE to the end of the definition contained in VAR. Take
14586# advantage of any shell optimizations that allow amortized linear growth over
14587# repeated appends, instead of the typical quadratic growth present in naive
14588# implementations.
14589if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14590 eval 'as_fn_append ()
14591 {
14592 eval $1+=\$2
14593 }'
14594else
14595 as_fn_append ()
14596 {
14597 eval $1=\$$1\$2
14598 }
14599fi # as_fn_append
14600
14601# as_fn_arith ARG...
14602# ------------------
14603# Perform arithmetic evaluation on the ARGs, and store the result in the
14604# global $as_val. Take advantage of shells that can avoid forks. The arguments
14605# must be portable across $(()) and expr.
14606if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14607 eval 'as_fn_arith ()
14608 {
14609 as_val=$(( $* ))
14610 }'
14611else
14612 as_fn_arith ()
14613 {
14614 as_val=`expr "$@" || test $? -eq 1`
14615 }
14616fi # as_fn_arith
14617
c6b750e1 14618
81ecdfbb
RW
14619if expr a : '\(a\)' >/dev/null 2>&1 &&
14620 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14621 as_expr=expr
14622else
14623 as_expr=false
14624fi
14625
81ecdfbb 14626if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14627 as_basename=basename
14628else
14629 as_basename=false
14630fi
14631
81ecdfbb
RW
14632if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14633 as_dirname=dirname
14634else
14635 as_dirname=false
14636fi
c6b750e1 14637
81ecdfbb 14638as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14639$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14640 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14641 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14642$as_echo X/"$0" |
14643 sed '/^.*\/\([^/][^/]*\)\/*$/{
14644 s//\1/
14645 q
14646 }
14647 /^X\/\(\/\/\)$/{
14648 s//\1/
14649 q
14650 }
14651 /^X\/\(\/\).*/{
14652 s//\1/
14653 q
14654 }
14655 s/.*/./; q'`
c6b750e1 14656
c6b750e1
DJ
14657# Avoid depending upon Character Ranges.
14658as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14659as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14660as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14661as_cr_digits='0123456789'
14662as_cr_alnum=$as_cr_Letters$as_cr_digits
14663
81ecdfbb
RW
14664ECHO_C= ECHO_N= ECHO_T=
14665case `echo -n x` in #(((((
14666-n*)
14667 case `echo 'xy\c'` in
14668 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14669 xy) ECHO_C='\c';;
14670 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14671 ECHO_T=' ';;
14672 esac;;
14673*)
14674 ECHO_N='-n';;
c6b750e1
DJ
14675esac
14676
81ecdfbb
RW
14677rm -f conf$$ conf$$.exe conf$$.file
14678if test -d conf$$.dir; then
14679 rm -f conf$$.dir/conf$$.file
c6b750e1 14680else
81ecdfbb
RW
14681 rm -f conf$$.dir
14682 mkdir conf$$.dir 2>/dev/null
c6b750e1 14683fi
81ecdfbb
RW
14684if (echo >conf$$.file) 2>/dev/null; then
14685 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14686 as_ln_s='ln -s'
81ecdfbb
RW
14687 # ... but there are two gotchas:
14688 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14689 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14690 # In both cases, we have to default to `cp -p'.
14691 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14692 as_ln_s='cp -p'
14693 elif ln conf$$.file conf$$ 2>/dev/null; then
14694 as_ln_s=ln
14695 else
14696 as_ln_s='cp -p'
c6b750e1 14697 fi
c6b750e1
DJ
14698else
14699 as_ln_s='cp -p'
14700fi
81ecdfbb
RW
14701rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14702rmdir conf$$.dir 2>/dev/null
14703
14704
14705# as_fn_mkdir_p
14706# -------------
14707# Create "$as_dir" as a directory, including parents if necessary.
14708as_fn_mkdir_p ()
14709{
14710
14711 case $as_dir in #(
14712 -*) as_dir=./$as_dir;;
14713 esac
14714 test -d "$as_dir" || eval $as_mkdir_p || {
14715 as_dirs=
14716 while :; do
14717 case $as_dir in #(
14718 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14719 *) as_qdir=$as_dir;;
14720 esac
14721 as_dirs="'$as_qdir' $as_dirs"
14722 as_dir=`$as_dirname -- "$as_dir" ||
14723$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14724 X"$as_dir" : 'X\(//\)[^/]' \| \
14725 X"$as_dir" : 'X\(//\)$' \| \
14726 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14727$as_echo X"$as_dir" |
14728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14729 s//\1/
14730 q
14731 }
14732 /^X\(\/\/\)[^/].*/{
14733 s//\1/
14734 q
14735 }
14736 /^X\(\/\/\)$/{
14737 s//\1/
14738 q
14739 }
14740 /^X\(\/\).*/{
14741 s//\1/
14742 q
14743 }
14744 s/.*/./; q'`
14745 test -d "$as_dir" && break
14746 done
14747 test -z "$as_dirs" || eval "mkdir $as_dirs"
14748 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14749
c6b750e1 14750
81ecdfbb 14751} # as_fn_mkdir_p
c6b750e1 14752if mkdir -p . 2>/dev/null; then
81ecdfbb 14753 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14754else
14755 test -d ./-p && rmdir ./-p
14756 as_mkdir_p=false
14757fi
14758
81ecdfbb
RW
14759if test -x / >/dev/null 2>&1; then
14760 as_test_x='test -x'
14761else
14762 if ls -dL / >/dev/null 2>&1; then
14763 as_ls_L_option=L
14764 else
14765 as_ls_L_option=
14766 fi
14767 as_test_x='
14768 eval sh -c '\''
14769 if test -d "$1"; then
14770 test -d "$1/.";
14771 else
14772 case $1 in #(
14773 -*)set "./$1";;
14774 esac;
14775 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14776 ???[sx]*):;;*)false;;esac;fi
14777 '\'' sh
14778 '
14779fi
14780as_executable_p=$as_test_x
c6b750e1
DJ
14781
14782# Sed expression to map a string onto a valid CPP name.
14783as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14784
14785# Sed expression to map a string onto a valid variable name.
14786as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14787
14788
c6b750e1 14789exec 6>&1
81ecdfbb
RW
14790## ----------------------------------- ##
14791## Main body of $CONFIG_STATUS script. ##
14792## ----------------------------------- ##
14793_ASEOF
14794test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14795
14796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14797# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14798# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14799# values after options handling.
14800ac_log="
c6b750e1 14801This file was extended by $as_me, which was
81ecdfbb 14802generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14803
14804 CONFIG_FILES = $CONFIG_FILES
14805 CONFIG_HEADERS = $CONFIG_HEADERS
14806 CONFIG_LINKS = $CONFIG_LINKS
14807 CONFIG_COMMANDS = $CONFIG_COMMANDS
14808 $ $0 $@
14809
81ecdfbb
RW
14810on `(hostname || uname -n) 2>/dev/null | sed 1q`
14811"
14812
c6b750e1
DJ
14813_ACEOF
14814
81ecdfbb
RW
14815case $ac_config_files in *"
14816"*) set x $ac_config_files; shift; ac_config_files=$*;;
14817esac
c6b750e1 14818
c6b750e1 14819
c6b750e1 14820
81ecdfbb
RW
14821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14822# Files that config.status was made for.
14823config_files="$ac_config_files"
c6b750e1 14824
81ecdfbb 14825_ACEOF
c6b750e1 14826
81ecdfbb 14827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14828ac_cs_usage="\
81ecdfbb
RW
14829\`$as_me' instantiates files and other configuration actions
14830from templates according to the current configuration. Unless the files
14831and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14832
81ecdfbb 14833Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14834
14835 -h, --help print this help, then exit
81ecdfbb
RW
14836 -V, --version print version number and configuration settings, then exit
14837 -q, --quiet, --silent
14838 do not print progress messages
c6b750e1
DJ
14839 -d, --debug don't remove temporary files
14840 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14841 --file=FILE[:TEMPLATE]
14842 instantiate the configuration file FILE
c6b750e1
DJ
14843
14844Configuration files:
14845$config_files
14846
81ecdfbb 14847Report bugs to the package provider."
c6b750e1 14848
81ecdfbb
RW
14849_ACEOF
14850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14851ac_cs_version="\\
14852config.status
81ecdfbb
RW
14853configured by $0, generated by GNU Autoconf 2.64,
14854 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14855
81ecdfbb 14856Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14857This config.status script is free software; the Free Software Foundation
14858gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14859
14860ac_pwd='$ac_pwd'
14861srcdir='$srcdir'
14862INSTALL='$INSTALL'
8e957354 14863AWK='$AWK'
81ecdfbb 14864test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14865_ACEOF
14866
81ecdfbb
RW
14867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14868# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14869ac_need_defaults=:
14870while test $# != 0
a0da8069 14871do
c6b750e1
DJ
14872 case $1 in
14873 --*=*)
81ecdfbb
RW
14874 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14875 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14876 ac_shift=:
14877 ;;
81ecdfbb 14878 *)
c6b750e1
DJ
14879 ac_option=$1
14880 ac_optarg=$2
14881 ac_shift=shift
14882 ;;
c6b750e1
DJ
14883 esac
14884
14885 case $ac_option in
14886 # Handling of the options.
a0da8069 14887 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14888 ac_cs_recheck=: ;;
81ecdfbb
RW
14889 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14890 $as_echo "$ac_cs_version"; exit ;;
14891 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14892 debug=: ;;
14893 --file | --fil | --fi | --f )
14894 $ac_shift
81ecdfbb
RW
14895 case $ac_optarg in
14896 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14897 esac
14898 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14899 ac_need_defaults=false;;
81ecdfbb
RW
14900 --he | --h | --help | --hel | -h )
14901 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14903 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14904 ac_cs_silent=: ;;
14905
14906 # This is an error.
81ecdfbb
RW
14907 -*) as_fn_error "unrecognized option: \`$1'
14908Try \`$0 --help' for more information." ;;
c6b750e1 14909
81ecdfbb
RW
14910 *) as_fn_append ac_config_targets " $1"
14911 ac_need_defaults=false ;;
c6b750e1 14912
376a0e54 14913 esac
c6b750e1 14914 shift
376a0e54
CM
14915done
14916
c6b750e1 14917ac_configure_extra_args=
376a0e54 14918
c6b750e1
DJ
14919if $ac_cs_silent; then
14920 exec 6>/dev/null
14921 ac_configure_extra_args="$ac_configure_extra_args --silent"
14922fi
376a0e54 14923
c6b750e1 14924_ACEOF
81ecdfbb 14925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14926if \$ac_cs_recheck; then
81ecdfbb
RW
14927 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14928 shift
14929 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14930 CONFIG_SHELL='$SHELL'
14931 export CONFIG_SHELL
14932 exec "\$@"
c6b750e1
DJ
14933fi
14934
14935_ACEOF
81ecdfbb
RW
14936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14937exec 5>>config.log
14938{
14939 echo
14940 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14941## Running $as_me. ##
14942_ASBOX
14943 $as_echo "$ac_log"
14944} >&5
c6b750e1 14945
81ecdfbb
RW
14946_ACEOF
14947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14948#
14949# INIT-COMMANDS
14950#
14951extrasub_build="$extrasub_build"
14952 extrasub_host="$extrasub_host"
14953 extrasub_target="$extrasub_target"
14954
81ecdfbb 14955_ACEOF
c6b750e1 14956
81ecdfbb 14957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14958
81ecdfbb 14959# Handling of arguments.
c6b750e1
DJ
14960for ac_config_target in $ac_config_targets
14961do
81ecdfbb
RW
14962 case $ac_config_target in
14963 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14964
14965 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14966 esac
14967done
14968
81ecdfbb 14969
c6b750e1
DJ
14970# If the user did not use the arguments to specify the items to instantiate,
14971# then the envvar interface is used. Set only those that are not.
14972# We use the long form for the default assignment because of an extremely
14973# bizarre bug on SunOS 4.1.3.
14974if $ac_need_defaults; then
14975 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14976fi
14977
14978# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14979# simply because there is no reason against having it here, and in addition,
c6b750e1 14980# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14981# Hook for its removal unless debugging.
14982# Note that there is a small window in which the directory will not be cleaned:
14983# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14984$debug ||
14985{
81ecdfbb
RW
14986 tmp=
14987 trap 'exit_status=$?
14988 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14989' 0
14990 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14991}
c6b750e1
DJ
14992# Create a (secure) tmp directory for tmp files.
14993
14994{
81ecdfbb 14995 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14996 test -n "$tmp" && test -d "$tmp"
14997} ||
14998{
81ecdfbb
RW
14999 tmp=./conf$$-$RANDOM
15000 (umask 077 && mkdir "$tmp")
15001} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15002
15003# Set up the scripts for CONFIG_FILES section.
15004# No need to generate them if there are no CONFIG_FILES.
15005# This happens for instance with `./config.status config.h'.
15006if test -n "$CONFIG_FILES"; then
15007
15008if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15009 ac_cs_awk_getline=:
15010 ac_cs_awk_pipe_init=
15011 ac_cs_awk_read_file='
15012 while ((getline aline < (F[key])) > 0)
15013 print(aline)
15014 close(F[key])'
15015 ac_cs_awk_pipe_fini=
15016else
15017 ac_cs_awk_getline=false
15018 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15019 ac_cs_awk_read_file='
15020 print "|#_!!_#|"
15021 print "cat " F[key] " &&"
15022 '$ac_cs_awk_pipe_init
15023 # The final `:' finishes the AND list.
15024 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15025fi
15026ac_cr=`echo X | tr X '\015'`
15027# On cygwin, bash can eat \r inside `` if the user requested igncr.
15028# But we know of no other shell where ac_cr would be empty at this
15029# point, so we can use a bashism as a fallback.
15030if test "x$ac_cr" = x; then
15031 eval ac_cr=\$\'\\r\'
15032fi
15033ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15034if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15035 ac_cs_awk_cr='\r'
15036else
15037 ac_cs_awk_cr=$ac_cr
15038fi
15039
15040echo 'BEGIN {' >"$tmp/subs1.awk" &&
15041_ACEOF
15042
15043# Create commands to substitute file output variables.
c6b750e1 15044{
81ecdfbb
RW
15045 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15046 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15047 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15048 echo "_ACAWK" &&
15049 echo "_ACEOF"
15050} >conf$$files.sh &&
15051. ./conf$$files.sh ||
15052 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15053rm -f conf$$files.sh
c6b750e1 15054
81ecdfbb
RW
15055{
15056 echo "cat >conf$$subs.awk <<_ACEOF" &&
15057 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15058 echo "_ACEOF"
15059} >conf$$subs.sh ||
15060 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15061ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15062ac_delim='%!_!# '
15063for ac_last_try in false false false false false :; do
15064 . ./conf$$subs.sh ||
15065 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15066
15067 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15068 if test $ac_delim_n = $ac_delim_num; then
15069 break
15070 elif $ac_last_try; then
15071 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15072 else
15073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15074 fi
15075done
15076rm -f conf$$subs.sh
15077
15078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15079cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15080_ACEOF
81ecdfbb
RW
15081sed -n '
15082h
15083s/^/S["/; s/!.*/"]=/
15084p
15085g
15086s/^[^!]*!//
15087:repl
15088t repl
15089s/'"$ac_delim"'$//
15090t delim
15091:nl
15092h
15093s/\(.\{148\}\).*/\1/
15094t more1
15095s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15096p
15097n
15098b repl
15099:more1
15100s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15101p
15102g
15103s/.\{148\}//
15104t nl
15105:delim
15106h
15107s/\(.\{148\}\).*/\1/
15108t more2
15109s/["\\]/\\&/g; s/^/"/; s/$/"/
15110p
15111b
15112:more2
15113s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15114p
15115g
15116s/.\{148\}//
15117t delim
15118' <conf$$subs.awk | sed '
15119/^[^""]/{
15120 N
15121 s/\n//
15122}
15123' >>$CONFIG_STATUS || ac_write_fail=1
15124rm -f conf$$subs.awk
15125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15126_ACAWK
15127cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15128 for (key in S) S_is_set[key] = 1
15129 FS = "\a"
15130 \$ac_cs_awk_pipe_init
15131}
15132{
15133 line = $ 0
15134 nfields = split(line, field, "@")
15135 substed = 0
15136 len = length(field[1])
15137 for (i = 2; i < nfields; i++) {
15138 key = field[i]
15139 keylen = length(key)
15140 if (S_is_set[key]) {
15141 value = S[key]
15142 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15143 len += length(value) + length(field[++i])
15144 substed = 1
15145 } else
15146 len += 1 + keylen
15147 }
15148 if (nfields == 3 && !substed) {
15149 key = field[2]
15150 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15151 \$ac_cs_awk_read_file
15152 next
15153 }
15154 }
15155 print line
15156}
15157\$ac_cs_awk_pipe_fini
15158_ACAWK
15159_ACEOF
15160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15161if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15162 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15163else
15164 cat
15165fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15166 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15167_ACEOF
15168
15169# VPATH may cause trouble with some makes, so we remove $(srcdir),
15170# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15171# trailing colons and then remove the whole line if VPATH becomes empty
15172# (actually we leave an empty line to preserve line numbers).
15173if test "x$srcdir" = x.; then
15174 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15175s/:*\$(srcdir):*/:/
15176s/:*\${srcdir}:*/:/
15177s/:*@srcdir@:*/:/
15178s/^\([^=]*=[ ]*\):*/\1/
15179s/:*$//
15180s/^[^=]*=[ ]*$//
15181}'
15182fi
c6b750e1 15183
81ecdfbb
RW
15184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15185fi # test -n "$CONFIG_FILES"
c6b750e1 15186
c6b750e1 15187
81ecdfbb
RW
15188eval set X " :F $CONFIG_FILES "
15189shift
15190for ac_tag
15191do
15192 case $ac_tag in
15193 :[FHLC]) ac_mode=$ac_tag; continue;;
15194 esac
15195 case $ac_mode$ac_tag in
15196 :[FHL]*:*);;
15197 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15198 :[FH]-) ac_tag=-:-;;
15199 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15200 esac
15201 ac_save_IFS=$IFS
15202 IFS=:
15203 set x $ac_tag
15204 IFS=$ac_save_IFS
15205 shift
15206 ac_file=$1
15207 shift
252b5132 15208
81ecdfbb
RW
15209 case $ac_mode in
15210 :L) ac_source=$1;;
15211 :[FH])
15212 ac_file_inputs=
15213 for ac_f
15214 do
15215 case $ac_f in
15216 -) ac_f="$tmp/stdin";;
15217 *) # Look for the file first in the build tree, then in the source tree
15218 # (if the path is not absolute). The absolute path cannot be DOS-style,
15219 # because $ac_f cannot contain `:'.
15220 test -f "$ac_f" ||
15221 case $ac_f in
15222 [\\/$]*) false;;
15223 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15224 esac ||
15225 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15226 esac
15227 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15228 as_fn_append ac_file_inputs " '$ac_f'"
15229 done
c6b750e1 15230
81ecdfbb
RW
15231 # Let's still pretend it is `configure' which instantiates (i.e., don't
15232 # use $as_me), people would be surprised to read:
15233 # /* config.h. Generated by config.status. */
15234 configure_input='Generated from '`
15235 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15236 `' by configure.'
15237 if test x"$ac_file" != x-; then
15238 configure_input="$ac_file. $configure_input"
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15240$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15241 fi
81ecdfbb
RW
15242 # Neutralize special characters interpreted by sed in replacement strings.
15243 case $configure_input in #(
15244 *\&* | *\|* | *\\* )
15245 ac_sed_conf_input=`$as_echo "$configure_input" |
15246 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15247 *) ac_sed_conf_input=$configure_input;;
15248 esac
cac3d6c4 15249
81ecdfbb
RW
15250 case $ac_tag in
15251 *:-:* | *:-) cat >"$tmp/stdin" \
15252 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15253 esac
15254 ;;
a0da8069 15255 esac
252b5132 15256
81ecdfbb 15257 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15258$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15259 X"$ac_file" : 'X\(//\)[^/]' \| \
15260 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15261 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15262$as_echo X"$ac_file" |
15263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15264 s//\1/
15265 q
15266 }
15267 /^X\(\/\/\)[^/].*/{
15268 s//\1/
15269 q
15270 }
15271 /^X\(\/\/\)$/{
15272 s//\1/
15273 q
15274 }
15275 /^X\(\/\).*/{
15276 s//\1/
15277 q
15278 }
15279 s/.*/./; q'`
15280 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15281 ac_builddir=.
252b5132 15282
81ecdfbb
RW
15283case "$ac_dir" in
15284.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15285*)
15286 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15287 # A ".." for each directory in $ac_dir_suffix.
15288 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15289 case $ac_top_builddir_sub in
15290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15292 esac ;;
15293esac
15294ac_abs_top_builddir=$ac_pwd
15295ac_abs_builddir=$ac_pwd$ac_dir_suffix
15296# for backward compatibility:
15297ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15298
15299case $srcdir in
81ecdfbb 15300 .) # We are building in place.
c6b750e1 15301 ac_srcdir=.
81ecdfbb
RW
15302 ac_top_srcdir=$ac_top_builddir_sub
15303 ac_abs_top_srcdir=$ac_pwd ;;
15304 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15305 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15306 ac_top_srcdir=$srcdir
15307 ac_abs_top_srcdir=$srcdir ;;
15308 *) # Relative name.
15309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15310 ac_top_srcdir=$ac_top_build_prefix$srcdir
15311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15312esac
81ecdfbb 15313ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15314
252b5132 15315
81ecdfbb
RW
15316 case $ac_mode in
15317 :F)
15318 #
15319 # CONFIG_FILE
15320 #
c6b750e1
DJ
15321
15322 case $INSTALL in
15323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15324 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15325 esac
81ecdfbb 15326_ACEOF
252b5132 15327
81ecdfbb
RW
15328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15329# If the template does not know about datarootdir, expand it.
15330# FIXME: This hack should be removed a few years after 2.60.
15331ac_datarootdir_hack=; ac_datarootdir_seen=
15332ac_sed_dataroot='
15333/datarootdir/ {
15334 p
15335 q
15336}
15337/@datadir@/p
15338/@docdir@/p
15339/@infodir@/p
15340/@localedir@/p
15341/@mandir@/p'
15342case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15343*datarootdir*) ac_datarootdir_seen=yes;;
15344*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15346$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15347_ACEOF
81ecdfbb
RW
15348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15349 ac_datarootdir_hack='
15350 s&@datadir@&$datadir&g
15351 s&@docdir@&$docdir&g
15352 s&@infodir@&$infodir&g
15353 s&@localedir@&$localedir&g
15354 s&@mandir@&$mandir&g
15355 s&\\\${datarootdir}&$datarootdir&g' ;;
15356esac
15357_ACEOF
15358
15359# Neutralize VPATH when `$srcdir' = `.'.
15360# Shell code in configure.ac might set extrasub.
15361# FIXME: do we really want to maintain this feature?
15362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15363ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15364$extrasub
15365_ACEOF
81ecdfbb 15366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15367:t
15368/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15369s|@configure_input@|$ac_sed_conf_input|;t t
15370s&@top_builddir@&$ac_top_builddir_sub&;t t
15371s&@top_build_prefix@&$ac_top_build_prefix&;t t
15372s&@srcdir@&$ac_srcdir&;t t
15373s&@abs_srcdir@&$ac_abs_srcdir&;t t
15374s&@top_srcdir@&$ac_top_srcdir&;t t
15375s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15376s&@builddir@&$ac_builddir&;t t
15377s&@abs_builddir@&$ac_abs_builddir&;t t
15378s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15379s&@INSTALL@&$ac_INSTALL&;t t
15380$ac_datarootdir_hack
15381"
15382eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15383if $ac_cs_awk_getline; then
15384 $AWK -f "$tmp/subs.awk"
15385else
15386 $AWK -f "$tmp/subs.awk" | $SHELL
15387fi >$tmp/out \
15388 || as_fn_error "could not create $ac_file" "$LINENO" 5
15389
15390test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15391 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15392 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15394which seems to be undefined. Please make sure it is defined." >&5
15395$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15396which seems to be undefined. Please make sure it is defined." >&2;}
15397
15398 rm -f "$tmp/stdin"
15399 case $ac_file in
15400 -) cat "$tmp/out" && rm -f "$tmp/out";;
15401 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15402 esac \
15403 || as_fn_error "could not create $ac_file" "$LINENO" 5
15404 ;;
c148b4cb 15405
c148b4cb 15406
c148b4cb 15407
81ecdfbb
RW
15408 esac
15409
06a51eac
RW
15410
15411 case $ac_file$ac_mode in
15412 "Makefile":F) sed "$extrasub_build" Makefile |
15413 sed "$extrasub_host" |
15414 sed "$extrasub_target" > mf$$
15415 mv -f mf$$ Makefile ;;
15416
15417 esac
81ecdfbb
RW
15418done # for ac_tag
15419
15420
15421as_fn_exit 0
c6b750e1 15422_ACEOF
c6b750e1
DJ
15423ac_clean_files=$ac_clean_files_save
15424
81ecdfbb
RW
15425test $ac_write_fail = 0 ||
15426 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15427
c6b750e1
DJ
15428
15429# configure is writing to config.log, and then calls config.status.
15430# config.status does its own redirection, appending to config.log.
15431# Unfortunately, on DOS this fails, as config.log is still kept open
15432# by configure, so config.status won't be able to write to it; its
15433# output is simply discarded. So we exec the FD to /dev/null,
15434# effectively closing config.log, so it can be properly (re)opened and
15435# appended to by config.status. When coming back to configure, we
15436# need to make the FD available again.
15437if test "$no_create" != yes; then
15438 ac_cs_success=:
15439 ac_config_status_args=
15440 test "$silent" = yes &&
15441 ac_config_status_args="$ac_config_status_args --quiet"
15442 exec 5>/dev/null
15443 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15444 exec 5>>config.log
15445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15446 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15447 $ac_cs_success || as_fn_exit $?
15448fi
15449if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15451$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15452fi
c148b4cb 15453