2010-12-10 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
c6b750e1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
c6b750e1 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
e552509b 581GOC_FOR_TARGET
81ecdfbb
RW
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
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
81ecdfbb
RW
745enable_libada
746enable_libssp
747enable_build_with_cxx
748with_mpc
749with_mpc_include
750with_mpc_lib
751with_mpfr_dir
752with_mpfr
753with_mpfr_include
754with_mpfr_lib
755with_gmp_dir
756with_gmp
757with_gmp_include
758with_gmp_lib
759with_host_libstdcxx
760with_stage1_ldflags
761with_stage1_libs
81ecdfbb 762with_boot_libs
143754cd 763with_boot_ldflags
81ecdfbb
RW
764with_ppl
765with_ppl_include
766with_ppl_lib
767enable_ppl_version_check
768with_cloog
769with_cloog_include
770with_cloog_lib
e552509b 771enable_cloog_backend
81ecdfbb 772enable_cloog_version_check
700d40ca 773enable_lto
81ecdfbb
RW
774enable_stage1_languages
775enable_objc_gc
776with_build_sysroot
777with_debug_prefix_map
778enable_bootstrap
96655cc4 779with_build_config
81ecdfbb
RW
780enable_serial_configure
781with_build_time_tools
782enable_maintainer_mode
783enable_stage1_checking
784enable_werror
81ecdfbb
RW
785'
786 ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794CXX
795CXXFLAGS
796CCC
4074d5f2
RW
797build_configargs
798host_configargs
799target_configargs
81ecdfbb
RW
800AR
801AS
802DLLTOOL
803LD
804LIPO
805NM
806RANLIB
807STRIP
808WINDRES
809WINDMC
810OBJCOPY
811OBJDUMP
812CC_FOR_TARGET
813CXX_FOR_TARGET
814GCC_FOR_TARGET
815GCJ_FOR_TARGET
816GFORTRAN_FOR_TARGET
e552509b 817GOC_FOR_TARGET
81ecdfbb
RW
818AR_FOR_TARGET
819AS_FOR_TARGET
820DLLTOOL_FOR_TARGET
821LD_FOR_TARGET
822LIPO_FOR_TARGET
823NM_FOR_TARGET
824OBJDUMP_FOR_TARGET
825RANLIB_FOR_TARGET
826STRIP_FOR_TARGET
827WINDRES_FOR_TARGET
828WINDMC_FOR_TARGET'
829
a0da8069
NN
830
831# Initialize some variables set by options.
c6b750e1
DJ
832ac_init_help=
833ac_init_version=false
81ecdfbb
RW
834ac_unrecognized_opts=
835ac_unrecognized_sep=
a0da8069
NN
836# The variables have the same names as the options, with
837# dashes changed to underlines.
c6b750e1 838cache_file=/dev/null
a0da8069 839exec_prefix=NONE
a0da8069 840no_create=
a0da8069
NN
841no_recursion=
842prefix=NONE
843program_prefix=NONE
844program_suffix=NONE
845program_transform_name=s,x,x,
846silent=
847site=
848srcdir=
a0da8069
NN
849verbose=
850x_includes=NONE
851x_libraries=NONE
c6b750e1
DJ
852
853# Installation directory options.
854# These are left unexpanded so users can "make install exec_prefix=/foo"
855# and all the variables that are supposed to be based on exec_prefix
856# by default will actually change.
857# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 858# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
859bindir='${exec_prefix}/bin'
860sbindir='${exec_prefix}/sbin'
861libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
862datarootdir='${prefix}/share'
863datadir='${datarootdir}'
a0da8069
NN
864sysconfdir='${prefix}/etc'
865sharedstatedir='${prefix}/com'
866localstatedir='${prefix}/var'
a0da8069
NN
867includedir='${prefix}/include'
868oldincludedir='/usr/include'
81ecdfbb
RW
869docdir='${datarootdir}/doc/${PACKAGE}'
870infodir='${datarootdir}/info'
871htmldir='${docdir}'
872dvidir='${docdir}'
873pdfdir='${docdir}'
874psdir='${docdir}'
875libdir='${exec_prefix}/lib'
876localedir='${datarootdir}/locale'
877mandir='${datarootdir}/man'
252b5132 878
a0da8069 879ac_prev=
81ecdfbb 880ac_dashdash=
a0da8069
NN
881for ac_option
882do
a0da8069
NN
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
81ecdfbb 885 eval $ac_prev=\$ac_option
a0da8069
NN
886 ac_prev=
887 continue
888 fi
252b5132 889
81ecdfbb
RW
890 case $ac_option in
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *) ac_optarg=yes ;;
893 esac
a0da8069
NN
894
895 # Accept the important Cygnus configure options, so we can diagnose typos.
896
81ecdfbb
RW
897 case $ac_dashdash$ac_option in
898 --)
899 ac_dashdash=yes ;;
a0da8069
NN
900
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 904 bindir=$ac_optarg ;;
a0da8069
NN
905
906 -build | --build | --buil | --bui | --bu)
c6b750e1 907 ac_prev=build_alias ;;
a0da8069 908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 909 build_alias=$ac_optarg ;;
a0da8069
NN
910
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
916 cache_file=$ac_optarg ;;
917
918 --config-cache | -C)
919 cache_file=config.cache ;;
a0da8069 920
81ecdfbb 921 -datadir | --datadir | --datadi | --datad)
a0da8069 922 ac_prev=datadir ;;
81ecdfbb 923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 924 datadir=$ac_optarg ;;
a0da8069 925
81ecdfbb
RW
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
932
a0da8069 933 -disable-* | --disable-*)
81ecdfbb 934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 935 # Reject names that are not valid shell variable names.
81ecdfbb
RW
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942"enable_$ac_useropt"
943"*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
948
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
953
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
a0da8069
NN
958
959 -enable-* | --enable-*)
81ecdfbb 960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 961 # Reject names that are not valid shell variable names.
81ecdfbb
RW
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968"enable_$ac_useropt"
969"*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
a0da8069 972 esac
81ecdfbb 973 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
974
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
c6b750e1 982 exec_prefix=$ac_optarg ;;
a0da8069
NN
983
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
987
c6b750e1
DJ
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
a0da8069
NN
994
995 -host | --host | --hos | --ho)
c6b750e1 996 ac_prev=host_alias ;;
a0da8069 997 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 998 host_alias=$ac_optarg ;;
a0da8069 999
81ecdfbb
RW
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1005
a0da8069
NN
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1011 includedir=$ac_optarg ;;
a0da8069
NN
1012
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1016 infodir=$ac_optarg ;;
a0da8069
NN
1017
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1021 libdir=$ac_optarg ;;
a0da8069
NN
1022
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1028 libexecdir=$ac_optarg ;;
a0da8069 1029
81ecdfbb
RW
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1034
a0da8069 1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1036 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1040 localstatedir=$ac_optarg ;;
a0da8069
NN
1041
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1045 mandir=$ac_optarg ;;
a0da8069
NN
1046
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1050
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1052 | --no-cr | --no-c | -n)
a0da8069
NN
1053 no_create=yes ;;
1054
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1058
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1066 oldincludedir=$ac_optarg ;;
a0da8069
NN
1067
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1071 prefix=$ac_optarg ;;
a0da8069
NN
1072
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1078 program_prefix=$ac_optarg ;;
a0da8069
NN
1079
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1085 program_suffix=$ac_optarg ;;
a0da8069
NN
1086
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1102 program_transform_name=$ac_optarg ;;
a0da8069 1103
81ecdfbb
RW
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1108
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1113
a0da8069
NN
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1117
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
c6b750e1 1122 sbindir=$ac_optarg ;;
a0da8069
NN
1123
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
c6b750e1 1133 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1134
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
c6b750e1 1138 site=$ac_optarg ;;
a0da8069
NN
1139
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1143 srcdir=$ac_optarg ;;
a0da8069
NN
1144
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1150 sysconfdir=$ac_optarg ;;
a0da8069
NN
1151
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1153 ac_prev=target_alias ;;
a0da8069 1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1155 target_alias=$ac_optarg ;;
a0da8069
NN
1156
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1159
c6b750e1
DJ
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
a0da8069
NN
1162
1163 -with-* | --with-*)
81ecdfbb 1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1165 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172"with_$ac_useropt"
1173"*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
a0da8069 1176 esac
81ecdfbb 1177 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1178
1179 -without-* | --without-*)
81ecdfbb 1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1181 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188"with_$ac_useropt"
1189"*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
a0da8069
NN
1194
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1198
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1204 x_includes=$ac_optarg ;;
a0da8069
NN
1205
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1211 x_libraries=$ac_optarg ;;
a0da8069 1212
81ecdfbb
RW
1213 -*) as_fn_error "unrecognized option: \`$ac_option'
1214Try \`$0 --help' for more information."
a0da8069
NN
1215 ;;
1216
c6b750e1
DJ
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1225 export $ac_envvar ;;
1226
a0da8069 1227 *)
c6b750e1 1228 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1232 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1233 ;;
1234
1235 esac
1236done
1237
1238if test -n "$ac_prev"; then
c6b750e1 1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1240 as_fn_error "missing argument to $ac_option"
a0da8069 1241fi
a0da8069 1242
81ecdfbb
RW
1243if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1248 esac
81ecdfbb 1249fi
a0da8069 1250
81ecdfbb
RW
1251# Check all directory arguments for consistency.
1252for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
a0da8069 1256do
81ecdfbb
RW
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
c6b750e1 1265 case $ac_val in
81ecdfbb
RW
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1268 esac
81ecdfbb 1269 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1270done
1271
c6b750e1
DJ
1272# There might be people who depend on the old broken behavior: `$host'
1273# used to hold the argument of --host etc.
1274# FIXME: To remove some day.
1275build=$build_alias
1276host=$host_alias
1277target=$target_alias
376a0e54 1278
c6b750e1
DJ
1279# FIXME: To remove some day.
1280if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
81ecdfbb 1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288fi
1289
1290ac_tool_prefix=
1291test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293test "$silent" = yes && exec 6>/dev/null
a0da8069 1294
a0da8069 1295
81ecdfbb
RW
1296ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297ac_ls_di=`ls -di .` &&
1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error "working directory cannot be determined"
1300test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error "pwd does not report name of working directory"
1302
1303
a0da8069
NN
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
81ecdfbb
RW
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
a0da8069 1331 srcdir=$ac_confdir
81ecdfbb 1332 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1333 srcdir=..
1334 fi
1335else
1336 ac_srcdir_defaulted=no
1337fi
81ecdfbb
RW
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1341fi
1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1345 pwd)`
1346# When building in place, set srcdir=.
1347if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349fi
1350# Remove unnecessary trailing slashes from srcdir.
1351# Double slashes in file names in object file debugging info
1352# mess up M-x gdb in Emacs.
1353case $srcdir in
1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355esac
6d0cd39e
AM
1356case $srcdir in
1357 *" "*)
1358 as_fn_error "path to source, $srcdir, contains spaces"
1359 ;;
1360esac
9cc8ae67
PB
1361ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1362
81ecdfbb
RW
1363for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368done
c6b750e1
DJ
1369
1370#
1371# Report the --help message.
1372#
1373if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377\`configure' configures this package to adapt to many kinds of systems.
1378
1379Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384Defaults for the options are specified in brackets.
1385
1386Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396
c6b750e1
DJ
1397Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1399 [$ac_default_prefix]
c6b750e1 1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1401 [PREFIX]
c6b750e1
DJ
1402
1403By default, \`make install' will install all the files in
1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406for instance \`--prefix=\$HOME'.
1407
1408For better control, use the options below.
1409
1410Fine tuning of the installation directories:
81ecdfbb
RW
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1430_ACEOF
1431
1432 cat <<\_ACEOF
1433
1434Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438
1439System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 --target=TARGET configure for building compilers for TARGET [HOST]
1443_ACEOF
a0da8069 1444fi
a0da8069 1445
c6b750e1
DJ
1446if test -n "$ac_init_help"; then
1447
1448 cat <<\_ACEOF
1449
1450Optional Features:
81ecdfbb 1451 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212
NC
1454 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1455 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
521ec477
DD
1456 --enable-libada build libada directory
1457 --enable-libssp build libssp directory
e8a5fa9c 1458 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f 1459 --disable-ppl-version-check disable check for PPL version
ceca0218
PB
1460 --enable-cloog-backend[=BACKEND]
1461 set the CLooG BACKEND used to either isl, ppl or
1462 ppl-legacy (default)
e552509b
ILT
1463 --disable-cloog-version-check
1464 disable check for CLooG version
700d40ca 1465 --enable-lto enable link time optimization support
521ec477 1466 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 1467 stage1. Mostly useful for compiler development.
521ec477
DD
1468 --enable-objc-gc enable use of Boehm's garbage collector with the
1469 GNU Objective-C runtime
1470 --enable-bootstrap enable bootstrapping [yes if native build]
1471 --enable-serial-[{host,target,build}-]configure
1472 force sequential configuration of
c6b750e1 1473 sub-packages for the host, target or build
521ec477 1474 machine, or all sub-packages
c6b750e1
DJ
1475 --enable-maintainer-mode enable make rules and dependencies not useful
1476 (and sometimes confusing) to the casual installer
521ec477
DD
1477 --enable-stage1-checking[=all] choose additional checking for stage1
1478 of the compiler
c6b750e1
DJ
1479 --enable-werror enable -Werror in bootstrap stage2 and later
1480
1481Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8a5fa9c
RW
1485 --with-mpc=PATH specify prefix directory for installed MPC package.
1486 Equivalent to --with-mpc-include=PATH/include
1487 plus --with-mpc-lib=PATH/lib
1488 --with-mpc-include=PATH
1489 specify directory for installed MPC include files
1490 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1491 --with-mpfr-dir=PATH this option has been REMOVED
1492 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
1493 Equivalent to --with-mpfr-include=PATH/include
1494 plus --with-mpfr-lib=PATH/lib
1495 --with-mpfr-include=PATH
521ec477
DD
1496 specify directory for installed MPFR include files
1497 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1498 --with-gmp-dir=PATH this option has been REMOVED
1499 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
1500 Equivalent to --with-gmp-include=PATH/include
1501 plus --with-gmp-lib=PATH/lib
521ec477
DD
1502 --with-gmp-include=PATH specify directory for installed GMP include files
1503 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
1504 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1505 when linking with PPL
e8a5fa9c
RW
1506 --with-stage1-ldflags=FLAGS Linker flags for stage1
1507 -with-stage1-libs=LIBS Libraries for stage1
e8a5fa9c 1508 --with-boot-libs=LIBS Libraries for stage2 and later
143754cd 1509 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
e28c595f
JM
1510 --with-ppl=PATH Specify prefix directory for the installed PPL package
1511 Equivalent to --with-ppl-include=PATH/include
1512 plus --with-ppl-lib=PATH/lib
1513 --with-ppl-include=PATH Specify directory for installed PPL include files
1514 --with-ppl-lib=PATH Specify the directory for the installed PPL library
e552509b
ILT
1515 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1516 package. Equivalent to
1517 --with-cloog-include=PATH/include plus
1518 --with-cloog-lib=PATH/lib
1519 --with-cloog-include=PATH
1520 Specify directory for installed CLooG include files
1521 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1522 library
521ec477 1523 --with-build-sysroot=SYSROOT
c6b750e1 1524 use sysroot as the system root during the build
8a6ee3ab
JM
1525 --with-debug-prefix-map='A=B C=D ...'
1526 map A to B, C to D ... in debug information
96655cc4
AO
1527--with-build-config='NAME NAME2...'
1528 Use config/NAME.mk build configuration
521ec477 1529 --with-build-time-tools=PATH
c6b750e1 1530 use given path to find target tools during the build
c6b750e1
DJ
1531
1532Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
81ecdfbb
RW
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1540 CXX C++ compiler command
1541 CXXFLAGS C++ compiler flags
4074d5f2
RW
1542 build_configargs
1543 additional configure arguments for build directories
1544 host_configargs
1545 additional configure arguments for host directories
1546 target_configargs
1547 additional configure arguments for target directories
9a819804
AO
1548 AR AR for the host
1549 AS AS for the host
1550 DLLTOOL DLLTOOL for the host
1551 LD LD for the host
1552 LIPO LIPO for the host
1553 NM NM for the host
1554 RANLIB RANLIB for the host
1555 STRIP STRIP for the host
1556 WINDRES WINDRES for the host
0c24b341 1557 WINDMC WINDMC for the host
9a819804
AO
1558 OBJCOPY OBJCOPY for the host
1559 OBJDUMP OBJDUMP for the host
1560 CC_FOR_TARGET
1561 CC for the target
1562 CXX_FOR_TARGET
1563 CXX for the target
1564 GCC_FOR_TARGET
1565 GCC for the target
1566 GCJ_FOR_TARGET
1567 GCJ for the target
1568 GFORTRAN_FOR_TARGET
1569 GFORTRAN for the target
e552509b
ILT
1570 GOC_FOR_TARGET
1571 GOC for the target
9a819804
AO
1572 AR_FOR_TARGET
1573 AR for the target
1574 AS_FOR_TARGET
1575 AS for the target
1576 DLLTOOL_FOR_TARGET
1577 DLLTOOL for the target
1578 LD_FOR_TARGET
1579 LD for the target
1580 LIPO_FOR_TARGET
1581 LIPO for the target
1582 NM_FOR_TARGET
1583 NM for the target
1584 OBJDUMP_FOR_TARGET
1585 OBJDUMP for the target
1586 RANLIB_FOR_TARGET
1587 RANLIB for the target
1588 STRIP_FOR_TARGET
1589 STRIP for the target
1590 WINDRES_FOR_TARGET
1591 WINDRES for the target
0c24b341
NC
1592 WINDMC_FOR_TARGET
1593 WINDMC for the target
c6b750e1
DJ
1594
1595Use these variables to override the choices made by `configure' or to help
1596it to find libraries and programs with nonstandard names/locations.
1597
81ecdfbb 1598Report bugs to the package provider.
c6b750e1 1599_ACEOF
81ecdfbb 1600ac_status=$?
c6b750e1
DJ
1601fi
1602
1603if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
c6b750e1 1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 continue
c6b750e1
DJ
1609 ac_builddir=.
1610
81ecdfbb
RW
1611case "$ac_dir" in
1612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613*)
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 esac ;;
1621esac
1622ac_abs_top_builddir=$ac_pwd
1623ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624# for backward compatibility:
1625ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1626
1627case $srcdir in
81ecdfbb 1628 .) # We are building in place.
c6b750e1 1629 ac_srcdir=.
81ecdfbb
RW
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1633 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1636 *) # Relative name.
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1640esac
81ecdfbb
RW
1641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1651 else
81ecdfbb
RW
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1655 done
1656fi
1657
81ecdfbb 1658test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1659if $ac_init_version; then
1660 cat <<\_ACEOF
81ecdfbb
RW
1661configure
1662generated by GNU Autoconf 2.64
c6b750e1 1663
81ecdfbb 1664Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1665This configure script is free software; the Free Software Foundation
1666gives unlimited permission to copy, distribute and modify it.
1667_ACEOF
81ecdfbb 1668 exit
c6b750e1 1669fi
81ecdfbb
RW
1670
1671## ------------------------ ##
1672## Autoconf initialization. ##
1673## ------------------------ ##
1674
1675# ac_fn_c_try_compile LINENO
1676# --------------------------
1677# Try to compile conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_compile ()
1679{
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1683case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1701 ac_retval=0
1702else
1703 $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707fi
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 return $ac_retval
1710
1711} # ac_fn_c_try_compile
1712
1713# ac_fn_cxx_try_compile LINENO
1714# ----------------------------
1715# Try to compile conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_cxx_try_compile ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1721case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1733 fi
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_cxx_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1739 ac_retval=0
1740else
1741 $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=1
1745fi
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 return $ac_retval
1748
1749} # ac_fn_cxx_try_compile
1750
1751# ac_fn_c_try_link LINENO
1752# -----------------------
1753# Try to link conftest.$ac_ext, and return whether this succeeded.
1754ac_fn_c_try_link ()
1755{
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext conftest$ac_exeext
1758 if { { ac_try="$ac_link"
1759case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_link") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1771 fi
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest$ac_exeext && {
1777 test "$cross_compiling" = yes ||
1778 $as_test_x conftest$ac_exeext
1779 }; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786fi
1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789 # interfere with the next link command; also delete a directory that is
1790 # left behind by Apple's compiler. We do this before executing the actions.
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 return $ac_retval
1794
1795} # ac_fn_c_try_link
1796cat >config.log <<_ACEOF
c6b750e1
DJ
1797This file contains any messages produced by compilers while
1798running configure, to aid debugging if configure makes a mistake.
1799
1800It was created by $as_me, which was
81ecdfbb 1801generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1802
1803 $ $0 $@
1804
1805_ACEOF
81ecdfbb 1806exec 5>>config.log
c6b750e1
DJ
1807{
1808cat <<_ASUNAME
1809## --------- ##
1810## Platform. ##
1811## --------- ##
1812
1813hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1814uname -m = `(uname -m) 2>/dev/null || echo unknown`
1815uname -r = `(uname -r) 2>/dev/null || echo unknown`
1816uname -s = `(uname -s) 2>/dev/null || echo unknown`
1817uname -v = `(uname -v) 2>/dev/null || echo unknown`
1818
1819/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1820/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1821
1822/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1823/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1824/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1825/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1826/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1827/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1828/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1829
1830_ASUNAME
1831
1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1837 $as_echo "PATH: $as_dir"
1838 done
1839IFS=$as_save_IFS
c6b750e1
DJ
1840
1841} >&5
1842
1843cat >&5 <<_ACEOF
1844
1845
1846## ----------- ##
1847## Core tests. ##
1848## ----------- ##
1849
1850_ACEOF
1851
1852
1853# Keep a trace of the command line.
1854# Strip out --no-create and --no-recursion so they do not pile up.
1855# Strip out --silent because we don't want to record it for future runs.
1856# Also quote any args containing shell meta-characters.
1857# Make two passes to allow for proper duplicate-argument suppression.
1858ac_configure_args=
1859ac_configure_args0=
1860ac_configure_args1=
c6b750e1
DJ
1861ac_must_keep_next=false
1862for ac_pass in 1 2
1863do
1864 for ac_arg
1865 do
1866 case $ac_arg in
1867 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1869 | -silent | --silent | --silen | --sile | --sil)
1870 continue ;;
81ecdfbb
RW
1871 *\'*)
1872 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1873 esac
1874 case $ac_pass in
81ecdfbb 1875 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1876 2)
81ecdfbb 1877 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1878 if test $ac_must_keep_next = true; then
1879 ac_must_keep_next=false # Got value, back to normal.
1880 else
1881 case $ac_arg in
1882 *=* | --config-cache | -C | -disable-* | --disable-* \
1883 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1884 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1885 | -with-* | --with-* | -without-* | --without-* | --x)
1886 case "$ac_configure_args0 " in
1887 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1888 esac
1889 ;;
1890 -* ) ac_must_keep_next=true ;;
1891 esac
1892 fi
81ecdfbb 1893 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1894 ;;
1895 esac
1896 done
1897done
81ecdfbb
RW
1898{ ac_configure_args0=; unset ac_configure_args0;}
1899{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1900
1901# When interrupted or exit'd, cleanup temporary files, and complete
1902# config.log. We remove comments because anyway the quotes in there
1903# would cause problems or look ugly.
81ecdfbb
RW
1904# WARNING: Use '\'' to represent an apostrophe within the trap.
1905# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1906trap 'exit_status=$?
1907 # Save into config.log some information that might help in debugging.
1908 {
1909 echo
1910
1911 cat <<\_ASBOX
1912## ---------------- ##
1913## Cache variables. ##
1914## ---------------- ##
1915_ASBOX
1916 echo
1917 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1918(
1919 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1920 eval ac_val=\$$ac_var
1921 case $ac_val in #(
1922 *${as_nl}*)
1923 case $ac_var in #(
1924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1925$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1926 esac
1927 case $ac_var in #(
1928 _ | IFS | as_nl) ;; #(
1929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1930 *) { eval $ac_var=; unset $ac_var;} ;;
1931 esac ;;
1932 esac
1933 done
c6b750e1 1934 (set) 2>&1 |
81ecdfbb
RW
1935 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1936 *${as_nl}ac_space=\ *)
c6b750e1 1937 sed -n \
81ecdfbb
RW
1938 "s/'\''/'\''\\\\'\'''\''/g;
1939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1940 ;; #(
c6b750e1 1941 *)
81ecdfbb 1942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1943 ;;
81ecdfbb
RW
1944 esac |
1945 sort
1946)
c6b750e1
DJ
1947 echo
1948
1949 cat <<\_ASBOX
1950## ----------------- ##
1951## Output variables. ##
1952## ----------------- ##
1953_ASBOX
1954 echo
1955 for ac_var in $ac_subst_vars
1956 do
81ecdfbb
RW
1957 eval ac_val=\$$ac_var
1958 case $ac_val in
1959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1960 esac
1961 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1962 done | sort
1963 echo
1964
1965 if test -n "$ac_subst_files"; then
1966 cat <<\_ASBOX
81ecdfbb
RW
1967## ------------------- ##
1968## File substitutions. ##
1969## ------------------- ##
c6b750e1
DJ
1970_ASBOX
1971 echo
1972 for ac_var in $ac_subst_files
1973 do
81ecdfbb
RW
1974 eval ac_val=\$$ac_var
1975 case $ac_val in
1976 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977 esac
1978 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1979 done | sort
1980 echo
1981 fi
1982
1983 if test -s confdefs.h; then
1984 cat <<\_ASBOX
1985## ----------- ##
1986## confdefs.h. ##
1987## ----------- ##
1988_ASBOX
1989 echo
81ecdfbb 1990 cat confdefs.h
c6b750e1
DJ
1991 echo
1992 fi
1993 test "$ac_signal" != 0 &&
81ecdfbb
RW
1994 $as_echo "$as_me: caught signal $ac_signal"
1995 $as_echo "$as_me: exit $exit_status"
c6b750e1 1996 } >&5
81ecdfbb
RW
1997 rm -f core *.core core.conftest.* &&
1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 1999 exit $exit_status
81ecdfbb 2000' 0
c6b750e1 2001for ac_signal in 1 2 13 15; do
81ecdfbb 2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2003done
2004ac_signal=0
2005
2006# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2007rm -f -r conftest* confdefs.h
2008
2009$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2010
2011# Predefined preprocessor variables.
2012
2013cat >>confdefs.h <<_ACEOF
2014#define PACKAGE_NAME "$PACKAGE_NAME"
2015_ACEOF
2016
c6b750e1
DJ
2017cat >>confdefs.h <<_ACEOF
2018#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2019_ACEOF
2020
c6b750e1
DJ
2021cat >>confdefs.h <<_ACEOF
2022#define PACKAGE_VERSION "$PACKAGE_VERSION"
2023_ACEOF
2024
c6b750e1
DJ
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_STRING "$PACKAGE_STRING"
2027_ACEOF
2028
c6b750e1
DJ
2029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2031_ACEOF
2032
81ecdfbb
RW
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_URL "$PACKAGE_URL"
2035_ACEOF
2036
c6b750e1
DJ
2037
2038# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2039# Prefer an explicitly selected file to automatically selected ones.
2040ac_site_file1=NONE
2041ac_site_file2=NONE
2042if test -n "$CONFIG_SITE"; then
2043 ac_site_file1=$CONFIG_SITE
2044elif test "x$prefix" != xNONE; then
2045 ac_site_file1=$prefix/share/config.site
2046 ac_site_file2=$prefix/etc/config.site
2047else
2048 ac_site_file1=$ac_default_prefix/share/config.site
2049 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2050fi
81ecdfbb
RW
2051for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2052do
2053 test "x$ac_site_file" = xNONE && continue
a0da8069 2054 if test -r "$ac_site_file"; then
81ecdfbb
RW
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2056$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2057 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2058 . "$ac_site_file"
2059 fi
2060done
2061
2062if test -r "$cache_file"; then
c6b750e1
DJ
2063 # Some versions of bash will fail to source /dev/null (special
2064 # files actually), so we avoid doing that.
2065 if test -f "$cache_file"; then
81ecdfbb
RW
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2067$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2068 case $cache_file in
81ecdfbb
RW
2069 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070 *) . "./$cache_file";;
c6b750e1
DJ
2071 esac
2072 fi
a0da8069 2073else
81ecdfbb
RW
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2075$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2076 >$cache_file
2077fi
2078
2079# Check that the precious variables saved in the cache have kept the same
2080# value.
2081ac_cache_corrupted=false
81ecdfbb 2082for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2083 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2084 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2085 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2086 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2087 case $ac_old_set,$ac_new_set in
2088 set,)
81ecdfbb
RW
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2090$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2091 ac_cache_corrupted=: ;;
2092 ,set)
81ecdfbb
RW
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2094$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2095 ac_cache_corrupted=: ;;
2096 ,);;
2097 *)
2098 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2099 # differences in whitespace do not lead to failure.
2100 ac_old_val_w=`echo x $ac_old_val`
2101 ac_new_val_w=`echo x $ac_new_val`
2102 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2104$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2105 ac_cache_corrupted=:
2106 else
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2108$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2109 eval $ac_var=\$ac_old_val
2110 fi
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2112$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2114$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2115 fi;;
2116 esac
2117 # Pass precious variables to config.status.
2118 if test "$ac_new_set" = set; then
2119 case $ac_new_val in
81ecdfbb 2120 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2121 *) ac_arg=$ac_var=$ac_new_val ;;
2122 esac
2123 case " $ac_configure_args " in
2124 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2125 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2126 esac
2127 fi
2128done
2129if $ac_cache_corrupted; then
81ecdfbb
RW
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2133$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2134 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2135fi
81ecdfbb
RW
2136## -------------------- ##
2137## Main body of script. ##
2138## -------------------- ##
a0da8069
NN
2139
2140ac_ext=c
a0da8069 2141ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145
2146
2147
2148
c6b750e1
DJ
2149
2150
34a0f3cf 2151
c6b750e1 2152
5b553f7e
RW
2153
2154progname=$0
2155# if PWD already has a value, it is probably wrong.
2156if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2157
2158# Export original configure arguments for use by sub-configures.
2159# Quote arguments with shell meta charatcers.
2160TOPLEVEL_CONFIGURE_ARGUMENTS=
2161set -- "$progname" "$@"
2162for ac_arg
2163do
2164 case "$ac_arg" in
2165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2166 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2167 # if the argument is of the form -foo=baz, quote the baz part only
2168 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2169 *) ;;
2170 esac
2171 # Add the quoted argument to the list.
2172 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2173done
2174if test "$silent" = yes; then
2175 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2176fi
2177# Remove the initial space we just introduced and, as these will be
2178# expanded by make, quote '$'.
2179TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2180
c6b750e1
DJ
2181
2182# Find the build, host, and target systems.
a0da8069 2183ac_aux_dir=
81ecdfbb
RW
2184for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2185 for ac_t in install-sh install.sh shtool; do
2186 if test -f "$ac_dir/$ac_t"; then
2187 ac_aux_dir=$ac_dir
2188 ac_install_sh="$ac_aux_dir/$ac_t -c"
2189 break 2
2190 fi
2191 done
a0da8069
NN
2192done
2193if test -z "$ac_aux_dir"; then
81ecdfbb 2194 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2195fi
81ecdfbb
RW
2196
2197# These three variables are undocumented and unsupported,
2198# and are intended to be withdrawn in a future Autoconf release.
2199# They can cause serious problems if a builder's source tree is in a directory
2200# whose full name contains unusual characters.
2201ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2202ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2203ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2204
a0da8069 2205
c6b750e1 2206# Make sure we can run config.sub.
81ecdfbb
RW
2207$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2208 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2209
2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2211$as_echo_n "checking build system type... " >&6; }
2212if test "${ac_cv_build+set}" = set; then :
2213 $as_echo_n "(cached) " >&6
2214else
2215 ac_build_alias=$build_alias
2216test "x$ac_build_alias" = x &&
2217 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2218test "x$ac_build_alias" = x &&
2219 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2220ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2221 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2222
2223fi
2224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2225$as_echo "$ac_cv_build" >&6; }
2226case $ac_cv_build in
2227*-*-*) ;;
2228*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2229esac
c6b750e1 2230build=$ac_cv_build
81ecdfbb
RW
2231ac_save_IFS=$IFS; IFS='-'
2232set x $ac_cv_build
2233shift
2234build_cpu=$1
2235build_vendor=$2
2236shift; shift
2237# Remember, the first character of IFS is used to create $*,
2238# except with old shells:
2239build_os=$*
2240IFS=$ac_save_IFS
2241case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2242
a0da8069 2243
c6b750e1
DJ
2244 case ${build_alias} in
2245 "") build_noncanonical=${build} ;;
2246 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2247esac
2248
2249
cac3d6c4 2250
c6b750e1
DJ
2251 case ${host_alias} in
2252 "") host_noncanonical=${build_noncanonical} ;;
2253 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2254esac
2255
cac3d6c4 2256
c6b750e1
DJ
2257
2258 case ${target_alias} in
2259 "") target_noncanonical=${host_noncanonical} ;;
2260 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2261esac
2262
cac3d6c4 2263
c6b750e1
DJ
2264
2265
2266test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2268 NONENONEs,x,x, &&
c6b750e1 2269 program_transform_name=s,y,y,
cac3d6c4 2270
81ecdfbb
RW
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2272$as_echo_n "checking host system type... " >&6; }
2273if test "${ac_cv_host+set}" = set; then :
2274 $as_echo_n "(cached) " >&6
cac3d6c4 2275else
81ecdfbb
RW
2276 if test "x$host_alias" = x; then
2277 ac_cv_host=$ac_cv_build
2278else
2279 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2280 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2281fi
c6b750e1
DJ
2282
2283fi
81ecdfbb
RW
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2285$as_echo "$ac_cv_host" >&6; }
2286case $ac_cv_host in
2287*-*-*) ;;
2288*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2289esac
c6b750e1 2290host=$ac_cv_host
81ecdfbb
RW
2291ac_save_IFS=$IFS; IFS='-'
2292set x $ac_cv_host
2293shift
2294host_cpu=$1
2295host_vendor=$2
2296shift; shift
2297# Remember, the first character of IFS is used to create $*,
2298# except with old shells:
2299host_os=$*
2300IFS=$ac_save_IFS
2301case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2302
2303
81ecdfbb
RW
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2305$as_echo_n "checking target system type... " >&6; }
2306if test "${ac_cv_target+set}" = set; then :
2307 $as_echo_n "(cached) " >&6
c6b750e1 2308else
81ecdfbb
RW
2309 if test "x$target_alias" = x; then
2310 ac_cv_target=$ac_cv_host
2311else
2312 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2313 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2314fi
c6b750e1 2315
cac3d6c4 2316fi
81ecdfbb
RW
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2318$as_echo "$ac_cv_target" >&6; }
2319case $ac_cv_target in
2320*-*-*) ;;
2321*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2322esac
c6b750e1 2323target=$ac_cv_target
81ecdfbb
RW
2324ac_save_IFS=$IFS; IFS='-'
2325set x $ac_cv_target
2326shift
2327target_cpu=$1
2328target_vendor=$2
2329shift; shift
2330# Remember, the first character of IFS is used to create $*,
2331# except with old shells:
2332target_os=$*
2333IFS=$ac_save_IFS
2334case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2335
2336
2337# The aliases save the names the user supplied, while $host etc.
2338# will get canonicalized.
2339test -n "$target_alias" &&
2340 test "$program_prefix$program_suffix$program_transform_name" = \
2341 NONENONEs,x,x, &&
2342 program_prefix=${target_alias}-
81ecdfbb 2343
a0da8069 2344test "$program_prefix" != NONE &&
81ecdfbb 2345 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2346# Use a double $ so make ignores it.
2347test "$program_suffix" != NONE &&
81ecdfbb
RW
2348 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2349# Double any \ or $.
c6b750e1 2350# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2351ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2352program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2353
a0da8069
NN
2354
2355
e5c3f801
NN
2356# Get 'install' or 'install-sh' and its variants.
2357# Find a good install program. We prefer a C program (faster),
2358# so one script is as good as another. But avoid the broken or
2359# incompatible versions:
2360# SysV /etc/install, /usr/sbin/install
2361# SunOS /usr/etc/install
2362# IRIX /sbin/install
2363# AIX /bin/install
c6b750e1 2364# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2365# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2366# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2367# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2368# OS/2's system install, which has a completely different semantic
e5c3f801 2369# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2370# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2372$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2373if test -z "$INSTALL"; then
81ecdfbb
RW
2374if test "${ac_cv_path_install+set}" = set; then :
2375 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2376else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378for as_dir in $PATH
2379do
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2382 # Account for people who put trailing slashes in PATH elements.
2383case $as_dir/ in #((
2384 ./ | .// | /[cC]/* | \
c6b750e1 2385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2387 /usr/ucb/* ) ;;
2388 *)
2389 # OSF1 and SCO ODT 3.0 have their own names for install.
2390 # Don't use installbsd from OSF since it installs stuff as root
2391 # by default.
2392 for ac_prog in ginstall scoinst install; do
2393 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2394 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2395 if test $ac_prog = install &&
c6b750e1 2396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2397 # AIX install. It has an incompatible calling convention.
2398 :
c6b750e1
DJ
2399 elif test $ac_prog = install &&
2400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401 # program-specific install script used by HP pwplus--don't use.
2402 :
e5c3f801 2403 else
58c85be7
RW
2404 rm -rf conftest.one conftest.two conftest.dir
2405 echo one > conftest.one
2406 echo two > conftest.two
2407 mkdir conftest.dir
2408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2409 test -s conftest.one && test -s conftest.two &&
2410 test -s conftest.dir/conftest.one &&
2411 test -s conftest.dir/conftest.two
2412 then
2413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2414 break 3
2415 fi
e5c3f801
NN
2416 fi
2417 fi
2418 done
c6b750e1
DJ
2419 done
2420 ;;
2421esac
81ecdfbb
RW
2422
2423 done
2424IFS=$as_save_IFS
c6b750e1 2425
58c85be7 2426rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2427
2428fi
2429 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2430 INSTALL=$ac_cv_path_install
e5c3f801 2431 else
58c85be7
RW
2432 # As a last resort, use the slow shell script. Don't cache a
2433 # value for INSTALL within a source directory, because that will
e5c3f801 2434 # break other packages using the cache if that directory is
58c85be7 2435 # removed, or if the value is a relative name.
c6b750e1 2436 INSTALL=$ac_install_sh
e5c3f801
NN
2437 fi
2438fi
81ecdfbb
RW
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2440$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2441
2442# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2443# It thinks the first close brace ends the variable substitution.
2444test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2445
c6b750e1 2446test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2447
2448test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2449
81ecdfbb
RW
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2451$as_echo_n "checking whether ln works... " >&6; }
2452if test "${acx_cv_prog_LN+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
656fdd47
PB
2454else
2455 rm -f conftestdata_t
2456echo >conftestdata_f
2457if ln conftestdata_f conftestdata_t 2>/dev/null
2458then
2459 acx_cv_prog_LN=ln
2460else
2461 acx_cv_prog_LN=no
2462fi
2463rm -f conftestdata_f conftestdata_t
2464
2465fi
2466if test $acx_cv_prog_LN = no; then
2467 LN="cp"
81ecdfbb
RW
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2469$as_echo "no, using $LN" >&6; }
656fdd47
PB
2470else
2471 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473$as_echo "yes" >&6; }
656fdd47
PB
2474fi
2475
81ecdfbb
RW
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2477$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2478LN_S=$as_ln_s
2479if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481$as_echo "yes" >&6; }
cac3d6c4 2482else
81ecdfbb
RW
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2484$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2485fi
2486
8e957354
PB
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2488$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2489if test "${ac_cv_path_SED+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491else
2492 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2493 for ac_i in 1 2 3 4 5 6 7; do
2494 ac_script="$ac_script$as_nl$ac_script"
2495 done
2496 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2497 { ac_script=; unset ac_script;}
2498 if test -z "$SED"; then
2499 ac_path_SED_found=false
2500 # Loop through the user's path and test for each of PROGNAME-LIST
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_prog in sed gsed; do
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2509 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2510# Check for GNU ac_path_SED and select it if it is found.
2511 # Check for GNU $ac_path_SED
2512case `"$ac_path_SED" --version 2>&1` in
2513*GNU*)
2514 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2515*)
2516 ac_count=0
2517 $as_echo_n 0123456789 >"conftest.in"
2518 while :
2519 do
2520 cat "conftest.in" "conftest.in" >"conftest.tmp"
2521 mv "conftest.tmp" "conftest.in"
2522 cp "conftest.in" "conftest.nl"
2523 $as_echo '' >> "conftest.nl"
2524 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2526 as_fn_arith $ac_count + 1 && ac_count=$as_val
2527 if test $ac_count -gt ${ac_path_SED_max-0}; then
2528 # Best one so far, save it but keep looking for a better one
2529 ac_cv_path_SED="$ac_path_SED"
2530 ac_path_SED_max=$ac_count
2531 fi
2532 # 10*(2^10) chars as input seems more than enough
2533 test $ac_count -gt 10 && break
2534 done
2535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2536esac
2537
2538 $ac_path_SED_found && break 3
2539 done
2540 done
2541 done
2542IFS=$as_save_IFS
2543 if test -z "$ac_cv_path_SED"; then
2544 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2545 fi
2546else
2547 ac_cv_path_SED=$SED
2548fi
2549
2550fi
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2552$as_echo "$ac_cv_path_SED" >&6; }
2553 SED="$ac_cv_path_SED"
2554 rm -f conftest.sed
2555
2556for ac_prog in gawk mawk nawk awk
2557do
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559set dummy $ac_prog; ac_word=$2
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
2562if test "${ac_cv_prog_AWK+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2564else
2565 if test -n "$AWK"; then
2566 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_AWK="$ac_prog"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579done
2580 done
2581IFS=$as_save_IFS
2582
2583fi
2584fi
2585AWK=$ac_cv_prog_AWK
2586if test -n "$AWK"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2588$as_echo "$AWK" >&6; }
2589else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591$as_echo "no" >&6; }
2592fi
2593
2594
2595 test -n "$AWK" && break
2596done
2597
e5c3f801 2598
252b5132 2599### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2600### If we are on Windows, search for the shell. This will permit people
2601### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2602### without also having to set CONFIG_SHELL. This code will work when
2603### using bash, which sets OSTYPE.
2604case "${OSTYPE}" in
2605*win32*)
a0da8069
NN
2606 if test x${CONFIG_SHELL} = x ; then
2607 if test ! -f /bin/sh ; then
2608 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2609 CONFIG_SHELL=${SHELL}
2610 export CONFIG_SHELL
2611 else
2612 for prog in sh sh.exe bash bash.exe; do
2613 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2614 for dir in $PATH; do
2615 test -z "$dir" && dir=.
2616 if test -f $dir/$prog; then
2617 CONFIG_SHELL=$dir/$prog
2618 export CONFIG_SHELL
2619 break
2620 fi
2621 done
2622 IFS="$save_ifs"
2623 test -n "${CONFIG_SHELL}" && break
2624 done
2625 fi
2626 fi
2627 fi
2628 ;;
2629esac
2630
2631config_shell=${CONFIG_SHELL-/bin/sh}
2632
a0da8069 2633moveifchange=${srcdir}/move-if-change
252b5132 2634
0fdbe983
DJ
2635srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2636
2637# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2638# a relative path.
2639if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2640 INSTALL="${srcpwd}/install-sh -c"
2641fi
2642
a0da8069
NN
2643# Set srcdir to "." if that's what it is.
2644# This is important for multilib support.
2645pwd=`${PWDCMD-pwd}`
a0da8069
NN
2646if test "${pwd}" = "${srcpwd}" ; then
2647 srcdir=.
252b5132
RH
2648fi
2649
a0da8069 2650topsrcdir=$srcpwd
252b5132 2651
a0da8069 2652extra_host_args=
afefada0 2653
a0da8069
NN
2654### To add a new directory to the tree, first choose whether it is a target
2655### or a host dependent tool. Then put it into the appropriate list
2656### (library or tools, host or target), doing a dependency sort.
252b5132 2657
c6b750e1 2658# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2659# configdirs, or target_configdirs; see the serialization section below.
252b5132 2660
c6b750e1
DJ
2661# Dependency sorting is only needed when *configuration* must be done in
2662# a particular order. In all cases a dependency should be specified in
a0da8069 2663# the Makefile, whether or not it's implicitly specified here.
252b5132 2664
a0da8069
NN
2665# Double entries in build_configdirs, configdirs, or target_configdirs may
2666# cause circular dependencies and break everything horribly.
252b5132 2667
6a9cf61e
PB
2668# these library is used by various programs built for the build
2669# environment
2670#
2671build_libs="build-libiberty"
2672
2673# these tools are built for the build environment
ee025550 2674build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2675
a0da8069
NN
2676# these libraries are used by various programs built for the host environment
2677#
1f53ca9a 2678host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2679
a0da8069
NN
2680# these tools are built for the host environment
2681# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2682# know that we are building the simulator.
2683# binutils, gas and ld appear in that order because it makes sense to run
2684# "make check" in that particular order.
e6de499b 2685# If --enable-gold is used, "gold" may replace "ld".
f9806fa5 2686host_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
2687
2688# libgcj represents the runtime libraries only used by gcj.
2689libgcj="target-libffi \
a0da8069
NN
2690 target-zlib \
2691 target-qthreads \
2692 target-libjava"
2693
2694# these libraries are built for the target environment, and are built after
2695# the host libraries and the host tools (which may be a cross compiler)
2696#
b1299c4e
DJ
2697target_libraries="target-libgcc \
2698 target-libiberty \
a0da8069
NN
2699 target-libgloss \
2700 target-newlib \
cff87f51 2701 target-libgomp \
b9459e83 2702 target-libstdc++-v3 \
4b1cb4fe 2703 target-libmudflap \
bb780410 2704 target-libssp \
e552509b 2705 target-libquadmath \
4b1cb4fe 2706 target-libgfortran \
4f0ef2d8 2707 target-boehm-gc \
83326456 2708 ${libgcj} \
a2592b1b 2709 target-libobjc \
e552509b
ILT
2710 target-libada \
2711 target-libgo"
a0da8069 2712
9c14acb8
NN
2713# these tools are built using the target libraries, and are intended to
2714# run only in the target environment
a0da8069 2715#
9c14acb8 2716# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2717# list belongs in this list. those programs are also very likely
2718# candidates for the "native_only" list which follows
2719#
a3dd767d 2720target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2721
a0da8069 2722################################################################################
252b5132 2723
a0da8069
NN
2724## All tools belong in one of the four categories, and are assigned above
2725## We assign ${configdirs} this way to remove all embedded newlines. This
2726## is important because configure will choke if they ever get through.
2727## ${configdirs} is directories we build using the host tools.
2728## ${target_configdirs} is directories we build using the target tools.
a0da8069 2729configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2730target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2731build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2732
9cc8ae67
PB
2733
2734
a0da8069 2735################################################################################
252b5132 2736
a0da8069 2737srcname="gnu development package"
252b5132 2738
a0da8069
NN
2739# This gets set non-empty for some net releases of packages.
2740appdirs=""
252b5132 2741
a0da8069
NN
2742# Define is_cross_compiler to save on calls to 'test'.
2743is_cross_compiler=
2744if test x"${host}" = x"${target}" ; then
2745 is_cross_compiler=no
252b5132 2746else
a0da8069 2747 is_cross_compiler=yes
c6b750e1 2748fi
252b5132 2749
9175bfc0 2750# Find the build and target subdir names.
dd12c3a8 2751
66a79c16
DJ
2752# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2753# have matching libraries, they should use host libraries: Makefile.tpl
2754# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2755# However, they still use the build modules, because the corresponding
2756# host modules (e.g. bison) are only built for the host when bootstrap
2757# finishes. So:
2758# - build_subdir is where we find build modules, and never changes.
2759# - build_libsubdir is where we find build libraries, and can be overridden.
2760
2761# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2762build_subdir="build-${build_noncanonical}"
c6b750e1 2763
81ecdfbb
RW
2764# Check whether --with-build-libsubdir was given.
2765if test "${with_build_libsubdir+set}" = set; then :
2766 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2767else
2768 build_libsubdir="$build_subdir"
81ecdfbb
RW
2769fi
2770
b00612cc
PB
2771# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2772if ( test $srcdir = . && test -d gcc ) \
2773 || test -d $srcdir/../host-${host_noncanonical}; then
2774 host_subdir="host-${host_noncanonical}"
2775else
2776 host_subdir=.
2777fi
dd12c3a8
NN
2778# No prefix.
2779target_subdir=${target_noncanonical}
c6b750e1 2780
2fd0b40b
RW
2781# Be sure to cover against remnants of an in-tree build.
2782if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2783 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2784Use a pristine source tree when building in a separate tree" "$LINENO" 5
2785fi
252b5132 2786
a0da8069
NN
2787# Skipdirs are removed silently.
2788skipdirs=
2789# Noconfigdirs are removed loudly.
2790noconfigdirs=""
252b5132 2791
a0da8069
NN
2792use_gnu_ld=
2793# Make sure we don't let GNU ld be added if we didn't want it.
2794if test x$with_gnu_ld = xno ; then
2795 use_gnu_ld=no
93f9b408 2796 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2797fi
2798
a0da8069
NN
2799use_gnu_as=
2800# Make sure we don't let GNU as be added if we didn't want it.
2801if test x$with_gnu_as = xno ; then
2802 use_gnu_as=no
2803 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2804fi
2805
700d40ca
ILT
2806use_included_zlib=
2807# Make sure we don't let ZLIB be added if we didn't want it.
2808if test x$with_system_zlib = xyes ; then
2809 use_included_zlib=no
2810 noconfigdirs="$noconfigdirs zlib"
2811fi
2812
c6b750e1 2813# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2814# it's not even worth trying to configure, much less build, that tool.
252b5132 2815
a0da8069
NN
2816case ${with_x} in
2817 yes | "") ;; # the default value for this tree is that X11 is available
2818 no)
675c6968 2819 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2820 # We won't be able to build gdbtk without X.
c6b750e1 2821 enable_gdbtk=no
a0da8069
NN
2822 ;;
2823 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2824esac
252b5132 2825
a0da8069 2826# Some tools are only suitable for building in a "native" situation.
c6b750e1 2827# Remove these if host!=target.
701628f5 2828native_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 2829
a0da8069
NN
2830# Similarly, some are only suitable for cross toolchains.
2831# Remove these if host=target.
2832cross_only="target-libgloss target-newlib target-opcodes"
2833
2834case $is_cross_compiler in
2835 no) skipdirs="${skipdirs} ${cross_only}" ;;
2836 yes) skipdirs="${skipdirs} ${native_only}" ;;
2837esac
252b5132 2838
a0da8069
NN
2839# If both --with-headers and --with-libs are specified, default to
2840# --without-newlib.
32be62b5
RS
2841if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2842 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2843 if test x"${with_newlib}" = x ; then
2844 with_newlib=no
2845 fi
252b5132
RH
2846fi
2847
a0da8069
NN
2848# Recognize --with-newlib/--without-newlib.
2849case ${with_newlib} in
2850 no) skipdirs="${skipdirs} target-newlib" ;;
2851 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2852esac
252b5132 2853
c7791212
NC
2854# Handle --enable-gold, --enable-ld.
2855# --disable-gold [--enable-ld]
2856# Build only ld. Default option.
d3b50760
L
2857# --enable-gold [--enable-ld]
2858# Build both gold and ld. Install gold as "ld.gold", install ld
2859# as "ld.bfd" and "ld".
2860# --enable-gold=default [--enable-ld]
c7791212
NC
2861# Build both gold and ld. Install gold as "ld.gold" and "ld",
2862# install ld as "ld.bfd".
2863# --enable-gold[=default] --disable-ld
2864# Build only gold, which is then installed as both "ld.gold" and "ld".
2865# --enable-gold --enable-ld=default
d3b50760
L
2866# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2867# and ld.bfd).
c7791212
NC
2868# In other words, ld is default
2869# --enable-gold=default --enable-ld=default
2870# Error.
2871
2872default_ld=
81ecdfbb
RW
2873# Check whether --enable-gold was given.
2874if test "${enable_gold+set}" = set; then :
2875 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2876else
2877 ENABLE_GOLD=no
81ecdfbb
RW
2878fi
2879
c7791212
NC
2880case "${ENABLE_GOLD}" in
2881 yes|default)
e6de499b
NC
2882 # Check for ELF target.
2883 is_elf=no
2884 case "${target}" in
2885 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2886 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2887 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2888 case "${target}" in
2889 *-*-linux*aout* | *-*-linux*oldld*)
2890 ;;
2891 *)
2892 is_elf=yes
2893 ;;
2894 esac
2895 esac
2896
2897 if test "$is_elf" = "yes"; then
2898 # Check for target supported by gold.
93f9b408 2899 case "${target}" in
e6de499b 2900 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
c7791212
NC
2901 configdirs="$configdirs gold"
2902 if test x${ENABLE_GOLD} = xdefault; then
2903 default_ld=gold
2904 fi
e6de499b 2905 ENABLE_GOLD=yes
93f9b408
ILT
2906 ;;
2907 esac
e6de499b
NC
2908 fi
2909 ;;
2910 no)
2911 ;;
2912 *)
2913 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2914 ;;
c7791212
NC
2915esac
2916
2917# Check whether --enable-ld was given.
2918if test "${enable_ld+set}" = set; then :
2919 enableval=$enable_ld; ENABLE_LD=$enableval
2920else
2921 ENABLE_LD=yes
2922fi
2923
2924
2925case "${ENABLE_LD}" in
2926 default)
d3b50760 2927 if test x${default_ld} != x; then
c7791212
NC
2928 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2929 fi
2930 ;;
2931 yes)
2932 ;;
2933 no)
2934 if test x${ENABLE_GOLD} != xyes; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2936$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2937 fi
2938 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2939 ;;
2940 *)
2941 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2942 ;;
2943esac
93f9b408 2944
a0da8069 2945# Configure extra directories which are host specific
252b5132 2946
a0da8069
NN
2947case "${host}" in
2948 *-cygwin*)
2949 configdirs="$configdirs libtermcap" ;;
2950esac
252b5132 2951
59f7ec45
HPN
2952# A target can indicate whether a language isn't supported for some reason.
2953# Only spaces may be used in this macro; not newlines or tabs.
2954unsupported_languages=
2955
c6b750e1 2956# Remove more programs from consideration, based on the host or
a0da8069
NN
2957# target this usually means that a port of the program doesn't
2958# exist yet.
252b5132 2959
a0da8069
NN
2960case "${host}" in
2961 hppa*64*-*-*)
2962 noconfigdirs="$noconfigdirs byacc"
2963 ;;
ec11bdc6 2964 i[3456789]86-*-vsta)
675c6968 2965 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2966 ;;
ec11bdc6 2967 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2968 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2969 ;;
2d1e8239
NC
2970 x86_64-*-mingw*)
2971 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2972 ;;
ec11bdc6 2973 i[3456789]86-*-mingw32*)
675c6968 2974 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2975 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2976 ;;
ec11bdc6 2977 i[3456789]86-*-beos*)
675c6968 2978 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2979 ;;
a0da8069 2980 *-*-cygwin*)
a92834c8 2981 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2982 ;;
2983 *-*-netbsd*)
a92834c8 2984 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2985 ;;
2986 ppc*-*-pe)
675c6968 2987 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2988 ;;
2989 powerpc-*-beos*)
675c6968 2990 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2991 ;;
a0da8069 2992esac
252b5132 2993
4b1cb4fe 2994
81ecdfbb
RW
2995# Check whether --enable-libada was given.
2996if test "${enable_libada+set}" = set; then :
2997 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2998else
2999 ENABLE_LIBADA=yes
81ecdfbb
RW
3000fi
3001
a2592b1b 3002if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3003 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3004fi
3005
81ecdfbb
RW
3006# Check whether --enable-libssp was given.
3007if test "${enable_libssp+set}" = set; then :
3008 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3009else
3010 ENABLE_LIBSSP=yes
81ecdfbb
RW
3011fi
3012
5f128533 3013
a0da8069
NN
3014# Save it here so that, even in case of --enable-libgcj, if the Java
3015# front-end isn't enabled, we still get libgcj disabled.
3016libgcj_saved=$libgcj
3017case $enable_libgcj in
3018yes)
3019 # If we reset it here, it won't get added to noconfigdirs in the
3020 # target-specific build rules, so it will be forcibly enabled
3021 # (unless the Java language itself isn't enabled).
3022 libgcj=
3023 ;;
3024no)
3025 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3026 # Don't disable libffi, though, other languages use it.
3027 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
a0da8069
NN
3028 ;;
3029esac
252b5132 3030
4b1cb4fe 3031
a6df5a19
PB
3032# Disable libmudflap on some systems.
3033if test x$enable_libmudflap = x ; then
3e707e94 3034 case "${target}" in
29383458 3035 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3036 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3037 ;;
3038 *-*-freebsd*)
3039 # Enable libmudflap by default in FreeBSD.
3040 ;;
3041 *)
3042 # Disable it by default everywhere else.
3043 noconfigdirs="$noconfigdirs target-libmudflap"
3044 ;;
3045 esac
a6df5a19 3046fi
4b1cb4fe 3047
a6df5a19
PB
3048# Disable libgomp on non POSIX hosted systems.
3049if test x$enable_libgomp = x ; then
b3ded179
PB
3050 # Enable libgomp by default on hosted POSIX systems.
3051 case "${target}" in
29383458 3052 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
3053 ;;
3054 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3055 ;;
64ce424c 3056 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3057 ;;
3058 *-*-darwin* | *-*-aix*)
3059 ;;
3060 *)
3061 noconfigdirs="$noconfigdirs target-libgomp"
3062 ;;
3063 esac
a6df5a19 3064fi
b3ded179 3065
691bb5a1
DD
3066# Default libgloss CPU subdirectory.
3067libgloss_dir="$target_cpu"
4b1cb4fe 3068
a0da8069
NN
3069case "${target}" in
3070 *-*-chorusos)
54d1c879 3071 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3072 ;;
24741ab2 3073 powerpc-*-darwin*)
9d39db92 3074 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3075 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3076 ;;
85bd1942
TG
3077 i[3456789]86-*-darwin*)
3078 noconfigdirs="$noconfigdirs ld gprof"
3079 noconfigdirs="$noconfigdirs sim target-rda"
3080 ;;
e8a5fa9c 3081 x86_64-*-darwin[912]*)
652dec25
TG
3082 noconfigdirs="$noconfigdirs ld gas gprof"
3083 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3084 ;;
04d1ab34 3085 *-*-darwin*)
d320aacb 3086 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3087 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3088 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3089 ;;
a0da8069 3090 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 3091 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3092 ;;
de0b4a87 3093 *-*-freebsd*)
4b1cb4fe
DD
3094 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3095 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3096 && test -f /usr/local/include/gmp.h; then
3097 with_gmp=/usr/local
3098 fi
3099
3100 # Skip some stuff that's unsupported on some FreeBSD configurations.
3101 case "${target}" in
3102 i*86-*-*) ;;
3103 alpha*-*-*) ;;
143754cd 3104 x86_64-*-*) ;;
4b1cb4fe 3105 *)
54d1c879 3106 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3107 ;;
3108 esac
3109 ;;
f8a495c8
NC
3110 *-*-kaos*)
3111 # Remove unsupported stuff on all kaOS configurations.
54d1c879 3112 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
3113 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3114 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3115 noconfigdirs="$noconfigdirs target-libgloss"
3116 ;;
a0da8069
NN
3117 *-*-netbsd*)
3118 # Skip some stuff on all NetBSD configurations.
3119 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3120
3121 # Skip some stuff that's unsupported on some NetBSD configurations.
3122 case "${target}" in
3123 i*86-*-netbsdelf*) ;;
5b474aa8 3124 arm*-*-netbsdelf*) ;;
a0da8069 3125 *)
54d1c879 3126 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3127 ;;
3128 esac
3129 ;;
2a3124ca 3130 *-*-netware*)
54d1c879 3131 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
3132 ;;
3133 *-*-rtems*)
a009f2e7 3134 skipdirs="${skipdirs} target-libiberty"
54d1c879 3135 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3136 ;;
1587117a
EC
3137 # The tpf target doesn't support gdb yet.
3138 *-*-tpf*)
54d1c879 3139 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 3140 ;;
c1968181 3141 *-*-uclinux*)
54d1c879 3142 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3143 ;;
a0da8069 3144 *-*-vxworks*)
54d1c879 3145 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3146 ;;
3147 alpha*-dec-osf*)
3148 # ld works, but does not support shared libraries.
3149 # newlib is not 64 bit ready. I'm not sure about fileutils.
3150 # gas doesn't generate exception information.
3151 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3152 ;;
3153 alpha*-*-*vms*)
d594eacc 3154 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3155 ;;
3156 alpha*-*-linux*)
3157 # newlib is not 64 bit ready
3158 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3159 ;;
a0da8069
NN
3160 alpha*-*-*)
3161 # newlib is not 64 bit ready
54d1c879 3162 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3163 ;;
4a18bd6b 3164 am33_2.0-*-linux*)
54d1c879 3165 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3166 ;;
a0da8069 3167 sh-*-linux*)
54d1c879 3168 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3169 ;;
a0da8069 3170 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3171 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3172 noconfigdirs="$noconfigdirs target-examples"
3173 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 3174 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3175 noconfigdirs="$noconfigdirs expect dejagnu"
3176 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3177 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
3178 noconfigdirs="$noconfigdirs target-newlib"
3179 case "${host}" in
3180 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 3181 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
3182 ;;
3183 esac
691bb5a1 3184 libgloss_dir=wince
a0da8069
NN
3185 ;;
3186 arc-*-*)
54d1c879 3187 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3188 ;;
caeba88f 3189 arm-semi-aof )
caeba88f 3190 ;;
a0da8069 3191 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 3192 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3193 libgloss_dir=arm
a0da8069 3194 ;;
11b04d1f 3195 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 3196 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 3197 libgloss_dir=arm
a0da8069 3198 ;;
bd70a46f 3199 arm*-*-linux-gnueabi)
6d18b86b 3200 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
3201 case ${with_newlib} in
3202 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3203 esac
691bb5a1 3204 libgloss_dir=arm
bd70a46f 3205 ;;
df4a6958 3206 arm*-*-symbianelf*)
54d1c879 3207 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3208 libgloss_dir=arm
df4a6958 3209 ;;
a0da8069 3210 arm-*-pe*)
54d1c879 3211 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3212 ;;
a0da8069 3213 thumb-*-coff)
54d1c879 3214 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3215 ;;
3216 thumb-*-elf)
54d1c879 3217 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3218 ;;
a0da8069 3219 thumb-*-pe)
54d1c879 3220 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3221 ;;
3222 arm-*-riscix*)
54d1c879 3223 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3224 ;;
3225 avr-*-*)
266df637 3226 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3227 ;;
376a0e54 3228 bfin-*-*)
df51e4e1
JZ
3229 unsupported_languages="$unsupported_languages java"
3230 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3cf3372e 3231 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3232 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3233 fi
3234 ;;
a0da8069 3235 c4x-*-* | tic4x-*-*)
54d1c879 3236 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3237 ;;
3238 c54x*-*-* | tic54x-*-*)
54d1c879 3239 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3240 ;;
52310858
NC
3241 cr16-*-*)
3242 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3243 ;;
c7e66c6d 3244 cris-*-* | crisv32-*-*)
59f7ec45 3245 unsupported_languages="$unsupported_languages java"
c7e66c6d 3246 case "${target}" in
2faa2958 3247 *-*-aout)
096f7d00 3248 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3249 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
d357cef7
HPN
3250 *-*-elf) # See PR46792 regarding target-libffi.
3251 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3252 *-*-linux*)
5e818318 3253 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3254 *)
096f7d00 3255 unsupported_languages="$unsupported_languages fortran"
54d1c879 3256 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3257 esac
691bb5a1 3258 libgloss_dir=cris
a0da8069 3259 ;;
3e707e94 3260 crx-*-*)
54d1c879 3261 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3262 ;;
a0da8069 3263 d10v-*-*)
54d1c879 3264 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3265 ;;
3266 d30v-*-*)
54d1c879 3267 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3268 ;;
691bb5a1
DD
3269 ep9312-*-elf | ep9312-*-coff)
3270 libgloss_dir=arm
3271 ;;
a0da8069 3272 fr30-*-elf*)
54d1c879 3273 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3274 ;;
3275 frv-*-*)
54d1c879 3276 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3277 ;;
20135e4c
NC
3278 moxie-*-*)
3279 noconfigdirs="$noconfigdirs ${libgcj}"
3280 noconfigdirs="$noconfigdirs gprof"
3281 ;;
a0da8069 3282 h8300*-*-*)
54d1c879 3283 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3284 ;;
3285 h8500-*-*)
54d1c879 3286 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3287 ;;
caeba88f 3288 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3289 ;;
a0da8069
NN
3290 hppa*64*-*-linux* | parisc*64*-*-linux*)
3291 # In this case, it's because the hppa64-linux target is for
3292 # the kernel only at this point and has no libc, and thus no
3293 # headers, crt*.o, etc., all of which are needed by these.
3294 noconfigdirs="$noconfigdirs target-zlib"
3295 ;;
5dcac624
DA
3296 parisc*-*-linux* | hppa*-*-linux*)
3297 ;;
a0da8069 3298 hppa*-*-*elf* | \
a0da8069
NN
3299 hppa*-*-lites* | \
3300 hppa*-*-openbsd* | \
3301 hppa*64*-*-*)
54d1c879 3302 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3303 ;;
3304 hppa*-hp-hpux11*)
3305 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3306 ;;
691bb5a1
DD
3307 hppa*-*-pro*)
3308 libgloss_dir=pa
3309 ;;
a0da8069
NN
3310 hppa*-*-*)
3311 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3312 # build on HP-UX 10.20.
54d1c879 3313 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3314 ;;
b07c2aad 3315 i960-*-*)
54d1c879 3316 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3317 ;;
a0da8069
NN
3318 ia64*-*-elf*)
3319 # No gdb support yet.
675c6968 3320 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3321 ;;
3322 ia64*-**-hpux*)
3323 # No gdb or ld support yet.
54d1c879 3324 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3325 ;;
19e99079
NC
3326 ia64*-*-*vms*)
3327 # No gdb or ld support yet.
3328 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3329 ;;
caeba88f 3330 i370-*-opened*)
caeba88f 3331 ;;
ec11bdc6 3332 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3333 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3334 libgloss_dir=i386
a0da8069 3335 ;;
ec11bdc6 3336 i[3456789]86-*-linux*)
a0da8069
NN
3337 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3338 # not build java stuff by default.
3339 case "${target}" in
3340 *-*-*libc1*)
54d1c879 3341 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3342 esac
3343
3344 # This section makes it possible to build newlib natively on linux.
3345 # If we are using a cross compiler then don't configure newlib.
3346 if test x${is_cross_compiler} != xno ; then
bba45b8b 3347 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3348 fi
3349 noconfigdirs="$noconfigdirs target-libgloss"
3350 # If we are not using a cross compiler, do configure newlib.
3351 # Note however, that newlib will only be configured in this situation
3352 # if the --with-newlib option has been given, because otherwise
3353 # 'target-newlib' will appear in skipdirs.
3354 ;;
1f53ca9a
AO
3355 i[3456789]86-w64-mingw*)
3356 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3357 ;;
3358 i[3456789]86-*-mingw*)
45055374
CV
3359 target_configdirs="$target_configdirs target-winsup"
3360 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3361 ;;
2d1e8239 3362 x86_64-*-mingw*)
2d1e8239 3363 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3364 ;;
a0da8069
NN
3365 *-*-cygwin*)
3366 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3367 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3368 # always build newlib if winsup directory is present.
45055374 3369 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3370 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3371 elif test -d "$srcdir/newlib"; then
45055374 3372 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3373 fi
c6b750e1 3374 ;;
caeba88f
AL
3375 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3376 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3377 ;;
ec11bdc6 3378 i[3456789]86-*-pe)
54d1c879 3379 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3380 ;;
ec11bdc6 3381 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3382 # The linker does not yet know about weak symbols in COFF,
3383 # and is not configured to handle mixed ELF and COFF.
54d1c879 3384 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3385 ;;
ec11bdc6 3386 i[3456789]86-*-sco*)
54d1c879 3387 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3388 ;;
ec11bdc6 3389 i[3456789]86-*-solaris2*)
a0da8069
NN
3390 noconfigdirs="$noconfigdirs target-libgloss"
3391 ;;
ec11bdc6 3392 i[3456789]86-*-sysv4*)
54d1c879 3393 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3394 ;;
ec11bdc6 3395 i[3456789]86-*-beos*)
54d1c879 3396 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3397 ;;
b59bea8a 3398 i[3456789]86-*-rdos*)
2429c060
PB
3399 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3400 ;;
b07c2aad 3401 m32r-*-*)
54d1c879 3402 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3403 ;;
a0da8069 3404 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3405 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3406 libgloss_dir=m68hc11
a0da8069
NN
3407 ;;
3408 m68k-*-elf*)
54d1c879 3409 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3410 ;;
3411 m68k-*-coff*)
54d1c879 3412 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3413 ;;
691bb5a1
DD
3414 m68*-*-* | fido-*-*)
3415 libgloss_dir=m68k
3416 ;;
a0da8069
NN
3417 mcore-*-pe*)
3418 # The EPOC C++ environment does not support exceptions or rtti,
3419 # and so building libstdc++-v3 tends not to always work.
3420 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3421 ;;
3422 mmix-*-*)
59f7ec45 3423 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3424 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3425 ;;
3426 mn10200-*-*)
54d1c879 3427 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3428 ;;
3429 mn10300-*-*)
54d1c879 3430 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3431 ;;
4970f871 3432 mt-*-*)
cdb9b172
AH
3433 noconfigdirs="$noconfigdirs sim"
3434 ;;
a0da8069
NN
3435 powerpc-*-aix*)
3436 # copied from rs6000-*-* entry
e8a5fa9c 3437 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3438 ;;
3439 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3440 target_configdirs="$target_configdirs target-winsup"
54d1c879 3441 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3442 # always build newlib.
3443 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3444 ;;
3445 # This is temporary until we can link against shared libraries
3446 powerpcle-*-solaris*)
54d1c879 3447 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3448 libgloss_dir=rs6000
a0da8069
NN
3449 ;;
3450 powerpc-*-beos*)
54d1c879 3451 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3452 ;;
a0da8069 3453 powerpc-*-eabi)
54d1c879 3454 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3455 libgloss_dir=rs6000
caeba88f
AL
3456 ;;
3457 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3458 libgloss_dir=rs6000
a0da8069 3459 ;;
a0da8069 3460 rs6000-*-lynxos*)
54d1c879 3461 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3462 ;;
3463 rs6000-*-aix*)
e8a5fa9c 3464 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3465 ;;
3466 rs6000-*-*)
54d1c879 3467 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3468 ;;
3469 m68k-apollo-*)
54d1c879 3470 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3471 ;;
25a07265 3472 microblaze*)
29821356 3473 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
25a07265 3474 ;;
5bd8be13
RS
3475 mips*-sde-elf*)
3476 skipdirs="$skipdirs target-libiberty"
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3478 if test x$with_newlib = xyes; then
3479 noconfigdirs="$noconfigdirs gprof"
3480 fi
3481 libgloss_dir=mips
3482 ;;
a0da8069 3483 mips*-*-irix5*)
54d1c879 3484 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3485 ;;
3486 mips*-*-irix6*)
a0da8069
NN
3487 # Linking libjava exceeds command-line length limits on at least
3488 # IRIX 6.2, but not on IRIX 6.5.
3489 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3490 # <oldham@codesourcery.com>
54d1c879 3491 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3492 ;;
a0da8069 3493 mips*-*-bsd*)
54d1c879 3494 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3495 ;;
a0da8069
NN
3496 mips*-*-linux*)
3497 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3498 ;;
3499 mips*-*-*)
54d1c879 3500 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3501 libgloss_dir=mips
a0da8069
NN
3502 ;;
3503 romp-*-*)
54d1c879 3504 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3505 ;;
dbf85af7 3506 sh-*-* | sh64-*-*)
a0da8069 3507 case "${host}" in
ec11bdc6
DD
3508 i[3456789]86-*-vsta) ;; # don't add gprof back in
3509 i[3456789]86-*-go32*) ;; # don't add gprof back in
3510 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3511 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3512 esac
e8a5fa9c
RW
3513 case "${target}" in
3514 sh*-*-elf)
3515 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3516 *)
3517 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3518 esac
a0da8069 3519 ;;
691bb5a1
DD
3520 sparclet-*-aout* | sparc86x-*-*)
3521 libgloss_dir=sparc
3522 ;;
a0da8069 3523 sparc-*-elf*)
54d1c879 3524 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3525 ;;
3526 sparc64-*-elf*)
54d1c879 3527 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3528 libgloss_dir=sparc
a0da8069
NN
3529 ;;
3530 sparclite-*-*)
54d1c879 3531 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3532 libgloss_dir=sparc
a0da8069
NN
3533 ;;
3534 sparc-*-sunos4*)
54d1c879 3535 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3536 if test x${is_cross_compiler} != xno ; then
3537 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3538 else
3539 use_gnu_ld=no
3540 fi
3541 ;;
e3c770b1 3542 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3543 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3544 ;;
a0da8069
NN
3545 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3546 ;;
619a3713
JM
3547 tic6x-*-*)
3548 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3549 ;;
a0da8069 3550 v810-*-*)
54d1c879 3551 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069 3552 ;;
1cd986c5
NC
3553 v850*-*-*)
3554 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3555 ;;
3556 vax-*-vms)
54d1c879 3557 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3558 ;;
3559 vax-*-*)
54d1c879 3560 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3561 ;;
8b66833e 3562 xtensa*-*-*)
54d1c879 3563 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3564 ;;
a0da8069 3565 ip2k-*-*)
54d1c879 3566 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3567 ;;
29383458 3568 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3570 ;;
3571 *-*-lynxos*)
54d1c879 3572 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3573 ;;
a0da8069 3574 *-*-*)
54d1c879 3575 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3576 ;;
3577esac
252b5132 3578
a0da8069
NN
3579# If we aren't building newlib, then don't build libgloss, since libgloss
3580# depends upon some newlib header files.
3581case "${noconfigdirs}" in
3582 *target-libgloss*) ;;
3583 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3584esac
3585
a0da8069
NN
3586# Work in distributions that contain no compiler tools, like Autoconf.
3587tentative_cc=""
3588host_makefile_frag=/dev/null
3589if test -d ${srcdir}/config ; then
3590case "${host}" in
3591 m68k-hp-hpux*)
3592 # Avoid "too much defining" errors from HPUX compiler.
3593 tentative_cc="cc -Wp,-H256000"
3594 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3595 # If it's HP/UX ar, this should be harmless.
3596 RANLIB="ar ts"
3597 ;;
3598 m68k-apollo-sysv*)
3599 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3600 ;;
3601 m68k-apollo-bsd*)
3602 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3603 # chokes on bfd, the compiler won't let you assign integers to enums, and
3604 # other problems. Defining CC to gcc is a questionable way to say "don't use
3605 # the apollo compiler" (the preferred version of GCC could be called cc,
3606 # or whatever), but I'm not sure leaving CC as cc is any better...
3607 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3608 # Used to have BISON=yacc.
3609 tentative_cc=gcc
3610 ;;
3611 m88k-dg-dgux*)
3612 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3613 ;;
3614 m88k-harris-cxux*)
3615 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3616 tentative_cc="cc -Xa"
3617 host_makefile_frag="config/mh-cxux"
3618 ;;
3619 m88k-motorola-sysv*)
3620 ;;
3621 mips*-dec-ultrix*)
3622 tentative_cc="cc -Wf,-XNg1000"
3623 host_makefile_frag="config/mh-decstation"
3624 ;;
3625 mips*-nec-sysv4*)
3626 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3627 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3628 host_makefile_frag="config/mh-necv4"
3629 ;;
3630 mips*-sgi-irix4*)
3631 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3632 # environment. Also bump switch table size so that cp-parse will
3633 # compile. Bump string length limit so linker builds.
3634 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3635 ;;
3636 mips*-*-sysv4*)
3637 host_makefile_frag="config/mh-sysv4"
3638 ;;
3639 mips*-*-sysv*)
3640 # This is for a MIPS running RISC/os 4.52C.
3641
3642 # This is needed for GDB, but needs to be in the top-level make because
3643 # if a library is compiled with the bsd headers and gets linked with the
3644 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3645 # a different size).
3646 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3647 # known except to select the sysv environment. Could we use /proc instead?
3648 # These "sysv environments" and "bsd environments" often end up being a pain.
3649 #
3650 # This is not part of CFLAGS because perhaps not all C compilers have this
3651 # option.
3652 tentative_cc="cc -systype sysv"
3653 ;;
3654 i370-ibm-opened*)
3655 tentative_cc="c89"
3656 ;;
ec11bdc6 3657 i[3456789]86-*-sysv5*)
a0da8069
NN
3658 host_makefile_frag="config/mh-sysv5"
3659 ;;
ec11bdc6 3660 i[3456789]86-*-dgux*)
a0da8069
NN
3661 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3662 host_makefile_frag="config/mh-dgux386"
3663 ;;
ec11bdc6 3664 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3665 # The MetaWare compiler will generate a copyright message unless you
3666 # turn it off by adding the -Hnocopyr flag.
3667 tentative_cc="cc -Hnocopyr"
3668 ;;
ec11bdc6 3669 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3670 # for an NCR 3000 (i486/SVR4) system.
3671 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3672 # This compiler not only emits obnoxious copyright messages every time
3673 # you run it, but it chokes and dies on a whole bunch of GNU source
3674 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3675 tentative_cc="/usr/ccs/ATT/cc"
3676 host_makefile_frag="config/mh-ncr3000"
3677 ;;
ec11bdc6 3678 i[3456789]86-*-sco3.2v5*)
a0da8069 3679 ;;
ec11bdc6 3680 i[3456789]86-*-sco*)
a0da8069
NN
3681 # The native C compiler botches some simple uses of const. Unfortunately,
3682 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3683 tentative_cc="cc -Dconst="
3684 host_makefile_frag="config/mh-sco"
3685 ;;
ec11bdc6 3686 i[3456789]86-*-udk*)
a0da8069
NN
3687 host_makefile_frag="config/mh-sysv5"
3688 ;;
ec11bdc6 3689 i[3456789]86-*-solaris2*)
a0da8069
NN
3690 host_makefile_frag="config/mh-sysv4"
3691 ;;
ec11bdc6 3692 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3693 host_makefile_frag="config/mh-djgpp"
3694 ;;
3695 *-cygwin*)
e33b51a6 3696
81ecdfbb
RW
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3698$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3699echo a >cygwin-cat-check
1f53ca9a 3700if test `cat cygwin-cat-check` = a ; then
8ade07e9 3701 rm cygwin-cat-check
81ecdfbb
RW
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703$as_echo "yes" >&6; }
e33b51a6 3704else
8ade07e9 3705 rm cygwin-cat-check
81ecdfbb
RW
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3709 Please either mount the build directory in binary mode or run the following
3710 commands before running any configure script:
3711set -o igncr
3712export SHELLOPTS
81ecdfbb 3713 " "$LINENO" 5
e33b51a6 3714fi
e33b51a6 3715
a0da8069
NN
3716 host_makefile_frag="config/mh-cygwin"
3717 ;;
8a1599ab 3718 *-mingw*)
84e7906e 3719 host_makefile_frag="config/mh-mingw"
2d1e8239 3720 ;;
a0da8069
NN
3721 *-interix*)
3722 host_makefile_frag="config/mh-interix"
3723 ;;
3724 vax-*-ultrix2*)
3725 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3726 tentative_cc=gcc
3727 ;;
3728 *-*-solaris2*)
3729 host_makefile_frag="config/mh-solaris"
3730 ;;
3731 m68k-sun-sunos*)
3732 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3733 # without overflowing the jump tables (-J says to use a 32 bit table)
3734 tentative_cc="cc -J"
3735 ;;
da888c87 3736 hppa*-hp-hpux10*)
a0da8069 3737 tentative_cc="cc -Wp,-H256000"
da888c87 3738 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3739 ;;
da888c87
PB
3740 hppa*-hp-hpux* | hppa*-*-hiux*)
3741 tentative_cc="cc -Wp,-H256000"
3742 host_makefile_frag="config/mh-pa"
3743 ;;
3744 hppa*-*)
3745 host_makefile_frag="config/mh-pa"
3746 ;;
3747 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3748 tentative_cc="cc -Wp,-H256000"
3749 ;;
3750 rs6000-*-lynxos*)
3751 # /bin/cc is less than useful for our purposes. Always use GCC
3752 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3753 host_makefile_frag="config/mh-lynxrs6k"
3754 ;;
e552509b
ILT
3755 *-*-darwin*)
3756 host_makefile_frag="config/mh-darwin"
0df3d27f 3757 ;;
f6d183c0
PB
3758 powerpc-*-aix*)
3759 host_makefile_frag="config/mh-ppc-aix"
3760 ;;
3761 rs6000-*-aix*)
3762 host_makefile_frag="config/mh-ppc-aix"
3763 ;;
a0da8069
NN
3764 *-*-lynxos*)
3765 # /bin/cc is less than useful for our purposes. Always use GCC
3766 tentative_cc="/bin/gcc"
3767 ;;
3768 *-*-sysv4*)
3769 host_makefile_frag="config/mh-sysv4"
3770 ;;
fe69863c
DD
3771 # This is placed last to prevent interfering with the cases above.
3772 i[3456789]86-*-*)
3773 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3774 host_makefile_frag="config/mh-x86omitfp"
3775 ;;
a0da8069
NN
3776esac
3777fi
3778
9e07f89d
NN
3779# If we aren't going to be using gcc, see if we can extract a definition
3780# of CC from the fragment.
3781# Actually, use the 'pre-extracted' version above.
3782if test -z "${CC}" && test "${build}" = "${host}" ; then
3783 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3784 found=
3785 for dir in $PATH; do
3786 test -z "$dir" && dir=.
3787 if test -f $dir/gcc; then
3788 found=yes
3789 break
3790 fi
3791 done
3792 IFS="$save_ifs"
3793 if test -z "${found}" && test -n "${tentative_cc}" ; then
3794 CC=$tentative_cc
3795 fi
3796fi
3797
3798if test "${build}" != "${host}" ; then
1576798e
PB
3799 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3800 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3801 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3802 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3803 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3804 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3805 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3806 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3807 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3808 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3809 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3810 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3811 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3812else
3813 AR_FOR_BUILD="\$(AR)"
3814 AS_FOR_BUILD="\$(AS)"
512b7dfb 3815 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3816 CXX_FOR_BUILD="\$(CXX)"
3817 GCJ_FOR_BUILD="\$(GCJ)"
3818 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3819 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3820 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3821 LD_FOR_BUILD="\$(LD)"
3822 NM_FOR_BUILD="\$(NM)"
3823 RANLIB_FOR_BUILD="\$(RANLIB)"
3824 WINDRES_FOR_BUILD="\$(WINDRES)"
3825 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3826fi
3827
3828ac_ext=c
c6b750e1
DJ
3829ac_cpp='$CPP $CPPFLAGS'
3830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833if test -n "$ac_tool_prefix"; then
3834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3835set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837$as_echo_n "checking for $ac_word... " >&6; }
3838if test "${ac_cv_prog_CC+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3840else
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC="$CC" # Let the user override the test.
3843else
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3853 break 2
3854 fi
3855done
81ecdfbb
RW
3856 done
3857IFS=$as_save_IFS
c6b750e1
DJ
3858
3859fi
3860fi
3861CC=$ac_cv_prog_CC
3862if test -n "$CC"; then
81ecdfbb
RW
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864$as_echo "$CC" >&6; }
c6b750e1 3865else
81ecdfbb
RW
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867$as_echo "no" >&6; }
c6b750e1
DJ
3868fi
3869
81ecdfbb 3870
c6b750e1
DJ
3871fi
3872if test -z "$ac_cv_prog_CC"; then
3873 ac_ct_CC=$CC
6a9cf61e 3874 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3875set dummy gcc; ac_word=$2
81ecdfbb
RW
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877$as_echo_n "checking for $ac_word... " >&6; }
3878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3880else
3881 if test -n "$ac_ct_CC"; then
3882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3883else
3884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885for as_dir in $PATH
3886do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3891 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3893 break 2
3894 fi
3895done
81ecdfbb
RW
3896 done
3897IFS=$as_save_IFS
c6b750e1
DJ
3898
3899fi
3900fi
3901ac_ct_CC=$ac_cv_prog_ac_ct_CC
3902if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3904$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3905else
81ecdfbb
RW
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907$as_echo "no" >&6; }
c6b750e1
DJ
3908fi
3909
81ecdfbb
RW
3910 if test "x$ac_ct_CC" = x; then
3911 CC=""
3912 else
3913 case $cross_compiling:$ac_tool_warned in
3914yes:)
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3917ac_tool_warned=yes ;;
3918esac
3919 CC=$ac_ct_CC
3920 fi
c6b750e1
DJ
3921else
3922 CC="$ac_cv_prog_CC"
3923fi
3924
3925if test -z "$CC"; then
81ecdfbb
RW
3926 if test -n "$ac_tool_prefix"; then
3927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3928set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930$as_echo_n "checking for $ac_word... " >&6; }
3931if test "${ac_cv_prog_CC+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
9e07f89d
NN
3933else
3934 if test -n "$CC"; then
3935 ac_cv_prog_CC="$CC" # Let the user override the test.
3936else
c6b750e1
DJ
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3944 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3946 break 2
3947 fi
3948done
81ecdfbb
RW
3949 done
3950IFS=$as_save_IFS
c6b750e1 3951
9e07f89d
NN
3952fi
3953fi
c6b750e1 3954CC=$ac_cv_prog_CC
9e07f89d 3955if test -n "$CC"; then
81ecdfbb
RW
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3957$as_echo "$CC" >&6; }
c6b750e1 3958else
81ecdfbb
RW
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
c6b750e1
DJ
3961fi
3962
c6b750e1 3963
81ecdfbb 3964 fi
c6b750e1 3965fi
9e07f89d
NN
3966if test -z "$CC"; then
3967 # Extract the first word of "cc", so it can be a program name with args.
3968set dummy cc; ac_word=$2
81ecdfbb
RW
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970$as_echo_n "checking for $ac_word... " >&6; }
3971if test "${ac_cv_prog_CC+set}" = set; then :
3972 $as_echo_n "(cached) " >&6
9e07f89d
NN
3973else
3974 if test -n "$CC"; then
3975 ac_cv_prog_CC="$CC" # Let the user override the test.
3976else
9e07f89d 3977 ac_prog_rejected=no
c6b750e1
DJ
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3986 ac_prog_rejected=yes
3987 continue
3988 fi
3989 ac_cv_prog_CC="cc"
81ecdfbb 3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3991 break 2
3992 fi
3993done
81ecdfbb
RW
3994 done
3995IFS=$as_save_IFS
c6b750e1 3996
9e07f89d
NN
3997if test $ac_prog_rejected = yes; then
3998 # We found a bogon in the path, so make sure we never use it.
3999 set dummy $ac_cv_prog_CC
4000 shift
c6b750e1 4001 if test $# != 0; then
9e07f89d
NN
4002 # We chose a different compiler from the bogus one.
4003 # However, it has the same basename, so the bogon will be chosen
4004 # first if we set CC to just the basename; use the full file name.
4005 shift
c6b750e1 4006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4007 fi
4008fi
4009fi
4010fi
c6b750e1 4011CC=$ac_cv_prog_CC
9e07f89d 4012if test -n "$CC"; then
81ecdfbb
RW
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014$as_echo "$CC" >&6; }
9e07f89d 4015else
81ecdfbb
RW
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017$as_echo "no" >&6; }
9e07f89d
NN
4018fi
4019
81ecdfbb 4020
c6b750e1
DJ
4021fi
4022if test -z "$CC"; then
4023 if test -n "$ac_tool_prefix"; then
81ecdfbb 4024 for ac_prog in cl.exe
c6b750e1
DJ
4025 do
4026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029$as_echo_n "checking for $ac_word... " >&6; }
4030if test "${ac_cv_prog_CC+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
9e07f89d
NN
4032else
4033 if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4035else
c6b750e1
DJ
4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037for as_dir in $PATH
4038do
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4045 break 2
376a0e54 4046 fi
c6b750e1 4047done
81ecdfbb
RW
4048 done
4049IFS=$as_save_IFS
cac3d6c4 4050
c6b750e1
DJ
4051fi
4052fi
4053CC=$ac_cv_prog_CC
4054if test -n "$CC"; then
81ecdfbb
RW
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056$as_echo "$CC" >&6; }
cac3d6c4 4057else
81ecdfbb
RW
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059$as_echo "no" >&6; }
9e07f89d 4060fi
cac3d6c4 4061
81ecdfbb 4062
c6b750e1
DJ
4063 test -n "$CC" && break
4064 done
cac3d6c4 4065fi
c6b750e1
DJ
4066if test -z "$CC"; then
4067 ac_ct_CC=$CC
81ecdfbb 4068 for ac_prog in cl.exe
c6b750e1
DJ
4069do
4070 # Extract the first word of "$ac_prog", so it can be a program name with args.
4071set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073$as_echo_n "checking for $ac_word... " >&6; }
4074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
cac3d6c4 4076else
c6b750e1
DJ
4077 if test -n "$ac_ct_CC"; then
4078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4079else
c6b750e1
DJ
4080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH
4082do
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4087 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4089 break 2
4090 fi
4091done
81ecdfbb
RW
4092 done
4093IFS=$as_save_IFS
c6b750e1 4094
cac3d6c4
CM
4095fi
4096fi
c6b750e1
DJ
4097ac_ct_CC=$ac_cv_prog_ac_ct_CC
4098if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4100$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4101else
81ecdfbb
RW
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103$as_echo "no" >&6; }
cac3d6c4 4104fi
376a0e54 4105
81ecdfbb 4106
c6b750e1
DJ
4107 test -n "$ac_ct_CC" && break
4108done
4109
81ecdfbb
RW
4110 if test "x$ac_ct_CC" = x; then
4111 CC=""
4112 else
4113 case $cross_compiling:$ac_tool_warned in
4114yes:)
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4117ac_tool_warned=yes ;;
4118esac
4119 CC=$ac_ct_CC
4120 fi
c6b750e1
DJ
4121fi
4122
4123fi
4124
4125
81ecdfbb
RW
4126test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128as_fn_error "no acceptable C compiler found in \$PATH
4129See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4130
4131# Provide some information about the compiler.
81ecdfbb
RW
4132$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4133set X $ac_compile
4134ac_compiler=$2
4135for ac_option in --version -v -V -qversion; do
4136 { { ac_try="$ac_compiler $ac_option >&5"
4137case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4142$as_echo "$ac_try_echo"; } >&5
4143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4144 ac_status=$?
81ecdfbb
RW
4145 if test -s conftest.err; then
4146 sed '10a\
4147... rest of stderr output deleted ...
4148 10q' conftest.err >conftest.er1
4149 cat conftest.er1 >&5
4150 rm -f conftest.er1 conftest.err
4151 fi
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }
4154done
c6b750e1 4155
81ecdfbb 4156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4157/* end confdefs.h. */
4158
4159int
4160main ()
4161{
4162
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167ac_clean_files_save=$ac_clean_files
81ecdfbb 4168ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4169# Try to create an executable without -o first, disregard a.out.
4170# It will help us diagnose broken compilers, and finding out an intuition
4171# of exeext.
81ecdfbb
RW
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4173$as_echo_n "checking for C compiler default output file name... " >&6; }
4174ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4175
4176# The possible output files:
4177ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4178
4179ac_rmfiles=
4180for ac_file in $ac_files
4181do
4182 case $ac_file in
4183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4185 esac
4186done
4187rm -f $ac_rmfiles
4188
4189if { { ac_try="$ac_link_default"
4190case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193esac
4194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195$as_echo "$ac_try_echo"; } >&5
4196 (eval "$ac_link_default") 2>&5
c6b750e1 4197 ac_status=$?
81ecdfbb
RW
4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; }; then :
4200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4201# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4202# in a Makefile. We should not override ac_cv_exeext if it was cached,
4203# so that the user can short-circuit this test for compilers unknown to
4204# Autoconf.
4205for ac_file in $ac_files ''
c6b750e1
DJ
4206do
4207 test -f "$ac_file" || continue
4208 case $ac_file in
81ecdfbb 4209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4210 ;;
4211 [ab].out )
4212 # We found the default executable, but exeext='' is most
4213 # certainly right.
4214 break;;
4215 *.* )
81ecdfbb
RW
4216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4217 then :; else
4218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4219 fi
4220 # We set ac_cv_exeext here because the later test for it is not
4221 # safe: cross compilers may not add the suffix if given an `-o'
4222 # argument, so we may need to know it at that point already.
4223 # Even if this section looks crufty: it has the advantage of
4224 # actually working.
c6b750e1
DJ
4225 break;;
4226 * )
4227 break;;
4228 esac
4229done
81ecdfbb
RW
4230test "$ac_cv_exeext" = no && ac_cv_exeext=
4231
c6b750e1 4232else
81ecdfbb
RW
4233 ac_file=''
4234fi
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4236$as_echo "$ac_file" >&6; }
4237if test -z "$ac_file"; then :
4238 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
81ecdfbb
RW
4241{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4243{ as_fn_set_status 77
4244as_fn_error "C compiler cannot create executables
4245See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4246fi
c6b750e1 4247ac_exeext=$ac_cv_exeext
c6b750e1 4248
81ecdfbb 4249# Check that the compiler produces executables we can run. If not, either
c6b750e1 4250# the compiler is broken, or we cross compile.
81ecdfbb
RW
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4252$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4253# If not cross compiling, check that we can run a simple program.
4254if test "$cross_compiling" != yes; then
4255 if { ac_try='./$ac_file'
81ecdfbb
RW
4256 { { case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261$as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_try") 2>&5
c6b750e1 4263 ac_status=$?
81ecdfbb
RW
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; }; then
c6b750e1
DJ
4266 cross_compiling=no
4267 else
4268 if test "$cross_compiling" = maybe; then
4269 cross_compiling=yes
4270 else
81ecdfbb
RW
4271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273as_fn_error "cannot run C compiled programs.
c6b750e1 4274If you meant to cross compile, use \`--host'.
81ecdfbb 4275See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4276 fi
4277 fi
4278fi
81ecdfbb
RW
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4280$as_echo "yes" >&6; }
c6b750e1 4281
81ecdfbb 4282rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4283ac_clean_files=$ac_clean_files_save
81ecdfbb 4284# Check that the compiler produces executables we can run. If not, either
c6b750e1 4285# the compiler is broken, or we cross compile.
81ecdfbb
RW
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4287$as_echo_n "checking whether we are cross compiling... " >&6; }
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4289$as_echo "$cross_compiling" >&6; }
4290
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4292$as_echo_n "checking for suffix of executables... " >&6; }
4293if { { ac_try="$ac_link"
4294case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299$as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_link") 2>&5
c6b750e1 4301 ac_status=$?
81ecdfbb
RW
4302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; }; then :
c6b750e1
DJ
4304 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4305# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4306# work properly (i.e., refer to `conftest.exe'), while it won't with
4307# `rm'.
4308for ac_file in conftest.exe conftest conftest.*; do
4309 test -f "$ac_file" || continue
4310 case $ac_file in
81ecdfbb 4311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4313 break;;
4314 * ) break;;
4315 esac
4316done
4317else
81ecdfbb
RW
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320as_fn_error "cannot compute suffix of executables: cannot compile and link
4321See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4322fi
c6b750e1 4323rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4325$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4326
4327rm -f conftest.$ac_ext
4328EXEEXT=$ac_cv_exeext
4329ac_exeext=$EXEEXT
81ecdfbb
RW
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4331$as_echo_n "checking for suffix of object files... " >&6; }
4332if test "${ac_cv_objext+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
c6b750e1 4334else
81ecdfbb 4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4336/* end confdefs.h. */
4337
4338int
4339main ()
4340{
4341
4342 ;
4343 return 0;
4344}
4345_ACEOF
4346rm -f conftest.o conftest.obj
81ecdfbb
RW
4347if { { ac_try="$ac_compile"
4348case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351esac
4352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353$as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_compile") 2>&5
c6b750e1 4355 ac_status=$?
81ecdfbb
RW
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }; then :
4358 for ac_file in conftest.o conftest.obj conftest.*; do
4359 test -f "$ac_file" || continue;
c6b750e1 4360 case $ac_file in
81ecdfbb 4361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4363 break;;
4364 esac
4365done
cac3d6c4 4366else
81ecdfbb 4367 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4368sed 's/^/| /' conftest.$ac_ext >&5
4369
81ecdfbb
RW
4370{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372as_fn_error "cannot compute suffix of object files: cannot compile
4373See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4374fi
c6b750e1
DJ
4375rm -f conftest.$ac_cv_objext conftest.$ac_ext
4376fi
81ecdfbb
RW
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4378$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4379OBJEXT=$ac_cv_objext
4380ac_objext=$OBJEXT
81ecdfbb
RW
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4382$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4383if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
c6b750e1 4385else
81ecdfbb 4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4387/* end confdefs.h. */
4388
4389int
4390main ()
4391{
4392#ifndef __GNUC__
4393 choke me
4394#endif
4395
4396 ;
4397 return 0;
4398}
4399_ACEOF
81ecdfbb 4400if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4401 ac_compiler_gnu=yes
4402else
81ecdfbb 4403 ac_compiler_gnu=no
c6b750e1 4404fi
81ecdfbb 4405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4406ac_cv_c_compiler_gnu=$ac_compiler_gnu
4407
4408fi
81ecdfbb
RW
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4410$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4411if test $ac_compiler_gnu = yes; then
4412 GCC=yes
4413else
4414 GCC=
4415fi
c6b750e1
DJ
4416ac_test_CFLAGS=${CFLAGS+set}
4417ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4419$as_echo_n "checking whether $CC accepts -g... " >&6; }
4420if test "${ac_cv_prog_cc_g+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4422else
4423 ac_save_c_werror_flag=$ac_c_werror_flag
4424 ac_c_werror_flag=yes
4425 ac_cv_prog_cc_g=no
4426 CFLAGS="-g"
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4428/* end confdefs.h. */
4429
4430int
4431main ()
4432{
4433
4434 ;
4435 return 0;
4436}
4437_ACEOF
81ecdfbb 4438if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4439 ac_cv_prog_cc_g=yes
4440else
81ecdfbb
RW
4441 CFLAGS=""
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443/* end confdefs.h. */
4444
4445int
4446main ()
4447{
4448
4449 ;
4450 return 0;
4451}
4452_ACEOF
4453if ac_fn_c_try_compile "$LINENO"; then :
4454
4455else
4456 ac_c_werror_flag=$ac_save_c_werror_flag
4457 CFLAGS="-g"
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h. */
cac3d6c4 4460
81ecdfbb
RW
4461int
4462main ()
4463{
4464
4465 ;
4466 return 0;
4467}
4468_ACEOF
4469if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_g=yes
4471fi
4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4473fi
81ecdfbb 4474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4475fi
81ecdfbb
RW
4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 ac_c_werror_flag=$ac_save_c_werror_flag
4478fi
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4480$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4481if test "$ac_test_CFLAGS" = set; then
c6b750e1 4482 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4483elif test $ac_cv_prog_cc_g = yes; then
4484 if test "$GCC" = yes; then
4485 CFLAGS="-g -O2"
4486 else
4487 CFLAGS="-g"
4488 fi
4489else
4490 if test "$GCC" = yes; then
4491 CFLAGS="-O2"
4492 else
4493 CFLAGS=
4494 fi
4495fi
81ecdfbb
RW
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4497$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4498if test "${ac_cv_prog_cc_c89+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
c6b750e1 4500else
81ecdfbb 4501 ac_cv_prog_cc_c89=no
c6b750e1 4502ac_save_CC=$CC
81ecdfbb 4503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4504/* end confdefs.h. */
4505#include <stdarg.h>
4506#include <stdio.h>
4507#include <sys/types.h>
4508#include <sys/stat.h>
4509/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4510struct buf { int x; };
4511FILE * (*rcsopen) (struct buf *, struct stat *, int);
4512static char *e (p, i)
4513 char **p;
4514 int i;
4515{
4516 return p[i];
4517}
4518static char *f (char * (*g) (char **, int), char **p, ...)
4519{
4520 char *s;
4521 va_list v;
4522 va_start (v,p);
4523 s = g (p, va_arg (v,int));
4524 va_end (v);
4525 return s;
4526}
4527
4528/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4529 function prototypes and stuff, but not '\xHH' hex character constants.
4530 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4531 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4532 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4533 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4534 that's true only with -std. */
c6b750e1
DJ
4535int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4536
81ecdfbb
RW
4537/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4538 inside strings and character constants. */
4539#define FOO(x) 'x'
4540int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4541
c6b750e1
DJ
4542int test (int i, double x);
4543struct s1 {int (*f) (int a);};
4544struct s2 {int (*f) (double a);};
4545int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4546int argc;
4547char **argv;
4548int
4549main ()
4550{
4551return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4552 ;
4553 return 0;
4554}
4555_ACEOF
81ecdfbb
RW
4556for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4557 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4558do
4559 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4560 if ac_fn_c_try_compile "$LINENO"; then :
4561 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4562fi
81ecdfbb
RW
4563rm -f core conftest.err conftest.$ac_objext
4564 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4565done
81ecdfbb 4566rm -f conftest.$ac_ext
c6b750e1
DJ
4567CC=$ac_save_CC
4568
4569fi
81ecdfbb
RW
4570# AC_CACHE_VAL
4571case "x$ac_cv_prog_cc_c89" in
4572 x)
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4574$as_echo "none needed" >&6; } ;;
4575 xno)
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4577$as_echo "unsupported" >&6; } ;;
c6b750e1 4578 *)
81ecdfbb
RW
4579 CC="$CC $ac_cv_prog_cc_c89"
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4581$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4582esac
81ecdfbb 4583if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4584
c6b750e1
DJ
4585fi
4586
c6b750e1
DJ
4587ac_ext=c
4588ac_cpp='$CPP $CPPFLAGS'
4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4592
81ecdfbb 4593ac_ext=cpp
18f6b6ee
PB
4594ac_cpp='$CXXCPP $CPPFLAGS'
4595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4598if test -z "$CXX"; then
4599 if test -n "$CCC"; then
4600 CXX=$CCC
4601 else
4602 if test -n "$ac_tool_prefix"; then
4603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4604 do
4605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
4609if test "${ac_cv_prog_CXX+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4611else
4612 if test -n "$CXX"; then
4613 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4622 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4624 break 2
4625 fi
4626done
81ecdfbb
RW
4627 done
4628IFS=$as_save_IFS
512b7dfb 4629
18f6b6ee
PB
4630fi
4631fi
4632CXX=$ac_cv_prog_CXX
4633if test -n "$CXX"; then
81ecdfbb
RW
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4635$as_echo "$CXX" >&6; }
18f6b6ee 4636else
81ecdfbb
RW
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
18f6b6ee
PB
4639fi
4640
81ecdfbb 4641
18f6b6ee
PB
4642 test -n "$CXX" && break
4643 done
4644fi
4645if test -z "$CXX"; then
4646 ac_ct_CXX=$CXX
81ecdfbb 4647 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4648do
4649 # Extract the first word of "$ac_prog", so it can be a program name with args.
4650set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652$as_echo_n "checking for $ac_word... " >&6; }
4653if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4654 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4655else
4656 if test -n "$ac_ct_CXX"; then
4657 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4666 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4668 break 2
512b7dfb 4669 fi
18f6b6ee 4670done
81ecdfbb
RW
4671 done
4672IFS=$as_save_IFS
512b7dfb 4673
18f6b6ee
PB
4674fi
4675fi
4676ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4677if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4679$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4680else
81ecdfbb
RW
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682$as_echo "no" >&6; }
18f6b6ee
PB
4683fi
4684
81ecdfbb 4685
18f6b6ee
PB
4686 test -n "$ac_ct_CXX" && break
4687done
18f6b6ee 4688
81ecdfbb
RW
4689 if test "x$ac_ct_CXX" = x; then
4690 CXX="g++"
4691 else
4692 case $cross_compiling:$ac_tool_warned in
4693yes:)
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696ac_tool_warned=yes ;;
4697esac
4698 CXX=$ac_ct_CXX
4699 fi
18f6b6ee
PB
4700fi
4701
81ecdfbb
RW
4702 fi
4703fi
18f6b6ee 4704# Provide some information about the compiler.
81ecdfbb
RW
4705$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4706set X $ac_compile
4707ac_compiler=$2
4708for ac_option in --version -v -V -qversion; do
4709 { { ac_try="$ac_compiler $ac_option >&5"
4710case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713esac
4714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715$as_echo "$ac_try_echo"; } >&5
4716 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4717 ac_status=$?
81ecdfbb
RW
4718 if test -s conftest.err; then
4719 sed '10a\
4720... rest of stderr output deleted ...
4721 10q' conftest.err >conftest.er1
4722 cat conftest.er1 >&5
4723 rm -f conftest.er1 conftest.err
4724 fi
4725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726 test $ac_status = 0; }
4727done
18f6b6ee 4728
81ecdfbb
RW
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4730$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4731if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4732 $as_echo_n "(cached) " >&6
18f6b6ee 4733else
81ecdfbb 4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4735/* end confdefs.h. */
4736
4737int
4738main ()
4739{
4740#ifndef __GNUC__
4741 choke me
4742#endif
4743
4744 ;
4745 return 0;
4746}
4747_ACEOF
81ecdfbb 4748if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4749 ac_compiler_gnu=yes
4750else
81ecdfbb 4751 ac_compiler_gnu=no
18f6b6ee 4752fi
81ecdfbb 4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4754ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4755
4756fi
81ecdfbb
RW
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4758$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4759if test $ac_compiler_gnu = yes; then
4760 GXX=yes
4761else
4762 GXX=
4763fi
18f6b6ee
PB
4764ac_test_CXXFLAGS=${CXXFLAGS+set}
4765ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4767$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4768if test "${ac_cv_prog_cxx_g+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4770else
4771 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4772 ac_cxx_werror_flag=yes
4773 ac_cv_prog_cxx_g=no
4774 CXXFLAGS="-g"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4776/* end confdefs.h. */
4777
4778int
4779main ()
4780{
4781
4782 ;
4783 return 0;
4784}
4785_ACEOF
81ecdfbb 4786if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4787 ac_cv_prog_cxx_g=yes
4788else
81ecdfbb
RW
4789 CXXFLAGS=""
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4791/* end confdefs.h. */
81ecdfbb 4792
18f6b6ee
PB
4793int
4794main ()
4795{
81ecdfbb 4796
18f6b6ee
PB
4797 ;
4798 return 0;
4799}
4800_ACEOF
81ecdfbb 4801if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4802
81ecdfbb
RW
4803else
4804 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4805 CXXFLAGS="-g"
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4807/* end confdefs.h. */
81ecdfbb 4808
18f6b6ee
PB
4809int
4810main ()
4811{
81ecdfbb 4812
18f6b6ee
PB
4813 ;
4814 return 0;
4815}
4816_ACEOF
81ecdfbb
RW
4817if ac_fn_cxx_try_compile "$LINENO"; then :
4818 ac_cv_prog_cxx_g=yes
18f6b6ee 4819fi
81ecdfbb
RW
4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821fi
4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823fi
4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4828$as_echo "$ac_cv_prog_cxx_g" >&6; }
4829if test "$ac_test_CXXFLAGS" = set; then
4830 CXXFLAGS=$ac_save_CXXFLAGS
4831elif test $ac_cv_prog_cxx_g = yes; then
4832 if test "$GXX" = yes; then
4833 CXXFLAGS="-g -O2"
4834 else
4835 CXXFLAGS="-g"
4836 fi
4837else
4838 if test "$GXX" = yes; then
4839 CXXFLAGS="-O2"
4840 else
4841 CXXFLAGS=
4842 fi
18f6b6ee 4843fi
18f6b6ee
PB
4844ac_ext=c
4845ac_cpp='$CPP $CPPFLAGS'
4846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
4850
4851# We must set the default linker to the linker used by gcc for the correct
4852# operation of libtool. If LD is not defined and we are using gcc, try to
4853# set the LD default to the ld used by gcc.
4854if test -z "$LD"; then
4855 if test "$GCC" = yes; then
4856 case $build in
4857 *-*-mingw*)
4858 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4859 *)
4860 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4861 esac
4862 case $gcc_prog_ld in
4863 # Accept absolute paths.
4864 [\\/]* | [A-Za-z]:[\\/]*)
4865 LD="$gcc_prog_ld" ;;
4866 esac
4867 fi
512b7dfb
PB
4868fi
4869
4870
4871
4872
c6b750e1 4873if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4874 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4875set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877$as_echo_n "checking for $ac_word... " >&6; }
4878if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
9e07f89d 4880else
512b7dfb
PB
4881 if test -n "$GNATBIND"; then
4882 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4883else
c6b750e1
DJ
4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4891 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4893 break 2
4894 fi
4895done
81ecdfbb
RW
4896 done
4897IFS=$as_save_IFS
c6b750e1 4898
9e07f89d
NN
4899fi
4900fi
512b7dfb
PB
4901GNATBIND=$ac_cv_prog_GNATBIND
4902if test -n "$GNATBIND"; then
81ecdfbb
RW
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4904$as_echo "$GNATBIND" >&6; }
9e07f89d 4905else
81ecdfbb
RW
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907$as_echo "no" >&6; }
9e07f89d
NN
4908fi
4909
81ecdfbb 4910
c6b750e1 4911fi
512b7dfb
PB
4912if test -z "$ac_cv_prog_GNATBIND"; then
4913 ac_ct_GNATBIND=$GNATBIND
4914 # Extract the first word of "gnatbind", so it can be a program name with args.
4915set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917$as_echo_n "checking for $ac_word... " >&6; }
4918if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
9e07f89d 4920else
512b7dfb
PB
4921 if test -n "$ac_ct_GNATBIND"; then
4922 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4923else
c6b750e1
DJ
4924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925for as_dir in $PATH
4926do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4931 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4933 break 2
4934 fi
4935done
81ecdfbb
RW
4936 done
4937IFS=$as_save_IFS
c6b750e1 4938
9e07f89d
NN
4939fi
4940fi
512b7dfb
PB
4941ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4942if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4944$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4945else
81ecdfbb
RW
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947$as_echo "no" >&6; }
9e07f89d
NN
4948fi
4949
81ecdfbb
RW
4950 if test "x$ac_ct_GNATBIND" = x; then
4951 GNATBIND="no"
4952 else
4953 case $cross_compiling:$ac_tool_warned in
4954yes:)
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957ac_tool_warned=yes ;;
4958esac
4959 GNATBIND=$ac_ct_GNATBIND
4960 fi
24ff9987 4961else
512b7dfb 4962 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4963fi
4964
7df2cd5d 4965if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4966 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4967set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969$as_echo_n "checking for $ac_word... " >&6; }
4970if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
7df2cd5d 4972else
512b7dfb
PB
4973 if test -n "$GNATMAKE"; then
4974 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4983 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4985 break 2
4986 fi
4987done
81ecdfbb
RW
4988 done
4989IFS=$as_save_IFS
7df2cd5d
PB
4990
4991fi
4992fi
512b7dfb
PB
4993GNATMAKE=$ac_cv_prog_GNATMAKE
4994if test -n "$GNATMAKE"; then
81ecdfbb
RW
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4996$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4997else
81ecdfbb
RW
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
7df2cd5d
PB
5000fi
5001
81ecdfbb 5002
7df2cd5d 5003fi
512b7dfb
PB
5004if test -z "$ac_cv_prog_GNATMAKE"; then
5005 ac_ct_GNATMAKE=$GNATMAKE
5006 # Extract the first word of "gnatmake", so it can be a program name with args.
5007set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009$as_echo_n "checking for $ac_word... " >&6; }
5010if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
7df2cd5d 5012else
512b7dfb
PB
5013 if test -n "$ac_ct_GNATMAKE"; then
5014 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5015else
5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5023 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5025 break 2
5026 fi
5027done
81ecdfbb
RW
5028 done
5029IFS=$as_save_IFS
7df2cd5d 5030
7df2cd5d
PB
5031fi
5032fi
512b7dfb
PB
5033ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5034if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5036$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5037else
81ecdfbb
RW
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
7df2cd5d
PB
5040fi
5041
81ecdfbb
RW
5042 if test "x$ac_ct_GNATMAKE" = x; then
5043 GNATMAKE="no"
5044 else
5045 case $cross_compiling:$ac_tool_warned in
5046yes:)
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049ac_tool_warned=yes ;;
5050esac
5051 GNATMAKE=$ac_ct_GNATMAKE
5052 fi
7df2cd5d 5053else
512b7dfb 5054 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5055fi
5056
81ecdfbb
RW
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5058$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5059if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
9e07f89d
NN
5061else
5062 cat >conftest.adb <<EOF
5063procedure conftest is begin null; end conftest;
5064EOF
5065acx_cv_cc_gcc_supports_ada=no
5066# There is a bug in old released versions of GCC which causes the
5067# driver to exit successfully when the appropriate language module
5068# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5069# Therefore we must check for the error message as well as an
5070# unsuccessful exit.
b8908782
DD
5071# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5072# given a .adb file, but produce no object file. So we must check
5073# if an object file was really produced to guard against this.
9e07f89d 5074errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5075if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5076 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5077fi
5078rm -f conftest.*
5079fi
81ecdfbb
RW
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5081$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5082
512b7dfb 5083if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5084 have_gnat=yes
5085else
5086 have_gnat=no
5087fi
5088
81ecdfbb
RW
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5090$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5091if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
b8908782
DD
5093else
5094 echo abfoo >t1
5095 echo cdfoo >t2
5096 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5097 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5098 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5099 :
5100 else
5101 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5102 fi
5103 fi
b8908782
DD
5104 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5105 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5106 :
b8908782
DD
5107 else
5108 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5109 fi
5110 fi
5111 rm t1 t2
5112
5113fi
81ecdfbb
RW
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5115$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5116do_compare="$gcc_cv_prog_cmp_skip"
5117
5118
9e07f89d 5119
e8a5fa9c 5120# See if we are building gcc with C++.
81ecdfbb
RW
5121# Check whether --enable-build-with-cxx was given.
5122if test "${enable_build_with_cxx+set}" = set; then :
5123 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5124else
5125 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5126fi
5127
e8a5fa9c 5128
d5f2ee2e
KG
5129# Used for setting $lt_cv_objdir
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5131$as_echo_n "checking for objdir... " >&6; }
5132if test "${lt_cv_objdir+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134else
5135 rm -f .libs 2>/dev/null
5136mkdir .libs 2>/dev/null
5137if test -d .libs; then
5138 lt_cv_objdir=.libs
5139else
5140 # MS-DOS does not allow filenames that begin with a dot.
5141 lt_cv_objdir=_libs
5142fi
5143rmdir .libs 2>/dev/null
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5146$as_echo "$lt_cv_objdir" >&6; }
5147objdir=$lt_cv_objdir
5148
5149
5150
5151
5152
5153cat >>confdefs.h <<_ACEOF
5154#define LT_OBJDIR "$lt_cv_objdir/"
5155_ACEOF
5156
5157
5158
e8a5fa9c 5159# Check for GMP, MPFR and MPC
d9b76ff9 5160gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5161gmpinc=
4b900473 5162have_gmp=no
e8a5fa9c
RW
5163
5164# Specify a location for mpc
5165# check for this first so it ends up on the link line before mpfr.
5166
81ecdfbb
RW
5167# Check whether --with-mpc was given.
5168if test "${with_mpc+set}" = set; then :
5169 withval=$with_mpc;
5170fi
e8a5fa9c 5171
e8a5fa9c 5172
e552509b 5173# Check whether --with-mpc-include was given.
81ecdfbb
RW
5174if test "${with_mpc_include+set}" = set; then :
5175 withval=$with_mpc_include;
5176fi
e8a5fa9c 5177
e8a5fa9c 5178
e552509b 5179# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5180if test "${with_mpc_lib+set}" = set; then :
5181 withval=$with_mpc_lib;
5182fi
e8a5fa9c 5183
e8a5fa9c
RW
5184
5185if test "x$with_mpc" != x; then
d9b76ff9
KG
5186 gmplibs="-L$with_mpc/lib $gmplibs"
5187 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5188fi
5189if test "x$with_mpc_include" != x; then
d9b76ff9 5190 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5191fi
5192if test "x$with_mpc_lib" != x; then
d9b76ff9 5193 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5194fi
5195if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5196 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5197 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5198 # Do not test the mpc version. Assume that it is sufficient, since
5199 # it is in the source tree, and the library has not been built yet
5200 # but it would be included on the link line in the version check below
5201 # hence making the test fail.
d9b76ff9 5202 have_gmp=yes
e8a5fa9c 5203fi
4b900473 5204
11b04d1f
DD
5205# Specify a location for mpfr
5206# check for this first so it ends up on the link line before gmp.
c6b750e1 5207
81ecdfbb
RW
5208# Check whether --with-mpfr-dir was given.
5209if test "${with_mpfr_dir+set}" = set; then :
5210 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5211Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5212fi
5213
11b04d1f
DD
5214
5215
81ecdfbb
RW
5216# Check whether --with-mpfr was given.
5217if test "${with_mpfr+set}" = set; then :
5218 withval=$with_mpfr;
5219fi
c6b750e1 5220
11b04d1f 5221
e552509b 5222# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5223if test "${with_mpfr_include+set}" = set; then :
5224 withval=$with_mpfr_include;
5225fi
c6b750e1 5226
8a0d8a5c 5227
e552509b 5228# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5229if test "${with_mpfr_lib+set}" = set; then :
5230 withval=$with_mpfr_lib;
5231fi
8a0d8a5c 5232
11b04d1f
DD
5233
5234if test "x$with_mpfr" != x; then
5235 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5236 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5237fi
8a0d8a5c 5238if test "x$with_mpfr_include" != x; then
d9b76ff9 5239 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5240fi
5241if test "x$with_mpfr_lib" != x; then
5242 gmplibs="-L$with_mpfr_lib $gmplibs"
5243fi
4b900473 5244if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5245 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5246 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5247 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5248 # Do not test the mpfr version. Assume that it is sufficient, since
5249 # it is in the source tree, and the library has not been built yet
5250 # but it would be included on the link line in the version check below
5251 # hence making the test fail.
5252 have_gmp=yes
5253fi
11b04d1f 5254
4b1cb4fe 5255# Specify a location for gmp
c6b750e1 5256
81ecdfbb
RW
5257# Check whether --with-gmp-dir was given.
5258if test "${with_gmp_dir+set}" = set; then :
5259 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5260Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5261fi
5262
4b1cb4fe
DD
5263
5264
81ecdfbb
RW
5265# Check whether --with-gmp was given.
5266if test "${with_gmp+set}" = set; then :
5267 withval=$with_gmp;
5268fi
c6b750e1 5269
4b1cb4fe 5270
e552509b 5271# Check whether --with-gmp-include was given.
81ecdfbb
RW
5272if test "${with_gmp_include+set}" = set; then :
5273 withval=$with_gmp_include;
5274fi
c6b750e1 5275
8a0d8a5c 5276
e552509b 5277# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5278if test "${with_gmp_lib+set}" = set; then :
5279 withval=$with_gmp_lib;
5280fi
8a0d8a5c
PB
5281
5282
4b1cb4fe 5283
11b04d1f
DD
5284if test "x$with_gmp" != x; then
5285 gmplibs="-L$with_gmp/lib $gmplibs"
5286 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5287fi
8a0d8a5c
PB
5288if test "x$with_gmp_include" != x; then
5289 gmpinc="-I$with_gmp_include $gmpinc"
5290fi
5291if test "x$with_gmp_lib" != x; then
5292 gmplibs="-L$with_gmp_lib $gmplibs"
5293fi
4b900473 5294if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5295 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5296 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5297 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5298 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5299 # Do not test the gmp version. Assume that it is sufficient, since
5300 # it is in the source tree, and the library has not been built yet
5301 # but it would be included on the link line in the version check below
5302 # hence making the test fail.
5303 have_gmp=yes
5304fi
4b1cb4fe 5305
ceb92e78 5306if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5307 have_gmp=yes
5308 saved_CFLAGS="$CFLAGS"
5309 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5310 # Check for the recommended and required versions of GMP.
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5312$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5313
5314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5315/* end confdefs.h. */
5316#include "gmp.h"
5317int
5318main ()
5319{
5320
5321 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5322 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5323 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5324 choke me
5325 #endif
5326
5327 ;
5328 return 0;
5329}
5330_ACEOF
5331if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5333/* end confdefs.h. */
a6b5846e 5334#include <gmp.h>
c6b750e1
DJ
5335int
5336main ()
5337{
4b1cb4fe 5338
a6b5846e
KG
5339 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5340 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5341 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5342 choke me
5343 #endif
c6b750e1
DJ
5344
5345 ;
5346 return 0;
5347}
5348_ACEOF
81ecdfbb
RW
5349if ac_fn_c_try_compile "$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351$as_echo "yes" >&6; }
a6b5846e
KG
5352else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5354$as_echo "buggy but acceptable" >&6; }
5355fi
5356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5357else
81ecdfbb
RW
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5360fi
81ecdfbb 5361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5362
e8a5fa9c 5363 # If we have GMP, check the MPFR version.
4b900473 5364 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5365 # Check for the recommended and required versions of MPFR.
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5367$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5369/* end confdefs.h. */
9b134994 5370#include <gmp.h>
4b900473 5371 #include <mpfr.h>
c6b750e1
DJ
5372int
5373main ()
5374{
9b134994 5375
ef699244 5376 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5377 choke me
5378 #endif
c6b750e1
DJ
5379
5380 ;
5381 return 0;
5382}
5383_ACEOF
81ecdfbb
RW
5384if ac_fn_c_try_compile "$LINENO"; then :
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5386/* end confdefs.h. */
4b1cb4fe 5387#include <gmp.h>
4b900473 5388 #include <mpfr.h>
c6b750e1
DJ
5389int
5390main ()
5391{
9dbaa842 5392
a6b5846e 5393 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5394 choke me
5395 #endif
e8a5fa9c
RW
5396
5397 ;
5398 return 0;
5399}
5400_ACEOF
81ecdfbb
RW
5401if ac_fn_c_try_compile "$LINENO"; then :
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5403$as_echo "yes" >&6; }
e8a5fa9c 5404else
81ecdfbb
RW
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5406$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5407fi
81ecdfbb 5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5409else
81ecdfbb
RW
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5412fi
81ecdfbb 5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5414 fi
5415
5416 # Check for the MPC header version.
d9b76ff9 5417 if test x"$have_gmp" = xyes ; then
a6b5846e 5418 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5420$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5422/* end confdefs.h. */
5423#include <mpc.h>
5424int
5425main ()
5426{
5427
a6b5846e
KG
5428 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5429 choke me
5430 #endif
5431
5432 ;
5433 return 0;
5434}
5435_ACEOF
5436if ac_fn_c_try_compile "$LINENO"; then :
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h. */
5439#include <mpc.h>
5440int
5441main ()
5442{
5443
5444 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5445 choke me
5446 #endif
5447
5448 ;
5449 return 0;
5450}
5451_ACEOF
81ecdfbb
RW
5452if ac_fn_c_try_compile "$LINENO"; then :
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5454$as_echo "yes" >&6; }
a6b5846e
KG
5455else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5457$as_echo "buggy but acceptable" >&6; }
5458fi
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5460else
81ecdfbb 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5462$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5463fi
81ecdfbb 5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5465 fi
5466
5467 # Now check the MPFR library.
5468 if test x"$have_gmp" = xyes; then
5469 saved_LIBS="$LIBS"
5470 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5472$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5474/* end confdefs.h. */
d9b76ff9 5475#include <mpc.h>
e8a5fa9c
RW
5476int
5477main ()
5478{
5479
5480 mpfr_t n;
5481 mpfr_t x;
d9b76ff9 5482 mpc_t c;
e8a5fa9c
RW
5483 int t;
5484 mpfr_init (n);
5485 mpfr_init (x);
5486 mpfr_atan2 (n, n, x, GMP_RNDN);
5487 mpfr_erfc (n, x, GMP_RNDN);
5488 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5489 mpfr_clear(n);
5490 mpfr_clear(x);
5491 mpc_init2 (c, 53);
5492 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5493 mpc_cosh (c, c, MPC_RNDNN);
5494 mpc_pow (c, c, c, MPC_RNDNN);
5495 mpc_acosh (c, c, MPC_RNDNN);
5496 mpc_clear (c);
c6b750e1
DJ
5497
5498 ;
5499 return 0;
5500}
5501_ACEOF
81ecdfbb
RW
5502if ac_fn_c_try_link "$LINENO"; then :
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504$as_echo "yes" >&6; }
c6b750e1 5505else
81ecdfbb
RW
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5508fi
81ecdfbb
RW
5509rm -f core conftest.err conftest.$ac_objext \
5510 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5511 LIBS="$saved_LIBS"
5512 fi
5513
4b900473 5514 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5515
a6b5846e
KG
5516# The library versions listed in the error message below should match
5517# the HARD-minimums enforced above.
4b900473 5518 if test x$have_gmp != xyes; then
a6b5846e 5519 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5520Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5521their locations. Source code for these libraries can be found at
5522their respective hosting sites as well as at
5523ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5524http://gcc.gnu.org/install/prerequisites.html for additional info. If
5525you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5526make sure that you have installed both the libraries and the header
5527files. They may be located in separate packages." "$LINENO" 5
4b900473 5528 fi
9dbaa842
DD
5529fi
5530
e8a5fa9c
RW
5531# Flags needed for both GMP, MPFR and/or MPC.
5532
5533
5534
4b1cb4fe
DD
5535
5536
5537
29383458
JM
5538# Allow host libstdc++ to be specified for static linking with PPL.
5539
81ecdfbb
RW
5540# Check whether --with-host-libstdcxx was given.
5541if test "${with_host_libstdcxx+set}" = set; then :
5542 withval=$with_host_libstdcxx;
5543fi
29383458 5544
29383458
JM
5545
5546case $with_host_libstdcxx in
5547 no|yes)
81ecdfbb 5548 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5549 ;;
5550esac
e28c595f 5551
e8a5fa9c
RW
5552# Linker flags to use for stage1 or when not boostrapping.
5553
81ecdfbb
RW
5554# Check whether --with-stage1-ldflags was given.
5555if test "${with_stage1_ldflags+set}" = set; then :
5556 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5557 stage1_ldflags=
5558 else
5559 stage1_ldflags=$withval
5560 fi
5561else
5562 stage1_ldflags=
81ecdfbb
RW
5563fi
5564
e8a5fa9c
RW
5565
5566
5567# Libraries to use for stage1 or when not bootstrapping.
5568
81ecdfbb
RW
5569# Check whether --with-stage1-libs was given.
5570if test "${with_stage1_libs+set}" = set; then :
5571 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5572 stage1_libs=
5573 else
5574 stage1_libs=$withval
5575 fi
5576else
5577 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5578fi
5579
e8a5fa9c
RW
5580
5581
e8a5fa9c
RW
5582# Libraries to use for stage2 and later builds. This defaults to the
5583# argument passed to --with-host-libstdcxx.
5584
81ecdfbb
RW
5585# Check whether --with-boot-libs was given.
5586if test "${with_boot_libs+set}" = set; then :
5587 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5588 poststage1_libs=
5589 else
5590 poststage1_libs=$withval
5591 fi
5592else
5593 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5594fi
5595
e8a5fa9c
RW
5596
5597
143754cd
NC
5598# Linker flags to use for stage2 and later builds.
5599
5600# Check whether --with-boot-ldflags was given.
5601if test "${with_boot_ldflags+set}" = set; then :
5602 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5603 poststage1_ldflags=
5604 else
5605 poststage1_ldflags=$withval
5606 fi
5607else
5608 poststage1_ldflags=
4f11b223
ILT
5609 # In stages 2 and 3, default to linking libstdc++ and libgcc
5610 # statically. But if the user explicitly specified the libraries to
5611 # use, trust that they are doing what they want.
5612 if test "$poststage1_libs" = ""; then
143754cd
NC
5613 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5614 fi
5615fi
5616
5617
5618
e28c595f 5619# Check for PPL
e8a5fa9c 5620ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5621pplinc=
5622
5623
81ecdfbb
RW
5624# Check whether --with-ppl was given.
5625if test "${with_ppl+set}" = set; then :
5626 withval=$with_ppl;
81ecdfbb 5627fi
e28c595f 5628
e28c595f 5629
e552509b 5630# Check whether --with-ppl-include was given.
81ecdfbb
RW
5631if test "${with_ppl_include+set}" = set; then :
5632 withval=$with_ppl_include;
5633fi
5634
e28c595f 5635
e552509b 5636# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5637if test "${with_ppl_lib+set}" = set; then :
5638 withval=$with_ppl_lib;
5639fi
e28c595f 5640
e28c595f 5641
29383458
JM
5642case $with_ppl in
5643 no)
5644 ppllibs=
5645 ;;
1f53ca9a
AO
5646 "" | yes)
5647 ;;
29383458 5648 *)
e8a5fa9c 5649 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458 5650 pplinc="-I$with_ppl/include $pplinc"
29383458
JM
5651 ;;
5652esac
e28c595f
JM
5653if test "x$with_ppl_include" != x; then
5654 pplinc="-I$with_ppl_include $pplinc"
5655fi
5656if test "x$with_ppl_lib" != x; then
e8a5fa9c 5657 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5658fi
5659if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
d5f2ee2e 5660 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
1f53ca9a
AO
5661 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5662 enable_ppl_version_check=no
e28c595f
JM
5663fi
5664
81ecdfbb
RW
5665# Check whether --enable-ppl-version-check was given.
5666if test "${enable_ppl_version_check+set}" = set; then :
5667 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5668else
5669 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5670fi
5671
e28c595f 5672
1f53ca9a 5673if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
e28c595f
JM
5674 saved_CFLAGS="$CFLAGS"
5675 CFLAGS="$CFLAGS $pplinc $gmpinc"
a009f2e7
RW
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5677$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
81ecdfbb 5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5679/* end confdefs.h. */
5680#include "ppl_c.h"
5681int
5682main ()
5683{
5684
a009f2e7 5685 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
e28c595f
JM
5686 choke me
5687 #endif
5688
5689 ;
5690 return 0;
5691}
5692_ACEOF
81ecdfbb
RW
5693if ac_fn_c_try_compile "$LINENO"; then :
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695$as_echo "yes" >&6; }
e28c595f 5696else
81ecdfbb 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5698$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5699fi
81ecdfbb 5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5701 CFLAGS="$saved_CFLAGS"
5702fi
5703
5704# Flags needed for PPL
5705
5706
5707
5708
5709# Check for CLOOG
e552509b 5710
e28c595f
JM
5711
5712
81ecdfbb
RW
5713# Check whether --with-cloog was given.
5714if test "${with_cloog+set}" = set; then :
5715 withval=$with_cloog;
81ecdfbb
RW
5716fi
5717
e28c595f 5718
e552509b 5719# Check whether --with-cloog-include was given.
81ecdfbb
RW
5720if test "${with_cloog_include+set}" = set; then :
5721 withval=$with_cloog_include;
5722fi
e28c595f 5723
e28c595f 5724
e552509b 5725# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5726if test "${with_cloog_lib+set}" = set; then :
5727 withval=$with_cloog_lib;
5728fi
e28c595f 5729
e28c595f 5730
e552509b
ILT
5731 # Check whether --enable-cloog-backend was given.
5732if test "${enable_cloog_backend+set}" = set; then :
5733 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5734 cloog_backend=isl
5735 elif test "x${enableval}" = "xppl"; then
5736 cloog_backend=ppl
5737 else
5738 cloog_backend=ppl-legacy
5739 fi
5740else
5741 cloog_backend=ppl-legacy
5742fi
5743
5744 # Check whether --enable-cloog-version-check was given.
5745if test "${enable_cloog_version_check+set}" = set; then :
5746 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5747else
5748 ENABLE_CLOOG_CHECK=yes
5749fi
5750
5751
5752 # Initialize clooglibs and clooginc.
5753 case $with_cloog in
5754 no)
5755 clooglibs=
5756 clooginc=
5757 ;;
5758 "" | yes)
5759 ;;
5760 *)
5761 clooglibs="-L$with_cloog/lib"
5762 clooginc="-I$with_cloog/include"
5763 ;;
5764 esac
5765 if test "x${with_cloog_include}" != x ; then
5766 clooginc="-I$with_cloog_include"
5767 fi
5768 if test "x${with_cloog_lib}" != x; then
5769 clooglibs="-L$with_cloog_lib"
5770 fi
5771
5772
5773
5774
5775
1f53ca9a
AO
5776if test "x$with_ppl" = "xno"; then
5777 with_cloog=no
5778fi
e552509b
ILT
5779if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5780 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5781 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5782 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5783fi
5784if test "x$with_cloog" != "xno"; then
1f53ca9a 5785
e552509b
ILT
5786
5787
5788 _cloog_saved_CFLAGS=$CFLAGS
5789 _cloog_saved_CPPFLAGS=$CPPFLAGS
5790 _cloog_saved_LDFLAGS=$LDFLAGS
5791 _cloog_saved_LIBS=$LIBS
5792
5793 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5794
5795 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5796 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5797 LDFLAGS="${LDFLAGS} ${clooglibs}"
5798
5799 case $cloog_backend in
5800 "ppl-legacy")
5801 CFLAGS="${CFLAGS} ${pplinc}"
5802 LDFLAGS="${LDFLAGS} ${ppllibs}"
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5804$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5805if test "${gcc_cv_cloog_type+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807else
5808 LIBS="-lcloog ${_cloog_saved_LIBS}"
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810/* end confdefs.h. */
5811#include "cloog/cloog.h"
5812int
5813main ()
5814{
5815#ifndef CLOOG_PPL_BACKEND
5816 choke me
5817 #endif
5818 ;
5819 return 0;
5820}
5821_ACEOF
5822if ac_fn_c_try_link "$LINENO"; then :
5823 gcc_cv_cloog_type="PPL Legacy"
5824else
5825 gcc_cv_cloog_type=no
5826fi
5827rm -f core conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
e28c595f 5829fi
e552509b
ILT
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5831$as_echo "$gcc_cv_cloog_type" >&6; }
5832 ;;
5833 "isl")
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5835$as_echo_n "checking for installed CLooG ISL... " >&6; }
5836if test "${gcc_cv_cloog_type+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838else
5839 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h. */
5842#include "cloog/cloog.h"
5843int
5844main ()
5845{
5846cloog_version ()
5847 ;
5848 return 0;
5849}
5850_ACEOF
5851if ac_fn_c_try_link "$LINENO"; then :
5852 gcc_cv_cloog_type="ISL"
5853else
5854 gcc_cv_cloog_type=no
e28c595f 5855fi
e552509b
ILT
5856rm -f core conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
e28c595f 5858fi
e552509b
ILT
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5860$as_echo "$gcc_cv_cloog_type" >&6; }
5861 ;;
5862 "ppl")
5863 CFLAGS="${CFLAGS} ${pplinc}"
5864 LDFLAGS="${LDFLAGS} ${ppllibs}"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5866$as_echo_n "checking for installed CLooG PPL... " >&6; }
5867if test "${gcc_cv_cloog_type+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
e28c595f 5869else
e552509b
ILT
5870 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872/* end confdefs.h. */
5873#include "cloog/cloog.h"
5874 #include "cloog/ppl/cloog.h"
5875int
5876main ()
5877{
5878cloog_version ()
5879 ;
5880 return 0;
5881}
5882_ACEOF
5883if ac_fn_c_try_link "$LINENO"; then :
5884 gcc_cv_cloog_type="PPL"
5885else
5886 gcc_cv_cloog_type=no
81ecdfbb 5887fi
e552509b
ILT
5888rm -f core conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5890fi
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5892$as_echo "$gcc_cv_cloog_type" >&6; }
5893 ;;
5894 *)
5895 gcc_cv_cloog_type=""
5896 esac
5897
5898 case $gcc_cv_cloog_type in
5899 "PPL Legacy")
5900 clooginc="${clooginc}"
5901 clooglibs="${clooglibs} -lcloog"
5902 cloog_org=no
5903 ;;
5904 "ISL")
5905 clooginc="${clooginc} ${_cloogorginc}"
5906 clooglibs="${clooglibs} -lcloog-isl"
5907 cloog_org=yes
5908 ;;
5909 "PPL")
5910 clooginc="${clooginc} ${_cloogorginc}"
5911 clooglibs="${clooglibs} -lcloog-ppl"
5912 cloog_org=yes
5913 ;;
5914 *)
5915 clooglibs=
5916 clooginc=
5917 cloog_org=
5918 ;;
5919 esac
81ecdfbb 5920
e552509b
ILT
5921 LIBS=$_cloog_saved_LIBS
5922 CFLAGS=$_cloog_saved_CFLAGS
5923 CPPFLAGS=$_cloog_saved_CPPFLAGS
5924 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5925
e552509b
ILT
5926
5927
5928
5929
5930 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5931 _cloog_saved_CFLAGS=$CFLAGS
5932 _cloog_saved_LDFLAGS=$LDFLAGS
5933
5934 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5935 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5936
5937 if test "${cloog_org}" = yes ; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5939$as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5940if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5942else
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h. */
5945#include "cloog/cloog.h"
5946int
5947main ()
5948{
5949#if CLOOG_VERSION_MAJOR != 0 \
5950 || CLOOG_VERSION_MINOR != 14 \
5951 || CLOOG_VERSION_REVISION < 0
5952 choke me
5953 #endif
5954 ;
5955 return 0;
5956}
5957_ACEOF
5958if ac_fn_c_try_compile "$LINENO"; then :
5959 gcc_cv_cloog_ct_0_14_0=yes
5960else
5961 gcc_cv_cloog_ct_0_14_0=no
5962fi
5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964fi
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5966$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5967 elif test "${cloog_org}" = no ; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 5969$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
5970if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972else
81ecdfbb 5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5974/* end confdefs.h. */
5975#include "cloog/cloog.h"
5976int
5977main ()
5978{
e552509b
ILT
5979#if CLOOG_VERSION_MAJOR != 0 \
5980 || CLOOG_VERSION_MINOR != 15 \
5981 || CLOOG_VERSION_REVISION < 5
5982 choke me
5983 #endif
e28c595f
JM
5984 ;
5985 return 0;
5986}
5987_ACEOF
a009f2e7
RW
5988if ac_fn_c_try_compile "$LINENO"; then :
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990/* end confdefs.h. */
5991#include "cloog/cloog.h"
5992int
5993main ()
5994{
e552509b
ILT
5995#if CLOOG_VERSION_MAJOR != 0 \
5996 || CLOOG_VERSION_MINOR != 15 \
5997 || CLOOG_VERSION_REVISION < 9
5998 choke me
5999 #endif
a009f2e7
RW
6000 ;
6001 return 0;
6002}
6003_ACEOF
81ecdfbb 6004if ac_fn_c_try_compile "$LINENO"; then :
e552509b 6005 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 6006else
e552509b 6007 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
6008fi
6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6010else
e552509b 6011 gcc_cv_cloog_ct_0_15_5=no
e28c595f 6012fi
81ecdfbb 6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6014fi
e552509b
ILT
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6016$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6017 fi
6018
6019 CFLAGS=$_cloog_saved_CFLAGS
6020 LDFLAGS=$_cloog_saved_LDFLAGS
6021 fi
6022
6023
6024
e28c595f 6025
e28c595f
JM
6026
6027
6028
e552509b
ILT
6029 if test "x${with_cloog}" != x \
6030 || test "x${with_cloog_include}" != x \
6031 || test "x${with_cloog_lib}" != x ; then
6032 graphite_requested=yes
6033 else
6034 graphite_requested=no
6035 fi
6036
6037
6038
6039 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6040 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6041 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6042 clooglibs=
6043 clooginc=
6044 fi
6045
6046 if test "${graphite_requested}" = yes \
6047 && test "x${clooglibs}" = x \
6048 && test "x${clooginc}" = x ; then
6049
6050 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6051 fi
6052
6053
6054fi
6055
700d40ca
ILT
6056# Check for LTO support.
6057# Check whether --enable-lto was given.
6058if test "${enable_lto+set}" = set; then :
6059 enableval=$enable_lto; enable_lto=$enableval
6060else
6061 enable_lto=yes; default_enable_lto=yes
6062fi
6063
6064
143754cd 6065
e49e5c92
DK
6066
6067
6068target_elf=no
6069case $target in
6070 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6071 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6072 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6073 target_elf=no
6074 ;;
6075 *)
6076 target_elf=yes
6077 ;;
6078esac
6079
6080if test $target_elf = yes; then :
74cea91b
DK
6081 # ELF platforms build the lto-plugin always.
6082 build_lto_plugin=yes
e49e5c92 6083
e49e5c92
DK
6084else
6085 if test x"$default_enable_lto" = x"yes" ; then
29821356 6086 case $target in
a8eb3f0a 6087 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
74cea91b 6088 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6089 *) enable_lto=no ;;
6090 esac
e49e5c92 6091 else
29821356
RW
6092 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6093 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6094 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6095 # warn during gcc/ subconfigure; unless you're bootstrapping with
6096 # -flto it won't be needed until after installation anyway.
6097 case $target in
a8eb3f0a 6098 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6099 *) if test x"$enable_lto" = x"yes"; then
6100 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6101 fi
6102 ;;
6103 esac
6104 fi
a8eb3f0a 6105 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6106 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6107 case $target in
74cea91b 6108 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6109 *) ;;
6110 esac
74cea91b 6111
e49e5c92
DK
6112fi
6113
700d40ca 6114
e28c595f 6115
947f426e 6116# By default, C is the only stage 1 language.
9b134994 6117stage1_languages=,c,
1d39f329 6118
e8a5fa9c 6119# Target libraries that we bootstrap.
2aa2364a 6120bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6121
9e07f89d
NN
6122# Figure out what language subdirectories are present.
6123# Look if the user specified --enable-languages="..."; if not, use
6124# the environment variable $LANGUAGES if defined. $LANGUAGES might
6125# go away some day.
6126# NB: embedded tabs in this IF block -- do not untabify
6127if test -d ${srcdir}/gcc; then
6128 if test x"${enable_languages+set}" != xset; then
6129 if test x"${LANGUAGES+set}" = xset; then
6130 enable_languages="${LANGUAGES}"
6131 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6132 else
6133 enable_languages=all
6134 fi
6135 else
6136 if test x"${enable_languages}" = x ||
6137 test x"${enable_languages}" = xyes;
6138 then
6139 echo configure.in: --enable-languages needs at least one language argument 1>&2
6140 exit 1
6141 fi
6142 fi
6143 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6144
096f7d00
DE
6145 # 'f95' is the old name for the 'fortran' language. We issue a warning
6146 # and make the substitution.
6147 case ,${enable_languages}, in
6148 *,f95,*)
6149 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6150 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6151 ;;
6152 esac
6153
9e07f89d
NN
6154 # First scan to see if an enabled language requires some other language.
6155 # We assume that a given config-lang.in will list all the language
6156 # front ends it requires, even if some are required indirectly.
6157 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6158 case ${lang_frag} in
6159 ..) ;;
6160 # The odd quoting in the next line works around
6161 # an apparent bug in bash 1.12 on linux.
6162 ${srcdir}/gcc/[*]/config-lang.in) ;;
6163 *)
e552509b
ILT
6164 # From the config-lang.in, get $language, $lang_requires, and
6165 # $lang_requires_boot_languages.
9e07f89d
NN
6166 language=
6167 lang_requires=
e552509b 6168 lang_requires_boot_languages=
9e07f89d 6169 . ${lang_frag}
e552509b 6170 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6171 case ,${enable_languages}, in
6172 *,$other,*) ;;
6173 *,all,*) ;;
6174 *,$language,*)
6175 echo " \`$other' language required by \`$language'; enabling" 1>&2
6176 enable_languages="${enable_languages},${other}"
6177 ;;
6178 esac
6179 done
e552509b
ILT
6180 for other in ${lang_requires_boot_languages} ; do
6181 if test "$other" != "c"; then
6182 case ,${enable_stage1_languages}, in
6183 *,$other,*) ;;
6184 *,all,*) ;;
6185 *)
6186 case ,${enable_languages}, in
6187 *,$language,*)
6188 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6189 enable_stage1_languages="$enable_stage1_languages,${other}"
6190 ;;
6191 esac
6192 ;;
6193 esac
6194 fi
6195 done
9e07f89d
NN
6196 ;;
6197 esac
6198 done
6199
9b134994 6200 new_enable_languages=,c,
700d40ca
ILT
6201
6202 # If LTO is enabled, add the LTO front end.
6203 extra_host_libiberty_configure_flags=
6204 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6205 case ,${enable_languages}, in
6206 *,lto,*) ;;
6207 *) enable_languages="${enable_languages},lto" ;;
6208 esac
a8eb3f0a 6209 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6210 configdirs="$configdirs lto-plugin"
6211 extra_host_libiberty_configure_flags=--enable-shared
6212 fi
6213 fi
6214
6215
9e07f89d 6216 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6217 potential_languages=,c,
9e07f89d 6218
9e1a94f4
ILT
6219 enabled_target_libs=
6220 disabled_target_libs=
6221
9e07f89d
NN
6222 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6223 case ${lang_frag} in
6224 ..) ;;
6225 # The odd quoting in the next line works around
6226 # an apparent bug in bash 1.12 on linux.
6227 ${srcdir}/gcc/[*]/config-lang.in) ;;
6228 *)
c6b750e1 6229 # From the config-lang.in, get $language, $target_libs,
1d39f329 6230 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6231 language=
6232 target_libs=
6233 lang_dirs=
64ce424c 6234 subdir_requires=
9b134994
PB
6235 boot_language=no
6236 build_by_default=yes
9e07f89d 6237 . ${lang_frag}
9b134994
PB
6238 if test x${language} = x; then
6239 echo "${lang_frag} doesn't set \$language." 1>&2
6240 exit 1
6241 fi
6242
1f53ca9a
AO
6243 if test "$language" = "c++" \
6244 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6245 boot_language=yes
6246 fi
6247
9b134994
PB
6248 case ,${enable_languages}, in
6249 *,${language},*)
9e07f89d
NN
6250 # Language was explicitly selected; include it.
6251 add_this_lang=yes
6252 ;;
9b134994
PB
6253 *,all,*)
6254 # 'all' was selected, select it if it is a default language
6255 add_this_lang=${build_by_default}
9e07f89d
NN
6256 ;;
6257 *)
6258 add_this_lang=no
6259 ;;
6260 esac
4b1cb4fe 6261
64ce424c 6262 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6263 for i in $subdir_requires; do
3d3adb43 6264 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6265 case ,${enable_languages}, in
6266 *,${language},*)
6267 # Specifically requested language; tell them.
81ecdfbb 6268 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6269 ;;
6270 *)
6271 # Silently disable.
9b134994 6272 add_this_lang=unsupported
64ce424c
PB
6273 ;;
6274 esac
6275 done
6276
9b134994
PB
6277 # Disable Ada if no preexisting GNAT is available.
6278 case ,${enable_languages},:${language}:${have_gnat} in
6279 *,${language},*:ada:no)
6280 # Specifically requested language; tell them.
81ecdfbb 6281 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6282 ;;
6283 *:ada:no)
6284 # Silently disable.
6285 add_this_lang=unsupported
6286 ;;
6287 esac
6288
59f7ec45
HPN
6289 # Disable a language that is unsupported by the target.
6290 case " $unsupported_languages " in
6291 *" $language "*)
9b134994 6292 add_this_lang=unsupported
59f7ec45
HPN
6293 ;;
6294 esac
6295
4b1cb4fe 6296 case $add_this_lang in
9b134994 6297 unsupported)
9e07f89d 6298 # Remove language-dependent dirs.
9e1a94f4
ILT
6299 disabled_target_libs="$disabled_target_libs $target_libs"
6300 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6301 ;;
9b134994
PB
6302 no)
6303 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6304 disabled_target_libs="$disabled_target_libs $target_libs"
6305 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6306 potential_languages="${potential_languages}${language},"
6307 ;;
6308 yes)
6309 new_enable_languages="${new_enable_languages}${language},"
6310 potential_languages="${potential_languages}${language},"
1d39f329 6311 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6312 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6313 case "${boot_language}:,$enable_stage1_languages," in
6314 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6315 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6316 case ",$stage1_languages," in
6317 *,$language,* | ,yes, | ,all,) ;;
6318 *) stage1_languages="${stage1_languages}${language}," ;;
6319 esac
e8a5fa9c
RW
6320 # We need to bootstrap any supporting libraries.
6321 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6322 ;;
6323 esac
6324 ;;
9e07f89d
NN
6325 esac
6326 ;;
6327 esac
6328 done
6329
9e1a94f4
ILT
6330 # Add target libraries which are only needed for disabled languages
6331 # to noconfigdirs.
6332 if test -n "$disabled_target_libs"; then
6333 for dir in $disabled_target_libs; do
6334 case " $enabled_target_libs " in
6335 *" ${dir} "*) ;;
6336 *) noconfigdirs="$noconfigdirs $dir" ;;
6337 esac
6338 done
6339 fi
6340
81ecdfbb
RW
6341 # Check whether --enable-stage1-languages was given.
6342if test "${enable_stage1_languages+set}" = set; then :
6343 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6344 ,no,|,,)
6345 # Set it to something that will have no effect in the loop below
6346 enable_stage1_languages=c ;;
6347 ,yes,)
6348 enable_stage1_languages=`echo $new_enable_languages | \
6349 sed -e "s/^,//" -e "s/,$//" ` ;;
6350 *,all,*)
6351 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6352 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6353 esac
6354
6355 # Add "good" languages from enable_stage1_languages to stage1_languages,
6356 # while "bad" languages go in missing_languages. Leave no duplicates.
6357 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6358 case $potential_languages in
6359 *,$i,*)
6360 case $stage1_languages in
6361 *,$i,*) ;;
6362 *) stage1_languages="$stage1_languages$i," ;;
6363 esac ;;
6364 *)
6365 case $missing_languages in
6366 *,$i,*) ;;
6367 *) missing_languages="$missing_languages$i," ;;
6368 esac ;;
6369 esac
6370 done
81ecdfbb
RW
6371fi
6372
9b134994
PB
6373
6374 # Remove leading/trailing commas that were added for simplicity
6375 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6376 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6377 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6378 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6379
9e07f89d 6380 if test "x$missing_languages" != x; then
81ecdfbb 6381 as_fn_error "
27258dd4 6382The following requested languages could not be built: ${missing_languages}
81ecdfbb 6383Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6384 fi
9e07f89d
NN
6385 if test "x$new_enable_languages" != "x$enable_languages"; then
6386 echo The following languages will be built: ${new_enable_languages}
9b134994 6387 enable_languages="$new_enable_languages"
9e07f89d 6388 fi
9b134994 6389
c6b750e1 6390
81ec575a 6391 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6392fi
6393
a6df5a19
PB
6394# Handle --disable-<component> generically.
6395for dir in $configdirs $build_configdirs $target_configdirs ; do
6396 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6397 varname=`echo $dirname | sed -e s/+/_/g`
6398 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6399 noconfigdirs="$noconfigdirs $dir"
6400 fi
6401done
6402
4f0ef2d8 6403# Check for Boehm's garbage collector
81ecdfbb
RW
6404# Check whether --enable-objc-gc was given.
6405if test "${enable_objc_gc+set}" = set; then :
6406 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6407 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6408 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6409 ;;
6410esac
81ecdfbb
RW
6411fi
6412
4f0ef2d8
CD
6413
6414# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6415case ,${enable_languages},:${enable_objc_gc} in
6416 *,objc,*:yes)
4f0ef2d8
CD
6417 # Keep target-boehm-gc if requested for Objective-C.
6418 ;;
4f0ef2d8 6419 *)
d42c4017
DA
6420 # Otherwise remove target-boehm-gc depending on target-libjava.
6421 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6422 noconfigdirs="$noconfigdirs target-boehm-gc"
6423 fi
4f0ef2d8
CD
6424 ;;
6425esac
6426
caeba88f
AL
6427# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6428# $build_configdirs and $target_configdirs.
9e07f89d
NN
6429# If we have the source for $noconfigdirs entries, add them to $notsupp.
6430
6431notsupp=""
6432for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6433 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6434 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6435 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6436 if test -r $srcdir/$dirname/configure ; then
6437 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6438 true
6439 else
6440 notsupp="$notsupp $dir"
6441 fi
6442 fi
6443 fi
caeba88f
AL
6444 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6445 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6446 if test -r $srcdir/$dirname/configure ; then
6447 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6448 true
6449 else
6450 notsupp="$notsupp $dir"
6451 fi
6452 fi
6453 fi
9e07f89d
NN
6454 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6455 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6456 if test -r $srcdir/$dirname/configure ; then
6457 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6458 true
6459 else
6460 notsupp="$notsupp $dir"
6461 fi
6462 fi
6463 fi
6464done
6465
6466# Sometimes the tools are distributed with libiberty but with no other
6467# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6468# Don't let libgcc imply libiberty either.
9e07f89d 6469if test -n "${target_configdirs}" ; then
f86e35b8 6470 libgcc=
9e07f89d
NN
6471 others=
6472 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6473 if test "$i" = "libgcc"; then
6474 libgcc=target-libgcc
6475 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6476 if test -r $srcdir/$i/configure ; then
6477 others=yes;
6478 break;
6479 fi
6480 fi
6481 done
6482 if test -z "${others}" ; then
f86e35b8 6483 target_configdirs=$libgcc
9e07f89d
NN
6484 fi
6485fi
6486
6487# Quietly strip out all directories which aren't configurable in this tree.
6488# This relies on all configurable subdirectories being autoconfiscated, which
6489# is now the case.
6a9cf61e
PB
6490build_configdirs_all="$build_configdirs"
6491build_configdirs=
6492for i in ${build_configdirs_all} ; do
c6b750e1 6493 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6494 if test -f ${srcdir}/$j/configure ; then
6495 build_configdirs="${build_configdirs} $i"
6496 fi
6497done
6498
9e07f89d
NN
6499configdirs_all="$configdirs"
6500configdirs=
6501for i in ${configdirs_all} ; do
6502 if test -f ${srcdir}/$i/configure ; then
6503 configdirs="${configdirs} $i"
6504 fi
6505done
6a9cf61e 6506
9e07f89d
NN
6507target_configdirs_all="$target_configdirs"
6508target_configdirs=
6509for i in ${target_configdirs_all} ; do
c6b750e1 6510 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6511 if test -f ${srcdir}/$j/configure ; then
6512 target_configdirs="${target_configdirs} $i"
6513 fi
6514done
6515
6516# Produce a warning message for the subdirs we can't configure.
6517# This isn't especially interesting in the Cygnus tree, but in the individual
6518# FSF releases, it's important to let people know when their machine isn't
6519# supported by the one or two programs in a package.
6520
6521if test -n "${notsupp}" && test -z "${norecursion}" ; then
6522 # If $appdirs is non-empty, at least one of those directories must still
6523 # be configured, or we error out. (E.g., if the gas release supports a
6524 # specified target in some subdirs but not the gas subdir, we shouldn't
6525 # pretend that all is well.)
6526 if test -n "$appdirs" ; then
6527 for dir in $appdirs ; do
6528 if test -r $dir/Makefile.in ; then
6529 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6530 appdirs=""
6531 break
6532 fi
6a9cf61e 6533 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6534 appdirs=""
6535 break
6536 fi
6537 fi
6538 done
6539 if test -n "$appdirs" ; then
6540 echo "*** This configuration is not supported by this package." 1>&2
6541 exit 1
6542 fi
6543 fi
6544 # Okay, some application will build, or we don't care to check. Still
6545 # notify of subdirs not getting built.
6546 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6547 echo " ${notsupp}" 1>&2
6548 echo " (Any other directories should still work fine.)" 1>&2
6549fi
6550
6551case "$host" in
6552 *msdosdjgpp*)
6553 enable_gdbtk=no ;;
6554esac
6555
18f6b6ee
PB
6556# To find our prefix, in gcc_cv_tool_prefix.
6557
6558# The user is always right.
6559if test "${PATH_SEPARATOR+set}" != set; then
6560 echo "#! /bin/sh" >conf$$.sh
6561 echo "exit 0" >>conf$$.sh
6562 chmod +x conf$$.sh
6563 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6564 PATH_SEPARATOR=';'
6565 else
6566 PATH_SEPARATOR=:
6567 fi
6568 rm -f conf$$.sh
6569fi
6570
6571
6572
6573if test "x$exec_prefix" = xNONE; then
6574 if test "x$prefix" = xNONE; then
6575 gcc_cv_tool_prefix=$ac_default_prefix
6576 else
6577 gcc_cv_tool_prefix=$prefix
6578 fi
6579else
6580 gcc_cv_tool_prefix=$exec_prefix
6581fi
6582
6583# If there is no compiler in the tree, use the PATH only. In any
6584# case, if there is no compiler in the tree nobody should use
6585# AS_FOR_TARGET and LD_FOR_TARGET.
6586if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6587 gcc_version=`cat $srcdir/gcc/BASE-VER`
6588 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6589 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6590 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6591 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6592 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6593 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6594else
6595 gcc_cv_tool_dirs=
6596fi
6597
6598if test x$build = x$target && test -n "$md_exec_prefix"; then
6599 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6600fi
6601
6602
6603
9e07f89d
NN
6604copy_dirs=
6605
c6b750e1 6606
81ecdfbb
RW
6607# Check whether --with-build-sysroot was given.
6608if test "${with_build_sysroot+set}" = set; then :
6609 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6610 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6611 fi
6612else
6613 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6614fi
a19b6204
MM
6615
6616
8a6ee3ab 6617
81ecdfbb
RW
6618
6619# Check whether --with-debug-prefix-map was given.
6620if test "${with_debug_prefix_map+set}" = set; then :
6621 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6622 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6623 for debug_map in $withval; do
6624 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6625 done
6626 fi
6627else
6628 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6629fi
6630
8a6ee3ab
JM
6631
6632
7f6ef0c0
PB
6633# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6634# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6635# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6636# We want to ensure that TARGET libraries (which we know are built with
6637# gcc) are built with "-O2 -g", so include those options when setting
6638# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6639if test "x$CFLAGS_FOR_TARGET" = x; then
6640 CFLAGS_FOR_TARGET=$CFLAGS
6641 case " $CFLAGS " in
6642 *" -O2 "*) ;;
6643 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6644 esac
6645 case " $CFLAGS " in
6646 *" -g "* | *" -g3 "*) ;;
6647 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6648 esac
6649fi
6650
6651
6652if test "x$CXXFLAGS_FOR_TARGET" = x; then
6653 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6654 case " $CXXFLAGS " in
6655 *" -O2 "*) ;;
6656 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6657 esac
6658 case " $CXXFLAGS " in
6659 *" -g "* | *" -g3 "*) ;;
6660 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6661 esac
6662fi
6663
6664
9e07f89d
NN
6665# Handle --with-headers=XXX. If the value is not "yes", the contents of
6666# the named directory are copied to $(tooldir)/sys-include.
6667if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6668 if test x${is_cross_compiler} = xno ; then
6669 echo 1>&2 '***' --with-headers is only supported when cross compiling
6670 exit 1
6671 fi
6672 if test x"${with_headers}" != xyes ; then
18f6b6ee 6673 x=${gcc_cv_tool_prefix}
c6b750e1 6674 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6675 fi
6676fi
6677
6678# Handle --with-libs=XXX. If the value is not "yes", the contents of
6679# the name directories are copied to $(tooldir)/lib. Multiple directories
6680# are permitted.
6681if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6682 if test x${is_cross_compiler} = xno ; then
6683 echo 1>&2 '***' --with-libs is only supported when cross compiling
6684 exit 1
6685 fi
6686 if test x"${with_libs}" != xyes ; then
6687 # Copy the libraries in reverse order, so that files in the first named
6688 # library override files in subsequent libraries.
18f6b6ee 6689 x=${gcc_cv_tool_prefix}
9e07f89d 6690 for l in ${with_libs}; do
c6b750e1 6691 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6692 done
6693 fi
6694fi
6695
700d40ca 6696# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6697#
6698# This is done by determining whether or not the appropriate directory
6699# is available, and by checking whether or not specific configurations
6700# have requested that this magic not happen.
c6b750e1
DJ
6701#
6702# The command line options always override the explicit settings in
2429c060
PB
6703# configure.in, and the settings in configure.in override this magic.
6704#
c6b750e1 6705# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6706# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6707# --without-gnu-ld options for the configure script. Similarly, if
6708# the default is to use the included zlib and you don't want to do that,
6709# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6710
6711if test x${use_gnu_as} = x &&
6712 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6713 with_gnu_as=yes
6714 extra_host_args="$extra_host_args --with-gnu-as"
6715fi
6716
6717if test x${use_gnu_ld} = x &&
93f9b408 6718 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6719 with_gnu_ld=yes
6720 extra_host_args="$extra_host_args --with-gnu-ld"
6721fi
6722
700d40ca
ILT
6723if test x${use_included_zlib} = x &&
6724 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6725 :
6726else
6727 with_system_zlib=yes
6728 extra_host_args="$extra_host_args --with-system-zlib"
6729fi
6730
2429c060
PB
6731# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6732# can detect this case.
6733
6734if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6735 with_newlib=yes
6736 extra_host_args="$extra_host_args --with-newlib"
6737fi
6738
9e07f89d
NN
6739# Handle ${copy_dirs}
6740set fnord ${copy_dirs}
6741shift
6742while test $# != 0 ; do
6743 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6744 :
6745 else
6746 echo Copying $1 to $2
6747
6748 # Use the install script to create the directory and all required
6749 # parent directories.
6750 if test -d $2 ; then
6751 :
6752 else
6753 echo >config.temp
6754 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6755 fi
6756
6757 # Copy the directory, assuming we have tar.
6758 # FIXME: Should we use B in the second tar? Not all systems support it.
6759 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6760
6761 # It is the responsibility of the user to correctly adjust all
6762 # symlinks. If somebody can figure out how to handle them correctly
6763 # here, feel free to add the code.
6764
6765 echo $1 > $2/COPIED
6766 fi
6767 shift; shift
6768done
6769
2429c060
PB
6770# Determine a target-dependent exec_prefix that the installed
6771# gcc will search in. Keep this list sorted by triplet, with
6772# the *-*-osname triplets last.
6773md_exec_prefix=
6774case "${target}" in
6775 alpha*-*-*vms*)
6776 md_exec_prefix=/gnu/lib/gcc-lib
6777 ;;
521ec477 6778 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6779 md_exec_prefix=/dev/env/DJDIR/bin
6780 ;;
521ec477 6781 i[34567]86-*-sco3.2v5*)
2429c060
PB
6782 if test $with_gnu_as = yes; then
6783 md_exec_prefix=/usr/gnu/bin
6784 else
6785 md_exec_prefix=/usr/ccs/bin/elf
6786 fi
6787 ;;
6788
6789 mn10300-*-* | \
6790 powerpc-*-chorusos* | \
6791 powerpc*-*-eabi* | \
6792 powerpc*-*-sysv* | \
6793 powerpc*-*-kaos* | \
6794 s390x-ibm-tpf*)
6795 md_exec_prefix=/usr/ccs/bin
6796 ;;
6797 sparc64-*-elf*)
6798 ;;
6799 v850*-*-*)
6800 md_exec_prefix=/usr/ccs/bin
6801 ;;
8b66833e 6802 xtensa*-*-elf*)
2429c060
PB
6803 ;;
6804
6805 *-*-beos* | \
6806 *-*-elf* | \
6807 *-*-hpux* | \
6808 *-*-netware* | \
6809 *-*-nto-qnx* | \
6810 *-*-rtems* | \
6811 *-*-solaris2* | \
521ec477 6812 *-*-sysv[45]* | \
2429c060
PB
6813 *-*-vxworks* | \
6814 *-wrs-windiss)
6815 md_exec_prefix=/usr/ccs/bin
6816 ;;
6817esac
6818
a0da8069
NN
6819extra_arflags_for_target=
6820extra_nmflags_for_target=
6821extra_ranlibflags_for_target=
6822target_makefile_frag=/dev/null
6823case "${target}" in
4e206d7e
DB
6824 mep*-*-*)
6825 target_makefile_frag="config/mt-mep"
6826 ;;
77d7106f
AM
6827 spu-*-*)
6828 target_makefile_frag="config/mt-spu"
6829 ;;
429acdec
RS
6830 mips*-sde-elf*)
6831 target_makefile_frag="config/mt-sde"
6832 ;;
f3b1e08e
RS
6833 mipsisa*-*-elfoabi*)
6834 target_makefile_frag="config/mt-mips-elfoabi"
6835 ;;
e7c8859c
RS
6836 mips*-*-*linux* | mips*-*-gnu*)
6837 target_makefile_frag="config/mt-mips-gnu"
6838 ;;
2a3124ca 6839 *-*-netware*)
a0da8069
NN
6840 target_makefile_frag="config/mt-netware"
6841 ;;
29383458 6842 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6843 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6844 ;;
6845 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6846 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6847 # commands to handle both 32-bit and 64-bit objects. These flags are
6848 # harmless if we're using GNU nm or ar.
6849 extra_arflags_for_target=" -X32_64"
6850 extra_nmflags_for_target=" -B -X32_64"
6851 ;;
92f4e989
JM
6852 *-*-darwin[3-9]*)
6853 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6854 extra_ranlibflags_for_target=" -c"
6855 ;;
6856 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6857 target_makefile_frag="config/mt-wince"
6858 ;;
6859esac
6860
6861alphaieee_frag=/dev/null
6862case $target in
6863 alpha*-*-*)
6864 # This just makes sure to use the -mieee option to build target libs.
6865 # This should probably be set individually by each library.
6866 alphaieee_frag="config/mt-alphaieee"
6867 ;;
6868esac
6869
6870# If --enable-target-optspace always use -Os instead of -O2 to build
6871# the target libraries, similarly if it is not specified, use -Os
6872# on selected platforms.
6873ospace_frag=/dev/null
6874case "${enable_target_optspace}:${target}" in
6875 yes:*)
6876 ospace_frag="config/mt-ospace"
6877 ;;
6878 :d30v-*)
6879 ospace_frag="config/mt-d30v"
6880 ;;
6881 :m32r-* | :d10v-* | :fr30-*)
6882 ospace_frag="config/mt-ospace"
6883 ;;
6884 no:* | :*)
6885 ;;
6886 *)
6887 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6888 ;;
6889esac
6890
a0da8069
NN
6891# Default to using --with-stabs for certain targets.
6892if test x${with_stabs} = x ; then
6893 case "${target}" in
e31d1ea3 6894 mips*-*-irix[56]*)
a0da8069
NN
6895 ;;
6896 mips*-*-* | alpha*-*-osf*)
6897 with_stabs=yes;
6898 extra_host_args="${extra_host_args} --with-stabs"
6899 ;;
6900 esac
6901fi
6902
6903# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6904# them automatically.
6905case "${host}" in
c6b750e1 6906 hppa*64*-*-hpux11*)
a0da8069
NN
6907 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6908 ;;
6909esac
6910
a0da8069
NN
6911# Some systems (e.g., one of the i386-aix systems the gas testers are
6912# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6913tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6914build_tooldir=${tooldir}
6915
a0da8069
NN
6916# Create a .gdbinit file which runs the one in srcdir
6917# and tells GDB to look there for source files.
6918
6919if test -r ${srcdir}/.gdbinit ; then
6920 case ${srcdir} in
6921 .) ;;
6922 *) cat > ./.gdbinit <<EOF
6923# ${NO_EDIT}
6924dir ${srcdir}
6925dir .
6926source ${srcdir}/.gdbinit
6927EOF
6928 ;;
6929 esac
6930fi
6931
a0da8069
NN
6932# Make sure that the compiler is able to generate an executable. If it
6933# can't, we are probably in trouble. We don't care whether we can run the
6934# executable--we might be using a cross compiler--we only care whether it
6935# can be created. At this point the main configure script has set CC.
6936we_are_ok=no
6937echo "int main () { return 0; }" > conftest.c
6938${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6939if test $? = 0 ; then
6940 if test -s conftest || test -s conftest.exe ; then
6941 we_are_ok=yes
6942 fi
c6b750e1 6943fi
a0da8069
NN
6944case $we_are_ok in
6945 no)
6946 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6947 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6948 rm -f conftest*
6949 exit 1
6950 ;;
6951esac
6952rm -f conftest*
6953
6954# The Solaris /usr/ucb/cc compiler does not appear to work.
6955case "${host}" in
6956 sparc-sun-solaris2*)
6957 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6958 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6959 could_use=
6960 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6961 if test -d /opt/cygnus/bin ; then
6962 if test "$could_use" = "" ; then
6963 could_use="/opt/cygnus/bin"
6964 else
6965 could_use="$could_use or /opt/cygnus/bin"
6966 fi
6967 fi
6968 if test "$could_use" = "" ; then
6969 echo "Warning: compilation may fail because you're using"
6970 echo "/usr/ucb/cc. You should change your PATH or CC "
6971 echo "variable and rerun configure."
6972 else
6973 echo "Warning: compilation may fail because you're using"
6974 echo "/usr/ucb/cc, when you should use the C compiler from"
6975 echo "$could_use. You should change your"
6976 echo "PATH or CC variable and rerun configure."
6977 fi
6978 fi
6979 ;;
6980esac
6981
3bbd2f8f 6982# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6983case "${host}" in
6984 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 6985 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6986 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6987 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6988esac
6989
3bbd2f8f 6990# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6991# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6992# built executables to PATH.
3bbd2f8f
AL
6993if test "$RPATH_ENVVAR" = PATH; then
6994 GCC_SHLIB_SUBDIR=/shlib
6995else
6996 GCC_SHLIB_SUBDIR=
6997fi
6998
a0da8069
NN
6999# Record target_configdirs and the configure arguments for target and
7000# build configuration in Makefile.
7001target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7002build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 7003
2aa2364a
JR
7004# If we are building libgomp, bootstrap it.
7005if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7006 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7007fi
7008
a0da8069
NN
7009# Determine whether gdb needs tk/tcl or not.
7010# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7011# and in that case we want gdb to be built without tk. Ugh!
7012# In fact I believe gdb is the *only* package directly dependent on tk,
7013# so we should be able to put the 'maybe's in unconditionally and
7014# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7015# 100% sure that that's safe though.
c180f501 7016
675c6968 7017gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7018case "$enable_gdbtk" in
7019 no)
7020 GDB_TK="" ;;
c180f501
AC
7021 yes)
7022 GDB_TK="${gdb_tk}" ;;
a0da8069 7023 *)
c180f501
AC
7024 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7025 # distro. Eventually someone will fix this and move Insight, nee
7026 # gdbtk to a separate directory.
7027 if test -d ${srcdir}/gdb/gdbtk ; then
7028 GDB_TK="${gdb_tk}"
7029 else
7030 GDB_TK=""
7031 fi
7032 ;;
a0da8069 7033esac
907be67c
DJ
7034CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7035INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7036
6bd3dfaa 7037# Strip out unwanted targets.
dd12c3a8
NN
7038
7039# While at that, we remove Makefiles if we were started for recursive
7040# configuration, so that the top-level Makefile reconfigures them,
7041# like we used to do when configure itself was recursive.
dd12c3a8 7042
06a51eac
RW
7043# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7044# but now we're fixing up the Makefile ourselves with the additional
7045# commands passed to AC_CONFIG_FILES. Use separate variables
7046# extrasub-{build,host,target} not because there is any reason to split
7047# the substitutions up that way, but only to remain below the limit of
7048# 99 commands in a script, for HP-UX sed.
7049# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7050
81ecdfbb
RW
7051# Check whether --enable-bootstrap was given.
7052if test "${enable_bootstrap+set}" = set; then :
7053 enableval=$enable_bootstrap;
319cab08 7054else
9cb3fa6f 7055 enable_bootstrap=default
81ecdfbb
RW
7056fi
7057
319cab08 7058
9cb3fa6f
PB
7059# Issue errors and warnings for invalid/strange bootstrap combinations.
7060case "$configdirs" in
7061 *gcc*) have_compiler=yes ;;
7062 *) have_compiler=no ;;
7063esac
7064
7065case "$have_compiler:$host:$target:$enable_bootstrap" in
7066 *:*:*:no) ;;
7067
0aed8855 7068 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
7069 # and we are in a native configuration.
7070 yes:$build:$build:default)
0aed8855 7071 enable_bootstrap=yes ;;
9cb3fa6f
PB
7072
7073 *:*:*:default)
7074 enable_bootstrap=no ;;
7075
7076 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 7077 yes:$build:$build:yes)
9cb3fa6f
PB
7078 ;;
7079
7080 # Other configurations, but we have a compiler. Assume the user knows
7081 # what he's doing.
80911fe1 7082 yes:*:*:yes)
81ecdfbb
RW
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7084$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
7085 ;;
7086
7087 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 7088 no:*:*:yes)
81ecdfbb 7089 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
7090
7091 # Fail if wrong command line
7092 *)
81ecdfbb 7093 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
7094 ;;
7095esac
7096
4385ad3c
RW
7097case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7098 *,c++,*:yes:yes) ;;
7099 *:yes:yes)
7100 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7101 ;;
7102esac
7103
16b1ad29
RW
7104case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7105 yes:yes:*\ gold\ *:*,c++,*) ;;
7106 yes:yes:*\ gold\ *:*)
7107 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7108 ;;
7109esac
7110
9cb3fa6f 7111# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7112case $enable_bootstrap in
319cab08 7113 yes)
96655cc4
AO
7114 bootstrap_suffix=bootstrap
7115 BUILD_CONFIG=bootstrap-debug
7116 ;;
319cab08 7117 no)
96655cc4
AO
7118 bootstrap_suffix=no-bootstrap
7119 BUILD_CONFIG=
7120 ;;
319cab08
PB
7121esac
7122
96655cc4
AO
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7124$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7125
7126
7127# Check whether --with-build-config was given.
7128if test "${with_build_config+set}" = set; then :
7129 withval=$with_build_config; case $with_build_config in
7130 yes) with_build_config= ;;
7131 no) with_build_config= BUILD_CONFIG= ;;
7132 esac
7133fi
7134
7135
7136if test "x${with_build_config}" != x; then
7137 BUILD_CONFIG=$with_build_config
7138else
7139 case $BUILD_CONFIG in
7140 bootstrap-debug)
7141 if echo "int f (void) { return 0; }" > conftest.c &&
7142 ${CC} -c conftest.c &&
7143 mv conftest.o conftest.o.g0 &&
7144 ${CC} -c -g conftest.c &&
7145 mv conftest.o conftest.o.g &&
a009f2e7 7146 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7147 :
7148 else
7149 BUILD_CONFIG=
7150 fi
7151 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7152 ;;
7153 esac
7154fi
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7156$as_echo "$BUILD_CONFIG" >&6; }
7157
7158
06a51eac 7159extrasub_build=
6a9cf61e 7160for module in ${build_configdirs} ; do
498d4a71
CF
7161 if test -z "${no_recursion}" \
7162 && test -f ${build_subdir}/${module}/Makefile; then
7163 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7164 rm -f ${build_subdir}/${module}/Makefile
7165 fi
06a51eac 7166 extrasub_build="$extrasub_build
498d4a71
CF
7167/^@if build-$module\$/d
7168/^@endif build-$module\$/d
7169/^@if build-$module-$bootstrap_suffix\$/d
7170/^@endif build-$module-$bootstrap_suffix\$/d"
7171done
06a51eac 7172extrasub_host=
498d4a71 7173for module in ${configdirs} ; do
80911fe1 7174 if test -z "${no_recursion}"; then
8cf39b1b 7175 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7176 if test -f ${file}; then
7177 echo 1>&2 "*** removing ${file} to force reconfigure"
7178 rm -f ${file}
7179 fi
7180 done
498d4a71 7181 fi
06a51eac 7182 extrasub_host="$extrasub_host
498d4a71
CF
7183/^@if $module\$/d
7184/^@endif $module\$/d
7185/^@if $module-$bootstrap_suffix\$/d
7186/^@endif $module-$bootstrap_suffix\$/d"
7187done
06a51eac 7188extrasub_target=
498d4a71
CF
7189for module in ${target_configdirs} ; do
7190 if test -z "${no_recursion}" \
7191 && test -f ${target_subdir}/${module}/Makefile; then
7192 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7193 rm -f ${target_subdir}/${module}/Makefile
7194 fi
e8a5fa9c
RW
7195
7196 # We only bootstrap target libraries listed in bootstrap_target_libs.
7197 case $bootstrap_target_libs in
7198 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7199 *) target_bootstrap_suffix=no-bootstrap ;;
7200 esac
7201
06a51eac 7202 extrasub_target="$extrasub_target
498d4a71
CF
7203/^@if target-$module\$/d
7204/^@endif target-$module\$/d
e8a5fa9c
RW
7205/^@if target-$module-$target_bootstrap_suffix\$/d
7206/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7207done
7208
06a51eac
RW
7209# Do the final fixup along with target modules.
7210extrasub_target="$extrasub_target
6bd3dfaa 7211/^@if /,/^@endif /d"
a0da8069
NN
7212
7213# Create the serialization dependencies. This uses a temporary file.
7214
81ecdfbb
RW
7215# Check whether --enable-serial-configure was given.
7216if test "${enable_serial_configure+set}" = set; then :
7217 enableval=$enable_serial_configure;
7218fi
e6bfb94a
AO
7219
7220
1047cb91
DD
7221case ${enable_serial_configure} in
7222 yes)
7223 enable_serial_build_configure=yes
7224 enable_serial_host_configure=yes
7225 enable_serial_target_configure=yes
7226 ;;
7227esac
7228
a0da8069
NN
7229# These force 'configure's to be done one at a time, to avoid problems
7230# with contention over a shared config.cache.
7231rm -f serdep.tmp
e6bfb94a 7232echo '# serdep.tmp' > serdep.tmp
a0da8069 7233olditem=
1047cb91 7234test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7235for item in ${build_configdirs} ; do
7236 case ${olditem} in
7237 "") ;;
e6bfb94a 7238 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7239 esac
7240 olditem=${item}
7241done
7242olditem=
1047cb91 7243test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7244for item in ${configdirs} ; do
7245 case ${olditem} in
7246 "") ;;
e6bfb94a 7247 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7248 esac
7249 olditem=${item}
7250done
7251olditem=
1047cb91 7252test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7253for item in ${target_configdirs} ; do
7254 case ${olditem} in
7255 "") ;;
e6bfb94a 7256 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7257 esac
7258 olditem=${item}
7259done
7260serialization_dependencies=serdep.tmp
7261
7262
e6bfb94a 7263# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7264# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7265# might not want to pass down to subconfigures. The exception being
7266# --cache-file=/dev/null, which is used to turn off the use of cache
7267# files altogether, and which should be passed on to subconfigures.
7268# Also strip program-prefix, program-suffix, and program-transform-name,
7269# so that we can pass down a consistent program-transform-name.
c6b750e1
DJ
7270baseargs=
7271keep_next=no
7272skip_next=no
7273eval "set -- $ac_configure_args"
18f6b6ee
PB
7274for ac_arg
7275do
c6b750e1
DJ
7276 if test X"$skip_next" = X"yes"; then
7277 skip_next=no
7278 continue
7279 fi
7280 if test X"$keep_next" = X"yes"; then
7281 case $ac_arg in
7282 *\'*)
7283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7284 esac
7285 baseargs="$baseargs '$ac_arg'"
7286 keep_next=no
7287 continue
7288 fi
7289
7290 # Handle separated arguments. Based on the logic generated by
7291 # autoconf 2.59.
7292 case $ac_arg in
7293 *=* | --config-cache | -C | -disable-* | --disable-* \
7294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7296 | -with-* | --with-* | -without-* | --without-* | --x)
7297 separate_arg=no
7298 ;;
7299 -*)
7300 separate_arg=yes
7301 ;;
7302 *)
7303 separate_arg=no
7304 ;;
7305 esac
7306
7307 case "$ac_arg" in
30167e0a
NC
7308 --cache-file=/dev/null | \
7309 -cache-file=/dev/null )
7310 # Handled here to avoid the test to skip args below.
7311 baseargs="$baseargs '$ac_arg'"
7312 # Assert: $separate_arg should always be no.
7313 keep_next=$separate_arg
7314 ;;
c6b750e1
DJ
7315 --no*)
7316 continue
7317 ;;
7318 --c* | \
7319 --sr* | \
7320 --ho* | \
7321 --bu* | \
7322 --t* | \
7323 --program-* | \
7324 -cache_file* | \
7325 -srcdir* | \
7326 -host* | \
7327 -build* | \
7328 -target* | \
7329 -program-prefix* | \
7330 -program-suffix* | \
7331 -program-transform-name* )
7332 skip_next=$separate_arg
7333 continue
7334 ;;
7335 -*)
7336 # An option. Add it.
7337 case $ac_arg in
7338 *\'*)
7339 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7340 esac
7341 baseargs="$baseargs '$ac_arg'"
7342 keep_next=$separate_arg
7343 ;;
7344 *)
7345 # Either a variable assignment, or a nonopt (triplet). Don't
7346 # pass it down; let the Makefile handle this.
7347 continue
7348 ;;
7349 esac
7350done
7351# Remove the initial space we just introduced and, as these will be
7352# expanded by make, quote '$'.
7353baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7354
f27d4f92
DJ
7355# Add in --program-transform-name, after --program-prefix and
7356# --program-suffix have been applied to it. Autoconf has already
7357# doubled dollar signs and backslashes in program_transform_name; we want
7358# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7359# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7360# Also, because we want to override the logic in subdir configure scripts to
7361# choose program_transform_name, replace any s,x,x, with s,y,y,.
7362sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7363${program_transform_name}
7364EOF_SED
7365gcc_transform_name=`cat conftestsed.out`
7366rm -f conftestsed.out
7367baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7368if test "$silent" = yes; then
7369 baseargs="$baseargs --silent"
7370fi
34a0f3cf 7371baseargs="$baseargs --disable-option-checking"
f27d4f92 7372
4074d5f2
RW
7373# Record and document user additions to sub configure arguments.
7374
7375
7376
7377
a0da8069
NN
7378# For the build-side libraries, we just need to pretend we're native,
7379# and not use the same cache file. Multilibs are neither needed nor
7380# desired.
4074d5f2 7381build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7382
7383# For host modules, accept cache file option, or specification as blank.
7384case "${cache_file}" in
7385"") # empty
7386 cache_file_option="" ;;
7387/* | [A-Za-z]:[\\/]* ) # absolute path
7388 cache_file_option="--cache-file=${cache_file}" ;;
7389*) # relative path
7390 cache_file_option="--cache-file=../${cache_file}" ;;
7391esac
7392
82252c06
NN
7393# Host dirs don't like to share a cache file either, horribly enough.
7394# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7395host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7396
4074d5f2 7397target_configargs="$target_configargs ${baseargs}"
a0da8069
NN
7398
7399# Passing a --with-cross-host argument lets the target libraries know
7400# whether they are being built with a cross-compiler or being built
7401# native. However, it would be better to use other mechanisms to make the
7402# sorts of decisions they want to make on this basis. Please consider
7403# this option to be deprecated. FIXME.
7404if test x${is_cross_compiler} = xyes ; then
c6b750e1 7405 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7406fi
7407
938d2b74
RW
7408# Default to --enable-multilib.
7409if test x${enable_multilib} = x ; then
a0da8069 7410 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7411fi
a0da8069
NN
7412
7413# Pass --with-newlib if appropriate. Note that target_configdirs has
7414# changed from the earlier setting of with_newlib.
7415if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7416 target_configargs="--with-newlib ${target_configargs}"
7417fi
7418
95036d20
NN
7419# Different target subdirs use different values of certain variables
7420# (notably CXX). Worse, multilibs use *lots* of different values.
7421# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7422# it doesn't automatically accept command-line overrides of them.
7423# This means it's not safe for target subdirs to share a cache file,
7424# which is disgusting, but there you have it. Hopefully this can be
7425# fixed in future. It's still worthwhile to use a cache file for each
7426# directory. I think.
7427
ae380b45
MS
7428# Pass the appropriate --build, --host, --target and --cache-file arguments.
7429# We need to pass --target, as newer autoconf's requires consistency
7430# for target_alias and gcc doesn't manage it consistently.
4b900473 7431target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7432
a0da8069
NN
7433FLAGS_FOR_TARGET=
7434case " $target_configdirs " in
7435 *" newlib "*)
7436 case " $target_configargs " in
7437 *" --with-newlib "*)
7438 case "$target" in
1f53ca9a
AO
7439 *-cygwin*)
7440 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'
7441 ;;
a0da8069
NN
7442 esac
7443
7444 # If we're not building GCC, don't discard standard headers.
7445 if test -d ${srcdir}/gcc; then
7446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7447
7448 if test "${build}" != "${host}"; then
7449 # On Canadian crosses, CC_FOR_TARGET will have already been set
7450 # by `configure', so we won't have an opportunity to add -Bgcc/
7451 # to it. This is right: we don't want to search that directory
7452 # for binaries, but we want the header files in there, so add
7453 # them explicitly.
e552509b 7454 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7455
7456 # Someone might think of using the pre-installed headers on
7457 # Canadian crosses, in case the installed compiler is not fully
7458 # compatible with the compiler being built. In this case, it
7459 # would be better to flag an error than risking having
7460 # incompatible object files being constructed. We can't
7461 # guarantee that an error will be flagged, but let's hope the
7462 # compiler will do it, when presented with incompatible header
7463 # files.
7464 fi
7465 fi
7466
7467 case "${target}-${is_cross_compiler}" in
ec11bdc6 7468 i[3456789]86-*-linux*-no)
a0da8069
NN
7469 # Here host == target, so we don't need to build gcc,
7470 # so we don't want to discard standard headers.
7471 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7472 ;;
7473 *)
7474 # If we're building newlib, use its generic headers last, but search
7475 # for any libc-related directories first (so make it the last -B
7476 # switch).
7477 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
7478
7479 # If we're building libgloss, find the startup file, simulator library
7480 # and linker script.
7481 case " $target_configdirs " in
7482 *" libgloss "*)
7483 # Look for startup file, simulator library and maybe linker script.
7484 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7485 # Look for libnosys.a in case the target needs it.
7486 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7487 # Most targets have the linker script in the source directory.
7488 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7489 ;;
7490 esac
a0da8069
NN
7491 ;;
7492 esac
7493 ;;
7494 esac
7495 ;;
7496esac
1f53ca9a 7497
45055374 7498case "$target" in
1f53ca9a
AO
7499 x86_64-*mingw* | *-w64-mingw*)
7500 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7501 # however, use a symlink named 'mingw' in ${prefix} .
7502 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7503 ;;
7504 *-mingw*)
7505 # MinGW can't be handled as Cygwin above since it does not use newlib.
7506 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'
7507 ;;
45055374 7508esac
a0da8069 7509
5fbad20a
DD
7510# Allow the user to override the flags for
7511# our build compiler if desired.
c66487f8
NC
7512if test x"${build}" = x"${host}" ; then
7513 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7514 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7515 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7516fi
5fbad20a 7517
a0da8069
NN
7518# On Canadian crosses, we'll be searching the right directories for
7519# the previously-installed cross compiler, so don't bother to add
7520# flags for directories within the install tree of the compiler
7521# being built; programs in there won't even run.
7522if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7523 # Search for pre-installed headers if nothing else fits.
bba45b8b 7524 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
7525fi
7526
7527if test "x${use_gnu_ld}" = x &&
7528 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7529 # Arrange for us to find uninstalled linker scripts.
b00612cc 7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7531fi
7532
a481dbb7
DD
7533# Search for other target-specific linker scripts and such.
7534case "${target}" in
4e206d7e
DB
7535 mep*)
7536 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7537 ;;
7538esac
7539
a0da8069 7540# Makefile fragments.
3e707e94
PB
7541for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7542do
7543 eval fragval=\$$frag
7544 if test $fragval != /dev/null; then
7545 eval $frag=${srcdir}/$fragval
7546 fi
7547done
a0da8069
NN
7548
7549
7550
7551
7552
7553# Miscellanea: directories, flags, etc.
7554
7555
7556
7557
7558
7559
7560
3bbd2f8f 7561
6a9cf61e 7562# Build module lists & subconfigure args.
a0da8069
NN
7563
7564
7565
be01d343
PB
7566# Host module lists & subconfigure args.
7567
7568
7569
911e63d0 7570
be01d343
PB
7571# Target module lists & subconfigure args.
7572
7573
7574
7575# Build tools.
7576
7577
7578
1576798e
PB
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
e552509b 7593
be01d343
PB
7594# Generate default definitions for YACC, M4, LEX and other programs that run
7595# on the build machine. These are used if the Makefile can't locate these
7596# programs in objdir.
7597MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7598
7599for ac_prog in 'bison -y' byacc yacc
7600do
c6b750e1 7601 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7602set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604$as_echo_n "checking for $ac_word... " >&6; }
7605if test "${ac_cv_prog_YACC+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
be01d343
PB
7607else
7608 if test -n "$YACC"; then
7609 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7610else
c6b750e1
DJ
7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7618 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7620 break 2
7621 fi
7622done
81ecdfbb
RW
7623 done
7624IFS=$as_save_IFS
c6b750e1 7625
be01d343
PB
7626fi
7627fi
c6b750e1 7628YACC=$ac_cv_prog_YACC
be01d343 7629if test -n "$YACC"; then
81ecdfbb
RW
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7631$as_echo "$YACC" >&6; }
be01d343 7632else
81ecdfbb
RW
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634$as_echo "no" >&6; }
be01d343
PB
7635fi
7636
81ecdfbb 7637
c6b750e1 7638 test -n "$YACC" && break
be01d343
PB
7639done
7640test -n "$YACC" || YACC="$MISSING bison -y"
7641
7642case " $build_configdirs " in
7643 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7644 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7645esac
7646
7647for ac_prog in bison
7648do
c6b750e1 7649 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7650set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652$as_echo_n "checking for $ac_word... " >&6; }
7653if test "${ac_cv_prog_BISON+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
be01d343
PB
7655else
7656 if test -n "$BISON"; then
7657 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7658else
c6b750e1
DJ
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7666 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7668 break 2
7669 fi
7670done
81ecdfbb
RW
7671 done
7672IFS=$as_save_IFS
c6b750e1 7673
be01d343
PB
7674fi
7675fi
c6b750e1 7676BISON=$ac_cv_prog_BISON
be01d343 7677if test -n "$BISON"; then
81ecdfbb
RW
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7679$as_echo "$BISON" >&6; }
be01d343 7680else
81ecdfbb
RW
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682$as_echo "no" >&6; }
be01d343
PB
7683fi
7684
81ecdfbb 7685
c6b750e1 7686 test -n "$BISON" && break
be01d343
PB
7687done
7688test -n "$BISON" || BISON="$MISSING bison"
7689
7690case " $build_configdirs " in
7691 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7692esac
7693
7694for ac_prog in gm4 gnum4 m4
7695do
c6b750e1 7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7697set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699$as_echo_n "checking for $ac_word... " >&6; }
7700if test "${ac_cv_prog_M4+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
be01d343
PB
7702else
7703 if test -n "$M4"; then
7704 ac_cv_prog_M4="$M4" # Let the user override the test.
7705else
c6b750e1
DJ
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7713 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7715 break 2
7716 fi
7717done
81ecdfbb
RW
7718 done
7719IFS=$as_save_IFS
c6b750e1 7720
be01d343
PB
7721fi
7722fi
c6b750e1 7723M4=$ac_cv_prog_M4
be01d343 7724if test -n "$M4"; then
81ecdfbb
RW
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7726$as_echo "$M4" >&6; }
be01d343 7727else
81ecdfbb
RW
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729$as_echo "no" >&6; }
be01d343
PB
7730fi
7731
81ecdfbb 7732
c6b750e1 7733 test -n "$M4" && break
be01d343
PB
7734done
7735test -n "$M4" || M4="$MISSING m4"
7736
7737case " $build_configdirs " in
7738 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7739esac
7740
7741for ac_prog in flex lex
7742do
c6b750e1 7743 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7744set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746$as_echo_n "checking for $ac_word... " >&6; }
7747if test "${ac_cv_prog_LEX+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
be01d343
PB
7749else
7750 if test -n "$LEX"; then
7751 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7752else
c6b750e1
DJ
7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7760 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7762 break 2
7763 fi
7764done
81ecdfbb
RW
7765 done
7766IFS=$as_save_IFS
c6b750e1 7767
be01d343
PB
7768fi
7769fi
c6b750e1 7770LEX=$ac_cv_prog_LEX
be01d343 7771if test -n "$LEX"; then
81ecdfbb
RW
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7773$as_echo "$LEX" >&6; }
be01d343 7774else
81ecdfbb
RW
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776$as_echo "no" >&6; }
be01d343
PB
7777fi
7778
81ecdfbb 7779
c6b750e1 7780 test -n "$LEX" && break
be01d343
PB
7781done
7782test -n "$LEX" || LEX="$MISSING flex"
7783
7784case " $build_configdirs " in
7785 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7786 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7787esac
7788
7789for ac_prog in flex
7790do
c6b750e1 7791 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7792set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794$as_echo_n "checking for $ac_word... " >&6; }
7795if test "${ac_cv_prog_FLEX+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
be01d343
PB
7797else
7798 if test -n "$FLEX"; then
7799 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7800else
c6b750e1
DJ
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7808 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7810 break 2
7811 fi
7812done
81ecdfbb
RW
7813 done
7814IFS=$as_save_IFS
c6b750e1 7815
be01d343
PB
7816fi
7817fi
c6b750e1 7818FLEX=$ac_cv_prog_FLEX
be01d343 7819if test -n "$FLEX"; then
81ecdfbb
RW
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7821$as_echo "$FLEX" >&6; }
be01d343 7822else
81ecdfbb
RW
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
be01d343
PB
7825fi
7826
81ecdfbb 7827
c6b750e1 7828 test -n "$FLEX" && break
be01d343
PB
7829done
7830test -n "$FLEX" || FLEX="$MISSING flex"
7831
7832case " $build_configdirs " in
7833 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7834esac
7835
7836for ac_prog in makeinfo
7837do
c6b750e1 7838 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7839set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841$as_echo_n "checking for $ac_word... " >&6; }
7842if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
be01d343
PB
7844else
7845 if test -n "$MAKEINFO"; then
7846 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7847else
c6b750e1
DJ
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7855 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7857 break 2
7858 fi
7859done
81ecdfbb
RW
7860 done
7861IFS=$as_save_IFS
c6b750e1 7862
be01d343
PB
7863fi
7864fi
c6b750e1 7865MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7866if test -n "$MAKEINFO"; then
81ecdfbb
RW
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7868$as_echo "$MAKEINFO" >&6; }
be01d343 7869else
81ecdfbb
RW
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871$as_echo "no" >&6; }
be01d343
PB
7872fi
7873
81ecdfbb 7874
c6b750e1 7875 test -n "$MAKEINFO" && break
be01d343
PB
7876done
7877test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7878
7879case " $build_configdirs " in
7880 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7881 *)
7882
10ad8ef3 7883 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7884 # higher, else we use the "missing" dummy.
7885 if ${MAKEINFO} --version \
10ad8ef3 7886 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7887 :
7888 else
7889 MAKEINFO="$MISSING makeinfo"
7890 fi
7891 ;;
7892
7893esac
a0da8069 7894
be01d343 7895# FIXME: expect and dejagnu may become build tools?
a0da8069 7896
be01d343
PB
7897for ac_prog in expect
7898do
c6b750e1 7899 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7900set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902$as_echo_n "checking for $ac_word... " >&6; }
7903if test "${ac_cv_prog_EXPECT+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
be01d343
PB
7905else
7906 if test -n "$EXPECT"; then
7907 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7908else
c6b750e1
DJ
7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7916 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7918 break 2
7919 fi
7920done
81ecdfbb
RW
7921 done
7922IFS=$as_save_IFS
c6b750e1 7923
be01d343
PB
7924fi
7925fi
c6b750e1 7926EXPECT=$ac_cv_prog_EXPECT
be01d343 7927if test -n "$EXPECT"; then
81ecdfbb
RW
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7929$as_echo "$EXPECT" >&6; }
be01d343 7930else
81ecdfbb
RW
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932$as_echo "no" >&6; }
be01d343 7933fi
a0da8069 7934
81ecdfbb 7935
c6b750e1 7936 test -n "$EXPECT" && break
be01d343
PB
7937done
7938test -n "$EXPECT" || EXPECT="expect"
a0da8069 7939
be01d343
PB
7940case " $configdirs " in
7941 *" expect "*)
7942 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7943 ;;
7944esac
a0da8069 7945
be01d343
PB
7946for ac_prog in runtest
7947do
c6b750e1 7948 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7949set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951$as_echo_n "checking for $ac_word... " >&6; }
7952if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
be01d343
PB
7954else
7955 if test -n "$RUNTEST"; then
7956 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7957else
c6b750e1
DJ
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7965 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7967 break 2
7968 fi
7969done
81ecdfbb
RW
7970 done
7971IFS=$as_save_IFS
c6b750e1 7972
be01d343
PB
7973fi
7974fi
c6b750e1 7975RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7976if test -n "$RUNTEST"; then
81ecdfbb
RW
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7978$as_echo "$RUNTEST" >&6; }
be01d343 7979else
81ecdfbb
RW
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
be01d343 7982fi
a0da8069 7983
81ecdfbb 7984
c6b750e1 7985 test -n "$RUNTEST" && break
be01d343
PB
7986done
7987test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7988
be01d343
PB
7989case " $configdirs " in
7990 *" dejagnu "*)
6b89cc21 7991 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7992 ;;
7993esac
a0da8069
NN
7994
7995
a0da8069 7996# Host tools.
859789af
AC
7997ncn_tool_prefix=
7998test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7999ncn_target_tool_prefix=
8000test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8001
9a819804
AO
8002
8003
8004if test -n "$AR"; then
8005 ac_cv_prog_AR=$AR
8006elif test -n "$ac_cv_prog_AR"; then
8007 AR=$ac_cv_prog_AR
8008fi
8009
8010if test -n "$ac_cv_prog_AR"; then
8011 for ncn_progname in ar; do
8012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8013set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
8016if test "${ac_cv_prog_AR+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
9a819804
AO
8018else
8019 if test -n "$AR"; then
8020 ac_cv_prog_AR="$AR" # Let the user override the test.
8021else
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8029 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8031 break 2
8032 fi
8033done
81ecdfbb
RW
8034 done
8035IFS=$as_save_IFS
9a819804
AO
8036
8037fi
8038fi
8039AR=$ac_cv_prog_AR
8040if test -n "$AR"; then
81ecdfbb
RW
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8042$as_echo "$AR" >&6; }
9a819804 8043else
81ecdfbb
RW
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
9a819804
AO
8046fi
8047
81ecdfbb 8048
9a819804
AO
8049 done
8050fi
8051
8052for ncn_progname in ar; do
05cbd757
PB
8053 if test -n "$ncn_tool_prefix"; then
8054 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8055set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057$as_echo_n "checking for $ac_word... " >&6; }
8058if test "${ac_cv_prog_AR+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
859789af
AC
8060else
8061 if test -n "$AR"; then
8062 ac_cv_prog_AR="$AR" # Let the user override the test.
8063else
c6b750e1
DJ
8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8071 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8073 break 2
8074 fi
8075done
81ecdfbb
RW
8076 done
8077IFS=$as_save_IFS
c6b750e1 8078
859789af
AC
8079fi
8080fi
c6b750e1 8081AR=$ac_cv_prog_AR
859789af 8082if test -n "$AR"; then
81ecdfbb
RW
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8084$as_echo "$AR" >&6; }
859789af 8085else
81ecdfbb
RW
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087$as_echo "no" >&6; }
859789af
AC
8088fi
8089
81ecdfbb 8090
05cbd757
PB
8091 fi
8092 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8094set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096$as_echo_n "checking for $ac_word... " >&6; }
8097if test "${ac_cv_prog_AR+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
859789af 8099else
05cbd757
PB
8100 if test -n "$AR"; then
8101 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8102else
c6b750e1
DJ
8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104for as_dir in $PATH
8105do
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8110 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8112 break 2
8113 fi
8114done
81ecdfbb
RW
8115 done
8116IFS=$as_save_IFS
c6b750e1 8117
859789af
AC
8118fi
8119fi
c6b750e1 8120AR=$ac_cv_prog_AR
05cbd757 8121if test -n "$AR"; then
81ecdfbb
RW
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8123$as_echo "$AR" >&6; }
859789af 8124else
81ecdfbb
RW
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126$as_echo "no" >&6; }
859789af 8127fi
c6b750e1 8128
81ecdfbb 8129
05cbd757
PB
8130 fi
8131 test -n "$ac_cv_prog_AR" && break
8132done
8133
8134if test -z "$ac_cv_prog_AR" ; then
8135 set dummy ar
8136 if test $build = $host ; then
8137 AR="$2"
859789af 8138 else
05cbd757 8139 AR="${ncn_tool_prefix}$2"
859789af 8140 fi
859789af
AC
8141fi
8142
9a819804
AO
8143
8144
8145if test -n "$AS"; then
8146 ac_cv_prog_AS=$AS
8147elif test -n "$ac_cv_prog_AS"; then
8148 AS=$ac_cv_prog_AS
8149fi
8150
8151if test -n "$ac_cv_prog_AS"; then
8152 for ncn_progname in as; do
8153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8154set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156$as_echo_n "checking for $ac_word... " >&6; }
8157if test "${ac_cv_prog_AS+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
9a819804
AO
8159else
8160 if test -n "$AS"; then
8161 ac_cv_prog_AS="$AS" # Let the user override the test.
8162else
8163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164for as_dir in $PATH
8165do
8166 IFS=$as_save_IFS
8167 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8170 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8172 break 2
8173 fi
8174done
81ecdfbb
RW
8175 done
8176IFS=$as_save_IFS
9a819804
AO
8177
8178fi
8179fi
8180AS=$ac_cv_prog_AS
8181if test -n "$AS"; then
81ecdfbb
RW
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8183$as_echo "$AS" >&6; }
9a819804 8184else
81ecdfbb
RW
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186$as_echo "no" >&6; }
9a819804
AO
8187fi
8188
81ecdfbb 8189
9a819804
AO
8190 done
8191fi
8192
8193for ncn_progname in as; do
05cbd757
PB
8194 if test -n "$ncn_tool_prefix"; then
8195 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8196set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198$as_echo_n "checking for $ac_word... " >&6; }
8199if test "${ac_cv_prog_AS+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
859789af
AC
8201else
8202 if test -n "$AS"; then
8203 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8204else
8205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206for as_dir in $PATH
8207do
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8212 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8214 break 2
8215 fi
8216done
81ecdfbb
RW
8217 done
8218IFS=$as_save_IFS
c6b750e1 8219
859789af
AC
8220fi
8221fi
c6b750e1 8222AS=$ac_cv_prog_AS
859789af 8223if test -n "$AS"; then
81ecdfbb
RW
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8225$as_echo "$AS" >&6; }
859789af 8226else
81ecdfbb
RW
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228$as_echo "no" >&6; }
859789af
AC
8229fi
8230
81ecdfbb 8231
05cbd757
PB
8232 fi
8233 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8235set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237$as_echo_n "checking for $ac_word... " >&6; }
8238if test "${ac_cv_prog_AS+set}" = set; then :
8239 $as_echo_n "(cached) " >&6
859789af 8240else
05cbd757
PB
8241 if test -n "$AS"; then
8242 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8243else
c6b750e1
DJ
8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245for as_dir in $PATH
8246do
8247 IFS=$as_save_IFS
8248 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8251 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8253 break 2
8254 fi
8255done
81ecdfbb
RW
8256 done
8257IFS=$as_save_IFS
c6b750e1 8258
859789af
AC
8259fi
8260fi
c6b750e1 8261AS=$ac_cv_prog_AS
05cbd757 8262if test -n "$AS"; then
81ecdfbb
RW
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8264$as_echo "$AS" >&6; }
859789af 8265else
81ecdfbb
RW
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267$as_echo "no" >&6; }
859789af 8268fi
c6b750e1 8269
81ecdfbb 8270
05cbd757
PB
8271 fi
8272 test -n "$ac_cv_prog_AS" && break
8273done
8274
8275if test -z "$ac_cv_prog_AS" ; then
8276 set dummy as
8277 if test $build = $host ; then
8278 AS="$2"
859789af 8279 else
05cbd757 8280 AS="${ncn_tool_prefix}$2"
859789af 8281 fi
859789af
AC
8282fi
8283
9a819804
AO
8284
8285
8286if test -n "$DLLTOOL"; then
8287 ac_cv_prog_DLLTOOL=$DLLTOOL
8288elif test -n "$ac_cv_prog_DLLTOOL"; then
8289 DLLTOOL=$ac_cv_prog_DLLTOOL
8290fi
8291
8292if test -n "$ac_cv_prog_DLLTOOL"; then
8293 for ncn_progname in dlltool; do
8294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8295set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297$as_echo_n "checking for $ac_word... " >&6; }
8298if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
9a819804
AO
8300else
8301 if test -n "$DLLTOOL"; then
8302 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8303else
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8311 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8313 break 2
8314 fi
8315done
81ecdfbb
RW
8316 done
8317IFS=$as_save_IFS
9a819804
AO
8318
8319fi
8320fi
8321DLLTOOL=$ac_cv_prog_DLLTOOL
8322if test -n "$DLLTOOL"; then
81ecdfbb
RW
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8324$as_echo "$DLLTOOL" >&6; }
9a819804 8325else
81ecdfbb
RW
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327$as_echo "no" >&6; }
9a819804
AO
8328fi
8329
81ecdfbb 8330
9a819804
AO
8331 done
8332fi
8333
8334for ncn_progname in dlltool; do
05cbd757
PB
8335 if test -n "$ncn_tool_prefix"; then
8336 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8337set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339$as_echo_n "checking for $ac_word... " >&6; }
8340if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
859789af
AC
8342else
8343 if test -n "$DLLTOOL"; then
8344 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8345else
c6b750e1
DJ
8346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347for as_dir in $PATH
8348do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8353 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8355 break 2
8356 fi
8357done
81ecdfbb
RW
8358 done
8359IFS=$as_save_IFS
c6b750e1 8360
859789af
AC
8361fi
8362fi
c6b750e1 8363DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8364if test -n "$DLLTOOL"; then
81ecdfbb
RW
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8366$as_echo "$DLLTOOL" >&6; }
859789af 8367else
81ecdfbb
RW
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369$as_echo "no" >&6; }
859789af
AC
8370fi
8371
81ecdfbb 8372
05cbd757
PB
8373 fi
8374 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8376set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378$as_echo_n "checking for $ac_word... " >&6; }
8379if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
859789af 8381else
05cbd757
PB
8382 if test -n "$DLLTOOL"; then
8383 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8384else
c6b750e1
DJ
8385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386for as_dir in $PATH
8387do
8388 IFS=$as_save_IFS
8389 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8392 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8394 break 2
8395 fi
8396done
81ecdfbb
RW
8397 done
8398IFS=$as_save_IFS
c6b750e1 8399
859789af
AC
8400fi
8401fi
c6b750e1 8402DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8403if test -n "$DLLTOOL"; then
81ecdfbb
RW
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8405$as_echo "$DLLTOOL" >&6; }
859789af 8406else
81ecdfbb
RW
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408$as_echo "no" >&6; }
859789af 8409fi
c6b750e1 8410
81ecdfbb 8411
05cbd757
PB
8412 fi
8413 test -n "$ac_cv_prog_DLLTOOL" && break
8414done
8415
8416if test -z "$ac_cv_prog_DLLTOOL" ; then
8417 set dummy dlltool
8418 if test $build = $host ; then
8419 DLLTOOL="$2"
859789af 8420 else
05cbd757 8421 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8422 fi
859789af
AC
8423fi
8424
9a819804
AO
8425
8426
8427if test -n "$LD"; then
8428 ac_cv_prog_LD=$LD
8429elif test -n "$ac_cv_prog_LD"; then
8430 LD=$ac_cv_prog_LD
8431fi
8432
8433if test -n "$ac_cv_prog_LD"; then
8434 for ncn_progname in ld; do
8435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8436set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438$as_echo_n "checking for $ac_word... " >&6; }
8439if test "${ac_cv_prog_LD+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
9a819804
AO
8441else
8442 if test -n "$LD"; then
8443 ac_cv_prog_LD="$LD" # Let the user override the test.
8444else
8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446for as_dir in $PATH
8447do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8452 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8454 break 2
8455 fi
8456done
81ecdfbb
RW
8457 done
8458IFS=$as_save_IFS
9a819804
AO
8459
8460fi
8461fi
8462LD=$ac_cv_prog_LD
8463if test -n "$LD"; then
81ecdfbb
RW
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8465$as_echo "$LD" >&6; }
9a819804 8466else
81ecdfbb
RW
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }
9a819804
AO
8469fi
8470
81ecdfbb 8471
9a819804
AO
8472 done
8473fi
8474
8475for ncn_progname in ld; do
05cbd757
PB
8476 if test -n "$ncn_tool_prefix"; then
8477 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8478set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480$as_echo_n "checking for $ac_word... " >&6; }
8481if test "${ac_cv_prog_LD+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
859789af
AC
8483else
8484 if test -n "$LD"; then
8485 ac_cv_prog_LD="$LD" # Let the user override the test.
8486else
c6b750e1
DJ
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8494 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8496 break 2
8497 fi
8498done
81ecdfbb
RW
8499 done
8500IFS=$as_save_IFS
c6b750e1 8501
859789af
AC
8502fi
8503fi
c6b750e1 8504LD=$ac_cv_prog_LD
859789af 8505if test -n "$LD"; then
81ecdfbb
RW
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8507$as_echo "$LD" >&6; }
859789af 8508else
81ecdfbb
RW
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510$as_echo "no" >&6; }
859789af
AC
8511fi
8512
81ecdfbb 8513
05cbd757
PB
8514 fi
8515 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8517set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519$as_echo_n "checking for $ac_word... " >&6; }
8520if test "${ac_cv_prog_LD+set}" = set; then :
8521 $as_echo_n "(cached) " >&6
859789af 8522else
05cbd757
PB
8523 if test -n "$LD"; then
8524 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8525else
c6b750e1
DJ
8526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527for as_dir in $PATH
8528do
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8533 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8535 break 2
8536 fi
8537done
81ecdfbb
RW
8538 done
8539IFS=$as_save_IFS
c6b750e1 8540
859789af
AC
8541fi
8542fi
c6b750e1 8543LD=$ac_cv_prog_LD
05cbd757 8544if test -n "$LD"; then
81ecdfbb
RW
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8546$as_echo "$LD" >&6; }
859789af 8547else
81ecdfbb
RW
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549$as_echo "no" >&6; }
859789af 8550fi
c6b750e1 8551
81ecdfbb 8552
05cbd757
PB
8553 fi
8554 test -n "$ac_cv_prog_LD" && break
8555done
8556
8557if test -z "$ac_cv_prog_LD" ; then
8558 set dummy ld
8559 if test $build = $host ; then
8560 LD="$2"
859789af 8561 else
05cbd757 8562 LD="${ncn_tool_prefix}$2"
859789af 8563 fi
859789af
AC
8564fi
8565
9a819804
AO
8566
8567
8568if test -n "$LIPO"; then
8569 ac_cv_prog_LIPO=$LIPO
8570elif test -n "$ac_cv_prog_LIPO"; then
8571 LIPO=$ac_cv_prog_LIPO
8572fi
8573
8574if test -n "$ac_cv_prog_LIPO"; then
8575 for ncn_progname in lipo; do
8576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8577set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579$as_echo_n "checking for $ac_word... " >&6; }
8580if test "${ac_cv_prog_LIPO+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
9a819804
AO
8582else
8583 if test -n "$LIPO"; then
8584 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8585else
8586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587for as_dir in $PATH
8588do
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8593 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8595 break 2
8596 fi
8597done
81ecdfbb
RW
8598 done
8599IFS=$as_save_IFS
9a819804
AO
8600
8601fi
8602fi
8603LIPO=$ac_cv_prog_LIPO
8604if test -n "$LIPO"; then
81ecdfbb
RW
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8606$as_echo "$LIPO" >&6; }
9a819804 8607else
81ecdfbb
RW
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609$as_echo "no" >&6; }
9a819804
AO
8610fi
8611
81ecdfbb 8612
9a819804
AO
8613 done
8614fi
8615
8616for ncn_progname in lipo; do
be01d343
PB
8617 if test -n "$ncn_tool_prefix"; then
8618 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8619set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621$as_echo_n "checking for $ac_word... " >&6; }
8622if test "${ac_cv_prog_LIPO+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
be01d343
PB
8624else
8625 if test -n "$LIPO"; then
8626 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8627else
c6b750e1
DJ
8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
8630do
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8635 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8637 break 2
8638 fi
8639done
81ecdfbb
RW
8640 done
8641IFS=$as_save_IFS
c6b750e1 8642
be01d343
PB
8643fi
8644fi
c6b750e1 8645LIPO=$ac_cv_prog_LIPO
be01d343 8646if test -n "$LIPO"; then
81ecdfbb
RW
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8648$as_echo "$LIPO" >&6; }
be01d343 8649else
81ecdfbb
RW
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651$as_echo "no" >&6; }
be01d343
PB
8652fi
8653
81ecdfbb 8654
be01d343
PB
8655 fi
8656 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8658set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8660$as_echo_n "checking for $ac_word... " >&6; }
8661if test "${ac_cv_prog_LIPO+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
be01d343
PB
8663else
8664 if test -n "$LIPO"; then
8665 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8666else
c6b750e1
DJ
8667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8674 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8676 break 2
8677 fi
8678done
81ecdfbb
RW
8679 done
8680IFS=$as_save_IFS
c6b750e1 8681
be01d343
PB
8682fi
8683fi
c6b750e1 8684LIPO=$ac_cv_prog_LIPO
be01d343 8685if test -n "$LIPO"; then
81ecdfbb
RW
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8687$as_echo "$LIPO" >&6; }
be01d343 8688else
81ecdfbb
RW
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690$as_echo "no" >&6; }
be01d343 8691fi
c6b750e1 8692
81ecdfbb 8693
be01d343
PB
8694 fi
8695 test -n "$ac_cv_prog_LIPO" && break
8696done
8697
8698if test -z "$ac_cv_prog_LIPO" ; then
8699 set dummy lipo
8700 if test $build = $host ; then
8701 LIPO="$2"
8702 else
8703 LIPO="${ncn_tool_prefix}$2"
8704 fi
8705fi
8706
9a819804
AO
8707
8708
8709if test -n "$NM"; then
8710 ac_cv_prog_NM=$NM
8711elif test -n "$ac_cv_prog_NM"; then
8712 NM=$ac_cv_prog_NM
8713fi
8714
8715if test -n "$ac_cv_prog_NM"; then
8716 for ncn_progname in nm; do
8717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8718set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720$as_echo_n "checking for $ac_word... " >&6; }
8721if test "${ac_cv_prog_NM+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
859789af
AC
8723else
8724 if test -n "$NM"; then
8725 ac_cv_prog_NM="$NM" # Let the user override the test.
8726else
c6b750e1
DJ
8727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728for as_dir in $PATH
8729do
8730 IFS=$as_save_IFS
8731 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8732 for ac_exec_ext in '' $ac_executable_extensions; do
8733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8734 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8736 break 2
8737 fi
8738done
81ecdfbb
RW
8739 done
8740IFS=$as_save_IFS
c6b750e1 8741
859789af
AC
8742fi
8743fi
c6b750e1 8744NM=$ac_cv_prog_NM
859789af 8745if test -n "$NM"; then
81ecdfbb
RW
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8747$as_echo "$NM" >&6; }
859789af 8748else
81ecdfbb
RW
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750$as_echo "no" >&6; }
859789af
AC
8751fi
8752
81ecdfbb 8753
9a819804
AO
8754 done
8755fi
8756
8757for ncn_progname in nm; do
8758 if test -n "$ncn_tool_prefix"; then
8759 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8760set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762$as_echo_n "checking for $ac_word... " >&6; }
8763if test "${ac_cv_prog_NM+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
859789af 8765else
05cbd757
PB
8766 if test -n "$NM"; then
8767 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8768else
c6b750e1
DJ
8769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770for as_dir in $PATH
8771do
8772 IFS=$as_save_IFS
8773 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8774 for ac_exec_ext in '' $ac_executable_extensions; do
8775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8776 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8778 break 2
8779 fi
8780done
81ecdfbb
RW
8781 done
8782IFS=$as_save_IFS
c6b750e1 8783
859789af
AC
8784fi
8785fi
c6b750e1 8786NM=$ac_cv_prog_NM
05cbd757 8787if test -n "$NM"; then
81ecdfbb
RW
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8789$as_echo "$NM" >&6; }
859789af 8790else
81ecdfbb
RW
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792$as_echo "no" >&6; }
859789af 8793fi
c6b750e1 8794
81ecdfbb 8795
05cbd757 8796 fi
9a819804
AO
8797 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8799set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801$as_echo_n "checking for $ac_word... " >&6; }
8802if test "${ac_cv_prog_NM+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
9a819804
AO
8804else
8805 if test -n "$NM"; then
8806 ac_cv_prog_NM="$NM" # Let the user override the test.
8807else
8808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809for as_dir in $PATH
8810do
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8815 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8817 break 2
8818 fi
8819done
81ecdfbb
RW
8820 done
8821IFS=$as_save_IFS
9a819804
AO
8822
8823fi
8824fi
8825NM=$ac_cv_prog_NM
8826if test -n "$NM"; then
81ecdfbb
RW
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8828$as_echo "$NM" >&6; }
9a819804 8829else
81ecdfbb
RW
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831$as_echo "no" >&6; }
9a819804
AO
8832fi
8833
81ecdfbb 8834
9a819804
AO
8835 fi
8836 test -n "$ac_cv_prog_NM" && break
8837done
8838
8839if test -z "$ac_cv_prog_NM" ; then
8840 set dummy nm
8841 if test $build = $host ; then
8842 NM="$2"
8843 else
8844 NM="${ncn_tool_prefix}$2"
8845 fi
8846fi
8847
8848
8849
8850if test -n "$RANLIB"; then
8851 ac_cv_prog_RANLIB=$RANLIB
8852elif test -n "$ac_cv_prog_RANLIB"; then
8853 RANLIB=$ac_cv_prog_RANLIB
8854fi
8855
8856if test -n "$ac_cv_prog_RANLIB"; then
8857 for ncn_progname in ranlib; do
8858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8859set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861$as_echo_n "checking for $ac_word... " >&6; }
8862if test "${ac_cv_prog_RANLIB+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
9a819804
AO
8864else
8865 if test -n "$RANLIB"; then
8866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8867else
8868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869for as_dir in $PATH
8870do
8871 IFS=$as_save_IFS
8872 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8875 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8877 break 2
8878 fi
8879done
81ecdfbb
RW
8880 done
8881IFS=$as_save_IFS
9a819804
AO
8882
8883fi
8884fi
8885RANLIB=$ac_cv_prog_RANLIB
8886if test -n "$RANLIB"; then
81ecdfbb
RW
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8888$as_echo "$RANLIB" >&6; }
9a819804 8889else
81ecdfbb
RW
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891$as_echo "no" >&6; }
9a819804
AO
8892fi
8893
81ecdfbb 8894
9a819804
AO
8895 done
8896fi
859789af 8897
9a819804 8898for ncn_progname in ranlib; do
05cbd757
PB
8899 if test -n "$ncn_tool_prefix"; then
8900 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8901set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903$as_echo_n "checking for $ac_word... " >&6; }
8904if test "${ac_cv_prog_RANLIB+set}" = set; then :
8905 $as_echo_n "(cached) " >&6
859789af
AC
8906else
8907 if test -n "$RANLIB"; then
8908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8909else
c6b750e1
DJ
8910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911for as_dir in $PATH
8912do
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8917 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8919 break 2
8920 fi
8921done
81ecdfbb
RW
8922 done
8923IFS=$as_save_IFS
c6b750e1 8924
859789af
AC
8925fi
8926fi
c6b750e1 8927RANLIB=$ac_cv_prog_RANLIB
859789af 8928if test -n "$RANLIB"; then
81ecdfbb
RW
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8930$as_echo "$RANLIB" >&6; }
859789af 8931else
81ecdfbb
RW
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933$as_echo "no" >&6; }
859789af
AC
8934fi
8935
81ecdfbb 8936
05cbd757
PB
8937 fi
8938 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8940set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942$as_echo_n "checking for $ac_word... " >&6; }
8943if test "${ac_cv_prog_RANLIB+set}" = set; then :
8944 $as_echo_n "(cached) " >&6
859789af 8945else
05cbd757
PB
8946 if test -n "$RANLIB"; then
8947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8948else
c6b750e1
DJ
8949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950for as_dir in $PATH
8951do
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8956 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8958 break 2
8959 fi
8960done
81ecdfbb
RW
8961 done
8962IFS=$as_save_IFS
c6b750e1 8963
859789af
AC
8964fi
8965fi
c6b750e1 8966RANLIB=$ac_cv_prog_RANLIB
05cbd757 8967if test -n "$RANLIB"; then
81ecdfbb
RW
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8969$as_echo "$RANLIB" >&6; }
859789af 8970else
81ecdfbb
RW
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972$as_echo "no" >&6; }
859789af 8973fi
c6b750e1 8974
81ecdfbb 8975
859789af 8976 fi
05cbd757
PB
8977 test -n "$ac_cv_prog_RANLIB" && break
8978done
8979
8980if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8981 RANLIB="true"
859789af
AC
8982fi
8983
9a819804
AO
8984
8985
8986if test -n "$STRIP"; then
8987 ac_cv_prog_STRIP=$STRIP
8988elif test -n "$ac_cv_prog_STRIP"; then
8989 STRIP=$ac_cv_prog_STRIP
8990fi
8991
8992if test -n "$ac_cv_prog_STRIP"; then
8993 for ncn_progname in strip; 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_STRIP+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9a819804
AO
9000else
9001 if test -n "$STRIP"; then
9002 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${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
9021STRIP=$ac_cv_prog_STRIP
9022if test -n "$STRIP"; then
81ecdfbb
RW
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9024$as_echo "$STRIP" >&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
9033
9034for ncn_progname in strip; do
be01d343
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_STRIP+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
be01d343
PB
9042else
9043 if test -n "$STRIP"; then
9044 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${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
be01d343
PB
9061fi
9062fi
c6b750e1 9063STRIP=$ac_cv_prog_STRIP
be01d343 9064if test -n "$STRIP"; then
81ecdfbb
RW
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9066$as_echo "$STRIP" >&6; }
be01d343 9067else
81ecdfbb
RW
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069$as_echo "no" >&6; }
be01d343
PB
9070fi
9071
81ecdfbb 9072
be01d343
PB
9073 fi
9074 if test -z "$ac_cv_prog_STRIP" && 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_STRIP+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
be01d343
PB
9081else
9082 if test -n "$STRIP"; then
9083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
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_STRIP="${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
be01d343
PB
9100fi
9101fi
c6b750e1 9102STRIP=$ac_cv_prog_STRIP
be01d343 9103if test -n "$STRIP"; then
81ecdfbb
RW
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9105$as_echo "$STRIP" >&6; }
be01d343 9106else
81ecdfbb
RW
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108$as_echo "no" >&6; }
be01d343 9109fi
c6b750e1 9110
81ecdfbb 9111
be01d343
PB
9112 fi
9113 test -n "$ac_cv_prog_STRIP" && break
9114done
9115
9116if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9117 STRIP="true"
be01d343
PB
9118fi
9119
9a819804
AO
9120
9121
9122if test -n "$WINDRES"; then
9123 ac_cv_prog_WINDRES=$WINDRES
9124elif test -n "$ac_cv_prog_WINDRES"; then
9125 WINDRES=$ac_cv_prog_WINDRES
9126fi
9127
9128if test -n "$ac_cv_prog_WINDRES"; then
9129 for ncn_progname in windres; 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_WINDRES+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9a819804
AO
9136else
9137 if test -n "$WINDRES"; then
9138 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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
9157WINDRES=$ac_cv_prog_WINDRES
9158if test -n "$WINDRES"; then
81ecdfbb
RW
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9160$as_echo "$WINDRES" >&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 windres; do
05cbd757
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_WINDRES+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
859789af
AC
9178else
9179 if test -n "$WINDRES"; then
9180 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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
859789af
AC
9197fi
9198fi
c6b750e1 9199WINDRES=$ac_cv_prog_WINDRES
859789af 9200if test -n "$WINDRES"; then
81ecdfbb
RW
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9202$as_echo "$WINDRES" >&6; }
859789af 9203else
81ecdfbb
RW
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205$as_echo "no" >&6; }
859789af
AC
9206fi
9207
81ecdfbb 9208
05cbd757
PB
9209 fi
9210 if test -z "$ac_cv_prog_WINDRES" && 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_WINDRES+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
859789af 9217else
05cbd757
PB
9218 if test -n "$WINDRES"; then
9219 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 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_WINDRES="${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
859789af
AC
9236fi
9237fi
c6b750e1 9238WINDRES=$ac_cv_prog_WINDRES
05cbd757 9239if test -n "$WINDRES"; then
81ecdfbb
RW
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9241$as_echo "$WINDRES" >&6; }
859789af 9242else
81ecdfbb
RW
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
859789af 9245fi
c6b750e1 9246
81ecdfbb 9247
05cbd757
PB
9248 fi
9249 test -n "$ac_cv_prog_WINDRES" && break
9250done
9251
9252if test -z "$ac_cv_prog_WINDRES" ; then
9253 set dummy windres
9254 if test $build = $host ; then
9255 WINDRES="$2"
859789af 9256 else
05cbd757 9257 WINDRES="${ncn_tool_prefix}$2"
859789af 9258 fi
859789af
AC
9259fi
9260
9a819804
AO
9261
9262
0c24b341
NC
9263if test -n "$WINDMC"; then
9264 ac_cv_prog_WINDMC=$WINDMC
9265elif test -n "$ac_cv_prog_WINDMC"; then
9266 WINDMC=$ac_cv_prog_WINDMC
9267fi
9268
9269if test -n "$ac_cv_prog_WINDMC"; then
9270 for ncn_progname in windmc; do
9271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9272set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274$as_echo_n "checking for $ac_word... " >&6; }
9275if test "${ac_cv_prog_WINDMC+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
0c24b341
NC
9277else
9278 if test -n "$WINDMC"; then
9279 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9280else
9281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282for as_dir in $PATH
9283do
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9288 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9290 break 2
9291 fi
9292done
81ecdfbb
RW
9293 done
9294IFS=$as_save_IFS
0c24b341
NC
9295
9296fi
9297fi
9298WINDMC=$ac_cv_prog_WINDMC
9299if test -n "$WINDMC"; then
81ecdfbb
RW
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9301$as_echo "$WINDMC" >&6; }
0c24b341 9302else
81ecdfbb
RW
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304$as_echo "no" >&6; }
0c24b341
NC
9305fi
9306
81ecdfbb 9307
0c24b341
NC
9308 done
9309fi
9310
9311for ncn_progname in windmc; do
9312 if test -n "$ncn_tool_prefix"; then
9313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9314set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9316$as_echo_n "checking for $ac_word... " >&6; }
9317if test "${ac_cv_prog_WINDMC+set}" = set; then :
9318 $as_echo_n "(cached) " >&6
0c24b341
NC
9319else
9320 if test -n "$WINDMC"; then
9321 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9322else
9323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324for as_dir in $PATH
9325do
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9330 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9332 break 2
9333 fi
9334done
81ecdfbb
RW
9335 done
9336IFS=$as_save_IFS
0c24b341
NC
9337
9338fi
9339fi
9340WINDMC=$ac_cv_prog_WINDMC
9341if test -n "$WINDMC"; then
81ecdfbb
RW
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9343$as_echo "$WINDMC" >&6; }
0c24b341 9344else
81ecdfbb
RW
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346$as_echo "no" >&6; }
0c24b341
NC
9347fi
9348
81ecdfbb 9349
0c24b341
NC
9350 fi
9351 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9353set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355$as_echo_n "checking for $ac_word... " >&6; }
9356if test "${ac_cv_prog_WINDMC+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
0c24b341
NC
9358else
9359 if test -n "$WINDMC"; then
9360 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9361else
9362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363for as_dir in $PATH
9364do
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9369 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9371 break 2
9372 fi
9373done
81ecdfbb
RW
9374 done
9375IFS=$as_save_IFS
0c24b341
NC
9376
9377fi
9378fi
9379WINDMC=$ac_cv_prog_WINDMC
9380if test -n "$WINDMC"; then
81ecdfbb
RW
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9382$as_echo "$WINDMC" >&6; }
0c24b341 9383else
81ecdfbb
RW
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9385$as_echo "no" >&6; }
0c24b341
NC
9386fi
9387
81ecdfbb 9388
0c24b341
NC
9389 fi
9390 test -n "$ac_cv_prog_WINDMC" && break
9391done
9392
9393if test -z "$ac_cv_prog_WINDMC" ; then
9394 set dummy windmc
9395 if test $build = $host ; then
9396 WINDMC="$2"
9397 else
9398 WINDMC="${ncn_tool_prefix}$2"
9399 fi
9400fi
9401
9402
9403
9a819804
AO
9404if test -n "$OBJCOPY"; then
9405 ac_cv_prog_OBJCOPY=$OBJCOPY
9406elif test -n "$ac_cv_prog_OBJCOPY"; then
9407 OBJCOPY=$ac_cv_prog_OBJCOPY
9408fi
9409
9410if test -n "$ac_cv_prog_OBJCOPY"; then
9411 for ncn_progname in objcopy; do
9412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9413set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415$as_echo_n "checking for $ac_word... " >&6; }
9416if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
9a819804
AO
9418else
9419 if test -n "$OBJCOPY"; then
9420 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9421else
9422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423for as_dir in $PATH
9424do
9425 IFS=$as_save_IFS
9426 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9427 for ac_exec_ext in '' $ac_executable_extensions; do
9428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9429 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9431 break 2
9432 fi
9433done
81ecdfbb
RW
9434 done
9435IFS=$as_save_IFS
9a819804
AO
9436
9437fi
9438fi
9439OBJCOPY=$ac_cv_prog_OBJCOPY
9440if test -n "$OBJCOPY"; then
81ecdfbb
RW
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9442$as_echo "$OBJCOPY" >&6; }
9a819804 9443else
81ecdfbb
RW
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445$as_echo "no" >&6; }
9a819804
AO
9446fi
9447
81ecdfbb 9448
9a819804
AO
9449 done
9450fi
9451
9452for ncn_progname in objcopy; do
05cbd757
PB
9453 if test -n "$ncn_tool_prefix"; then
9454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9455set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457$as_echo_n "checking for $ac_word... " >&6; }
9458if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
859789af
AC
9460else
9461 if test -n "$OBJCOPY"; then
9462 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9463else
c6b750e1
DJ
9464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465for as_dir in $PATH
9466do
9467 IFS=$as_save_IFS
9468 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9471 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9473 break 2
9474 fi
9475done
81ecdfbb
RW
9476 done
9477IFS=$as_save_IFS
c6b750e1 9478
859789af
AC
9479fi
9480fi
c6b750e1 9481OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9482if test -n "$OBJCOPY"; then
81ecdfbb
RW
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9484$as_echo "$OBJCOPY" >&6; }
859789af 9485else
81ecdfbb
RW
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487$as_echo "no" >&6; }
859789af
AC
9488fi
9489
81ecdfbb 9490
05cbd757
PB
9491 fi
9492 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9494set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9496$as_echo_n "checking for $ac_word... " >&6; }
9497if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
859789af 9499else
05cbd757
PB
9500 if test -n "$OBJCOPY"; then
9501 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9502else
c6b750e1
DJ
9503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504for as_dir in $PATH
9505do
9506 IFS=$as_save_IFS
9507 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9510 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9512 break 2
9513 fi
9514done
81ecdfbb
RW
9515 done
9516IFS=$as_save_IFS
c6b750e1 9517
859789af
AC
9518fi
9519fi
c6b750e1 9520OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9521if test -n "$OBJCOPY"; then
81ecdfbb
RW
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9523$as_echo "$OBJCOPY" >&6; }
859789af 9524else
81ecdfbb
RW
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526$as_echo "no" >&6; }
859789af 9527fi
c6b750e1 9528
81ecdfbb 9529
05cbd757
PB
9530 fi
9531 test -n "$ac_cv_prog_OBJCOPY" && break
9532done
9533
9534if test -z "$ac_cv_prog_OBJCOPY" ; then
9535 set dummy objcopy
9536 if test $build = $host ; then
9537 OBJCOPY="$2"
859789af 9538 else
05cbd757 9539 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9540 fi
859789af
AC
9541fi
9542
9a819804
AO
9543
9544
9545if test -n "$OBJDUMP"; then
9546 ac_cv_prog_OBJDUMP=$OBJDUMP
9547elif test -n "$ac_cv_prog_OBJDUMP"; then
9548 OBJDUMP=$ac_cv_prog_OBJDUMP
9549fi
9550
9551if test -n "$ac_cv_prog_OBJDUMP"; then
9552 for ncn_progname in objdump; do
9553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9554set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556$as_echo_n "checking for $ac_word... " >&6; }
9557if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9a819804
AO
9559else
9560 if test -n "$OBJDUMP"; then
9561 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9562else
9563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564for as_dir in $PATH
9565do
9566 IFS=$as_save_IFS
9567 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9570 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9572 break 2
9573 fi
9574done
81ecdfbb
RW
9575 done
9576IFS=$as_save_IFS
9a819804
AO
9577
9578fi
9579fi
9580OBJDUMP=$ac_cv_prog_OBJDUMP
9581if test -n "$OBJDUMP"; then
81ecdfbb
RW
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9583$as_echo "$OBJDUMP" >&6; }
9a819804 9584else
81ecdfbb
RW
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586$as_echo "no" >&6; }
9a819804
AO
9587fi
9588
81ecdfbb 9589
9a819804
AO
9590 done
9591fi
9592
9593for ncn_progname in objdump; do
05cbd757
PB
9594 if test -n "$ncn_tool_prefix"; then
9595 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9596set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598$as_echo_n "checking for $ac_word... " >&6; }
9599if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
859789af
AC
9601else
9602 if test -n "$OBJDUMP"; then
9603 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9604else
c6b750e1
DJ
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9612 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9614 break 2
9615 fi
9616done
81ecdfbb
RW
9617 done
9618IFS=$as_save_IFS
c6b750e1 9619
859789af
AC
9620fi
9621fi
c6b750e1 9622OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9623if test -n "$OBJDUMP"; then
81ecdfbb
RW
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9625$as_echo "$OBJDUMP" >&6; }
859789af 9626else
81ecdfbb
RW
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628$as_echo "no" >&6; }
859789af
AC
9629fi
9630
81ecdfbb 9631
05cbd757
PB
9632 fi
9633 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9635set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637$as_echo_n "checking for $ac_word... " >&6; }
9638if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9639 $as_echo_n "(cached) " >&6
859789af 9640else
05cbd757
PB
9641 if test -n "$OBJDUMP"; then
9642 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9643else
c6b750e1
DJ
9644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $PATH
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9651 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9653 break 2
9654 fi
9655done
81ecdfbb
RW
9656 done
9657IFS=$as_save_IFS
c6b750e1 9658
859789af
AC
9659fi
9660fi
c6b750e1 9661OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9662if test -n "$OBJDUMP"; then
81ecdfbb
RW
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9664$as_echo "$OBJDUMP" >&6; }
859789af 9665else
81ecdfbb
RW
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667$as_echo "no" >&6; }
859789af 9668fi
c6b750e1 9669
81ecdfbb 9670
05cbd757
PB
9671 fi
9672 test -n "$ac_cv_prog_OBJDUMP" && break
9673done
9674
9675if test -z "$ac_cv_prog_OBJDUMP" ; then
9676 set dummy objdump
9677 if test $build = $host ; then
9678 OBJDUMP="$2"
859789af 9679 else
05cbd757 9680 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9681 fi
859789af
AC
9682fi
9683
a0da8069
NN
9684
9685
9686
9687
9688
be01d343 9689# Target tools.
c6b750e1 9690
81ecdfbb
RW
9691# Check whether --with-build-time-tools was given.
9692if test "${with_build_time_tools+set}" = set; then :
9693 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9694 x/*) ;;
9695 *)
9696 with_build_time_tools=
81ecdfbb
RW
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9698$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9699 ;;
9700 esac
859789af 9701else
2429c060 9702 with_build_time_tools=
81ecdfbb
RW
9703fi
9704
859789af 9705
9a819804
AO
9706
9707
9708if test -n "$CC_FOR_TARGET"; then
9709 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9710elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9711 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9712fi
9713
9714if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9715 for ncn_progname in cc gcc; do
9716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9717set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719$as_echo_n "checking for $ac_word... " >&6; }
9720if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9a819804
AO
9722else
9723 if test -n "$CC_FOR_TARGET"; then
9724 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9725else
9726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727for as_dir in $PATH
9728do
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9733 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9735 break 2
9736 fi
9737done
81ecdfbb
RW
9738 done
9739IFS=$as_save_IFS
9a819804
AO
9740
9741fi
9742fi
9743CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9744if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9746$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9747else
81ecdfbb
RW
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749$as_echo "no" >&6; }
9a819804
AO
9750fi
9751
81ecdfbb 9752
9a819804
AO
9753 done
9754fi
9755
9756if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9757 for ncn_progname in cc gcc; do
81ecdfbb
RW
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9759$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9760 if test -x $with_build_time_tools/${ncn_progname}; then
9761 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9763$as_echo "yes" >&6; }
cac3d6c4 9764 break
2429c060 9765 else
81ecdfbb
RW
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767$as_echo "no" >&6; }
cac3d6c4
CM
9768 fi
9769 done
55db4b87
PB
9770fi
9771
2429c060
PB
9772if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9773 for ncn_progname in cc gcc; do
9774 if test -n "$ncn_target_tool_prefix"; then
9775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9776set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778$as_echo_n "checking for $ac_word... " >&6; }
9779if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
55db4b87
PB
9781else
9782 if test -n "$CC_FOR_TARGET"; then
9783 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9784else
c6b750e1
DJ
9785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786for as_dir in $PATH
9787do
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9792 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9794 break 2
9795 fi
9796done
81ecdfbb
RW
9797 done
9798IFS=$as_save_IFS
c6b750e1 9799
55db4b87
PB
9800fi
9801fi
c6b750e1 9802CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9803if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9805$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9806else
81ecdfbb
RW
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808$as_echo "no" >&6; }
55db4b87
PB
9809fi
9810
81ecdfbb 9811
2429c060
PB
9812 fi
9813 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9815set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817$as_echo_n "checking for $ac_word... " >&6; }
9818if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
55db4b87 9820else
05cbd757
PB
9821 if test -n "$CC_FOR_TARGET"; then
9822 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9823else
c6b750e1
DJ
9824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825for as_dir in $PATH
9826do
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9831 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9833 break 2
9834 fi
9835done
81ecdfbb
RW
9836 done
9837IFS=$as_save_IFS
c6b750e1 9838
55db4b87
PB
9839fi
9840fi
c6b750e1 9841CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9842if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9844$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9845else
81ecdfbb
RW
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847$as_echo "no" >&6; }
55db4b87 9848fi
c6b750e1 9849
81ecdfbb 9850
2429c060
PB
9851 fi
9852 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9853 done
9854fi
c6b750e1 9855
05cbd757
PB
9856if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9857 set dummy cc gcc
9858 if test $build = $target ; then
9859 CC_FOR_TARGET="$2"
55db4b87 9860 else
05cbd757 9861 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9862 fi
d3f5afc4
MS
9863else
9864 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9865fi
9866
9a819804
AO
9867
9868
9869if test -n "$CXX_FOR_TARGET"; then
9870 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9871elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9872 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9873fi
9874
9875if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9876 for ncn_progname in c++ g++ cxx gxx; do
9877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9878set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880$as_echo_n "checking for $ac_word... " >&6; }
9881if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9a819804
AO
9883else
9884 if test -n "$CXX_FOR_TARGET"; then
9885 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9886else
9887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888for as_dir in $PATH
9889do
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9894 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9896 break 2
9897 fi
9898done
81ecdfbb
RW
9899 done
9900IFS=$as_save_IFS
9a819804
AO
9901
9902fi
9903fi
9904CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9905if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9907$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9908else
81ecdfbb
RW
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910$as_echo "no" >&6; }
9a819804
AO
9911fi
9912
81ecdfbb 9913
9a819804
AO
9914 done
9915fi
9916
9917if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9918 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9920$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9921 if test -x $with_build_time_tools/${ncn_progname}; then
9922 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924$as_echo "yes" >&6; }
2429c060
PB
9925 break
9926 else
81ecdfbb
RW
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928$as_echo "no" >&6; }
2429c060
PB
9929 fi
9930 done
9931fi
9932
9933if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9934 for ncn_progname in c++ g++ cxx gxx; do
9935 if test -n "$ncn_target_tool_prefix"; then
9936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9937set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939$as_echo_n "checking for $ac_word... " >&6; }
9940if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9941 $as_echo_n "(cached) " >&6
55db4b87
PB
9942else
9943 if test -n "$CXX_FOR_TARGET"; then
9944 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9945else
c6b750e1
DJ
9946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947for as_dir in $PATH
9948do
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9953 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9955 break 2
9956 fi
9957done
81ecdfbb
RW
9958 done
9959IFS=$as_save_IFS
c6b750e1 9960
55db4b87
PB
9961fi
9962fi
c6b750e1 9963CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9964if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9966$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9967else
81ecdfbb
RW
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969$as_echo "no" >&6; }
55db4b87
PB
9970fi
9971
81ecdfbb 9972
2429c060
PB
9973 fi
9974 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9976set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978$as_echo_n "checking for $ac_word... " >&6; }
9979if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
55db4b87 9981else
05cbd757
PB
9982 if test -n "$CXX_FOR_TARGET"; then
9983 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9984else
c6b750e1
DJ
9985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986for as_dir in $PATH
9987do
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9992 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9994 break 2
9995 fi
9996done
81ecdfbb
RW
9997 done
9998IFS=$as_save_IFS
c6b750e1 9999
55db4b87
PB
10000fi
10001fi
c6b750e1 10002CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10003if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10005$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10006else
81ecdfbb
RW
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
55db4b87 10009fi
c6b750e1 10010
81ecdfbb 10011
2429c060
PB
10012 fi
10013 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10014 done
10015fi
c6b750e1 10016
05cbd757
PB
10017if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10018 set dummy c++ g++ cxx gxx
10019 if test $build = $target ; then
10020 CXX_FOR_TARGET="$2"
55db4b87 10021 else
05cbd757 10022 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10023 fi
d3f5afc4
MS
10024else
10025 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10026fi
10027
9a819804
AO
10028
10029
10030if test -n "$GCC_FOR_TARGET"; then
10031 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10032elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10033 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10034fi
10035
10036if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10037 for ncn_progname in gcc; do
10038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10039set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041$as_echo_n "checking for $ac_word... " >&6; }
10042if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
9a819804
AO
10044else
10045 if test -n "$GCC_FOR_TARGET"; then
10046 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10047else
10048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049for as_dir in $PATH
10050do
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10055 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10057 break 2
10058 fi
10059done
81ecdfbb
RW
10060 done
10061IFS=$as_save_IFS
9a819804
AO
10062
10063fi
10064fi
10065GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10066if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10068$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10069else
81ecdfbb
RW
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071$as_echo "no" >&6; }
9a819804
AO
10072fi
10073
81ecdfbb 10074
9a819804
AO
10075 done
10076fi
10077
10078if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10079 for ncn_progname in gcc; do
81ecdfbb
RW
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10081$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10082 if test -x $with_build_time_tools/${ncn_progname}; then
10083 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10085$as_echo "yes" >&6; }
2429c060
PB
10086 break
10087 else
81ecdfbb
RW
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089$as_echo "no" >&6; }
2429c060
PB
10090 fi
10091 done
10092fi
10093
10094if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10095 for ncn_progname in gcc; do
10096 if test -n "$ncn_target_tool_prefix"; then
10097 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10098set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10100$as_echo_n "checking for $ac_word... " >&6; }
10101if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10102 $as_echo_n "(cached) " >&6
859789af 10103else
2429c060
PB
10104 if test -n "$GCC_FOR_TARGET"; then
10105 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10106else
c6b750e1
DJ
10107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108for as_dir in $PATH
10109do
10110 IFS=$as_save_IFS
10111 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10112 for ac_exec_ext in '' $ac_executable_extensions; do
10113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10114 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10116 break 2
10117 fi
10118done
81ecdfbb
RW
10119 done
10120IFS=$as_save_IFS
c6b750e1 10121
55db4b87
PB
10122fi
10123fi
c6b750e1 10124GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10125if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10127$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10128else
81ecdfbb
RW
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130$as_echo "no" >&6; }
55db4b87
PB
10131fi
10132
81ecdfbb 10133
2429c060
PB
10134 fi
10135 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10137set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139$as_echo_n "checking for $ac_word... " >&6; }
10140if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
55db4b87 10142else
05cbd757
PB
10143 if test -n "$GCC_FOR_TARGET"; then
10144 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10145else
c6b750e1
DJ
10146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147for as_dir in $PATH
10148do
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10153 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10155 break 2
10156 fi
10157done
81ecdfbb
RW
10158 done
10159IFS=$as_save_IFS
c6b750e1 10160
55db4b87
PB
10161fi
10162fi
c6b750e1 10163GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10164if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10166$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10167else
81ecdfbb
RW
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169$as_echo "no" >&6; }
55db4b87 10170fi
c6b750e1 10171
81ecdfbb 10172
2429c060
PB
10173 fi
10174 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10175 done
10176fi
c6b750e1 10177
05cbd757
PB
10178if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10179 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10180else
10181 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10182fi
10183
9a819804
AO
10184
10185
10186if test -n "$GCJ_FOR_TARGET"; then
10187 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10188elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10189 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10190fi
10191
10192if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10193 for ncn_progname in gcj; do
10194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10195set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10197$as_echo_n "checking for $ac_word... " >&6; }
10198if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
9a819804
AO
10200else
10201 if test -n "$GCJ_FOR_TARGET"; then
10202 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10203else
10204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205for as_dir in $PATH
10206do
10207 IFS=$as_save_IFS
10208 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10209 for ac_exec_ext in '' $ac_executable_extensions; do
10210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10211 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10213 break 2
10214 fi
10215done
81ecdfbb
RW
10216 done
10217IFS=$as_save_IFS
9a819804
AO
10218
10219fi
10220fi
10221GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10222if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10224$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10225else
81ecdfbb
RW
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227$as_echo "no" >&6; }
9a819804
AO
10228fi
10229
81ecdfbb 10230
9a819804
AO
10231 done
10232fi
10233
10234if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10235 for ncn_progname in gcj; do
81ecdfbb
RW
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10237$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10238 if test -x $with_build_time_tools/${ncn_progname}; then
10239 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10241$as_echo "yes" >&6; }
2429c060
PB
10242 break
10243 else
81ecdfbb
RW
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245$as_echo "no" >&6; }
2429c060
PB
10246 fi
10247 done
10248fi
10249
10250if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10251 for ncn_progname in gcj; do
10252 if test -n "$ncn_target_tool_prefix"; then
10253 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10254set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256$as_echo_n "checking for $ac_word... " >&6; }
10257if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
55db4b87
PB
10259else
10260 if test -n "$GCJ_FOR_TARGET"; then
10261 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10262else
c6b750e1
DJ
10263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264for as_dir in $PATH
10265do
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10270 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10272 break 2
10273 fi
10274done
81ecdfbb
RW
10275 done
10276IFS=$as_save_IFS
c6b750e1 10277
55db4b87
PB
10278fi
10279fi
9a819804
AO
10280GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10281if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10283$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10284else
81ecdfbb
RW
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286$as_echo "no" >&6; }
9a819804
AO
10287fi
10288
81ecdfbb 10289
9a819804
AO
10290 fi
10291 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10293set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295$as_echo_n "checking for $ac_word... " >&6; }
10296if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
9a819804
AO
10298else
10299 if test -n "$GCJ_FOR_TARGET"; then
10300 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10301else
10302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303for as_dir in $PATH
10304do
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10309 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10311 break 2
10312 fi
10313done
81ecdfbb
RW
10314 done
10315IFS=$as_save_IFS
9a819804
AO
10316
10317fi
10318fi
10319GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10320if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10322$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10323else
81ecdfbb
RW
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325$as_echo "no" >&6; }
9a819804
AO
10326fi
10327
81ecdfbb 10328
9a819804
AO
10329 fi
10330 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10331 done
10332fi
10333
10334if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10335 set dummy gcj
10336 if test $build = $target ; then
10337 GCJ_FOR_TARGET="$2"
10338 else
10339 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10340 fi
d3f5afc4
MS
10341else
10342 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10343fi
10344
10345
10346
10347if test -n "$GFORTRAN_FOR_TARGET"; then
10348 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10349elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10350 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10351fi
10352
9a819804
AO
10353if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10354 for ncn_progname in gfortran; do
10355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10356set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358$as_echo_n "checking for $ac_word... " >&6; }
10359if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
55db4b87 10361else
9a819804
AO
10362 if test -n "$GFORTRAN_FOR_TARGET"; then
10363 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10364else
c6b750e1
DJ
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10372 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10374 break 2
10375 fi
10376done
81ecdfbb
RW
10377 done
10378IFS=$as_save_IFS
c6b750e1 10379
55db4b87
PB
10380fi
10381fi
9a819804
AO
10382GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10383if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10385$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10386else
81ecdfbb
RW
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388$as_echo "no" >&6; }
55db4b87 10389fi
c6b750e1 10390
81ecdfbb 10391
2429c060
PB
10392 done
10393fi
c6b750e1 10394
9a819804 10395if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10396 for ncn_progname in gfortran; do
81ecdfbb
RW
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10398$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10399 if test -x $with_build_time_tools/${ncn_progname}; then
10400 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10402$as_echo "yes" >&6; }
2429c060
PB
10403 break
10404 else
81ecdfbb
RW
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406$as_echo "no" >&6; }
2429c060
PB
10407 fi
10408 done
10409fi
10410
10411if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10412 for ncn_progname in gfortran; do
10413 if test -n "$ncn_target_tool_prefix"; then
10414 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10415set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417$as_echo_n "checking for $ac_word... " >&6; }
10418if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
55db4b87
PB
10420else
10421 if test -n "$GFORTRAN_FOR_TARGET"; then
10422 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10423else
c6b750e1
DJ
10424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425for as_dir in $PATH
10426do
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10431 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10433 break 2
10434 fi
10435done
81ecdfbb
RW
10436 done
10437IFS=$as_save_IFS
c6b750e1 10438
55db4b87
PB
10439fi
10440fi
c6b750e1 10441GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10442if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10444$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10445else
81ecdfbb
RW
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447$as_echo "no" >&6; }
55db4b87
PB
10448fi
10449
81ecdfbb 10450
2429c060
PB
10451 fi
10452 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10454set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456$as_echo_n "checking for $ac_word... " >&6; }
10457if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
55db4b87 10459else
05cbd757 10460 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10461 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10462else
10463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464for as_dir in $PATH
10465do
10466 IFS=$as_save_IFS
10467 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10470 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10472 break 2
10473 fi
10474done
81ecdfbb
RW
10475 done
10476IFS=$as_save_IFS
c6b750e1 10477
55db4b87
PB
10478fi
10479fi
c6b750e1 10480GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10481if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10483$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10484else
81ecdfbb
RW
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486$as_echo "no" >&6; }
55db4b87 10487fi
c6b750e1 10488
81ecdfbb 10489
2429c060
PB
10490 fi
10491 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10492 done
10493fi
c6b750e1 10494
05cbd757
PB
10495if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10496 set dummy gfortran
10497 if test $build = $target ; then
10498 GFORTRAN_FOR_TARGET="$2"
55db4b87 10499 else
05cbd757 10500 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10501 fi
d3f5afc4
MS
10502else
10503 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10504fi
10505
2429c060
PB
10506
10507
e552509b
ILT
10508if test -n "$GOC_FOR_TARGET"; then
10509 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10510elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10511 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10512fi
10513
10514if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10515 for ncn_progname in gccgo; do
10516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10517set dummy ${ncn_progname}; ac_word=$2
10518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519$as_echo_n "checking for $ac_word... " >&6; }
10520if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10522else
10523 if test -n "$GOC_FOR_TARGET"; then
10524 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10525else
10526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527for as_dir in $PATH
10528do
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10533 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10536 fi
10537done
10538 done
10539IFS=$as_save_IFS
10540
10541fi
10542fi
10543GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10544if test -n "$GOC_FOR_TARGET"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10546$as_echo "$GOC_FOR_TARGET" >&6; }
10547else
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549$as_echo "no" >&6; }
10550fi
10551
10552
10553 done
10554fi
10555
10556if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10557 for ncn_progname in gccgo; do
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10559$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10560 if test -x $with_build_time_tools/${ncn_progname}; then
10561 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10563$as_echo "yes" >&6; }
10564 break
10565 else
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567$as_echo "no" >&6; }
10568 fi
10569 done
10570fi
10571
10572if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10573 for ncn_progname in gccgo; do
10574 if test -n "$ncn_target_tool_prefix"; then
10575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10576set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10578$as_echo_n "checking for $ac_word... " >&6; }
10579if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10580 $as_echo_n "(cached) " >&6
10581else
10582 if test -n "$GOC_FOR_TARGET"; then
10583 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10584else
10585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586for as_dir in $PATH
10587do
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10592 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10595 fi
10596done
10597 done
10598IFS=$as_save_IFS
10599
10600fi
10601fi
10602GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10603if test -n "$GOC_FOR_TARGET"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10605$as_echo "$GOC_FOR_TARGET" >&6; }
10606else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608$as_echo "no" >&6; }
10609fi
10610
10611
10612 fi
10613 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10615set dummy ${ncn_progname}; ac_word=$2
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617$as_echo_n "checking for $ac_word... " >&6; }
10618if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10620else
10621 if test -n "$GOC_FOR_TARGET"; then
10622 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10623else
10624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625for as_dir in $PATH
10626do
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10631 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10634 fi
10635done
10636 done
10637IFS=$as_save_IFS
10638
10639fi
10640fi
10641GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10642if test -n "$GOC_FOR_TARGET"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10644$as_echo "$GOC_FOR_TARGET" >&6; }
10645else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647$as_echo "no" >&6; }
10648fi
10649
10650
10651 fi
10652 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10653 done
10654fi
10655
10656if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10657 set dummy gccgo
10658 if test $build = $target ; then
10659 GOC_FOR_TARGET="$2"
10660 else
10661 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10662 fi
10663else
10664 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10665fi
10666
10667
10668
2429c060
PB
10669cat > conftest.c << \EOF
10670#ifdef __GNUC__
10671 gcc_yay;
10672#endif
10673EOF
10674if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10675 have_gcc_for_target=yes
859789af 10676else
2429c060
PB
10677 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10678 have_gcc_for_target=no
859789af 10679fi
2429c060
PB
10680rm conftest.c
10681
10682
10683
859789af 10684
2429c060
PB
10685if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10686 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10688$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10689 if test -x $with_build_time_tools/ar; then
10690 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10691 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10693$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10694 else
81ecdfbb
RW
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696$as_echo "no" >&6; }
3a35eeb3 10697 fi
2429c060
PB
10698 elif test $build != $host && test $have_gcc_for_target = yes; then
10699 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10700 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10701 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10702 fi
2429c060 10703fi
c6b750e1 10704if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10705 # Extract the first word of "ar", so it can be a program name with args.
10706set dummy ar; ac_word=$2
81ecdfbb
RW
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708$as_echo_n "checking for $ac_word... " >&6; }
10709if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
859789af 10711else
c6b750e1
DJ
10712 case $AR_FOR_TARGET in
10713 [\\/]* | ?:[\\/]*)
2429c060
PB
10714 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10715 ;;
2429c060 10716 *)
c6b750e1
DJ
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $gcc_cv_tool_dirs
10719do
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10724 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10726 break 2
10727 fi
10728done
81ecdfbb
RW
10729 done
10730IFS=$as_save_IFS
c6b750e1 10731
2429c060
PB
10732 ;;
10733esac
859789af 10734fi
c6b750e1 10735AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10736if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10738$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10739else
81ecdfbb
RW
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741$as_echo "no" >&6; }
859789af 10742fi
05cbd757 10743
81ecdfbb 10744
2429c060
PB
10745fi
10746if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10747
10748
10749if test -n "$AR_FOR_TARGET"; then
10750 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10751elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10752 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10753fi
10754
10755if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10756 for ncn_progname in ar; do
10757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10758set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10760$as_echo_n "checking for $ac_word... " >&6; }
10761if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10762 $as_echo_n "(cached) " >&6
9a819804
AO
10763else
10764 if test -n "$AR_FOR_TARGET"; then
10765 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10766else
10767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768for as_dir in $PATH
10769do
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10774 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10776 break 2
10777 fi
10778done
81ecdfbb
RW
10779 done
10780IFS=$as_save_IFS
9a819804
AO
10781
10782fi
10783fi
10784AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10785if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10787$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10788else
81ecdfbb
RW
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790$as_echo "no" >&6; }
9a819804
AO
10791fi
10792
81ecdfbb 10793
9a819804
AO
10794 done
10795fi
10796
10797if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10798 for ncn_progname in ar; do
81ecdfbb
RW
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10800$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10801 if test -x $with_build_time_tools/${ncn_progname}; then
10802 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804$as_echo "yes" >&6; }
2429c060
PB
10805 break
10806 else
81ecdfbb
RW
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808$as_echo "no" >&6; }
2429c060
PB
10809 fi
10810 done
859789af
AC
10811fi
10812
2429c060
PB
10813if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10814 for ncn_progname in ar; do
10815 if test -n "$ncn_target_tool_prefix"; then
10816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10817set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819$as_echo_n "checking for $ac_word... " >&6; }
10820if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
7e0f7140 10822else
2429c060
PB
10823 if test -n "$AR_FOR_TARGET"; then
10824 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10825else
c6b750e1
DJ
10826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $PATH
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10833 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10835 break 2
10836 fi
10837done
81ecdfbb
RW
10838 done
10839IFS=$as_save_IFS
c6b750e1 10840
7e0f7140
GK
10841fi
10842fi
c6b750e1 10843AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10844if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10846$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10847else
81ecdfbb
RW
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849$as_echo "no" >&6; }
7e0f7140
GK
10850fi
10851
81ecdfbb 10852
2429c060
PB
10853 fi
10854 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10856set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858$as_echo_n "checking for $ac_word... " >&6; }
10859if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
7e0f7140 10861else
2429c060
PB
10862 if test -n "$AR_FOR_TARGET"; then
10863 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10864else
c6b750e1
DJ
10865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10872 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10874 break 2
10875 fi
10876done
81ecdfbb
RW
10877 done
10878IFS=$as_save_IFS
c6b750e1 10879
7e0f7140
GK
10880fi
10881fi
c6b750e1 10882AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10883if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10885$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10886else
81ecdfbb
RW
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888$as_echo "no" >&6; }
7e0f7140 10889fi
c6b750e1 10890
81ecdfbb 10891
2429c060
PB
10892 fi
10893 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10894 done
10895fi
c6b750e1 10896
2429c060
PB
10897if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10898 set dummy ar
7e0f7140 10899 if test $build = $target ; then
2429c060 10900 AR_FOR_TARGET="$2"
7e0f7140 10901 else
2429c060 10902 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10903 fi
d3f5afc4
MS
10904else
10905 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10906fi
10907
3a35eeb3
PB
10908else
10909 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10910fi
10911
10912
10913
10914
10915if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10916 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10918$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10919 if test -x $with_build_time_tools/as; then
10920 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10921 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10923$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10924 else
81ecdfbb
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926$as_echo "no" >&6; }
3a35eeb3 10927 fi
2429c060
PB
10928 elif test $build != $host && test $have_gcc_for_target = yes; then
10929 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10930 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10931 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10932 fi
10933fi
c6b750e1 10934if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10935 # Extract the first word of "as", so it can be a program name with args.
10936set dummy as; ac_word=$2
81ecdfbb
RW
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938$as_echo_n "checking for $ac_word... " >&6; }
10939if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
2429c060 10941else
c6b750e1
DJ
10942 case $AS_FOR_TARGET in
10943 [\\/]* | ?:[\\/]*)
2429c060
PB
10944 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10945 ;;
2429c060 10946 *)
c6b750e1
DJ
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $gcc_cv_tool_dirs
10949do
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10954 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10956 break 2
10957 fi
10958done
81ecdfbb
RW
10959 done
10960IFS=$as_save_IFS
c6b750e1 10961
2429c060
PB
10962 ;;
10963esac
10964fi
c6b750e1 10965AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10966if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10968$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10969else
81ecdfbb
RW
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
2429c060
PB
10972fi
10973
81ecdfbb 10974
2429c060
PB
10975fi
10976if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10977
10978
10979if test -n "$AS_FOR_TARGET"; then
10980 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10981elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10982 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10983fi
10984
10985if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10986 for ncn_progname in as; do
10987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10988set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990$as_echo_n "checking for $ac_word... " >&6; }
10991if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
9a819804
AO
10993else
10994 if test -n "$AS_FOR_TARGET"; then
10995 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10996else
10997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998for as_dir in $PATH
10999do
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11004 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11006 break 2
11007 fi
11008done
81ecdfbb
RW
11009 done
11010IFS=$as_save_IFS
9a819804
AO
11011
11012fi
11013fi
11014AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11015if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11017$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11018else
81ecdfbb
RW
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020$as_echo "no" >&6; }
9a819804
AO
11021fi
11022
81ecdfbb 11023
9a819804
AO
11024 done
11025fi
11026
11027if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11028 for ncn_progname in as; do
81ecdfbb
RW
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11030$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11031 if test -x $with_build_time_tools/${ncn_progname}; then
11032 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11034$as_echo "yes" >&6; }
2429c060
PB
11035 break
11036 else
81ecdfbb
RW
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038$as_echo "no" >&6; }
2429c060
PB
11039 fi
11040 done
11041fi
11042
11043if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11044 for ncn_progname in as; do
11045 if test -n "$ncn_target_tool_prefix"; then
11046 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11047set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049$as_echo_n "checking for $ac_word... " >&6; }
11050if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11051 $as_echo_n "(cached) " >&6
2429c060
PB
11052else
11053 if test -n "$AS_FOR_TARGET"; then
11054 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11055else
c6b750e1
DJ
11056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $PATH
11058do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11063 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11065 break 2
11066 fi
11067done
81ecdfbb
RW
11068 done
11069IFS=$as_save_IFS
c6b750e1 11070
2429c060
PB
11071fi
11072fi
c6b750e1 11073AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11074if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11076$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11077else
81ecdfbb
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079$as_echo "no" >&6; }
2429c060
PB
11080fi
11081
81ecdfbb 11082
2429c060
PB
11083 fi
11084 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11086set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088$as_echo_n "checking for $ac_word... " >&6; }
11089if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
2429c060
PB
11091else
11092 if test -n "$AS_FOR_TARGET"; then
11093 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11094else
c6b750e1
DJ
11095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096for as_dir in $PATH
11097do
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11102 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11104 break 2
11105 fi
11106done
81ecdfbb
RW
11107 done
11108IFS=$as_save_IFS
c6b750e1 11109
2429c060
PB
11110fi
11111fi
c6b750e1 11112AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11113if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11115$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11116else
81ecdfbb
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118$as_echo "no" >&6; }
2429c060 11119fi
c6b750e1 11120
81ecdfbb 11121
2429c060
PB
11122 fi
11123 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11124 done
11125fi
c6b750e1 11126
2429c060
PB
11127if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11128 set dummy as
11129 if test $build = $target ; then
11130 AS_FOR_TARGET="$2"
11131 else
11132 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11133 fi
d3f5afc4
MS
11134else
11135 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11136fi
11137
3a35eeb3
PB
11138else
11139 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11140fi
11141
11142
11143
11144
11145if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11146 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11148$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11149 if test -x $with_build_time_tools/dlltool; then
11150 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11151 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11153$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11154 else
81ecdfbb
RW
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156$as_echo "no" >&6; }
3a35eeb3 11157 fi
2429c060
PB
11158 elif test $build != $host && test $have_gcc_for_target = yes; then
11159 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11160 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11161 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11162 fi
11163fi
c6b750e1 11164if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11165 # Extract the first word of "dlltool", so it can be a program name with args.
11166set dummy dlltool; ac_word=$2
81ecdfbb
RW
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168$as_echo_n "checking for $ac_word... " >&6; }
11169if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
2429c060 11171else
c6b750e1
DJ
11172 case $DLLTOOL_FOR_TARGET in
11173 [\\/]* | ?:[\\/]*)
2429c060
PB
11174 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11175 ;;
2429c060 11176 *)
c6b750e1
DJ
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178for as_dir in $gcc_cv_tool_dirs
11179do
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11184 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11186 break 2
11187 fi
11188done
81ecdfbb
RW
11189 done
11190IFS=$as_save_IFS
c6b750e1 11191
2429c060
PB
11192 ;;
11193esac
11194fi
c6b750e1 11195DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11196if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11198$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11199else
81ecdfbb
RW
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201$as_echo "no" >&6; }
2429c060
PB
11202fi
11203
81ecdfbb 11204
2429c060
PB
11205fi
11206if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11207
11208
11209if test -n "$DLLTOOL_FOR_TARGET"; then
11210 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11211elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11212 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11213fi
11214
11215if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11216 for ncn_progname in dlltool; do
11217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11218set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220$as_echo_n "checking for $ac_word... " >&6; }
11221if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
9a819804
AO
11223else
11224 if test -n "$DLLTOOL_FOR_TARGET"; then
11225 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11226else
11227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228for as_dir in $PATH
11229do
11230 IFS=$as_save_IFS
11231 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11234 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11236 break 2
11237 fi
11238done
81ecdfbb
RW
11239 done
11240IFS=$as_save_IFS
9a819804
AO
11241
11242fi
11243fi
11244DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11245if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11247$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11248else
81ecdfbb
RW
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250$as_echo "no" >&6; }
9a819804
AO
11251fi
11252
81ecdfbb 11253
9a819804
AO
11254 done
11255fi
11256
11257if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11258 for ncn_progname in dlltool; do
81ecdfbb
RW
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11260$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11261 if test -x $with_build_time_tools/${ncn_progname}; then
11262 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11264$as_echo "yes" >&6; }
2429c060
PB
11265 break
11266 else
81ecdfbb
RW
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268$as_echo "no" >&6; }
2429c060
PB
11269 fi
11270 done
11271fi
11272
11273if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11274 for ncn_progname in dlltool; do
11275 if test -n "$ncn_target_tool_prefix"; then
11276 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11277set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279$as_echo_n "checking for $ac_word... " >&6; }
11280if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
2429c060
PB
11282else
11283 if test -n "$DLLTOOL_FOR_TARGET"; then
11284 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11285else
c6b750e1
DJ
11286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287for as_dir in $PATH
11288do
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11293 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11295 break 2
11296 fi
11297done
81ecdfbb
RW
11298 done
11299IFS=$as_save_IFS
c6b750e1 11300
2429c060
PB
11301fi
11302fi
c6b750e1 11303DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11304if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11306$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11307else
81ecdfbb
RW
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309$as_echo "no" >&6; }
2429c060
PB
11310fi
11311
81ecdfbb 11312
2429c060
PB
11313 fi
11314 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11316set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318$as_echo_n "checking for $ac_word... " >&6; }
11319if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
2429c060
PB
11321else
11322 if test -n "$DLLTOOL_FOR_TARGET"; then
11323 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11324else
c6b750e1
DJ
11325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326for as_dir in $PATH
11327do
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11332 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11334 break 2
11335 fi
11336done
81ecdfbb
RW
11337 done
11338IFS=$as_save_IFS
c6b750e1 11339
2429c060
PB
11340fi
11341fi
c6b750e1 11342DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11343if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11345$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11346else
81ecdfbb
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348$as_echo "no" >&6; }
2429c060 11349fi
c6b750e1 11350
81ecdfbb 11351
2429c060
PB
11352 fi
11353 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11354 done
11355fi
c6b750e1 11356
2429c060
PB
11357if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11358 set dummy dlltool
11359 if test $build = $target ; then
11360 DLLTOOL_FOR_TARGET="$2"
11361 else
11362 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11363 fi
d3f5afc4
MS
11364else
11365 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11366fi
11367
3a35eeb3
PB
11368else
11369 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11370fi
11371
11372
11373
11374
11375if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11376 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11378$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11379 if test -x $with_build_time_tools/ld; then
11380 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11381 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11383$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11384 else
81ecdfbb
RW
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386$as_echo "no" >&6; }
3a35eeb3 11387 fi
2429c060
PB
11388 elif test $build != $host && test $have_gcc_for_target = yes; then
11389 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11390 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11391 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11392 fi
11393fi
c6b750e1 11394if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11395 # Extract the first word of "ld", so it can be a program name with args.
11396set dummy ld; ac_word=$2
81ecdfbb
RW
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
11399if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
2429c060 11401else
c6b750e1
DJ
11402 case $LD_FOR_TARGET in
11403 [\\/]* | ?:[\\/]*)
2429c060
PB
11404 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11405 ;;
2429c060 11406 *)
c6b750e1
DJ
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408for as_dir in $gcc_cv_tool_dirs
11409do
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11414 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11416 break 2
11417 fi
11418done
81ecdfbb
RW
11419 done
11420IFS=$as_save_IFS
c6b750e1 11421
2429c060
PB
11422 ;;
11423esac
11424fi
c6b750e1 11425LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11426if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11428$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11429else
81ecdfbb
RW
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431$as_echo "no" >&6; }
2429c060
PB
11432fi
11433
81ecdfbb 11434
2429c060
PB
11435fi
11436if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11437
11438
11439if test -n "$LD_FOR_TARGET"; then
11440 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11441elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11442 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11443fi
11444
11445if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11446 for ncn_progname in ld; do
11447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11448set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450$as_echo_n "checking for $ac_word... " >&6; }
11451if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
9a819804
AO
11453else
11454 if test -n "$LD_FOR_TARGET"; then
11455 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11456else
11457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458for as_dir in $PATH
11459do
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11464 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11466 break 2
11467 fi
11468done
81ecdfbb
RW
11469 done
11470IFS=$as_save_IFS
9a819804
AO
11471
11472fi
11473fi
11474LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11475if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11477$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11478else
81ecdfbb
RW
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480$as_echo "no" >&6; }
9a819804
AO
11481fi
11482
81ecdfbb 11483
9a819804
AO
11484 done
11485fi
11486
11487if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11488 for ncn_progname in ld; do
81ecdfbb
RW
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11490$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11491 if test -x $with_build_time_tools/${ncn_progname}; then
11492 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11494$as_echo "yes" >&6; }
2429c060
PB
11495 break
11496 else
81ecdfbb
RW
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498$as_echo "no" >&6; }
2429c060
PB
11499 fi
11500 done
11501fi
11502
11503if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11504 for ncn_progname in ld; do
11505 if test -n "$ncn_target_tool_prefix"; then
11506 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11507set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509$as_echo_n "checking for $ac_word... " >&6; }
11510if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
2429c060
PB
11512else
11513 if test -n "$LD_FOR_TARGET"; then
11514 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11515else
c6b750e1
DJ
11516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11523 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11525 break 2
11526 fi
11527done
81ecdfbb
RW
11528 done
11529IFS=$as_save_IFS
c6b750e1 11530
2429c060
PB
11531fi
11532fi
c6b750e1 11533LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11534if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11536$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11537else
81ecdfbb
RW
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539$as_echo "no" >&6; }
2429c060
PB
11540fi
11541
81ecdfbb 11542
2429c060
PB
11543 fi
11544 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11546set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548$as_echo_n "checking for $ac_word... " >&6; }
11549if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
2429c060
PB
11551else
11552 if test -n "$LD_FOR_TARGET"; then
11553 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11554else
c6b750e1
DJ
11555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11562 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11564 break 2
11565 fi
11566done
81ecdfbb
RW
11567 done
11568IFS=$as_save_IFS
c6b750e1 11569
2429c060
PB
11570fi
11571fi
c6b750e1 11572LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11573if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11575$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11576else
81ecdfbb
RW
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578$as_echo "no" >&6; }
2429c060 11579fi
c6b750e1 11580
81ecdfbb 11581
2429c060
PB
11582 fi
11583 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11584 done
11585fi
c6b750e1 11586
2429c060
PB
11587if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11588 set dummy ld
11589 if test $build = $target ; then
11590 LD_FOR_TARGET="$2"
11591 else
11592 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11593 fi
d3f5afc4
MS
11594else
11595 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11596fi
11597
3a35eeb3
PB
11598else
11599 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11600fi
11601
11602
11603
11604
11605if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11606 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11608$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11609 if test -x $with_build_time_tools/lipo; then
11610 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11611 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11613$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11614 else
81ecdfbb
RW
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616$as_echo "no" >&6; }
3a35eeb3 11617 fi
2429c060
PB
11618 elif test $build != $host && test $have_gcc_for_target = yes; then
11619 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11620 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11621 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11622 fi
11623fi
9a819804
AO
11624if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11625 # Extract the first word of "lipo", so it can be a program name with args.
11626set dummy lipo; ac_word=$2
81ecdfbb
RW
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628$as_echo_n "checking for $ac_word... " >&6; }
11629if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
9a819804
AO
11631else
11632 case $LIPO_FOR_TARGET in
11633 [\\/]* | ?:[\\/]*)
11634 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11635 ;;
11636 *)
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638for as_dir in $gcc_cv_tool_dirs
11639do
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11644 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11646 break 2
11647 fi
11648done
81ecdfbb
RW
11649 done
11650IFS=$as_save_IFS
9a819804
AO
11651
11652 ;;
11653esac
11654fi
11655LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11656if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11658$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11659else
81ecdfbb
RW
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
9a819804
AO
11662fi
11663
81ecdfbb 11664
9a819804
AO
11665fi
11666if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11667
11668
11669if test -n "$LIPO_FOR_TARGET"; then
11670 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11671elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11672 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11673fi
11674
11675if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11676 for ncn_progname in lipo; do
11677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11678set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680$as_echo_n "checking for $ac_word... " >&6; }
11681if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
2429c060 11683else
9a819804
AO
11684 if test -n "$LIPO_FOR_TARGET"; then
11685 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11686else
11687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688for as_dir in $PATH
c6b750e1
DJ
11689do
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11694 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11696 break 2
11697 fi
11698done
81ecdfbb
RW
11699 done
11700IFS=$as_save_IFS
c6b750e1 11701
2429c060 11702fi
9a819804
AO
11703fi
11704LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11705if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11707$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11708else
81ecdfbb
RW
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710$as_echo "no" >&6; }
2429c060
PB
11711fi
11712
81ecdfbb 11713
9a819804 11714 done
2429c060 11715fi
9a819804
AO
11716
11717if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11718 for ncn_progname in lipo; do
81ecdfbb
RW
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11720$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11721 if test -x $with_build_time_tools/${ncn_progname}; then
11722 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724$as_echo "yes" >&6; }
2429c060
PB
11725 break
11726 else
81ecdfbb
RW
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728$as_echo "no" >&6; }
2429c060
PB
11729 fi
11730 done
11731fi
11732
11733if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11734 for ncn_progname in lipo; do
11735 if test -n "$ncn_target_tool_prefix"; then
11736 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11737set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739$as_echo_n "checking for $ac_word... " >&6; }
11740if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11741 $as_echo_n "(cached) " >&6
2429c060
PB
11742else
11743 if test -n "$LIPO_FOR_TARGET"; then
11744 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11745else
c6b750e1
DJ
11746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $PATH
11748do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11753 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11755 break 2
11756 fi
11757done
81ecdfbb
RW
11758 done
11759IFS=$as_save_IFS
c6b750e1 11760
2429c060
PB
11761fi
11762fi
c6b750e1 11763LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11764if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11766$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11767else
81ecdfbb
RW
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
2429c060
PB
11770fi
11771
81ecdfbb 11772
2429c060
PB
11773 fi
11774 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11776set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778$as_echo_n "checking for $ac_word... " >&6; }
11779if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
2429c060
PB
11781else
11782 if test -n "$LIPO_FOR_TARGET"; then
11783 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11784else
c6b750e1
DJ
11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11792 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11794 break 2
11795 fi
11796done
81ecdfbb
RW
11797 done
11798IFS=$as_save_IFS
c6b750e1 11799
2429c060
PB
11800fi
11801fi
c6b750e1 11802LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11803if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11805$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11806else
81ecdfbb
RW
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
2429c060 11809fi
c6b750e1 11810
81ecdfbb 11811
2429c060
PB
11812 fi
11813 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11814 done
11815fi
c6b750e1 11816
2429c060
PB
11817if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11818 set dummy lipo
11819 if test $build = $target ; then
11820 LIPO_FOR_TARGET="$2"
11821 else
11822 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11823 fi
d3f5afc4
MS
11824else
11825 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11826fi
11827
3a35eeb3
PB
11828else
11829 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11830fi
11831
11832
11833
11834
11835if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11836 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11838$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11839 if test -x $with_build_time_tools/nm; then
11840 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11841 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11843$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11844 else
81ecdfbb
RW
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846$as_echo "no" >&6; }
3a35eeb3 11847 fi
2429c060
PB
11848 elif test $build != $host && test $have_gcc_for_target = yes; then
11849 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11850 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11851 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11852 fi
11853fi
c6b750e1 11854if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11855 # Extract the first word of "nm", so it can be a program name with args.
11856set dummy nm; ac_word=$2
81ecdfbb
RW
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
11859if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
2429c060 11861else
c6b750e1
DJ
11862 case $NM_FOR_TARGET in
11863 [\\/]* | ?:[\\/]*)
2429c060
PB
11864 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11865 ;;
2429c060 11866 *)
c6b750e1
DJ
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868for as_dir in $gcc_cv_tool_dirs
11869do
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11874 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11876 break 2
11877 fi
11878done
81ecdfbb
RW
11879 done
11880IFS=$as_save_IFS
c6b750e1 11881
2429c060
PB
11882 ;;
11883esac
11884fi
c6b750e1 11885NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11886if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11888$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11889else
81ecdfbb
RW
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
2429c060
PB
11892fi
11893
81ecdfbb 11894
2429c060
PB
11895fi
11896if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11897
11898
11899if test -n "$NM_FOR_TARGET"; then
11900 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11901elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11902 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11903fi
11904
11905if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11906 for ncn_progname in nm; do
11907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11908set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910$as_echo_n "checking for $ac_word... " >&6; }
11911if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11912 $as_echo_n "(cached) " >&6
9a819804
AO
11913else
11914 if test -n "$NM_FOR_TARGET"; then
11915 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11916else
11917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918for as_dir in $PATH
11919do
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11924 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11926 break 2
11927 fi
11928done
81ecdfbb
RW
11929 done
11930IFS=$as_save_IFS
9a819804
AO
11931
11932fi
11933fi
11934NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11935if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11937$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11938else
81ecdfbb
RW
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940$as_echo "no" >&6; }
9a819804
AO
11941fi
11942
81ecdfbb 11943
9a819804
AO
11944 done
11945fi
11946
11947if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11948 for ncn_progname in nm; do
81ecdfbb
RW
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11950$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11951 if test -x $with_build_time_tools/${ncn_progname}; then
11952 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11954$as_echo "yes" >&6; }
2429c060
PB
11955 break
11956 else
81ecdfbb
RW
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958$as_echo "no" >&6; }
2429c060
PB
11959 fi
11960 done
11961fi
11962
11963if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11964 for ncn_progname in nm; do
11965 if test -n "$ncn_target_tool_prefix"; then
11966 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11967set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969$as_echo_n "checking for $ac_word... " >&6; }
11970if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
859789af 11972else
55db4b87
PB
11973 if test -n "$NM_FOR_TARGET"; then
11974 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11975else
c6b750e1
DJ
11976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977for as_dir in $PATH
11978do
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11983 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11985 break 2
11986 fi
11987done
81ecdfbb
RW
11988 done
11989IFS=$as_save_IFS
c6b750e1 11990
859789af
AC
11991fi
11992fi
c6b750e1 11993NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11994if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11996$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11997else
81ecdfbb
RW
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999$as_echo "no" >&6; }
859789af
AC
12000fi
12001
81ecdfbb 12002
2429c060
PB
12003 fi
12004 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12006set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008$as_echo_n "checking for $ac_word... " >&6; }
12009if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
859789af 12011else
05cbd757
PB
12012 if test -n "$NM_FOR_TARGET"; then
12013 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12014else
c6b750e1
DJ
12015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016for as_dir in $PATH
12017do
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12022 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12024 break 2
12025 fi
12026done
81ecdfbb
RW
12027 done
12028IFS=$as_save_IFS
c6b750e1 12029
859789af
AC
12030fi
12031fi
c6b750e1 12032NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12033if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12035$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12036else
81ecdfbb
RW
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038$as_echo "no" >&6; }
859789af 12039fi
c6b750e1 12040
81ecdfbb 12041
2429c060
PB
12042 fi
12043 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12044 done
12045fi
c6b750e1 12046
05cbd757
PB
12047if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12048 set dummy nm
12049 if test $build = $target ; then
12050 NM_FOR_TARGET="$2"
859789af 12051 else
05cbd757 12052 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12053 fi
d3f5afc4
MS
12054else
12055 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12056fi
12057
3a35eeb3
PB
12058else
12059 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12060fi
12061
12062
12063
12064
12065if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12066 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12068$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12069 if test -x $with_build_time_tools/objdump; then
12070 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12071 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12073$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12074 else
81ecdfbb
RW
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076$as_echo "no" >&6; }
3a35eeb3 12077 fi
2429c060
PB
12078 elif test $build != $host && test $have_gcc_for_target = yes; then
12079 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12080 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12081 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12082 fi
12083fi
c6b750e1 12084if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12085 # Extract the first word of "objdump", so it can be a program name with args.
12086set dummy objdump; ac_word=$2
81ecdfbb
RW
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
12089if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
2429c060 12091else
c6b750e1
DJ
12092 case $OBJDUMP_FOR_TARGET in
12093 [\\/]* | ?:[\\/]*)
2429c060
PB
12094 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12095 ;;
2429c060 12096 *)
c6b750e1
DJ
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $gcc_cv_tool_dirs
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12104 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12106 break 2
12107 fi
12108done
81ecdfbb
RW
12109 done
12110IFS=$as_save_IFS
c6b750e1 12111
2429c060
PB
12112 ;;
12113esac
12114fi
c6b750e1 12115OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12116if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12118$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12119else
81ecdfbb
RW
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121$as_echo "no" >&6; }
2429c060
PB
12122fi
12123
81ecdfbb 12124
2429c060
PB
12125fi
12126if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12127
12128
12129if test -n "$OBJDUMP_FOR_TARGET"; then
12130 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12131elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12132 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12133fi
12134
12135if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12136 for ncn_progname in objdump; do
12137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12138set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140$as_echo_n "checking for $ac_word... " >&6; }
12141if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
9a819804
AO
12143else
12144 if test -n "$OBJDUMP_FOR_TARGET"; then
12145 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12146else
12147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148for as_dir in $PATH
12149do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12154 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12156 break 2
12157 fi
12158done
81ecdfbb
RW
12159 done
12160IFS=$as_save_IFS
9a819804
AO
12161
12162fi
12163fi
12164OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12165if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12167$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12168else
81ecdfbb
RW
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170$as_echo "no" >&6; }
9a819804
AO
12171fi
12172
81ecdfbb 12173
9a819804
AO
12174 done
12175fi
12176
12177if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12178 for ncn_progname in objdump; do
81ecdfbb
RW
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12180$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12181 if test -x $with_build_time_tools/${ncn_progname}; then
12182 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12184$as_echo "yes" >&6; }
2429c060
PB
12185 break
12186 else
81ecdfbb
RW
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188$as_echo "no" >&6; }
2429c060
PB
12189 fi
12190 done
12191fi
12192
12193if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12194 for ncn_progname in objdump; do
12195 if test -n "$ncn_target_tool_prefix"; then
12196 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12197set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199$as_echo_n "checking for $ac_word... " >&6; }
12200if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
5ae72758
DJ
12202else
12203 if test -n "$OBJDUMP_FOR_TARGET"; then
12204 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12205else
c6b750e1
DJ
12206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $PATH
12208do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12213 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12215 break 2
12216 fi
12217done
81ecdfbb
RW
12218 done
12219IFS=$as_save_IFS
c6b750e1 12220
5ae72758
DJ
12221fi
12222fi
c6b750e1 12223OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12224if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12226$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12227else
81ecdfbb
RW
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
5ae72758
DJ
12230fi
12231
81ecdfbb 12232
2429c060
PB
12233 fi
12234 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12236set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238$as_echo_n "checking for $ac_word... " >&6; }
12239if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
5ae72758
DJ
12241else
12242 if test -n "$OBJDUMP_FOR_TARGET"; then
12243 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12244else
c6b750e1
DJ
12245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12252 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12254 break 2
12255 fi
12256done
81ecdfbb
RW
12257 done
12258IFS=$as_save_IFS
c6b750e1 12259
5ae72758
DJ
12260fi
12261fi
c6b750e1 12262OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12263if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12265$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12266else
81ecdfbb
RW
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268$as_echo "no" >&6; }
5ae72758 12269fi
c6b750e1 12270
81ecdfbb 12271
2429c060
PB
12272 fi
12273 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12274 done
12275fi
c6b750e1 12276
5ae72758
DJ
12277if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12278 set dummy objdump
12279 if test $build = $target ; then
12280 OBJDUMP_FOR_TARGET="$2"
12281 else
12282 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12283 fi
d3f5afc4
MS
12284else
12285 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12286fi
12287
3a35eeb3
PB
12288else
12289 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12290fi
12291
12292
12293
12294
12295if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12296 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12298$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12299 if test -x $with_build_time_tools/ranlib; then
12300 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12301 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12303$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12304 else
81ecdfbb
RW
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
3a35eeb3 12307 fi
2429c060
PB
12308 elif test $build != $host && test $have_gcc_for_target = yes; then
12309 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12310 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12311 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12312 fi
12313fi
c6b750e1 12314if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12315 # Extract the first word of "ranlib", so it can be a program name with args.
12316set dummy ranlib; ac_word=$2
81ecdfbb
RW
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
12319if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
2429c060 12321else
c6b750e1
DJ
12322 case $RANLIB_FOR_TARGET in
12323 [\\/]* | ?:[\\/]*)
2429c060
PB
12324 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12325 ;;
2429c060 12326 *)
c6b750e1
DJ
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $gcc_cv_tool_dirs
12329do
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12334 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12336 break 2
12337 fi
12338done
81ecdfbb
RW
12339 done
12340IFS=$as_save_IFS
c6b750e1 12341
2429c060
PB
12342 ;;
12343esac
12344fi
c6b750e1 12345RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12346if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12348$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12349else
81ecdfbb
RW
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351$as_echo "no" >&6; }
2429c060
PB
12352fi
12353
81ecdfbb 12354
2429c060
PB
12355fi
12356if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12357
12358
12359if test -n "$RANLIB_FOR_TARGET"; then
12360 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12361elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12362 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12363fi
12364
12365if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12366 for ncn_progname in ranlib; do
12367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12368set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370$as_echo_n "checking for $ac_word... " >&6; }
12371if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
9a819804
AO
12373else
12374 if test -n "$RANLIB_FOR_TARGET"; then
12375 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12376else
12377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378for as_dir in $PATH
12379do
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12384 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12386 break 2
12387 fi
12388done
81ecdfbb
RW
12389 done
12390IFS=$as_save_IFS
9a819804
AO
12391
12392fi
12393fi
12394RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12395if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12397$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12398else
81ecdfbb
RW
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400$as_echo "no" >&6; }
9a819804
AO
12401fi
12402
81ecdfbb 12403
9a819804
AO
12404 done
12405fi
12406
12407if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12408 for ncn_progname in ranlib; do
81ecdfbb
RW
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12410$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12411 if test -x $with_build_time_tools/${ncn_progname}; then
12412 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414$as_echo "yes" >&6; }
2429c060
PB
12415 break
12416 else
81ecdfbb
RW
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418$as_echo "no" >&6; }
2429c060
PB
12419 fi
12420 done
12421fi
12422
12423if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12424 for ncn_progname in ranlib; do
12425 if test -n "$ncn_target_tool_prefix"; then
12426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12427set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429$as_echo_n "checking for $ac_word... " >&6; }
12430if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
859789af 12432else
55db4b87
PB
12433 if test -n "$RANLIB_FOR_TARGET"; then
12434 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12435else
c6b750e1
DJ
12436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437for as_dir in $PATH
12438do
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12443 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12445 break 2
12446 fi
12447done
81ecdfbb
RW
12448 done
12449IFS=$as_save_IFS
c6b750e1 12450
859789af
AC
12451fi
12452fi
c6b750e1 12453RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12454if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12456$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12457else
81ecdfbb
RW
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459$as_echo "no" >&6; }
859789af
AC
12460fi
12461
81ecdfbb 12462
2429c060
PB
12463 fi
12464 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12466set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468$as_echo_n "checking for $ac_word... " >&6; }
12469if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
859789af 12471else
05cbd757
PB
12472 if test -n "$RANLIB_FOR_TARGET"; then
12473 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12474else
c6b750e1
DJ
12475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476for as_dir in $PATH
12477do
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12480 for ac_exec_ext in '' $ac_executable_extensions; do
12481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12482 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12484 break 2
12485 fi
12486done
81ecdfbb
RW
12487 done
12488IFS=$as_save_IFS
c6b750e1 12489
859789af
AC
12490fi
12491fi
c6b750e1 12492RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12493if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12495$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12496else
81ecdfbb
RW
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
859789af 12499fi
c6b750e1 12500
81ecdfbb 12501
2429c060
PB
12502 fi
12503 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12504 done
12505fi
c6b750e1 12506
2429c060
PB
12507if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12508 set dummy ranlib
12509 if test $build = $target ; then
12510 RANLIB_FOR_TARGET="$2"
12511 else
12512 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12513 fi
d3f5afc4
MS
12514else
12515 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12516fi
05cbd757 12517
3a35eeb3
PB
12518else
12519 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12520fi
12521
2429c060
PB
12522
12523
12524
12525if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12526 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12528$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12529 if test -x $with_build_time_tools/strip; then
12530 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12531 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12533$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12534 else
81ecdfbb
RW
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536$as_echo "no" >&6; }
3a35eeb3 12537 fi
2429c060
PB
12538 elif test $build != $host && test $have_gcc_for_target = yes; then
12539 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12540 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12541 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12542 fi
12543fi
c6b750e1 12544if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12545 # Extract the first word of "strip", so it can be a program name with args.
12546set dummy strip; ac_word=$2
81ecdfbb
RW
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
12549if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
2429c060 12551else
c6b750e1
DJ
12552 case $STRIP_FOR_TARGET in
12553 [\\/]* | ?:[\\/]*)
2429c060
PB
12554 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12555 ;;
2429c060 12556 *)
c6b750e1
DJ
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558for as_dir in $gcc_cv_tool_dirs
12559do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12564 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12566 break 2
12567 fi
12568done
81ecdfbb
RW
12569 done
12570IFS=$as_save_IFS
c6b750e1 12571
2429c060
PB
12572 ;;
12573esac
12574fi
c6b750e1 12575STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12576if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12578$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12579else
81ecdfbb
RW
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
2429c060
PB
12582fi
12583
81ecdfbb 12584
2429c060
PB
12585fi
12586if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12587
12588
12589if test -n "$STRIP_FOR_TARGET"; then
12590 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12591elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12592 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12593fi
12594
12595if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12596 for ncn_progname in strip; do
12597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12598set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600$as_echo_n "checking for $ac_word... " >&6; }
12601if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
9a819804
AO
12603else
12604 if test -n "$STRIP_FOR_TARGET"; then
12605 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12606else
12607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608for as_dir in $PATH
12609do
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12614 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12616 break 2
12617 fi
12618done
81ecdfbb
RW
12619 done
12620IFS=$as_save_IFS
9a819804
AO
12621
12622fi
12623fi
12624STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12625if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12627$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12628else
81ecdfbb
RW
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630$as_echo "no" >&6; }
9a819804
AO
12631fi
12632
81ecdfbb 12633
9a819804
AO
12634 done
12635fi
12636
12637if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12638 for ncn_progname in strip; do
81ecdfbb
RW
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12640$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12641 if test -x $with_build_time_tools/${ncn_progname}; then
12642 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12644$as_echo "yes" >&6; }
2429c060
PB
12645 break
12646 else
81ecdfbb
RW
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648$as_echo "no" >&6; }
2429c060
PB
12649 fi
12650 done
12651fi
12652
12653if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12654 for ncn_progname in strip; do
12655 if test -n "$ncn_target_tool_prefix"; then
12656 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12657set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659$as_echo_n "checking for $ac_word... " >&6; }
12660if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
7e0f7140
GK
12662else
12663 if test -n "$STRIP_FOR_TARGET"; then
12664 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12665else
12666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667for as_dir in $PATH
12668do
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12673 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12675 break 2
12676 fi
12677done
81ecdfbb
RW
12678 done
12679IFS=$as_save_IFS
c6b750e1 12680
7e0f7140
GK
12681fi
12682fi
c6b750e1 12683STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12684if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12686$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12687else
81ecdfbb
RW
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689$as_echo "no" >&6; }
7e0f7140
GK
12690fi
12691
81ecdfbb 12692
2429c060
PB
12693 fi
12694 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12696set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
12699if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
7e0f7140
GK
12701else
12702 if test -n "$STRIP_FOR_TARGET"; then
12703 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12704else
c6b750e1
DJ
12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706for as_dir in $PATH
12707do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12712 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12714 break 2
12715 fi
12716done
81ecdfbb
RW
12717 done
12718IFS=$as_save_IFS
c6b750e1 12719
7e0f7140
GK
12720fi
12721fi
c6b750e1 12722STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12723if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12725$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12726else
81ecdfbb
RW
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
7e0f7140 12729fi
c6b750e1 12730
81ecdfbb 12731
2429c060
PB
12732 fi
12733 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12734 done
12735fi
c6b750e1 12736
7e0f7140
GK
12737if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12738 set dummy strip
12739 if test $build = $target ; then
12740 STRIP_FOR_TARGET="$2"
12741 else
12742 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12743 fi
d3f5afc4
MS
12744else
12745 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12746fi
12747
3a35eeb3
PB
12748else
12749 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12750fi
12751
12752
12753
12754
12755if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12756 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12758$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12759 if test -x $with_build_time_tools/windres; then
12760 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12761 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12763$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12764 else
81ecdfbb
RW
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766$as_echo "no" >&6; }
3a35eeb3 12767 fi
2429c060
PB
12768 elif test $build != $host && test $have_gcc_for_target = yes; then
12769 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12770 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12771 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12772 fi
12773fi
c6b750e1 12774if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12775 # Extract the first word of "windres", so it can be a program name with args.
12776set dummy windres; ac_word=$2
81ecdfbb
RW
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
12779if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
2429c060 12781else
c6b750e1
DJ
12782 case $WINDRES_FOR_TARGET in
12783 [\\/]* | ?:[\\/]*)
2429c060
PB
12784 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12785 ;;
2429c060 12786 *)
c6b750e1
DJ
12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788for as_dir in $gcc_cv_tool_dirs
12789do
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12794 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12796 break 2
12797 fi
12798done
81ecdfbb
RW
12799 done
12800IFS=$as_save_IFS
c6b750e1 12801
2429c060
PB
12802 ;;
12803esac
12804fi
c6b750e1 12805WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12806if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12808$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12809else
81ecdfbb
RW
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
2429c060
PB
12812fi
12813
81ecdfbb 12814
2429c060
PB
12815fi
12816if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12817
12818
12819if test -n "$WINDRES_FOR_TARGET"; then
12820 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12821elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12822 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12823fi
12824
12825if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12826 for ncn_progname in windres; do
12827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12828set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830$as_echo_n "checking for $ac_word... " >&6; }
12831if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12832 $as_echo_n "(cached) " >&6
9a819804
AO
12833else
12834 if test -n "$WINDRES_FOR_TARGET"; then
12835 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12836else
12837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838for as_dir in $PATH
12839do
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12842 for ac_exec_ext in '' $ac_executable_extensions; do
12843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12844 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12846 break 2
12847 fi
12848done
81ecdfbb
RW
12849 done
12850IFS=$as_save_IFS
9a819804
AO
12851
12852fi
12853fi
12854WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12855if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12857$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12858else
81ecdfbb
RW
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860$as_echo "no" >&6; }
9a819804
AO
12861fi
12862
81ecdfbb 12863
9a819804
AO
12864 done
12865fi
12866
12867if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12868 for ncn_progname in windres; do
81ecdfbb
RW
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12870$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12871 if test -x $with_build_time_tools/${ncn_progname}; then
12872 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12874$as_echo "yes" >&6; }
2429c060
PB
12875 break
12876 else
81ecdfbb
RW
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878$as_echo "no" >&6; }
2429c060
PB
12879 fi
12880 done
12881fi
12882
12883if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12884 for ncn_progname in windres; do
12885 if test -n "$ncn_target_tool_prefix"; then
12886 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12887set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889$as_echo_n "checking for $ac_word... " >&6; }
12890if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
859789af 12892else
55db4b87
PB
12893 if test -n "$WINDRES_FOR_TARGET"; then
12894 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12895else
c6b750e1
DJ
12896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897for as_dir in $PATH
12898do
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12903 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12905 break 2
12906 fi
12907done
81ecdfbb
RW
12908 done
12909IFS=$as_save_IFS
c6b750e1 12910
859789af
AC
12911fi
12912fi
c6b750e1 12913WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12914if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12916$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12917else
81ecdfbb
RW
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919$as_echo "no" >&6; }
859789af
AC
12920fi
12921
81ecdfbb 12922
2429c060
PB
12923 fi
12924 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12926set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12928$as_echo_n "checking for $ac_word... " >&6; }
12929if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
859789af 12931else
05cbd757
PB
12932 if test -n "$WINDRES_FOR_TARGET"; then
12933 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12934else
c6b750e1
DJ
12935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936for as_dir in $PATH
12937do
12938 IFS=$as_save_IFS
12939 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12942 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12944 break 2
12945 fi
12946done
81ecdfbb
RW
12947 done
12948IFS=$as_save_IFS
c6b750e1 12949
859789af
AC
12950fi
12951fi
c6b750e1 12952WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12953if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12955$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12956else
81ecdfbb
RW
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958$as_echo "no" >&6; }
859789af 12959fi
c6b750e1 12960
81ecdfbb 12961
2429c060
PB
12962 fi
12963 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12964 done
12965fi
c6b750e1 12966
05cbd757
PB
12967if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12968 set dummy windres
12969 if test $build = $target ; then
12970 WINDRES_FOR_TARGET="$2"
859789af 12971 else
05cbd757 12972 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12973 fi
d3f5afc4
MS
12974else
12975 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12976fi
12977
3a35eeb3
PB
12978else
12979 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12980fi
12981
852e5f18 12982
0c24b341
NC
12983
12984
12985if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12986 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12988$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12989 if test -x $with_build_time_tools/windmc; then
12990 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12991 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12993$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12994 else
81ecdfbb
RW
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996$as_echo "no" >&6; }
0c24b341
NC
12997 fi
12998 elif test $build != $host && test $have_gcc_for_target = yes; then
12999 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13000 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13001 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13002 fi
13003fi
13004if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13005 # Extract the first word of "windmc", so it can be a program name with args.
13006set dummy windmc; ac_word=$2
81ecdfbb
RW
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008$as_echo_n "checking for $ac_word... " >&6; }
13009if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
0c24b341
NC
13011else
13012 case $WINDMC_FOR_TARGET in
13013 [\\/]* | ?:[\\/]*)
13014 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13015 ;;
13016 *)
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018for as_dir in $gcc_cv_tool_dirs
13019do
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13024 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13026 break 2
13027 fi
13028done
81ecdfbb
RW
13029 done
13030IFS=$as_save_IFS
0c24b341
NC
13031
13032 ;;
13033esac
13034fi
13035WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13036if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13038$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13039else
81ecdfbb
RW
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041$as_echo "no" >&6; }
0c24b341
NC
13042fi
13043
81ecdfbb 13044
0c24b341
NC
13045fi
13046if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13047
13048
13049if test -n "$WINDMC_FOR_TARGET"; then
13050 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13051elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13052 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13053fi
13054
13055if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13056 for ncn_progname in windmc; do
13057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13058set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13060$as_echo_n "checking for $ac_word... " >&6; }
13061if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13062 $as_echo_n "(cached) " >&6
0c24b341
NC
13063else
13064 if test -n "$WINDMC_FOR_TARGET"; then
13065 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13066else
13067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068for as_dir in $PATH
13069do
13070 IFS=$as_save_IFS
13071 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13072 for ac_exec_ext in '' $ac_executable_extensions; do
13073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13074 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13076 break 2
13077 fi
13078done
81ecdfbb
RW
13079 done
13080IFS=$as_save_IFS
0c24b341
NC
13081
13082fi
13083fi
13084WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13085if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13087$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13088else
81ecdfbb
RW
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090$as_echo "no" >&6; }
0c24b341
NC
13091fi
13092
81ecdfbb 13093
0c24b341
NC
13094 done
13095fi
13096
13097if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13098 for ncn_progname in windmc; do
81ecdfbb
RW
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13100$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13101 if test -x $with_build_time_tools/${ncn_progname}; then
13102 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104$as_echo "yes" >&6; }
0c24b341
NC
13105 break
13106 else
81ecdfbb
RW
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108$as_echo "no" >&6; }
0c24b341
NC
13109 fi
13110 done
13111fi
13112
13113if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13114 for ncn_progname in windmc; do
13115 if test -n "$ncn_target_tool_prefix"; then
13116 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13117set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119$as_echo_n "checking for $ac_word... " >&6; }
13120if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13121 $as_echo_n "(cached) " >&6
0c24b341
NC
13122else
13123 if test -n "$WINDMC_FOR_TARGET"; then
13124 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13125else
13126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127for as_dir in $PATH
13128do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13133 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13135 break 2
13136 fi
13137done
81ecdfbb
RW
13138 done
13139IFS=$as_save_IFS
0c24b341
NC
13140
13141fi
13142fi
13143WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13144if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13146$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13147else
81ecdfbb
RW
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
0c24b341
NC
13150fi
13151
81ecdfbb 13152
0c24b341
NC
13153 fi
13154 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13156set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158$as_echo_n "checking for $ac_word... " >&6; }
13159if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
0c24b341
NC
13161else
13162 if test -n "$WINDMC_FOR_TARGET"; then
13163 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13172 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13174 break 2
13175 fi
13176done
81ecdfbb
RW
13177 done
13178IFS=$as_save_IFS
0c24b341
NC
13179
13180fi
13181fi
13182WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13183if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13185$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13186else
81ecdfbb
RW
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188$as_echo "no" >&6; }
0c24b341
NC
13189fi
13190
81ecdfbb 13191
0c24b341
NC
13192 fi
13193 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13194 done
13195fi
13196
13197if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13198 set dummy windmc
13199 if test $build = $target ; then
13200 WINDMC_FOR_TARGET="$2"
13201 else
13202 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13203 fi
13204else
13205 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13206fi
13207
13208else
13209 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13210fi
13211
13212
be01d343
PB
13213RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13214
81ecdfbb
RW
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13216$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13217if test "x${build}" != "x${host}" ; then
2429c060
PB
13218 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13219 # We already found the complete path
b8025f34 13220 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13222$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13223 else
13224 # Canadian cross, just use what we found
81ecdfbb
RW
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13226$as_echo "pre-installed" >&6; }
2429c060 13227 fi
be01d343
PB
13228else
13229 ok=yes
13230 case " ${configdirs} " in
13231 *" binutils "*) ;;
13232 *) ok=no ;;
13233 esac
c6b750e1 13234
be01d343
PB
13235 if test $ok = yes; then
13236 # An in-tree tool is available and we can use it
13237 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13239$as_echo "just compiled" >&6; }
2429c060
PB
13240 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13241 # We already found the complete path
b8025f34 13242 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13244$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13245 elif test "x$target" = "x$host"; then
13246 # We can use an host tool
13247 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13249$as_echo "host tool" >&6; }
be01d343
PB
13250 else
13251 # We need a cross tool
81ecdfbb
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13253$as_echo "pre-installed" >&6; }
be01d343
PB
13254 fi
13255fi
4b900473 13256
81ecdfbb
RW
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13258$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13259if test "x${build}" != "x${host}" ; then
2429c060
PB
13260 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13261 # We already found the complete path
b8025f34 13262 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13264$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13265 else
13266 # Canadian cross, just use what we found
81ecdfbb
RW
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13268$as_echo "pre-installed" >&6; }
2429c060 13269 fi
be01d343
PB
13270else
13271 ok=yes
13272 case " ${configdirs} " in
13273 *" gas "*) ;;
13274 *) ok=no ;;
13275 esac
c6b750e1 13276
be01d343
PB
13277 if test $ok = yes; then
13278 # An in-tree tool is available and we can use it
13279 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13281$as_echo "just compiled" >&6; }
2429c060
PB
13282 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13283 # We already found the complete path
b8025f34 13284 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13286$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13287 elif test "x$target" = "x$host"; then
13288 # We can use an host tool
13289 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13291$as_echo "host tool" >&6; }
be01d343
PB
13292 else
13293 # We need a cross tool
81ecdfbb
RW
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13295$as_echo "pre-installed" >&6; }
be01d343
PB
13296 fi
13297fi
4b900473 13298
81ecdfbb
RW
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13300$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13301if test "x${build}" != "x${host}" ; then
2429c060
PB
13302 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13303 # We already found the complete path
b8025f34 13304 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13306$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13307 else
13308 # Canadian cross, just use what we found
81ecdfbb
RW
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13310$as_echo "pre-installed" >&6; }
2429c060 13311 fi
be01d343
PB
13312else
13313 ok=yes
13314 case " ${configdirs} " in
13315 *" gcc "*) ;;
13316 *) ok=no ;;
13317 esac
c6b750e1 13318
be01d343
PB
13319 if test $ok = yes; then
13320 # An in-tree tool is available and we can use it
13321 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13323$as_echo "just compiled" >&6; }
2429c060
PB
13324 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13325 # We already found the complete path
b8025f34 13326 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13328$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13329 elif test "x$target" = "x$host"; then
13330 # We can use an host tool
13331 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13333$as_echo "host tool" >&6; }
be01d343
PB
13334 else
13335 # We need a cross tool
81ecdfbb
RW
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13337$as_echo "pre-installed" >&6; }
be01d343
PB
13338 fi
13339fi
4b900473 13340
81ecdfbb
RW
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13342$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13343if test "x${build}" != "x${host}" ; then
2429c060
PB
13344 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13345 # We already found the complete path
b8025f34 13346 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13348$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13349 else
13350 # Canadian cross, just use what we found
81ecdfbb
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13352$as_echo "pre-installed" >&6; }
2429c060 13353 fi
be01d343
PB
13354else
13355 ok=yes
13356 case " ${configdirs} " in
13357 *" gcc "*) ;;
13358 *) ok=no ;;
13359 esac
13360 case ,${enable_languages}, in
13361 *,c++,*) ;;
13362 *) ok=no ;;
13363 esac
13364 if test $ok = yes; then
13365 # An in-tree tool is available and we can use it
87cda2cf 13366 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
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13368$as_echo "just compiled" >&6; }
2429c060
PB
13369 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13370 # We already found the complete path
b8025f34 13371 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13373$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13374 elif test "x$target" = "x$host"; then
13375 # We can use an host tool
13376 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13378$as_echo "host tool" >&6; }
be01d343
PB
13379 else
13380 # We need a cross tool
81ecdfbb
RW
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13382$as_echo "pre-installed" >&6; }
be01d343
PB
13383 fi
13384fi
4b900473 13385
81ecdfbb
RW
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13387$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13388if test "x${build}" != "x${host}" ; then
2429c060
PB
13389 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13390 # We already found the complete path
b8025f34 13391 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13393$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13394 else
13395 # Canadian cross, just use what we found
81ecdfbb
RW
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13397$as_echo "pre-installed" >&6; }
2429c060 13398 fi
be01d343
PB
13399else
13400 ok=yes
13401 case " ${configdirs} " in
13402 *" gcc "*) ;;
13403 *) ok=no ;;
13404 esac
13405 case ,${enable_languages}, in
13406 *,c++,*) ;;
13407 *) ok=no ;;
13408 esac
13409 if test $ok = yes; then
13410 # An in-tree tool is available and we can use it
13411 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
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13413$as_echo "just compiled" >&6; }
2429c060
PB
13414 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13415 # We already found the complete path
b8025f34 13416 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13418$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13419 elif test "x$target" = "x$host"; then
13420 # We can use an host tool
13421 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13423$as_echo "host tool" >&6; }
be01d343
PB
13424 else
13425 # We need a cross tool
81ecdfbb
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13427$as_echo "pre-installed" >&6; }
be01d343
PB
13428 fi
13429fi
4b900473 13430
81ecdfbb
RW
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13432$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13433if test "x${build}" != "x${host}" ; then
2429c060
PB
13434 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13435 # We already found the complete path
b8025f34 13436 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13438$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13439 else
13440 # Canadian cross, just use what we found
81ecdfbb
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13442$as_echo "pre-installed" >&6; }
2429c060 13443 fi
be01d343
PB
13444else
13445 ok=yes
13446 case " ${configdirs} " in
13447 *" binutils "*) ;;
13448 *) ok=no ;;
13449 esac
c6b750e1 13450
be01d343
PB
13451 if test $ok = yes; then
13452 # An in-tree tool is available and we can use it
13453 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13455$as_echo "just compiled" >&6; }
2429c060
PB
13456 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13457 # We already found the complete path
b8025f34 13458 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13460$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13461 elif test "x$target" = "x$host"; then
13462 # We can use an host tool
13463 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13465$as_echo "host tool" >&6; }
be01d343
PB
13466 else
13467 # We need a cross tool
81ecdfbb
RW
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13469$as_echo "pre-installed" >&6; }
be01d343
PB
13470 fi
13471fi
4b900473 13472
81ecdfbb
RW
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13474$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13475if test "x${build}" != "x${host}" ; then
2429c060
PB
13476 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13477 # We already found the complete path
b8025f34 13478 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13480$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13481 else
13482 # Canadian cross, just use what we found
81ecdfbb
RW
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13484$as_echo "pre-installed" >&6; }
2429c060 13485 fi
be01d343
PB
13486else
13487 ok=yes
13488 case " ${configdirs} " in
13489 *" gcc "*) ;;
13490 *) ok=no ;;
13491 esac
c6b750e1 13492
be01d343
PB
13493 if test $ok = yes; then
13494 # An in-tree tool is available and we can use it
13495 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13497$as_echo "just compiled" >&6; }
2429c060
PB
13498 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13499 # We already found the complete path
b8025f34 13500 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13502$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13503 elif test "x$target" = "x$host"; then
13504 # We can use an host tool
13505 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13507$as_echo "host tool" >&6; }
be01d343
PB
13508 else
13509 # We need a cross tool
81ecdfbb
RW
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13511$as_echo "pre-installed" >&6; }
be01d343
PB
13512 fi
13513fi
4b900473 13514
81ecdfbb
RW
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13516$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13517if test "x${build}" != "x${host}" ; then
2429c060
PB
13518 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13519 # We already found the complete path
b8025f34 13520 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13522$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13523 else
13524 # Canadian cross, just use what we found
81ecdfbb
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13526$as_echo "pre-installed" >&6; }
2429c060 13527 fi
be01d343
PB
13528else
13529 ok=yes
13530 case " ${configdirs} " in
13531 *" gcc "*) ;;
13532 *) ok=no ;;
13533 esac
13534 case ,${enable_languages}, in
13535 *,java,*) ;;
13536 *) ok=no ;;
13537 esac
13538 if test $ok = yes; then
13539 # An in-tree tool is available and we can use it
13540 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13542$as_echo "just compiled" >&6; }
2429c060
PB
13543 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13544 # We already found the complete path
b8025f34 13545 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13547$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13548 elif test "x$target" = "x$host"; then
13549 # We can use an host tool
13550 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13552$as_echo "host tool" >&6; }
be01d343
PB
13553 else
13554 # We need a cross tool
81ecdfbb
RW
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13556$as_echo "pre-installed" >&6; }
be01d343
PB
13557 fi
13558fi
4b900473 13559
81ecdfbb
RW
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13561$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13562if test "x${build}" != "x${host}" ; then
2429c060
PB
13563 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13564 # We already found the complete path
b8025f34 13565 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13567$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13568 else
13569 # Canadian cross, just use what we found
81ecdfbb
RW
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571$as_echo "pre-installed" >&6; }
2429c060 13572 fi
be01d343
PB
13573else
13574 ok=yes
13575 case " ${configdirs} " in
13576 *" gcc "*) ;;
13577 *) ok=no ;;
13578 esac
13579 case ,${enable_languages}, in
13580 *,fortran,*) ;;
13581 *) ok=no ;;
13582 esac
13583 if test $ok = yes; then
13584 # An in-tree tool is available and we can use it
13585 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13587$as_echo "just compiled" >&6; }
2429c060
PB
13588 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13589 # We already found the complete path
b8025f34 13590 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13592$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13593 elif test "x$target" = "x$host"; then
13594 # We can use an host tool
13595 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13597$as_echo "host tool" >&6; }
be01d343
PB
13598 else
13599 # We need a cross tool
81ecdfbb
RW
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13601$as_echo "pre-installed" >&6; }
be01d343
PB
13602 fi
13603fi
4b900473 13604
e552509b
ILT
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13606$as_echo_n "checking where to find the target gccgo... " >&6; }
13607if test "x${build}" != "x${host}" ; then
13608 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13609 # We already found the complete path
13610 ac_dir=`dirname $GOC_FOR_TARGET`
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13612$as_echo "pre-installed in $ac_dir" >&6; }
13613 else
13614 # Canadian cross, just use what we found
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13616$as_echo "pre-installed" >&6; }
13617 fi
13618else
13619 ok=yes
13620 case " ${configdirs} " in
13621 *" gcc "*) ;;
13622 *) ok=no ;;
13623 esac
13624 case ,${enable_languages}, in
13625 *,go,*) ;;
13626 *) ok=no ;;
13627 esac
13628 if test $ok = yes; then
13629 # An in-tree tool is available and we can use it
13630 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13632$as_echo "just compiled" >&6; }
13633 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13634 # We already found the complete path
13635 ac_dir=`dirname $GOC_FOR_TARGET`
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13637$as_echo "pre-installed in $ac_dir" >&6; }
13638 elif test "x$target" = "x$host"; then
13639 # We can use an host tool
13640 GOC_FOR_TARGET='$(GOC)'
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13642$as_echo "host tool" >&6; }
13643 else
13644 # We need a cross tool
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13646$as_echo "pre-installed" >&6; }
13647 fi
13648fi
13649
81ecdfbb
RW
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13651$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13652if test "x${build}" != "x${host}" ; then
2429c060
PB
13653 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13654 # We already found the complete path
b8025f34 13655 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13657$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13658 else
13659 # Canadian cross, just use what we found
81ecdfbb
RW
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13661$as_echo "pre-installed" >&6; }
2429c060 13662 fi
be01d343
PB
13663else
13664 ok=yes
13665 case " ${configdirs} " in
13666 *" ld "*) ;;
13667 *) ok=no ;;
13668 esac
c6b750e1 13669
be01d343
PB
13670 if test $ok = yes; then
13671 # An in-tree tool is available and we can use it
13672 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13674$as_echo "just compiled" >&6; }
2429c060
PB
13675 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13676 # We already found the complete path
b8025f34 13677 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13679$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13680 elif test "x$target" = "x$host"; then
13681 # We can use an host tool
13682 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13684$as_echo "host tool" >&6; }
be01d343
PB
13685 else
13686 # We need a cross tool
81ecdfbb
RW
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13688$as_echo "pre-installed" >&6; }
be01d343
PB
13689 fi
13690fi
4b900473 13691
81ecdfbb
RW
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13693$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13694if test "x${build}" != "x${host}" ; then
2429c060
PB
13695 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13696 # We already found the complete path
b8025f34 13697 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13699$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13700 else
13701 # Canadian cross, just use what we found
81ecdfbb
RW
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13703$as_echo "pre-installed" >&6; }
2429c060 13704 fi
be01d343 13705else
2429c060
PB
13706 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13707 # We already found the complete path
b8025f34 13708 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13710$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13711 elif test "x$target" = "x$host"; then
be01d343
PB
13712 # We can use an host tool
13713 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13715$as_echo "host tool" >&6; }
be01d343
PB
13716 else
13717 # We need a cross tool
81ecdfbb
RW
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13719$as_echo "pre-installed" >&6; }
be01d343
PB
13720 fi
13721fi
4b900473 13722
81ecdfbb
RW
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13724$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13725if test "x${build}" != "x${host}" ; then
2429c060
PB
13726 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
b8025f34 13728 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13730$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13731 else
13732 # Canadian cross, just use what we found
81ecdfbb
RW
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13734$as_echo "pre-installed" >&6; }
2429c060 13735 fi
be01d343
PB
13736else
13737 ok=yes
13738 case " ${configdirs} " in
13739 *" binutils "*) ;;
13740 *) ok=no ;;
13741 esac
c6b750e1 13742
be01d343
PB
13743 if test $ok = yes; then
13744 # An in-tree tool is available and we can use it
13745 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13747$as_echo "just compiled" >&6; }
2429c060
PB
13748 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13749 # We already found the complete path
b8025f34 13750 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13752$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13753 elif test "x$target" = "x$host"; then
13754 # We can use an host tool
13755 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13757$as_echo "host tool" >&6; }
be01d343
PB
13758 else
13759 # We need a cross tool
81ecdfbb
RW
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13761$as_echo "pre-installed" >&6; }
be01d343
PB
13762 fi
13763fi
4b900473 13764
81ecdfbb
RW
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13766$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13767if test "x${build}" != "x${host}" ; then
2429c060
PB
13768 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
b8025f34 13770 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13772$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13773 else
13774 # Canadian cross, just use what we found
81ecdfbb
RW
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13776$as_echo "pre-installed" >&6; }
2429c060 13777 fi
be01d343
PB
13778else
13779 ok=yes
13780 case " ${configdirs} " in
13781 *" binutils "*) ;;
13782 *) ok=no ;;
13783 esac
c6b750e1 13784
be01d343
PB
13785 if test $ok = yes; then
13786 # An in-tree tool is available and we can use it
13787 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13789$as_echo "just compiled" >&6; }
2429c060
PB
13790 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13791 # We already found the complete path
b8025f34 13792 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13794$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13795 elif test "x$target" = "x$host"; then
13796 # We can use an host tool
13797 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13799$as_echo "host tool" >&6; }
be01d343
PB
13800 else
13801 # We need a cross tool
81ecdfbb
RW
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13803$as_echo "pre-installed" >&6; }
be01d343
PB
13804 fi
13805fi
4b900473 13806
81ecdfbb
RW
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13808$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13809if test "x${build}" != "x${host}" ; then
2429c060
PB
13810 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13811 # We already found the complete path
b8025f34 13812 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13814$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13815 else
13816 # Canadian cross, just use what we found
81ecdfbb
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13818$as_echo "pre-installed" >&6; }
2429c060 13819 fi
be01d343
PB
13820else
13821 ok=yes
13822 case " ${configdirs} " in
13823 *" binutils "*) ;;
13824 *) ok=no ;;
13825 esac
c6b750e1 13826
be01d343
PB
13827 if test $ok = yes; then
13828 # An in-tree tool is available and we can use it
13829 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13831$as_echo "just compiled" >&6; }
2429c060
PB
13832 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13833 # We already found the complete path
b8025f34 13834 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13836$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13837 elif test "x$target" = "x$host"; then
13838 # We can use an host tool
13839 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13841$as_echo "host tool" >&6; }
be01d343
PB
13842 else
13843 # We need a cross tool
81ecdfbb
RW
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13845$as_echo "pre-installed" >&6; }
be01d343
PB
13846 fi
13847fi
4b900473 13848
81ecdfbb
RW
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13850$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13851if test "x${build}" != "x${host}" ; then
2429c060
PB
13852 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13853 # We already found the complete path
b8025f34 13854 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13856$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13857 else
13858 # Canadian cross, just use what we found
81ecdfbb
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13860$as_echo "pre-installed" >&6; }
2429c060 13861 fi
be01d343
PB
13862else
13863 ok=yes
13864 case " ${configdirs} " in
13865 *" binutils "*) ;;
13866 *) ok=no ;;
13867 esac
c6b750e1 13868
be01d343
PB
13869 if test $ok = yes; then
13870 # An in-tree tool is available and we can use it
9b980aa1 13871 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13873$as_echo "just compiled" >&6; }
2429c060
PB
13874 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13875 # We already found the complete path
b8025f34 13876 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13878$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13879 elif test "x$target" = "x$host"; then
13880 # We can use an host tool
13881 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13883$as_echo "host tool" >&6; }
be01d343
PB
13884 else
13885 # We need a cross tool
81ecdfbb
RW
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13887$as_echo "pre-installed" >&6; }
be01d343
PB
13888 fi
13889fi
4b900473 13890
81ecdfbb
RW
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13892$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13893if test "x${build}" != "x${host}" ; then
2429c060
PB
13894 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13895 # We already found the complete path
b8025f34 13896 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13898$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13899 else
13900 # Canadian cross, just use what we found
81ecdfbb
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13902$as_echo "pre-installed" >&6; }
2429c060 13903 fi
be01d343
PB
13904else
13905 ok=yes
13906 case " ${configdirs} " in
13907 *" binutils "*) ;;
13908 *) ok=no ;;
13909 esac
c6b750e1 13910
be01d343
PB
13911 if test $ok = yes; then
13912 # An in-tree tool is available and we can use it
13913 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13915$as_echo "just compiled" >&6; }
2429c060
PB
13916 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13917 # We already found the complete path
b8025f34 13918 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13920$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13921 elif test "x$target" = "x$host"; then
13922 # We can use an host tool
13923 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13925$as_echo "host tool" >&6; }
be01d343
PB
13926 else
13927 # We need a cross tool
81ecdfbb
RW
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13929$as_echo "pre-installed" >&6; }
be01d343 13930 fi
a0da8069 13931fi
54752a6b 13932
81ecdfbb
RW
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13934$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13935if test "x${build}" != "x${host}" ; then
13936 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13937 # We already found the complete path
13938 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13940$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13941 else
13942 # Canadian cross, just use what we found
81ecdfbb
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13944$as_echo "pre-installed" >&6; }
0c24b341
NC
13945 fi
13946else
13947 ok=yes
13948 case " ${configdirs} " in
13949 *" binutils "*) ;;
13950 *) ok=no ;;
13951 esac
13952
13953 if test $ok = yes; then
13954 # An in-tree tool is available and we can use it
13955 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13957$as_echo "just compiled" >&6; }
0c24b341
NC
13958 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13959 # We already found the complete path
13960 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13962$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13963 elif test "x$target" = "x$host"; then
13964 # We can use an host tool
13965 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13967$as_echo "host tool" >&6; }
0c24b341
NC
13968 else
13969 # We need a cross tool
81ecdfbb
RW
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13971$as_echo "pre-installed" >&6; }
0c24b341
NC
13972 fi
13973fi
13974
54752a6b
NN
13975
13976
be01d343 13977
4b900473 13978
a0da8069
NN
13979# Certain tools may need extra flags.
13980AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13981RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13982NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13983
be01d343
PB
13984# When building target libraries, except in a Canadian cross, we use
13985# the same toolchain as the compiler we just built.
13986COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13987COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13988COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13989if test $host = $build; then
13990 case " $configdirs " in
13991 *" gcc "*)
13992 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13993 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13994 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13995 ;;
13996 esac
13997fi
13998
13999
14000
14001
14002
81ecdfbb
RW
14003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14004$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14005# Check whether --enable-maintainer-mode was given.
14006if test "${enable_maintainer_mode+set}" = set; then :
14007 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14008else
14009 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14010fi
14011
14012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14013$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14014
14015
14016if test "$USE_MAINTAINER_MODE" = yes; then
14017 MAINTAINER_MODE_TRUE=
14018 MAINTAINER_MODE_FALSE='#'
14019else
14020 MAINTAINER_MODE_TRUE='#'
14021 MAINTAINER_MODE_FALSE=
c6b750e1 14022fi
3d5e36ae
AO
14023MAINT=$MAINTAINER_MODE_TRUE
14024
1d39f329
NN
14025# ---------------------
14026# GCC bootstrap support
14027# ---------------------
14028
14029# Stage specific cflags for build.
14030stage1_cflags="-g"
14031case $build in
14032 vax-*-*)
14033 case ${GCC} in
14034 yes) stage1_cflags="-g -Wa,-J" ;;
14035 *) stage1_cflags="-g -J" ;;
14036 esac ;;
1d39f329
NN
14037esac
14038
1d89b610 14039# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 14040if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
14041 saved_CFLAGS="$CFLAGS"
14042
14043 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14044 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14046$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
14048/* end confdefs.h. */
14049
2038f525
PB
14050#if (__GNUC__ < 3) \
14051 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14052 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14053#error http://gcc.gnu.org/PR29382
14054#endif
14055
c6b750e1
DJ
14056int
14057main ()
14058{
14059
14060 ;
14061 return 0;
14062}
14063_ACEOF
81ecdfbb
RW
14064if ac_fn_c_try_compile "$LINENO"; then :
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14066$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14067else
81ecdfbb
RW
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069$as_echo "no" >&6; }
c6b750e1 14070fi
81ecdfbb 14071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14072
14073 CFLAGS="$saved_CFLAGS"
14074fi
14075
14076
1d39f329 14077
8a0d8a5c 14078# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14079# Check whether --enable-stage1-checking was given.
14080if test "${enable_stage1_checking+set}" = set; then :
14081 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14082else
5566c1fa 14083 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14084 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14085else
5566c1fa 14086 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14087fi
81ecdfbb 14088fi
8a0d8a5c
PB
14089
14090
c6b750e1 14091
81ecdfbb
RW
14092# Enable -Werror in bootstrap stage2 and later.
14093# Check whether --enable-werror was given.
14094if test "${enable_werror+set}" = set; then :
14095 enableval=$enable_werror;
1d39f329 14096else
a0323144 14097 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14098 enable_werror=yes
79fcd0ec
PB
14099else
14100 enable_werror=no
14101fi
81ecdfbb
RW
14102fi
14103
1a6f2dc7
NN
14104case ${enable_werror} in
14105 yes) stage2_werror_flag="--enable-werror-always" ;;
14106 *) stage2_werror_flag="" ;;
1d39f329
NN
14107esac
14108
14109
e8a5fa9c
RW
14110# Specify what files to not compare during bootstrap.
14111
14112compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14113case "$target" in
14114 hppa*64*-*-hpux*) ;;
14115 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14116esac
1f53ca9a
AO
14117case " $configdirs " in
14118*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14119esac
e8a5fa9c
RW
14120
14121
81ecdfbb
RW
14122ac_config_files="$ac_config_files Makefile"
14123
c6b750e1 14124cat >confcache <<\_ACEOF
a0da8069
NN
14125# This file is a shell script that caches the results of configure
14126# tests run on this system so they can be shared between configure
c6b750e1
DJ
14127# scripts and configure runs, see configure's option --config-cache.
14128# It is not useful on other systems. If it contains results you don't
14129# want to keep, you may remove or edit it.
a0da8069 14130#
c6b750e1
DJ
14131# config.status only pays attention to the cache file if you give it
14132# the --recheck option to rerun configure.
a0da8069 14133#
c6b750e1
DJ
14134# `ac_cv_env_foo' variables (set or unset) will be overridden when
14135# loading this file, other *unset* `ac_cv_foo' will be assigned the
14136# following values.
14137
14138_ACEOF
14139
a0da8069
NN
14140# The following way of writing the cache mishandles newlines in values,
14141# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14142# So, we kill variables containing newlines.
a0da8069
NN
14143# Ultrix sh set writes to stderr and can't be redirected directly,
14144# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14145(
14146 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14147 eval ac_val=\$$ac_var
14148 case $ac_val in #(
14149 *${as_nl}*)
14150 case $ac_var in #(
14151 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14152$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14153 esac
14154 case $ac_var in #(
14155 _ | IFS | as_nl) ;; #(
14156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14157 *) { eval $ac_var=; unset $ac_var;} ;;
14158 esac ;;
14159 esac
14160 done
14161
c6b750e1 14162 (set) 2>&1 |
81ecdfbb
RW
14163 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14164 *${as_nl}ac_space=\ *)
14165 # `set' does not quote correctly, so add quotes: double-quote
14166 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14167 sed -n \
14168 "s/'/'\\\\''/g;
14169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14170 ;; #(
c6b750e1
DJ
14171 *)
14172 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14174 ;;
81ecdfbb
RW
14175 esac |
14176 sort
14177) |
c6b750e1 14178 sed '
81ecdfbb 14179 /^ac_cv_env_/b end
c6b750e1 14180 t clear
81ecdfbb 14181 :clear
c6b750e1
DJ
14182 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14183 t end
81ecdfbb
RW
14184 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14185 :end' >>confcache
14186if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14187 if test -w "$cache_file"; then
14188 test "x$cache_file" != "x/dev/null" &&
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14190$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14191 cat confcache >$cache_file
a0da8069 14192 else
81ecdfbb
RW
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14194$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14195 fi
852e5f18 14196fi
a0da8069 14197rm -f confcache
852e5f18 14198
a0da8069
NN
14199test "x$prefix" = xNONE && prefix=$ac_default_prefix
14200# Let make expand exec_prefix.
14201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14202
a0da8069
NN
14203# Transform confdefs.h into DEFS.
14204# Protect against shell expansion while executing Makefile rules.
14205# Protect against Makefile macro expansion.
c6b750e1
DJ
14206#
14207# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14208# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14209# look for a macro that doesn't take arguments.
81ecdfbb
RW
14210ac_script='
14211:mline
14212/\\$/{
14213 N
14214 s,\\\n,,
14215 b mline
14216}
c6b750e1 14217t clear
81ecdfbb
RW
14218:clear
14219s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14220t quote
81ecdfbb 14221s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14222t quote
81ecdfbb
RW
14223b any
14224:quote
14225s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14226s/\[/\\&/g
14227s/\]/\\&/g
14228s/\$/$$/g
14229H
14230:any
14231${
14232 g
14233 s/^\n//
14234 s/\n/ /g
14235 p
14236}
14237'
14238DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14239
14240
14241ac_libobjs=
14242ac_ltlibobjs=
14243for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14244 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14245 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14246 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14247 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14248 # will be set to the directory where LIBOBJS objects are built.
14249 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14250 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14251done
14252LIBOBJS=$ac_libobjs
852e5f18 14253
c6b750e1 14254LTLIBOBJS=$ac_ltlibobjs
376a0e54 14255
cac3d6c4 14256
c6b750e1
DJ
14257
14258: ${CONFIG_STATUS=./config.status}
81ecdfbb 14259ac_write_fail=0
c6b750e1
DJ
14260ac_clean_files_save=$ac_clean_files
14261ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14263$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14264as_write_fail=0
14265cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14266#! $SHELL
14267# Generated by $as_me.
a0da8069 14268# Run this file to recreate the current configuration.
a0da8069 14269# Compiler output produced by configure, useful for debugging
c6b750e1 14270# configure, is in config.log if it exists.
376a0e54 14271
c6b750e1
DJ
14272debug=false
14273ac_cs_recheck=false
14274ac_cs_silent=false
c6b750e1 14275
81ecdfbb
RW
14276SHELL=\${CONFIG_SHELL-$SHELL}
14277export SHELL
14278_ASEOF
14279cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14280## -------------------- ##
14281## M4sh Initialization. ##
14282## -------------------- ##
14283
14284# Be more Bourne compatible
14285DUALCASE=1; export DUALCASE # for MKS sh
14286if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14287 emulate sh
14288 NULLCMD=:
81ecdfbb 14289 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14290 # is contrary to our usage. Disable this feature.
14291 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14292 setopt NO_GLOB_SUBST
14293else
14294 case `(set -o) 2>/dev/null` in #(
14295 *posix*) :
14296 set -o posix ;; #(
14297 *) :
14298 ;;
14299esac
c6b750e1 14300fi
c6b750e1 14301
81ecdfbb
RW
14302
14303as_nl='
14304'
14305export as_nl
14306# Printing a long string crashes Solaris 7 /usr/bin/printf.
14307as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14308as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14309as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14310# Prefer a ksh shell builtin over an external printf program on Solaris,
14311# but without wasting forks for bash or zsh.
14312if test -z "$BASH_VERSION$ZSH_VERSION" \
14313 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14314 as_echo='print -r --'
14315 as_echo_n='print -rn --'
14316elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14317 as_echo='printf %s\n'
14318 as_echo_n='printf %s'
14319else
14320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14321 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14322 as_echo_n='/usr/ucb/echo -n'
14323 else
14324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14325 as_echo_n_body='eval
14326 arg=$1;
14327 case $arg in #(
14328 *"$as_nl"*)
14329 expr "X$arg" : "X\\(.*\\)$as_nl";
14330 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14331 esac;
14332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14333 '
14334 export as_echo_n_body
14335 as_echo_n='sh -c $as_echo_n_body as_echo'
14336 fi
14337 export as_echo_body
14338 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14339fi
14340
81ecdfbb
RW
14341# The user is always right.
14342if test "${PATH_SEPARATOR+set}" != set; then
14343 PATH_SEPARATOR=:
14344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14345 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14346 PATH_SEPARATOR=';'
14347 }
14348fi
14349
14350
14351# IFS
14352# We need space, tab and new line, in precisely that order. Quoting is
14353# there to prevent editors from complaining about space-tab.
14354# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14355# splitting by setting IFS to empty value.)
14356IFS=" "" $as_nl"
14357
14358# Find who we are. Look in the path if we contain no directory separator.
14359case $0 in #((
14360 *[\\/]* ) as_myself=$0 ;;
14361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362for as_dir in $PATH
14363do
14364 IFS=$as_save_IFS
14365 test -z "$as_dir" && as_dir=.
14366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14367 done
14368IFS=$as_save_IFS
14369
14370 ;;
14371esac
14372# We did not find ourselves, most probably we were run as `sh COMMAND'
14373# in which case we are not to be found in the path.
14374if test "x$as_myself" = x; then
14375 as_myself=$0
14376fi
14377if test ! -f "$as_myself"; then
14378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14379 exit 1
14380fi
c6b750e1 14381
81ecdfbb
RW
14382# Unset variables that we do not need and which cause bugs (e.g. in
14383# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14384# suppresses any "Segmentation fault" message there. '((' could
14385# trigger a bug in pdksh 5.2.14.
14386for as_var in BASH_ENV ENV MAIL MAILPATH
14387do eval test x\${$as_var+set} = xset \
14388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14389done
c6b750e1
DJ
14390PS1='$ '
14391PS2='> '
14392PS4='+ '
14393
14394# NLS nuisances.
81ecdfbb
RW
14395LC_ALL=C
14396export LC_ALL
14397LANGUAGE=C
14398export LANGUAGE
14399
14400# CDPATH.
14401(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14402
14403
14404# as_fn_error ERROR [LINENO LOG_FD]
14405# ---------------------------------
14406# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14407# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14408# script with status $?, using 1 if that was 0.
14409as_fn_error ()
14410{
14411 as_status=$?; test $as_status -eq 0 && as_status=1
14412 if test "$3"; then
14413 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14415 fi
81ecdfbb
RW
14416 $as_echo "$as_me: error: $1" >&2
14417 as_fn_exit $as_status
14418} # as_fn_error
14419
14420
14421# as_fn_set_status STATUS
14422# -----------------------
14423# Set $? to STATUS, without forking.
14424as_fn_set_status ()
14425{
14426 return $1
14427} # as_fn_set_status
14428
14429# as_fn_exit STATUS
14430# -----------------
14431# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14432as_fn_exit ()
14433{
14434 set +e
14435 as_fn_set_status $1
14436 exit $1
14437} # as_fn_exit
14438
14439# as_fn_unset VAR
14440# ---------------
14441# Portably unset VAR.
14442as_fn_unset ()
14443{
14444 { eval $1=; unset $1;}
14445}
14446as_unset=as_fn_unset
14447# as_fn_append VAR VALUE
14448# ----------------------
14449# Append the text in VALUE to the end of the definition contained in VAR. Take
14450# advantage of any shell optimizations that allow amortized linear growth over
14451# repeated appends, instead of the typical quadratic growth present in naive
14452# implementations.
14453if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14454 eval 'as_fn_append ()
14455 {
14456 eval $1+=\$2
14457 }'
14458else
14459 as_fn_append ()
14460 {
14461 eval $1=\$$1\$2
14462 }
14463fi # as_fn_append
14464
14465# as_fn_arith ARG...
14466# ------------------
14467# Perform arithmetic evaluation on the ARGs, and store the result in the
14468# global $as_val. Take advantage of shells that can avoid forks. The arguments
14469# must be portable across $(()) and expr.
14470if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14471 eval 'as_fn_arith ()
14472 {
14473 as_val=$(( $* ))
14474 }'
14475else
14476 as_fn_arith ()
14477 {
14478 as_val=`expr "$@" || test $? -eq 1`
14479 }
14480fi # as_fn_arith
14481
c6b750e1 14482
81ecdfbb
RW
14483if expr a : '\(a\)' >/dev/null 2>&1 &&
14484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14485 as_expr=expr
14486else
14487 as_expr=false
14488fi
14489
81ecdfbb 14490if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14491 as_basename=basename
14492else
14493 as_basename=false
14494fi
14495
81ecdfbb
RW
14496if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14497 as_dirname=dirname
14498else
14499 as_dirname=false
14500fi
c6b750e1 14501
81ecdfbb 14502as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14503$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14504 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14506$as_echo X/"$0" |
14507 sed '/^.*\/\([^/][^/]*\)\/*$/{
14508 s//\1/
14509 q
14510 }
14511 /^X\/\(\/\/\)$/{
14512 s//\1/
14513 q
14514 }
14515 /^X\/\(\/\).*/{
14516 s//\1/
14517 q
14518 }
14519 s/.*/./; q'`
c6b750e1 14520
c6b750e1
DJ
14521# Avoid depending upon Character Ranges.
14522as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14523as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14524as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14525as_cr_digits='0123456789'
14526as_cr_alnum=$as_cr_Letters$as_cr_digits
14527
81ecdfbb
RW
14528ECHO_C= ECHO_N= ECHO_T=
14529case `echo -n x` in #(((((
14530-n*)
14531 case `echo 'xy\c'` in
14532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14533 xy) ECHO_C='\c';;
14534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14535 ECHO_T=' ';;
14536 esac;;
14537*)
14538 ECHO_N='-n';;
c6b750e1
DJ
14539esac
14540
81ecdfbb
RW
14541rm -f conf$$ conf$$.exe conf$$.file
14542if test -d conf$$.dir; then
14543 rm -f conf$$.dir/conf$$.file
c6b750e1 14544else
81ecdfbb
RW
14545 rm -f conf$$.dir
14546 mkdir conf$$.dir 2>/dev/null
c6b750e1 14547fi
81ecdfbb
RW
14548if (echo >conf$$.file) 2>/dev/null; then
14549 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14550 as_ln_s='ln -s'
81ecdfbb
RW
14551 # ... but there are two gotchas:
14552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14554 # In both cases, we have to default to `cp -p'.
14555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14556 as_ln_s='cp -p'
14557 elif ln conf$$.file conf$$ 2>/dev/null; then
14558 as_ln_s=ln
14559 else
14560 as_ln_s='cp -p'
c6b750e1 14561 fi
c6b750e1
DJ
14562else
14563 as_ln_s='cp -p'
14564fi
81ecdfbb
RW
14565rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14566rmdir conf$$.dir 2>/dev/null
14567
14568
14569# as_fn_mkdir_p
14570# -------------
14571# Create "$as_dir" as a directory, including parents if necessary.
14572as_fn_mkdir_p ()
14573{
14574
14575 case $as_dir in #(
14576 -*) as_dir=./$as_dir;;
14577 esac
14578 test -d "$as_dir" || eval $as_mkdir_p || {
14579 as_dirs=
14580 while :; do
14581 case $as_dir in #(
14582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14583 *) as_qdir=$as_dir;;
14584 esac
14585 as_dirs="'$as_qdir' $as_dirs"
14586 as_dir=`$as_dirname -- "$as_dir" ||
14587$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14588 X"$as_dir" : 'X\(//\)[^/]' \| \
14589 X"$as_dir" : 'X\(//\)$' \| \
14590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14591$as_echo X"$as_dir" |
14592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14593 s//\1/
14594 q
14595 }
14596 /^X\(\/\/\)[^/].*/{
14597 s//\1/
14598 q
14599 }
14600 /^X\(\/\/\)$/{
14601 s//\1/
14602 q
14603 }
14604 /^X\(\/\).*/{
14605 s//\1/
14606 q
14607 }
14608 s/.*/./; q'`
14609 test -d "$as_dir" && break
14610 done
14611 test -z "$as_dirs" || eval "mkdir $as_dirs"
14612 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14613
c6b750e1 14614
81ecdfbb 14615} # as_fn_mkdir_p
c6b750e1 14616if mkdir -p . 2>/dev/null; then
81ecdfbb 14617 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14618else
14619 test -d ./-p && rmdir ./-p
14620 as_mkdir_p=false
14621fi
14622
81ecdfbb
RW
14623if test -x / >/dev/null 2>&1; then
14624 as_test_x='test -x'
14625else
14626 if ls -dL / >/dev/null 2>&1; then
14627 as_ls_L_option=L
14628 else
14629 as_ls_L_option=
14630 fi
14631 as_test_x='
14632 eval sh -c '\''
14633 if test -d "$1"; then
14634 test -d "$1/.";
14635 else
14636 case $1 in #(
14637 -*)set "./$1";;
14638 esac;
14639 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14640 ???[sx]*):;;*)false;;esac;fi
14641 '\'' sh
14642 '
14643fi
14644as_executable_p=$as_test_x
c6b750e1
DJ
14645
14646# Sed expression to map a string onto a valid CPP name.
14647as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14648
14649# Sed expression to map a string onto a valid variable name.
14650as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14651
14652
c6b750e1 14653exec 6>&1
81ecdfbb
RW
14654## ----------------------------------- ##
14655## Main body of $CONFIG_STATUS script. ##
14656## ----------------------------------- ##
14657_ASEOF
14658test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14659
14660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14661# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14662# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14663# values after options handling.
14664ac_log="
c6b750e1 14665This file was extended by $as_me, which was
81ecdfbb 14666generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14667
14668 CONFIG_FILES = $CONFIG_FILES
14669 CONFIG_HEADERS = $CONFIG_HEADERS
14670 CONFIG_LINKS = $CONFIG_LINKS
14671 CONFIG_COMMANDS = $CONFIG_COMMANDS
14672 $ $0 $@
14673
81ecdfbb
RW
14674on `(hostname || uname -n) 2>/dev/null | sed 1q`
14675"
14676
c6b750e1
DJ
14677_ACEOF
14678
81ecdfbb
RW
14679case $ac_config_files in *"
14680"*) set x $ac_config_files; shift; ac_config_files=$*;;
14681esac
c6b750e1 14682
c6b750e1 14683
c6b750e1 14684
81ecdfbb
RW
14685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14686# Files that config.status was made for.
14687config_files="$ac_config_files"
c6b750e1 14688
81ecdfbb 14689_ACEOF
c6b750e1 14690
81ecdfbb 14691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14692ac_cs_usage="\
81ecdfbb
RW
14693\`$as_me' instantiates files and other configuration actions
14694from templates according to the current configuration. Unless the files
14695and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14696
81ecdfbb 14697Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14698
14699 -h, --help print this help, then exit
81ecdfbb
RW
14700 -V, --version print version number and configuration settings, then exit
14701 -q, --quiet, --silent
14702 do not print progress messages
c6b750e1
DJ
14703 -d, --debug don't remove temporary files
14704 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14705 --file=FILE[:TEMPLATE]
14706 instantiate the configuration file FILE
c6b750e1
DJ
14707
14708Configuration files:
14709$config_files
14710
81ecdfbb 14711Report bugs to the package provider."
c6b750e1 14712
81ecdfbb
RW
14713_ACEOF
14714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14715ac_cs_version="\\
14716config.status
81ecdfbb
RW
14717configured by $0, generated by GNU Autoconf 2.64,
14718 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14719
81ecdfbb 14720Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14721This config.status script is free software; the Free Software Foundation
14722gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14723
14724ac_pwd='$ac_pwd'
14725srcdir='$srcdir'
14726INSTALL='$INSTALL'
8e957354 14727AWK='$AWK'
81ecdfbb 14728test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14729_ACEOF
14730
81ecdfbb
RW
14731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14732# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14733ac_need_defaults=:
14734while test $# != 0
a0da8069 14735do
c6b750e1
DJ
14736 case $1 in
14737 --*=*)
81ecdfbb
RW
14738 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14739 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14740 ac_shift=:
14741 ;;
81ecdfbb 14742 *)
c6b750e1
DJ
14743 ac_option=$1
14744 ac_optarg=$2
14745 ac_shift=shift
14746 ;;
c6b750e1
DJ
14747 esac
14748
14749 case $ac_option in
14750 # Handling of the options.
a0da8069 14751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14752 ac_cs_recheck=: ;;
81ecdfbb
RW
14753 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14754 $as_echo "$ac_cs_version"; exit ;;
14755 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14756 debug=: ;;
14757 --file | --fil | --fi | --f )
14758 $ac_shift
81ecdfbb
RW
14759 case $ac_optarg in
14760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14761 esac
14762 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14763 ac_need_defaults=false;;
81ecdfbb
RW
14764 --he | --h | --help | --hel | -h )
14765 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14767 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14768 ac_cs_silent=: ;;
14769
14770 # This is an error.
81ecdfbb
RW
14771 -*) as_fn_error "unrecognized option: \`$1'
14772Try \`$0 --help' for more information." ;;
c6b750e1 14773
81ecdfbb
RW
14774 *) as_fn_append ac_config_targets " $1"
14775 ac_need_defaults=false ;;
c6b750e1 14776
376a0e54 14777 esac
c6b750e1 14778 shift
376a0e54
CM
14779done
14780
c6b750e1 14781ac_configure_extra_args=
376a0e54 14782
c6b750e1
DJ
14783if $ac_cs_silent; then
14784 exec 6>/dev/null
14785 ac_configure_extra_args="$ac_configure_extra_args --silent"
14786fi
376a0e54 14787
c6b750e1 14788_ACEOF
81ecdfbb 14789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14790if \$ac_cs_recheck; then
81ecdfbb
RW
14791 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14792 shift
14793 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14794 CONFIG_SHELL='$SHELL'
14795 export CONFIG_SHELL
14796 exec "\$@"
c6b750e1
DJ
14797fi
14798
14799_ACEOF
81ecdfbb
RW
14800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14801exec 5>>config.log
14802{
14803 echo
14804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14805## Running $as_me. ##
14806_ASBOX
14807 $as_echo "$ac_log"
14808} >&5
c6b750e1 14809
81ecdfbb
RW
14810_ACEOF
14811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14812#
14813# INIT-COMMANDS
14814#
14815extrasub_build="$extrasub_build"
14816 extrasub_host="$extrasub_host"
14817 extrasub_target="$extrasub_target"
14818
81ecdfbb 14819_ACEOF
c6b750e1 14820
81ecdfbb 14821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14822
81ecdfbb 14823# Handling of arguments.
c6b750e1
DJ
14824for ac_config_target in $ac_config_targets
14825do
81ecdfbb
RW
14826 case $ac_config_target in
14827 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14828
14829 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14830 esac
14831done
14832
81ecdfbb 14833
c6b750e1
DJ
14834# If the user did not use the arguments to specify the items to instantiate,
14835# then the envvar interface is used. Set only those that are not.
14836# We use the long form for the default assignment because of an extremely
14837# bizarre bug on SunOS 4.1.3.
14838if $ac_need_defaults; then
14839 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14840fi
14841
14842# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14843# simply because there is no reason against having it here, and in addition,
c6b750e1 14844# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14845# Hook for its removal unless debugging.
14846# Note that there is a small window in which the directory will not be cleaned:
14847# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14848$debug ||
14849{
81ecdfbb
RW
14850 tmp=
14851 trap 'exit_status=$?
14852 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14853' 0
14854 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14855}
c6b750e1
DJ
14856# Create a (secure) tmp directory for tmp files.
14857
14858{
81ecdfbb 14859 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14860 test -n "$tmp" && test -d "$tmp"
14861} ||
14862{
81ecdfbb
RW
14863 tmp=./conf$$-$RANDOM
14864 (umask 077 && mkdir "$tmp")
14865} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14866
14867# Set up the scripts for CONFIG_FILES section.
14868# No need to generate them if there are no CONFIG_FILES.
14869# This happens for instance with `./config.status config.h'.
14870if test -n "$CONFIG_FILES"; then
14871
14872if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14873 ac_cs_awk_getline=:
14874 ac_cs_awk_pipe_init=
14875 ac_cs_awk_read_file='
14876 while ((getline aline < (F[key])) > 0)
14877 print(aline)
14878 close(F[key])'
14879 ac_cs_awk_pipe_fini=
14880else
14881 ac_cs_awk_getline=false
14882 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14883 ac_cs_awk_read_file='
14884 print "|#_!!_#|"
14885 print "cat " F[key] " &&"
14886 '$ac_cs_awk_pipe_init
14887 # The final `:' finishes the AND list.
14888 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14889fi
14890ac_cr=`echo X | tr X '\015'`
14891# On cygwin, bash can eat \r inside `` if the user requested igncr.
14892# But we know of no other shell where ac_cr would be empty at this
14893# point, so we can use a bashism as a fallback.
14894if test "x$ac_cr" = x; then
14895 eval ac_cr=\$\'\\r\'
14896fi
14897ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14898if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14899 ac_cs_awk_cr='\r'
14900else
14901 ac_cs_awk_cr=$ac_cr
14902fi
14903
14904echo 'BEGIN {' >"$tmp/subs1.awk" &&
14905_ACEOF
14906
14907# Create commands to substitute file output variables.
c6b750e1 14908{
81ecdfbb
RW
14909 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14910 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14911 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14912 echo "_ACAWK" &&
14913 echo "_ACEOF"
14914} >conf$$files.sh &&
14915. ./conf$$files.sh ||
14916 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14917rm -f conf$$files.sh
c6b750e1 14918
81ecdfbb
RW
14919{
14920 echo "cat >conf$$subs.awk <<_ACEOF" &&
14921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14922 echo "_ACEOF"
14923} >conf$$subs.sh ||
14924 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14925ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14926ac_delim='%!_!# '
14927for ac_last_try in false false false false false :; do
14928 . ./conf$$subs.sh ||
14929 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14930
14931 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14932 if test $ac_delim_n = $ac_delim_num; then
14933 break
14934 elif $ac_last_try; then
14935 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14936 else
14937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14938 fi
14939done
14940rm -f conf$$subs.sh
14941
14942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14944_ACEOF
81ecdfbb
RW
14945sed -n '
14946h
14947s/^/S["/; s/!.*/"]=/
14948p
14949g
14950s/^[^!]*!//
14951:repl
14952t repl
14953s/'"$ac_delim"'$//
14954t delim
14955:nl
14956h
14957s/\(.\{148\}\).*/\1/
14958t more1
14959s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14960p
14961n
14962b repl
14963:more1
14964s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14965p
14966g
14967s/.\{148\}//
14968t nl
14969:delim
14970h
14971s/\(.\{148\}\).*/\1/
14972t more2
14973s/["\\]/\\&/g; s/^/"/; s/$/"/
14974p
14975b
14976:more2
14977s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14978p
14979g
14980s/.\{148\}//
14981t delim
14982' <conf$$subs.awk | sed '
14983/^[^""]/{
14984 N
14985 s/\n//
14986}
14987' >>$CONFIG_STATUS || ac_write_fail=1
14988rm -f conf$$subs.awk
14989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14990_ACAWK
14991cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14992 for (key in S) S_is_set[key] = 1
14993 FS = "\a"
14994 \$ac_cs_awk_pipe_init
14995}
14996{
14997 line = $ 0
14998 nfields = split(line, field, "@")
14999 substed = 0
15000 len = length(field[1])
15001 for (i = 2; i < nfields; i++) {
15002 key = field[i]
15003 keylen = length(key)
15004 if (S_is_set[key]) {
15005 value = S[key]
15006 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15007 len += length(value) + length(field[++i])
15008 substed = 1
15009 } else
15010 len += 1 + keylen
15011 }
15012 if (nfields == 3 && !substed) {
15013 key = field[2]
15014 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15015 \$ac_cs_awk_read_file
15016 next
15017 }
15018 }
15019 print line
15020}
15021\$ac_cs_awk_pipe_fini
15022_ACAWK
15023_ACEOF
15024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15025if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15026 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15027else
15028 cat
15029fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15030 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15031_ACEOF
15032
15033# VPATH may cause trouble with some makes, so we remove $(srcdir),
15034# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15035# trailing colons and then remove the whole line if VPATH becomes empty
15036# (actually we leave an empty line to preserve line numbers).
15037if test "x$srcdir" = x.; then
15038 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15039s/:*\$(srcdir):*/:/
15040s/:*\${srcdir}:*/:/
15041s/:*@srcdir@:*/:/
15042s/^\([^=]*=[ ]*\):*/\1/
15043s/:*$//
15044s/^[^=]*=[ ]*$//
15045}'
15046fi
c6b750e1 15047
81ecdfbb
RW
15048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15049fi # test -n "$CONFIG_FILES"
c6b750e1 15050
c6b750e1 15051
81ecdfbb
RW
15052eval set X " :F $CONFIG_FILES "
15053shift
15054for ac_tag
15055do
15056 case $ac_tag in
15057 :[FHLC]) ac_mode=$ac_tag; continue;;
15058 esac
15059 case $ac_mode$ac_tag in
15060 :[FHL]*:*);;
15061 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15062 :[FH]-) ac_tag=-:-;;
15063 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15064 esac
15065 ac_save_IFS=$IFS
15066 IFS=:
15067 set x $ac_tag
15068 IFS=$ac_save_IFS
15069 shift
15070 ac_file=$1
15071 shift
252b5132 15072
81ecdfbb
RW
15073 case $ac_mode in
15074 :L) ac_source=$1;;
15075 :[FH])
15076 ac_file_inputs=
15077 for ac_f
15078 do
15079 case $ac_f in
15080 -) ac_f="$tmp/stdin";;
15081 *) # Look for the file first in the build tree, then in the source tree
15082 # (if the path is not absolute). The absolute path cannot be DOS-style,
15083 # because $ac_f cannot contain `:'.
15084 test -f "$ac_f" ||
15085 case $ac_f in
15086 [\\/$]*) false;;
15087 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15088 esac ||
15089 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15090 esac
15091 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15092 as_fn_append ac_file_inputs " '$ac_f'"
15093 done
c6b750e1 15094
81ecdfbb
RW
15095 # Let's still pretend it is `configure' which instantiates (i.e., don't
15096 # use $as_me), people would be surprised to read:
15097 # /* config.h. Generated by config.status. */
15098 configure_input='Generated from '`
15099 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15100 `' by configure.'
15101 if test x"$ac_file" != x-; then
15102 configure_input="$ac_file. $configure_input"
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15104$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15105 fi
81ecdfbb
RW
15106 # Neutralize special characters interpreted by sed in replacement strings.
15107 case $configure_input in #(
15108 *\&* | *\|* | *\\* )
15109 ac_sed_conf_input=`$as_echo "$configure_input" |
15110 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15111 *) ac_sed_conf_input=$configure_input;;
15112 esac
cac3d6c4 15113
81ecdfbb
RW
15114 case $ac_tag in
15115 *:-:* | *:-) cat >"$tmp/stdin" \
15116 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15117 esac
15118 ;;
a0da8069 15119 esac
252b5132 15120
81ecdfbb 15121 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15122$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15123 X"$ac_file" : 'X\(//\)[^/]' \| \
15124 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15125 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15126$as_echo X"$ac_file" |
15127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15128 s//\1/
15129 q
15130 }
15131 /^X\(\/\/\)[^/].*/{
15132 s//\1/
15133 q
15134 }
15135 /^X\(\/\/\)$/{
15136 s//\1/
15137 q
15138 }
15139 /^X\(\/\).*/{
15140 s//\1/
15141 q
15142 }
15143 s/.*/./; q'`
15144 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15145 ac_builddir=.
252b5132 15146
81ecdfbb
RW
15147case "$ac_dir" in
15148.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15149*)
15150 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15151 # A ".." for each directory in $ac_dir_suffix.
15152 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15153 case $ac_top_builddir_sub in
15154 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15155 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15156 esac ;;
15157esac
15158ac_abs_top_builddir=$ac_pwd
15159ac_abs_builddir=$ac_pwd$ac_dir_suffix
15160# for backward compatibility:
15161ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15162
15163case $srcdir in
81ecdfbb 15164 .) # We are building in place.
c6b750e1 15165 ac_srcdir=.
81ecdfbb
RW
15166 ac_top_srcdir=$ac_top_builddir_sub
15167 ac_abs_top_srcdir=$ac_pwd ;;
15168 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15169 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15170 ac_top_srcdir=$srcdir
15171 ac_abs_top_srcdir=$srcdir ;;
15172 *) # Relative name.
15173 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15174 ac_top_srcdir=$ac_top_build_prefix$srcdir
15175 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15176esac
81ecdfbb 15177ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15178
252b5132 15179
81ecdfbb
RW
15180 case $ac_mode in
15181 :F)
15182 #
15183 # CONFIG_FILE
15184 #
c6b750e1
DJ
15185
15186 case $INSTALL in
15187 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15188 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15189 esac
81ecdfbb 15190_ACEOF
252b5132 15191
81ecdfbb
RW
15192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15193# If the template does not know about datarootdir, expand it.
15194# FIXME: This hack should be removed a few years after 2.60.
15195ac_datarootdir_hack=; ac_datarootdir_seen=
15196ac_sed_dataroot='
15197/datarootdir/ {
15198 p
15199 q
15200}
15201/@datadir@/p
15202/@docdir@/p
15203/@infodir@/p
15204/@localedir@/p
15205/@mandir@/p'
15206case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15207*datarootdir*) ac_datarootdir_seen=yes;;
15208*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15210$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15211_ACEOF
81ecdfbb
RW
15212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15213 ac_datarootdir_hack='
15214 s&@datadir@&$datadir&g
15215 s&@docdir@&$docdir&g
15216 s&@infodir@&$infodir&g
15217 s&@localedir@&$localedir&g
15218 s&@mandir@&$mandir&g
15219 s&\\\${datarootdir}&$datarootdir&g' ;;
15220esac
15221_ACEOF
15222
15223# Neutralize VPATH when `$srcdir' = `.'.
15224# Shell code in configure.ac might set extrasub.
15225# FIXME: do we really want to maintain this feature?
15226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15228$extrasub
15229_ACEOF
81ecdfbb 15230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15231:t
15232/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15233s|@configure_input@|$ac_sed_conf_input|;t t
15234s&@top_builddir@&$ac_top_builddir_sub&;t t
15235s&@top_build_prefix@&$ac_top_build_prefix&;t t
15236s&@srcdir@&$ac_srcdir&;t t
15237s&@abs_srcdir@&$ac_abs_srcdir&;t t
15238s&@top_srcdir@&$ac_top_srcdir&;t t
15239s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15240s&@builddir@&$ac_builddir&;t t
15241s&@abs_builddir@&$ac_abs_builddir&;t t
15242s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15243s&@INSTALL@&$ac_INSTALL&;t t
15244$ac_datarootdir_hack
15245"
15246eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15247if $ac_cs_awk_getline; then
15248 $AWK -f "$tmp/subs.awk"
15249else
15250 $AWK -f "$tmp/subs.awk" | $SHELL
15251fi >$tmp/out \
15252 || as_fn_error "could not create $ac_file" "$LINENO" 5
15253
15254test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15255 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15258which seems to be undefined. Please make sure it is defined." >&5
15259$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15260which seems to be undefined. Please make sure it is defined." >&2;}
15261
15262 rm -f "$tmp/stdin"
15263 case $ac_file in
15264 -) cat "$tmp/out" && rm -f "$tmp/out";;
15265 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15266 esac \
15267 || as_fn_error "could not create $ac_file" "$LINENO" 5
15268 ;;
c148b4cb 15269
c148b4cb 15270
c148b4cb 15271
81ecdfbb
RW
15272 esac
15273
06a51eac
RW
15274
15275 case $ac_file$ac_mode in
15276 "Makefile":F) sed "$extrasub_build" Makefile |
15277 sed "$extrasub_host" |
15278 sed "$extrasub_target" > mf$$
15279 mv -f mf$$ Makefile ;;
15280
15281 esac
81ecdfbb
RW
15282done # for ac_tag
15283
15284
15285as_fn_exit 0
c6b750e1 15286_ACEOF
c6b750e1
DJ
15287ac_clean_files=$ac_clean_files_save
15288
81ecdfbb
RW
15289test $ac_write_fail = 0 ||
15290 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15291
c6b750e1
DJ
15292
15293# configure is writing to config.log, and then calls config.status.
15294# config.status does its own redirection, appending to config.log.
15295# Unfortunately, on DOS this fails, as config.log is still kept open
15296# by configure, so config.status won't be able to write to it; its
15297# output is simply discarded. So we exec the FD to /dev/null,
15298# effectively closing config.log, so it can be properly (re)opened and
15299# appended to by config.status. When coming back to configure, we
15300# need to make the FD available again.
15301if test "$no_create" != yes; then
15302 ac_cs_success=:
15303 ac_config_status_args=
15304 test "$silent" = yes &&
15305 ac_config_status_args="$ac_config_status_args --quiet"
15306 exec 5>/dev/null
15307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15308 exec 5>>config.log
15309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15310 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15311 $ac_cs_success || as_fn_exit $?
15312fi
15313if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15315$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15316fi
c148b4cb 15317
This page took 1.489738 seconds and 4 git commands to generate.