* ppc-linux-nat.c (check_condition): Add len output parameter.
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
c6b750e1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
c6b750e1 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
e552509b 581GOC_FOR_TARGET
81ecdfbb
RW
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
81ecdfbb
RW
607WINDRES_FOR_BUILD
608WINDMC_FOR_BUILD
609RANLIB_FOR_BUILD
610NM_FOR_BUILD
611LD_FOR_BUILD
612LDFLAGS_FOR_BUILD
e552509b 613GOC_FOR_BUILD
81ecdfbb
RW
614GFORTRAN_FOR_BUILD
615GCJ_FOR_BUILD
616DLLTOOL_FOR_BUILD
617CXX_FOR_BUILD
618CXXFLAGS_FOR_BUILD
619CFLAGS_FOR_BUILD
620CC_FOR_BUILD
621AS_FOR_BUILD
622AR_FOR_BUILD
911e63d0 623target_configdirs
81ecdfbb 624configdirs
81ecdfbb 625build_configdirs
81ecdfbb
RW
626INSTALL_GDB_TK
627GDB_TK
628CONFIGURE_GDB_TK
629build_tooldir
630tooldir
631GCC_SHLIB_SUBDIR
632RPATH_ENVVAR
4074d5f2
RW
633target_configargs
634host_configargs
635build_configargs
96655cc4 636BUILD_CONFIG
81ecdfbb
RW
637CXXFLAGS_FOR_TARGET
638CFLAGS_FOR_TARGET
639DEBUG_PREFIX_CFLAGS_FOR_TARGET
640SYSROOT_CFLAGS_FOR_TARGET
641stage1_languages
700d40ca 642extra_host_libiberty_configure_flags
81ecdfbb
RW
643clooginc
644clooglibs
645pplinc
646ppllibs
81ecdfbb 647poststage1_ldflags
143754cd 648poststage1_libs
81ecdfbb
RW
649stage1_libs
650stage1_ldflags
651extra_mpc_mpfr_configure_flags
652extra_mpc_gmp_configure_flags
653extra_mpfr_configure_flags
654gmpinc
655gmplibs
656do_compare
657GNATMAKE
658GNATBIND
659ac_ct_CXX
660CXXFLAGS
661CXX
662OBJEXT
663EXEEXT
664ac_ct_CC
665CPPFLAGS
666LDFLAGS
667CFLAGS
668CC
669target_subdir
670host_subdir
671build_subdir
672build_libsubdir
8e957354
PB
673AWK
674SED
81ecdfbb
RW
675LN_S
676LN
677INSTALL_DATA
678INSTALL_SCRIPT
679INSTALL_PROGRAM
680target_os
681target_vendor
682target_cpu
683target
684host_os
685host_vendor
686host_cpu
687host
688target_noncanonical
689host_noncanonical
690build_noncanonical
691build_os
692build_vendor
693build_cpu
694build
695TOPLEVEL_CONFIGURE_ARGUMENTS
696target_alias
697host_alias
698build_alias
699LIBS
700ECHO_T
701ECHO_N
702ECHO_C
703DEFS
704mandir
705localedir
706libdir
707psdir
708pdfdir
709dvidir
710htmldir
711infodir
712docdir
713oldincludedir
714includedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files='serialization_dependencies
735host_makefile_frag
736target_makefile_frag
737alphaieee_frag
738ospace_frag'
739ac_user_opts='
740enable_option_checking
741with_build_libsubdir
742enable_gold
c7791212 743enable_ld
89a1e9c3
PB
744enable_libquadmath
745enable_libquadmath_support
81ecdfbb
RW
746enable_libada
747enable_libssp
748enable_build_with_cxx
749with_mpc
750with_mpc_include
751with_mpc_lib
752with_mpfr_dir
753with_mpfr
754with_mpfr_include
755with_mpfr_lib
756with_gmp_dir
757with_gmp
758with_gmp_include
759with_gmp_lib
760with_host_libstdcxx
761with_stage1_ldflags
762with_stage1_libs
81ecdfbb 763with_boot_libs
143754cd 764with_boot_ldflags
81ecdfbb
RW
765with_ppl
766with_ppl_include
767with_ppl_lib
768enable_ppl_version_check
769with_cloog
770with_cloog_include
771with_cloog_lib
e552509b 772enable_cloog_backend
81ecdfbb 773enable_cloog_version_check
700d40ca 774enable_lto
81ecdfbb
RW
775enable_stage1_languages
776enable_objc_gc
777with_build_sysroot
778with_debug_prefix_map
779enable_bootstrap
96655cc4 780with_build_config
81ecdfbb
RW
781enable_serial_configure
782with_build_time_tools
783enable_maintainer_mode
784enable_stage1_checking
785enable_werror
81ecdfbb
RW
786'
787 ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795CXX
796CXXFLAGS
797CCC
4074d5f2
RW
798build_configargs
799host_configargs
800target_configargs
81ecdfbb
RW
801AR
802AS
803DLLTOOL
804LD
805LIPO
806NM
807RANLIB
808STRIP
809WINDRES
810WINDMC
811OBJCOPY
812OBJDUMP
813CC_FOR_TARGET
814CXX_FOR_TARGET
815GCC_FOR_TARGET
816GCJ_FOR_TARGET
817GFORTRAN_FOR_TARGET
e552509b 818GOC_FOR_TARGET
81ecdfbb
RW
819AR_FOR_TARGET
820AS_FOR_TARGET
821DLLTOOL_FOR_TARGET
822LD_FOR_TARGET
823LIPO_FOR_TARGET
824NM_FOR_TARGET
825OBJDUMP_FOR_TARGET
826RANLIB_FOR_TARGET
827STRIP_FOR_TARGET
828WINDRES_FOR_TARGET
829WINDMC_FOR_TARGET'
830
a0da8069
NN
831
832# Initialize some variables set by options.
c6b750e1
DJ
833ac_init_help=
834ac_init_version=false
81ecdfbb
RW
835ac_unrecognized_opts=
836ac_unrecognized_sep=
a0da8069
NN
837# The variables have the same names as the options, with
838# dashes changed to underlines.
c6b750e1 839cache_file=/dev/null
a0da8069 840exec_prefix=NONE
a0da8069 841no_create=
a0da8069
NN
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
a0da8069
NN
850verbose=
851x_includes=NONE
852x_libraries=NONE
c6b750e1
DJ
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 859# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
a0da8069
NN
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
a0da8069
NN
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
81ecdfbb
RW
870docdir='${datarootdir}/doc/${PACKAGE}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
252b5132 879
a0da8069 880ac_prev=
81ecdfbb 881ac_dashdash=
a0da8069
NN
882for ac_option
883do
a0da8069
NN
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
81ecdfbb 886 eval $ac_prev=\$ac_option
a0da8069
NN
887 ac_prev=
888 continue
889 fi
252b5132 890
81ecdfbb
RW
891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
a0da8069
NN
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
81ecdfbb
RW
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
a0da8069
NN
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 905 bindir=$ac_optarg ;;
a0da8069
NN
906
907 -build | --build | --buil | --bui | --bu)
c6b750e1 908 ac_prev=build_alias ;;
a0da8069 909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 910 build_alias=$ac_optarg ;;
a0da8069
NN
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
a0da8069 921
81ecdfbb 922 -datadir | --datadir | --datadi | --datad)
a0da8069 923 ac_prev=datadir ;;
81ecdfbb 924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 925 datadir=$ac_optarg ;;
a0da8069 926
81ecdfbb
RW
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
a0da8069 934 -disable-* | --disable-*)
81ecdfbb 935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 936 # Reject names that are not valid shell variable names.
81ecdfbb
RW
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943"enable_$ac_useropt"
944"*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
a0da8069
NN
959
960 -enable-* | --enable-*)
81ecdfbb 961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 962 # Reject names that are not valid shell variable names.
81ecdfbb
RW
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969"enable_$ac_useropt"
970"*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
a0da8069 973 esac
81ecdfbb 974 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
c6b750e1 983 exec_prefix=$ac_optarg ;;
a0da8069
NN
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
c6b750e1
DJ
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
a0da8069
NN
995
996 -host | --host | --hos | --ho)
c6b750e1 997 ac_prev=host_alias ;;
a0da8069 998 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 999 host_alias=$ac_optarg ;;
a0da8069 1000
81ecdfbb
RW
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
a0da8069
NN
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1012 includedir=$ac_optarg ;;
a0da8069
NN
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1017 infodir=$ac_optarg ;;
a0da8069
NN
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1022 libdir=$ac_optarg ;;
a0da8069
NN
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1029 libexecdir=$ac_optarg ;;
a0da8069 1030
81ecdfbb
RW
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
a0da8069 1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1037 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1041 localstatedir=$ac_optarg ;;
a0da8069
NN
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1046 mandir=$ac_optarg ;;
a0da8069
NN
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1053 | --no-cr | --no-c | -n)
a0da8069
NN
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1067 oldincludedir=$ac_optarg ;;
a0da8069
NN
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1072 prefix=$ac_optarg ;;
a0da8069
NN
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1079 program_prefix=$ac_optarg ;;
a0da8069
NN
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1086 program_suffix=$ac_optarg ;;
a0da8069
NN
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1103 program_transform_name=$ac_optarg ;;
a0da8069 1104
81ecdfbb
RW
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
a0da8069
NN
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
c6b750e1 1123 sbindir=$ac_optarg ;;
a0da8069
NN
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
c6b750e1 1134 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
c6b750e1 1139 site=$ac_optarg ;;
a0da8069
NN
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1144 srcdir=$ac_optarg ;;
a0da8069
NN
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1151 sysconfdir=$ac_optarg ;;
a0da8069
NN
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1154 ac_prev=target_alias ;;
a0da8069 1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1156 target_alias=$ac_optarg ;;
a0da8069
NN
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
c6b750e1
DJ
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
a0da8069
NN
1163
1164 -with-* | --with-*)
81ecdfbb 1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1166 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173"with_$ac_useropt"
1174"*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
a0da8069 1177 esac
81ecdfbb 1178 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1179
1180 -without-* | --without-*)
81ecdfbb 1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1182 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"with_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
a0da8069
NN
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1205 x_includes=$ac_optarg ;;
a0da8069
NN
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1212 x_libraries=$ac_optarg ;;
a0da8069 1213
81ecdfbb
RW
1214 -*) as_fn_error "unrecognized option: \`$ac_option'
1215Try \`$0 --help' for more information."
a0da8069
NN
1216 ;;
1217
c6b750e1
DJ
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1226 export $ac_envvar ;;
1227
a0da8069 1228 *)
c6b750e1 1229 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1234 ;;
1235
1236 esac
1237done
1238
1239if test -n "$ac_prev"; then
c6b750e1 1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1241 as_fn_error "missing argument to $ac_option"
a0da8069 1242fi
a0da8069 1243
81ecdfbb
RW
1244if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1249 esac
81ecdfbb 1250fi
a0da8069 1251
81ecdfbb
RW
1252# Check all directory arguments for consistency.
1253for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
a0da8069 1257do
81ecdfbb
RW
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
c6b750e1 1266 case $ac_val in
81ecdfbb
RW
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1269 esac
81ecdfbb 1270 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1271done
1272
c6b750e1
DJ
1273# There might be people who depend on the old broken behavior: `$host'
1274# used to hold the argument of --host etc.
1275# FIXME: To remove some day.
1276build=$build_alias
1277host=$host_alias
1278target=$target_alias
376a0e54 1279
c6b750e1
DJ
1280# FIXME: To remove some day.
1281if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
81ecdfbb 1284 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289fi
1290
1291ac_tool_prefix=
1292test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294test "$silent" = yes && exec 6>/dev/null
a0da8069 1295
a0da8069 1296
81ecdfbb
RW
1297ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298ac_ls_di=`ls -di .` &&
1299ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error "working directory cannot be determined"
1301test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error "pwd does not report name of working directory"
1303
1304
a0da8069
NN
1305# Find the source files, if location was not specified.
1306if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
81ecdfbb
RW
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314$as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
a0da8069 1332 srcdir=$ac_confdir
81ecdfbb 1333 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1334 srcdir=..
1335 fi
1336else
1337 ac_srcdir_defaulted=no
1338fi
81ecdfbb
RW
1339if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342fi
1343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346 pwd)`
1347# When building in place, set srcdir=.
1348if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350fi
1351# Remove unnecessary trailing slashes from srcdir.
1352# Double slashes in file names in object file debugging info
1353# mess up M-x gdb in Emacs.
1354case $srcdir in
1355*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356esac
6d0cd39e
AM
1357case $srcdir in
1358 *" "*)
1359 as_fn_error "path to source, $srcdir, contains spaces"
1360 ;;
1361esac
9cc8ae67
PB
1362ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1363
81ecdfbb
RW
1364for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369done
c6b750e1
DJ
1370
1371#
1372# Report the --help message.
1373#
1374if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378\`configure' configures this package to adapt to many kinds of systems.
1379
1380Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385Defaults for the options are specified in brackets.
1386
1387Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
c6b750e1
DJ
1398Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1400 [$ac_default_prefix]
c6b750e1 1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1402 [PREFIX]
c6b750e1
DJ
1403
1404By default, \`make install' will install all the files in
1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407for instance \`--prefix=\$HOME'.
1408
1409For better control, use the options below.
1410
1411Fine tuning of the installation directories:
81ecdfbb
RW
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1431_ACEOF
1432
1433 cat <<\_ACEOF
1434
1435Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439
1440System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 --target=TARGET configure for building compilers for TARGET [HOST]
1444_ACEOF
a0da8069 1445fi
a0da8069 1446
c6b750e1
DJ
1447if test -n "$ac_init_help"; then
1448
1449 cat <<\_ACEOF
1450
1451Optional Features:
81ecdfbb 1452 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1455 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1456 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1457 --disable-libquadmath do not build libquadmath directory
1458 --disable-libquadmath-support
1459 disable libquadmath support for Fortran
521ec477
DD
1460 --enable-libada build libada directory
1461 --enable-libssp build libssp directory
e8a5fa9c 1462 --enable-build-with-cxx build with C++ compiler instead of C compiler
7837304f
AS
1463 --disable-ppl-version-check
1464 disable check for PPL version
ceca0218
PB
1465 --enable-cloog-backend[=BACKEND]
1466 set the CLooG BACKEND used to either isl, ppl or
1467 ppl-legacy (default)
e552509b
ILT
1468 --disable-cloog-version-check
1469 disable check for CLooG version
700d40ca 1470 --enable-lto enable link time optimization support
7837304f
AS
1471 --enable-stage1-languages[=all]
1472 choose additional languages to build during stage1.
1473 Mostly useful for compiler development
1474 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1475 Objective-C runtime
521ec477
DD
1476 --enable-bootstrap enable bootstrapping [yes if native build]
1477 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1478 force sequential configuration of sub-packages for
1479 the host, target or build machine, or all
1480 sub-packages
1481 --enable-maintainer-mode
1482 enable make rules and dependencies not useful (and
1483 sometimes confusing) to the casual installer
1484 --enable-stage1-checking[=all]
1485 choose additional checking for stage1 of the
1486 compiler
c6b750e1
DJ
1487 --enable-werror enable -Werror in bootstrap stage2 and later
1488
1489Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1493 --with-mpc=PATH specify prefix directory for installed MPC package.
1494 Equivalent to --with-mpc-include=PATH/include plus
1495 --with-mpc-lib=PATH/lib
1496 --with-mpc-include=PATH specify directory for installed MPC include files
1497 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1498 --with-mpfr-dir=PATH this option has been REMOVED
1499 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1500 Equivalent to --with-mpfr-include=PATH/include plus
1501 --with-mpfr-lib=PATH/lib
c6b750e1 1502 --with-mpfr-include=PATH
521ec477
DD
1503 specify directory for installed MPFR include files
1504 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1505 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1506 --with-gmp=PATH specify prefix directory for the installed GMP
1507 package. Equivalent to
1508 --with-gmp-include=PATH/include plus
1509 --with-gmp-lib=PATH/lib
521ec477
DD
1510 --with-gmp-include=PATH specify directory for installed GMP include files
1511 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1512 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1513 linking with PPL
1514 --with-stage1-ldflags=FLAGS
1515 linker flags for stage1
1516 --with-stage1-libs=LIBS libraries for stage1
1517 --with-boot-libs=LIBS libraries for stage2 and later
1518 --with-boot-ldflags=FLAGS
1519 linker flags for stage2 and later
1520 --with-ppl=PATH specify prefix directory for the installed PPL
1521 package. Equivalent to
1522 --with-ppl-include=PATH/include plus
1523 --with-ppl-lib=PATH/lib
1524 --with-ppl-include=PATH specify directory for installed PPL include files
1525 --with-ppl-lib=PATH specify directory for the installed PPL library
e552509b
ILT
1526 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1527 package. Equivalent to
1528 --with-cloog-include=PATH/include plus
1529 --with-cloog-lib=PATH/lib
1530 --with-cloog-include=PATH
1531 Specify directory for installed CLooG include files
1532 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1533 library
521ec477 1534 --with-build-sysroot=SYSROOT
c6b750e1 1535 use sysroot as the system root during the build
8a6ee3ab 1536 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1537 map A to B, C to D ... in debug information
1538 --with-build-config='NAME NAME2...'
1539 use config/NAME.mk build configuration
521ec477 1540 --with-build-time-tools=PATH
c6b750e1 1541 use given path to find target tools during the build
c6b750e1
DJ
1542
1543Some influential environment variables:
1544 CC C compiler command
1545 CFLAGS C compiler flags
1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1547 nonstandard directory <lib dir>
81ecdfbb
RW
1548 LIBS libraries to pass to the linker, e.g. -l<library>
1549 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1550 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1551 CXX C++ compiler command
1552 CXXFLAGS C++ compiler flags
4074d5f2
RW
1553 build_configargs
1554 additional configure arguments for build directories
1555 host_configargs
1556 additional configure arguments for host directories
1557 target_configargs
1558 additional configure arguments for target directories
9a819804
AO
1559 AR AR for the host
1560 AS AS for the host
1561 DLLTOOL DLLTOOL for the host
1562 LD LD for the host
1563 LIPO LIPO for the host
1564 NM NM for the host
1565 RANLIB RANLIB for the host
1566 STRIP STRIP for the host
1567 WINDRES WINDRES for the host
0c24b341 1568 WINDMC WINDMC for the host
9a819804
AO
1569 OBJCOPY OBJCOPY for the host
1570 OBJDUMP OBJDUMP for the host
1571 CC_FOR_TARGET
1572 CC for the target
1573 CXX_FOR_TARGET
1574 CXX for the target
1575 GCC_FOR_TARGET
1576 GCC for the target
1577 GCJ_FOR_TARGET
1578 GCJ for the target
1579 GFORTRAN_FOR_TARGET
1580 GFORTRAN for the target
e552509b
ILT
1581 GOC_FOR_TARGET
1582 GOC for the target
9a819804
AO
1583 AR_FOR_TARGET
1584 AR for the target
1585 AS_FOR_TARGET
1586 AS for the target
1587 DLLTOOL_FOR_TARGET
1588 DLLTOOL for the target
1589 LD_FOR_TARGET
1590 LD for the target
1591 LIPO_FOR_TARGET
1592 LIPO for the target
1593 NM_FOR_TARGET
1594 NM for the target
1595 OBJDUMP_FOR_TARGET
1596 OBJDUMP for the target
1597 RANLIB_FOR_TARGET
1598 RANLIB for the target
1599 STRIP_FOR_TARGET
1600 STRIP for the target
1601 WINDRES_FOR_TARGET
1602 WINDRES for the target
0c24b341
NC
1603 WINDMC_FOR_TARGET
1604 WINDMC for the target
c6b750e1
DJ
1605
1606Use these variables to override the choices made by `configure' or to help
1607it to find libraries and programs with nonstandard names/locations.
1608
81ecdfbb 1609Report bugs to the package provider.
c6b750e1 1610_ACEOF
81ecdfbb 1611ac_status=$?
c6b750e1
DJ
1612fi
1613
1614if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
c6b750e1 1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 continue
c6b750e1
DJ
1620 ac_builddir=.
1621
81ecdfbb
RW
1622case "$ac_dir" in
1623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624*)
1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631 esac ;;
1632esac
1633ac_abs_top_builddir=$ac_pwd
1634ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635# for backward compatibility:
1636ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1637
1638case $srcdir in
81ecdfbb 1639 .) # We are building in place.
c6b750e1 1640 ac_srcdir=.
81ecdfbb
RW
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1644 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1647 *) # Relative name.
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1651esac
81ecdfbb
RW
1652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1662 else
81ecdfbb
RW
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1666 done
1667fi
1668
81ecdfbb 1669test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1670if $ac_init_version; then
1671 cat <<\_ACEOF
81ecdfbb
RW
1672configure
1673generated by GNU Autoconf 2.64
c6b750e1 1674
81ecdfbb 1675Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
1678_ACEOF
81ecdfbb 1679 exit
c6b750e1 1680fi
81ecdfbb
RW
1681
1682## ------------------------ ##
1683## Autoconf initialization. ##
1684## ------------------------ ##
1685
1686# ac_fn_c_try_compile LINENO
1687# --------------------------
1688# Try to compile conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_compile ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext
1693 if { { ac_try="$ac_compile"
1694case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext; then :
1712 ac_retval=0
1713else
1714 $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718fi
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 return $ac_retval
1721
1722} # ac_fn_c_try_compile
1723
1724# ac_fn_cxx_try_compile LINENO
1725# ----------------------------
1726# Try to compile conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_cxx_try_compile ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751else
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756fi
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 return $ac_retval
1759
1760} # ac_fn_cxx_try_compile
1761
1762# ac_fn_c_try_link LINENO
1763# -----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_link ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 $as_test_x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 return $ac_retval
1805
1806} # ac_fn_c_try_link
1807cat >config.log <<_ACEOF
c6b750e1
DJ
1808This file contains any messages produced by compilers while
1809running configure, to aid debugging if configure makes a mistake.
1810
1811It was created by $as_me, which was
81ecdfbb 1812generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1813
1814 $ $0 $@
1815
1816_ACEOF
81ecdfbb 1817exec 5>>config.log
c6b750e1
DJ
1818{
1819cat <<_ASUNAME
1820## --------- ##
1821## Platform. ##
1822## --------- ##
1823
1824hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1825uname -m = `(uname -m) 2>/dev/null || echo unknown`
1826uname -r = `(uname -r) 2>/dev/null || echo unknown`
1827uname -s = `(uname -s) 2>/dev/null || echo unknown`
1828uname -v = `(uname -v) 2>/dev/null || echo unknown`
1829
1830/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1831/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1832
1833/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1834/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1835/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1836/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1837/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1838/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1839/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1840
1841_ASUNAME
1842
1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844for as_dir in $PATH
1845do
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1848 $as_echo "PATH: $as_dir"
1849 done
1850IFS=$as_save_IFS
c6b750e1
DJ
1851
1852} >&5
1853
1854cat >&5 <<_ACEOF
1855
1856
1857## ----------- ##
1858## Core tests. ##
1859## ----------- ##
1860
1861_ACEOF
1862
1863
1864# Keep a trace of the command line.
1865# Strip out --no-create and --no-recursion so they do not pile up.
1866# Strip out --silent because we don't want to record it for future runs.
1867# Also quote any args containing shell meta-characters.
1868# Make two passes to allow for proper duplicate-argument suppression.
1869ac_configure_args=
1870ac_configure_args0=
1871ac_configure_args1=
c6b750e1
DJ
1872ac_must_keep_next=false
1873for ac_pass in 1 2
1874do
1875 for ac_arg
1876 do
1877 case $ac_arg in
1878 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1880 | -silent | --silent | --silen | --sile | --sil)
1881 continue ;;
81ecdfbb
RW
1882 *\'*)
1883 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1884 esac
1885 case $ac_pass in
81ecdfbb 1886 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1887 2)
81ecdfbb 1888 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1889 if test $ac_must_keep_next = true; then
1890 ac_must_keep_next=false # Got value, back to normal.
1891 else
1892 case $ac_arg in
1893 *=* | --config-cache | -C | -disable-* | --disable-* \
1894 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1895 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1896 | -with-* | --with-* | -without-* | --without-* | --x)
1897 case "$ac_configure_args0 " in
1898 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1899 esac
1900 ;;
1901 -* ) ac_must_keep_next=true ;;
1902 esac
1903 fi
81ecdfbb 1904 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1905 ;;
1906 esac
1907 done
1908done
81ecdfbb
RW
1909{ ac_configure_args0=; unset ac_configure_args0;}
1910{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1911
1912# When interrupted or exit'd, cleanup temporary files, and complete
1913# config.log. We remove comments because anyway the quotes in there
1914# would cause problems or look ugly.
81ecdfbb
RW
1915# WARNING: Use '\'' to represent an apostrophe within the trap.
1916# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1917trap 'exit_status=$?
1918 # Save into config.log some information that might help in debugging.
1919 {
1920 echo
1921
1922 cat <<\_ASBOX
1923## ---------------- ##
1924## Cache variables. ##
1925## ---------------- ##
1926_ASBOX
1927 echo
1928 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1929(
1930 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1931 eval ac_val=\$$ac_var
1932 case $ac_val in #(
1933 *${as_nl}*)
1934 case $ac_var in #(
1935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1936$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1937 esac
1938 case $ac_var in #(
1939 _ | IFS | as_nl) ;; #(
1940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1941 *) { eval $ac_var=; unset $ac_var;} ;;
1942 esac ;;
1943 esac
1944 done
c6b750e1 1945 (set) 2>&1 |
81ecdfbb
RW
1946 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947 *${as_nl}ac_space=\ *)
c6b750e1 1948 sed -n \
81ecdfbb
RW
1949 "s/'\''/'\''\\\\'\'''\''/g;
1950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951 ;; #(
c6b750e1 1952 *)
81ecdfbb 1953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1954 ;;
81ecdfbb
RW
1955 esac |
1956 sort
1957)
c6b750e1
DJ
1958 echo
1959
1960 cat <<\_ASBOX
1961## ----------------- ##
1962## Output variables. ##
1963## ----------------- ##
1964_ASBOX
1965 echo
1966 for ac_var in $ac_subst_vars
1967 do
81ecdfbb
RW
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1973 done | sort
1974 echo
1975
1976 if test -n "$ac_subst_files"; then
1977 cat <<\_ASBOX
81ecdfbb
RW
1978## ------------------- ##
1979## File substitutions. ##
1980## ------------------- ##
c6b750e1
DJ
1981_ASBOX
1982 echo
1983 for ac_var in $ac_subst_files
1984 do
81ecdfbb
RW
1985 eval ac_val=\$$ac_var
1986 case $ac_val in
1987 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988 esac
1989 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1990 done | sort
1991 echo
1992 fi
1993
1994 if test -s confdefs.h; then
1995 cat <<\_ASBOX
1996## ----------- ##
1997## confdefs.h. ##
1998## ----------- ##
1999_ASBOX
2000 echo
81ecdfbb 2001 cat confdefs.h
c6b750e1
DJ
2002 echo
2003 fi
2004 test "$ac_signal" != 0 &&
81ecdfbb
RW
2005 $as_echo "$as_me: caught signal $ac_signal"
2006 $as_echo "$as_me: exit $exit_status"
c6b750e1 2007 } >&5
81ecdfbb
RW
2008 rm -f core *.core core.conftest.* &&
2009 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2010 exit $exit_status
81ecdfbb 2011' 0
c6b750e1 2012for ac_signal in 1 2 13 15; do
81ecdfbb 2013 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2014done
2015ac_signal=0
2016
2017# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2018rm -f -r conftest* confdefs.h
2019
2020$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2021
2022# Predefined preprocessor variables.
2023
2024cat >>confdefs.h <<_ACEOF
2025#define PACKAGE_NAME "$PACKAGE_NAME"
2026_ACEOF
2027
c6b750e1
DJ
2028cat >>confdefs.h <<_ACEOF
2029#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2030_ACEOF
2031
c6b750e1
DJ
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_VERSION "$PACKAGE_VERSION"
2034_ACEOF
2035
c6b750e1
DJ
2036cat >>confdefs.h <<_ACEOF
2037#define PACKAGE_STRING "$PACKAGE_STRING"
2038_ACEOF
2039
c6b750e1
DJ
2040cat >>confdefs.h <<_ACEOF
2041#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2042_ACEOF
2043
81ecdfbb
RW
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_URL "$PACKAGE_URL"
2046_ACEOF
2047
c6b750e1
DJ
2048
2049# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2050# Prefer an explicitly selected file to automatically selected ones.
2051ac_site_file1=NONE
2052ac_site_file2=NONE
2053if test -n "$CONFIG_SITE"; then
2054 ac_site_file1=$CONFIG_SITE
2055elif test "x$prefix" != xNONE; then
2056 ac_site_file1=$prefix/share/config.site
2057 ac_site_file2=$prefix/etc/config.site
2058else
2059 ac_site_file1=$ac_default_prefix/share/config.site
2060 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2061fi
81ecdfbb
RW
2062for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2063do
2064 test "x$ac_site_file" = xNONE && continue
a0da8069 2065 if test -r "$ac_site_file"; then
81ecdfbb
RW
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2067$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2068 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2069 . "$ac_site_file"
2070 fi
2071done
2072
2073if test -r "$cache_file"; then
c6b750e1
DJ
2074 # Some versions of bash will fail to source /dev/null (special
2075 # files actually), so we avoid doing that.
2076 if test -f "$cache_file"; then
81ecdfbb
RW
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2079 case $cache_file in
81ecdfbb
RW
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
c6b750e1
DJ
2082 esac
2083 fi
a0da8069 2084else
81ecdfbb
RW
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2087 >$cache_file
2088fi
2089
2090# Check that the precious variables saved in the cache have kept the same
2091# value.
2092ac_cache_corrupted=false
81ecdfbb 2093for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2098 case $ac_old_set,$ac_new_set in
2099 set,)
81ecdfbb
RW
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2101$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2102 ac_cache_corrupted=: ;;
2103 ,set)
81ecdfbb
RW
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2105$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2106 ac_cache_corrupted=: ;;
2107 ,);;
2108 *)
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2110 # differences in whitespace do not lead to failure.
2111 ac_old_val_w=`echo x $ac_old_val`
2112 ac_new_val_w=`echo x $ac_new_val`
2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2115$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2116 ac_cache_corrupted=:
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2119$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2120 eval $ac_var=\$ac_old_val
2121 fi
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2123$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2125$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2126 fi;;
2127 esac
2128 # Pass precious variables to config.status.
2129 if test "$ac_new_set" = set; then
2130 case $ac_new_val in
81ecdfbb 2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2132 *) ac_arg=$ac_var=$ac_new_val ;;
2133 esac
2134 case " $ac_configure_args " in
2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2137 esac
2138 fi
2139done
2140if $ac_cache_corrupted; then
81ecdfbb
RW
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2144$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2145 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2146fi
81ecdfbb
RW
2147## -------------------- ##
2148## Main body of script. ##
2149## -------------------- ##
a0da8069
NN
2150
2151ac_ext=c
a0da8069 2152ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156
2157
2158
2159
c6b750e1
DJ
2160
2161
34a0f3cf 2162
c6b750e1 2163
5b553f7e
RW
2164
2165progname=$0
2166# if PWD already has a value, it is probably wrong.
2167if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2168
2169# Export original configure arguments for use by sub-configures.
2170# Quote arguments with shell meta charatcers.
2171TOPLEVEL_CONFIGURE_ARGUMENTS=
2172set -- "$progname" "$@"
2173for ac_arg
2174do
2175 case "$ac_arg" in
2176 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2177 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2178 # if the argument is of the form -foo=baz, quote the baz part only
2179 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2180 *) ;;
2181 esac
2182 # Add the quoted argument to the list.
2183 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2184done
2185if test "$silent" = yes; then
2186 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2187fi
2188# Remove the initial space we just introduced and, as these will be
2189# expanded by make, quote '$'.
2190TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2191
c6b750e1
DJ
2192
2193# Find the build, host, and target systems.
a0da8069 2194ac_aux_dir=
81ecdfbb
RW
2195for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2196 for ac_t in install-sh install.sh shtool; do
2197 if test -f "$ac_dir/$ac_t"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/$ac_t -c"
2200 break 2
2201 fi
2202 done
a0da8069
NN
2203done
2204if test -z "$ac_aux_dir"; then
81ecdfbb 2205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2206fi
81ecdfbb
RW
2207
2208# These three variables are undocumented and unsupported,
2209# and are intended to be withdrawn in a future Autoconf release.
2210# They can cause serious problems if a builder's source tree is in a directory
2211# whose full name contains unusual characters.
2212ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2213ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2214ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2215
a0da8069 2216
c6b750e1 2217# Make sure we can run config.sub.
81ecdfbb
RW
2218$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2220
2221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2222$as_echo_n "checking build system type... " >&6; }
2223if test "${ac_cv_build+set}" = set; then :
2224 $as_echo_n "(cached) " >&6
2225else
2226 ac_build_alias=$build_alias
2227test "x$ac_build_alias" = x &&
2228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2229test "x$ac_build_alias" = x &&
2230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2231ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2233
2234fi
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2236$as_echo "$ac_cv_build" >&6; }
2237case $ac_cv_build in
2238*-*-*) ;;
2239*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2240esac
c6b750e1 2241build=$ac_cv_build
81ecdfbb
RW
2242ac_save_IFS=$IFS; IFS='-'
2243set x $ac_cv_build
2244shift
2245build_cpu=$1
2246build_vendor=$2
2247shift; shift
2248# Remember, the first character of IFS is used to create $*,
2249# except with old shells:
2250build_os=$*
2251IFS=$ac_save_IFS
2252case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2253
a0da8069 2254
c6b750e1
DJ
2255 case ${build_alias} in
2256 "") build_noncanonical=${build} ;;
2257 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2258esac
2259
2260
cac3d6c4 2261
c6b750e1
DJ
2262 case ${host_alias} in
2263 "") host_noncanonical=${build_noncanonical} ;;
2264 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2265esac
2266
cac3d6c4 2267
c6b750e1
DJ
2268
2269 case ${target_alias} in
2270 "") target_noncanonical=${host_noncanonical} ;;
2271 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2272esac
2273
cac3d6c4 2274
c6b750e1
DJ
2275
2276
2277test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2278 test "$program_prefix$program_suffix$program_transform_name" = \
2279 NONENONEs,x,x, &&
c6b750e1 2280 program_transform_name=s,y,y,
cac3d6c4 2281
81ecdfbb
RW
2282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2283$as_echo_n "checking host system type... " >&6; }
2284if test "${ac_cv_host+set}" = set; then :
2285 $as_echo_n "(cached) " >&6
cac3d6c4 2286else
81ecdfbb
RW
2287 if test "x$host_alias" = x; then
2288 ac_cv_host=$ac_cv_build
2289else
2290 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2291 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2292fi
c6b750e1
DJ
2293
2294fi
81ecdfbb
RW
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2296$as_echo "$ac_cv_host" >&6; }
2297case $ac_cv_host in
2298*-*-*) ;;
2299*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2300esac
c6b750e1 2301host=$ac_cv_host
81ecdfbb
RW
2302ac_save_IFS=$IFS; IFS='-'
2303set x $ac_cv_host
2304shift
2305host_cpu=$1
2306host_vendor=$2
2307shift; shift
2308# Remember, the first character of IFS is used to create $*,
2309# except with old shells:
2310host_os=$*
2311IFS=$ac_save_IFS
2312case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2313
2314
81ecdfbb
RW
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2316$as_echo_n "checking target system type... " >&6; }
2317if test "${ac_cv_target+set}" = set; then :
2318 $as_echo_n "(cached) " >&6
c6b750e1 2319else
81ecdfbb
RW
2320 if test "x$target_alias" = x; then
2321 ac_cv_target=$ac_cv_host
2322else
2323 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2324 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2325fi
c6b750e1 2326
cac3d6c4 2327fi
81ecdfbb
RW
2328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2329$as_echo "$ac_cv_target" >&6; }
2330case $ac_cv_target in
2331*-*-*) ;;
2332*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2333esac
c6b750e1 2334target=$ac_cv_target
81ecdfbb
RW
2335ac_save_IFS=$IFS; IFS='-'
2336set x $ac_cv_target
2337shift
2338target_cpu=$1
2339target_vendor=$2
2340shift; shift
2341# Remember, the first character of IFS is used to create $*,
2342# except with old shells:
2343target_os=$*
2344IFS=$ac_save_IFS
2345case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2346
2347
2348# The aliases save the names the user supplied, while $host etc.
2349# will get canonicalized.
2350test -n "$target_alias" &&
2351 test "$program_prefix$program_suffix$program_transform_name" = \
2352 NONENONEs,x,x, &&
2353 program_prefix=${target_alias}-
81ecdfbb 2354
a0da8069 2355test "$program_prefix" != NONE &&
81ecdfbb 2356 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2357# Use a double $ so make ignores it.
2358test "$program_suffix" != NONE &&
81ecdfbb
RW
2359 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2360# Double any \ or $.
c6b750e1 2361# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2362ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2363program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2364
a0da8069
NN
2365
2366
e5c3f801
NN
2367# Get 'install' or 'install-sh' and its variants.
2368# Find a good install program. We prefer a C program (faster),
2369# so one script is as good as another. But avoid the broken or
2370# incompatible versions:
2371# SysV /etc/install, /usr/sbin/install
2372# SunOS /usr/etc/install
2373# IRIX /sbin/install
2374# AIX /bin/install
c6b750e1 2375# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2376# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2377# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2378# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2379# OS/2's system install, which has a completely different semantic
e5c3f801 2380# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2381# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2383$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2384if test -z "$INSTALL"; then
81ecdfbb
RW
2385if test "${ac_cv_path_install+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2387else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389for as_dir in $PATH
2390do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2393 # Account for people who put trailing slashes in PATH elements.
2394case $as_dir/ in #((
2395 ./ | .// | /[cC]/* | \
c6b750e1 2396 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2397 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2398 /usr/ucb/* ) ;;
2399 *)
2400 # OSF1 and SCO ODT 3.0 have their own names for install.
2401 # Don't use installbsd from OSF since it installs stuff as root
2402 # by default.
2403 for ac_prog in ginstall scoinst install; do
2404 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2405 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2406 if test $ac_prog = install &&
c6b750e1 2407 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2408 # AIX install. It has an incompatible calling convention.
2409 :
c6b750e1
DJ
2410 elif test $ac_prog = install &&
2411 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2412 # program-specific install script used by HP pwplus--don't use.
2413 :
e5c3f801 2414 else
58c85be7
RW
2415 rm -rf conftest.one conftest.two conftest.dir
2416 echo one > conftest.one
2417 echo two > conftest.two
2418 mkdir conftest.dir
2419 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2420 test -s conftest.one && test -s conftest.two &&
2421 test -s conftest.dir/conftest.one &&
2422 test -s conftest.dir/conftest.two
2423 then
2424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2425 break 3
2426 fi
e5c3f801
NN
2427 fi
2428 fi
2429 done
c6b750e1
DJ
2430 done
2431 ;;
2432esac
81ecdfbb
RW
2433
2434 done
2435IFS=$as_save_IFS
c6b750e1 2436
58c85be7 2437rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2438
2439fi
2440 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2441 INSTALL=$ac_cv_path_install
e5c3f801 2442 else
58c85be7
RW
2443 # As a last resort, use the slow shell script. Don't cache a
2444 # value for INSTALL within a source directory, because that will
e5c3f801 2445 # break other packages using the cache if that directory is
58c85be7 2446 # removed, or if the value is a relative name.
c6b750e1 2447 INSTALL=$ac_install_sh
e5c3f801
NN
2448 fi
2449fi
81ecdfbb
RW
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2451$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2452
2453# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2454# It thinks the first close brace ends the variable substitution.
2455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2456
c6b750e1 2457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2458
2459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2460
81ecdfbb
RW
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2462$as_echo_n "checking whether ln works... " >&6; }
2463if test "${acx_cv_prog_LN+set}" = set; then :
2464 $as_echo_n "(cached) " >&6
656fdd47
PB
2465else
2466 rm -f conftestdata_t
2467echo >conftestdata_f
2468if ln conftestdata_f conftestdata_t 2>/dev/null
2469then
2470 acx_cv_prog_LN=ln
2471else
2472 acx_cv_prog_LN=no
2473fi
2474rm -f conftestdata_f conftestdata_t
2475
2476fi
2477if test $acx_cv_prog_LN = no; then
2478 LN="cp"
81ecdfbb
RW
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2480$as_echo "no, using $LN" >&6; }
656fdd47
PB
2481else
2482 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484$as_echo "yes" >&6; }
656fdd47
PB
2485fi
2486
81ecdfbb
RW
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2488$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2489LN_S=$as_ln_s
2490if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2492$as_echo "yes" >&6; }
cac3d6c4 2493else
81ecdfbb
RW
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2495$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2496fi
2497
8e957354
PB
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2499$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2500if test "${ac_cv_path_SED+set}" = set; then :
2501 $as_echo_n "(cached) " >&6
2502else
2503 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2504 for ac_i in 1 2 3 4 5 6 7; do
2505 ac_script="$ac_script$as_nl$ac_script"
2506 done
2507 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2508 { ac_script=; unset ac_script;}
2509 if test -z "$SED"; then
2510 ac_path_SED_found=false
2511 # Loop through the user's path and test for each of PROGNAME-LIST
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_prog in sed gsed; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2520 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2521# Check for GNU ac_path_SED and select it if it is found.
2522 # Check for GNU $ac_path_SED
2523case `"$ac_path_SED" --version 2>&1` in
2524*GNU*)
2525 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2526*)
2527 ac_count=0
2528 $as_echo_n 0123456789 >"conftest.in"
2529 while :
2530 do
2531 cat "conftest.in" "conftest.in" >"conftest.tmp"
2532 mv "conftest.tmp" "conftest.in"
2533 cp "conftest.in" "conftest.nl"
2534 $as_echo '' >> "conftest.nl"
2535 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2537 as_fn_arith $ac_count + 1 && ac_count=$as_val
2538 if test $ac_count -gt ${ac_path_SED_max-0}; then
2539 # Best one so far, save it but keep looking for a better one
2540 ac_cv_path_SED="$ac_path_SED"
2541 ac_path_SED_max=$ac_count
2542 fi
2543 # 10*(2^10) chars as input seems more than enough
2544 test $ac_count -gt 10 && break
2545 done
2546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2547esac
2548
2549 $ac_path_SED_found && break 3
2550 done
2551 done
2552 done
2553IFS=$as_save_IFS
2554 if test -z "$ac_cv_path_SED"; then
2555 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2556 fi
2557else
2558 ac_cv_path_SED=$SED
2559fi
2560
2561fi
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2563$as_echo "$ac_cv_path_SED" >&6; }
2564 SED="$ac_cv_path_SED"
2565 rm -f conftest.sed
2566
2567for ac_prog in gawk mawk nawk awk
2568do
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570set dummy $ac_prog; ac_word=$2
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
2573if test "${ac_cv_prog_AWK+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575else
2576 if test -n "$AWK"; then
2577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AWK="$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590done
2591 done
2592IFS=$as_save_IFS
2593
2594fi
2595fi
2596AWK=$ac_cv_prog_AWK
2597if test -n "$AWK"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599$as_echo "$AWK" >&6; }
2600else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603fi
2604
2605
2606 test -n "$AWK" && break
2607done
2608
e5c3f801 2609
0fdbe983
DJ
2610srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2611
2612# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2613# a relative path.
2614if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2615 INSTALL="${srcpwd}/install-sh -c"
2616fi
2617
a0da8069
NN
2618# Set srcdir to "." if that's what it is.
2619# This is important for multilib support.
2620pwd=`${PWDCMD-pwd}`
a0da8069
NN
2621if test "${pwd}" = "${srcpwd}" ; then
2622 srcdir=.
252b5132
RH
2623fi
2624
a0da8069 2625topsrcdir=$srcpwd
252b5132 2626
a0da8069 2627extra_host_args=
afefada0 2628
a0da8069
NN
2629### To add a new directory to the tree, first choose whether it is a target
2630### or a host dependent tool. Then put it into the appropriate list
2631### (library or tools, host or target), doing a dependency sort.
252b5132 2632
c6b750e1 2633# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2634# configdirs, or target_configdirs; see the serialization section below.
252b5132 2635
c6b750e1
DJ
2636# Dependency sorting is only needed when *configuration* must be done in
2637# a particular order. In all cases a dependency should be specified in
a0da8069 2638# the Makefile, whether or not it's implicitly specified here.
252b5132 2639
a0da8069
NN
2640# Double entries in build_configdirs, configdirs, or target_configdirs may
2641# cause circular dependencies and break everything horribly.
252b5132 2642
6a9cf61e
PB
2643# these library is used by various programs built for the build
2644# environment
2645#
2646build_libs="build-libiberty"
2647
2648# these tools are built for the build environment
ee025550 2649build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2650
a0da8069
NN
2651# these libraries are used by various programs built for the host environment
2652#
1f53ca9a 2653host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2654
a0da8069
NN
2655# these tools are built for the host environment
2656# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2657# know that we are building the simulator.
2658# binutils, gas and ld appear in that order because it makes sense to run
2659# "make check" in that particular order.
e6de499b 2660# If --enable-gold is used, "gold" may replace "ld".
f9806fa5 2661host_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
2662
2663# libgcj represents the runtime libraries only used by gcj.
2664libgcj="target-libffi \
a0da8069
NN
2665 target-zlib \
2666 target-qthreads \
2667 target-libjava"
2668
2669# these libraries are built for the target environment, and are built after
2670# the host libraries and the host tools (which may be a cross compiler)
2671#
b1299c4e
DJ
2672target_libraries="target-libgcc \
2673 target-libiberty \
a0da8069
NN
2674 target-libgloss \
2675 target-newlib \
cff87f51 2676 target-libgomp \
b9459e83 2677 target-libstdc++-v3 \
4b1cb4fe 2678 target-libmudflap \
bb780410 2679 target-libssp \
e552509b 2680 target-libquadmath \
4b1cb4fe 2681 target-libgfortran \
4f0ef2d8 2682 target-boehm-gc \
83326456 2683 ${libgcj} \
a2592b1b 2684 target-libobjc \
e552509b
ILT
2685 target-libada \
2686 target-libgo"
a0da8069 2687
9c14acb8
NN
2688# these tools are built using the target libraries, and are intended to
2689# run only in the target environment
a0da8069 2690#
9c14acb8 2691# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2692# list belongs in this list.
a0da8069 2693#
2354b38b 2694target_tools="target-examples target-gperf target-rda"
252b5132 2695
a0da8069 2696################################################################################
252b5132 2697
a0da8069
NN
2698## All tools belong in one of the four categories, and are assigned above
2699## We assign ${configdirs} this way to remove all embedded newlines. This
2700## is important because configure will choke if they ever get through.
2701## ${configdirs} is directories we build using the host tools.
2702## ${target_configdirs} is directories we build using the target tools.
a0da8069 2703configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2704target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2705build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2706
9cc8ae67
PB
2707
2708
a0da8069 2709################################################################################
252b5132 2710
a0da8069 2711srcname="gnu development package"
252b5132 2712
a0da8069
NN
2713# This gets set non-empty for some net releases of packages.
2714appdirs=""
252b5132 2715
a0da8069
NN
2716# Define is_cross_compiler to save on calls to 'test'.
2717is_cross_compiler=
2718if test x"${host}" = x"${target}" ; then
2719 is_cross_compiler=no
252b5132 2720else
a0da8069 2721 is_cross_compiler=yes
c6b750e1 2722fi
252b5132 2723
9175bfc0 2724# Find the build and target subdir names.
dd12c3a8 2725
66a79c16
DJ
2726# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2727# have matching libraries, they should use host libraries: Makefile.tpl
2728# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2729# However, they still use the build modules, because the corresponding
2730# host modules (e.g. bison) are only built for the host when bootstrap
2731# finishes. So:
2732# - build_subdir is where we find build modules, and never changes.
2733# - build_libsubdir is where we find build libraries, and can be overridden.
2734
2735# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2736build_subdir="build-${build_noncanonical}"
c6b750e1 2737
81ecdfbb
RW
2738# Check whether --with-build-libsubdir was given.
2739if test "${with_build_libsubdir+set}" = set; then :
2740 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2741else
2742 build_libsubdir="$build_subdir"
81ecdfbb
RW
2743fi
2744
b00612cc
PB
2745# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2746if ( test $srcdir = . && test -d gcc ) \
2747 || test -d $srcdir/../host-${host_noncanonical}; then
2748 host_subdir="host-${host_noncanonical}"
2749else
2750 host_subdir=.
2751fi
dd12c3a8
NN
2752# No prefix.
2753target_subdir=${target_noncanonical}
c6b750e1 2754
2fd0b40b
RW
2755# Be sure to cover against remnants of an in-tree build.
2756if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2757 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2758Use a pristine source tree when building in a separate tree" "$LINENO" 5
2759fi
252b5132 2760
a0da8069
NN
2761# Skipdirs are removed silently.
2762skipdirs=
2763# Noconfigdirs are removed loudly.
2764noconfigdirs=""
252b5132 2765
a0da8069
NN
2766use_gnu_ld=
2767# Make sure we don't let GNU ld be added if we didn't want it.
2768if test x$with_gnu_ld = xno ; then
2769 use_gnu_ld=no
93f9b408 2770 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2771fi
2772
a0da8069
NN
2773use_gnu_as=
2774# Make sure we don't let GNU as be added if we didn't want it.
2775if test x$with_gnu_as = xno ; then
2776 use_gnu_as=no
2777 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2778fi
2779
700d40ca
ILT
2780use_included_zlib=
2781# Make sure we don't let ZLIB be added if we didn't want it.
2782if test x$with_system_zlib = xyes ; then
2783 use_included_zlib=no
2784 noconfigdirs="$noconfigdirs zlib"
2785fi
2786
c6b750e1 2787# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2788# it's not even worth trying to configure, much less build, that tool.
252b5132 2789
a0da8069
NN
2790case ${with_x} in
2791 yes | "") ;; # the default value for this tree is that X11 is available
2792 no)
675c6968 2793 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2794 # We won't be able to build gdbtk without X.
c6b750e1 2795 enable_gdbtk=no
a0da8069
NN
2796 ;;
2797 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2798esac
252b5132 2799
0377a422 2800# Some are only suitable for cross toolchains.
a0da8069
NN
2801# Remove these if host=target.
2802cross_only="target-libgloss target-newlib target-opcodes"
2803
2804case $is_cross_compiler in
2805 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2806esac
252b5132 2807
a0da8069
NN
2808# If both --with-headers and --with-libs are specified, default to
2809# --without-newlib.
32be62b5
RS
2810if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2811 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2812 if test x"${with_newlib}" = x ; then
2813 with_newlib=no
2814 fi
252b5132
RH
2815fi
2816
a0da8069
NN
2817# Recognize --with-newlib/--without-newlib.
2818case ${with_newlib} in
2819 no) skipdirs="${skipdirs} target-newlib" ;;
2820 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2821esac
252b5132 2822
c7791212
NC
2823# Handle --enable-gold, --enable-ld.
2824# --disable-gold [--enable-ld]
2825# Build only ld. Default option.
d3b50760
L
2826# --enable-gold [--enable-ld]
2827# Build both gold and ld. Install gold as "ld.gold", install ld
2828# as "ld.bfd" and "ld".
2829# --enable-gold=default [--enable-ld]
c7791212
NC
2830# Build both gold and ld. Install gold as "ld.gold" and "ld",
2831# install ld as "ld.bfd".
2832# --enable-gold[=default] --disable-ld
2833# Build only gold, which is then installed as both "ld.gold" and "ld".
2834# --enable-gold --enable-ld=default
d3b50760
L
2835# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2836# and ld.bfd).
c7791212
NC
2837# In other words, ld is default
2838# --enable-gold=default --enable-ld=default
2839# Error.
2840
2841default_ld=
81ecdfbb
RW
2842# Check whether --enable-gold was given.
2843if test "${enable_gold+set}" = set; then :
2844 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2845else
2846 ENABLE_GOLD=no
81ecdfbb
RW
2847fi
2848
c7791212
NC
2849case "${ENABLE_GOLD}" in
2850 yes|default)
e6de499b
NC
2851 # Check for ELF target.
2852 is_elf=no
2853 case "${target}" in
2854 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2855 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27
NC
2856 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2857 | *-*-solaris2* | *-*-nto*)
e6de499b
NC
2858 case "${target}" in
2859 *-*-linux*aout* | *-*-linux*oldld*)
2860 ;;
2861 *)
2862 is_elf=yes
2863 ;;
2864 esac
2865 esac
2866
2867 if test "$is_elf" = "yes"; then
2868 # Check for target supported by gold.
93f9b408 2869 case "${target}" in
e6de499b 2870 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
c7791212
NC
2871 configdirs="$configdirs gold"
2872 if test x${ENABLE_GOLD} = xdefault; then
2873 default_ld=gold
2874 fi
e6de499b 2875 ENABLE_GOLD=yes
93f9b408
ILT
2876 ;;
2877 esac
e6de499b
NC
2878 fi
2879 ;;
2880 no)
2881 ;;
2882 *)
2883 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2884 ;;
c7791212
NC
2885esac
2886
2887# Check whether --enable-ld was given.
2888if test "${enable_ld+set}" = set; then :
2889 enableval=$enable_ld; ENABLE_LD=$enableval
2890else
2891 ENABLE_LD=yes
2892fi
2893
2894
2895case "${ENABLE_LD}" in
2896 default)
d3b50760 2897 if test x${default_ld} != x; then
c7791212
NC
2898 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2899 fi
2900 ;;
2901 yes)
2902 ;;
2903 no)
2904 if test x${ENABLE_GOLD} != xyes; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2906$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2907 fi
2908 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2909 ;;
2910 *)
2911 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2912 ;;
2913esac
93f9b408 2914
a0da8069 2915# Configure extra directories which are host specific
252b5132 2916
a0da8069
NN
2917case "${host}" in
2918 *-cygwin*)
2919 configdirs="$configdirs libtermcap" ;;
2920esac
252b5132 2921
59f7ec45
HPN
2922# A target can indicate whether a language isn't supported for some reason.
2923# Only spaces may be used in this macro; not newlines or tabs.
2924unsupported_languages=
2925
c6b750e1 2926# Remove more programs from consideration, based on the host or
a0da8069
NN
2927# target this usually means that a port of the program doesn't
2928# exist yet.
252b5132 2929
a0da8069 2930case "${host}" in
3516a403 2931 i[3456789]86-*-msdosdjgpp*)
6a608608 2932 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 2933 ;;
a0da8069 2934esac
252b5132 2935
4b1cb4fe 2936
89a1e9c3
PB
2937# Check whether --enable-libquadmath was given.
2938if test "${enable_libquadmath+set}" = set; then :
2939 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2940else
2941 ENABLE_LIBQUADMATH=yes
2942fi
2943
2944if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2945 noconfigdirs="$noconfigdirs target-libquadmath"
2946fi
2947
2948
2949# Check whether --enable-libquadmath-support was given.
2950if test "${enable_libquadmath_support+set}" = set; then :
2951 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2952else
2953 ENABLE_LIBQUADMATH_SUPPORT=yes
2954fi
2955
2956enable_libquadmath_support=
2957if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2958 enable_libquadmath_support=no
2959fi
2960
2961
81ecdfbb
RW
2962# Check whether --enable-libada was given.
2963if test "${enable_libada+set}" = set; then :
2964 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2965else
2966 ENABLE_LIBADA=yes
81ecdfbb
RW
2967fi
2968
a2592b1b 2969if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2970 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2971fi
2972
81ecdfbb
RW
2973# Check whether --enable-libssp was given.
2974if test "${enable_libssp+set}" = set; then :
2975 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
2976else
2977 ENABLE_LIBSSP=yes
81ecdfbb
RW
2978fi
2979
5f128533 2980
a0da8069
NN
2981# Save it here so that, even in case of --enable-libgcj, if the Java
2982# front-end isn't enabled, we still get libgcj disabled.
2983libgcj_saved=$libgcj
2984case $enable_libgcj in
2985yes)
2986 # If we reset it here, it won't get added to noconfigdirs in the
2987 # target-specific build rules, so it will be forcibly enabled
2988 # (unless the Java language itself isn't enabled).
2989 libgcj=
2990 ;;
2991no)
2992 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
2993 # Don't disable libffi, though, other languages use it.
2994 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
2995 # Clear libgcj_saved so that even if java is enabled libffi won't be
2996 # built.
2997 libgcj_saved=
a0da8069
NN
2998 ;;
2999esac
252b5132 3000
4b1cb4fe 3001
a6df5a19
PB
3002# Disable libmudflap on some systems.
3003if test x$enable_libmudflap = x ; then
3e707e94 3004 case "${target}" in
29383458 3005 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3006 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3007 ;;
3008 *-*-freebsd*)
3009 # Enable libmudflap by default in FreeBSD.
3010 ;;
3011 *)
3012 # Disable it by default everywhere else.
3013 noconfigdirs="$noconfigdirs target-libmudflap"
3014 ;;
3015 esac
a6df5a19 3016fi
4b1cb4fe 3017
a6df5a19
PB
3018# Disable libgomp on non POSIX hosted systems.
3019if test x$enable_libgomp = x ; then
b3ded179
PB
3020 # Enable libgomp by default on hosted POSIX systems.
3021 case "${target}" in
29383458 3022 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3023 ;;
5b806d27 3024 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3025 ;;
1f111696 3026 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3027 ;;
3028 *-*-darwin* | *-*-aix*)
3029 ;;
3030 *)
3031 noconfigdirs="$noconfigdirs target-libgomp"
3032 ;;
3033 esac
a6df5a19 3034fi
b3ded179 3035
065a5627
JM
3036# Disable libssp for some systems.
3037case "${target}" in
3038 avr-*-*)
c5f5c3c2 3039 # No hosted I/O support.
065a5627
JM
3040 noconfigdirs="$noconfigdirs target-libssp"
3041 ;;
3042 powerpc-*-aix* | rs6000-*-aix*)
3043 noconfigdirs="$noconfigdirs target-libssp"
3044 ;;
065a5627
JM
3045esac
3046
3047# Disable target libiberty for some systems.
3048case "${target}" in
3049 *-*-kaos*)
3050 # Remove unsupported stuff on all kaOS configurations.
3051 skipdirs="target-libiberty"
3052 ;;
3053 *-*-netbsd*)
3054 # Skip some stuff on all NetBSD configurations.
3055 noconfigdirs="$noconfigdirs target-libiberty"
3056 ;;
3057 *-*-netware*)
3058 noconfigdirs="$noconfigdirs target-libiberty"
3059 ;;
3060 *-*-rtems*)
3061 skipdirs="${skipdirs} target-libiberty"
3062 ;;
3063 *-*-tpf*)
3064 noconfigdirs="$noconfigdirs target-libiberty"
3065 ;;
3066 *-*-vxworks*)
3067 noconfigdirs="$noconfigdirs target-libiberty"
3068 ;;
3069 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3070 noconfigdirs="$noconfigdirs target-libiberty"
3071 ;;
3072 arm*-*-symbianelf*)
3073 noconfigdirs="$noconfigdirs target-libiberty"
3074 ;;
3075 avr-*-*)
3076 noconfigdirs="$noconfigdirs target-libiberty"
3077 ;;
3078 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3079 noconfigdirs="$noconfigdirs target-libiberty"
3080 ;;
3081 picochip-*-*)
3082 noconfigdirs="$noconfigdirs target-libiberty"
3083 ;;
3084 mips*-sde-elf*)
3085 skipdirs="$skipdirs target-libiberty"
3086 ;;
3087 ip2k-*-*)
3088 noconfigdirs="$noconfigdirs target-libiberty"
3089 ;;
3090esac
3091
3092# Disable libstdc++-v3 for some systems.
3093case "${target}" in
3094 *-*-vxworks*)
3095 # VxWorks uses the Dinkumware C++ library.
3096 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3097 ;;
3098 arm*-wince-pe*)
3099 # the C++ libraries don't build on top of CE's C libraries
3100 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3101 ;;
3102 avr-*-*)
3103 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3104 ;;
3105esac
3106
3107# Disable Fortran for some systems.
3108case "${target}" in
3109 mmix-*-*)
3110 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3111 unsupported_languages="$unsupported_languages fortran"
3112 ;;
3113esac
3114
691bb5a1
DD
3115# Default libgloss CPU subdirectory.
3116libgloss_dir="$target_cpu"
4b1cb4fe 3117
a0da8069
NN
3118case "${target}" in
3119 *-*-chorusos)
b2f14e4a 3120 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3121 ;;
24741ab2 3122 powerpc-*-darwin*)
9d39db92 3123 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3124 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3125 ;;
85bd1942
TG
3126 i[3456789]86-*-darwin*)
3127 noconfigdirs="$noconfigdirs ld gprof"
3128 noconfigdirs="$noconfigdirs sim target-rda"
3129 ;;
e8a5fa9c 3130 x86_64-*-darwin[912]*)
652dec25
TG
3131 noconfigdirs="$noconfigdirs ld gas gprof"
3132 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3133 ;;
04d1ab34 3134 *-*-darwin*)
d320aacb 3135 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3136 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3137 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3138 ;;
5b806d27
NC
3139 *-*-dragonfly*)
3140 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3141 ;;
de0b4a87 3142 *-*-freebsd*)
4b1cb4fe
DD
3143 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3144 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3145 && test -f /usr/local/include/gmp.h; then
3146 with_gmp=/usr/local
3147 fi
3148
3149 # Skip some stuff that's unsupported on some FreeBSD configurations.
3150 case "${target}" in
3151 i*86-*-*) ;;
3152 alpha*-*-*) ;;
143754cd 3153 x86_64-*-*) ;;
4b1cb4fe 3154 *)
54d1c879 3155 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3156 ;;
3157 esac
3158 ;;
f8a495c8
NC
3159 *-*-kaos*)
3160 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3161 noconfigdirs="$noconfigdirs target-libgloss"
3162 ;;
a0da8069
NN
3163 *-*-netbsd*)
3164 # Skip some stuff on all NetBSD configurations.
065a5627 3165 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069
NN
3166
3167 # Skip some stuff that's unsupported on some NetBSD configurations.
3168 case "${target}" in
3169 i*86-*-netbsdelf*) ;;
5b474aa8 3170 arm*-*-netbsdelf*) ;;
a0da8069 3171 *)
54d1c879 3172 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3173 ;;
3174 esac
3175 ;;
2a3124ca 3176 *-*-netware*)
065a5627 3177 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3178 ;;
3179 *-*-rtems*)
54d1c879 3180 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3181 ;;
1587117a
EC
3182 # The tpf target doesn't support gdb yet.
3183 *-*-tpf*)
065a5627 3184 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj} gdb tcl tk libgui itcl"
1587117a 3185 ;;
c1968181 3186 *-*-uclinux*)
54d1c879 3187 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3188 ;;
a0da8069 3189 *-*-vxworks*)
065a5627 3190 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3191 ;;
3192 alpha*-dec-osf*)
3193 # ld works, but does not support shared libraries.
0377a422 3194 # newlib is not 64 bit ready.
a0da8069 3195 # gas doesn't generate exception information.
0377a422 3196 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
a0da8069
NN
3197 ;;
3198 alpha*-*-*vms*)
d594eacc 3199 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3200 ;;
3201 alpha*-*-linux*)
3202 # newlib is not 64 bit ready
3203 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3204 ;;
a0da8069
NN
3205 alpha*-*-*)
3206 # newlib is not 64 bit ready
54d1c879 3207 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3208 ;;
4a18bd6b 3209 am33_2.0-*-linux*)
54d1c879 3210 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3211 ;;
a0da8069 3212 sh-*-linux*)
54d1c879 3213 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3214 ;;
a0da8069 3215 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3216 noconfigdirs="$noconfigdirs ${libgcj}"
675c6968 3217 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3218 noconfigdirs="$noconfigdirs target-newlib"
691bb5a1 3219 libgloss_dir=wince
a0da8069
NN
3220 ;;
3221 arc-*-*)
782cb41f 3222 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3223 ;;
93cc359e 3224 arm-*-coff)
691bb5a1 3225 libgloss_dir=arm
a0da8069 3226 ;;
93cc359e 3227 arm-*-elf* | arm*-*-eabi* )
0377a422 3228 noconfigdirs="$noconfigdirs target-libffi"
691bb5a1 3229 libgloss_dir=arm
a0da8069 3230 ;;
bd70a46f 3231 arm*-*-linux-gnueabi)
a5b3b4dd
DD
3232 case ${with_newlib} in
3233 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3234 esac
691bb5a1 3235 libgloss_dir=arm
bd70a46f 3236 ;;
df4a6958 3237 arm*-*-symbianelf*)
065a5627 3238 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3239 libgloss_dir=arm
df4a6958 3240 ;;
a0da8069 3241 arm-*-pe*)
54d1c879 3242 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3243 ;;
a0da8069 3244 arm-*-riscix*)
b2f14e4a 3245 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069
NN
3246 ;;
3247 avr-*-*)
065a5627 3248 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3249 ;;
376a0e54 3250 bfin-*-*)
df51e4e1 3251 unsupported_languages="$unsupported_languages java"
7837304f 3252 noconfigdirs="$noconfigdirs target-boehm-gc"
376a0e54 3253 ;;
a0da8069 3254 c4x-*-* | tic4x-*-*)
b2f14e4a 3255 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3256 ;;
b2f14e4a
JM
3257 tic54x-*-*)
3258 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3259 ;;
52310858
NC
3260 cr16-*-*)
3261 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3262 ;;
c7e66c6d 3263 cris-*-* | crisv32-*-*)
59f7ec45 3264 unsupported_languages="$unsupported_languages java"
c7e66c6d 3265 case "${target}" in
2faa2958 3266 *-*-linux*)
5e818318 3267 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
b2f14e4a
JM
3268 *) # See PR46792 regarding target-libffi.
3269 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c7e66c6d 3270 esac
691bb5a1 3271 libgloss_dir=cris
a0da8069
NN
3272 ;;
3273 d10v-*-*)
b2f14e4a 3274 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3275 ;;
3276 d30v-*-*)
b2f14e4a 3277 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3278 ;;
3279 fr30-*-elf*)
54d1c879 3280 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3281 ;;
3282 frv-*-*)
54d1c879 3283 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3284 ;;
20135e4c
NC
3285 moxie-*-*)
3286 noconfigdirs="$noconfigdirs ${libgcj}"
3287 noconfigdirs="$noconfigdirs gprof"
3288 ;;
a0da8069 3289 h8300*-*-*)
54d1c879 3290 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3291 ;;
3292 h8500-*-*)
b2f14e4a 3293 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3294 ;;
caeba88f 3295 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3296 ;;
93cc359e 3297 hppa*64*-*-linux*)
a0da8069
NN
3298 # In this case, it's because the hppa64-linux target is for
3299 # the kernel only at this point and has no libc, and thus no
3300 # headers, crt*.o, etc., all of which are needed by these.
3301 noconfigdirs="$noconfigdirs target-zlib"
3302 ;;
f0ff0f90 3303 hppa*-*-linux*)
5dcac624 3304 ;;
a0da8069 3305 hppa*-*-*elf* | \
a0da8069
NN
3306 hppa*-*-lites* | \
3307 hppa*-*-openbsd* | \
3308 hppa*64*-*-*)
54d1c879 3309 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3310 ;;
3311 hppa*-hp-hpux11*)
0377a422 3312 noconfigdirs="$noconfigdirs ld"
a0da8069 3313 ;;
691bb5a1
DD
3314 hppa*-*-pro*)
3315 libgloss_dir=pa
3316 ;;
a0da8069
NN
3317 hppa*-*-*)
3318 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3319 # build on HP-UX 10.20.
0377a422 3320 noconfigdirs="$noconfigdirs ld ${libgcj}"
a0da8069 3321 ;;
b07c2aad 3322 i960-*-*)
b2f14e4a 3323 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3324 ;;
a0da8069
NN
3325 ia64*-*-elf*)
3326 # No gdb support yet.
0377a422 3327 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3328 ;;
3329 ia64*-**-hpux*)
92c9a463
JB
3330 # No ld support yet.
3331 noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
a0da8069 3332 ;;
19e99079
NC
3333 ia64*-*-*vms*)
3334 # No gdb or ld support yet.
0377a422 3335 noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
19e99079 3336 ;;
ec11bdc6 3337 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3338 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3339 libgloss_dir=i386
a0da8069 3340 ;;
ec11bdc6 3341 i[3456789]86-*-linux*)
a0da8069
NN
3342 # This section makes it possible to build newlib natively on linux.
3343 # If we are using a cross compiler then don't configure newlib.
3344 if test x${is_cross_compiler} != xno ; then
bba45b8b 3345 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3346 fi
3347 noconfigdirs="$noconfigdirs target-libgloss"
3348 # If we are not using a cross compiler, do configure newlib.
3349 # Note however, that newlib will only be configured in this situation
3350 # if the --with-newlib option has been given, because otherwise
3351 # 'target-newlib' will appear in skipdirs.
3352 ;;
1f53ca9a 3353 i[3456789]86-w64-mingw*)
0377a422 3354 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
1f53ca9a
AO
3355 ;;
3356 i[3456789]86-*-mingw*)
45055374 3357 target_configdirs="$target_configdirs target-winsup"
0377a422 3358 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
c6b750e1 3359 ;;
2d1e8239 3360 x86_64-*-mingw*)
0377a422 3361 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
c6b750e1 3362 ;;
a0da8069
NN
3363 *-*-cygwin*)
3364 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3365 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3366 # always build newlib if winsup directory is present.
45055374 3367 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3368 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3369 elif test -d "$srcdir/newlib"; then
45055374 3370 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3371 fi
c6b750e1 3372 ;;
f0ff0f90 3373 i[3456789]86-*-interix* )
caeba88f 3374 ;;
ec11bdc6 3375 i[3456789]86-*-pe)
782cb41f 3376 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3377 ;;
ec11bdc6 3378 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3379 # The linker does not yet know about weak symbols in COFF,
3380 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3381 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3382 ;;
ec11bdc6 3383 i[3456789]86-*-sco*)
b2f14e4a 3384 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3385 ;;
ec11bdc6 3386 i[3456789]86-*-solaris2*)
a0da8069
NN
3387 noconfigdirs="$noconfigdirs target-libgloss"
3388 ;;
ec11bdc6 3389 i[3456789]86-*-sysv4*)
b2f14e4a 3390 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3391 ;;
ec11bdc6 3392 i[3456789]86-*-beos*)
b2f14e4a 3393 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
bba45b8b 3394 ;;
b59bea8a 3395 i[3456789]86-*-rdos*)
2429c060
PB
3396 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3397 ;;
b07c2aad 3398 m32r-*-*)
54d1c879 3399 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3400 ;;
a0da8069 3401 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
691bb5a1 3402 libgloss_dir=m68hc11
a0da8069
NN
3403 ;;
3404 m68k-*-elf*)
54d1c879 3405 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3406 ;;
691bb5a1
DD
3407 m68*-*-* | fido-*-*)
3408 libgloss_dir=m68k
3409 ;;
a0da8069 3410 mmix-*-*)
b2f14e4a 3411 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb"
065a5627 3412 unsupported_languages="$unsupported_languages java"
a0da8069 3413 ;;
4970f871 3414 mt-*-*)
cdb9b172
AH
3415 noconfigdirs="$noconfigdirs sim"
3416 ;;
a0da8069
NN
3417 powerpc-*-aix*)
3418 # copied from rs6000-*-* entry
065a5627 3419 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib ${libgcj}"
a0da8069 3420 ;;
93cc359e 3421 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3422 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3423 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3424 # always build newlib.
3425 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3426 ;;
3427 # This is temporary until we can link against shared libraries
3428 powerpcle-*-solaris*)
b2f14e4a 3429 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
691bb5a1 3430 libgloss_dir=rs6000
a0da8069
NN
3431 ;;
3432 powerpc-*-beos*)
b2f14e4a 3433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3434 ;;
a0da8069 3435 powerpc-*-eabi)
54d1c879 3436 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3437 libgloss_dir=rs6000
caeba88f
AL
3438 ;;
3439 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3440 libgloss_dir=rs6000
a0da8069 3441 ;;
a0da8069 3442 rs6000-*-lynxos*)
54d1c879 3443 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3444 ;;
3445 rs6000-*-aix*)
065a5627 3446 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib ${libgcj}"
a0da8069
NN
3447 ;;
3448 rs6000-*-*)
54d1c879 3449 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3450 ;;
3451 m68k-apollo-*)
b2f14e4a 3452 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3453 ;;
25a07265 3454 microblaze*)
065a5627 3455 noconfigdirs="$noconfigdirs gprof ${libgcj}"
25a07265 3456 ;;
5bd8be13 3457 mips*-sde-elf*)
5bd8be13
RS
3458 noconfigdirs="$noconfigdirs ${libgcj}"
3459 if test x$with_newlib = xyes; then
3460 noconfigdirs="$noconfigdirs gprof"
3461 fi
3462 libgloss_dir=mips
3463 ;;
a0da8069 3464 mips*-*-irix5*)
b2f14e4a 3465 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3466 ;;
3467 mips*-*-irix6*)
a0da8069
NN
3468 # Linking libjava exceeds command-line length limits on at least
3469 # IRIX 6.2, but not on IRIX 6.5.
3470 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3471 # <oldham@codesourcery.com>
54d1c879 3472 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3473 ;;
a0da8069 3474 mips*-*-bsd*)
b2f14e4a 3475 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3476 ;;
a0da8069
NN
3477 mips*-*-linux*)
3478 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3479 ;;
3480 mips*-*-*)
54d1c879 3481 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3482 libgloss_dir=mips
a0da8069 3483 ;;
dbf85af7 3484 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3485 case "${target}" in
3486 sh*-*-elf)
3487 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3488 *)
3489 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3490 esac
a0da8069 3491 ;;
691bb5a1
DD
3492 sparclet-*-aout* | sparc86x-*-*)
3493 libgloss_dir=sparc
3494 ;;
a0da8069 3495 sparc-*-elf*)
54d1c879 3496 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3497 ;;
3498 sparc64-*-elf*)
54d1c879 3499 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3500 libgloss_dir=sparc
a0da8069
NN
3501 ;;
3502 sparclite-*-*)
691bb5a1 3503 libgloss_dir=sparc
a0da8069
NN
3504 ;;
3505 sparc-*-sunos4*)
a0da8069
NN
3506 if test x${is_cross_compiler} != xno ; then
3507 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3508 else
3509 use_gnu_ld=no
3510 fi
3511 ;;
3512 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3513 ;;
619a3713
JM
3514 tic6x-*-*)
3515 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3516 ;;
a0da8069 3517 v810-*-*)
b2f14e4a 3518 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3519 ;;
3520 vax-*-*)
54d1c879 3521 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3522 ;;
29383458 3523 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3524 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3525 ;;
3526 *-*-lynxos*)
54d1c879 3527 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3528 ;;
a0da8069 3529 *-*-*)
54d1c879 3530 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3531 ;;
3532esac
252b5132 3533
a0da8069
NN
3534# If we aren't building newlib, then don't build libgloss, since libgloss
3535# depends upon some newlib header files.
3536case "${noconfigdirs}" in
3537 *target-libgloss*) ;;
3538 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3539esac
3540
a0da8069 3541# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3542host_makefile_frag=/dev/null
3543if test -d ${srcdir}/config ; then
3544case "${host}" in
ec11bdc6 3545 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3546 host_makefile_frag="config/mh-djgpp"
3547 ;;
3548 *-cygwin*)
e33b51a6 3549
81ecdfbb
RW
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3551$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3552echo a >cygwin-cat-check
1f53ca9a 3553if test `cat cygwin-cat-check` = a ; then
8ade07e9 3554 rm cygwin-cat-check
81ecdfbb
RW
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3556$as_echo "yes" >&6; }
e33b51a6 3557else
8ade07e9 3558 rm cygwin-cat-check
81ecdfbb
RW
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560$as_echo "no" >&6; }
3561 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3562 Please either mount the build directory in binary mode or run the following
3563 commands before running any configure script:
3564set -o igncr
3565export SHELLOPTS
81ecdfbb 3566 " "$LINENO" 5
e33b51a6 3567fi
e33b51a6 3568
a0da8069
NN
3569 host_makefile_frag="config/mh-cygwin"
3570 ;;
8a1599ab 3571 *-mingw*)
84e7906e 3572 host_makefile_frag="config/mh-mingw"
2d1e8239 3573 ;;
a0da8069
NN
3574 *-interix*)
3575 host_makefile_frag="config/mh-interix"
3576 ;;
da888c87 3577 hppa*-hp-hpux10*)
da888c87 3578 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3579 ;;
3516a403 3580 hppa*-hp-hpux*)
da888c87
PB
3581 host_makefile_frag="config/mh-pa"
3582 ;;
3583 hppa*-*)
3584 host_makefile_frag="config/mh-pa"
3585 ;;
e552509b
ILT
3586 *-*-darwin*)
3587 host_makefile_frag="config/mh-darwin"
0df3d27f 3588 ;;
f6d183c0
PB
3589 powerpc-*-aix*)
3590 host_makefile_frag="config/mh-ppc-aix"
3591 ;;
3592 rs6000-*-aix*)
3593 host_makefile_frag="config/mh-ppc-aix"
3594 ;;
a0da8069
NN
3595esac
3596fi
3597
9e07f89d 3598if test "${build}" != "${host}" ; then
1576798e
PB
3599 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3600 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3601 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3602 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3603 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3604 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3605 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3606 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3607 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3608 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3609 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3610 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3611 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3612else
3613 AR_FOR_BUILD="\$(AR)"
3614 AS_FOR_BUILD="\$(AS)"
512b7dfb 3615 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3616 CXX_FOR_BUILD="\$(CXX)"
3617 GCJ_FOR_BUILD="\$(GCJ)"
3618 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3619 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3620 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3621 LD_FOR_BUILD="\$(LD)"
3622 NM_FOR_BUILD="\$(NM)"
3623 RANLIB_FOR_BUILD="\$(RANLIB)"
3624 WINDRES_FOR_BUILD="\$(WINDRES)"
3625 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3626fi
3627
3628ac_ext=c
c6b750e1
DJ
3629ac_cpp='$CPP $CPPFLAGS'
3630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633if test -n "$ac_tool_prefix"; then
3634 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3635set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637$as_echo_n "checking for $ac_word... " >&6; }
3638if test "${ac_cv_prog_CC+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3640else
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3643else
3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645for as_dir in $PATH
3646do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3651 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3653 break 2
3654 fi
3655done
81ecdfbb
RW
3656 done
3657IFS=$as_save_IFS
c6b750e1
DJ
3658
3659fi
3660fi
3661CC=$ac_cv_prog_CC
3662if test -n "$CC"; then
81ecdfbb
RW
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3664$as_echo "$CC" >&6; }
c6b750e1 3665else
81ecdfbb
RW
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667$as_echo "no" >&6; }
c6b750e1
DJ
3668fi
3669
81ecdfbb 3670
c6b750e1
DJ
3671fi
3672if test -z "$ac_cv_prog_CC"; then
3673 ac_ct_CC=$CC
6a9cf61e 3674 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3675set dummy gcc; ac_word=$2
81ecdfbb
RW
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677$as_echo_n "checking for $ac_word... " >&6; }
3678if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3679 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3680else
3681 if test -n "$ac_ct_CC"; then
3682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3683else
3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3691 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3693 break 2
3694 fi
3695done
81ecdfbb
RW
3696 done
3697IFS=$as_save_IFS
c6b750e1
DJ
3698
3699fi
3700fi
3701ac_ct_CC=$ac_cv_prog_ac_ct_CC
3702if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3704$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3705else
81ecdfbb
RW
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
c6b750e1
DJ
3708fi
3709
81ecdfbb
RW
3710 if test "x$ac_ct_CC" = x; then
3711 CC=""
3712 else
3713 case $cross_compiling:$ac_tool_warned in
3714yes:)
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3717ac_tool_warned=yes ;;
3718esac
3719 CC=$ac_ct_CC
3720 fi
c6b750e1
DJ
3721else
3722 CC="$ac_cv_prog_CC"
3723fi
3724
3725if test -z "$CC"; then
81ecdfbb
RW
3726 if test -n "$ac_tool_prefix"; then
3727 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3728set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730$as_echo_n "checking for $ac_word... " >&6; }
3731if test "${ac_cv_prog_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
9e07f89d
NN
3733else
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3736else
c6b750e1
DJ
3737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738for as_dir in $PATH
3739do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3744 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3746 break 2
3747 fi
3748done
81ecdfbb
RW
3749 done
3750IFS=$as_save_IFS
c6b750e1 3751
9e07f89d
NN
3752fi
3753fi
c6b750e1 3754CC=$ac_cv_prog_CC
9e07f89d 3755if test -n "$CC"; then
81ecdfbb
RW
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757$as_echo "$CC" >&6; }
c6b750e1 3758else
81ecdfbb
RW
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760$as_echo "no" >&6; }
c6b750e1
DJ
3761fi
3762
c6b750e1 3763
81ecdfbb 3764 fi
c6b750e1 3765fi
9e07f89d
NN
3766if test -z "$CC"; then
3767 # Extract the first word of "cc", so it can be a program name with args.
3768set dummy cc; ac_word=$2
81ecdfbb
RW
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770$as_echo_n "checking for $ac_word... " >&6; }
3771if test "${ac_cv_prog_CC+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
9e07f89d
NN
3773else
3774 if test -n "$CC"; then
3775 ac_cv_prog_CC="$CC" # Let the user override the test.
3776else
9e07f89d 3777 ac_prog_rejected=no
c6b750e1
DJ
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3786 ac_prog_rejected=yes
3787 continue
3788 fi
3789 ac_cv_prog_CC="cc"
81ecdfbb 3790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3791 break 2
3792 fi
3793done
81ecdfbb
RW
3794 done
3795IFS=$as_save_IFS
c6b750e1 3796
9e07f89d
NN
3797if test $ac_prog_rejected = yes; then
3798 # We found a bogon in the path, so make sure we never use it.
3799 set dummy $ac_cv_prog_CC
3800 shift
c6b750e1 3801 if test $# != 0; then
9e07f89d
NN
3802 # We chose a different compiler from the bogus one.
3803 # However, it has the same basename, so the bogon will be chosen
3804 # first if we set CC to just the basename; use the full file name.
3805 shift
c6b750e1 3806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3807 fi
3808fi
3809fi
3810fi
c6b750e1 3811CC=$ac_cv_prog_CC
9e07f89d 3812if test -n "$CC"; then
81ecdfbb
RW
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3814$as_echo "$CC" >&6; }
9e07f89d 3815else
81ecdfbb
RW
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817$as_echo "no" >&6; }
9e07f89d
NN
3818fi
3819
81ecdfbb 3820
c6b750e1
DJ
3821fi
3822if test -z "$CC"; then
3823 if test -n "$ac_tool_prefix"; then
81ecdfbb 3824 for ac_prog in cl.exe
c6b750e1
DJ
3825 do
3826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829$as_echo_n "checking for $ac_word... " >&6; }
3830if test "${ac_cv_prog_CC+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
9e07f89d
NN
3832else
3833 if test -n "$CC"; then
3834 ac_cv_prog_CC="$CC" # Let the user override the test.
3835else
c6b750e1
DJ
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3845 break 2
376a0e54 3846 fi
c6b750e1 3847done
81ecdfbb
RW
3848 done
3849IFS=$as_save_IFS
cac3d6c4 3850
c6b750e1
DJ
3851fi
3852fi
3853CC=$ac_cv_prog_CC
3854if test -n "$CC"; then
81ecdfbb
RW
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3856$as_echo "$CC" >&6; }
cac3d6c4 3857else
81ecdfbb
RW
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859$as_echo "no" >&6; }
9e07f89d 3860fi
cac3d6c4 3861
81ecdfbb 3862
c6b750e1
DJ
3863 test -n "$CC" && break
3864 done
cac3d6c4 3865fi
c6b750e1
DJ
3866if test -z "$CC"; then
3867 ac_ct_CC=$CC
81ecdfbb 3868 for ac_prog in cl.exe
c6b750e1
DJ
3869do
3870 # Extract the first word of "$ac_prog", so it can be a program name with args.
3871set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873$as_echo_n "checking for $ac_word... " >&6; }
3874if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3875 $as_echo_n "(cached) " >&6
cac3d6c4 3876else
c6b750e1
DJ
3877 if test -n "$ac_ct_CC"; then
3878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3879else
c6b750e1
DJ
3880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881for as_dir in $PATH
3882do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3887 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3889 break 2
3890 fi
3891done
81ecdfbb
RW
3892 done
3893IFS=$as_save_IFS
c6b750e1 3894
cac3d6c4
CM
3895fi
3896fi
c6b750e1
DJ
3897ac_ct_CC=$ac_cv_prog_ac_ct_CC
3898if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3900$as_echo "$ac_ct_CC" >&6; }
9e07f89d 3901else
81ecdfbb
RW
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903$as_echo "no" >&6; }
cac3d6c4 3904fi
376a0e54 3905
81ecdfbb 3906
c6b750e1
DJ
3907 test -n "$ac_ct_CC" && break
3908done
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
3921fi
3922
3923fi
3924
3925
81ecdfbb
RW
3926test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928as_fn_error "no acceptable C compiler found in \$PATH
3929See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
3930
3931# Provide some information about the compiler.
81ecdfbb
RW
3932$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3933set X $ac_compile
3934ac_compiler=$2
3935for ac_option in --version -v -V -qversion; do
3936 { { ac_try="$ac_compiler $ac_option >&5"
3937case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940esac
3941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942$as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 3944 ac_status=$?
81ecdfbb
RW
3945 if test -s conftest.err; then
3946 sed '10a\
3947... rest of stderr output deleted ...
3948 10q' conftest.err >conftest.er1
3949 cat conftest.er1 >&5
3950 rm -f conftest.er1 conftest.err
3951 fi
3952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953 test $ac_status = 0; }
3954done
c6b750e1 3955
81ecdfbb 3956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
3957/* end confdefs.h. */
3958
3959int
3960main ()
3961{
3962
3963 ;
3964 return 0;
3965}
3966_ACEOF
3967ac_clean_files_save=$ac_clean_files
81ecdfbb 3968ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
3969# Try to create an executable without -o first, disregard a.out.
3970# It will help us diagnose broken compilers, and finding out an intuition
3971# of exeext.
81ecdfbb
RW
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3973$as_echo_n "checking for C compiler default output file name... " >&6; }
3974ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3975
3976# The possible output files:
3977ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3978
3979ac_rmfiles=
3980for ac_file in $ac_files
3981do
3982 case $ac_file in
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3984 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3985 esac
3986done
3987rm -f $ac_rmfiles
3988
3989if { { ac_try="$ac_link_default"
3990case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993esac
3994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995$as_echo "$ac_try_echo"; } >&5
3996 (eval "$ac_link_default") 2>&5
c6b750e1 3997 ac_status=$?
81ecdfbb
RW
3998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999 test $ac_status = 0; }; then :
4000 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4001# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4002# in a Makefile. We should not override ac_cv_exeext if it was cached,
4003# so that the user can short-circuit this test for compilers unknown to
4004# Autoconf.
4005for ac_file in $ac_files ''
c6b750e1
DJ
4006do
4007 test -f "$ac_file" || continue
4008 case $ac_file in
81ecdfbb 4009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4010 ;;
4011 [ab].out )
4012 # We found the default executable, but exeext='' is most
4013 # certainly right.
4014 break;;
4015 *.* )
81ecdfbb
RW
4016 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4017 then :; else
4018 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 fi
4020 # We set ac_cv_exeext here because the later test for it is not
4021 # safe: cross compilers may not add the suffix if given an `-o'
4022 # argument, so we may need to know it at that point already.
4023 # Even if this section looks crufty: it has the advantage of
4024 # actually working.
c6b750e1
DJ
4025 break;;
4026 * )
4027 break;;
4028 esac
4029done
81ecdfbb
RW
4030test "$ac_cv_exeext" = no && ac_cv_exeext=
4031
c6b750e1 4032else
81ecdfbb
RW
4033 ac_file=''
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4036$as_echo "$ac_file" >&6; }
4037if test -z "$ac_file"; then :
4038 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4039sed 's/^/| /' conftest.$ac_ext >&5
4040
81ecdfbb
RW
4041{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4043{ as_fn_set_status 77
4044as_fn_error "C compiler cannot create executables
4045See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4046fi
c6b750e1 4047ac_exeext=$ac_cv_exeext
c6b750e1 4048
81ecdfbb 4049# Check that the compiler produces executables we can run. If not, either
c6b750e1 4050# the compiler is broken, or we cross compile.
81ecdfbb
RW
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4052$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4053# If not cross compiling, check that we can run a simple program.
4054if test "$cross_compiling" != yes; then
4055 if { ac_try='./$ac_file'
81ecdfbb
RW
4056 { { case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059esac
4060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061$as_echo "$ac_try_echo"; } >&5
4062 (eval "$ac_try") 2>&5
c6b750e1 4063 ac_status=$?
81ecdfbb
RW
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }; }; then
c6b750e1
DJ
4066 cross_compiling=no
4067 else
4068 if test "$cross_compiling" = maybe; then
4069 cross_compiling=yes
4070 else
81ecdfbb
RW
4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073as_fn_error "cannot run C compiled programs.
c6b750e1 4074If you meant to cross compile, use \`--host'.
81ecdfbb 4075See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4076 fi
4077 fi
4078fi
81ecdfbb
RW
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4080$as_echo "yes" >&6; }
c6b750e1 4081
81ecdfbb 4082rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4083ac_clean_files=$ac_clean_files_save
81ecdfbb 4084# Check that the compiler produces executables we can run. If not, either
c6b750e1 4085# the compiler is broken, or we cross compile.
81ecdfbb
RW
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4087$as_echo_n "checking whether we are cross compiling... " >&6; }
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4089$as_echo "$cross_compiling" >&6; }
4090
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4092$as_echo_n "checking for suffix of executables... " >&6; }
4093if { { ac_try="$ac_link"
4094case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097esac
4098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099$as_echo "$ac_try_echo"; } >&5
4100 (eval "$ac_link") 2>&5
c6b750e1 4101 ac_status=$?
81ecdfbb
RW
4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }; then :
c6b750e1
DJ
4104 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4105# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4106# work properly (i.e., refer to `conftest.exe'), while it won't with
4107# `rm'.
4108for ac_file in conftest.exe conftest conftest.*; do
4109 test -f "$ac_file" || continue
4110 case $ac_file in
81ecdfbb 4111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4112 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4113 break;;
4114 * ) break;;
4115 esac
4116done
4117else
81ecdfbb
RW
4118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4120as_fn_error "cannot compute suffix of executables: cannot compile and link
4121See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4122fi
c6b750e1 4123rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4125$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4126
4127rm -f conftest.$ac_ext
4128EXEEXT=$ac_cv_exeext
4129ac_exeext=$EXEEXT
81ecdfbb
RW
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4131$as_echo_n "checking for suffix of object files... " >&6; }
4132if test "${ac_cv_objext+set}" = set; then :
4133 $as_echo_n "(cached) " >&6
c6b750e1 4134else
81ecdfbb 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4136/* end confdefs.h. */
4137
4138int
4139main ()
4140{
4141
4142 ;
4143 return 0;
4144}
4145_ACEOF
4146rm -f conftest.o conftest.obj
81ecdfbb
RW
4147if { { ac_try="$ac_compile"
4148case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151esac
4152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4153$as_echo "$ac_try_echo"; } >&5
4154 (eval "$ac_compile") 2>&5
c6b750e1 4155 ac_status=$?
81ecdfbb
RW
4156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4157 test $ac_status = 0; }; then :
4158 for ac_file in conftest.o conftest.obj conftest.*; do
4159 test -f "$ac_file" || continue;
c6b750e1 4160 case $ac_file in
81ecdfbb 4161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4162 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4163 break;;
4164 esac
4165done
cac3d6c4 4166else
81ecdfbb 4167 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4168sed 's/^/| /' conftest.$ac_ext >&5
4169
81ecdfbb
RW
4170{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4172as_fn_error "cannot compute suffix of object files: cannot compile
4173See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4174fi
c6b750e1
DJ
4175rm -f conftest.$ac_cv_objext conftest.$ac_ext
4176fi
81ecdfbb
RW
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4178$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4179OBJEXT=$ac_cv_objext
4180ac_objext=$OBJEXT
81ecdfbb
RW
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4182$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4183if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
c6b750e1 4185else
81ecdfbb 4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4187/* end confdefs.h. */
4188
4189int
4190main ()
4191{
4192#ifndef __GNUC__
4193 choke me
4194#endif
4195
4196 ;
4197 return 0;
4198}
4199_ACEOF
81ecdfbb 4200if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4201 ac_compiler_gnu=yes
4202else
81ecdfbb 4203 ac_compiler_gnu=no
c6b750e1 4204fi
81ecdfbb 4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4206ac_cv_c_compiler_gnu=$ac_compiler_gnu
4207
4208fi
81ecdfbb
RW
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4210$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4211if test $ac_compiler_gnu = yes; then
4212 GCC=yes
4213else
4214 GCC=
4215fi
c6b750e1
DJ
4216ac_test_CFLAGS=${CFLAGS+set}
4217ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4219$as_echo_n "checking whether $CC accepts -g... " >&6; }
4220if test "${ac_cv_prog_cc_g+set}" = set; then :
4221 $as_echo_n "(cached) " >&6
4222else
4223 ac_save_c_werror_flag=$ac_c_werror_flag
4224 ac_c_werror_flag=yes
4225 ac_cv_prog_cc_g=no
4226 CFLAGS="-g"
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4228/* end confdefs.h. */
4229
4230int
4231main ()
4232{
4233
4234 ;
4235 return 0;
4236}
4237_ACEOF
81ecdfbb 4238if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4239 ac_cv_prog_cc_g=yes
4240else
81ecdfbb
RW
4241 CFLAGS=""
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243/* end confdefs.h. */
4244
4245int
4246main ()
4247{
4248
4249 ;
4250 return 0;
4251}
4252_ACEOF
4253if ac_fn_c_try_compile "$LINENO"; then :
4254
4255else
4256 ac_c_werror_flag=$ac_save_c_werror_flag
4257 CFLAGS="-g"
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h. */
cac3d6c4 4260
81ecdfbb
RW
4261int
4262main ()
4263{
4264
4265 ;
4266 return 0;
4267}
4268_ACEOF
4269if ac_fn_c_try_compile "$LINENO"; then :
4270 ac_cv_prog_cc_g=yes
4271fi
4272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4273fi
81ecdfbb 4274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4275fi
81ecdfbb
RW
4276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4277 ac_c_werror_flag=$ac_save_c_werror_flag
4278fi
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4280$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4281if test "$ac_test_CFLAGS" = set; then
c6b750e1 4282 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4283elif test $ac_cv_prog_cc_g = yes; then
4284 if test "$GCC" = yes; then
4285 CFLAGS="-g -O2"
4286 else
4287 CFLAGS="-g"
4288 fi
4289else
4290 if test "$GCC" = yes; then
4291 CFLAGS="-O2"
4292 else
4293 CFLAGS=
4294 fi
4295fi
81ecdfbb
RW
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4297$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4298if test "${ac_cv_prog_cc_c89+set}" = set; then :
4299 $as_echo_n "(cached) " >&6
c6b750e1 4300else
81ecdfbb 4301 ac_cv_prog_cc_c89=no
c6b750e1 4302ac_save_CC=$CC
81ecdfbb 4303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4304/* end confdefs.h. */
4305#include <stdarg.h>
4306#include <stdio.h>
4307#include <sys/types.h>
4308#include <sys/stat.h>
4309/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4310struct buf { int x; };
4311FILE * (*rcsopen) (struct buf *, struct stat *, int);
4312static char *e (p, i)
4313 char **p;
4314 int i;
4315{
4316 return p[i];
4317}
4318static char *f (char * (*g) (char **, int), char **p, ...)
4319{
4320 char *s;
4321 va_list v;
4322 va_start (v,p);
4323 s = g (p, va_arg (v,int));
4324 va_end (v);
4325 return s;
4326}
4327
4328/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4329 function prototypes and stuff, but not '\xHH' hex character constants.
4330 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4331 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4333 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4334 that's true only with -std. */
c6b750e1
DJ
4335int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4336
81ecdfbb
RW
4337/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4338 inside strings and character constants. */
4339#define FOO(x) 'x'
4340int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4341
c6b750e1
DJ
4342int test (int i, double x);
4343struct s1 {int (*f) (int a);};
4344struct s2 {int (*f) (double a);};
4345int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4346int argc;
4347char **argv;
4348int
4349main ()
4350{
4351return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4352 ;
4353 return 0;
4354}
4355_ACEOF
81ecdfbb
RW
4356for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4358do
4359 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4360 if ac_fn_c_try_compile "$LINENO"; then :
4361 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4362fi
81ecdfbb
RW
4363rm -f core conftest.err conftest.$ac_objext
4364 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4365done
81ecdfbb 4366rm -f conftest.$ac_ext
c6b750e1
DJ
4367CC=$ac_save_CC
4368
4369fi
81ecdfbb
RW
4370# AC_CACHE_VAL
4371case "x$ac_cv_prog_cc_c89" in
4372 x)
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4374$as_echo "none needed" >&6; } ;;
4375 xno)
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4377$as_echo "unsupported" >&6; } ;;
c6b750e1 4378 *)
81ecdfbb
RW
4379 CC="$CC $ac_cv_prog_cc_c89"
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4381$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4382esac
81ecdfbb 4383if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4384
c6b750e1
DJ
4385fi
4386
c6b750e1
DJ
4387ac_ext=c
4388ac_cpp='$CPP $CPPFLAGS'
4389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4392
81ecdfbb 4393ac_ext=cpp
18f6b6ee
PB
4394ac_cpp='$CXXCPP $CPPFLAGS'
4395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4398if test -z "$CXX"; then
4399 if test -n "$CCC"; then
4400 CXX=$CCC
4401 else
4402 if test -n "$ac_tool_prefix"; then
4403 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4404 do
4405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4406set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408$as_echo_n "checking for $ac_word... " >&6; }
4409if test "${ac_cv_prog_CXX+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4411else
4412 if test -n "$CXX"; then
4413 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4414else
4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4422 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4424 break 2
4425 fi
4426done
81ecdfbb
RW
4427 done
4428IFS=$as_save_IFS
512b7dfb 4429
18f6b6ee
PB
4430fi
4431fi
4432CXX=$ac_cv_prog_CXX
4433if test -n "$CXX"; then
81ecdfbb
RW
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4435$as_echo "$CXX" >&6; }
18f6b6ee 4436else
81ecdfbb
RW
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438$as_echo "no" >&6; }
18f6b6ee
PB
4439fi
4440
81ecdfbb 4441
18f6b6ee
PB
4442 test -n "$CXX" && break
4443 done
4444fi
4445if test -z "$CXX"; then
4446 ac_ct_CXX=$CXX
81ecdfbb 4447 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4448do
4449 # Extract the first word of "$ac_prog", so it can be a program name with args.
4450set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452$as_echo_n "checking for $ac_word... " >&6; }
4453if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4455else
4456 if test -n "$ac_ct_CXX"; then
4457 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4458else
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4466 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4468 break 2
512b7dfb 4469 fi
18f6b6ee 4470done
81ecdfbb
RW
4471 done
4472IFS=$as_save_IFS
512b7dfb 4473
18f6b6ee
PB
4474fi
4475fi
4476ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4477if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4479$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4480else
81ecdfbb
RW
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482$as_echo "no" >&6; }
18f6b6ee
PB
4483fi
4484
81ecdfbb 4485
18f6b6ee
PB
4486 test -n "$ac_ct_CXX" && break
4487done
18f6b6ee 4488
81ecdfbb
RW
4489 if test "x$ac_ct_CXX" = x; then
4490 CXX="g++"
4491 else
4492 case $cross_compiling:$ac_tool_warned in
4493yes:)
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496ac_tool_warned=yes ;;
4497esac
4498 CXX=$ac_ct_CXX
4499 fi
18f6b6ee
PB
4500fi
4501
81ecdfbb
RW
4502 fi
4503fi
18f6b6ee 4504# Provide some information about the compiler.
81ecdfbb
RW
4505$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4506set X $ac_compile
4507ac_compiler=$2
4508for ac_option in --version -v -V -qversion; do
4509 { { ac_try="$ac_compiler $ac_option >&5"
4510case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513esac
4514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515$as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4517 ac_status=$?
81ecdfbb
RW
4518 if test -s conftest.err; then
4519 sed '10a\
4520... rest of stderr output deleted ...
4521 10q' conftest.err >conftest.er1
4522 cat conftest.er1 >&5
4523 rm -f conftest.er1 conftest.err
4524 fi
4525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4526 test $ac_status = 0; }
4527done
18f6b6ee 4528
81ecdfbb
RW
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4530$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4531if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
18f6b6ee 4533else
81ecdfbb 4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4535/* end confdefs.h. */
4536
4537int
4538main ()
4539{
4540#ifndef __GNUC__
4541 choke me
4542#endif
4543
4544 ;
4545 return 0;
4546}
4547_ACEOF
81ecdfbb 4548if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4549 ac_compiler_gnu=yes
4550else
81ecdfbb 4551 ac_compiler_gnu=no
18f6b6ee 4552fi
81ecdfbb 4553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4554ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4555
4556fi
81ecdfbb
RW
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4558$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4559if test $ac_compiler_gnu = yes; then
4560 GXX=yes
4561else
4562 GXX=
4563fi
18f6b6ee
PB
4564ac_test_CXXFLAGS=${CXXFLAGS+set}
4565ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4567$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4568if test "${ac_cv_prog_cxx_g+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570else
4571 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4572 ac_cxx_werror_flag=yes
4573 ac_cv_prog_cxx_g=no
4574 CXXFLAGS="-g"
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4576/* end confdefs.h. */
4577
4578int
4579main ()
4580{
4581
4582 ;
4583 return 0;
4584}
4585_ACEOF
81ecdfbb 4586if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4587 ac_cv_prog_cxx_g=yes
4588else
81ecdfbb
RW
4589 CXXFLAGS=""
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4591/* end confdefs.h. */
81ecdfbb 4592
18f6b6ee
PB
4593int
4594main ()
4595{
81ecdfbb 4596
18f6b6ee
PB
4597 ;
4598 return 0;
4599}
4600_ACEOF
81ecdfbb 4601if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4602
81ecdfbb
RW
4603else
4604 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4605 CXXFLAGS="-g"
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4607/* end confdefs.h. */
81ecdfbb 4608
18f6b6ee
PB
4609int
4610main ()
4611{
81ecdfbb 4612
18f6b6ee
PB
4613 ;
4614 return 0;
4615}
4616_ACEOF
81ecdfbb
RW
4617if ac_fn_cxx_try_compile "$LINENO"; then :
4618 ac_cv_prog_cxx_g=yes
18f6b6ee 4619fi
81ecdfbb
RW
4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621fi
4622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623fi
4624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4628$as_echo "$ac_cv_prog_cxx_g" >&6; }
4629if test "$ac_test_CXXFLAGS" = set; then
4630 CXXFLAGS=$ac_save_CXXFLAGS
4631elif test $ac_cv_prog_cxx_g = yes; then
4632 if test "$GXX" = yes; then
4633 CXXFLAGS="-g -O2"
4634 else
4635 CXXFLAGS="-g"
4636 fi
4637else
4638 if test "$GXX" = yes; then
4639 CXXFLAGS="-O2"
4640 else
4641 CXXFLAGS=
4642 fi
18f6b6ee 4643fi
18f6b6ee
PB
4644ac_ext=c
4645ac_cpp='$CPP $CPPFLAGS'
4646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649
4650
4651# We must set the default linker to the linker used by gcc for the correct
4652# operation of libtool. If LD is not defined and we are using gcc, try to
4653# set the LD default to the ld used by gcc.
4654if test -z "$LD"; then
4655 if test "$GCC" = yes; then
4656 case $build in
4657 *-*-mingw*)
4658 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4659 *)
4660 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4661 esac
4662 case $gcc_prog_ld in
4663 # Accept absolute paths.
4664 [\\/]* | [A-Za-z]:[\\/]*)
4665 LD="$gcc_prog_ld" ;;
4666 esac
4667 fi
512b7dfb
PB
4668fi
4669
4670
4671
4672
c6b750e1 4673if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4674 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4675set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677$as_echo_n "checking for $ac_word... " >&6; }
4678if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
9e07f89d 4680else
512b7dfb
PB
4681 if test -n "$GNATBIND"; then
4682 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4683else
c6b750e1
DJ
4684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
4686do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4691 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4693 break 2
4694 fi
4695done
81ecdfbb
RW
4696 done
4697IFS=$as_save_IFS
c6b750e1 4698
9e07f89d
NN
4699fi
4700fi
512b7dfb
PB
4701GNATBIND=$ac_cv_prog_GNATBIND
4702if test -n "$GNATBIND"; then
81ecdfbb
RW
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4704$as_echo "$GNATBIND" >&6; }
9e07f89d 4705else
81ecdfbb
RW
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707$as_echo "no" >&6; }
9e07f89d
NN
4708fi
4709
81ecdfbb 4710
c6b750e1 4711fi
512b7dfb
PB
4712if test -z "$ac_cv_prog_GNATBIND"; then
4713 ac_ct_GNATBIND=$GNATBIND
4714 # Extract the first word of "gnatbind", so it can be a program name with args.
4715set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717$as_echo_n "checking for $ac_word... " >&6; }
4718if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
9e07f89d 4720else
512b7dfb
PB
4721 if test -n "$ac_ct_GNATBIND"; then
4722 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4723else
c6b750e1
DJ
4724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4731 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4733 break 2
4734 fi
4735done
81ecdfbb
RW
4736 done
4737IFS=$as_save_IFS
c6b750e1 4738
9e07f89d
NN
4739fi
4740fi
512b7dfb
PB
4741ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4742if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4744$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4745else
81ecdfbb
RW
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747$as_echo "no" >&6; }
9e07f89d
NN
4748fi
4749
81ecdfbb
RW
4750 if test "x$ac_ct_GNATBIND" = x; then
4751 GNATBIND="no"
4752 else
4753 case $cross_compiling:$ac_tool_warned in
4754yes:)
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4757ac_tool_warned=yes ;;
4758esac
4759 GNATBIND=$ac_ct_GNATBIND
4760 fi
24ff9987 4761else
512b7dfb 4762 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4763fi
4764
7df2cd5d 4765if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4766 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4767set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769$as_echo_n "checking for $ac_word... " >&6; }
4770if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
7df2cd5d 4772else
512b7dfb
PB
4773 if test -n "$GNATMAKE"; then
4774 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4775else
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4783 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4785 break 2
4786 fi
4787done
81ecdfbb
RW
4788 done
4789IFS=$as_save_IFS
7df2cd5d
PB
4790
4791fi
4792fi
512b7dfb
PB
4793GNATMAKE=$ac_cv_prog_GNATMAKE
4794if test -n "$GNATMAKE"; then
81ecdfbb
RW
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4796$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4797else
81ecdfbb
RW
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799$as_echo "no" >&6; }
7df2cd5d
PB
4800fi
4801
81ecdfbb 4802
7df2cd5d 4803fi
512b7dfb
PB
4804if test -z "$ac_cv_prog_GNATMAKE"; then
4805 ac_ct_GNATMAKE=$GNATMAKE
4806 # Extract the first word of "gnatmake", so it can be a program name with args.
4807set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809$as_echo_n "checking for $ac_word... " >&6; }
4810if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4811 $as_echo_n "(cached) " >&6
7df2cd5d 4812else
512b7dfb
PB
4813 if test -n "$ac_ct_GNATMAKE"; then
4814 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4815else
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4823 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4825 break 2
4826 fi
4827done
81ecdfbb
RW
4828 done
4829IFS=$as_save_IFS
7df2cd5d 4830
7df2cd5d
PB
4831fi
4832fi
512b7dfb
PB
4833ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4834if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4836$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4837else
81ecdfbb
RW
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839$as_echo "no" >&6; }
7df2cd5d
PB
4840fi
4841
81ecdfbb
RW
4842 if test "x$ac_ct_GNATMAKE" = x; then
4843 GNATMAKE="no"
4844 else
4845 case $cross_compiling:$ac_tool_warned in
4846yes:)
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4849ac_tool_warned=yes ;;
4850esac
4851 GNATMAKE=$ac_ct_GNATMAKE
4852 fi
7df2cd5d 4853else
512b7dfb 4854 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4855fi
4856
81ecdfbb
RW
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4858$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4859if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
9e07f89d
NN
4861else
4862 cat >conftest.adb <<EOF
4863procedure conftest is begin null; end conftest;
4864EOF
4865acx_cv_cc_gcc_supports_ada=no
4866# There is a bug in old released versions of GCC which causes the
4867# driver to exit successfully when the appropriate language module
4868# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4869# Therefore we must check for the error message as well as an
4870# unsuccessful exit.
b8908782
DD
4871# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4872# given a .adb file, but produce no object file. So we must check
4873# if an object file was really produced to guard against this.
9e07f89d 4874errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4875if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4876 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4877fi
4878rm -f conftest.*
4879fi
81ecdfbb
RW
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4881$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 4882
512b7dfb 4883if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4884 have_gnat=yes
4885else
4886 have_gnat=no
4887fi
4888
81ecdfbb
RW
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4890$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4891if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
b8908782
DD
4893else
4894 echo abfoo >t1
4895 echo cdfoo >t2
4896 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4897 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4898 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4899 :
4900 else
4901 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4902 fi
4903 fi
b8908782
DD
4904 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4905 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4906 :
b8908782
DD
4907 else
4908 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4909 fi
4910 fi
4911 rm t1 t2
4912
4913fi
81ecdfbb
RW
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4915$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
4916do_compare="$gcc_cv_prog_cmp_skip"
4917
4918
9e07f89d 4919
e8a5fa9c 4920# See if we are building gcc with C++.
81ecdfbb
RW
4921# Check whether --enable-build-with-cxx was given.
4922if test "${enable_build_with_cxx+set}" = set; then :
4923 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
4924else
4925 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
4926fi
4927
e8a5fa9c 4928
d5f2ee2e
KG
4929# Used for setting $lt_cv_objdir
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
4931$as_echo_n "checking for objdir... " >&6; }
4932if test "${lt_cv_objdir+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4934else
4935 rm -f .libs 2>/dev/null
4936mkdir .libs 2>/dev/null
4937if test -d .libs; then
4938 lt_cv_objdir=.libs
4939else
4940 # MS-DOS does not allow filenames that begin with a dot.
4941 lt_cv_objdir=_libs
4942fi
4943rmdir .libs 2>/dev/null
4944fi
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
4946$as_echo "$lt_cv_objdir" >&6; }
4947objdir=$lt_cv_objdir
4948
4949
4950
4951
4952
4953cat >>confdefs.h <<_ACEOF
4954#define LT_OBJDIR "$lt_cv_objdir/"
4955_ACEOF
4956
4957
4958
e8a5fa9c 4959# Check for GMP, MPFR and MPC
d9b76ff9 4960gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 4961gmpinc=
4b900473 4962have_gmp=no
e8a5fa9c
RW
4963
4964# Specify a location for mpc
4965# check for this first so it ends up on the link line before mpfr.
4966
81ecdfbb
RW
4967# Check whether --with-mpc was given.
4968if test "${with_mpc+set}" = set; then :
4969 withval=$with_mpc;
4970fi
e8a5fa9c 4971
e8a5fa9c 4972
e552509b 4973# Check whether --with-mpc-include was given.
81ecdfbb
RW
4974if test "${with_mpc_include+set}" = set; then :
4975 withval=$with_mpc_include;
4976fi
e8a5fa9c 4977
e8a5fa9c 4978
e552509b 4979# Check whether --with-mpc-lib was given.
81ecdfbb
RW
4980if test "${with_mpc_lib+set}" = set; then :
4981 withval=$with_mpc_lib;
4982fi
e8a5fa9c 4983
e8a5fa9c
RW
4984
4985if test "x$with_mpc" != x; then
d9b76ff9
KG
4986 gmplibs="-L$with_mpc/lib $gmplibs"
4987 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
4988fi
4989if test "x$with_mpc_include" != x; then
d9b76ff9 4990 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
4991fi
4992if test "x$with_mpc_lib" != x; then
d9b76ff9 4993 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
4994fi
4995if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 4996 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 4997 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
4998 # Do not test the mpc version. Assume that it is sufficient, since
4999 # it is in the source tree, and the library has not been built yet
5000 # but it would be included on the link line in the version check below
5001 # hence making the test fail.
d9b76ff9 5002 have_gmp=yes
e8a5fa9c 5003fi
4b900473 5004
11b04d1f
DD
5005# Specify a location for mpfr
5006# check for this first so it ends up on the link line before gmp.
c6b750e1 5007
81ecdfbb
RW
5008# Check whether --with-mpfr-dir was given.
5009if test "${with_mpfr_dir+set}" = set; then :
5010 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5011Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5012fi
5013
11b04d1f
DD
5014
5015
81ecdfbb
RW
5016# Check whether --with-mpfr was given.
5017if test "${with_mpfr+set}" = set; then :
5018 withval=$with_mpfr;
5019fi
c6b750e1 5020
11b04d1f 5021
e552509b 5022# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5023if test "${with_mpfr_include+set}" = set; then :
5024 withval=$with_mpfr_include;
5025fi
c6b750e1 5026
8a0d8a5c 5027
e552509b 5028# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5029if test "${with_mpfr_lib+set}" = set; then :
5030 withval=$with_mpfr_lib;
5031fi
8a0d8a5c 5032
11b04d1f
DD
5033
5034if test "x$with_mpfr" != x; then
5035 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5036 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5037fi
8a0d8a5c 5038if test "x$with_mpfr_include" != x; then
d9b76ff9 5039 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5040fi
5041if test "x$with_mpfr_lib" != x; then
5042 gmplibs="-L$with_mpfr_lib $gmplibs"
5043fi
4b900473 5044if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5045 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5046 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5047 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5048 # Do not test the mpfr version. Assume that it is sufficient, since
5049 # it is in the source tree, and the library has not been built yet
5050 # but it would be included on the link line in the version check below
5051 # hence making the test fail.
5052 have_gmp=yes
5053fi
11b04d1f 5054
4b1cb4fe 5055# Specify a location for gmp
c6b750e1 5056
81ecdfbb
RW
5057# Check whether --with-gmp-dir was given.
5058if test "${with_gmp_dir+set}" = set; then :
5059 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5060Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5061fi
5062
4b1cb4fe
DD
5063
5064
81ecdfbb
RW
5065# Check whether --with-gmp was given.
5066if test "${with_gmp+set}" = set; then :
5067 withval=$with_gmp;
5068fi
c6b750e1 5069
4b1cb4fe 5070
e552509b 5071# Check whether --with-gmp-include was given.
81ecdfbb
RW
5072if test "${with_gmp_include+set}" = set; then :
5073 withval=$with_gmp_include;
5074fi
c6b750e1 5075
8a0d8a5c 5076
e552509b 5077# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5078if test "${with_gmp_lib+set}" = set; then :
5079 withval=$with_gmp_lib;
5080fi
8a0d8a5c
PB
5081
5082
4b1cb4fe 5083
11b04d1f
DD
5084if test "x$with_gmp" != x; then
5085 gmplibs="-L$with_gmp/lib $gmplibs"
5086 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5087fi
8a0d8a5c
PB
5088if test "x$with_gmp_include" != x; then
5089 gmpinc="-I$with_gmp_include $gmpinc"
5090fi
5091if test "x$with_gmp_lib" != x; then
5092 gmplibs="-L$with_gmp_lib $gmplibs"
5093fi
4b900473 5094if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5095 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5096 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5097 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5098 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5099 # Do not test the gmp version. Assume that it is sufficient, since
5100 # it is in the source tree, and the library has not been built yet
5101 # but it would be included on the link line in the version check below
5102 # hence making the test fail.
5103 have_gmp=yes
5104fi
4b1cb4fe 5105
ceb92e78 5106if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5107 have_gmp=yes
5108 saved_CFLAGS="$CFLAGS"
5109 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5110 # Check for the recommended and required versions of GMP.
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5112$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5113
5114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5115/* end confdefs.h. */
5116#include "gmp.h"
5117int
5118main ()
5119{
5120
5121 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5122 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5123 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5124 choke me
5125 #endif
5126
5127 ;
5128 return 0;
5129}
5130_ACEOF
5131if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5133/* end confdefs.h. */
a6b5846e 5134#include <gmp.h>
c6b750e1
DJ
5135int
5136main ()
5137{
4b1cb4fe 5138
a6b5846e
KG
5139 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5140 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5141 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5142 choke me
5143 #endif
c6b750e1
DJ
5144
5145 ;
5146 return 0;
5147}
5148_ACEOF
81ecdfbb
RW
5149if ac_fn_c_try_compile "$LINENO"; then :
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5151$as_echo "yes" >&6; }
a6b5846e
KG
5152else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5154$as_echo "buggy but acceptable" >&6; }
5155fi
5156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5157else
81ecdfbb
RW
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5160fi
81ecdfbb 5161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5162
e8a5fa9c 5163 # If we have GMP, check the MPFR version.
4b900473 5164 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5165 # Check for the recommended and required versions of MPFR.
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5167$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5169/* end confdefs.h. */
9b134994 5170#include <gmp.h>
4b900473 5171 #include <mpfr.h>
c6b750e1
DJ
5172int
5173main ()
5174{
9b134994 5175
ef699244 5176 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5177 choke me
5178 #endif
c6b750e1
DJ
5179
5180 ;
5181 return 0;
5182}
5183_ACEOF
81ecdfbb
RW
5184if ac_fn_c_try_compile "$LINENO"; then :
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5186/* end confdefs.h. */
4b1cb4fe 5187#include <gmp.h>
4b900473 5188 #include <mpfr.h>
c6b750e1
DJ
5189int
5190main ()
5191{
9dbaa842 5192
a6b5846e 5193 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5194 choke me
5195 #endif
e8a5fa9c
RW
5196
5197 ;
5198 return 0;
5199}
5200_ACEOF
81ecdfbb
RW
5201if ac_fn_c_try_compile "$LINENO"; then :
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5203$as_echo "yes" >&6; }
e8a5fa9c 5204else
81ecdfbb
RW
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5206$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5207fi
81ecdfbb 5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5209else
81ecdfbb
RW
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5212fi
81ecdfbb 5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5214 fi
5215
5216 # Check for the MPC header version.
d9b76ff9 5217 if test x"$have_gmp" = xyes ; then
a6b5846e 5218 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5220$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5222/* end confdefs.h. */
5223#include <mpc.h>
5224int
5225main ()
5226{
5227
a6b5846e
KG
5228 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5229 choke me
5230 #endif
5231
5232 ;
5233 return 0;
5234}
5235_ACEOF
5236if ac_fn_c_try_compile "$LINENO"; then :
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h. */
5239#include <mpc.h>
5240int
5241main ()
5242{
5243
5244 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5245 choke me
5246 #endif
5247
5248 ;
5249 return 0;
5250}
5251_ACEOF
81ecdfbb
RW
5252if ac_fn_c_try_compile "$LINENO"; then :
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5254$as_echo "yes" >&6; }
a6b5846e
KG
5255else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5257$as_echo "buggy but acceptable" >&6; }
5258fi
5259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5260else
81ecdfbb 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5262$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5263fi
81ecdfbb 5264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5265 fi
5266
5267 # Now check the MPFR library.
5268 if test x"$have_gmp" = xyes; then
5269 saved_LIBS="$LIBS"
5270 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5272$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5274/* end confdefs.h. */
d9b76ff9 5275#include <mpc.h>
e8a5fa9c
RW
5276int
5277main ()
5278{
5279
5280 mpfr_t n;
5281 mpfr_t x;
d9b76ff9 5282 mpc_t c;
e8a5fa9c
RW
5283 int t;
5284 mpfr_init (n);
5285 mpfr_init (x);
5286 mpfr_atan2 (n, n, x, GMP_RNDN);
5287 mpfr_erfc (n, x, GMP_RNDN);
5288 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5289 mpfr_clear(n);
5290 mpfr_clear(x);
5291 mpc_init2 (c, 53);
5292 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5293 mpc_cosh (c, c, MPC_RNDNN);
5294 mpc_pow (c, c, c, MPC_RNDNN);
5295 mpc_acosh (c, c, MPC_RNDNN);
5296 mpc_clear (c);
c6b750e1
DJ
5297
5298 ;
5299 return 0;
5300}
5301_ACEOF
81ecdfbb
RW
5302if ac_fn_c_try_link "$LINENO"; then :
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5304$as_echo "yes" >&6; }
c6b750e1 5305else
81ecdfbb
RW
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5308fi
81ecdfbb
RW
5309rm -f core conftest.err conftest.$ac_objext \
5310 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5311 LIBS="$saved_LIBS"
5312 fi
5313
4b900473 5314 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5315
a6b5846e
KG
5316# The library versions listed in the error message below should match
5317# the HARD-minimums enforced above.
4b900473 5318 if test x$have_gmp != xyes; then
a6b5846e 5319 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5320Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5321their locations. Source code for these libraries can be found at
5322their respective hosting sites as well as at
5323ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5324http://gcc.gnu.org/install/prerequisites.html for additional info. If
5325you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5326make sure that you have installed both the libraries and the header
5327files. They may be located in separate packages." "$LINENO" 5
4b900473 5328 fi
9dbaa842
DD
5329fi
5330
e8a5fa9c
RW
5331# Flags needed for both GMP, MPFR and/or MPC.
5332
5333
5334
4b1cb4fe
DD
5335
5336
5337
29383458
JM
5338# Allow host libstdc++ to be specified for static linking with PPL.
5339
81ecdfbb
RW
5340# Check whether --with-host-libstdcxx was given.
5341if test "${with_host_libstdcxx+set}" = set; then :
5342 withval=$with_host_libstdcxx;
5343fi
29383458 5344
29383458
JM
5345
5346case $with_host_libstdcxx in
5347 no|yes)
81ecdfbb 5348 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5349 ;;
5350esac
e28c595f 5351
e8a5fa9c
RW
5352# Linker flags to use for stage1 or when not boostrapping.
5353
81ecdfbb
RW
5354# Check whether --with-stage1-ldflags was given.
5355if test "${with_stage1_ldflags+set}" = set; then :
5356 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5357 stage1_ldflags=
5358 else
5359 stage1_ldflags=$withval
5360 fi
5361else
5362 stage1_ldflags=
81ecdfbb
RW
5363fi
5364
e8a5fa9c
RW
5365
5366
5367# Libraries to use for stage1 or when not bootstrapping.
5368
81ecdfbb
RW
5369# Check whether --with-stage1-libs was given.
5370if test "${with_stage1_libs+set}" = set; then :
5371 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5372 stage1_libs=
5373 else
5374 stage1_libs=$withval
5375 fi
5376else
5377 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5378fi
5379
e8a5fa9c
RW
5380
5381
e8a5fa9c
RW
5382# Libraries to use for stage2 and later builds. This defaults to the
5383# argument passed to --with-host-libstdcxx.
5384
81ecdfbb
RW
5385# Check whether --with-boot-libs was given.
5386if test "${with_boot_libs+set}" = set; then :
5387 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5388 poststage1_libs=
5389 else
5390 poststage1_libs=$withval
5391 fi
5392else
5393 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5394fi
5395
e8a5fa9c
RW
5396
5397
143754cd
NC
5398# Linker flags to use for stage2 and later builds.
5399
5400# Check whether --with-boot-ldflags was given.
5401if test "${with_boot_ldflags+set}" = set; then :
5402 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5403 poststage1_ldflags=
5404 else
5405 poststage1_ldflags=$withval
5406 fi
5407else
5408 poststage1_ldflags=
4f11b223
ILT
5409 # In stages 2 and 3, default to linking libstdc++ and libgcc
5410 # statically. But if the user explicitly specified the libraries to
5411 # use, trust that they are doing what they want.
5412 if test "$poststage1_libs" = ""; then
143754cd
NC
5413 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5414 fi
5415fi
5416
5417
5418
e28c595f 5419# Check for PPL
b123da99 5420ppllibs=
e28c595f 5421pplinc=
b123da99 5422pwllib=
e28c595f
JM
5423
5424
81ecdfbb
RW
5425# Check whether --with-ppl was given.
5426if test "${with_ppl+set}" = set; then :
5427 withval=$with_ppl;
81ecdfbb 5428fi
e28c595f 5429
e28c595f 5430
e552509b 5431# Check whether --with-ppl-include was given.
81ecdfbb
RW
5432if test "${with_ppl_include+set}" = set; then :
5433 withval=$with_ppl_include;
5434fi
5435
e28c595f 5436
e552509b 5437# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5438if test "${with_ppl_lib+set}" = set; then :
5439 withval=$with_ppl_lib;
5440fi
e28c595f 5441
e28c595f 5442
b123da99
SP
5443# Check whether --enable-ppl-version-check was given.
5444if test "${enable_ppl_version_check+set}" = set; then :
5445 enableval=$enable_ppl_version_check;
5446fi
5447
5448
29383458 5449case $with_ppl in
b123da99 5450 yes | no | "")
1f53ca9a 5451 ;;
29383458 5452 *)
b123da99 5453 ppllibs="-L$with_ppl/lib"
29383458 5454 pplinc="-I$with_ppl/include $pplinc"
b123da99
SP
5455 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5456 with_ppl=yes
5457 else
5458 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5459 fi
29383458
JM
5460 ;;
5461esac
b123da99
SP
5462
5463if test x"$with_ppl_include" != x; then
e28c595f 5464 pplinc="-I$with_ppl_include $pplinc"
b123da99 5465 with_ppl=yes
e28c595f 5466fi
b123da99 5467
e28c595f 5468if test "x$with_ppl_lib" != x; then
b123da99
SP
5469 ppllibs="-L$with_ppl_lib"
5470 with_ppl=yes
e28c595f 5471fi
b123da99
SP
5472
5473if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5474 if test x"$enable_watchdog" = xyes; then
5475 pwllib="-lpwl"
5476 fi
5477 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
1f53ca9a
AO
5478 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5479 enable_ppl_version_check=no
b123da99 5480 with_ppl=yes
e28c595f
JM
5481fi
5482
86ed8cf6 5483if test "x$with_ppl" != xno; then
b123da99 5484 if test "x$pwllib" = x; then
0e8ad34f
RO
5485 saved_LIBS="$LIBS"
5486 LIBS="$LIBS $ppllibs -lstdc++ -lm"
b123da99
SP
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5488$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5489if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491else
5492 ac_check_lib_save_LIBS=$LIBS
5493LIBS="-lpwl $LIBS"
5494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h. */
5496
5497/* Override any GCC internal prototype to avoid an error.
5498 Use char because int might match the return type of a GCC
5499 builtin and then its argument prototype would still apply. */
5500#ifdef __cplusplus
5501extern "C"
5502#endif
5503char PWL_handle_timeout ();
5504int
5505main ()
5506{
5507return PWL_handle_timeout ();
5508 ;
5509 return 0;
5510}
5511_ACEOF
5512if ac_fn_c_try_link "$LINENO"; then :
5513 ac_cv_lib_pwl_PWL_handle_timeout=yes
e28c595f 5514else
b123da99
SP
5515 ac_cv_lib_pwl_PWL_handle_timeout=no
5516fi
5517rm -f core conftest.err conftest.$ac_objext \
5518 conftest$ac_exeext conftest.$ac_ext
5519LIBS=$ac_check_lib_save_LIBS
5520fi
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5522$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5523if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5524 pwllib="-lpwl"
81ecdfbb
RW
5525fi
5526
0e8ad34f 5527 LIBS="$saved_LIBS"
b123da99 5528 fi
e28c595f 5529
b123da99
SP
5530 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5531
5532 if test "$enable_ppl_version_check" != no; then
5533 saved_CFLAGS="$CFLAGS"
5534 CFLAGS="$CFLAGS $pplinc $gmpinc"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5536$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5538/* end confdefs.h. */
5539#include "ppl_c.h"
5540int
5541main ()
5542{
5543
b123da99
SP
5544 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5545 choke me
5546 #endif
e28c595f
JM
5547
5548 ;
5549 return 0;
5550}
5551_ACEOF
81ecdfbb
RW
5552if ac_fn_c_try_compile "$LINENO"; then :
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5554$as_echo "yes" >&6; }
e28c595f 5555else
81ecdfbb 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5557$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5558fi
81ecdfbb 5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b123da99
SP
5560 CFLAGS="$saved_CFLAGS"
5561 fi
e28c595f
JM
5562fi
5563
5564# Flags needed for PPL
5565
5566
5567
5568
5569# Check for CLOOG
e552509b 5570
e28c595f
JM
5571
5572
81ecdfbb
RW
5573# Check whether --with-cloog was given.
5574if test "${with_cloog+set}" = set; then :
5575 withval=$with_cloog;
81ecdfbb
RW
5576fi
5577
e28c595f 5578
e552509b 5579# Check whether --with-cloog-include was given.
81ecdfbb
RW
5580if test "${with_cloog_include+set}" = set; then :
5581 withval=$with_cloog_include;
5582fi
e28c595f 5583
e28c595f 5584
e552509b 5585# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5586if test "${with_cloog_lib+set}" = set; then :
5587 withval=$with_cloog_lib;
5588fi
e28c595f 5589
e28c595f 5590
e552509b
ILT
5591 # Check whether --enable-cloog-backend was given.
5592if test "${enable_cloog_backend+set}" = set; then :
5593 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5594 cloog_backend=isl
5595 elif test "x${enableval}" = "xppl"; then
5596 cloog_backend=ppl
5597 else
5598 cloog_backend=ppl-legacy
5599 fi
5600else
5601 cloog_backend=ppl-legacy
5602fi
5603
5604 # Check whether --enable-cloog-version-check was given.
5605if test "${enable_cloog_version_check+set}" = set; then :
5606 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5607else
5608 ENABLE_CLOOG_CHECK=yes
5609fi
5610
5611
5612 # Initialize clooglibs and clooginc.
5613 case $with_cloog in
5614 no)
5615 clooglibs=
5616 clooginc=
5617 ;;
5618 "" | yes)
5619 ;;
5620 *)
5621 clooglibs="-L$with_cloog/lib"
5622 clooginc="-I$with_cloog/include"
5623 ;;
5624 esac
5625 if test "x${with_cloog_include}" != x ; then
5626 clooginc="-I$with_cloog_include"
5627 fi
5628 if test "x${with_cloog_lib}" != x; then
5629 clooglibs="-L$with_cloog_lib"
5630 fi
5631
5632
5633
5634
5635
1f53ca9a 5636if test "x$with_ppl" = "xno"; then
8d8eef9a
RW
5637
5638
5639
5640 if test "x${with_cloog}" = xno; then
5641 graphite_requested=no
5642 elif test "x${with_cloog}" != x \
5643 || test "x${with_cloog_include}" != x \
5644 || test "x${with_cloog_lib}" != x ; then
5645 graphite_requested=yes
5646 else
5647 graphite_requested=no
5648 fi
5649
5650
5651 if test "${graphite_requested}" = yes; then
5652 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5653 fi
1f53ca9a
AO
5654 with_cloog=no
5655fi
e552509b
ILT
5656if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5657 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5658 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5659 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5660fi
5661if test "x$with_cloog" != "xno"; then
1f53ca9a 5662
e552509b
ILT
5663
5664
5665 _cloog_saved_CFLAGS=$CFLAGS
5666 _cloog_saved_CPPFLAGS=$CPPFLAGS
5667 _cloog_saved_LDFLAGS=$LDFLAGS
5668 _cloog_saved_LIBS=$LIBS
5669
5670 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5671
5672 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5673 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5674 LDFLAGS="${LDFLAGS} ${clooglibs}"
5675
5676 case $cloog_backend in
5677 "ppl-legacy")
5678 CFLAGS="${CFLAGS} ${pplinc}"
5679 LDFLAGS="${LDFLAGS} ${ppllibs}"
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5681$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5682if test "${gcc_cv_cloog_type+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
5684else
5685 LIBS="-lcloog ${_cloog_saved_LIBS}"
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h. */
5688#include "cloog/cloog.h"
5689int
5690main ()
5691{
5692#ifndef CLOOG_PPL_BACKEND
5693 choke me
5694 #endif
5695 ;
5696 return 0;
5697}
5698_ACEOF
5699if ac_fn_c_try_link "$LINENO"; then :
5700 gcc_cv_cloog_type="PPL Legacy"
5701else
5702 gcc_cv_cloog_type=no
5703fi
5704rm -f core conftest.err conftest.$ac_objext \
5705 conftest$ac_exeext conftest.$ac_ext
e28c595f 5706fi
e552509b
ILT
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5708$as_echo "$gcc_cv_cloog_type" >&6; }
5709 ;;
5710 "isl")
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5712$as_echo_n "checking for installed CLooG ISL... " >&6; }
5713if test "${gcc_cv_cloog_type+set}" = set; then :
5714 $as_echo_n "(cached) " >&6
5715else
5716 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h. */
5719#include "cloog/cloog.h"
5720int
5721main ()
5722{
5723cloog_version ()
5724 ;
5725 return 0;
5726}
5727_ACEOF
5728if ac_fn_c_try_link "$LINENO"; then :
5729 gcc_cv_cloog_type="ISL"
5730else
5731 gcc_cv_cloog_type=no
e28c595f 5732fi
e552509b
ILT
5733rm -f core conftest.err conftest.$ac_objext \
5734 conftest$ac_exeext conftest.$ac_ext
e28c595f 5735fi
e552509b
ILT
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5737$as_echo "$gcc_cv_cloog_type" >&6; }
5738 ;;
5739 "ppl")
5740 CFLAGS="${CFLAGS} ${pplinc}"
5741 LDFLAGS="${LDFLAGS} ${ppllibs}"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5743$as_echo_n "checking for installed CLooG PPL... " >&6; }
5744if test "${gcc_cv_cloog_type+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
e28c595f 5746else
e552509b
ILT
5747 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749/* end confdefs.h. */
5750#include "cloog/cloog.h"
5751 #include "cloog/ppl/cloog.h"
5752int
5753main ()
5754{
5755cloog_version ()
5756 ;
5757 return 0;
5758}
5759_ACEOF
5760if ac_fn_c_try_link "$LINENO"; then :
5761 gcc_cv_cloog_type="PPL"
5762else
5763 gcc_cv_cloog_type=no
81ecdfbb 5764fi
e552509b
ILT
5765rm -f core conftest.err conftest.$ac_objext \
5766 conftest$ac_exeext conftest.$ac_ext
5767fi
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5769$as_echo "$gcc_cv_cloog_type" >&6; }
5770 ;;
5771 *)
5772 gcc_cv_cloog_type=""
5773 esac
5774
5775 case $gcc_cv_cloog_type in
5776 "PPL Legacy")
5777 clooginc="${clooginc}"
5778 clooglibs="${clooglibs} -lcloog"
5779 cloog_org=no
5780 ;;
5781 "ISL")
5782 clooginc="${clooginc} ${_cloogorginc}"
b123da99 5783 clooglibs="${clooglibs} -lcloog-isl -lisl"
e552509b
ILT
5784 cloog_org=yes
5785 ;;
5786 "PPL")
5787 clooginc="${clooginc} ${_cloogorginc}"
5788 clooglibs="${clooglibs} -lcloog-ppl"
5789 cloog_org=yes
5790 ;;
5791 *)
5792 clooglibs=
5793 clooginc=
5794 cloog_org=
5795 ;;
5796 esac
81ecdfbb 5797
e552509b
ILT
5798 LIBS=$_cloog_saved_LIBS
5799 CFLAGS=$_cloog_saved_CFLAGS
5800 CPPFLAGS=$_cloog_saved_CPPFLAGS
5801 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5802
e552509b
ILT
5803
5804
5805
5806
5807 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5808 _cloog_saved_CFLAGS=$CFLAGS
5809 _cloog_saved_LDFLAGS=$LDFLAGS
5810
5811 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5812 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5813
5814 if test "${cloog_org}" = yes ; then
8d8eef9a
RW
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5816$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
e552509b
ILT
5817if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819else
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h. */
5822#include "cloog/cloog.h"
5823int
5824main ()
5825{
5826#if CLOOG_VERSION_MAJOR != 0 \
8d8eef9a
RW
5827 || CLOOG_VERSION_MINOR != 16 \
5828 || CLOOG_VERSION_REVISION < 1
e552509b
ILT
5829 choke me
5830 #endif
5831 ;
5832 return 0;
5833}
5834_ACEOF
5835if ac_fn_c_try_compile "$LINENO"; then :
5836 gcc_cv_cloog_ct_0_14_0=yes
5837else
5838 gcc_cv_cloog_ct_0_14_0=no
5839fi
5840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841fi
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5843$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5844 elif test "${cloog_org}" = no ; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 5846$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
5847if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849else
81ecdfbb 5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5851/* end confdefs.h. */
5852#include "cloog/cloog.h"
5853int
5854main ()
5855{
e552509b
ILT
5856#if CLOOG_VERSION_MAJOR != 0 \
5857 || CLOOG_VERSION_MINOR != 15 \
5858 || CLOOG_VERSION_REVISION < 5
5859 choke me
5860 #endif
e28c595f
JM
5861 ;
5862 return 0;
5863}
5864_ACEOF
a009f2e7
RW
5865if ac_fn_c_try_compile "$LINENO"; then :
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867/* end confdefs.h. */
5868#include "cloog/cloog.h"
5869int
5870main ()
5871{
e552509b
ILT
5872#if CLOOG_VERSION_MAJOR != 0 \
5873 || CLOOG_VERSION_MINOR != 15 \
5874 || CLOOG_VERSION_REVISION < 9
5875 choke me
5876 #endif
a009f2e7
RW
5877 ;
5878 return 0;
5879}
5880_ACEOF
81ecdfbb 5881if ac_fn_c_try_compile "$LINENO"; then :
e552509b 5882 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 5883else
e552509b 5884 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
5885fi
5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5887else
e552509b 5888 gcc_cv_cloog_ct_0_15_5=no
e28c595f 5889fi
81ecdfbb 5890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5891fi
e552509b
ILT
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5893$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5894 fi
5895
5896 CFLAGS=$_cloog_saved_CFLAGS
5897 LDFLAGS=$_cloog_saved_LDFLAGS
5898 fi
5899
5900
5901
e28c595f 5902
e28c595f
JM
5903
5904
5905
8d8eef9a
RW
5906 if test "x${with_cloog}" = xno; then
5907 graphite_requested=no
5908 elif test "x${with_cloog}" != x \
e552509b
ILT
5909 || test "x${with_cloog_include}" != x \
5910 || test "x${with_cloog_lib}" != x ; then
5911 graphite_requested=yes
5912 else
5913 graphite_requested=no
5914 fi
5915
5916
5917
5918 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5919 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5920 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5921 clooglibs=
5922 clooginc=
5923 fi
5924
5925 if test "${graphite_requested}" = yes \
5926 && test "x${clooglibs}" = x \
5927 && test "x${clooginc}" = x ; then
5928
8d8eef9a 5929 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
5930 fi
5931
5932
5933fi
5934
700d40ca
ILT
5935# Check for LTO support.
5936# Check whether --enable-lto was given.
5937if test "${enable_lto+set}" = set; then :
5938 enableval=$enable_lto; enable_lto=$enableval
5939else
5940 enable_lto=yes; default_enable_lto=yes
5941fi
5942
5943
143754cd 5944
e49e5c92
DK
5945
5946
5947target_elf=no
5948case $target in
5949 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5950 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 5951 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
5952 target_elf=no
5953 ;;
5954 *)
5955 target_elf=yes
5956 ;;
5957esac
5958
5959if test $target_elf = yes; then :
74cea91b
DK
5960 # ELF platforms build the lto-plugin always.
5961 build_lto_plugin=yes
e49e5c92 5962
e49e5c92
DK
5963else
5964 if test x"$default_enable_lto" = x"yes" ; then
29821356 5965 case $target in
dbbe5f95 5966 *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
74cea91b 5967 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
5968 *) enable_lto=no ;;
5969 esac
e49e5c92 5970 else
29821356
RW
5971 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5972 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
5973 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5974 # warn during gcc/ subconfigure; unless you're bootstrapping with
5975 # -flto it won't be needed until after installation anyway.
5976 case $target in
a8eb3f0a 5977 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
5978 *) if test x"$enable_lto" = x"yes"; then
5979 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5980 fi
5981 ;;
5982 esac
5983 fi
a8eb3f0a 5984 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 5985 # Build it unless LTO was explicitly disabled.
a8eb3f0a 5986 case $target in
74cea91b 5987 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
5988 *) ;;
5989 esac
74cea91b 5990
e49e5c92
DK
5991fi
5992
700d40ca 5993
e28c595f 5994
947f426e 5995# By default, C is the only stage 1 language.
9b134994 5996stage1_languages=,c,
1d39f329 5997
e8a5fa9c 5998# Target libraries that we bootstrap.
2aa2364a 5999bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6000
9e07f89d
NN
6001# Figure out what language subdirectories are present.
6002# Look if the user specified --enable-languages="..."; if not, use
6003# the environment variable $LANGUAGES if defined. $LANGUAGES might
6004# go away some day.
6005# NB: embedded tabs in this IF block -- do not untabify
6006if test -d ${srcdir}/gcc; then
6007 if test x"${enable_languages+set}" != xset; then
6008 if test x"${LANGUAGES+set}" = xset; then
6009 enable_languages="${LANGUAGES}"
6010 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6011 else
6012 enable_languages=all
6013 fi
6014 else
6015 if test x"${enable_languages}" = x ||
6016 test x"${enable_languages}" = xyes;
6017 then
6018 echo configure.in: --enable-languages needs at least one language argument 1>&2
6019 exit 1
6020 fi
6021 fi
6022 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6023
096f7d00
DE
6024 # 'f95' is the old name for the 'fortran' language. We issue a warning
6025 # and make the substitution.
6026 case ,${enable_languages}, in
6027 *,f95,*)
6028 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6029 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6030 ;;
6031 esac
6032
9e07f89d
NN
6033 # First scan to see if an enabled language requires some other language.
6034 # We assume that a given config-lang.in will list all the language
6035 # front ends it requires, even if some are required indirectly.
6036 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6037 case ${lang_frag} in
6038 ..) ;;
6039 # The odd quoting in the next line works around
6040 # an apparent bug in bash 1.12 on linux.
6041 ${srcdir}/gcc/[*]/config-lang.in) ;;
6042 *)
e552509b
ILT
6043 # From the config-lang.in, get $language, $lang_requires, and
6044 # $lang_requires_boot_languages.
9e07f89d
NN
6045 language=
6046 lang_requires=
e552509b 6047 lang_requires_boot_languages=
9e07f89d 6048 . ${lang_frag}
e552509b 6049 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6050 case ,${enable_languages}, in
6051 *,$other,*) ;;
6052 *,all,*) ;;
6053 *,$language,*)
6054 echo " \`$other' language required by \`$language'; enabling" 1>&2
6055 enable_languages="${enable_languages},${other}"
6056 ;;
6057 esac
6058 done
e552509b
ILT
6059 for other in ${lang_requires_boot_languages} ; do
6060 if test "$other" != "c"; then
6061 case ,${enable_stage1_languages}, in
6062 *,$other,*) ;;
6063 *,all,*) ;;
6064 *)
6065 case ,${enable_languages}, in
6066 *,$language,*)
6067 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6068 enable_stage1_languages="$enable_stage1_languages,${other}"
6069 ;;
6070 esac
6071 ;;
6072 esac
6073 fi
6074 done
9e07f89d
NN
6075 ;;
6076 esac
6077 done
6078
9b134994 6079 new_enable_languages=,c,
700d40ca
ILT
6080
6081 # If LTO is enabled, add the LTO front end.
6082 extra_host_libiberty_configure_flags=
6083 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6084 case ,${enable_languages}, in
6085 *,lto,*) ;;
6086 *) enable_languages="${enable_languages},lto" ;;
6087 esac
a8eb3f0a 6088 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6089 configdirs="$configdirs lto-plugin"
6090 extra_host_libiberty_configure_flags=--enable-shared
6091 fi
6092 fi
6093
6094
9e07f89d 6095 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6096 potential_languages=,c,
9e07f89d 6097
9e1a94f4
ILT
6098 enabled_target_libs=
6099 disabled_target_libs=
6100
9e07f89d
NN
6101 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6102 case ${lang_frag} in
6103 ..) ;;
6104 # The odd quoting in the next line works around
6105 # an apparent bug in bash 1.12 on linux.
6106 ${srcdir}/gcc/[*]/config-lang.in) ;;
6107 *)
c6b750e1 6108 # From the config-lang.in, get $language, $target_libs,
1d39f329 6109 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6110 language=
6111 target_libs=
6112 lang_dirs=
64ce424c 6113 subdir_requires=
9b134994
PB
6114 boot_language=no
6115 build_by_default=yes
9e07f89d 6116 . ${lang_frag}
9b134994
PB
6117 if test x${language} = x; then
6118 echo "${lang_frag} doesn't set \$language." 1>&2
6119 exit 1
6120 fi
6121
1f53ca9a
AO
6122 if test "$language" = "c++" \
6123 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6124 boot_language=yes
6125 fi
6126
9b134994
PB
6127 case ,${enable_languages}, in
6128 *,${language},*)
9e07f89d
NN
6129 # Language was explicitly selected; include it.
6130 add_this_lang=yes
6131 ;;
9b134994
PB
6132 *,all,*)
6133 # 'all' was selected, select it if it is a default language
6134 add_this_lang=${build_by_default}
9e07f89d
NN
6135 ;;
6136 *)
6137 add_this_lang=no
6138 ;;
6139 esac
4b1cb4fe 6140
64ce424c 6141 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6142 for i in $subdir_requires; do
3d3adb43 6143 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6144 case ,${enable_languages}, in
6145 *,${language},*)
6146 # Specifically requested language; tell them.
81ecdfbb 6147 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6148 ;;
6149 *)
6150 # Silently disable.
9b134994 6151 add_this_lang=unsupported
64ce424c
PB
6152 ;;
6153 esac
6154 done
6155
9b134994
PB
6156 # Disable Ada if no preexisting GNAT is available.
6157 case ,${enable_languages},:${language}:${have_gnat} in
6158 *,${language},*:ada:no)
6159 # Specifically requested language; tell them.
81ecdfbb 6160 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6161 ;;
6162 *:ada:no)
6163 # Silently disable.
6164 add_this_lang=unsupported
6165 ;;
6166 esac
6167
59f7ec45
HPN
6168 # Disable a language that is unsupported by the target.
6169 case " $unsupported_languages " in
6170 *" $language "*)
9b134994 6171 add_this_lang=unsupported
59f7ec45
HPN
6172 ;;
6173 esac
6174
4b1cb4fe 6175 case $add_this_lang in
9b134994 6176 unsupported)
9e07f89d 6177 # Remove language-dependent dirs.
9e1a94f4
ILT
6178 disabled_target_libs="$disabled_target_libs $target_libs"
6179 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6180 ;;
9b134994
PB
6181 no)
6182 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6183 disabled_target_libs="$disabled_target_libs $target_libs"
6184 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6185 potential_languages="${potential_languages}${language},"
6186 ;;
6187 yes)
6188 new_enable_languages="${new_enable_languages}${language},"
6189 potential_languages="${potential_languages}${language},"
1d39f329 6190 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6191 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6192 case "${boot_language}:,$enable_stage1_languages," in
6193 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6194 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6195 case ",$stage1_languages," in
6196 *,$language,* | ,yes, | ,all,) ;;
6197 *) stage1_languages="${stage1_languages}${language}," ;;
6198 esac
e8a5fa9c
RW
6199 # We need to bootstrap any supporting libraries.
6200 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6201 ;;
6202 esac
6203 ;;
9e07f89d
NN
6204 esac
6205 ;;
6206 esac
6207 done
6208
9e1a94f4
ILT
6209 # Add target libraries which are only needed for disabled languages
6210 # to noconfigdirs.
6211 if test -n "$disabled_target_libs"; then
6212 for dir in $disabled_target_libs; do
6213 case " $enabled_target_libs " in
6214 *" ${dir} "*) ;;
6215 *) noconfigdirs="$noconfigdirs $dir" ;;
6216 esac
6217 done
6218 fi
6219
81ecdfbb
RW
6220 # Check whether --enable-stage1-languages was given.
6221if test "${enable_stage1_languages+set}" = set; then :
6222 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6223 ,no,|,,)
6224 # Set it to something that will have no effect in the loop below
6225 enable_stage1_languages=c ;;
6226 ,yes,)
6227 enable_stage1_languages=`echo $new_enable_languages | \
6228 sed -e "s/^,//" -e "s/,$//" ` ;;
6229 *,all,*)
6230 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6231 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6232 esac
6233
6234 # Add "good" languages from enable_stage1_languages to stage1_languages,
6235 # while "bad" languages go in missing_languages. Leave no duplicates.
6236 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6237 case $potential_languages in
6238 *,$i,*)
6239 case $stage1_languages in
6240 *,$i,*) ;;
6241 *) stage1_languages="$stage1_languages$i," ;;
6242 esac ;;
6243 *)
6244 case $missing_languages in
6245 *,$i,*) ;;
6246 *) missing_languages="$missing_languages$i," ;;
6247 esac ;;
6248 esac
6249 done
81ecdfbb
RW
6250fi
6251
9b134994
PB
6252
6253 # Remove leading/trailing commas that were added for simplicity
6254 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6255 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6256 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6257 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6258
9e07f89d 6259 if test "x$missing_languages" != x; then
81ecdfbb 6260 as_fn_error "
27258dd4 6261The following requested languages could not be built: ${missing_languages}
81ecdfbb 6262Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6263 fi
9e07f89d
NN
6264 if test "x$new_enable_languages" != "x$enable_languages"; then
6265 echo The following languages will be built: ${new_enable_languages}
9b134994 6266 enable_languages="$new_enable_languages"
9e07f89d 6267 fi
9b134994 6268
c6b750e1 6269
81ec575a 6270 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6271fi
6272
a6df5a19
PB
6273# Handle --disable-<component> generically.
6274for dir in $configdirs $build_configdirs $target_configdirs ; do
6275 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6276 varname=`echo $dirname | sed -e s/+/_/g`
6277 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6278 noconfigdirs="$noconfigdirs $dir"
6279 fi
6280done
6281
4f0ef2d8 6282# Check for Boehm's garbage collector
81ecdfbb
RW
6283# Check whether --enable-objc-gc was given.
6284if test "${enable_objc_gc+set}" = set; then :
6285 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6286 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6287 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6288 ;;
6289esac
81ecdfbb
RW
6290fi
6291
4f0ef2d8
CD
6292
6293# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6294case ,${enable_languages},:${enable_objc_gc} in
6295 *,objc,*:yes)
4f0ef2d8
CD
6296 # Keep target-boehm-gc if requested for Objective-C.
6297 ;;
4f0ef2d8 6298 *)
d42c4017
DA
6299 # Otherwise remove target-boehm-gc depending on target-libjava.
6300 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6301 noconfigdirs="$noconfigdirs target-boehm-gc"
6302 fi
4f0ef2d8
CD
6303 ;;
6304esac
6305
caeba88f
AL
6306# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6307# $build_configdirs and $target_configdirs.
9e07f89d
NN
6308# If we have the source for $noconfigdirs entries, add them to $notsupp.
6309
6310notsupp=""
6311for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6312 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6313 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6314 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6315 if test -r $srcdir/$dirname/configure ; then
6316 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6317 true
6318 else
6319 notsupp="$notsupp $dir"
6320 fi
6321 fi
6322 fi
caeba88f
AL
6323 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6324 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6325 if test -r $srcdir/$dirname/configure ; then
6326 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6327 true
6328 else
6329 notsupp="$notsupp $dir"
6330 fi
6331 fi
6332 fi
9e07f89d
NN
6333 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6334 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6335 if test -r $srcdir/$dirname/configure ; then
6336 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6337 true
6338 else
6339 notsupp="$notsupp $dir"
6340 fi
6341 fi
6342 fi
6343done
6344
6345# Sometimes the tools are distributed with libiberty but with no other
6346# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6347# Don't let libgcc imply libiberty either.
9e07f89d 6348if test -n "${target_configdirs}" ; then
f86e35b8 6349 libgcc=
9e07f89d
NN
6350 others=
6351 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6352 if test "$i" = "libgcc"; then
6353 libgcc=target-libgcc
6354 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6355 if test -r $srcdir/$i/configure ; then
6356 others=yes;
6357 break;
6358 fi
6359 fi
6360 done
6361 if test -z "${others}" ; then
f86e35b8 6362 target_configdirs=$libgcc
9e07f89d
NN
6363 fi
6364fi
6365
6366# Quietly strip out all directories which aren't configurable in this tree.
6367# This relies on all configurable subdirectories being autoconfiscated, which
6368# is now the case.
6a9cf61e
PB
6369build_configdirs_all="$build_configdirs"
6370build_configdirs=
6371for i in ${build_configdirs_all} ; do
c6b750e1 6372 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6373 if test -f ${srcdir}/$j/configure ; then
6374 build_configdirs="${build_configdirs} $i"
6375 fi
6376done
6377
9e07f89d
NN
6378configdirs_all="$configdirs"
6379configdirs=
6380for i in ${configdirs_all} ; do
6381 if test -f ${srcdir}/$i/configure ; then
6382 configdirs="${configdirs} $i"
6383 fi
6384done
6a9cf61e 6385
9e07f89d
NN
6386target_configdirs_all="$target_configdirs"
6387target_configdirs=
6388for i in ${target_configdirs_all} ; do
c6b750e1 6389 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6390 if test -f ${srcdir}/$j/configure ; then
6391 target_configdirs="${target_configdirs} $i"
6392 fi
6393done
6394
6395# Produce a warning message for the subdirs we can't configure.
6396# This isn't especially interesting in the Cygnus tree, but in the individual
6397# FSF releases, it's important to let people know when their machine isn't
6398# supported by the one or two programs in a package.
6399
6400if test -n "${notsupp}" && test -z "${norecursion}" ; then
6401 # If $appdirs is non-empty, at least one of those directories must still
6402 # be configured, or we error out. (E.g., if the gas release supports a
6403 # specified target in some subdirs but not the gas subdir, we shouldn't
6404 # pretend that all is well.)
6405 if test -n "$appdirs" ; then
6406 for dir in $appdirs ; do
6407 if test -r $dir/Makefile.in ; then
6408 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6409 appdirs=""
6410 break
6411 fi
6a9cf61e 6412 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6413 appdirs=""
6414 break
6415 fi
6416 fi
6417 done
6418 if test -n "$appdirs" ; then
6419 echo "*** This configuration is not supported by this package." 1>&2
6420 exit 1
6421 fi
6422 fi
6423 # Okay, some application will build, or we don't care to check. Still
6424 # notify of subdirs not getting built.
6425 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6426 echo " ${notsupp}" 1>&2
6427 echo " (Any other directories should still work fine.)" 1>&2
6428fi
6429
6430case "$host" in
6431 *msdosdjgpp*)
6432 enable_gdbtk=no ;;
6433esac
6434
18f6b6ee
PB
6435# To find our prefix, in gcc_cv_tool_prefix.
6436
6437# The user is always right.
6438if test "${PATH_SEPARATOR+set}" != set; then
6439 echo "#! /bin/sh" >conf$$.sh
6440 echo "exit 0" >>conf$$.sh
6441 chmod +x conf$$.sh
6442 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6443 PATH_SEPARATOR=';'
6444 else
6445 PATH_SEPARATOR=:
6446 fi
6447 rm -f conf$$.sh
6448fi
6449
6450
6451
6452if test "x$exec_prefix" = xNONE; then
6453 if test "x$prefix" = xNONE; then
6454 gcc_cv_tool_prefix=$ac_default_prefix
6455 else
6456 gcc_cv_tool_prefix=$prefix
6457 fi
6458else
6459 gcc_cv_tool_prefix=$exec_prefix
6460fi
6461
6462# If there is no compiler in the tree, use the PATH only. In any
6463# case, if there is no compiler in the tree nobody should use
6464# AS_FOR_TARGET and LD_FOR_TARGET.
6465if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6466 gcc_version=`cat $srcdir/gcc/BASE-VER`
6467 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6468 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6469 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6470 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6471 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6472 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6473else
6474 gcc_cv_tool_dirs=
6475fi
6476
6477if test x$build = x$target && test -n "$md_exec_prefix"; then
6478 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6479fi
6480
6481
6482
9e07f89d
NN
6483copy_dirs=
6484
c6b750e1 6485
81ecdfbb
RW
6486# Check whether --with-build-sysroot was given.
6487if test "${with_build_sysroot+set}" = set; then :
6488 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6489 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6490 fi
6491else
6492 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6493fi
a19b6204
MM
6494
6495
8a6ee3ab 6496
81ecdfbb
RW
6497
6498# Check whether --with-debug-prefix-map was given.
6499if test "${with_debug_prefix_map+set}" = set; then :
6500 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6501 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6502 for debug_map in $withval; do
6503 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6504 done
6505 fi
6506else
6507 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6508fi
6509
8a6ee3ab
JM
6510
6511
7f6ef0c0
PB
6512# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6513# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6514# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6515# We want to ensure that TARGET libraries (which we know are built with
6516# gcc) are built with "-O2 -g", so include those options when setting
6517# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6518if test "x$CFLAGS_FOR_TARGET" = x; then
6519 CFLAGS_FOR_TARGET=$CFLAGS
6520 case " $CFLAGS " in
6521 *" -O2 "*) ;;
6522 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6523 esac
6524 case " $CFLAGS " in
6525 *" -g "* | *" -g3 "*) ;;
6526 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6527 esac
6528fi
6529
6530
6531if test "x$CXXFLAGS_FOR_TARGET" = x; then
6532 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6533 case " $CXXFLAGS " in
6534 *" -O2 "*) ;;
6535 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6536 esac
6537 case " $CXXFLAGS " in
6538 *" -g "* | *" -g3 "*) ;;
6539 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6540 esac
6541fi
6542
6543
9e07f89d
NN
6544# Handle --with-headers=XXX. If the value is not "yes", the contents of
6545# the named directory are copied to $(tooldir)/sys-include.
6546if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6547 if test x${is_cross_compiler} = xno ; then
6548 echo 1>&2 '***' --with-headers is only supported when cross compiling
6549 exit 1
6550 fi
6551 if test x"${with_headers}" != xyes ; then
18f6b6ee 6552 x=${gcc_cv_tool_prefix}
c6b750e1 6553 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6554 fi
6555fi
6556
6557# Handle --with-libs=XXX. If the value is not "yes", the contents of
6558# the name directories are copied to $(tooldir)/lib. Multiple directories
6559# are permitted.
6560if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6561 if test x${is_cross_compiler} = xno ; then
6562 echo 1>&2 '***' --with-libs is only supported when cross compiling
6563 exit 1
6564 fi
6565 if test x"${with_libs}" != xyes ; then
6566 # Copy the libraries in reverse order, so that files in the first named
6567 # library override files in subsequent libraries.
18f6b6ee 6568 x=${gcc_cv_tool_prefix}
9e07f89d 6569 for l in ${with_libs}; do
c6b750e1 6570 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6571 done
6572 fi
6573fi
6574
700d40ca 6575# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6576#
6577# This is done by determining whether or not the appropriate directory
6578# is available, and by checking whether or not specific configurations
6579# have requested that this magic not happen.
c6b750e1
DJ
6580#
6581# The command line options always override the explicit settings in
2429c060
PB
6582# configure.in, and the settings in configure.in override this magic.
6583#
c6b750e1 6584# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6585# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6586# --without-gnu-ld options for the configure script. Similarly, if
6587# the default is to use the included zlib and you don't want to do that,
6588# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6589
6590if test x${use_gnu_as} = x &&
6591 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6592 with_gnu_as=yes
6593 extra_host_args="$extra_host_args --with-gnu-as"
6594fi
6595
6596if test x${use_gnu_ld} = x &&
93f9b408 6597 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6598 with_gnu_ld=yes
6599 extra_host_args="$extra_host_args --with-gnu-ld"
6600fi
6601
700d40ca
ILT
6602if test x${use_included_zlib} = x &&
6603 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6604 :
6605else
6606 with_system_zlib=yes
6607 extra_host_args="$extra_host_args --with-system-zlib"
6608fi
6609
2429c060
PB
6610# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6611# can detect this case.
6612
6613if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6614 with_newlib=yes
6615 extra_host_args="$extra_host_args --with-newlib"
6616fi
6617
9e07f89d
NN
6618# Handle ${copy_dirs}
6619set fnord ${copy_dirs}
6620shift
6621while test $# != 0 ; do
6622 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6623 :
6624 else
6625 echo Copying $1 to $2
6626
6627 # Use the install script to create the directory and all required
6628 # parent directories.
6629 if test -d $2 ; then
6630 :
6631 else
6632 echo >config.temp
6633 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6634 fi
6635
6636 # Copy the directory, assuming we have tar.
6637 # FIXME: Should we use B in the second tar? Not all systems support it.
6638 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6639
6640 # It is the responsibility of the user to correctly adjust all
6641 # symlinks. If somebody can figure out how to handle them correctly
6642 # here, feel free to add the code.
6643
6644 echo $1 > $2/COPIED
6645 fi
6646 shift; shift
6647done
6648
2429c060
PB
6649# Determine a target-dependent exec_prefix that the installed
6650# gcc will search in. Keep this list sorted by triplet, with
6651# the *-*-osname triplets last.
6652md_exec_prefix=
6653case "${target}" in
521ec477 6654 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6655 md_exec_prefix=/dev/env/DJDIR/bin
6656 ;;
2429c060 6657 *-*-hpux* | \
2429c060 6658 *-*-nto-qnx* | \
1f111696 6659 *-*-solaris2*)
2429c060
PB
6660 md_exec_prefix=/usr/ccs/bin
6661 ;;
6662esac
6663
a0da8069
NN
6664extra_arflags_for_target=
6665extra_nmflags_for_target=
6666extra_ranlibflags_for_target=
6667target_makefile_frag=/dev/null
6668case "${target}" in
77d7106f
AM
6669 spu-*-*)
6670 target_makefile_frag="config/mt-spu"
6671 ;;
429acdec
RS
6672 mips*-sde-elf*)
6673 target_makefile_frag="config/mt-sde"
6674 ;;
f3b1e08e
RS
6675 mipsisa*-*-elfoabi*)
6676 target_makefile_frag="config/mt-mips-elfoabi"
6677 ;;
e7c8859c
RS
6678 mips*-*-*linux* | mips*-*-gnu*)
6679 target_makefile_frag="config/mt-mips-gnu"
6680 ;;
29383458 6681 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6682 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6683 ;;
6684 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6685 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6686 # commands to handle both 32-bit and 64-bit objects. These flags are
6687 # harmless if we're using GNU nm or ar.
6688 extra_arflags_for_target=" -X32_64"
6689 extra_nmflags_for_target=" -B -X32_64"
6690 ;;
92f4e989
JM
6691 *-*-darwin[3-9]*)
6692 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6693 extra_ranlibflags_for_target=" -c"
6694 ;;
a0da8069
NN
6695esac
6696
6697alphaieee_frag=/dev/null
6698case $target in
6699 alpha*-*-*)
6700 # This just makes sure to use the -mieee option to build target libs.
6701 # This should probably be set individually by each library.
6702 alphaieee_frag="config/mt-alphaieee"
6703 ;;
6704esac
6705
6706# If --enable-target-optspace always use -Os instead of -O2 to build
6707# the target libraries, similarly if it is not specified, use -Os
6708# on selected platforms.
6709ospace_frag=/dev/null
6710case "${enable_target_optspace}:${target}" in
6711 yes:*)
6712 ospace_frag="config/mt-ospace"
6713 ;;
6714 :d30v-*)
6715 ospace_frag="config/mt-d30v"
6716 ;;
6717 :m32r-* | :d10v-* | :fr30-*)
6718 ospace_frag="config/mt-ospace"
6719 ;;
6720 no:* | :*)
6721 ;;
6722 *)
6723 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6724 ;;
6725esac
6726
a0da8069
NN
6727# Default to using --with-stabs for certain targets.
6728if test x${with_stabs} = x ; then
6729 case "${target}" in
e31d1ea3 6730 mips*-*-irix[56]*)
a0da8069
NN
6731 ;;
6732 mips*-*-* | alpha*-*-osf*)
6733 with_stabs=yes;
6734 extra_host_args="${extra_host_args} --with-stabs"
6735 ;;
6736 esac
6737fi
6738
6739# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6740# them automatically.
6741case "${host}" in
c6b750e1 6742 hppa*64*-*-hpux11*)
a0da8069
NN
6743 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6744 ;;
6745esac
6746
a0da8069
NN
6747# Some systems (e.g., one of the i386-aix systems the gas testers are
6748# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6749tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6750build_tooldir=${tooldir}
6751
a0da8069
NN
6752# Create a .gdbinit file which runs the one in srcdir
6753# and tells GDB to look there for source files.
6754
6755if test -r ${srcdir}/.gdbinit ; then
6756 case ${srcdir} in
6757 .) ;;
6758 *) cat > ./.gdbinit <<EOF
6759# ${NO_EDIT}
6760dir ${srcdir}
6761dir .
6762source ${srcdir}/.gdbinit
6763EOF
6764 ;;
6765 esac
6766fi
6767
a0da8069
NN
6768# Make sure that the compiler is able to generate an executable. If it
6769# can't, we are probably in trouble. We don't care whether we can run the
6770# executable--we might be using a cross compiler--we only care whether it
6771# can be created. At this point the main configure script has set CC.
6772we_are_ok=no
6773echo "int main () { return 0; }" > conftest.c
6774${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6775if test $? = 0 ; then
6776 if test -s conftest || test -s conftest.exe ; then
6777 we_are_ok=yes
6778 fi
c6b750e1 6779fi
a0da8069
NN
6780case $we_are_ok in
6781 no)
6782 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6783 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6784 rm -f conftest*
6785 exit 1
6786 ;;
6787esac
6788rm -f conftest*
6789
6790# The Solaris /usr/ucb/cc compiler does not appear to work.
6791case "${host}" in
6792 sparc-sun-solaris2*)
6793 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6794 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6795 could_use=
6796 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6797 if test -d /opt/cygnus/bin ; then
6798 if test "$could_use" = "" ; then
6799 could_use="/opt/cygnus/bin"
6800 else
6801 could_use="$could_use or /opt/cygnus/bin"
6802 fi
6803 fi
6804 if test "$could_use" = "" ; then
6805 echo "Warning: compilation may fail because you're using"
6806 echo "/usr/ucb/cc. You should change your PATH or CC "
6807 echo "variable and rerun configure."
6808 else
6809 echo "Warning: compilation may fail because you're using"
6810 echo "/usr/ucb/cc, when you should use the C compiler from"
6811 echo "$could_use. You should change your"
6812 echo "PATH or CC variable and rerun configure."
6813 fi
6814 fi
6815 ;;
6816esac
6817
3bbd2f8f 6818# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6819case "${host}" in
6820 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6821 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6822 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6823 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6824esac
6825
3bbd2f8f 6826# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6827# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6828# built executables to PATH.
3bbd2f8f
AL
6829if test "$RPATH_ENVVAR" = PATH; then
6830 GCC_SHLIB_SUBDIR=/shlib
6831else
6832 GCC_SHLIB_SUBDIR=
6833fi
6834
a0da8069
NN
6835# Record target_configdirs and the configure arguments for target and
6836# build configuration in Makefile.
6837target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6838build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6839
2aa2364a
JR
6840# If we are building libgomp, bootstrap it.
6841if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6842 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6843fi
6844
a0da8069
NN
6845# Determine whether gdb needs tk/tcl or not.
6846# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6847# and in that case we want gdb to be built without tk. Ugh!
6848# In fact I believe gdb is the *only* package directly dependent on tk,
6849# so we should be able to put the 'maybe's in unconditionally and
6850# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6851# 100% sure that that's safe though.
c180f501 6852
675c6968 6853gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6854case "$enable_gdbtk" in
6855 no)
6856 GDB_TK="" ;;
c180f501
AC
6857 yes)
6858 GDB_TK="${gdb_tk}" ;;
a0da8069 6859 *)
c180f501
AC
6860 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6861 # distro. Eventually someone will fix this and move Insight, nee
6862 # gdbtk to a separate directory.
6863 if test -d ${srcdir}/gdb/gdbtk ; then
6864 GDB_TK="${gdb_tk}"
6865 else
6866 GDB_TK=""
6867 fi
6868 ;;
a0da8069 6869esac
907be67c
DJ
6870CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6871INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6872
6bd3dfaa 6873# Strip out unwanted targets.
dd12c3a8
NN
6874
6875# While at that, we remove Makefiles if we were started for recursive
6876# configuration, so that the top-level Makefile reconfigures them,
6877# like we used to do when configure itself was recursive.
dd12c3a8 6878
06a51eac
RW
6879# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6880# but now we're fixing up the Makefile ourselves with the additional
6881# commands passed to AC_CONFIG_FILES. Use separate variables
6882# extrasub-{build,host,target} not because there is any reason to split
6883# the substitutions up that way, but only to remain below the limit of
6884# 99 commands in a script, for HP-UX sed.
6885# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6886
81ecdfbb
RW
6887# Check whether --enable-bootstrap was given.
6888if test "${enable_bootstrap+set}" = set; then :
6889 enableval=$enable_bootstrap;
319cab08 6890else
9cb3fa6f 6891 enable_bootstrap=default
81ecdfbb
RW
6892fi
6893
319cab08 6894
9cb3fa6f
PB
6895# Issue errors and warnings for invalid/strange bootstrap combinations.
6896case "$configdirs" in
6897 *gcc*) have_compiler=yes ;;
6898 *) have_compiler=no ;;
6899esac
6900
6901case "$have_compiler:$host:$target:$enable_bootstrap" in
6902 *:*:*:no) ;;
6903
0aed8855 6904 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
6905 # and we are in a native configuration.
6906 yes:$build:$build:default)
0aed8855 6907 enable_bootstrap=yes ;;
9cb3fa6f
PB
6908
6909 *:*:*:default)
6910 enable_bootstrap=no ;;
6911
6912 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 6913 yes:$build:$build:yes)
9cb3fa6f
PB
6914 ;;
6915
6916 # Other configurations, but we have a compiler. Assume the user knows
6917 # what he's doing.
80911fe1 6918 yes:*:*:yes)
81ecdfbb
RW
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6920$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
6921 ;;
6922
6923 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 6924 no:*:*:yes)
81ecdfbb 6925 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
6926
6927 # Fail if wrong command line
6928 *)
81ecdfbb 6929 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
6930 ;;
6931esac
6932
4385ad3c
RW
6933case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6934 *,c++,*:yes:yes) ;;
6935 *:yes:yes)
6936 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6937 ;;
6938esac
6939
16b1ad29
RW
6940case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6941 yes:yes:*\ gold\ *:*,c++,*) ;;
6942 yes:yes:*\ gold\ *:*)
6943 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6944 ;;
6945esac
6946
9cb3fa6f 6947# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 6948case $enable_bootstrap in
319cab08 6949 yes)
96655cc4
AO
6950 bootstrap_suffix=bootstrap
6951 BUILD_CONFIG=bootstrap-debug
6952 ;;
319cab08 6953 no)
96655cc4
AO
6954 bootstrap_suffix=no-bootstrap
6955 BUILD_CONFIG=
6956 ;;
319cab08
PB
6957esac
6958
96655cc4
AO
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6960$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6961
6962
6963# Check whether --with-build-config was given.
6964if test "${with_build_config+set}" = set; then :
6965 withval=$with_build_config; case $with_build_config in
6966 yes) with_build_config= ;;
6967 no) with_build_config= BUILD_CONFIG= ;;
6968 esac
6969fi
6970
6971
6972if test "x${with_build_config}" != x; then
6973 BUILD_CONFIG=$with_build_config
6974else
6975 case $BUILD_CONFIG in
6976 bootstrap-debug)
6977 if echo "int f (void) { return 0; }" > conftest.c &&
6978 ${CC} -c conftest.c &&
6979 mv conftest.o conftest.o.g0 &&
6980 ${CC} -c -g conftest.c &&
6981 mv conftest.o conftest.o.g &&
a009f2e7 6982 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
6983 :
6984 else
6985 BUILD_CONFIG=
6986 fi
6987 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6988 ;;
6989 esac
6990fi
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6992$as_echo "$BUILD_CONFIG" >&6; }
6993
6994
06a51eac 6995extrasub_build=
6a9cf61e 6996for module in ${build_configdirs} ; do
498d4a71
CF
6997 if test -z "${no_recursion}" \
6998 && test -f ${build_subdir}/${module}/Makefile; then
6999 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7000 rm -f ${build_subdir}/${module}/Makefile
7001 fi
06a51eac 7002 extrasub_build="$extrasub_build
498d4a71
CF
7003/^@if build-$module\$/d
7004/^@endif build-$module\$/d
7005/^@if build-$module-$bootstrap_suffix\$/d
7006/^@endif build-$module-$bootstrap_suffix\$/d"
7007done
06a51eac 7008extrasub_host=
498d4a71 7009for module in ${configdirs} ; do
80911fe1 7010 if test -z "${no_recursion}"; then
8cf39b1b 7011 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7012 if test -f ${file}; then
7013 echo 1>&2 "*** removing ${file} to force reconfigure"
7014 rm -f ${file}
7015 fi
7016 done
498d4a71 7017 fi
06a51eac 7018 extrasub_host="$extrasub_host
498d4a71
CF
7019/^@if $module\$/d
7020/^@endif $module\$/d
7021/^@if $module-$bootstrap_suffix\$/d
7022/^@endif $module-$bootstrap_suffix\$/d"
7023done
06a51eac 7024extrasub_target=
498d4a71
CF
7025for module in ${target_configdirs} ; do
7026 if test -z "${no_recursion}" \
7027 && test -f ${target_subdir}/${module}/Makefile; then
7028 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7029 rm -f ${target_subdir}/${module}/Makefile
7030 fi
e8a5fa9c
RW
7031
7032 # We only bootstrap target libraries listed in bootstrap_target_libs.
7033 case $bootstrap_target_libs in
7034 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7035 *) target_bootstrap_suffix=no-bootstrap ;;
7036 esac
7037
06a51eac 7038 extrasub_target="$extrasub_target
498d4a71
CF
7039/^@if target-$module\$/d
7040/^@endif target-$module\$/d
e8a5fa9c
RW
7041/^@if target-$module-$target_bootstrap_suffix\$/d
7042/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7043done
7044
06a51eac
RW
7045# Do the final fixup along with target modules.
7046extrasub_target="$extrasub_target
6bd3dfaa 7047/^@if /,/^@endif /d"
a0da8069
NN
7048
7049# Create the serialization dependencies. This uses a temporary file.
7050
81ecdfbb
RW
7051# Check whether --enable-serial-configure was given.
7052if test "${enable_serial_configure+set}" = set; then :
7053 enableval=$enable_serial_configure;
7054fi
e6bfb94a
AO
7055
7056
1047cb91
DD
7057case ${enable_serial_configure} in
7058 yes)
7059 enable_serial_build_configure=yes
7060 enable_serial_host_configure=yes
7061 enable_serial_target_configure=yes
7062 ;;
7063esac
7064
a0da8069
NN
7065# These force 'configure's to be done one at a time, to avoid problems
7066# with contention over a shared config.cache.
7067rm -f serdep.tmp
e6bfb94a 7068echo '# serdep.tmp' > serdep.tmp
a0da8069 7069olditem=
1047cb91 7070test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7071for item in ${build_configdirs} ; do
7072 case ${olditem} in
7073 "") ;;
e6bfb94a 7074 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7075 esac
7076 olditem=${item}
7077done
7078olditem=
1047cb91 7079test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7080for item in ${configdirs} ; do
7081 case ${olditem} in
7082 "") ;;
e6bfb94a 7083 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7084 esac
7085 olditem=${item}
7086done
7087olditem=
1047cb91 7088test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7089for item in ${target_configdirs} ; do
7090 case ${olditem} in
7091 "") ;;
e6bfb94a 7092 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7093 esac
7094 olditem=${item}
7095done
7096serialization_dependencies=serdep.tmp
7097
7098
e6bfb94a 7099# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7100# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7101# might not want to pass down to subconfigures. The exception being
7102# --cache-file=/dev/null, which is used to turn off the use of cache
7103# files altogether, and which should be passed on to subconfigures.
7104# Also strip program-prefix, program-suffix, and program-transform-name,
7105# so that we can pass down a consistent program-transform-name.
c6b750e1 7106baseargs=
65b4571a 7107tbaseargs=
c6b750e1
DJ
7108keep_next=no
7109skip_next=no
7110eval "set -- $ac_configure_args"
18f6b6ee
PB
7111for ac_arg
7112do
c6b750e1
DJ
7113 if test X"$skip_next" = X"yes"; then
7114 skip_next=no
7115 continue
7116 fi
7117 if test X"$keep_next" = X"yes"; then
7118 case $ac_arg in
7119 *\'*)
7120 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7121 esac
7122 baseargs="$baseargs '$ac_arg'"
65b4571a 7123 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7124 keep_next=no
7125 continue
7126 fi
7127
7128 # Handle separated arguments. Based on the logic generated by
7129 # autoconf 2.59.
7130 case $ac_arg in
7131 *=* | --config-cache | -C | -disable-* | --disable-* \
7132 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7133 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7134 | -with-* | --with-* | -without-* | --without-* | --x)
7135 separate_arg=no
7136 ;;
7137 -*)
7138 separate_arg=yes
7139 ;;
7140 *)
7141 separate_arg=no
7142 ;;
7143 esac
7144
65b4571a
AO
7145 skip_targ=no
7146 case $ac_arg in
7147
7148 --with-* | --without-*)
7149 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7150
7151 case $libopt in
7152 *[-_]include)
7153 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7154 ;;
7155 *[-_]lib)
7156 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7157 ;;
7158 *)
7159 lib=$libopt
7160 ;;
7161 esac
7162
7163
7164 case $lib in
7165 mpc | mpfr | gmp | ppl | cloog)
7166 # If we're processing --with-$lib, --with-$lib-include or
7167 # --with-$lib-lib, for one of the libs above, and target is
7168 # different from host, don't pass the current argument to any
7169 # target library's configure.
7170 if test x$is_cross_compiler = xyes; then
7171 skip_targ=yes
7172 fi
7173 ;;
7174 esac
7175 ;;
7176 esac
7177
c6b750e1 7178 case "$ac_arg" in
30167e0a
NC
7179 --cache-file=/dev/null | \
7180 -cache-file=/dev/null )
7181 # Handled here to avoid the test to skip args below.
7182 baseargs="$baseargs '$ac_arg'"
65b4571a 7183 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7184 # Assert: $separate_arg should always be no.
7185 keep_next=$separate_arg
7186 ;;
c6b750e1
DJ
7187 --no*)
7188 continue
7189 ;;
7190 --c* | \
7191 --sr* | \
7192 --ho* | \
7193 --bu* | \
7194 --t* | \
7195 --program-* | \
7196 -cache_file* | \
7197 -srcdir* | \
7198 -host* | \
7199 -build* | \
7200 -target* | \
7201 -program-prefix* | \
7202 -program-suffix* | \
7203 -program-transform-name* )
7204 skip_next=$separate_arg
7205 continue
7206 ;;
7207 -*)
7208 # An option. Add it.
7209 case $ac_arg in
7210 *\'*)
7211 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7212 esac
7213 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7214 if test X"$skip_targ" = Xno; then
7215 tbaseargs="$tbaseargs '$ac_arg'"
7216 fi
c6b750e1
DJ
7217 keep_next=$separate_arg
7218 ;;
7219 *)
7220 # Either a variable assignment, or a nonopt (triplet). Don't
7221 # pass it down; let the Makefile handle this.
7222 continue
7223 ;;
7224 esac
7225done
7226# Remove the initial space we just introduced and, as these will be
7227# expanded by make, quote '$'.
7228baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7229
f27d4f92
DJ
7230# Add in --program-transform-name, after --program-prefix and
7231# --program-suffix have been applied to it. Autoconf has already
7232# doubled dollar signs and backslashes in program_transform_name; we want
7233# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7234# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7235# Also, because we want to override the logic in subdir configure scripts to
7236# choose program_transform_name, replace any s,x,x, with s,y,y,.
7237sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7238${program_transform_name}
7239EOF_SED
7240gcc_transform_name=`cat conftestsed.out`
7241rm -f conftestsed.out
7242baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7243tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7244if test "$silent" = yes; then
7245 baseargs="$baseargs --silent"
65b4571a 7246 tbaseargs="$tbaseargs --silent"
2444379b 7247fi
34a0f3cf 7248baseargs="$baseargs --disable-option-checking"
65b4571a 7249tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7250
4074d5f2
RW
7251# Record and document user additions to sub configure arguments.
7252
7253
7254
7255
a0da8069
NN
7256# For the build-side libraries, we just need to pretend we're native,
7257# and not use the same cache file. Multilibs are neither needed nor
7258# desired.
4074d5f2 7259build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7260
7261# For host modules, accept cache file option, or specification as blank.
7262case "${cache_file}" in
7263"") # empty
7264 cache_file_option="" ;;
7265/* | [A-Za-z]:[\\/]* ) # absolute path
7266 cache_file_option="--cache-file=${cache_file}" ;;
7267*) # relative path
7268 cache_file_option="--cache-file=../${cache_file}" ;;
7269esac
7270
82252c06
NN
7271# Host dirs don't like to share a cache file either, horribly enough.
7272# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7273host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7274
65b4571a 7275target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7276
7277# Passing a --with-cross-host argument lets the target libraries know
7278# whether they are being built with a cross-compiler or being built
7279# native. However, it would be better to use other mechanisms to make the
7280# sorts of decisions they want to make on this basis. Please consider
7281# this option to be deprecated. FIXME.
7282if test x${is_cross_compiler} = xyes ; then
c6b750e1 7283 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7284fi
7285
938d2b74
RW
7286# Default to --enable-multilib.
7287if test x${enable_multilib} = x ; then
a0da8069 7288 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7289fi
a0da8069
NN
7290
7291# Pass --with-newlib if appropriate. Note that target_configdirs has
7292# changed from the earlier setting of with_newlib.
7293if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7294 target_configargs="--with-newlib ${target_configargs}"
7295fi
7296
95036d20
NN
7297# Different target subdirs use different values of certain variables
7298# (notably CXX). Worse, multilibs use *lots* of different values.
7299# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7300# it doesn't automatically accept command-line overrides of them.
7301# This means it's not safe for target subdirs to share a cache file,
7302# which is disgusting, but there you have it. Hopefully this can be
7303# fixed in future. It's still worthwhile to use a cache file for each
7304# directory. I think.
7305
ae380b45
MS
7306# Pass the appropriate --build, --host, --target and --cache-file arguments.
7307# We need to pass --target, as newer autoconf's requires consistency
7308# for target_alias and gcc doesn't manage it consistently.
4b900473 7309target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7310
a0da8069
NN
7311FLAGS_FOR_TARGET=
7312case " $target_configdirs " in
7313 *" newlib "*)
7314 case " $target_configargs " in
7315 *" --with-newlib "*)
7316 case "$target" in
1f53ca9a
AO
7317 *-cygwin*)
7318 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'
7319 ;;
a0da8069
NN
7320 esac
7321
7322 # If we're not building GCC, don't discard standard headers.
7323 if test -d ${srcdir}/gcc; then
7324 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7325
7326 if test "${build}" != "${host}"; then
7327 # On Canadian crosses, CC_FOR_TARGET will have already been set
7328 # by `configure', so we won't have an opportunity to add -Bgcc/
7329 # to it. This is right: we don't want to search that directory
7330 # for binaries, but we want the header files in there, so add
7331 # them explicitly.
e552509b 7332 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7333
7334 # Someone might think of using the pre-installed headers on
7335 # Canadian crosses, in case the installed compiler is not fully
7336 # compatible with the compiler being built. In this case, it
7337 # would be better to flag an error than risking having
7338 # incompatible object files being constructed. We can't
7339 # guarantee that an error will be flagged, but let's hope the
7340 # compiler will do it, when presented with incompatible header
7341 # files.
7342 fi
7343 fi
7344
7345 case "${target}-${is_cross_compiler}" in
ec11bdc6 7346 i[3456789]86-*-linux*-no)
a0da8069
NN
7347 # Here host == target, so we don't need to build gcc,
7348 # so we don't want to discard standard headers.
7349 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7350 ;;
7351 *)
7352 # If we're building newlib, use its generic headers last, but search
7353 # for any libc-related directories first (so make it the last -B
7354 # switch).
7355 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
7356
7357 # If we're building libgloss, find the startup file, simulator library
7358 # and linker script.
7359 case " $target_configdirs " in
7360 *" libgloss "*)
7361 # Look for startup file, simulator library and maybe linker script.
7362 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7363 # Look for libnosys.a in case the target needs it.
7364 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7365 # Most targets have the linker script in the source directory.
7366 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7367 ;;
7368 esac
a0da8069
NN
7369 ;;
7370 esac
7371 ;;
7372 esac
7373 ;;
7374esac
1f53ca9a 7375
45055374 7376case "$target" in
1f53ca9a
AO
7377 x86_64-*mingw* | *-w64-mingw*)
7378 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7379 # however, use a symlink named 'mingw' in ${prefix} .
7380 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7381 ;;
7382 *-mingw*)
7383 # MinGW can't be handled as Cygwin above since it does not use newlib.
7384 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'
7385 ;;
45055374 7386esac
a0da8069 7387
5fbad20a
DD
7388# Allow the user to override the flags for
7389# our build compiler if desired.
c66487f8
NC
7390if test x"${build}" = x"${host}" ; then
7391 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7392 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7393 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7394fi
5fbad20a 7395
a0da8069
NN
7396# On Canadian crosses, we'll be searching the right directories for
7397# the previously-installed cross compiler, so don't bother to add
7398# flags for directories within the install tree of the compiler
7399# being built; programs in there won't even run.
7400if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7401 # Search for pre-installed headers if nothing else fits.
bba45b8b 7402 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
7403fi
7404
7405if test "x${use_gnu_ld}" = x &&
7406 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7407 # Arrange for us to find uninstalled linker scripts.
b00612cc 7408 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7409fi
7410
a481dbb7
DD
7411# Search for other target-specific linker scripts and such.
7412case "${target}" in
4e206d7e
DB
7413 mep*)
7414 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7415 ;;
7416esac
7417
a0da8069 7418# Makefile fragments.
3e707e94
PB
7419for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7420do
7421 eval fragval=\$$frag
7422 if test $fragval != /dev/null; then
7423 eval $frag=${srcdir}/$fragval
7424 fi
7425done
a0da8069
NN
7426
7427
7428
7429
7430
7431# Miscellanea: directories, flags, etc.
7432
7433
7434
7435
7436
7437
7438
3bbd2f8f 7439
6a9cf61e 7440# Build module lists & subconfigure args.
a0da8069
NN
7441
7442
7443
be01d343
PB
7444# Host module lists & subconfigure args.
7445
7446
7447
911e63d0 7448
be01d343
PB
7449# Target module lists & subconfigure args.
7450
7451
7452
7453# Build tools.
7454
7455
7456
1576798e
PB
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
be01d343
PB
7471# Generate default definitions for YACC, M4, LEX and other programs that run
7472# on the build machine. These are used if the Makefile can't locate these
7473# programs in objdir.
7474MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7475
7476for ac_prog in 'bison -y' byacc yacc
7477do
c6b750e1 7478 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7479set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481$as_echo_n "checking for $ac_word... " >&6; }
7482if test "${ac_cv_prog_YACC+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
be01d343
PB
7484else
7485 if test -n "$YACC"; then
7486 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7487else
c6b750e1
DJ
7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7495 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7497 break 2
7498 fi
7499done
81ecdfbb
RW
7500 done
7501IFS=$as_save_IFS
c6b750e1 7502
be01d343
PB
7503fi
7504fi
c6b750e1 7505YACC=$ac_cv_prog_YACC
be01d343 7506if test -n "$YACC"; then
81ecdfbb
RW
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7508$as_echo "$YACC" >&6; }
be01d343 7509else
81ecdfbb
RW
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511$as_echo "no" >&6; }
be01d343
PB
7512fi
7513
81ecdfbb 7514
c6b750e1 7515 test -n "$YACC" && break
be01d343
PB
7516done
7517test -n "$YACC" || YACC="$MISSING bison -y"
7518
7519case " $build_configdirs " in
7520 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7521 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7522esac
7523
7524for ac_prog in bison
7525do
c6b750e1 7526 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7527set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529$as_echo_n "checking for $ac_word... " >&6; }
7530if test "${ac_cv_prog_BISON+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
be01d343
PB
7532else
7533 if test -n "$BISON"; then
7534 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7535else
c6b750e1
DJ
7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7543 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7545 break 2
7546 fi
7547done
81ecdfbb
RW
7548 done
7549IFS=$as_save_IFS
c6b750e1 7550
be01d343
PB
7551fi
7552fi
c6b750e1 7553BISON=$ac_cv_prog_BISON
be01d343 7554if test -n "$BISON"; then
81ecdfbb
RW
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7556$as_echo "$BISON" >&6; }
be01d343 7557else
81ecdfbb
RW
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559$as_echo "no" >&6; }
be01d343
PB
7560fi
7561
81ecdfbb 7562
c6b750e1 7563 test -n "$BISON" && break
be01d343
PB
7564done
7565test -n "$BISON" || BISON="$MISSING bison"
7566
7567case " $build_configdirs " in
7568 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7569esac
7570
7571for ac_prog in gm4 gnum4 m4
7572do
c6b750e1 7573 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7574set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576$as_echo_n "checking for $ac_word... " >&6; }
7577if test "${ac_cv_prog_M4+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
be01d343
PB
7579else
7580 if test -n "$M4"; then
7581 ac_cv_prog_M4="$M4" # Let the user override the test.
7582else
c6b750e1
DJ
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7590 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7592 break 2
7593 fi
7594done
81ecdfbb
RW
7595 done
7596IFS=$as_save_IFS
c6b750e1 7597
be01d343
PB
7598fi
7599fi
c6b750e1 7600M4=$ac_cv_prog_M4
be01d343 7601if test -n "$M4"; then
81ecdfbb
RW
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7603$as_echo "$M4" >&6; }
be01d343 7604else
81ecdfbb
RW
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
be01d343
PB
7607fi
7608
81ecdfbb 7609
c6b750e1 7610 test -n "$M4" && break
be01d343
PB
7611done
7612test -n "$M4" || M4="$MISSING m4"
7613
7614case " $build_configdirs " in
7615 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7616esac
7617
7618for ac_prog in flex lex
7619do
c6b750e1 7620 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7621set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623$as_echo_n "checking for $ac_word... " >&6; }
7624if test "${ac_cv_prog_LEX+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
be01d343
PB
7626else
7627 if test -n "$LEX"; then
7628 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7629else
c6b750e1
DJ
7630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH
7632do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7637 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7639 break 2
7640 fi
7641done
81ecdfbb
RW
7642 done
7643IFS=$as_save_IFS
c6b750e1 7644
be01d343
PB
7645fi
7646fi
c6b750e1 7647LEX=$ac_cv_prog_LEX
be01d343 7648if test -n "$LEX"; then
81ecdfbb
RW
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7650$as_echo "$LEX" >&6; }
be01d343 7651else
81ecdfbb
RW
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653$as_echo "no" >&6; }
be01d343
PB
7654fi
7655
81ecdfbb 7656
c6b750e1 7657 test -n "$LEX" && break
be01d343
PB
7658done
7659test -n "$LEX" || LEX="$MISSING flex"
7660
7661case " $build_configdirs " in
7662 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7663 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7664esac
7665
7666for ac_prog in flex
7667do
c6b750e1 7668 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7669set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671$as_echo_n "checking for $ac_word... " >&6; }
7672if test "${ac_cv_prog_FLEX+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
be01d343
PB
7674else
7675 if test -n "$FLEX"; then
7676 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7677else
c6b750e1
DJ
7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7685 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7687 break 2
7688 fi
7689done
81ecdfbb
RW
7690 done
7691IFS=$as_save_IFS
c6b750e1 7692
be01d343
PB
7693fi
7694fi
c6b750e1 7695FLEX=$ac_cv_prog_FLEX
be01d343 7696if test -n "$FLEX"; then
81ecdfbb
RW
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7698$as_echo "$FLEX" >&6; }
be01d343 7699else
81ecdfbb
RW
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701$as_echo "no" >&6; }
be01d343
PB
7702fi
7703
81ecdfbb 7704
c6b750e1 7705 test -n "$FLEX" && break
be01d343
PB
7706done
7707test -n "$FLEX" || FLEX="$MISSING flex"
7708
7709case " $build_configdirs " in
7710 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7711esac
7712
7713for ac_prog in makeinfo
7714do
c6b750e1 7715 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7716set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718$as_echo_n "checking for $ac_word... " >&6; }
7719if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
be01d343
PB
7721else
7722 if test -n "$MAKEINFO"; then
7723 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7724else
c6b750e1
DJ
7725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726for as_dir in $PATH
7727do
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7732 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7734 break 2
7735 fi
7736done
81ecdfbb
RW
7737 done
7738IFS=$as_save_IFS
c6b750e1 7739
be01d343
PB
7740fi
7741fi
c6b750e1 7742MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7743if test -n "$MAKEINFO"; then
81ecdfbb
RW
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7745$as_echo "$MAKEINFO" >&6; }
be01d343 7746else
81ecdfbb
RW
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748$as_echo "no" >&6; }
be01d343
PB
7749fi
7750
81ecdfbb 7751
c6b750e1 7752 test -n "$MAKEINFO" && break
be01d343
PB
7753done
7754test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7755
7756case " $build_configdirs " in
7757 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7758 *)
7759
10ad8ef3 7760 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7761 # higher, else we use the "missing" dummy.
7762 if ${MAKEINFO} --version \
10ad8ef3 7763 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7764 :
7765 else
7766 MAKEINFO="$MISSING makeinfo"
7767 fi
7768 ;;
7769
7770esac
a0da8069 7771
be01d343 7772# FIXME: expect and dejagnu may become build tools?
a0da8069 7773
be01d343
PB
7774for ac_prog in expect
7775do
c6b750e1 7776 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7777set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779$as_echo_n "checking for $ac_word... " >&6; }
7780if test "${ac_cv_prog_EXPECT+set}" = set; then :
7781 $as_echo_n "(cached) " >&6
be01d343
PB
7782else
7783 if test -n "$EXPECT"; then
7784 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7785else
c6b750e1
DJ
7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $PATH
7788do
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7793 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7795 break 2
7796 fi
7797done
81ecdfbb
RW
7798 done
7799IFS=$as_save_IFS
c6b750e1 7800
be01d343
PB
7801fi
7802fi
c6b750e1 7803EXPECT=$ac_cv_prog_EXPECT
be01d343 7804if test -n "$EXPECT"; then
81ecdfbb
RW
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7806$as_echo "$EXPECT" >&6; }
be01d343 7807else
81ecdfbb
RW
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809$as_echo "no" >&6; }
be01d343 7810fi
a0da8069 7811
81ecdfbb 7812
c6b750e1 7813 test -n "$EXPECT" && break
be01d343
PB
7814done
7815test -n "$EXPECT" || EXPECT="expect"
a0da8069 7816
be01d343
PB
7817case " $configdirs " in
7818 *" expect "*)
7819 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7820 ;;
7821esac
a0da8069 7822
be01d343
PB
7823for ac_prog in runtest
7824do
c6b750e1 7825 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7826set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828$as_echo_n "checking for $ac_word... " >&6; }
7829if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
be01d343
PB
7831else
7832 if test -n "$RUNTEST"; then
7833 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7834else
c6b750e1
DJ
7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7842 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7844 break 2
7845 fi
7846done
81ecdfbb
RW
7847 done
7848IFS=$as_save_IFS
c6b750e1 7849
be01d343
PB
7850fi
7851fi
c6b750e1 7852RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7853if test -n "$RUNTEST"; then
81ecdfbb
RW
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7855$as_echo "$RUNTEST" >&6; }
be01d343 7856else
81ecdfbb
RW
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858$as_echo "no" >&6; }
be01d343 7859fi
a0da8069 7860
81ecdfbb 7861
c6b750e1 7862 test -n "$RUNTEST" && break
be01d343
PB
7863done
7864test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7865
be01d343
PB
7866case " $configdirs " in
7867 *" dejagnu "*)
6b89cc21 7868 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7869 ;;
7870esac
a0da8069
NN
7871
7872
a0da8069 7873# Host tools.
859789af
AC
7874ncn_tool_prefix=
7875test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7876ncn_target_tool_prefix=
7877test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7878
9a819804
AO
7879
7880
7881if test -n "$AR"; then
7882 ac_cv_prog_AR=$AR
7883elif test -n "$ac_cv_prog_AR"; then
7884 AR=$ac_cv_prog_AR
7885fi
7886
7887if test -n "$ac_cv_prog_AR"; then
7888 for ncn_progname in ar; do
7889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7890set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892$as_echo_n "checking for $ac_word... " >&6; }
7893if test "${ac_cv_prog_AR+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
9a819804
AO
7895else
7896 if test -n "$AR"; then
7897 ac_cv_prog_AR="$AR" # Let the user override the test.
7898else
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7906 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7908 break 2
7909 fi
7910done
81ecdfbb
RW
7911 done
7912IFS=$as_save_IFS
9a819804
AO
7913
7914fi
7915fi
7916AR=$ac_cv_prog_AR
7917if test -n "$AR"; then
81ecdfbb
RW
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7919$as_echo "$AR" >&6; }
9a819804 7920else
81ecdfbb
RW
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
9a819804
AO
7923fi
7924
81ecdfbb 7925
9a819804
AO
7926 done
7927fi
7928
7929for ncn_progname in ar; do
05cbd757
PB
7930 if test -n "$ncn_tool_prefix"; then
7931 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7932set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934$as_echo_n "checking for $ac_word... " >&6; }
7935if test "${ac_cv_prog_AR+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
859789af
AC
7937else
7938 if test -n "$AR"; then
7939 ac_cv_prog_AR="$AR" # Let the user override the test.
7940else
c6b750e1
DJ
7941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942for as_dir in $PATH
7943do
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7948 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7950 break 2
7951 fi
7952done
81ecdfbb
RW
7953 done
7954IFS=$as_save_IFS
c6b750e1 7955
859789af
AC
7956fi
7957fi
c6b750e1 7958AR=$ac_cv_prog_AR
859789af 7959if test -n "$AR"; then
81ecdfbb
RW
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7961$as_echo "$AR" >&6; }
859789af 7962else
81ecdfbb
RW
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964$as_echo "no" >&6; }
859789af
AC
7965fi
7966
81ecdfbb 7967
05cbd757
PB
7968 fi
7969 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7971set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973$as_echo_n "checking for $ac_word... " >&6; }
7974if test "${ac_cv_prog_AR+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
859789af 7976else
05cbd757
PB
7977 if test -n "$AR"; then
7978 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7979else
c6b750e1
DJ
7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7987 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7989 break 2
7990 fi
7991done
81ecdfbb
RW
7992 done
7993IFS=$as_save_IFS
c6b750e1 7994
859789af
AC
7995fi
7996fi
c6b750e1 7997AR=$ac_cv_prog_AR
05cbd757 7998if test -n "$AR"; then
81ecdfbb
RW
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8000$as_echo "$AR" >&6; }
859789af 8001else
81ecdfbb
RW
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003$as_echo "no" >&6; }
859789af 8004fi
c6b750e1 8005
81ecdfbb 8006
05cbd757
PB
8007 fi
8008 test -n "$ac_cv_prog_AR" && break
8009done
8010
8011if test -z "$ac_cv_prog_AR" ; then
8012 set dummy ar
8013 if test $build = $host ; then
8014 AR="$2"
859789af 8015 else
05cbd757 8016 AR="${ncn_tool_prefix}$2"
859789af 8017 fi
859789af
AC
8018fi
8019
9a819804
AO
8020
8021
8022if test -n "$AS"; then
8023 ac_cv_prog_AS=$AS
8024elif test -n "$ac_cv_prog_AS"; then
8025 AS=$ac_cv_prog_AS
8026fi
8027
8028if test -n "$ac_cv_prog_AS"; then
8029 for ncn_progname in as; do
8030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8031set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033$as_echo_n "checking for $ac_word... " >&6; }
8034if test "${ac_cv_prog_AS+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
9a819804
AO
8036else
8037 if test -n "$AS"; then
8038 ac_cv_prog_AS="$AS" # Let the user override the test.
8039else
8040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041for as_dir in $PATH
8042do
8043 IFS=$as_save_IFS
8044 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8047 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8049 break 2
8050 fi
8051done
81ecdfbb
RW
8052 done
8053IFS=$as_save_IFS
9a819804
AO
8054
8055fi
8056fi
8057AS=$ac_cv_prog_AS
8058if test -n "$AS"; then
81ecdfbb
RW
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8060$as_echo "$AS" >&6; }
9a819804 8061else
81ecdfbb
RW
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063$as_echo "no" >&6; }
9a819804
AO
8064fi
8065
81ecdfbb 8066
9a819804
AO
8067 done
8068fi
8069
8070for ncn_progname in as; do
05cbd757
PB
8071 if test -n "$ncn_tool_prefix"; then
8072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8073set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075$as_echo_n "checking for $ac_word... " >&6; }
8076if test "${ac_cv_prog_AS+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
859789af
AC
8078else
8079 if test -n "$AS"; then
8080 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8081else
8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8089 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8091 break 2
8092 fi
8093done
81ecdfbb
RW
8094 done
8095IFS=$as_save_IFS
c6b750e1 8096
859789af
AC
8097fi
8098fi
c6b750e1 8099AS=$ac_cv_prog_AS
859789af 8100if test -n "$AS"; then
81ecdfbb
RW
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8102$as_echo "$AS" >&6; }
859789af 8103else
81ecdfbb
RW
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105$as_echo "no" >&6; }
859789af
AC
8106fi
8107
81ecdfbb 8108
05cbd757
PB
8109 fi
8110 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8112set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114$as_echo_n "checking for $ac_word... " >&6; }
8115if test "${ac_cv_prog_AS+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
859789af 8117else
05cbd757
PB
8118 if test -n "$AS"; then
8119 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8120else
c6b750e1
DJ
8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122for as_dir in $PATH
8123do
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8128 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8130 break 2
8131 fi
8132done
81ecdfbb
RW
8133 done
8134IFS=$as_save_IFS
c6b750e1 8135
859789af
AC
8136fi
8137fi
c6b750e1 8138AS=$ac_cv_prog_AS
05cbd757 8139if test -n "$AS"; then
81ecdfbb
RW
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8141$as_echo "$AS" >&6; }
859789af 8142else
81ecdfbb
RW
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144$as_echo "no" >&6; }
859789af 8145fi
c6b750e1 8146
81ecdfbb 8147
05cbd757
PB
8148 fi
8149 test -n "$ac_cv_prog_AS" && break
8150done
8151
8152if test -z "$ac_cv_prog_AS" ; then
8153 set dummy as
8154 if test $build = $host ; then
8155 AS="$2"
859789af 8156 else
05cbd757 8157 AS="${ncn_tool_prefix}$2"
859789af 8158 fi
859789af
AC
8159fi
8160
9a819804
AO
8161
8162
8163if test -n "$DLLTOOL"; then
8164 ac_cv_prog_DLLTOOL=$DLLTOOL
8165elif test -n "$ac_cv_prog_DLLTOOL"; then
8166 DLLTOOL=$ac_cv_prog_DLLTOOL
8167fi
8168
8169if test -n "$ac_cv_prog_DLLTOOL"; then
8170 for ncn_progname in dlltool; do
8171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8172set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174$as_echo_n "checking for $ac_word... " >&6; }
8175if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
9a819804
AO
8177else
8178 if test -n "$DLLTOOL"; then
8179 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8180else
8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182for as_dir in $PATH
8183do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8188 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8190 break 2
8191 fi
8192done
81ecdfbb
RW
8193 done
8194IFS=$as_save_IFS
9a819804
AO
8195
8196fi
8197fi
8198DLLTOOL=$ac_cv_prog_DLLTOOL
8199if test -n "$DLLTOOL"; then
81ecdfbb
RW
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8201$as_echo "$DLLTOOL" >&6; }
9a819804 8202else
81ecdfbb
RW
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204$as_echo "no" >&6; }
9a819804
AO
8205fi
8206
81ecdfbb 8207
9a819804
AO
8208 done
8209fi
8210
8211for ncn_progname in dlltool; do
05cbd757
PB
8212 if test -n "$ncn_tool_prefix"; then
8213 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8214set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216$as_echo_n "checking for $ac_word... " >&6; }
8217if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
859789af
AC
8219else
8220 if test -n "$DLLTOOL"; then
8221 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8222else
c6b750e1
DJ
8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224for as_dir in $PATH
8225do
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8230 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8232 break 2
8233 fi
8234done
81ecdfbb
RW
8235 done
8236IFS=$as_save_IFS
c6b750e1 8237
859789af
AC
8238fi
8239fi
c6b750e1 8240DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8241if test -n "$DLLTOOL"; then
81ecdfbb
RW
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8243$as_echo "$DLLTOOL" >&6; }
859789af 8244else
81ecdfbb
RW
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246$as_echo "no" >&6; }
859789af
AC
8247fi
8248
81ecdfbb 8249
05cbd757
PB
8250 fi
8251 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8253set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255$as_echo_n "checking for $ac_word... " >&6; }
8256if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
859789af 8258else
05cbd757
PB
8259 if test -n "$DLLTOOL"; then
8260 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8261else
c6b750e1
DJ
8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8269 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8271 break 2
8272 fi
8273done
81ecdfbb
RW
8274 done
8275IFS=$as_save_IFS
c6b750e1 8276
859789af
AC
8277fi
8278fi
c6b750e1 8279DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8280if test -n "$DLLTOOL"; then
81ecdfbb
RW
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8282$as_echo "$DLLTOOL" >&6; }
859789af 8283else
81ecdfbb
RW
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285$as_echo "no" >&6; }
859789af 8286fi
c6b750e1 8287
81ecdfbb 8288
05cbd757
PB
8289 fi
8290 test -n "$ac_cv_prog_DLLTOOL" && break
8291done
8292
8293if test -z "$ac_cv_prog_DLLTOOL" ; then
8294 set dummy dlltool
8295 if test $build = $host ; then
8296 DLLTOOL="$2"
859789af 8297 else
05cbd757 8298 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8299 fi
859789af
AC
8300fi
8301
9a819804
AO
8302
8303
8304if test -n "$LD"; then
8305 ac_cv_prog_LD=$LD
8306elif test -n "$ac_cv_prog_LD"; then
8307 LD=$ac_cv_prog_LD
8308fi
8309
8310if test -n "$ac_cv_prog_LD"; then
8311 for ncn_progname in ld; do
8312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8313set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315$as_echo_n "checking for $ac_word... " >&6; }
8316if test "${ac_cv_prog_LD+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
9a819804
AO
8318else
8319 if test -n "$LD"; then
8320 ac_cv_prog_LD="$LD" # Let the user override the test.
8321else
8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8329 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8331 break 2
8332 fi
8333done
81ecdfbb
RW
8334 done
8335IFS=$as_save_IFS
9a819804
AO
8336
8337fi
8338fi
8339LD=$ac_cv_prog_LD
8340if test -n "$LD"; then
81ecdfbb
RW
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8342$as_echo "$LD" >&6; }
9a819804 8343else
81ecdfbb
RW
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345$as_echo "no" >&6; }
9a819804
AO
8346fi
8347
81ecdfbb 8348
9a819804
AO
8349 done
8350fi
8351
8352for ncn_progname in ld; do
05cbd757
PB
8353 if test -n "$ncn_tool_prefix"; then
8354 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8355set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357$as_echo_n "checking for $ac_word... " >&6; }
8358if test "${ac_cv_prog_LD+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
859789af
AC
8360else
8361 if test -n "$LD"; then
8362 ac_cv_prog_LD="$LD" # Let the user override the test.
8363else
c6b750e1
DJ
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8371 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8373 break 2
8374 fi
8375done
81ecdfbb
RW
8376 done
8377IFS=$as_save_IFS
c6b750e1 8378
859789af
AC
8379fi
8380fi
c6b750e1 8381LD=$ac_cv_prog_LD
859789af 8382if test -n "$LD"; then
81ecdfbb
RW
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8384$as_echo "$LD" >&6; }
859789af 8385else
81ecdfbb
RW
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387$as_echo "no" >&6; }
859789af
AC
8388fi
8389
81ecdfbb 8390
05cbd757
PB
8391 fi
8392 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8394set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396$as_echo_n "checking for $ac_word... " >&6; }
8397if test "${ac_cv_prog_LD+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
859789af 8399else
05cbd757
PB
8400 if test -n "$LD"; then
8401 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8402else
c6b750e1
DJ
8403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404for as_dir in $PATH
8405do
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8410 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8412 break 2
8413 fi
8414done
81ecdfbb
RW
8415 done
8416IFS=$as_save_IFS
c6b750e1 8417
859789af
AC
8418fi
8419fi
c6b750e1 8420LD=$ac_cv_prog_LD
05cbd757 8421if test -n "$LD"; then
81ecdfbb
RW
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8423$as_echo "$LD" >&6; }
859789af 8424else
81ecdfbb
RW
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426$as_echo "no" >&6; }
859789af 8427fi
c6b750e1 8428
81ecdfbb 8429
05cbd757
PB
8430 fi
8431 test -n "$ac_cv_prog_LD" && break
8432done
8433
8434if test -z "$ac_cv_prog_LD" ; then
8435 set dummy ld
8436 if test $build = $host ; then
8437 LD="$2"
859789af 8438 else
05cbd757 8439 LD="${ncn_tool_prefix}$2"
859789af 8440 fi
859789af
AC
8441fi
8442
9a819804
AO
8443
8444
8445if test -n "$LIPO"; then
8446 ac_cv_prog_LIPO=$LIPO
8447elif test -n "$ac_cv_prog_LIPO"; then
8448 LIPO=$ac_cv_prog_LIPO
8449fi
8450
8451if test -n "$ac_cv_prog_LIPO"; then
8452 for ncn_progname in lipo; do
8453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8454set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456$as_echo_n "checking for $ac_word... " >&6; }
8457if test "${ac_cv_prog_LIPO+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
9a819804
AO
8459else
8460 if test -n "$LIPO"; then
8461 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8462else
8463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464for as_dir in $PATH
8465do
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8470 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8472 break 2
8473 fi
8474done
81ecdfbb
RW
8475 done
8476IFS=$as_save_IFS
9a819804
AO
8477
8478fi
8479fi
8480LIPO=$ac_cv_prog_LIPO
8481if test -n "$LIPO"; then
81ecdfbb
RW
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8483$as_echo "$LIPO" >&6; }
9a819804 8484else
81ecdfbb
RW
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486$as_echo "no" >&6; }
9a819804
AO
8487fi
8488
81ecdfbb 8489
9a819804
AO
8490 done
8491fi
8492
8493for ncn_progname in lipo; do
be01d343
PB
8494 if test -n "$ncn_tool_prefix"; then
8495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8496set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498$as_echo_n "checking for $ac_word... " >&6; }
8499if test "${ac_cv_prog_LIPO+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
be01d343
PB
8501else
8502 if test -n "$LIPO"; then
8503 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8504else
c6b750e1
DJ
8505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506for as_dir in $PATH
8507do
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8512 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8514 break 2
8515 fi
8516done
81ecdfbb
RW
8517 done
8518IFS=$as_save_IFS
c6b750e1 8519
be01d343
PB
8520fi
8521fi
c6b750e1 8522LIPO=$ac_cv_prog_LIPO
be01d343 8523if test -n "$LIPO"; then
81ecdfbb
RW
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8525$as_echo "$LIPO" >&6; }
be01d343 8526else
81ecdfbb
RW
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528$as_echo "no" >&6; }
be01d343
PB
8529fi
8530
81ecdfbb 8531
be01d343
PB
8532 fi
8533 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8535set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
8538if test "${ac_cv_prog_LIPO+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
be01d343
PB
8540else
8541 if test -n "$LIPO"; then
8542 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8543else
c6b750e1
DJ
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8551 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8553 break 2
8554 fi
8555done
81ecdfbb
RW
8556 done
8557IFS=$as_save_IFS
c6b750e1 8558
be01d343
PB
8559fi
8560fi
c6b750e1 8561LIPO=$ac_cv_prog_LIPO
be01d343 8562if test -n "$LIPO"; then
81ecdfbb
RW
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8564$as_echo "$LIPO" >&6; }
be01d343 8565else
81ecdfbb
RW
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567$as_echo "no" >&6; }
be01d343 8568fi
c6b750e1 8569
81ecdfbb 8570
be01d343
PB
8571 fi
8572 test -n "$ac_cv_prog_LIPO" && break
8573done
8574
8575if test -z "$ac_cv_prog_LIPO" ; then
8576 set dummy lipo
8577 if test $build = $host ; then
8578 LIPO="$2"
8579 else
8580 LIPO="${ncn_tool_prefix}$2"
8581 fi
8582fi
8583
9a819804
AO
8584
8585
8586if test -n "$NM"; then
8587 ac_cv_prog_NM=$NM
8588elif test -n "$ac_cv_prog_NM"; then
8589 NM=$ac_cv_prog_NM
8590fi
8591
8592if test -n "$ac_cv_prog_NM"; then
8593 for ncn_progname in nm; do
8594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8595set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597$as_echo_n "checking for $ac_word... " >&6; }
8598if test "${ac_cv_prog_NM+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
859789af
AC
8600else
8601 if test -n "$NM"; then
8602 ac_cv_prog_NM="$NM" # Let the user override the test.
8603else
c6b750e1
DJ
8604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605for as_dir in $PATH
8606do
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8611 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8613 break 2
8614 fi
8615done
81ecdfbb
RW
8616 done
8617IFS=$as_save_IFS
c6b750e1 8618
859789af
AC
8619fi
8620fi
c6b750e1 8621NM=$ac_cv_prog_NM
859789af 8622if test -n "$NM"; then
81ecdfbb
RW
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8624$as_echo "$NM" >&6; }
859789af 8625else
81ecdfbb
RW
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627$as_echo "no" >&6; }
859789af
AC
8628fi
8629
81ecdfbb 8630
9a819804
AO
8631 done
8632fi
8633
8634for ncn_progname in nm; do
8635 if test -n "$ncn_tool_prefix"; then
8636 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8637set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639$as_echo_n "checking for $ac_word... " >&6; }
8640if test "${ac_cv_prog_NM+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
859789af 8642else
05cbd757
PB
8643 if test -n "$NM"; then
8644 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8645else
c6b750e1
DJ
8646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8653 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8655 break 2
8656 fi
8657done
81ecdfbb
RW
8658 done
8659IFS=$as_save_IFS
c6b750e1 8660
859789af
AC
8661fi
8662fi
c6b750e1 8663NM=$ac_cv_prog_NM
05cbd757 8664if test -n "$NM"; then
81ecdfbb
RW
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8666$as_echo "$NM" >&6; }
859789af 8667else
81ecdfbb
RW
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669$as_echo "no" >&6; }
859789af 8670fi
c6b750e1 8671
81ecdfbb 8672
05cbd757 8673 fi
9a819804
AO
8674 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8676set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678$as_echo_n "checking for $ac_word... " >&6; }
8679if test "${ac_cv_prog_NM+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
9a819804
AO
8681else
8682 if test -n "$NM"; then
8683 ac_cv_prog_NM="$NM" # Let the user override the test.
8684else
8685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686for as_dir in $PATH
8687do
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8692 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8694 break 2
8695 fi
8696done
81ecdfbb
RW
8697 done
8698IFS=$as_save_IFS
9a819804
AO
8699
8700fi
8701fi
8702NM=$ac_cv_prog_NM
8703if test -n "$NM"; then
81ecdfbb
RW
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8705$as_echo "$NM" >&6; }
9a819804 8706else
81ecdfbb
RW
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708$as_echo "no" >&6; }
9a819804
AO
8709fi
8710
81ecdfbb 8711
9a819804
AO
8712 fi
8713 test -n "$ac_cv_prog_NM" && break
8714done
8715
8716if test -z "$ac_cv_prog_NM" ; then
8717 set dummy nm
8718 if test $build = $host ; then
8719 NM="$2"
8720 else
8721 NM="${ncn_tool_prefix}$2"
8722 fi
8723fi
8724
8725
8726
8727if test -n "$RANLIB"; then
8728 ac_cv_prog_RANLIB=$RANLIB
8729elif test -n "$ac_cv_prog_RANLIB"; then
8730 RANLIB=$ac_cv_prog_RANLIB
8731fi
8732
8733if test -n "$ac_cv_prog_RANLIB"; then
8734 for ncn_progname in ranlib; do
8735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8736set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738$as_echo_n "checking for $ac_word... " >&6; }
8739if test "${ac_cv_prog_RANLIB+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
9a819804
AO
8741else
8742 if test -n "$RANLIB"; then
8743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8744else
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8752 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8754 break 2
8755 fi
8756done
81ecdfbb
RW
8757 done
8758IFS=$as_save_IFS
9a819804
AO
8759
8760fi
8761fi
8762RANLIB=$ac_cv_prog_RANLIB
8763if test -n "$RANLIB"; then
81ecdfbb
RW
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8765$as_echo "$RANLIB" >&6; }
9a819804 8766else
81ecdfbb
RW
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768$as_echo "no" >&6; }
9a819804
AO
8769fi
8770
81ecdfbb 8771
9a819804
AO
8772 done
8773fi
859789af 8774
9a819804 8775for ncn_progname in ranlib; do
05cbd757
PB
8776 if test -n "$ncn_tool_prefix"; then
8777 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8778set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780$as_echo_n "checking for $ac_word... " >&6; }
8781if test "${ac_cv_prog_RANLIB+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
859789af
AC
8783else
8784 if test -n "$RANLIB"; then
8785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8786else
c6b750e1
DJ
8787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788for as_dir in $PATH
8789do
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8794 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8796 break 2
8797 fi
8798done
81ecdfbb
RW
8799 done
8800IFS=$as_save_IFS
c6b750e1 8801
859789af
AC
8802fi
8803fi
c6b750e1 8804RANLIB=$ac_cv_prog_RANLIB
859789af 8805if test -n "$RANLIB"; then
81ecdfbb
RW
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8807$as_echo "$RANLIB" >&6; }
859789af 8808else
81ecdfbb
RW
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810$as_echo "no" >&6; }
859789af
AC
8811fi
8812
81ecdfbb 8813
05cbd757
PB
8814 fi
8815 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8817set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819$as_echo_n "checking for $ac_word... " >&6; }
8820if test "${ac_cv_prog_RANLIB+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
859789af 8822else
05cbd757
PB
8823 if test -n "$RANLIB"; then
8824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8825else
c6b750e1
DJ
8826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827for as_dir in $PATH
8828do
8829 IFS=$as_save_IFS
8830 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8833 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8835 break 2
8836 fi
8837done
81ecdfbb
RW
8838 done
8839IFS=$as_save_IFS
c6b750e1 8840
859789af
AC
8841fi
8842fi
c6b750e1 8843RANLIB=$ac_cv_prog_RANLIB
05cbd757 8844if test -n "$RANLIB"; then
81ecdfbb
RW
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8846$as_echo "$RANLIB" >&6; }
859789af 8847else
81ecdfbb
RW
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849$as_echo "no" >&6; }
859789af 8850fi
c6b750e1 8851
81ecdfbb 8852
859789af 8853 fi
05cbd757
PB
8854 test -n "$ac_cv_prog_RANLIB" && break
8855done
8856
8857if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8858 RANLIB="true"
859789af
AC
8859fi
8860
9a819804
AO
8861
8862
8863if test -n "$STRIP"; then
8864 ac_cv_prog_STRIP=$STRIP
8865elif test -n "$ac_cv_prog_STRIP"; then
8866 STRIP=$ac_cv_prog_STRIP
8867fi
8868
8869if test -n "$ac_cv_prog_STRIP"; then
8870 for ncn_progname in strip; do
8871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8872set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874$as_echo_n "checking for $ac_word... " >&6; }
8875if test "${ac_cv_prog_STRIP+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
9a819804
AO
8877else
8878 if test -n "$STRIP"; then
8879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8880else
8881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882for as_dir in $PATH
8883do
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8888 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8890 break 2
8891 fi
8892done
81ecdfbb
RW
8893 done
8894IFS=$as_save_IFS
9a819804
AO
8895
8896fi
8897fi
8898STRIP=$ac_cv_prog_STRIP
8899if test -n "$STRIP"; then
81ecdfbb
RW
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8901$as_echo "$STRIP" >&6; }
9a819804 8902else
81ecdfbb
RW
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904$as_echo "no" >&6; }
9a819804
AO
8905fi
8906
81ecdfbb 8907
9a819804
AO
8908 done
8909fi
8910
8911for ncn_progname in strip; do
be01d343
PB
8912 if test -n "$ncn_tool_prefix"; then
8913 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8914set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916$as_echo_n "checking for $ac_word... " >&6; }
8917if test "${ac_cv_prog_STRIP+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
be01d343
PB
8919else
8920 if test -n "$STRIP"; then
8921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8922else
c6b750e1
DJ
8923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924for as_dir in $PATH
8925do
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8930 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8932 break 2
8933 fi
8934done
81ecdfbb
RW
8935 done
8936IFS=$as_save_IFS
c6b750e1 8937
be01d343
PB
8938fi
8939fi
c6b750e1 8940STRIP=$ac_cv_prog_STRIP
be01d343 8941if test -n "$STRIP"; then
81ecdfbb
RW
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8943$as_echo "$STRIP" >&6; }
be01d343 8944else
81ecdfbb
RW
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946$as_echo "no" >&6; }
be01d343
PB
8947fi
8948
81ecdfbb 8949
be01d343
PB
8950 fi
8951 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8953set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955$as_echo_n "checking for $ac_word... " >&6; }
8956if test "${ac_cv_prog_STRIP+set}" = set; then :
8957 $as_echo_n "(cached) " >&6
be01d343
PB
8958else
8959 if test -n "$STRIP"; then
8960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8961else
c6b750e1
DJ
8962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963for as_dir in $PATH
8964do
8965 IFS=$as_save_IFS
8966 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8967 for ac_exec_ext in '' $ac_executable_extensions; do
8968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8969 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8971 break 2
8972 fi
8973done
81ecdfbb
RW
8974 done
8975IFS=$as_save_IFS
c6b750e1 8976
be01d343
PB
8977fi
8978fi
c6b750e1 8979STRIP=$ac_cv_prog_STRIP
be01d343 8980if test -n "$STRIP"; then
81ecdfbb
RW
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8982$as_echo "$STRIP" >&6; }
be01d343 8983else
81ecdfbb
RW
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985$as_echo "no" >&6; }
be01d343 8986fi
c6b750e1 8987
81ecdfbb 8988
be01d343
PB
8989 fi
8990 test -n "$ac_cv_prog_STRIP" && break
8991done
8992
8993if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 8994 STRIP="true"
be01d343
PB
8995fi
8996
9a819804
AO
8997
8998
8999if test -n "$WINDRES"; then
9000 ac_cv_prog_WINDRES=$WINDRES
9001elif test -n "$ac_cv_prog_WINDRES"; then
9002 WINDRES=$ac_cv_prog_WINDRES
9003fi
9004
9005if test -n "$ac_cv_prog_WINDRES"; then
9006 for ncn_progname in windres; do
9007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9008set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010$as_echo_n "checking for $ac_word... " >&6; }
9011if test "${ac_cv_prog_WINDRES+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9a819804
AO
9013else
9014 if test -n "$WINDRES"; then
9015 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9016else
9017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018for as_dir in $PATH
9019do
9020 IFS=$as_save_IFS
9021 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9024 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9026 break 2
9027 fi
9028done
81ecdfbb
RW
9029 done
9030IFS=$as_save_IFS
9a819804
AO
9031
9032fi
9033fi
9034WINDRES=$ac_cv_prog_WINDRES
9035if test -n "$WINDRES"; then
81ecdfbb
RW
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9037$as_echo "$WINDRES" >&6; }
9a819804 9038else
81ecdfbb
RW
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040$as_echo "no" >&6; }
9a819804
AO
9041fi
9042
81ecdfbb 9043
9a819804
AO
9044 done
9045fi
9046
9047for ncn_progname in windres; do
05cbd757
PB
9048 if test -n "$ncn_tool_prefix"; then
9049 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9050set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052$as_echo_n "checking for $ac_word... " >&6; }
9053if test "${ac_cv_prog_WINDRES+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
859789af
AC
9055else
9056 if test -n "$WINDRES"; then
9057 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9058else
c6b750e1
DJ
9059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060for as_dir in $PATH
9061do
9062 IFS=$as_save_IFS
9063 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9066 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9068 break 2
9069 fi
9070done
81ecdfbb
RW
9071 done
9072IFS=$as_save_IFS
c6b750e1 9073
859789af
AC
9074fi
9075fi
c6b750e1 9076WINDRES=$ac_cv_prog_WINDRES
859789af 9077if test -n "$WINDRES"; then
81ecdfbb
RW
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9079$as_echo "$WINDRES" >&6; }
859789af 9080else
81ecdfbb
RW
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082$as_echo "no" >&6; }
859789af
AC
9083fi
9084
81ecdfbb 9085
05cbd757
PB
9086 fi
9087 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9089set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091$as_echo_n "checking for $ac_word... " >&6; }
9092if test "${ac_cv_prog_WINDRES+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
859789af 9094else
05cbd757
PB
9095 if test -n "$WINDRES"; then
9096 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9097else
c6b750e1
DJ
9098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099for as_dir in $PATH
9100do
9101 IFS=$as_save_IFS
9102 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9103 for ac_exec_ext in '' $ac_executable_extensions; do
9104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9105 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9107 break 2
9108 fi
9109done
81ecdfbb
RW
9110 done
9111IFS=$as_save_IFS
c6b750e1 9112
859789af
AC
9113fi
9114fi
c6b750e1 9115WINDRES=$ac_cv_prog_WINDRES
05cbd757 9116if test -n "$WINDRES"; then
81ecdfbb
RW
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9118$as_echo "$WINDRES" >&6; }
859789af 9119else
81ecdfbb
RW
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121$as_echo "no" >&6; }
859789af 9122fi
c6b750e1 9123
81ecdfbb 9124
05cbd757
PB
9125 fi
9126 test -n "$ac_cv_prog_WINDRES" && break
9127done
9128
9129if test -z "$ac_cv_prog_WINDRES" ; then
9130 set dummy windres
9131 if test $build = $host ; then
9132 WINDRES="$2"
859789af 9133 else
05cbd757 9134 WINDRES="${ncn_tool_prefix}$2"
859789af 9135 fi
859789af
AC
9136fi
9137
9a819804
AO
9138
9139
0c24b341
NC
9140if test -n "$WINDMC"; then
9141 ac_cv_prog_WINDMC=$WINDMC
9142elif test -n "$ac_cv_prog_WINDMC"; then
9143 WINDMC=$ac_cv_prog_WINDMC
9144fi
9145
9146if test -n "$ac_cv_prog_WINDMC"; then
9147 for ncn_progname in windmc; do
9148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9149set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151$as_echo_n "checking for $ac_word... " >&6; }
9152if test "${ac_cv_prog_WINDMC+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
0c24b341
NC
9154else
9155 if test -n "$WINDMC"; then
9156 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9157else
9158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159for as_dir in $PATH
9160do
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9165 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9167 break 2
9168 fi
9169done
81ecdfbb
RW
9170 done
9171IFS=$as_save_IFS
0c24b341
NC
9172
9173fi
9174fi
9175WINDMC=$ac_cv_prog_WINDMC
9176if test -n "$WINDMC"; then
81ecdfbb
RW
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9178$as_echo "$WINDMC" >&6; }
0c24b341 9179else
81ecdfbb
RW
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181$as_echo "no" >&6; }
0c24b341
NC
9182fi
9183
81ecdfbb 9184
0c24b341
NC
9185 done
9186fi
9187
9188for ncn_progname in windmc; do
9189 if test -n "$ncn_tool_prefix"; then
9190 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9191set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9193$as_echo_n "checking for $ac_word... " >&6; }
9194if test "${ac_cv_prog_WINDMC+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
0c24b341
NC
9196else
9197 if test -n "$WINDMC"; then
9198 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9199else
9200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201for as_dir in $PATH
9202do
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9207 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9209 break 2
9210 fi
9211done
81ecdfbb
RW
9212 done
9213IFS=$as_save_IFS
0c24b341
NC
9214
9215fi
9216fi
9217WINDMC=$ac_cv_prog_WINDMC
9218if test -n "$WINDMC"; then
81ecdfbb
RW
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9220$as_echo "$WINDMC" >&6; }
0c24b341 9221else
81ecdfbb
RW
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223$as_echo "no" >&6; }
0c24b341
NC
9224fi
9225
81ecdfbb 9226
0c24b341
NC
9227 fi
9228 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9230set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9232$as_echo_n "checking for $ac_word... " >&6; }
9233if test "${ac_cv_prog_WINDMC+set}" = set; then :
9234 $as_echo_n "(cached) " >&6
0c24b341
NC
9235else
9236 if test -n "$WINDMC"; then
9237 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9238else
9239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240for as_dir in $PATH
9241do
9242 IFS=$as_save_IFS
9243 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9246 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9248 break 2
9249 fi
9250done
81ecdfbb
RW
9251 done
9252IFS=$as_save_IFS
0c24b341
NC
9253
9254fi
9255fi
9256WINDMC=$ac_cv_prog_WINDMC
9257if test -n "$WINDMC"; then
81ecdfbb
RW
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9259$as_echo "$WINDMC" >&6; }
0c24b341 9260else
81ecdfbb
RW
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262$as_echo "no" >&6; }
0c24b341
NC
9263fi
9264
81ecdfbb 9265
0c24b341
NC
9266 fi
9267 test -n "$ac_cv_prog_WINDMC" && break
9268done
9269
9270if test -z "$ac_cv_prog_WINDMC" ; then
9271 set dummy windmc
9272 if test $build = $host ; then
9273 WINDMC="$2"
9274 else
9275 WINDMC="${ncn_tool_prefix}$2"
9276 fi
9277fi
9278
9279
9280
9a819804
AO
9281if test -n "$OBJCOPY"; then
9282 ac_cv_prog_OBJCOPY=$OBJCOPY
9283elif test -n "$ac_cv_prog_OBJCOPY"; then
9284 OBJCOPY=$ac_cv_prog_OBJCOPY
9285fi
9286
9287if test -n "$ac_cv_prog_OBJCOPY"; then
9288 for ncn_progname in objcopy; do
9289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9290set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292$as_echo_n "checking for $ac_word... " >&6; }
9293if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9a819804
AO
9295else
9296 if test -n "$OBJCOPY"; then
9297 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9298else
9299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300for as_dir in $PATH
9301do
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9306 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9308 break 2
9309 fi
9310done
81ecdfbb
RW
9311 done
9312IFS=$as_save_IFS
9a819804
AO
9313
9314fi
9315fi
9316OBJCOPY=$ac_cv_prog_OBJCOPY
9317if test -n "$OBJCOPY"; then
81ecdfbb
RW
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9319$as_echo "$OBJCOPY" >&6; }
9a819804 9320else
81ecdfbb
RW
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322$as_echo "no" >&6; }
9a819804
AO
9323fi
9324
81ecdfbb 9325
9a819804
AO
9326 done
9327fi
9328
9329for ncn_progname in objcopy; do
05cbd757
PB
9330 if test -n "$ncn_tool_prefix"; then
9331 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9332set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334$as_echo_n "checking for $ac_word... " >&6; }
9335if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9336 $as_echo_n "(cached) " >&6
859789af
AC
9337else
9338 if test -n "$OBJCOPY"; then
9339 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9340else
c6b750e1
DJ
9341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342for as_dir in $PATH
9343do
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9348 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9350 break 2
9351 fi
9352done
81ecdfbb
RW
9353 done
9354IFS=$as_save_IFS
c6b750e1 9355
859789af
AC
9356fi
9357fi
c6b750e1 9358OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9359if test -n "$OBJCOPY"; then
81ecdfbb
RW
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9361$as_echo "$OBJCOPY" >&6; }
859789af 9362else
81ecdfbb
RW
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364$as_echo "no" >&6; }
859789af
AC
9365fi
9366
81ecdfbb 9367
05cbd757
PB
9368 fi
9369 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9371set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373$as_echo_n "checking for $ac_word... " >&6; }
9374if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9375 $as_echo_n "(cached) " >&6
859789af 9376else
05cbd757
PB
9377 if test -n "$OBJCOPY"; then
9378 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9379else
c6b750e1
DJ
9380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381for as_dir in $PATH
9382do
9383 IFS=$as_save_IFS
9384 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9385 for ac_exec_ext in '' $ac_executable_extensions; do
9386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9387 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9389 break 2
9390 fi
9391done
81ecdfbb
RW
9392 done
9393IFS=$as_save_IFS
c6b750e1 9394
859789af
AC
9395fi
9396fi
c6b750e1 9397OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9398if test -n "$OBJCOPY"; then
81ecdfbb
RW
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9400$as_echo "$OBJCOPY" >&6; }
859789af 9401else
81ecdfbb
RW
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403$as_echo "no" >&6; }
859789af 9404fi
c6b750e1 9405
81ecdfbb 9406
05cbd757
PB
9407 fi
9408 test -n "$ac_cv_prog_OBJCOPY" && break
9409done
9410
9411if test -z "$ac_cv_prog_OBJCOPY" ; then
9412 set dummy objcopy
9413 if test $build = $host ; then
9414 OBJCOPY="$2"
859789af 9415 else
05cbd757 9416 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9417 fi
859789af
AC
9418fi
9419
9a819804
AO
9420
9421
9422if test -n "$OBJDUMP"; then
9423 ac_cv_prog_OBJDUMP=$OBJDUMP
9424elif test -n "$ac_cv_prog_OBJDUMP"; then
9425 OBJDUMP=$ac_cv_prog_OBJDUMP
9426fi
9427
9428if test -n "$ac_cv_prog_OBJDUMP"; then
9429 for ncn_progname in objdump; do
9430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9431set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433$as_echo_n "checking for $ac_word... " >&6; }
9434if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9435 $as_echo_n "(cached) " >&6
9a819804
AO
9436else
9437 if test -n "$OBJDUMP"; then
9438 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9439else
9440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441for as_dir in $PATH
9442do
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9447 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9449 break 2
9450 fi
9451done
81ecdfbb
RW
9452 done
9453IFS=$as_save_IFS
9a819804
AO
9454
9455fi
9456fi
9457OBJDUMP=$ac_cv_prog_OBJDUMP
9458if test -n "$OBJDUMP"; then
81ecdfbb
RW
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9460$as_echo "$OBJDUMP" >&6; }
9a819804 9461else
81ecdfbb
RW
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463$as_echo "no" >&6; }
9a819804
AO
9464fi
9465
81ecdfbb 9466
9a819804
AO
9467 done
9468fi
9469
9470for ncn_progname in objdump; do
05cbd757
PB
9471 if test -n "$ncn_tool_prefix"; then
9472 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9473set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475$as_echo_n "checking for $ac_word... " >&6; }
9476if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
859789af
AC
9478else
9479 if test -n "$OBJDUMP"; then
9480 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9481else
c6b750e1
DJ
9482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9483for as_dir in $PATH
9484do
9485 IFS=$as_save_IFS
9486 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9487 for ac_exec_ext in '' $ac_executable_extensions; do
9488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9489 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9491 break 2
9492 fi
9493done
81ecdfbb
RW
9494 done
9495IFS=$as_save_IFS
c6b750e1 9496
859789af
AC
9497fi
9498fi
c6b750e1 9499OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9500if test -n "$OBJDUMP"; then
81ecdfbb
RW
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9502$as_echo "$OBJDUMP" >&6; }
859789af 9503else
81ecdfbb
RW
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505$as_echo "no" >&6; }
859789af
AC
9506fi
9507
81ecdfbb 9508
05cbd757
PB
9509 fi
9510 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9512set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9514$as_echo_n "checking for $ac_word... " >&6; }
9515if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9516 $as_echo_n "(cached) " >&6
859789af 9517else
05cbd757
PB
9518 if test -n "$OBJDUMP"; then
9519 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9520else
c6b750e1
DJ
9521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522for as_dir in $PATH
9523do
9524 IFS=$as_save_IFS
9525 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9526 for ac_exec_ext in '' $ac_executable_extensions; do
9527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9528 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9530 break 2
9531 fi
9532done
81ecdfbb
RW
9533 done
9534IFS=$as_save_IFS
c6b750e1 9535
859789af
AC
9536fi
9537fi
c6b750e1 9538OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9539if test -n "$OBJDUMP"; then
81ecdfbb
RW
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9541$as_echo "$OBJDUMP" >&6; }
859789af 9542else
81ecdfbb
RW
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544$as_echo "no" >&6; }
859789af 9545fi
c6b750e1 9546
81ecdfbb 9547
05cbd757
PB
9548 fi
9549 test -n "$ac_cv_prog_OBJDUMP" && break
9550done
9551
9552if test -z "$ac_cv_prog_OBJDUMP" ; then
9553 set dummy objdump
9554 if test $build = $host ; then
9555 OBJDUMP="$2"
859789af 9556 else
05cbd757 9557 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9558 fi
859789af
AC
9559fi
9560
a0da8069
NN
9561
9562
9563
9564
9565
be01d343 9566# Target tools.
c6b750e1 9567
81ecdfbb
RW
9568# Check whether --with-build-time-tools was given.
9569if test "${with_build_time_tools+set}" = set; then :
9570 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9571 x/*) ;;
9572 *)
9573 with_build_time_tools=
81ecdfbb
RW
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9575$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9576 ;;
9577 esac
859789af 9578else
2429c060 9579 with_build_time_tools=
81ecdfbb
RW
9580fi
9581
859789af 9582
9a819804
AO
9583
9584
9585if test -n "$CC_FOR_TARGET"; then
9586 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9587elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9588 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9589fi
9590
9591if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9592 for ncn_progname in cc gcc; do
9593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9594set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596$as_echo_n "checking for $ac_word... " >&6; }
9597if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9a819804
AO
9599else
9600 if test -n "$CC_FOR_TARGET"; then
9601 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9602else
9603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604for as_dir in $PATH
9605do
9606 IFS=$as_save_IFS
9607 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9608 for ac_exec_ext in '' $ac_executable_extensions; do
9609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9610 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9612 break 2
9613 fi
9614done
81ecdfbb
RW
9615 done
9616IFS=$as_save_IFS
9a819804
AO
9617
9618fi
9619fi
9620CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9621if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9623$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9624else
81ecdfbb
RW
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626$as_echo "no" >&6; }
9a819804
AO
9627fi
9628
81ecdfbb 9629
9a819804
AO
9630 done
9631fi
9632
9633if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9634 for ncn_progname in cc gcc; do
81ecdfbb
RW
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9636$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9637 if test -x $with_build_time_tools/${ncn_progname}; then
9638 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9640$as_echo "yes" >&6; }
cac3d6c4 9641 break
2429c060 9642 else
81ecdfbb
RW
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644$as_echo "no" >&6; }
cac3d6c4
CM
9645 fi
9646 done
55db4b87
PB
9647fi
9648
2429c060
PB
9649if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9650 for ncn_progname in cc gcc; do
9651 if test -n "$ncn_target_tool_prefix"; then
9652 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9653set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655$as_echo_n "checking for $ac_word... " >&6; }
9656if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
55db4b87
PB
9658else
9659 if test -n "$CC_FOR_TARGET"; then
9660 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9661else
c6b750e1
DJ
9662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663for as_dir in $PATH
9664do
9665 IFS=$as_save_IFS
9666 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9669 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9671 break 2
9672 fi
9673done
81ecdfbb
RW
9674 done
9675IFS=$as_save_IFS
c6b750e1 9676
55db4b87
PB
9677fi
9678fi
c6b750e1 9679CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9680if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9682$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9683else
81ecdfbb
RW
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685$as_echo "no" >&6; }
55db4b87
PB
9686fi
9687
81ecdfbb 9688
2429c060
PB
9689 fi
9690 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9692set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9694$as_echo_n "checking for $ac_word... " >&6; }
9695if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9696 $as_echo_n "(cached) " >&6
55db4b87 9697else
05cbd757
PB
9698 if test -n "$CC_FOR_TARGET"; then
9699 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9700else
c6b750e1
DJ
9701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702for as_dir in $PATH
9703do
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9706 for ac_exec_ext in '' $ac_executable_extensions; do
9707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9708 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9710 break 2
9711 fi
9712done
81ecdfbb
RW
9713 done
9714IFS=$as_save_IFS
c6b750e1 9715
55db4b87
PB
9716fi
9717fi
c6b750e1 9718CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9719if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9721$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9722else
81ecdfbb
RW
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724$as_echo "no" >&6; }
55db4b87 9725fi
c6b750e1 9726
81ecdfbb 9727
2429c060
PB
9728 fi
9729 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9730 done
9731fi
c6b750e1 9732
05cbd757
PB
9733if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9734 set dummy cc gcc
9735 if test $build = $target ; then
9736 CC_FOR_TARGET="$2"
55db4b87 9737 else
05cbd757 9738 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9739 fi
d3f5afc4
MS
9740else
9741 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9742fi
9743
9a819804
AO
9744
9745
9746if test -n "$CXX_FOR_TARGET"; then
9747 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9748elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9749 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9750fi
9751
9752if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9753 for ncn_progname in c++ g++ cxx gxx; do
9754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9755set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9757$as_echo_n "checking for $ac_word... " >&6; }
9758if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9a819804
AO
9760else
9761 if test -n "$CXX_FOR_TARGET"; then
9762 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9763else
9764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765for as_dir in $PATH
9766do
9767 IFS=$as_save_IFS
9768 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9771 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9773 break 2
9774 fi
9775done
81ecdfbb
RW
9776 done
9777IFS=$as_save_IFS
9a819804
AO
9778
9779fi
9780fi
9781CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9782if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9784$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9785else
81ecdfbb
RW
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787$as_echo "no" >&6; }
9a819804
AO
9788fi
9789
81ecdfbb 9790
9a819804
AO
9791 done
9792fi
9793
9794if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9795 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9797$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9798 if test -x $with_build_time_tools/${ncn_progname}; then
9799 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9801$as_echo "yes" >&6; }
2429c060
PB
9802 break
9803 else
81ecdfbb
RW
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805$as_echo "no" >&6; }
2429c060
PB
9806 fi
9807 done
9808fi
9809
9810if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9811 for ncn_progname in c++ g++ cxx gxx; do
9812 if test -n "$ncn_target_tool_prefix"; then
9813 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9814set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816$as_echo_n "checking for $ac_word... " >&6; }
9817if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
55db4b87
PB
9819else
9820 if test -n "$CXX_FOR_TARGET"; then
9821 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9822else
c6b750e1
DJ
9823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9830 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9832 break 2
9833 fi
9834done
81ecdfbb
RW
9835 done
9836IFS=$as_save_IFS
c6b750e1 9837
55db4b87
PB
9838fi
9839fi
c6b750e1 9840CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9841if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9843$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9844else
81ecdfbb
RW
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846$as_echo "no" >&6; }
55db4b87
PB
9847fi
9848
81ecdfbb 9849
2429c060
PB
9850 fi
9851 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9853set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9855$as_echo_n "checking for $ac_word... " >&6; }
9856if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9857 $as_echo_n "(cached) " >&6
55db4b87 9858else
05cbd757
PB
9859 if test -n "$CXX_FOR_TARGET"; then
9860 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9861else
c6b750e1
DJ
9862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863for as_dir in $PATH
9864do
9865 IFS=$as_save_IFS
9866 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9867 for ac_exec_ext in '' $ac_executable_extensions; do
9868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9869 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9871 break 2
9872 fi
9873done
81ecdfbb
RW
9874 done
9875IFS=$as_save_IFS
c6b750e1 9876
55db4b87
PB
9877fi
9878fi
c6b750e1 9879CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9880if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9882$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9883else
81ecdfbb
RW
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885$as_echo "no" >&6; }
55db4b87 9886fi
c6b750e1 9887
81ecdfbb 9888
2429c060
PB
9889 fi
9890 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9891 done
9892fi
c6b750e1 9893
05cbd757
PB
9894if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9895 set dummy c++ g++ cxx gxx
9896 if test $build = $target ; then
9897 CXX_FOR_TARGET="$2"
55db4b87 9898 else
05cbd757 9899 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9900 fi
d3f5afc4
MS
9901else
9902 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9903fi
9904
9a819804
AO
9905
9906
9907if test -n "$GCC_FOR_TARGET"; then
9908 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9909elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9910 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9911fi
9912
9913if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9914 for ncn_progname in gcc; do
9915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9916set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918$as_echo_n "checking for $ac_word... " >&6; }
9919if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9a819804
AO
9921else
9922 if test -n "$GCC_FOR_TARGET"; then
9923 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9924else
9925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926for as_dir in $PATH
9927do
9928 IFS=$as_save_IFS
9929 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9930 for ac_exec_ext in '' $ac_executable_extensions; do
9931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9932 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9934 break 2
9935 fi
9936done
81ecdfbb
RW
9937 done
9938IFS=$as_save_IFS
9a819804
AO
9939
9940fi
9941fi
9942GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9943if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9945$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 9946else
81ecdfbb
RW
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948$as_echo "no" >&6; }
9a819804
AO
9949fi
9950
81ecdfbb 9951
9a819804
AO
9952 done
9953fi
9954
9955if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9956 for ncn_progname in gcc; do
81ecdfbb
RW
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9958$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9959 if test -x $with_build_time_tools/${ncn_progname}; then
9960 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9962$as_echo "yes" >&6; }
2429c060
PB
9963 break
9964 else
81ecdfbb
RW
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966$as_echo "no" >&6; }
2429c060
PB
9967 fi
9968 done
9969fi
9970
9971if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9972 for ncn_progname in gcc; do
9973 if test -n "$ncn_target_tool_prefix"; then
9974 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9975set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977$as_echo_n "checking for $ac_word... " >&6; }
9978if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9979 $as_echo_n "(cached) " >&6
859789af 9980else
2429c060
PB
9981 if test -n "$GCC_FOR_TARGET"; then
9982 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9983else
c6b750e1
DJ
9984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985for as_dir in $PATH
9986do
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9991 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9993 break 2
9994 fi
9995done
81ecdfbb
RW
9996 done
9997IFS=$as_save_IFS
c6b750e1 9998
55db4b87
PB
9999fi
10000fi
c6b750e1 10001GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10002if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10004$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10005else
81ecdfbb
RW
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007$as_echo "no" >&6; }
55db4b87
PB
10008fi
10009
81ecdfbb 10010
2429c060
PB
10011 fi
10012 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10014set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10016$as_echo_n "checking for $ac_word... " >&6; }
10017if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10018 $as_echo_n "(cached) " >&6
55db4b87 10019else
05cbd757
PB
10020 if test -n "$GCC_FOR_TARGET"; then
10021 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10022else
c6b750e1
DJ
10023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024for as_dir in $PATH
10025do
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10030 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10032 break 2
10033 fi
10034done
81ecdfbb
RW
10035 done
10036IFS=$as_save_IFS
c6b750e1 10037
55db4b87
PB
10038fi
10039fi
c6b750e1 10040GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10041if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10043$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10044else
81ecdfbb
RW
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046$as_echo "no" >&6; }
55db4b87 10047fi
c6b750e1 10048
81ecdfbb 10049
2429c060
PB
10050 fi
10051 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10052 done
10053fi
c6b750e1 10054
05cbd757
PB
10055if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10056 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10057else
10058 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10059fi
10060
9a819804
AO
10061
10062
10063if test -n "$GCJ_FOR_TARGET"; then
10064 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10065elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10066 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10067fi
10068
10069if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10070 for ncn_progname in gcj; do
10071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10072set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10074$as_echo_n "checking for $ac_word... " >&6; }
10075if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10076 $as_echo_n "(cached) " >&6
9a819804
AO
10077else
10078 if test -n "$GCJ_FOR_TARGET"; then
10079 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10080else
10081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082for as_dir in $PATH
10083do
10084 IFS=$as_save_IFS
10085 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10086 for ac_exec_ext in '' $ac_executable_extensions; do
10087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10088 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10090 break 2
10091 fi
10092done
81ecdfbb
RW
10093 done
10094IFS=$as_save_IFS
9a819804
AO
10095
10096fi
10097fi
10098GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10099if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10101$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10102else
81ecdfbb
RW
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104$as_echo "no" >&6; }
9a819804
AO
10105fi
10106
81ecdfbb 10107
9a819804
AO
10108 done
10109fi
10110
10111if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10112 for ncn_progname in gcj; do
81ecdfbb
RW
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10114$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10115 if test -x $with_build_time_tools/${ncn_progname}; then
10116 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10118$as_echo "yes" >&6; }
2429c060
PB
10119 break
10120 else
81ecdfbb
RW
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122$as_echo "no" >&6; }
2429c060
PB
10123 fi
10124 done
10125fi
10126
10127if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10128 for ncn_progname in gcj; do
10129 if test -n "$ncn_target_tool_prefix"; then
10130 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10131set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133$as_echo_n "checking for $ac_word... " >&6; }
10134if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
55db4b87
PB
10136else
10137 if test -n "$GCJ_FOR_TARGET"; then
10138 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10139else
c6b750e1
DJ
10140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141for as_dir in $PATH
10142do
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10147 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10149 break 2
10150 fi
10151done
81ecdfbb
RW
10152 done
10153IFS=$as_save_IFS
c6b750e1 10154
55db4b87
PB
10155fi
10156fi
9a819804
AO
10157GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10158if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10160$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10161else
81ecdfbb
RW
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163$as_echo "no" >&6; }
9a819804
AO
10164fi
10165
81ecdfbb 10166
9a819804
AO
10167 fi
10168 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10170set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172$as_echo_n "checking for $ac_word... " >&6; }
10173if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10174 $as_echo_n "(cached) " >&6
9a819804
AO
10175else
10176 if test -n "$GCJ_FOR_TARGET"; then
10177 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10178else
10179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180for as_dir in $PATH
10181do
10182 IFS=$as_save_IFS
10183 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10186 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10188 break 2
10189 fi
10190done
81ecdfbb
RW
10191 done
10192IFS=$as_save_IFS
9a819804
AO
10193
10194fi
10195fi
10196GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10197if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10199$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10200else
81ecdfbb
RW
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202$as_echo "no" >&6; }
9a819804
AO
10203fi
10204
81ecdfbb 10205
9a819804
AO
10206 fi
10207 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10208 done
10209fi
10210
10211if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10212 set dummy gcj
10213 if test $build = $target ; then
10214 GCJ_FOR_TARGET="$2"
10215 else
10216 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10217 fi
d3f5afc4
MS
10218else
10219 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10220fi
10221
10222
10223
10224if test -n "$GFORTRAN_FOR_TARGET"; then
10225 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10226elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10227 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10228fi
10229
9a819804
AO
10230if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10231 for ncn_progname in gfortran; do
10232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10233set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10235$as_echo_n "checking for $ac_word... " >&6; }
10236if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10237 $as_echo_n "(cached) " >&6
55db4b87 10238else
9a819804
AO
10239 if test -n "$GFORTRAN_FOR_TARGET"; then
10240 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10241else
c6b750e1
DJ
10242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10243for as_dir in $PATH
10244do
10245 IFS=$as_save_IFS
10246 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10247 for ac_exec_ext in '' $ac_executable_extensions; do
10248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10249 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10251 break 2
10252 fi
10253done
81ecdfbb
RW
10254 done
10255IFS=$as_save_IFS
c6b750e1 10256
55db4b87
PB
10257fi
10258fi
9a819804
AO
10259GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10260if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10262$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10263else
81ecdfbb
RW
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265$as_echo "no" >&6; }
55db4b87 10266fi
c6b750e1 10267
81ecdfbb 10268
2429c060
PB
10269 done
10270fi
c6b750e1 10271
9a819804 10272if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10273 for ncn_progname in gfortran; do
81ecdfbb
RW
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10275$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10276 if test -x $with_build_time_tools/${ncn_progname}; then
10277 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10279$as_echo "yes" >&6; }
2429c060
PB
10280 break
10281 else
81ecdfbb
RW
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283$as_echo "no" >&6; }
2429c060
PB
10284 fi
10285 done
10286fi
10287
10288if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10289 for ncn_progname in gfortran; do
10290 if test -n "$ncn_target_tool_prefix"; then
10291 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10292set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294$as_echo_n "checking for $ac_word... " >&6; }
10295if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10296 $as_echo_n "(cached) " >&6
55db4b87
PB
10297else
10298 if test -n "$GFORTRAN_FOR_TARGET"; then
10299 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10300else
c6b750e1
DJ
10301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302for as_dir in $PATH
10303do
10304 IFS=$as_save_IFS
10305 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10308 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10310 break 2
10311 fi
10312done
81ecdfbb
RW
10313 done
10314IFS=$as_save_IFS
c6b750e1 10315
55db4b87
PB
10316fi
10317fi
c6b750e1 10318GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10319if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10321$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10322else
81ecdfbb
RW
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324$as_echo "no" >&6; }
55db4b87
PB
10325fi
10326
81ecdfbb 10327
2429c060
PB
10328 fi
10329 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10331set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10333$as_echo_n "checking for $ac_word... " >&6; }
10334if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10335 $as_echo_n "(cached) " >&6
55db4b87 10336else
05cbd757 10337 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10338 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10339else
10340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341for as_dir in $PATH
10342do
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10345 for ac_exec_ext in '' $ac_executable_extensions; do
10346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10347 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10349 break 2
10350 fi
10351done
81ecdfbb
RW
10352 done
10353IFS=$as_save_IFS
c6b750e1 10354
55db4b87
PB
10355fi
10356fi
c6b750e1 10357GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10358if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10360$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10361else
81ecdfbb
RW
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363$as_echo "no" >&6; }
55db4b87 10364fi
c6b750e1 10365
81ecdfbb 10366
2429c060
PB
10367 fi
10368 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10369 done
10370fi
c6b750e1 10371
05cbd757
PB
10372if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10373 set dummy gfortran
10374 if test $build = $target ; then
10375 GFORTRAN_FOR_TARGET="$2"
55db4b87 10376 else
05cbd757 10377 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10378 fi
d3f5afc4
MS
10379else
10380 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10381fi
10382
2429c060
PB
10383
10384
e552509b
ILT
10385if test -n "$GOC_FOR_TARGET"; then
10386 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10387elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10388 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10389fi
10390
10391if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10392 for ncn_progname in gccgo; do
10393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10394set dummy ${ncn_progname}; ac_word=$2
10395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396$as_echo_n "checking for $ac_word... " >&6; }
10397if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399else
10400 if test -n "$GOC_FOR_TARGET"; then
10401 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10402else
10403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404for as_dir in $PATH
10405do
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10410 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10413 fi
10414done
10415 done
10416IFS=$as_save_IFS
10417
10418fi
10419fi
10420GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10421if test -n "$GOC_FOR_TARGET"; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10423$as_echo "$GOC_FOR_TARGET" >&6; }
10424else
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426$as_echo "no" >&6; }
10427fi
10428
10429
10430 done
10431fi
10432
10433if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10434 for ncn_progname in gccgo; do
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10436$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10437 if test -x $with_build_time_tools/${ncn_progname}; then
10438 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10440$as_echo "yes" >&6; }
10441 break
10442 else
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444$as_echo "no" >&6; }
10445 fi
10446 done
10447fi
10448
10449if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10450 for ncn_progname in gccgo; do
10451 if test -n "$ncn_target_tool_prefix"; then
10452 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10453set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10455$as_echo_n "checking for $ac_word... " >&6; }
10456if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10457 $as_echo_n "(cached) " >&6
10458else
10459 if test -n "$GOC_FOR_TARGET"; then
10460 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10461else
10462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463for as_dir in $PATH
10464do
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
10467 for ac_exec_ext in '' $ac_executable_extensions; do
10468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10469 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10471 break 2
10472 fi
10473done
10474 done
10475IFS=$as_save_IFS
10476
10477fi
10478fi
10479GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10480if test -n "$GOC_FOR_TARGET"; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10482$as_echo "$GOC_FOR_TARGET" >&6; }
10483else
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485$as_echo "no" >&6; }
10486fi
10487
10488
10489 fi
10490 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10492set dummy ${ncn_progname}; ac_word=$2
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494$as_echo_n "checking for $ac_word... " >&6; }
10495if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10496 $as_echo_n "(cached) " >&6
10497else
10498 if test -n "$GOC_FOR_TARGET"; then
10499 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10500else
10501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502for as_dir in $PATH
10503do
10504 IFS=$as_save_IFS
10505 test -z "$as_dir" && as_dir=.
10506 for ac_exec_ext in '' $ac_executable_extensions; do
10507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10508 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 break 2
10511 fi
10512done
10513 done
10514IFS=$as_save_IFS
10515
10516fi
10517fi
10518GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10519if test -n "$GOC_FOR_TARGET"; then
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10521$as_echo "$GOC_FOR_TARGET" >&6; }
10522else
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524$as_echo "no" >&6; }
10525fi
10526
10527
10528 fi
10529 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10530 done
10531fi
10532
10533if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10534 set dummy gccgo
10535 if test $build = $target ; then
10536 GOC_FOR_TARGET="$2"
10537 else
10538 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10539 fi
10540else
10541 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10542fi
10543
10544
10545
2429c060
PB
10546cat > conftest.c << \EOF
10547#ifdef __GNUC__
10548 gcc_yay;
10549#endif
10550EOF
10551if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10552 have_gcc_for_target=yes
859789af 10553else
2429c060
PB
10554 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10555 have_gcc_for_target=no
859789af 10556fi
2429c060
PB
10557rm conftest.c
10558
10559
10560
859789af 10561
2429c060
PB
10562if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10563 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10565$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10566 if test -x $with_build_time_tools/ar; then
10567 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10568 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10570$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10571 else
81ecdfbb
RW
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573$as_echo "no" >&6; }
3a35eeb3 10574 fi
2429c060
PB
10575 elif test $build != $host && test $have_gcc_for_target = yes; then
10576 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10577 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10578 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10579 fi
2429c060 10580fi
c6b750e1 10581if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10582 # Extract the first word of "ar", so it can be a program name with args.
10583set dummy ar; ac_word=$2
81ecdfbb
RW
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585$as_echo_n "checking for $ac_word... " >&6; }
10586if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10587 $as_echo_n "(cached) " >&6
859789af 10588else
c6b750e1
DJ
10589 case $AR_FOR_TARGET in
10590 [\\/]* | ?:[\\/]*)
2429c060
PB
10591 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10592 ;;
2429c060 10593 *)
c6b750e1
DJ
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595for as_dir in $gcc_cv_tool_dirs
10596do
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10601 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10603 break 2
10604 fi
10605done
81ecdfbb
RW
10606 done
10607IFS=$as_save_IFS
c6b750e1 10608
2429c060
PB
10609 ;;
10610esac
859789af 10611fi
c6b750e1 10612AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10613if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10615$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10616else
81ecdfbb
RW
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618$as_echo "no" >&6; }
859789af 10619fi
05cbd757 10620
81ecdfbb 10621
2429c060
PB
10622fi
10623if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10624
10625
10626if test -n "$AR_FOR_TARGET"; then
10627 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10628elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10629 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10630fi
10631
10632if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10633 for ncn_progname in ar; do
10634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10635set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637$as_echo_n "checking for $ac_word... " >&6; }
10638if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10639 $as_echo_n "(cached) " >&6
9a819804
AO
10640else
10641 if test -n "$AR_FOR_TARGET"; then
10642 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10643else
10644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645for as_dir in $PATH
10646do
10647 IFS=$as_save_IFS
10648 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10651 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10653 break 2
10654 fi
10655done
81ecdfbb
RW
10656 done
10657IFS=$as_save_IFS
9a819804
AO
10658
10659fi
10660fi
10661AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10662if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10664$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10665else
81ecdfbb
RW
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667$as_echo "no" >&6; }
9a819804
AO
10668fi
10669
81ecdfbb 10670
9a819804
AO
10671 done
10672fi
10673
10674if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10675 for ncn_progname in ar; do
81ecdfbb
RW
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10677$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10678 if test -x $with_build_time_tools/${ncn_progname}; then
10679 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681$as_echo "yes" >&6; }
2429c060
PB
10682 break
10683 else
81ecdfbb
RW
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685$as_echo "no" >&6; }
2429c060
PB
10686 fi
10687 done
859789af
AC
10688fi
10689
2429c060
PB
10690if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10691 for ncn_progname in ar; do
10692 if test -n "$ncn_target_tool_prefix"; then
10693 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10694set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10696$as_echo_n "checking for $ac_word... " >&6; }
10697if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
7e0f7140 10699else
2429c060
PB
10700 if test -n "$AR_FOR_TARGET"; then
10701 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10702else
c6b750e1
DJ
10703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704for as_dir in $PATH
10705do
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10708 for ac_exec_ext in '' $ac_executable_extensions; do
10709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10710 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10712 break 2
10713 fi
10714done
81ecdfbb
RW
10715 done
10716IFS=$as_save_IFS
c6b750e1 10717
7e0f7140
GK
10718fi
10719fi
c6b750e1 10720AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10721if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10723$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10724else
81ecdfbb
RW
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726$as_echo "no" >&6; }
7e0f7140
GK
10727fi
10728
81ecdfbb 10729
2429c060
PB
10730 fi
10731 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10733set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735$as_echo_n "checking for $ac_word... " >&6; }
10736if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10737 $as_echo_n "(cached) " >&6
7e0f7140 10738else
2429c060
PB
10739 if test -n "$AR_FOR_TARGET"; then
10740 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10741else
c6b750e1
DJ
10742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743for as_dir in $PATH
10744do
10745 IFS=$as_save_IFS
10746 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10749 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10751 break 2
10752 fi
10753done
81ecdfbb
RW
10754 done
10755IFS=$as_save_IFS
c6b750e1 10756
7e0f7140
GK
10757fi
10758fi
c6b750e1 10759AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10760if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10762$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10763else
81ecdfbb
RW
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765$as_echo "no" >&6; }
7e0f7140 10766fi
c6b750e1 10767
81ecdfbb 10768
2429c060
PB
10769 fi
10770 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10771 done
10772fi
c6b750e1 10773
2429c060
PB
10774if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10775 set dummy ar
7e0f7140 10776 if test $build = $target ; then
2429c060 10777 AR_FOR_TARGET="$2"
7e0f7140 10778 else
2429c060 10779 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10780 fi
d3f5afc4
MS
10781else
10782 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10783fi
10784
3a35eeb3
PB
10785else
10786 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10787fi
10788
10789
10790
10791
10792if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10793 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10795$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10796 if test -x $with_build_time_tools/as; then
10797 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10798 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10800$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10801 else
81ecdfbb
RW
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803$as_echo "no" >&6; }
3a35eeb3 10804 fi
2429c060
PB
10805 elif test $build != $host && test $have_gcc_for_target = yes; then
10806 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10807 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10808 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10809 fi
10810fi
c6b750e1 10811if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10812 # Extract the first word of "as", so it can be a program name with args.
10813set dummy as; ac_word=$2
81ecdfbb
RW
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10815$as_echo_n "checking for $ac_word... " >&6; }
10816if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10817 $as_echo_n "(cached) " >&6
2429c060 10818else
c6b750e1
DJ
10819 case $AS_FOR_TARGET in
10820 [\\/]* | ?:[\\/]*)
2429c060
PB
10821 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10822 ;;
2429c060 10823 *)
c6b750e1
DJ
10824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825for as_dir in $gcc_cv_tool_dirs
10826do
10827 IFS=$as_save_IFS
10828 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10829 for ac_exec_ext in '' $ac_executable_extensions; do
10830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10831 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10833 break 2
10834 fi
10835done
81ecdfbb
RW
10836 done
10837IFS=$as_save_IFS
c6b750e1 10838
2429c060
PB
10839 ;;
10840esac
10841fi
c6b750e1 10842AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10843if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10845$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10846else
81ecdfbb
RW
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848$as_echo "no" >&6; }
2429c060
PB
10849fi
10850
81ecdfbb 10851
2429c060
PB
10852fi
10853if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10854
10855
10856if test -n "$AS_FOR_TARGET"; then
10857 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10858elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10859 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10860fi
10861
10862if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10863 for ncn_progname in as; do
10864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10865set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10867$as_echo_n "checking for $ac_word... " >&6; }
10868if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10869 $as_echo_n "(cached) " >&6
9a819804
AO
10870else
10871 if test -n "$AS_FOR_TARGET"; then
10872 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10873else
10874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875for as_dir in $PATH
10876do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10881 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10883 break 2
10884 fi
10885done
81ecdfbb
RW
10886 done
10887IFS=$as_save_IFS
9a819804
AO
10888
10889fi
10890fi
10891AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10892if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10894$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10895else
81ecdfbb
RW
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897$as_echo "no" >&6; }
9a819804
AO
10898fi
10899
81ecdfbb 10900
9a819804
AO
10901 done
10902fi
10903
10904if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10905 for ncn_progname in as; do
81ecdfbb
RW
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10907$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10908 if test -x $with_build_time_tools/${ncn_progname}; then
10909 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10911$as_echo "yes" >&6; }
2429c060
PB
10912 break
10913 else
81ecdfbb
RW
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915$as_echo "no" >&6; }
2429c060
PB
10916 fi
10917 done
10918fi
10919
10920if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10921 for ncn_progname in as; do
10922 if test -n "$ncn_target_tool_prefix"; then
10923 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10924set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10926$as_echo_n "checking for $ac_word... " >&6; }
10927if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10928 $as_echo_n "(cached) " >&6
2429c060
PB
10929else
10930 if test -n "$AS_FOR_TARGET"; then
10931 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10932else
c6b750e1
DJ
10933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934for as_dir in $PATH
10935do
10936 IFS=$as_save_IFS
10937 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10938 for ac_exec_ext in '' $ac_executable_extensions; do
10939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10940 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10942 break 2
10943 fi
10944done
81ecdfbb
RW
10945 done
10946IFS=$as_save_IFS
c6b750e1 10947
2429c060
PB
10948fi
10949fi
c6b750e1 10950AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10951if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10953$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10954else
81ecdfbb
RW
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956$as_echo "no" >&6; }
2429c060
PB
10957fi
10958
81ecdfbb 10959
2429c060
PB
10960 fi
10961 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10963set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965$as_echo_n "checking for $ac_word... " >&6; }
10966if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
2429c060
PB
10968else
10969 if test -n "$AS_FOR_TARGET"; then
10970 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10971else
c6b750e1
DJ
10972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $PATH
10974do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10979 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10981 break 2
10982 fi
10983done
81ecdfbb
RW
10984 done
10985IFS=$as_save_IFS
c6b750e1 10986
2429c060
PB
10987fi
10988fi
c6b750e1 10989AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10990if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10992$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10993else
81ecdfbb
RW
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995$as_echo "no" >&6; }
2429c060 10996fi
c6b750e1 10997
81ecdfbb 10998
2429c060
PB
10999 fi
11000 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11001 done
11002fi
c6b750e1 11003
2429c060
PB
11004if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11005 set dummy as
11006 if test $build = $target ; then
11007 AS_FOR_TARGET="$2"
11008 else
11009 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11010 fi
d3f5afc4
MS
11011else
11012 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11013fi
11014
3a35eeb3
PB
11015else
11016 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11017fi
11018
11019
11020
11021
11022if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11023 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11025$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11026 if test -x $with_build_time_tools/dlltool; then
11027 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11028 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11030$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11031 else
81ecdfbb
RW
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033$as_echo "no" >&6; }
3a35eeb3 11034 fi
2429c060
PB
11035 elif test $build != $host && test $have_gcc_for_target = yes; then
11036 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11037 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11038 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11039 fi
11040fi
c6b750e1 11041if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11042 # Extract the first word of "dlltool", so it can be a program name with args.
11043set dummy dlltool; ac_word=$2
81ecdfbb
RW
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045$as_echo_n "checking for $ac_word... " >&6; }
11046if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11047 $as_echo_n "(cached) " >&6
2429c060 11048else
c6b750e1
DJ
11049 case $DLLTOOL_FOR_TARGET in
11050 [\\/]* | ?:[\\/]*)
2429c060
PB
11051 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11052 ;;
2429c060 11053 *)
c6b750e1
DJ
11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055for as_dir in $gcc_cv_tool_dirs
11056do
11057 IFS=$as_save_IFS
11058 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11061 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11063 break 2
11064 fi
11065done
81ecdfbb
RW
11066 done
11067IFS=$as_save_IFS
c6b750e1 11068
2429c060
PB
11069 ;;
11070esac
11071fi
c6b750e1 11072DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11073if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11075$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11076else
81ecdfbb
RW
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078$as_echo "no" >&6; }
2429c060
PB
11079fi
11080
81ecdfbb 11081
2429c060
PB
11082fi
11083if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11084
11085
11086if test -n "$DLLTOOL_FOR_TARGET"; then
11087 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11088elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11089 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11090fi
11091
11092if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11093 for ncn_progname in dlltool; do
11094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11095set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097$as_echo_n "checking for $ac_word... " >&6; }
11098if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
9a819804
AO
11100else
11101 if test -n "$DLLTOOL_FOR_TARGET"; then
11102 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11103else
11104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105for as_dir in $PATH
11106do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11111 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11113 break 2
11114 fi
11115done
81ecdfbb
RW
11116 done
11117IFS=$as_save_IFS
9a819804
AO
11118
11119fi
11120fi
11121DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11122if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11124$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11125else
81ecdfbb
RW
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127$as_echo "no" >&6; }
9a819804
AO
11128fi
11129
81ecdfbb 11130
9a819804
AO
11131 done
11132fi
11133
11134if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11135 for ncn_progname in dlltool; do
81ecdfbb
RW
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11137$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11138 if test -x $with_build_time_tools/${ncn_progname}; then
11139 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11141$as_echo "yes" >&6; }
2429c060
PB
11142 break
11143 else
81ecdfbb
RW
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145$as_echo "no" >&6; }
2429c060
PB
11146 fi
11147 done
11148fi
11149
11150if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11151 for ncn_progname in dlltool; do
11152 if test -n "$ncn_target_tool_prefix"; then
11153 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11154set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156$as_echo_n "checking for $ac_word... " >&6; }
11157if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11158 $as_echo_n "(cached) " >&6
2429c060
PB
11159else
11160 if test -n "$DLLTOOL_FOR_TARGET"; then
11161 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11162else
c6b750e1
DJ
11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $PATH
11165do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11170 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11172 break 2
11173 fi
11174done
81ecdfbb
RW
11175 done
11176IFS=$as_save_IFS
c6b750e1 11177
2429c060
PB
11178fi
11179fi
c6b750e1 11180DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11181if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11183$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11184else
81ecdfbb
RW
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186$as_echo "no" >&6; }
2429c060
PB
11187fi
11188
81ecdfbb 11189
2429c060
PB
11190 fi
11191 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11193set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195$as_echo_n "checking for $ac_word... " >&6; }
11196if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
2429c060
PB
11198else
11199 if test -n "$DLLTOOL_FOR_TARGET"; then
11200 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11201else
c6b750e1
DJ
11202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203for as_dir in $PATH
11204do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11209 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11211 break 2
11212 fi
11213done
81ecdfbb
RW
11214 done
11215IFS=$as_save_IFS
c6b750e1 11216
2429c060
PB
11217fi
11218fi
c6b750e1 11219DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11220if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11222$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11223else
81ecdfbb
RW
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225$as_echo "no" >&6; }
2429c060 11226fi
c6b750e1 11227
81ecdfbb 11228
2429c060
PB
11229 fi
11230 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11231 done
11232fi
c6b750e1 11233
2429c060
PB
11234if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11235 set dummy dlltool
11236 if test $build = $target ; then
11237 DLLTOOL_FOR_TARGET="$2"
11238 else
11239 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11240 fi
d3f5afc4
MS
11241else
11242 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11243fi
11244
3a35eeb3
PB
11245else
11246 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11247fi
11248
11249
11250
11251
11252if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11253 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11255$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11256 if test -x $with_build_time_tools/ld; then
11257 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11258 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11260$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11261 else
81ecdfbb
RW
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263$as_echo "no" >&6; }
3a35eeb3 11264 fi
2429c060
PB
11265 elif test $build != $host && test $have_gcc_for_target = yes; then
11266 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11267 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11268 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11269 fi
11270fi
c6b750e1 11271if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11272 # Extract the first word of "ld", so it can be a program name with args.
11273set dummy ld; ac_word=$2
81ecdfbb
RW
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275$as_echo_n "checking for $ac_word... " >&6; }
11276if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11277 $as_echo_n "(cached) " >&6
2429c060 11278else
c6b750e1
DJ
11279 case $LD_FOR_TARGET in
11280 [\\/]* | ?:[\\/]*)
2429c060
PB
11281 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11282 ;;
2429c060 11283 *)
c6b750e1
DJ
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285for as_dir in $gcc_cv_tool_dirs
11286do
11287 IFS=$as_save_IFS
11288 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11291 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11293 break 2
11294 fi
11295done
81ecdfbb
RW
11296 done
11297IFS=$as_save_IFS
c6b750e1 11298
2429c060
PB
11299 ;;
11300esac
11301fi
c6b750e1 11302LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11303if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11305$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11306else
81ecdfbb
RW
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11308$as_echo "no" >&6; }
2429c060
PB
11309fi
11310
81ecdfbb 11311
2429c060
PB
11312fi
11313if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11314
11315
11316if test -n "$LD_FOR_TARGET"; then
11317 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11318elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11319 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11320fi
11321
11322if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11323 for ncn_progname in ld; do
11324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11325set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11327$as_echo_n "checking for $ac_word... " >&6; }
11328if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
9a819804
AO
11330else
11331 if test -n "$LD_FOR_TARGET"; then
11332 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11333else
11334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335for as_dir in $PATH
11336do
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11339 for ac_exec_ext in '' $ac_executable_extensions; do
11340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11341 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11343 break 2
11344 fi
11345done
81ecdfbb
RW
11346 done
11347IFS=$as_save_IFS
9a819804
AO
11348
11349fi
11350fi
11351LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11352if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11354$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11355else
81ecdfbb
RW
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357$as_echo "no" >&6; }
9a819804
AO
11358fi
11359
81ecdfbb 11360
9a819804
AO
11361 done
11362fi
11363
11364if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11365 for ncn_progname in ld; do
81ecdfbb
RW
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11367$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11368 if test -x $with_build_time_tools/${ncn_progname}; then
11369 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371$as_echo "yes" >&6; }
2429c060
PB
11372 break
11373 else
81ecdfbb
RW
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375$as_echo "no" >&6; }
2429c060
PB
11376 fi
11377 done
11378fi
11379
11380if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11381 for ncn_progname in ld; do
11382 if test -n "$ncn_target_tool_prefix"; then
11383 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11384set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11386$as_echo_n "checking for $ac_word... " >&6; }
11387if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11388 $as_echo_n "(cached) " >&6
2429c060
PB
11389else
11390 if test -n "$LD_FOR_TARGET"; then
11391 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11392else
c6b750e1
DJ
11393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394for as_dir in $PATH
11395do
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11400 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11402 break 2
11403 fi
11404done
81ecdfbb
RW
11405 done
11406IFS=$as_save_IFS
c6b750e1 11407
2429c060
PB
11408fi
11409fi
c6b750e1 11410LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11411if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11413$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11414else
81ecdfbb
RW
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416$as_echo "no" >&6; }
2429c060
PB
11417fi
11418
81ecdfbb 11419
2429c060
PB
11420 fi
11421 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11423set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425$as_echo_n "checking for $ac_word... " >&6; }
11426if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
2429c060
PB
11428else
11429 if test -n "$LD_FOR_TARGET"; then
11430 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11431else
c6b750e1
DJ
11432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433for as_dir in $PATH
11434do
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11439 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11441 break 2
11442 fi
11443done
81ecdfbb
RW
11444 done
11445IFS=$as_save_IFS
c6b750e1 11446
2429c060
PB
11447fi
11448fi
c6b750e1 11449LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11450if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11452$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11453else
81ecdfbb
RW
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455$as_echo "no" >&6; }
2429c060 11456fi
c6b750e1 11457
81ecdfbb 11458
2429c060
PB
11459 fi
11460 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11461 done
11462fi
c6b750e1 11463
2429c060
PB
11464if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11465 set dummy ld
11466 if test $build = $target ; then
11467 LD_FOR_TARGET="$2"
11468 else
11469 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11470 fi
d3f5afc4
MS
11471else
11472 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11473fi
11474
3a35eeb3
PB
11475else
11476 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11477fi
11478
11479
11480
11481
11482if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11483 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11485$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11486 if test -x $with_build_time_tools/lipo; then
11487 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11488 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11490$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11491 else
81ecdfbb
RW
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493$as_echo "no" >&6; }
3a35eeb3 11494 fi
2429c060
PB
11495 elif test $build != $host && test $have_gcc_for_target = yes; then
11496 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11497 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11498 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11499 fi
11500fi
9a819804
AO
11501if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11502 # Extract the first word of "lipo", so it can be a program name with args.
11503set dummy lipo; ac_word=$2
81ecdfbb
RW
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505$as_echo_n "checking for $ac_word... " >&6; }
11506if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
9a819804
AO
11508else
11509 case $LIPO_FOR_TARGET in
11510 [\\/]* | ?:[\\/]*)
11511 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11512 ;;
11513 *)
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515for as_dir in $gcc_cv_tool_dirs
11516do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11521 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11523 break 2
11524 fi
11525done
81ecdfbb
RW
11526 done
11527IFS=$as_save_IFS
9a819804
AO
11528
11529 ;;
11530esac
11531fi
11532LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11533if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11535$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11536else
81ecdfbb
RW
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538$as_echo "no" >&6; }
9a819804
AO
11539fi
11540
81ecdfbb 11541
9a819804
AO
11542fi
11543if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11544
11545
11546if test -n "$LIPO_FOR_TARGET"; then
11547 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11548elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11549 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11550fi
11551
11552if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11553 for ncn_progname in lipo; do
11554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11555set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557$as_echo_n "checking for $ac_word... " >&6; }
11558if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
2429c060 11560else
9a819804
AO
11561 if test -n "$LIPO_FOR_TARGET"; then
11562 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11563else
11564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565for as_dir in $PATH
c6b750e1
DJ
11566do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11571 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11573 break 2
11574 fi
11575done
81ecdfbb
RW
11576 done
11577IFS=$as_save_IFS
c6b750e1 11578
2429c060 11579fi
9a819804
AO
11580fi
11581LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11582if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11584$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11585else
81ecdfbb
RW
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587$as_echo "no" >&6; }
2429c060
PB
11588fi
11589
81ecdfbb 11590
9a819804 11591 done
2429c060 11592fi
9a819804
AO
11593
11594if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11595 for ncn_progname in lipo; do
81ecdfbb
RW
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11597$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11598 if test -x $with_build_time_tools/${ncn_progname}; then
11599 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11601$as_echo "yes" >&6; }
2429c060
PB
11602 break
11603 else
81ecdfbb
RW
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605$as_echo "no" >&6; }
2429c060
PB
11606 fi
11607 done
11608fi
11609
11610if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11611 for ncn_progname in lipo; do
11612 if test -n "$ncn_target_tool_prefix"; then
11613 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11614set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616$as_echo_n "checking for $ac_word... " >&6; }
11617if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
2429c060
PB
11619else
11620 if test -n "$LIPO_FOR_TARGET"; then
11621 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11622else
c6b750e1
DJ
11623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624for as_dir in $PATH
11625do
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11630 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11632 break 2
11633 fi
11634done
81ecdfbb
RW
11635 done
11636IFS=$as_save_IFS
c6b750e1 11637
2429c060
PB
11638fi
11639fi
c6b750e1 11640LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11641if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11643$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11644else
81ecdfbb
RW
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
2429c060
PB
11647fi
11648
81ecdfbb 11649
2429c060
PB
11650 fi
11651 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11653set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655$as_echo_n "checking for $ac_word... " >&6; }
11656if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
2429c060
PB
11658else
11659 if test -n "$LIPO_FOR_TARGET"; then
11660 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11661else
c6b750e1
DJ
11662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663for as_dir in $PATH
11664do
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11669 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11671 break 2
11672 fi
11673done
81ecdfbb
RW
11674 done
11675IFS=$as_save_IFS
c6b750e1 11676
2429c060
PB
11677fi
11678fi
c6b750e1 11679LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11680if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11682$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11683else
81ecdfbb
RW
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685$as_echo "no" >&6; }
2429c060 11686fi
c6b750e1 11687
81ecdfbb 11688
2429c060
PB
11689 fi
11690 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11691 done
11692fi
c6b750e1 11693
2429c060
PB
11694if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11695 set dummy lipo
11696 if test $build = $target ; then
11697 LIPO_FOR_TARGET="$2"
11698 else
11699 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11700 fi
d3f5afc4
MS
11701else
11702 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11703fi
11704
3a35eeb3
PB
11705else
11706 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11707fi
11708
11709
11710
11711
11712if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11713 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11715$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11716 if test -x $with_build_time_tools/nm; then
11717 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11718 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11720$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11721 else
81ecdfbb
RW
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723$as_echo "no" >&6; }
3a35eeb3 11724 fi
2429c060
PB
11725 elif test $build != $host && test $have_gcc_for_target = yes; then
11726 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11727 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11728 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11729 fi
11730fi
c6b750e1 11731if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11732 # Extract the first word of "nm", so it can be a program name with args.
11733set dummy nm; ac_word=$2
81ecdfbb
RW
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735$as_echo_n "checking for $ac_word... " >&6; }
11736if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
2429c060 11738else
c6b750e1
DJ
11739 case $NM_FOR_TARGET in
11740 [\\/]* | ?:[\\/]*)
2429c060
PB
11741 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11742 ;;
2429c060 11743 *)
c6b750e1
DJ
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745for as_dir in $gcc_cv_tool_dirs
11746do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11751 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11753 break 2
11754 fi
11755done
81ecdfbb
RW
11756 done
11757IFS=$as_save_IFS
c6b750e1 11758
2429c060
PB
11759 ;;
11760esac
11761fi
c6b750e1 11762NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11763if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11765$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11766else
81ecdfbb
RW
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768$as_echo "no" >&6; }
2429c060
PB
11769fi
11770
81ecdfbb 11771
2429c060
PB
11772fi
11773if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11774
11775
11776if test -n "$NM_FOR_TARGET"; then
11777 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11778elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11779 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11780fi
11781
11782if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11783 for ncn_progname in nm; do
11784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11785set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787$as_echo_n "checking for $ac_word... " >&6; }
11788if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11789 $as_echo_n "(cached) " >&6
9a819804
AO
11790else
11791 if test -n "$NM_FOR_TARGET"; then
11792 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11793else
11794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795for as_dir in $PATH
11796do
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11801 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11803 break 2
11804 fi
11805done
81ecdfbb
RW
11806 done
11807IFS=$as_save_IFS
9a819804
AO
11808
11809fi
11810fi
11811NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11812if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11814$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11815else
81ecdfbb
RW
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817$as_echo "no" >&6; }
9a819804
AO
11818fi
11819
81ecdfbb 11820
9a819804
AO
11821 done
11822fi
11823
11824if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11825 for ncn_progname in nm; do
81ecdfbb
RW
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11827$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11828 if test -x $with_build_time_tools/${ncn_progname}; then
11829 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11831$as_echo "yes" >&6; }
2429c060
PB
11832 break
11833 else
81ecdfbb
RW
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835$as_echo "no" >&6; }
2429c060
PB
11836 fi
11837 done
11838fi
11839
11840if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11841 for ncn_progname in nm; do
11842 if test -n "$ncn_target_tool_prefix"; then
11843 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11844set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11846$as_echo_n "checking for $ac_word... " >&6; }
11847if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11848 $as_echo_n "(cached) " >&6
859789af 11849else
55db4b87
PB
11850 if test -n "$NM_FOR_TARGET"; then
11851 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11852else
c6b750e1
DJ
11853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854for as_dir in $PATH
11855do
11856 IFS=$as_save_IFS
11857 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11858 for ac_exec_ext in '' $ac_executable_extensions; do
11859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11860 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11862 break 2
11863 fi
11864done
81ecdfbb
RW
11865 done
11866IFS=$as_save_IFS
c6b750e1 11867
859789af
AC
11868fi
11869fi
c6b750e1 11870NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11871if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11873$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11874else
81ecdfbb
RW
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
859789af
AC
11877fi
11878
81ecdfbb 11879
2429c060
PB
11880 fi
11881 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11883set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885$as_echo_n "checking for $ac_word... " >&6; }
11886if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
859789af 11888else
05cbd757
PB
11889 if test -n "$NM_FOR_TARGET"; then
11890 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11891else
c6b750e1
DJ
11892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893for as_dir in $PATH
11894do
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11899 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11901 break 2
11902 fi
11903done
81ecdfbb
RW
11904 done
11905IFS=$as_save_IFS
c6b750e1 11906
859789af
AC
11907fi
11908fi
c6b750e1 11909NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11910if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11912$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11913else
81ecdfbb
RW
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915$as_echo "no" >&6; }
859789af 11916fi
c6b750e1 11917
81ecdfbb 11918
2429c060
PB
11919 fi
11920 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11921 done
11922fi
c6b750e1 11923
05cbd757
PB
11924if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11925 set dummy nm
11926 if test $build = $target ; then
11927 NM_FOR_TARGET="$2"
859789af 11928 else
05cbd757 11929 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11930 fi
d3f5afc4
MS
11931else
11932 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11933fi
11934
3a35eeb3
PB
11935else
11936 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11937fi
11938
11939
11940
11941
11942if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11943 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11945$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11946 if test -x $with_build_time_tools/objdump; then
11947 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11948 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11950$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 11951 else
81ecdfbb
RW
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953$as_echo "no" >&6; }
3a35eeb3 11954 fi
2429c060
PB
11955 elif test $build != $host && test $have_gcc_for_target = yes; then
11956 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
11957 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11958 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
11959 fi
11960fi
c6b750e1 11961if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11962 # Extract the first word of "objdump", so it can be a program name with args.
11963set dummy objdump; ac_word=$2
81ecdfbb
RW
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965$as_echo_n "checking for $ac_word... " >&6; }
11966if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11967 $as_echo_n "(cached) " >&6
2429c060 11968else
c6b750e1
DJ
11969 case $OBJDUMP_FOR_TARGET in
11970 [\\/]* | ?:[\\/]*)
2429c060
PB
11971 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11972 ;;
2429c060 11973 *)
c6b750e1
DJ
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975for as_dir in $gcc_cv_tool_dirs
11976do
11977 IFS=$as_save_IFS
11978 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11979 for ac_exec_ext in '' $ac_executable_extensions; do
11980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11981 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11983 break 2
11984 fi
11985done
81ecdfbb
RW
11986 done
11987IFS=$as_save_IFS
c6b750e1 11988
2429c060
PB
11989 ;;
11990esac
11991fi
c6b750e1 11992OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 11993if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11995$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 11996else
81ecdfbb
RW
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998$as_echo "no" >&6; }
2429c060
PB
11999fi
12000
81ecdfbb 12001
2429c060
PB
12002fi
12003if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12004
12005
12006if test -n "$OBJDUMP_FOR_TARGET"; then
12007 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12008elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12009 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12010fi
12011
12012if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12013 for ncn_progname in objdump; do
12014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12015set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017$as_echo_n "checking for $ac_word... " >&6; }
12018if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12019 $as_echo_n "(cached) " >&6
9a819804
AO
12020else
12021 if test -n "$OBJDUMP_FOR_TARGET"; then
12022 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12023else
12024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025for as_dir in $PATH
12026do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12031 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12033 break 2
12034 fi
12035done
81ecdfbb
RW
12036 done
12037IFS=$as_save_IFS
9a819804
AO
12038
12039fi
12040fi
12041OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12042if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12044$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12045else
81ecdfbb
RW
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047$as_echo "no" >&6; }
9a819804
AO
12048fi
12049
81ecdfbb 12050
9a819804
AO
12051 done
12052fi
12053
12054if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12055 for ncn_progname in objdump; do
81ecdfbb
RW
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12057$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12058 if test -x $with_build_time_tools/${ncn_progname}; then
12059 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12061$as_echo "yes" >&6; }
2429c060
PB
12062 break
12063 else
81ecdfbb
RW
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065$as_echo "no" >&6; }
2429c060
PB
12066 fi
12067 done
12068fi
12069
12070if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12071 for ncn_progname in objdump; do
12072 if test -n "$ncn_target_tool_prefix"; then
12073 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12074set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12076$as_echo_n "checking for $ac_word... " >&6; }
12077if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12078 $as_echo_n "(cached) " >&6
5ae72758
DJ
12079else
12080 if test -n "$OBJDUMP_FOR_TARGET"; then
12081 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12082else
c6b750e1
DJ
12083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084for as_dir in $PATH
12085do
12086 IFS=$as_save_IFS
12087 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12088 for ac_exec_ext in '' $ac_executable_extensions; do
12089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12090 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12092 break 2
12093 fi
12094done
81ecdfbb
RW
12095 done
12096IFS=$as_save_IFS
c6b750e1 12097
5ae72758
DJ
12098fi
12099fi
c6b750e1 12100OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12101if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12103$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12104else
81ecdfbb
RW
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106$as_echo "no" >&6; }
5ae72758
DJ
12107fi
12108
81ecdfbb 12109
2429c060
PB
12110 fi
12111 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12113set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115$as_echo_n "checking for $ac_word... " >&6; }
12116if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
5ae72758
DJ
12118else
12119 if test -n "$OBJDUMP_FOR_TARGET"; then
12120 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12121else
c6b750e1
DJ
12122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123for as_dir in $PATH
12124do
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12129 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12131 break 2
12132 fi
12133done
81ecdfbb
RW
12134 done
12135IFS=$as_save_IFS
c6b750e1 12136
5ae72758
DJ
12137fi
12138fi
c6b750e1 12139OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12140if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12142$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12143else
81ecdfbb
RW
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145$as_echo "no" >&6; }
5ae72758 12146fi
c6b750e1 12147
81ecdfbb 12148
2429c060
PB
12149 fi
12150 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12151 done
12152fi
c6b750e1 12153
5ae72758
DJ
12154if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12155 set dummy objdump
12156 if test $build = $target ; then
12157 OBJDUMP_FOR_TARGET="$2"
12158 else
12159 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12160 fi
d3f5afc4
MS
12161else
12162 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12163fi
12164
3a35eeb3
PB
12165else
12166 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12167fi
12168
12169
12170
12171
12172if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12173 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12175$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12176 if test -x $with_build_time_tools/ranlib; then
12177 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12178 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12180$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12181 else
81ecdfbb
RW
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183$as_echo "no" >&6; }
3a35eeb3 12184 fi
2429c060
PB
12185 elif test $build != $host && test $have_gcc_for_target = yes; then
12186 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12187 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12188 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12189 fi
12190fi
c6b750e1 12191if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12192 # Extract the first word of "ranlib", so it can be a program name with args.
12193set dummy ranlib; ac_word=$2
81ecdfbb
RW
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195$as_echo_n "checking for $ac_word... " >&6; }
12196if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
2429c060 12198else
c6b750e1
DJ
12199 case $RANLIB_FOR_TARGET in
12200 [\\/]* | ?:[\\/]*)
2429c060
PB
12201 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12202 ;;
2429c060 12203 *)
c6b750e1
DJ
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205for as_dir in $gcc_cv_tool_dirs
12206do
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12211 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12213 break 2
12214 fi
12215done
81ecdfbb
RW
12216 done
12217IFS=$as_save_IFS
c6b750e1 12218
2429c060
PB
12219 ;;
12220esac
12221fi
c6b750e1 12222RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12223if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12225$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12226else
81ecdfbb
RW
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228$as_echo "no" >&6; }
2429c060
PB
12229fi
12230
81ecdfbb 12231
2429c060
PB
12232fi
12233if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12234
12235
12236if test -n "$RANLIB_FOR_TARGET"; then
12237 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12238elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12239 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12240fi
12241
12242if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12243 for ncn_progname in ranlib; do
12244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12245set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12247$as_echo_n "checking for $ac_word... " >&6; }
12248if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12249 $as_echo_n "(cached) " >&6
9a819804
AO
12250else
12251 if test -n "$RANLIB_FOR_TARGET"; then
12252 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12253else
12254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255for as_dir in $PATH
12256do
12257 IFS=$as_save_IFS
12258 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12261 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12263 break 2
12264 fi
12265done
81ecdfbb
RW
12266 done
12267IFS=$as_save_IFS
9a819804
AO
12268
12269fi
12270fi
12271RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12272if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12274$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12275else
81ecdfbb
RW
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277$as_echo "no" >&6; }
9a819804
AO
12278fi
12279
81ecdfbb 12280
9a819804
AO
12281 done
12282fi
12283
12284if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12285 for ncn_progname in ranlib; do
81ecdfbb
RW
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12287$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12288 if test -x $with_build_time_tools/${ncn_progname}; then
12289 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12291$as_echo "yes" >&6; }
2429c060
PB
12292 break
12293 else
81ecdfbb
RW
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295$as_echo "no" >&6; }
2429c060
PB
12296 fi
12297 done
12298fi
12299
12300if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12301 for ncn_progname in ranlib; do
12302 if test -n "$ncn_target_tool_prefix"; then
12303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12304set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306$as_echo_n "checking for $ac_word... " >&6; }
12307if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12308 $as_echo_n "(cached) " >&6
859789af 12309else
55db4b87
PB
12310 if test -n "$RANLIB_FOR_TARGET"; then
12311 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12312else
c6b750e1
DJ
12313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314for as_dir in $PATH
12315do
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12318 for ac_exec_ext in '' $ac_executable_extensions; do
12319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12320 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12322 break 2
12323 fi
12324done
81ecdfbb
RW
12325 done
12326IFS=$as_save_IFS
c6b750e1 12327
859789af
AC
12328fi
12329fi
c6b750e1 12330RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12331if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12333$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12334else
81ecdfbb
RW
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336$as_echo "no" >&6; }
859789af
AC
12337fi
12338
81ecdfbb 12339
2429c060
PB
12340 fi
12341 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12343set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345$as_echo_n "checking for $ac_word... " >&6; }
12346if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
859789af 12348else
05cbd757
PB
12349 if test -n "$RANLIB_FOR_TARGET"; then
12350 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12351else
c6b750e1
DJ
12352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353for as_dir in $PATH
12354do
12355 IFS=$as_save_IFS
12356 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12359 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12361 break 2
12362 fi
12363done
81ecdfbb
RW
12364 done
12365IFS=$as_save_IFS
c6b750e1 12366
859789af
AC
12367fi
12368fi
c6b750e1 12369RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12370if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12372$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12373else
81ecdfbb
RW
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375$as_echo "no" >&6; }
859789af 12376fi
c6b750e1 12377
81ecdfbb 12378
2429c060
PB
12379 fi
12380 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12381 done
12382fi
c6b750e1 12383
2429c060
PB
12384if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12385 set dummy ranlib
12386 if test $build = $target ; then
12387 RANLIB_FOR_TARGET="$2"
12388 else
12389 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12390 fi
d3f5afc4
MS
12391else
12392 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12393fi
05cbd757 12394
3a35eeb3
PB
12395else
12396 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12397fi
12398
2429c060
PB
12399
12400
12401
12402if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12403 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12405$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12406 if test -x $with_build_time_tools/strip; then
12407 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12408 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12410$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12411 else
81ecdfbb
RW
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413$as_echo "no" >&6; }
3a35eeb3 12414 fi
2429c060
PB
12415 elif test $build != $host && test $have_gcc_for_target = yes; then
12416 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12417 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12418 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12419 fi
12420fi
c6b750e1 12421if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12422 # Extract the first word of "strip", so it can be a program name with args.
12423set dummy strip; ac_word=$2
81ecdfbb
RW
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425$as_echo_n "checking for $ac_word... " >&6; }
12426if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
2429c060 12428else
c6b750e1
DJ
12429 case $STRIP_FOR_TARGET in
12430 [\\/]* | ?:[\\/]*)
2429c060
PB
12431 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12432 ;;
2429c060 12433 *)
c6b750e1
DJ
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435for as_dir in $gcc_cv_tool_dirs
12436do
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12441 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12443 break 2
12444 fi
12445done
81ecdfbb
RW
12446 done
12447IFS=$as_save_IFS
c6b750e1 12448
2429c060
PB
12449 ;;
12450esac
12451fi
c6b750e1 12452STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12453if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12455$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12456else
81ecdfbb
RW
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458$as_echo "no" >&6; }
2429c060
PB
12459fi
12460
81ecdfbb 12461
2429c060
PB
12462fi
12463if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12464
12465
12466if test -n "$STRIP_FOR_TARGET"; then
12467 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12468elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12469 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12470fi
12471
12472if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12473 for ncn_progname in strip; do
12474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12475set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477$as_echo_n "checking for $ac_word... " >&6; }
12478if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12479 $as_echo_n "(cached) " >&6
9a819804
AO
12480else
12481 if test -n "$STRIP_FOR_TARGET"; then
12482 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12483else
12484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485for as_dir in $PATH
12486do
12487 IFS=$as_save_IFS
12488 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12489 for ac_exec_ext in '' $ac_executable_extensions; do
12490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12491 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12493 break 2
12494 fi
12495done
81ecdfbb
RW
12496 done
12497IFS=$as_save_IFS
9a819804
AO
12498
12499fi
12500fi
12501STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12502if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12504$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12505else
81ecdfbb
RW
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507$as_echo "no" >&6; }
9a819804
AO
12508fi
12509
81ecdfbb 12510
9a819804
AO
12511 done
12512fi
12513
12514if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12515 for ncn_progname in strip; do
81ecdfbb
RW
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12517$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12518 if test -x $with_build_time_tools/${ncn_progname}; then
12519 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12521$as_echo "yes" >&6; }
2429c060
PB
12522 break
12523 else
81ecdfbb
RW
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525$as_echo "no" >&6; }
2429c060
PB
12526 fi
12527 done
12528fi
12529
12530if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12531 for ncn_progname in strip; do
12532 if test -n "$ncn_target_tool_prefix"; then
12533 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12534set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536$as_echo_n "checking for $ac_word... " >&6; }
12537if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
7e0f7140
GK
12539else
12540 if test -n "$STRIP_FOR_TARGET"; then
12541 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12542else
12543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544for as_dir in $PATH
12545do
12546 IFS=$as_save_IFS
12547 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12548 for ac_exec_ext in '' $ac_executable_extensions; do
12549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12550 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12552 break 2
12553 fi
12554done
81ecdfbb
RW
12555 done
12556IFS=$as_save_IFS
c6b750e1 12557
7e0f7140
GK
12558fi
12559fi
c6b750e1 12560STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12561if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12563$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12564else
81ecdfbb
RW
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566$as_echo "no" >&6; }
7e0f7140
GK
12567fi
12568
81ecdfbb 12569
2429c060
PB
12570 fi
12571 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12573set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575$as_echo_n "checking for $ac_word... " >&6; }
12576if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
7e0f7140
GK
12578else
12579 if test -n "$STRIP_FOR_TARGET"; then
12580 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12581else
c6b750e1
DJ
12582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583for as_dir in $PATH
12584do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12589 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12591 break 2
12592 fi
12593done
81ecdfbb
RW
12594 done
12595IFS=$as_save_IFS
c6b750e1 12596
7e0f7140
GK
12597fi
12598fi
c6b750e1 12599STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12600if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12602$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12603else
81ecdfbb
RW
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605$as_echo "no" >&6; }
7e0f7140 12606fi
c6b750e1 12607
81ecdfbb 12608
2429c060
PB
12609 fi
12610 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12611 done
12612fi
c6b750e1 12613
7e0f7140
GK
12614if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12615 set dummy strip
12616 if test $build = $target ; then
12617 STRIP_FOR_TARGET="$2"
12618 else
12619 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12620 fi
d3f5afc4
MS
12621else
12622 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12623fi
12624
3a35eeb3
PB
12625else
12626 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12627fi
12628
12629
12630
12631
12632if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12633 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12635$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12636 if test -x $with_build_time_tools/windres; then
12637 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12638 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12640$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12641 else
81ecdfbb
RW
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643$as_echo "no" >&6; }
3a35eeb3 12644 fi
2429c060
PB
12645 elif test $build != $host && test $have_gcc_for_target = yes; then
12646 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12647 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12648 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12649 fi
12650fi
c6b750e1 12651if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12652 # Extract the first word of "windres", so it can be a program name with args.
12653set dummy windres; ac_word=$2
81ecdfbb
RW
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655$as_echo_n "checking for $ac_word... " >&6; }
12656if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12657 $as_echo_n "(cached) " >&6
2429c060 12658else
c6b750e1
DJ
12659 case $WINDRES_FOR_TARGET in
12660 [\\/]* | ?:[\\/]*)
2429c060
PB
12661 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12662 ;;
2429c060 12663 *)
c6b750e1
DJ
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665for as_dir in $gcc_cv_tool_dirs
12666do
12667 IFS=$as_save_IFS
12668 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12671 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12673 break 2
12674 fi
12675done
81ecdfbb
RW
12676 done
12677IFS=$as_save_IFS
c6b750e1 12678
2429c060
PB
12679 ;;
12680esac
12681fi
c6b750e1 12682WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12683if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12685$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12686else
81ecdfbb
RW
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688$as_echo "no" >&6; }
2429c060
PB
12689fi
12690
81ecdfbb 12691
2429c060
PB
12692fi
12693if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12694
12695
12696if test -n "$WINDRES_FOR_TARGET"; then
12697 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12698elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12699 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12700fi
12701
12702if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12703 for ncn_progname in windres; do
12704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12705set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707$as_echo_n "checking for $ac_word... " >&6; }
12708if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
9a819804
AO
12710else
12711 if test -n "$WINDRES_FOR_TARGET"; then
12712 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12713else
12714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715for as_dir in $PATH
12716do
12717 IFS=$as_save_IFS
12718 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12719 for ac_exec_ext in '' $ac_executable_extensions; do
12720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12721 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12723 break 2
12724 fi
12725done
81ecdfbb
RW
12726 done
12727IFS=$as_save_IFS
9a819804
AO
12728
12729fi
12730fi
12731WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12732if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12734$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12735else
81ecdfbb
RW
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737$as_echo "no" >&6; }
9a819804
AO
12738fi
12739
81ecdfbb 12740
9a819804
AO
12741 done
12742fi
12743
12744if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12745 for ncn_progname in windres; do
81ecdfbb
RW
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12747$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12748 if test -x $with_build_time_tools/${ncn_progname}; then
12749 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12751$as_echo "yes" >&6; }
2429c060
PB
12752 break
12753 else
81ecdfbb
RW
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755$as_echo "no" >&6; }
2429c060
PB
12756 fi
12757 done
12758fi
12759
12760if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12761 for ncn_progname in windres; do
12762 if test -n "$ncn_target_tool_prefix"; then
12763 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12764set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766$as_echo_n "checking for $ac_word... " >&6; }
12767if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
859789af 12769else
55db4b87
PB
12770 if test -n "$WINDRES_FOR_TARGET"; then
12771 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12772else
c6b750e1
DJ
12773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774for as_dir in $PATH
12775do
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12780 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12782 break 2
12783 fi
12784done
81ecdfbb
RW
12785 done
12786IFS=$as_save_IFS
c6b750e1 12787
859789af
AC
12788fi
12789fi
c6b750e1 12790WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12791if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12793$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12794else
81ecdfbb
RW
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
859789af
AC
12797fi
12798
81ecdfbb 12799
2429c060
PB
12800 fi
12801 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12803set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805$as_echo_n "checking for $ac_word... " >&6; }
12806if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12807 $as_echo_n "(cached) " >&6
859789af 12808else
05cbd757
PB
12809 if test -n "$WINDRES_FOR_TARGET"; then
12810 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12811else
c6b750e1
DJ
12812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813for as_dir in $PATH
12814do
12815 IFS=$as_save_IFS
12816 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12817 for ac_exec_ext in '' $ac_executable_extensions; do
12818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12819 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12821 break 2
12822 fi
12823done
81ecdfbb
RW
12824 done
12825IFS=$as_save_IFS
c6b750e1 12826
859789af
AC
12827fi
12828fi
c6b750e1 12829WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12830if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12832$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12833else
81ecdfbb
RW
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835$as_echo "no" >&6; }
859789af 12836fi
c6b750e1 12837
81ecdfbb 12838
2429c060
PB
12839 fi
12840 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12841 done
12842fi
c6b750e1 12843
05cbd757
PB
12844if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12845 set dummy windres
12846 if test $build = $target ; then
12847 WINDRES_FOR_TARGET="$2"
859789af 12848 else
05cbd757 12849 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12850 fi
d3f5afc4
MS
12851else
12852 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12853fi
12854
3a35eeb3
PB
12855else
12856 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12857fi
12858
852e5f18 12859
0c24b341
NC
12860
12861
12862if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12863 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12865$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12866 if test -x $with_build_time_tools/windmc; then
12867 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12868 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12870$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12871 else
81ecdfbb
RW
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873$as_echo "no" >&6; }
0c24b341
NC
12874 fi
12875 elif test $build != $host && test $have_gcc_for_target = yes; then
12876 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12877 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12878 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12879 fi
12880fi
12881if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12882 # Extract the first word of "windmc", so it can be a program name with args.
12883set dummy windmc; ac_word=$2
81ecdfbb
RW
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12885$as_echo_n "checking for $ac_word... " >&6; }
12886if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12887 $as_echo_n "(cached) " >&6
0c24b341
NC
12888else
12889 case $WINDMC_FOR_TARGET in
12890 [\\/]* | ?:[\\/]*)
12891 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12892 ;;
12893 *)
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895for as_dir in $gcc_cv_tool_dirs
12896do
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12901 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12903 break 2
12904 fi
12905done
81ecdfbb
RW
12906 done
12907IFS=$as_save_IFS
0c24b341
NC
12908
12909 ;;
12910esac
12911fi
12912WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12913if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12915$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12916else
81ecdfbb
RW
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918$as_echo "no" >&6; }
0c24b341
NC
12919fi
12920
81ecdfbb 12921
0c24b341
NC
12922fi
12923if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12924
12925
12926if test -n "$WINDMC_FOR_TARGET"; then
12927 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12928elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12929 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12930fi
12931
12932if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12933 for ncn_progname in windmc; do
12934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12935set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937$as_echo_n "checking for $ac_word... " >&6; }
12938if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12939 $as_echo_n "(cached) " >&6
0c24b341
NC
12940else
12941 if test -n "$WINDMC_FOR_TARGET"; then
12942 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12943else
12944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945for as_dir in $PATH
12946do
12947 IFS=$as_save_IFS
12948 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12951 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12953 break 2
12954 fi
12955done
81ecdfbb
RW
12956 done
12957IFS=$as_save_IFS
0c24b341
NC
12958
12959fi
12960fi
12961WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12962if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12964$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12965else
81ecdfbb
RW
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967$as_echo "no" >&6; }
0c24b341
NC
12968fi
12969
81ecdfbb 12970
0c24b341
NC
12971 done
12972fi
12973
12974if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12975 for ncn_progname in windmc; do
81ecdfbb
RW
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12977$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
12978 if test -x $with_build_time_tools/${ncn_progname}; then
12979 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12981$as_echo "yes" >&6; }
0c24b341
NC
12982 break
12983 else
81ecdfbb
RW
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985$as_echo "no" >&6; }
0c24b341
NC
12986 fi
12987 done
12988fi
12989
12990if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12991 for ncn_progname in windmc; do
12992 if test -n "$ncn_target_tool_prefix"; then
12993 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12994set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996$as_echo_n "checking for $ac_word... " >&6; }
12997if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
0c24b341
NC
12999else
13000 if test -n "$WINDMC_FOR_TARGET"; then
13001 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13002else
13003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004for as_dir in $PATH
13005do
13006 IFS=$as_save_IFS
13007 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13010 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13012 break 2
13013 fi
13014done
81ecdfbb
RW
13015 done
13016IFS=$as_save_IFS
0c24b341
NC
13017
13018fi
13019fi
13020WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13021if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13023$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13024else
81ecdfbb
RW
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026$as_echo "no" >&6; }
0c24b341
NC
13027fi
13028
81ecdfbb 13029
0c24b341
NC
13030 fi
13031 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13033set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035$as_echo_n "checking for $ac_word... " >&6; }
13036if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
0c24b341
NC
13038else
13039 if test -n "$WINDMC_FOR_TARGET"; then
13040 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13041else
13042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043for as_dir in $PATH
13044do
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13049 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13051 break 2
13052 fi
13053done
81ecdfbb
RW
13054 done
13055IFS=$as_save_IFS
0c24b341
NC
13056
13057fi
13058fi
13059WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13060if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13062$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13063else
81ecdfbb
RW
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065$as_echo "no" >&6; }
0c24b341
NC
13066fi
13067
81ecdfbb 13068
0c24b341
NC
13069 fi
13070 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13071 done
13072fi
13073
13074if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13075 set dummy windmc
13076 if test $build = $target ; then
13077 WINDMC_FOR_TARGET="$2"
13078 else
13079 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13080 fi
13081else
13082 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13083fi
13084
13085else
13086 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13087fi
13088
13089
be01d343
PB
13090RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13091
81ecdfbb
RW
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13093$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13094if test "x${build}" != "x${host}" ; then
2429c060
PB
13095 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13096 # We already found the complete path
b8025f34 13097 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13099$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13100 else
13101 # Canadian cross, just use what we found
81ecdfbb
RW
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13103$as_echo "pre-installed" >&6; }
2429c060 13104 fi
be01d343
PB
13105else
13106 ok=yes
13107 case " ${configdirs} " in
13108 *" binutils "*) ;;
13109 *) ok=no ;;
13110 esac
c6b750e1 13111
be01d343
PB
13112 if test $ok = yes; then
13113 # An in-tree tool is available and we can use it
13114 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13116$as_echo "just compiled" >&6; }
2429c060
PB
13117 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13118 # We already found the complete path
b8025f34 13119 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13121$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13122 elif test "x$target" = "x$host"; then
13123 # We can use an host tool
13124 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13126$as_echo "host tool" >&6; }
be01d343
PB
13127 else
13128 # We need a cross tool
81ecdfbb
RW
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13130$as_echo "pre-installed" >&6; }
be01d343
PB
13131 fi
13132fi
4b900473 13133
81ecdfbb
RW
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13135$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13136if test "x${build}" != "x${host}" ; then
2429c060
PB
13137 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13138 # We already found the complete path
b8025f34 13139 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13141$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13142 else
13143 # Canadian cross, just use what we found
81ecdfbb
RW
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13145$as_echo "pre-installed" >&6; }
2429c060 13146 fi
be01d343
PB
13147else
13148 ok=yes
13149 case " ${configdirs} " in
13150 *" gas "*) ;;
13151 *) ok=no ;;
13152 esac
c6b750e1 13153
be01d343
PB
13154 if test $ok = yes; then
13155 # An in-tree tool is available and we can use it
13156 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13158$as_echo "just compiled" >&6; }
2429c060
PB
13159 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13160 # We already found the complete path
b8025f34 13161 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13163$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13164 elif test "x$target" = "x$host"; then
13165 # We can use an host tool
13166 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13168$as_echo "host tool" >&6; }
be01d343
PB
13169 else
13170 # We need a cross tool
81ecdfbb
RW
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13172$as_echo "pre-installed" >&6; }
be01d343
PB
13173 fi
13174fi
4b900473 13175
81ecdfbb
RW
13176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13177$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13178if test "x${build}" != "x${host}" ; then
2429c060
PB
13179 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13180 # We already found the complete path
b8025f34 13181 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13183$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13184 else
13185 # Canadian cross, just use what we found
81ecdfbb
RW
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13187$as_echo "pre-installed" >&6; }
2429c060 13188 fi
be01d343
PB
13189else
13190 ok=yes
13191 case " ${configdirs} " in
13192 *" gcc "*) ;;
13193 *) ok=no ;;
13194 esac
c6b750e1 13195
be01d343
PB
13196 if test $ok = yes; then
13197 # An in-tree tool is available and we can use it
13198 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13200$as_echo "just compiled" >&6; }
2429c060
PB
13201 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13202 # We already found the complete path
b8025f34 13203 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13205$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13206 elif test "x$target" = "x$host"; then
13207 # We can use an host tool
13208 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13210$as_echo "host tool" >&6; }
be01d343
PB
13211 else
13212 # We need a cross tool
81ecdfbb
RW
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13214$as_echo "pre-installed" >&6; }
be01d343
PB
13215 fi
13216fi
4b900473 13217
81ecdfbb
RW
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13219$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13220if test "x${build}" != "x${host}" ; then
2429c060
PB
13221 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13222 # We already found the complete path
b8025f34 13223 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13225$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13226 else
13227 # Canadian cross, just use what we found
81ecdfbb
RW
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13229$as_echo "pre-installed" >&6; }
2429c060 13230 fi
be01d343
PB
13231else
13232 ok=yes
13233 case " ${configdirs} " in
13234 *" gcc "*) ;;
13235 *) ok=no ;;
13236 esac
13237 case ,${enable_languages}, in
13238 *,c++,*) ;;
13239 *) ok=no ;;
13240 esac
13241 if test $ok = yes; then
13242 # An in-tree tool is available and we can use it
87cda2cf 13243 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
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13245$as_echo "just compiled" >&6; }
2429c060
PB
13246 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13247 # We already found the complete path
b8025f34 13248 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13250$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13251 elif test "x$target" = "x$host"; then
13252 # We can use an host tool
13253 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13255$as_echo "host tool" >&6; }
be01d343
PB
13256 else
13257 # We need a cross tool
81ecdfbb
RW
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13259$as_echo "pre-installed" >&6; }
be01d343
PB
13260 fi
13261fi
4b900473 13262
81ecdfbb
RW
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13264$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13265if test "x${build}" != "x${host}" ; then
2429c060
PB
13266 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13267 # We already found the complete path
b8025f34 13268 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13270$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13271 else
13272 # Canadian cross, just use what we found
81ecdfbb
RW
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13274$as_echo "pre-installed" >&6; }
2429c060 13275 fi
be01d343
PB
13276else
13277 ok=yes
13278 case " ${configdirs} " in
13279 *" gcc "*) ;;
13280 *) ok=no ;;
13281 esac
13282 case ,${enable_languages}, in
13283 *,c++,*) ;;
13284 *) ok=no ;;
13285 esac
13286 if test $ok = yes; then
13287 # An in-tree tool is available and we can use it
13288 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
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13290$as_echo "just compiled" >&6; }
2429c060
PB
13291 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13292 # We already found the complete path
b8025f34 13293 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13295$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13296 elif test "x$target" = "x$host"; then
13297 # We can use an host tool
13298 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13300$as_echo "host tool" >&6; }
be01d343
PB
13301 else
13302 # We need a cross tool
81ecdfbb
RW
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13304$as_echo "pre-installed" >&6; }
be01d343
PB
13305 fi
13306fi
4b900473 13307
81ecdfbb
RW
13308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13309$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13310if test "x${build}" != "x${host}" ; then
2429c060
PB
13311 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13312 # We already found the complete path
b8025f34 13313 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13315$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13316 else
13317 # Canadian cross, just use what we found
81ecdfbb
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13319$as_echo "pre-installed" >&6; }
2429c060 13320 fi
be01d343
PB
13321else
13322 ok=yes
13323 case " ${configdirs} " in
13324 *" binutils "*) ;;
13325 *) ok=no ;;
13326 esac
c6b750e1 13327
be01d343
PB
13328 if test $ok = yes; then
13329 # An in-tree tool is available and we can use it
13330 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13332$as_echo "just compiled" >&6; }
2429c060
PB
13333 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13334 # We already found the complete path
b8025f34 13335 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13337$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13338 elif test "x$target" = "x$host"; then
13339 # We can use an host tool
13340 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13342$as_echo "host tool" >&6; }
be01d343
PB
13343 else
13344 # We need a cross tool
81ecdfbb
RW
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13346$as_echo "pre-installed" >&6; }
be01d343
PB
13347 fi
13348fi
4b900473 13349
81ecdfbb
RW
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13351$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13352if test "x${build}" != "x${host}" ; then
2429c060
PB
13353 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13354 # We already found the complete path
b8025f34 13355 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13357$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13358 else
13359 # Canadian cross, just use what we found
81ecdfbb
RW
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13361$as_echo "pre-installed" >&6; }
2429c060 13362 fi
be01d343
PB
13363else
13364 ok=yes
13365 case " ${configdirs} " in
13366 *" gcc "*) ;;
13367 *) ok=no ;;
13368 esac
c6b750e1 13369
be01d343
PB
13370 if test $ok = yes; then
13371 # An in-tree tool is available and we can use it
13372 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13374$as_echo "just compiled" >&6; }
2429c060
PB
13375 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13376 # We already found the complete path
b8025f34 13377 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13379$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13380 elif test "x$target" = "x$host"; then
13381 # We can use an host tool
13382 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13384$as_echo "host tool" >&6; }
be01d343
PB
13385 else
13386 # We need a cross tool
81ecdfbb
RW
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13388$as_echo "pre-installed" >&6; }
be01d343
PB
13389 fi
13390fi
4b900473 13391
81ecdfbb
RW
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13393$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13394if test "x${build}" != "x${host}" ; then
2429c060
PB
13395 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13396 # We already found the complete path
b8025f34 13397 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13399$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13400 else
13401 # Canadian cross, just use what we found
81ecdfbb
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13403$as_echo "pre-installed" >&6; }
2429c060 13404 fi
be01d343
PB
13405else
13406 ok=yes
13407 case " ${configdirs} " in
13408 *" gcc "*) ;;
13409 *) ok=no ;;
13410 esac
13411 case ,${enable_languages}, in
13412 *,java,*) ;;
13413 *) ok=no ;;
13414 esac
13415 if test $ok = yes; then
13416 # An in-tree tool is available and we can use it
13417 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13419$as_echo "just compiled" >&6; }
2429c060
PB
13420 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13421 # We already found the complete path
b8025f34 13422 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13424$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13425 elif test "x$target" = "x$host"; then
13426 # We can use an host tool
13427 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13429$as_echo "host tool" >&6; }
be01d343
PB
13430 else
13431 # We need a cross tool
81ecdfbb
RW
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13433$as_echo "pre-installed" >&6; }
be01d343
PB
13434 fi
13435fi
4b900473 13436
81ecdfbb
RW
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13438$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13439if test "x${build}" != "x${host}" ; then
2429c060
PB
13440 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13441 # We already found the complete path
b8025f34 13442 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13444$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13445 else
13446 # Canadian cross, just use what we found
81ecdfbb
RW
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13448$as_echo "pre-installed" >&6; }
2429c060 13449 fi
be01d343
PB
13450else
13451 ok=yes
13452 case " ${configdirs} " in
13453 *" gcc "*) ;;
13454 *) ok=no ;;
13455 esac
13456 case ,${enable_languages}, in
13457 *,fortran,*) ;;
13458 *) ok=no ;;
13459 esac
13460 if test $ok = yes; then
13461 # An in-tree tool is available and we can use it
13462 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13464$as_echo "just compiled" >&6; }
2429c060
PB
13465 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13466 # We already found the complete path
b8025f34 13467 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13469$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13470 elif test "x$target" = "x$host"; then
13471 # We can use an host tool
13472 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13474$as_echo "host tool" >&6; }
be01d343
PB
13475 else
13476 # We need a cross tool
81ecdfbb
RW
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13478$as_echo "pre-installed" >&6; }
be01d343
PB
13479 fi
13480fi
4b900473 13481
e552509b
ILT
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13483$as_echo_n "checking where to find the target gccgo... " >&6; }
13484if test "x${build}" != "x${host}" ; then
13485 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13486 # We already found the complete path
13487 ac_dir=`dirname $GOC_FOR_TARGET`
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13489$as_echo "pre-installed in $ac_dir" >&6; }
13490 else
13491 # Canadian cross, just use what we found
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13493$as_echo "pre-installed" >&6; }
13494 fi
13495else
13496 ok=yes
13497 case " ${configdirs} " in
13498 *" gcc "*) ;;
13499 *) ok=no ;;
13500 esac
13501 case ,${enable_languages}, in
13502 *,go,*) ;;
13503 *) ok=no ;;
13504 esac
13505 if test $ok = yes; then
13506 # An in-tree tool is available and we can use it
13507 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13509$as_echo "just compiled" >&6; }
13510 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13511 # We already found the complete path
13512 ac_dir=`dirname $GOC_FOR_TARGET`
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13514$as_echo "pre-installed in $ac_dir" >&6; }
13515 elif test "x$target" = "x$host"; then
13516 # We can use an host tool
13517 GOC_FOR_TARGET='$(GOC)'
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13519$as_echo "host tool" >&6; }
13520 else
13521 # We need a cross tool
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13523$as_echo "pre-installed" >&6; }
13524 fi
13525fi
13526
81ecdfbb
RW
13527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13528$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13529if test "x${build}" != "x${host}" ; then
2429c060
PB
13530 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13531 # We already found the complete path
b8025f34 13532 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13534$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13535 else
13536 # Canadian cross, just use what we found
81ecdfbb
RW
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13538$as_echo "pre-installed" >&6; }
2429c060 13539 fi
be01d343
PB
13540else
13541 ok=yes
13542 case " ${configdirs} " in
13543 *" ld "*) ;;
13544 *) ok=no ;;
13545 esac
c6b750e1 13546
be01d343
PB
13547 if test $ok = yes; then
13548 # An in-tree tool is available and we can use it
13549 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13551$as_echo "just compiled" >&6; }
2429c060
PB
13552 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13553 # We already found the complete path
b8025f34 13554 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13556$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13557 elif test "x$target" = "x$host"; then
13558 # We can use an host tool
13559 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13561$as_echo "host tool" >&6; }
be01d343
PB
13562 else
13563 # We need a cross tool
81ecdfbb
RW
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13565$as_echo "pre-installed" >&6; }
be01d343
PB
13566 fi
13567fi
4b900473 13568
81ecdfbb
RW
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13570$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13571if test "x${build}" != "x${host}" ; then
2429c060
PB
13572 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13573 # We already found the complete path
b8025f34 13574 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13576$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13577 else
13578 # Canadian cross, just use what we found
81ecdfbb
RW
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13580$as_echo "pre-installed" >&6; }
2429c060 13581 fi
be01d343 13582else
2429c060
PB
13583 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13584 # We already found the complete path
b8025f34 13585 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13587$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13588 elif test "x$target" = "x$host"; then
be01d343
PB
13589 # We can use an host tool
13590 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13592$as_echo "host tool" >&6; }
be01d343
PB
13593 else
13594 # We need a cross tool
81ecdfbb
RW
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13596$as_echo "pre-installed" >&6; }
be01d343
PB
13597 fi
13598fi
4b900473 13599
81ecdfbb
RW
13600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13601$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13602if test "x${build}" != "x${host}" ; then
2429c060
PB
13603 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13604 # We already found the complete path
b8025f34 13605 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13607$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13608 else
13609 # Canadian cross, just use what we found
81ecdfbb
RW
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13611$as_echo "pre-installed" >&6; }
2429c060 13612 fi
be01d343
PB
13613else
13614 ok=yes
13615 case " ${configdirs} " in
13616 *" binutils "*) ;;
13617 *) ok=no ;;
13618 esac
c6b750e1 13619
be01d343
PB
13620 if test $ok = yes; then
13621 # An in-tree tool is available and we can use it
13622 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13624$as_echo "just compiled" >&6; }
2429c060
PB
13625 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13626 # We already found the complete path
b8025f34 13627 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13629$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13630 elif test "x$target" = "x$host"; then
13631 # We can use an host tool
13632 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13634$as_echo "host tool" >&6; }
be01d343
PB
13635 else
13636 # We need a cross tool
81ecdfbb
RW
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13638$as_echo "pre-installed" >&6; }
be01d343
PB
13639 fi
13640fi
4b900473 13641
81ecdfbb
RW
13642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13643$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13644if test "x${build}" != "x${host}" ; then
2429c060
PB
13645 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13646 # We already found the complete path
b8025f34 13647 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13649$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13650 else
13651 # Canadian cross, just use what we found
81ecdfbb
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13653$as_echo "pre-installed" >&6; }
2429c060 13654 fi
be01d343
PB
13655else
13656 ok=yes
13657 case " ${configdirs} " in
13658 *" binutils "*) ;;
13659 *) ok=no ;;
13660 esac
c6b750e1 13661
be01d343
PB
13662 if test $ok = yes; then
13663 # An in-tree tool is available and we can use it
13664 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13666$as_echo "just compiled" >&6; }
2429c060
PB
13667 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13668 # We already found the complete path
b8025f34 13669 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13671$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13672 elif test "x$target" = "x$host"; then
13673 # We can use an host tool
13674 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13676$as_echo "host tool" >&6; }
be01d343
PB
13677 else
13678 # We need a cross tool
81ecdfbb
RW
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13680$as_echo "pre-installed" >&6; }
be01d343
PB
13681 fi
13682fi
4b900473 13683
81ecdfbb
RW
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13685$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13686if test "x${build}" != "x${host}" ; then
2429c060
PB
13687 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13688 # We already found the complete path
b8025f34 13689 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13691$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13692 else
13693 # Canadian cross, just use what we found
81ecdfbb
RW
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13695$as_echo "pre-installed" >&6; }
2429c060 13696 fi
be01d343
PB
13697else
13698 ok=yes
13699 case " ${configdirs} " in
13700 *" binutils "*) ;;
13701 *) ok=no ;;
13702 esac
c6b750e1 13703
be01d343
PB
13704 if test $ok = yes; then
13705 # An in-tree tool is available and we can use it
13706 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13708$as_echo "just compiled" >&6; }
2429c060
PB
13709 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13710 # We already found the complete path
b8025f34 13711 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13713$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13714 elif test "x$target" = "x$host"; then
13715 # We can use an host tool
13716 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13718$as_echo "host tool" >&6; }
be01d343
PB
13719 else
13720 # We need a cross tool
81ecdfbb
RW
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13722$as_echo "pre-installed" >&6; }
be01d343
PB
13723 fi
13724fi
4b900473 13725
81ecdfbb
RW
13726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13727$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13728if test "x${build}" != "x${host}" ; then
2429c060
PB
13729 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13730 # We already found the complete path
b8025f34 13731 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13733$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13734 else
13735 # Canadian cross, just use what we found
81ecdfbb
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13737$as_echo "pre-installed" >&6; }
2429c060 13738 fi
be01d343
PB
13739else
13740 ok=yes
13741 case " ${configdirs} " in
13742 *" binutils "*) ;;
13743 *) ok=no ;;
13744 esac
c6b750e1 13745
be01d343
PB
13746 if test $ok = yes; then
13747 # An in-tree tool is available and we can use it
9b980aa1 13748 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13750$as_echo "just compiled" >&6; }
2429c060
PB
13751 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13752 # We already found the complete path
b8025f34 13753 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13755$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13756 elif test "x$target" = "x$host"; then
13757 # We can use an host tool
13758 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13760$as_echo "host tool" >&6; }
be01d343
PB
13761 else
13762 # We need a cross tool
81ecdfbb
RW
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13764$as_echo "pre-installed" >&6; }
be01d343
PB
13765 fi
13766fi
4b900473 13767
81ecdfbb
RW
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13769$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13770if test "x${build}" != "x${host}" ; then
2429c060
PB
13771 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13772 # We already found the complete path
b8025f34 13773 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13775$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13776 else
13777 # Canadian cross, just use what we found
81ecdfbb
RW
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13779$as_echo "pre-installed" >&6; }
2429c060 13780 fi
be01d343
PB
13781else
13782 ok=yes
13783 case " ${configdirs} " in
13784 *" binutils "*) ;;
13785 *) ok=no ;;
13786 esac
c6b750e1 13787
be01d343
PB
13788 if test $ok = yes; then
13789 # An in-tree tool is available and we can use it
13790 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13792$as_echo "just compiled" >&6; }
2429c060
PB
13793 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13794 # We already found the complete path
b8025f34 13795 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13797$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13798 elif test "x$target" = "x$host"; then
13799 # We can use an host tool
13800 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13802$as_echo "host tool" >&6; }
be01d343
PB
13803 else
13804 # We need a cross tool
81ecdfbb
RW
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13806$as_echo "pre-installed" >&6; }
be01d343 13807 fi
a0da8069 13808fi
54752a6b 13809
81ecdfbb
RW
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13811$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13812if test "x${build}" != "x${host}" ; then
13813 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13814 # We already found the complete path
13815 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13817$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13818 else
13819 # Canadian cross, just use what we found
81ecdfbb
RW
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13821$as_echo "pre-installed" >&6; }
0c24b341
NC
13822 fi
13823else
13824 ok=yes
13825 case " ${configdirs} " in
13826 *" binutils "*) ;;
13827 *) ok=no ;;
13828 esac
13829
13830 if test $ok = yes; then
13831 # An in-tree tool is available and we can use it
13832 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13834$as_echo "just compiled" >&6; }
0c24b341
NC
13835 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13836 # We already found the complete path
13837 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13839$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13840 elif test "x$target" = "x$host"; then
13841 # We can use an host tool
13842 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13844$as_echo "host tool" >&6; }
0c24b341
NC
13845 else
13846 # We need a cross tool
81ecdfbb
RW
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13848$as_echo "pre-installed" >&6; }
0c24b341
NC
13849 fi
13850fi
13851
54752a6b
NN
13852
13853
be01d343 13854
4b900473 13855
a0da8069
NN
13856# Certain tools may need extra flags.
13857AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13858RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13859NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13860
be01d343
PB
13861# When building target libraries, except in a Canadian cross, we use
13862# the same toolchain as the compiler we just built.
13863COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13864COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13865COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13866if test $host = $build; then
13867 case " $configdirs " in
13868 *" gcc "*)
13869 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13870 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13871 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13872 ;;
13873 esac
13874fi
13875
13876
13877
13878
13879
81ecdfbb
RW
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13881$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13882# Check whether --enable-maintainer-mode was given.
13883if test "${enable_maintainer_mode+set}" = set; then :
13884 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13885else
13886 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13887fi
13888
13889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13890$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13891
13892
13893if test "$USE_MAINTAINER_MODE" = yes; then
13894 MAINTAINER_MODE_TRUE=
13895 MAINTAINER_MODE_FALSE='#'
13896else
13897 MAINTAINER_MODE_TRUE='#'
13898 MAINTAINER_MODE_FALSE=
c6b750e1 13899fi
3d5e36ae
AO
13900MAINT=$MAINTAINER_MODE_TRUE
13901
1d39f329
NN
13902# ---------------------
13903# GCC bootstrap support
13904# ---------------------
13905
13906# Stage specific cflags for build.
13907stage1_cflags="-g"
13908case $build in
13909 vax-*-*)
13910 case ${GCC} in
13911 yes) stage1_cflags="-g -Wa,-J" ;;
13912 *) stage1_cflags="-g -J" ;;
13913 esac ;;
1d39f329
NN
13914esac
13915
1d89b610 13916# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 13917if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
13918 saved_CFLAGS="$CFLAGS"
13919
13920 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13921 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13923$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
13925/* end confdefs.h. */
13926
2038f525
PB
13927#if (__GNUC__ < 3) \
13928 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13929 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13930#error http://gcc.gnu.org/PR29382
13931#endif
13932
c6b750e1
DJ
13933int
13934main ()
13935{
13936
13937 ;
13938 return 0;
13939}
13940_ACEOF
81ecdfbb
RW
13941if ac_fn_c_try_compile "$LINENO"; then :
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13943$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 13944else
81ecdfbb
RW
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13946$as_echo "no" >&6; }
c6b750e1 13947fi
81ecdfbb 13948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
13949
13950 CFLAGS="$saved_CFLAGS"
13951fi
13952
13953
1d39f329 13954
8a0d8a5c 13955# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
13956# Check whether --enable-stage1-checking was given.
13957if test "${enable_stage1_checking+set}" = set; then :
13958 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 13959else
5566c1fa 13960 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 13961 stage1_checking=--enable-checking=yes,types
8a0d8a5c 13962else
5566c1fa 13963 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 13964fi
81ecdfbb 13965fi
8a0d8a5c
PB
13966
13967
c6b750e1 13968
81ecdfbb
RW
13969# Enable -Werror in bootstrap stage2 and later.
13970# Check whether --enable-werror was given.
13971if test "${enable_werror+set}" = set; then :
13972 enableval=$enable_werror;
1d39f329 13973else
a0323144 13974 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 13975 enable_werror=yes
79fcd0ec
PB
13976else
13977 enable_werror=no
13978fi
81ecdfbb
RW
13979fi
13980
1a6f2dc7
NN
13981case ${enable_werror} in
13982 yes) stage2_werror_flag="--enable-werror-always" ;;
13983 *) stage2_werror_flag="" ;;
1d39f329
NN
13984esac
13985
13986
e8a5fa9c
RW
13987# Specify what files to not compare during bootstrap.
13988
13989compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13990case "$target" in
13991 hppa*64*-*-hpux*) ;;
13992 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13993esac
1f53ca9a
AO
13994case " $configdirs " in
13995*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13996esac
e8a5fa9c
RW
13997
13998
81ecdfbb
RW
13999ac_config_files="$ac_config_files Makefile"
14000
c6b750e1 14001cat >confcache <<\_ACEOF
a0da8069
NN
14002# This file is a shell script that caches the results of configure
14003# tests run on this system so they can be shared between configure
c6b750e1
DJ
14004# scripts and configure runs, see configure's option --config-cache.
14005# It is not useful on other systems. If it contains results you don't
14006# want to keep, you may remove or edit it.
a0da8069 14007#
c6b750e1
DJ
14008# config.status only pays attention to the cache file if you give it
14009# the --recheck option to rerun configure.
a0da8069 14010#
c6b750e1
DJ
14011# `ac_cv_env_foo' variables (set or unset) will be overridden when
14012# loading this file, other *unset* `ac_cv_foo' will be assigned the
14013# following values.
14014
14015_ACEOF
14016
a0da8069
NN
14017# The following way of writing the cache mishandles newlines in values,
14018# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14019# So, we kill variables containing newlines.
a0da8069
NN
14020# Ultrix sh set writes to stderr and can't be redirected directly,
14021# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14022(
14023 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14024 eval ac_val=\$$ac_var
14025 case $ac_val in #(
14026 *${as_nl}*)
14027 case $ac_var in #(
14028 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14029$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14030 esac
14031 case $ac_var in #(
14032 _ | IFS | as_nl) ;; #(
14033 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14034 *) { eval $ac_var=; unset $ac_var;} ;;
14035 esac ;;
14036 esac
14037 done
14038
c6b750e1 14039 (set) 2>&1 |
81ecdfbb
RW
14040 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14041 *${as_nl}ac_space=\ *)
14042 # `set' does not quote correctly, so add quotes: double-quote
14043 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14044 sed -n \
14045 "s/'/'\\\\''/g;
14046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14047 ;; #(
c6b750e1
DJ
14048 *)
14049 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14051 ;;
81ecdfbb
RW
14052 esac |
14053 sort
14054) |
c6b750e1 14055 sed '
81ecdfbb 14056 /^ac_cv_env_/b end
c6b750e1 14057 t clear
81ecdfbb 14058 :clear
c6b750e1
DJ
14059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14060 t end
81ecdfbb
RW
14061 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14062 :end' >>confcache
14063if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14064 if test -w "$cache_file"; then
14065 test "x$cache_file" != "x/dev/null" &&
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14067$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14068 cat confcache >$cache_file
a0da8069 14069 else
81ecdfbb
RW
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14071$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14072 fi
852e5f18 14073fi
a0da8069 14074rm -f confcache
852e5f18 14075
a0da8069
NN
14076test "x$prefix" = xNONE && prefix=$ac_default_prefix
14077# Let make expand exec_prefix.
14078test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14079
a0da8069
NN
14080# Transform confdefs.h into DEFS.
14081# Protect against shell expansion while executing Makefile rules.
14082# Protect against Makefile macro expansion.
c6b750e1
DJ
14083#
14084# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14085# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14086# look for a macro that doesn't take arguments.
81ecdfbb
RW
14087ac_script='
14088:mline
14089/\\$/{
14090 N
14091 s,\\\n,,
14092 b mline
14093}
c6b750e1 14094t clear
81ecdfbb
RW
14095:clear
14096s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14097t quote
81ecdfbb 14098s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14099t quote
81ecdfbb
RW
14100b any
14101:quote
14102s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14103s/\[/\\&/g
14104s/\]/\\&/g
14105s/\$/$$/g
14106H
14107:any
14108${
14109 g
14110 s/^\n//
14111 s/\n/ /g
14112 p
14113}
14114'
14115DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14116
14117
14118ac_libobjs=
14119ac_ltlibobjs=
14120for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14121 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14122 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14123 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14124 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14125 # will be set to the directory where LIBOBJS objects are built.
14126 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14127 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14128done
14129LIBOBJS=$ac_libobjs
852e5f18 14130
c6b750e1 14131LTLIBOBJS=$ac_ltlibobjs
376a0e54 14132
cac3d6c4 14133
c6b750e1
DJ
14134
14135: ${CONFIG_STATUS=./config.status}
81ecdfbb 14136ac_write_fail=0
c6b750e1
DJ
14137ac_clean_files_save=$ac_clean_files
14138ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14139{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14140$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14141as_write_fail=0
14142cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14143#! $SHELL
14144# Generated by $as_me.
a0da8069 14145# Run this file to recreate the current configuration.
a0da8069 14146# Compiler output produced by configure, useful for debugging
c6b750e1 14147# configure, is in config.log if it exists.
376a0e54 14148
c6b750e1
DJ
14149debug=false
14150ac_cs_recheck=false
14151ac_cs_silent=false
c6b750e1 14152
81ecdfbb
RW
14153SHELL=\${CONFIG_SHELL-$SHELL}
14154export SHELL
14155_ASEOF
14156cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14157## -------------------- ##
14158## M4sh Initialization. ##
14159## -------------------- ##
14160
14161# Be more Bourne compatible
14162DUALCASE=1; export DUALCASE # for MKS sh
14163if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14164 emulate sh
14165 NULLCMD=:
81ecdfbb 14166 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14167 # is contrary to our usage. Disable this feature.
14168 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14169 setopt NO_GLOB_SUBST
14170else
14171 case `(set -o) 2>/dev/null` in #(
14172 *posix*) :
14173 set -o posix ;; #(
14174 *) :
14175 ;;
14176esac
c6b750e1 14177fi
c6b750e1 14178
81ecdfbb
RW
14179
14180as_nl='
14181'
14182export as_nl
14183# Printing a long string crashes Solaris 7 /usr/bin/printf.
14184as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14185as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14186as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14187# Prefer a ksh shell builtin over an external printf program on Solaris,
14188# but without wasting forks for bash or zsh.
14189if test -z "$BASH_VERSION$ZSH_VERSION" \
14190 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14191 as_echo='print -r --'
14192 as_echo_n='print -rn --'
14193elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14194 as_echo='printf %s\n'
14195 as_echo_n='printf %s'
14196else
14197 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14198 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14199 as_echo_n='/usr/ucb/echo -n'
14200 else
14201 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14202 as_echo_n_body='eval
14203 arg=$1;
14204 case $arg in #(
14205 *"$as_nl"*)
14206 expr "X$arg" : "X\\(.*\\)$as_nl";
14207 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14208 esac;
14209 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14210 '
14211 export as_echo_n_body
14212 as_echo_n='sh -c $as_echo_n_body as_echo'
14213 fi
14214 export as_echo_body
14215 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14216fi
14217
81ecdfbb
RW
14218# The user is always right.
14219if test "${PATH_SEPARATOR+set}" != set; then
14220 PATH_SEPARATOR=:
14221 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14222 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14223 PATH_SEPARATOR=';'
14224 }
14225fi
14226
14227
14228# IFS
14229# We need space, tab and new line, in precisely that order. Quoting is
14230# there to prevent editors from complaining about space-tab.
14231# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14232# splitting by setting IFS to empty value.)
14233IFS=" "" $as_nl"
14234
14235# Find who we are. Look in the path if we contain no directory separator.
14236case $0 in #((
14237 *[\\/]* ) as_myself=$0 ;;
14238 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239for as_dir in $PATH
14240do
14241 IFS=$as_save_IFS
14242 test -z "$as_dir" && as_dir=.
14243 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14244 done
14245IFS=$as_save_IFS
14246
14247 ;;
14248esac
14249# We did not find ourselves, most probably we were run as `sh COMMAND'
14250# in which case we are not to be found in the path.
14251if test "x$as_myself" = x; then
14252 as_myself=$0
14253fi
14254if test ! -f "$as_myself"; then
14255 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14256 exit 1
14257fi
c6b750e1 14258
81ecdfbb
RW
14259# Unset variables that we do not need and which cause bugs (e.g. in
14260# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14261# suppresses any "Segmentation fault" message there. '((' could
14262# trigger a bug in pdksh 5.2.14.
14263for as_var in BASH_ENV ENV MAIL MAILPATH
14264do eval test x\${$as_var+set} = xset \
14265 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14266done
c6b750e1
DJ
14267PS1='$ '
14268PS2='> '
14269PS4='+ '
14270
14271# NLS nuisances.
81ecdfbb
RW
14272LC_ALL=C
14273export LC_ALL
14274LANGUAGE=C
14275export LANGUAGE
14276
14277# CDPATH.
14278(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14279
14280
14281# as_fn_error ERROR [LINENO LOG_FD]
14282# ---------------------------------
14283# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14284# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14285# script with status $?, using 1 if that was 0.
14286as_fn_error ()
14287{
14288 as_status=$?; test $as_status -eq 0 && as_status=1
14289 if test "$3"; then
14290 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14291 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14292 fi
81ecdfbb
RW
14293 $as_echo "$as_me: error: $1" >&2
14294 as_fn_exit $as_status
14295} # as_fn_error
14296
14297
14298# as_fn_set_status STATUS
14299# -----------------------
14300# Set $? to STATUS, without forking.
14301as_fn_set_status ()
14302{
14303 return $1
14304} # as_fn_set_status
14305
14306# as_fn_exit STATUS
14307# -----------------
14308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14309as_fn_exit ()
14310{
14311 set +e
14312 as_fn_set_status $1
14313 exit $1
14314} # as_fn_exit
14315
14316# as_fn_unset VAR
14317# ---------------
14318# Portably unset VAR.
14319as_fn_unset ()
14320{
14321 { eval $1=; unset $1;}
14322}
14323as_unset=as_fn_unset
14324# as_fn_append VAR VALUE
14325# ----------------------
14326# Append the text in VALUE to the end of the definition contained in VAR. Take
14327# advantage of any shell optimizations that allow amortized linear growth over
14328# repeated appends, instead of the typical quadratic growth present in naive
14329# implementations.
14330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14331 eval 'as_fn_append ()
14332 {
14333 eval $1+=\$2
14334 }'
14335else
14336 as_fn_append ()
14337 {
14338 eval $1=\$$1\$2
14339 }
14340fi # as_fn_append
14341
14342# as_fn_arith ARG...
14343# ------------------
14344# Perform arithmetic evaluation on the ARGs, and store the result in the
14345# global $as_val. Take advantage of shells that can avoid forks. The arguments
14346# must be portable across $(()) and expr.
14347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14348 eval 'as_fn_arith ()
14349 {
14350 as_val=$(( $* ))
14351 }'
14352else
14353 as_fn_arith ()
14354 {
14355 as_val=`expr "$@" || test $? -eq 1`
14356 }
14357fi # as_fn_arith
14358
c6b750e1 14359
81ecdfbb
RW
14360if expr a : '\(a\)' >/dev/null 2>&1 &&
14361 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14362 as_expr=expr
14363else
14364 as_expr=false
14365fi
14366
81ecdfbb 14367if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14368 as_basename=basename
14369else
14370 as_basename=false
14371fi
14372
81ecdfbb
RW
14373if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14374 as_dirname=dirname
14375else
14376 as_dirname=false
14377fi
c6b750e1 14378
81ecdfbb 14379as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14380$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14381 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14382 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14383$as_echo X/"$0" |
14384 sed '/^.*\/\([^/][^/]*\)\/*$/{
14385 s//\1/
14386 q
14387 }
14388 /^X\/\(\/\/\)$/{
14389 s//\1/
14390 q
14391 }
14392 /^X\/\(\/\).*/{
14393 s//\1/
14394 q
14395 }
14396 s/.*/./; q'`
c6b750e1 14397
c6b750e1
DJ
14398# Avoid depending upon Character Ranges.
14399as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14400as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14401as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14402as_cr_digits='0123456789'
14403as_cr_alnum=$as_cr_Letters$as_cr_digits
14404
81ecdfbb
RW
14405ECHO_C= ECHO_N= ECHO_T=
14406case `echo -n x` in #(((((
14407-n*)
14408 case `echo 'xy\c'` in
14409 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14410 xy) ECHO_C='\c';;
14411 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14412 ECHO_T=' ';;
14413 esac;;
14414*)
14415 ECHO_N='-n';;
c6b750e1
DJ
14416esac
14417
81ecdfbb
RW
14418rm -f conf$$ conf$$.exe conf$$.file
14419if test -d conf$$.dir; then
14420 rm -f conf$$.dir/conf$$.file
c6b750e1 14421else
81ecdfbb
RW
14422 rm -f conf$$.dir
14423 mkdir conf$$.dir 2>/dev/null
c6b750e1 14424fi
81ecdfbb
RW
14425if (echo >conf$$.file) 2>/dev/null; then
14426 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14427 as_ln_s='ln -s'
81ecdfbb
RW
14428 # ... but there are two gotchas:
14429 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14430 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14431 # In both cases, we have to default to `cp -p'.
14432 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14433 as_ln_s='cp -p'
14434 elif ln conf$$.file conf$$ 2>/dev/null; then
14435 as_ln_s=ln
14436 else
14437 as_ln_s='cp -p'
c6b750e1 14438 fi
c6b750e1
DJ
14439else
14440 as_ln_s='cp -p'
14441fi
81ecdfbb
RW
14442rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14443rmdir conf$$.dir 2>/dev/null
14444
14445
14446# as_fn_mkdir_p
14447# -------------
14448# Create "$as_dir" as a directory, including parents if necessary.
14449as_fn_mkdir_p ()
14450{
14451
14452 case $as_dir in #(
14453 -*) as_dir=./$as_dir;;
14454 esac
14455 test -d "$as_dir" || eval $as_mkdir_p || {
14456 as_dirs=
14457 while :; do
14458 case $as_dir in #(
14459 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14460 *) as_qdir=$as_dir;;
14461 esac
14462 as_dirs="'$as_qdir' $as_dirs"
14463 as_dir=`$as_dirname -- "$as_dir" ||
14464$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14465 X"$as_dir" : 'X\(//\)[^/]' \| \
14466 X"$as_dir" : 'X\(//\)$' \| \
14467 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14468$as_echo X"$as_dir" |
14469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14470 s//\1/
14471 q
14472 }
14473 /^X\(\/\/\)[^/].*/{
14474 s//\1/
14475 q
14476 }
14477 /^X\(\/\/\)$/{
14478 s//\1/
14479 q
14480 }
14481 /^X\(\/\).*/{
14482 s//\1/
14483 q
14484 }
14485 s/.*/./; q'`
14486 test -d "$as_dir" && break
14487 done
14488 test -z "$as_dirs" || eval "mkdir $as_dirs"
14489 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14490
c6b750e1 14491
81ecdfbb 14492} # as_fn_mkdir_p
c6b750e1 14493if mkdir -p . 2>/dev/null; then
81ecdfbb 14494 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14495else
14496 test -d ./-p && rmdir ./-p
14497 as_mkdir_p=false
14498fi
14499
81ecdfbb
RW
14500if test -x / >/dev/null 2>&1; then
14501 as_test_x='test -x'
14502else
14503 if ls -dL / >/dev/null 2>&1; then
14504 as_ls_L_option=L
14505 else
14506 as_ls_L_option=
14507 fi
14508 as_test_x='
14509 eval sh -c '\''
14510 if test -d "$1"; then
14511 test -d "$1/.";
14512 else
14513 case $1 in #(
14514 -*)set "./$1";;
14515 esac;
14516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14517 ???[sx]*):;;*)false;;esac;fi
14518 '\'' sh
14519 '
14520fi
14521as_executable_p=$as_test_x
c6b750e1
DJ
14522
14523# Sed expression to map a string onto a valid CPP name.
14524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14525
14526# Sed expression to map a string onto a valid variable name.
14527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14528
14529
c6b750e1 14530exec 6>&1
81ecdfbb
RW
14531## ----------------------------------- ##
14532## Main body of $CONFIG_STATUS script. ##
14533## ----------------------------------- ##
14534_ASEOF
14535test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14536
14537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14538# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14539# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14540# values after options handling.
14541ac_log="
c6b750e1 14542This file was extended by $as_me, which was
81ecdfbb 14543generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14544
14545 CONFIG_FILES = $CONFIG_FILES
14546 CONFIG_HEADERS = $CONFIG_HEADERS
14547 CONFIG_LINKS = $CONFIG_LINKS
14548 CONFIG_COMMANDS = $CONFIG_COMMANDS
14549 $ $0 $@
14550
81ecdfbb
RW
14551on `(hostname || uname -n) 2>/dev/null | sed 1q`
14552"
14553
c6b750e1
DJ
14554_ACEOF
14555
81ecdfbb
RW
14556case $ac_config_files in *"
14557"*) set x $ac_config_files; shift; ac_config_files=$*;;
14558esac
c6b750e1 14559
c6b750e1 14560
c6b750e1 14561
81ecdfbb
RW
14562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14563# Files that config.status was made for.
14564config_files="$ac_config_files"
c6b750e1 14565
81ecdfbb 14566_ACEOF
c6b750e1 14567
81ecdfbb 14568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14569ac_cs_usage="\
81ecdfbb
RW
14570\`$as_me' instantiates files and other configuration actions
14571from templates according to the current configuration. Unless the files
14572and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14573
81ecdfbb 14574Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14575
14576 -h, --help print this help, then exit
81ecdfbb
RW
14577 -V, --version print version number and configuration settings, then exit
14578 -q, --quiet, --silent
14579 do not print progress messages
c6b750e1
DJ
14580 -d, --debug don't remove temporary files
14581 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14582 --file=FILE[:TEMPLATE]
14583 instantiate the configuration file FILE
c6b750e1
DJ
14584
14585Configuration files:
14586$config_files
14587
81ecdfbb 14588Report bugs to the package provider."
c6b750e1 14589
81ecdfbb
RW
14590_ACEOF
14591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14592ac_cs_version="\\
14593config.status
81ecdfbb
RW
14594configured by $0, generated by GNU Autoconf 2.64,
14595 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14596
81ecdfbb 14597Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14598This config.status script is free software; the Free Software Foundation
14599gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14600
14601ac_pwd='$ac_pwd'
14602srcdir='$srcdir'
14603INSTALL='$INSTALL'
8e957354 14604AWK='$AWK'
81ecdfbb 14605test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14606_ACEOF
14607
81ecdfbb
RW
14608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14609# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14610ac_need_defaults=:
14611while test $# != 0
a0da8069 14612do
c6b750e1
DJ
14613 case $1 in
14614 --*=*)
81ecdfbb
RW
14615 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14616 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14617 ac_shift=:
14618 ;;
81ecdfbb 14619 *)
c6b750e1
DJ
14620 ac_option=$1
14621 ac_optarg=$2
14622 ac_shift=shift
14623 ;;
c6b750e1
DJ
14624 esac
14625
14626 case $ac_option in
14627 # Handling of the options.
a0da8069 14628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14629 ac_cs_recheck=: ;;
81ecdfbb
RW
14630 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14631 $as_echo "$ac_cs_version"; exit ;;
14632 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14633 debug=: ;;
14634 --file | --fil | --fi | --f )
14635 $ac_shift
81ecdfbb
RW
14636 case $ac_optarg in
14637 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14638 esac
14639 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14640 ac_need_defaults=false;;
81ecdfbb
RW
14641 --he | --h | --help | --hel | -h )
14642 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14644 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14645 ac_cs_silent=: ;;
14646
14647 # This is an error.
81ecdfbb
RW
14648 -*) as_fn_error "unrecognized option: \`$1'
14649Try \`$0 --help' for more information." ;;
c6b750e1 14650
81ecdfbb
RW
14651 *) as_fn_append ac_config_targets " $1"
14652 ac_need_defaults=false ;;
c6b750e1 14653
376a0e54 14654 esac
c6b750e1 14655 shift
376a0e54
CM
14656done
14657
c6b750e1 14658ac_configure_extra_args=
376a0e54 14659
c6b750e1
DJ
14660if $ac_cs_silent; then
14661 exec 6>/dev/null
14662 ac_configure_extra_args="$ac_configure_extra_args --silent"
14663fi
376a0e54 14664
c6b750e1 14665_ACEOF
81ecdfbb 14666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14667if \$ac_cs_recheck; then
81ecdfbb
RW
14668 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14669 shift
14670 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14671 CONFIG_SHELL='$SHELL'
14672 export CONFIG_SHELL
14673 exec "\$@"
c6b750e1
DJ
14674fi
14675
14676_ACEOF
81ecdfbb
RW
14677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14678exec 5>>config.log
14679{
14680 echo
14681 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14682## Running $as_me. ##
14683_ASBOX
14684 $as_echo "$ac_log"
14685} >&5
c6b750e1 14686
81ecdfbb
RW
14687_ACEOF
14688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14689#
14690# INIT-COMMANDS
14691#
14692extrasub_build="$extrasub_build"
14693 extrasub_host="$extrasub_host"
14694 extrasub_target="$extrasub_target"
14695
81ecdfbb 14696_ACEOF
c6b750e1 14697
81ecdfbb 14698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14699
81ecdfbb 14700# Handling of arguments.
c6b750e1
DJ
14701for ac_config_target in $ac_config_targets
14702do
81ecdfbb
RW
14703 case $ac_config_target in
14704 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14705
14706 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14707 esac
14708done
14709
81ecdfbb 14710
c6b750e1
DJ
14711# If the user did not use the arguments to specify the items to instantiate,
14712# then the envvar interface is used. Set only those that are not.
14713# We use the long form for the default assignment because of an extremely
14714# bizarre bug on SunOS 4.1.3.
14715if $ac_need_defaults; then
14716 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14717fi
14718
14719# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14720# simply because there is no reason against having it here, and in addition,
c6b750e1 14721# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14722# Hook for its removal unless debugging.
14723# Note that there is a small window in which the directory will not be cleaned:
14724# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14725$debug ||
14726{
81ecdfbb
RW
14727 tmp=
14728 trap 'exit_status=$?
14729 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14730' 0
14731 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14732}
c6b750e1
DJ
14733# Create a (secure) tmp directory for tmp files.
14734
14735{
81ecdfbb 14736 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14737 test -n "$tmp" && test -d "$tmp"
14738} ||
14739{
81ecdfbb
RW
14740 tmp=./conf$$-$RANDOM
14741 (umask 077 && mkdir "$tmp")
14742} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14743
14744# Set up the scripts for CONFIG_FILES section.
14745# No need to generate them if there are no CONFIG_FILES.
14746# This happens for instance with `./config.status config.h'.
14747if test -n "$CONFIG_FILES"; then
14748
14749if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14750 ac_cs_awk_getline=:
14751 ac_cs_awk_pipe_init=
14752 ac_cs_awk_read_file='
14753 while ((getline aline < (F[key])) > 0)
14754 print(aline)
14755 close(F[key])'
14756 ac_cs_awk_pipe_fini=
14757else
14758 ac_cs_awk_getline=false
14759 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14760 ac_cs_awk_read_file='
14761 print "|#_!!_#|"
14762 print "cat " F[key] " &&"
14763 '$ac_cs_awk_pipe_init
14764 # The final `:' finishes the AND list.
14765 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14766fi
14767ac_cr=`echo X | tr X '\015'`
14768# On cygwin, bash can eat \r inside `` if the user requested igncr.
14769# But we know of no other shell where ac_cr would be empty at this
14770# point, so we can use a bashism as a fallback.
14771if test "x$ac_cr" = x; then
14772 eval ac_cr=\$\'\\r\'
14773fi
14774ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14775if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14776 ac_cs_awk_cr='\r'
14777else
14778 ac_cs_awk_cr=$ac_cr
14779fi
14780
14781echo 'BEGIN {' >"$tmp/subs1.awk" &&
14782_ACEOF
14783
14784# Create commands to substitute file output variables.
c6b750e1 14785{
81ecdfbb
RW
14786 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14787 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14788 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14789 echo "_ACAWK" &&
14790 echo "_ACEOF"
14791} >conf$$files.sh &&
14792. ./conf$$files.sh ||
14793 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14794rm -f conf$$files.sh
c6b750e1 14795
81ecdfbb
RW
14796{
14797 echo "cat >conf$$subs.awk <<_ACEOF" &&
14798 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14799 echo "_ACEOF"
14800} >conf$$subs.sh ||
14801 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14802ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14803ac_delim='%!_!# '
14804for ac_last_try in false false false false false :; do
14805 . ./conf$$subs.sh ||
14806 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14807
14808 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14809 if test $ac_delim_n = $ac_delim_num; then
14810 break
14811 elif $ac_last_try; then
14812 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14813 else
14814 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14815 fi
14816done
14817rm -f conf$$subs.sh
14818
14819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14820cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14821_ACEOF
81ecdfbb
RW
14822sed -n '
14823h
14824s/^/S["/; s/!.*/"]=/
14825p
14826g
14827s/^[^!]*!//
14828:repl
14829t repl
14830s/'"$ac_delim"'$//
14831t delim
14832:nl
14833h
14834s/\(.\{148\}\).*/\1/
14835t more1
14836s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14837p
14838n
14839b repl
14840:more1
14841s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14842p
14843g
14844s/.\{148\}//
14845t nl
14846:delim
14847h
14848s/\(.\{148\}\).*/\1/
14849t more2
14850s/["\\]/\\&/g; s/^/"/; s/$/"/
14851p
14852b
14853:more2
14854s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14855p
14856g
14857s/.\{148\}//
14858t delim
14859' <conf$$subs.awk | sed '
14860/^[^""]/{
14861 N
14862 s/\n//
14863}
14864' >>$CONFIG_STATUS || ac_write_fail=1
14865rm -f conf$$subs.awk
14866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14867_ACAWK
14868cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14869 for (key in S) S_is_set[key] = 1
14870 FS = "\a"
14871 \$ac_cs_awk_pipe_init
14872}
14873{
14874 line = $ 0
14875 nfields = split(line, field, "@")
14876 substed = 0
14877 len = length(field[1])
14878 for (i = 2; i < nfields; i++) {
14879 key = field[i]
14880 keylen = length(key)
14881 if (S_is_set[key]) {
14882 value = S[key]
14883 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14884 len += length(value) + length(field[++i])
14885 substed = 1
14886 } else
14887 len += 1 + keylen
14888 }
14889 if (nfields == 3 && !substed) {
14890 key = field[2]
14891 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14892 \$ac_cs_awk_read_file
14893 next
14894 }
14895 }
14896 print line
14897}
14898\$ac_cs_awk_pipe_fini
14899_ACAWK
14900_ACEOF
14901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14902if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14903 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14904else
14905 cat
14906fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14907 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14908_ACEOF
14909
14910# VPATH may cause trouble with some makes, so we remove $(srcdir),
14911# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14912# trailing colons and then remove the whole line if VPATH becomes empty
14913# (actually we leave an empty line to preserve line numbers).
14914if test "x$srcdir" = x.; then
14915 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14916s/:*\$(srcdir):*/:/
14917s/:*\${srcdir}:*/:/
14918s/:*@srcdir@:*/:/
14919s/^\([^=]*=[ ]*\):*/\1/
14920s/:*$//
14921s/^[^=]*=[ ]*$//
14922}'
14923fi
c6b750e1 14924
81ecdfbb
RW
14925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14926fi # test -n "$CONFIG_FILES"
c6b750e1 14927
c6b750e1 14928
81ecdfbb
RW
14929eval set X " :F $CONFIG_FILES "
14930shift
14931for ac_tag
14932do
14933 case $ac_tag in
14934 :[FHLC]) ac_mode=$ac_tag; continue;;
14935 esac
14936 case $ac_mode$ac_tag in
14937 :[FHL]*:*);;
14938 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14939 :[FH]-) ac_tag=-:-;;
14940 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14941 esac
14942 ac_save_IFS=$IFS
14943 IFS=:
14944 set x $ac_tag
14945 IFS=$ac_save_IFS
14946 shift
14947 ac_file=$1
14948 shift
252b5132 14949
81ecdfbb
RW
14950 case $ac_mode in
14951 :L) ac_source=$1;;
14952 :[FH])
14953 ac_file_inputs=
14954 for ac_f
14955 do
14956 case $ac_f in
14957 -) ac_f="$tmp/stdin";;
14958 *) # Look for the file first in the build tree, then in the source tree
14959 # (if the path is not absolute). The absolute path cannot be DOS-style,
14960 # because $ac_f cannot contain `:'.
14961 test -f "$ac_f" ||
14962 case $ac_f in
14963 [\\/$]*) false;;
14964 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14965 esac ||
14966 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14967 esac
14968 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14969 as_fn_append ac_file_inputs " '$ac_f'"
14970 done
c6b750e1 14971
81ecdfbb
RW
14972 # Let's still pretend it is `configure' which instantiates (i.e., don't
14973 # use $as_me), people would be surprised to read:
14974 # /* config.h. Generated by config.status. */
14975 configure_input='Generated from '`
14976 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14977 `' by configure.'
14978 if test x"$ac_file" != x-; then
14979 configure_input="$ac_file. $configure_input"
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14981$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 14982 fi
81ecdfbb
RW
14983 # Neutralize special characters interpreted by sed in replacement strings.
14984 case $configure_input in #(
14985 *\&* | *\|* | *\\* )
14986 ac_sed_conf_input=`$as_echo "$configure_input" |
14987 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14988 *) ac_sed_conf_input=$configure_input;;
14989 esac
cac3d6c4 14990
81ecdfbb
RW
14991 case $ac_tag in
14992 *:-:* | *:-) cat >"$tmp/stdin" \
14993 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14994 esac
14995 ;;
a0da8069 14996 esac
252b5132 14997
81ecdfbb 14998 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
14999$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15000 X"$ac_file" : 'X\(//\)[^/]' \| \
15001 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15002 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15003$as_echo X"$ac_file" |
15004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15005 s//\1/
15006 q
15007 }
15008 /^X\(\/\/\)[^/].*/{
15009 s//\1/
15010 q
15011 }
15012 /^X\(\/\/\)$/{
15013 s//\1/
15014 q
15015 }
15016 /^X\(\/\).*/{
15017 s//\1/
15018 q
15019 }
15020 s/.*/./; q'`
15021 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15022 ac_builddir=.
252b5132 15023
81ecdfbb
RW
15024case "$ac_dir" in
15025.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15026*)
15027 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15028 # A ".." for each directory in $ac_dir_suffix.
15029 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15030 case $ac_top_builddir_sub in
15031 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15032 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15033 esac ;;
15034esac
15035ac_abs_top_builddir=$ac_pwd
15036ac_abs_builddir=$ac_pwd$ac_dir_suffix
15037# for backward compatibility:
15038ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15039
15040case $srcdir in
81ecdfbb 15041 .) # We are building in place.
c6b750e1 15042 ac_srcdir=.
81ecdfbb
RW
15043 ac_top_srcdir=$ac_top_builddir_sub
15044 ac_abs_top_srcdir=$ac_pwd ;;
15045 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15046 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15047 ac_top_srcdir=$srcdir
15048 ac_abs_top_srcdir=$srcdir ;;
15049 *) # Relative name.
15050 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15051 ac_top_srcdir=$ac_top_build_prefix$srcdir
15052 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15053esac
81ecdfbb 15054ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15055
252b5132 15056
81ecdfbb
RW
15057 case $ac_mode in
15058 :F)
15059 #
15060 # CONFIG_FILE
15061 #
c6b750e1
DJ
15062
15063 case $INSTALL in
15064 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15065 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15066 esac
81ecdfbb 15067_ACEOF
252b5132 15068
81ecdfbb
RW
15069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15070# If the template does not know about datarootdir, expand it.
15071# FIXME: This hack should be removed a few years after 2.60.
15072ac_datarootdir_hack=; ac_datarootdir_seen=
15073ac_sed_dataroot='
15074/datarootdir/ {
15075 p
15076 q
15077}
15078/@datadir@/p
15079/@docdir@/p
15080/@infodir@/p
15081/@localedir@/p
15082/@mandir@/p'
15083case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15084*datarootdir*) ac_datarootdir_seen=yes;;
15085*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15087$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15088_ACEOF
81ecdfbb
RW
15089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15090 ac_datarootdir_hack='
15091 s&@datadir@&$datadir&g
15092 s&@docdir@&$docdir&g
15093 s&@infodir@&$infodir&g
15094 s&@localedir@&$localedir&g
15095 s&@mandir@&$mandir&g
15096 s&\\\${datarootdir}&$datarootdir&g' ;;
15097esac
15098_ACEOF
15099
15100# Neutralize VPATH when `$srcdir' = `.'.
15101# Shell code in configure.ac might set extrasub.
15102# FIXME: do we really want to maintain this feature?
15103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15104ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15105$extrasub
15106_ACEOF
81ecdfbb 15107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15108:t
15109/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15110s|@configure_input@|$ac_sed_conf_input|;t t
15111s&@top_builddir@&$ac_top_builddir_sub&;t t
15112s&@top_build_prefix@&$ac_top_build_prefix&;t t
15113s&@srcdir@&$ac_srcdir&;t t
15114s&@abs_srcdir@&$ac_abs_srcdir&;t t
15115s&@top_srcdir@&$ac_top_srcdir&;t t
15116s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15117s&@builddir@&$ac_builddir&;t t
15118s&@abs_builddir@&$ac_abs_builddir&;t t
15119s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15120s&@INSTALL@&$ac_INSTALL&;t t
15121$ac_datarootdir_hack
15122"
15123eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15124if $ac_cs_awk_getline; then
15125 $AWK -f "$tmp/subs.awk"
15126else
15127 $AWK -f "$tmp/subs.awk" | $SHELL
15128fi >$tmp/out \
15129 || as_fn_error "could not create $ac_file" "$LINENO" 5
15130
15131test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15132 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15133 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15135which seems to be undefined. Please make sure it is defined." >&5
15136$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15137which seems to be undefined. Please make sure it is defined." >&2;}
15138
15139 rm -f "$tmp/stdin"
15140 case $ac_file in
15141 -) cat "$tmp/out" && rm -f "$tmp/out";;
15142 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15143 esac \
15144 || as_fn_error "could not create $ac_file" "$LINENO" 5
15145 ;;
c148b4cb 15146
c148b4cb 15147
c148b4cb 15148
81ecdfbb
RW
15149 esac
15150
06a51eac
RW
15151
15152 case $ac_file$ac_mode in
15153 "Makefile":F) sed "$extrasub_build" Makefile |
15154 sed "$extrasub_host" |
15155 sed "$extrasub_target" > mf$$
15156 mv -f mf$$ Makefile ;;
15157
15158 esac
81ecdfbb
RW
15159done # for ac_tag
15160
15161
15162as_fn_exit 0
c6b750e1 15163_ACEOF
c6b750e1
DJ
15164ac_clean_files=$ac_clean_files_save
15165
81ecdfbb
RW
15166test $ac_write_fail = 0 ||
15167 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15168
c6b750e1
DJ
15169
15170# configure is writing to config.log, and then calls config.status.
15171# config.status does its own redirection, appending to config.log.
15172# Unfortunately, on DOS this fails, as config.log is still kept open
15173# by configure, so config.status won't be able to write to it; its
15174# output is simply discarded. So we exec the FD to /dev/null,
15175# effectively closing config.log, so it can be properly (re)opened and
15176# appended to by config.status. When coming back to configure, we
15177# need to make the FD available again.
15178if test "$no_create" != yes; then
15179 ac_cs_success=:
15180 ac_config_status_args=
15181 test "$silent" = yes &&
15182 ac_config_status_args="$ac_config_status_args --quiet"
15183 exec 5>/dev/null
15184 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15185 exec 5>>config.log
15186 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15187 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15188 $ac_cs_success || as_fn_exit $?
15189fi
15190if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15192$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15193fi
c148b4cb 15194
This page took 1.501979 seconds and 4 git commands to generate.