* coffdump.c (dump_coff_scope): Use double typecast for pointer P
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
c6b750e1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
c6b750e1 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
e552509b 581GOC_FOR_TARGET
81ecdfbb
RW
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
607config_shell
608WINDRES_FOR_BUILD
609WINDMC_FOR_BUILD
610RANLIB_FOR_BUILD
611NM_FOR_BUILD
612LD_FOR_BUILD
613LDFLAGS_FOR_BUILD
e552509b 614GOC_FOR_BUILD
81ecdfbb
RW
615GFORTRAN_FOR_BUILD
616GCJ_FOR_BUILD
617DLLTOOL_FOR_BUILD
618CXX_FOR_BUILD
619CXXFLAGS_FOR_BUILD
620CFLAGS_FOR_BUILD
621CC_FOR_BUILD
622AS_FOR_BUILD
623AR_FOR_BUILD
911e63d0 624target_configdirs
81ecdfbb 625configdirs
81ecdfbb 626build_configdirs
81ecdfbb
RW
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
4074d5f2
RW
634target_configargs
635host_configargs
636build_configargs
96655cc4 637BUILD_CONFIG
81ecdfbb
RW
638CXXFLAGS_FOR_TARGET
639CFLAGS_FOR_TARGET
640DEBUG_PREFIX_CFLAGS_FOR_TARGET
641SYSROOT_CFLAGS_FOR_TARGET
642stage1_languages
700d40ca 643extra_host_libiberty_configure_flags
81ecdfbb
RW
644clooginc
645clooglibs
646pplinc
647ppllibs
81ecdfbb 648poststage1_ldflags
143754cd 649poststage1_libs
81ecdfbb
RW
650stage1_libs
651stage1_ldflags
652extra_mpc_mpfr_configure_flags
653extra_mpc_gmp_configure_flags
654extra_mpfr_configure_flags
655gmpinc
656gmplibs
657do_compare
658GNATMAKE
659GNATBIND
660ac_ct_CXX
661CXXFLAGS
662CXX
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670target_subdir
671host_subdir
672build_subdir
673build_libsubdir
8e957354
PB
674AWK
675SED
81ecdfbb
RW
676LN_S
677LN
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681target_os
682target_vendor
683target_cpu
684target
685host_os
686host_vendor
687host_cpu
688host
689target_noncanonical
690host_noncanonical
691build_noncanonical
692build_os
693build_vendor
694build_cpu
695build
696TOPLEVEL_CONFIGURE_ARGUMENTS
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files='serialization_dependencies
736host_makefile_frag
737target_makefile_frag
738alphaieee_frag
739ospace_frag'
740ac_user_opts='
741enable_option_checking
742with_build_libsubdir
743enable_gold
c7791212 744enable_ld
89a1e9c3
PB
745enable_libquadmath
746enable_libquadmath_support
81ecdfbb
RW
747enable_libada
748enable_libssp
749enable_build_with_cxx
750with_mpc
751with_mpc_include
752with_mpc_lib
753with_mpfr_dir
754with_mpfr
755with_mpfr_include
756with_mpfr_lib
757with_gmp_dir
758with_gmp
759with_gmp_include
760with_gmp_lib
761with_host_libstdcxx
762with_stage1_ldflags
763with_stage1_libs
81ecdfbb 764with_boot_libs
143754cd 765with_boot_ldflags
81ecdfbb
RW
766with_ppl
767with_ppl_include
768with_ppl_lib
769enable_ppl_version_check
770with_cloog
771with_cloog_include
772with_cloog_lib
e552509b 773enable_cloog_backend
81ecdfbb 774enable_cloog_version_check
700d40ca 775enable_lto
81ecdfbb
RW
776enable_stage1_languages
777enable_objc_gc
778with_build_sysroot
779with_debug_prefix_map
780enable_bootstrap
96655cc4 781with_build_config
81ecdfbb
RW
782enable_serial_configure
783with_build_time_tools
784enable_maintainer_mode
785enable_stage1_checking
786enable_werror
81ecdfbb
RW
787'
788 ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CXX
797CXXFLAGS
798CCC
4074d5f2
RW
799build_configargs
800host_configargs
801target_configargs
81ecdfbb
RW
802AR
803AS
804DLLTOOL
805LD
806LIPO
807NM
808RANLIB
809STRIP
810WINDRES
811WINDMC
812OBJCOPY
813OBJDUMP
814CC_FOR_TARGET
815CXX_FOR_TARGET
816GCC_FOR_TARGET
817GCJ_FOR_TARGET
818GFORTRAN_FOR_TARGET
e552509b 819GOC_FOR_TARGET
81ecdfbb
RW
820AR_FOR_TARGET
821AS_FOR_TARGET
822DLLTOOL_FOR_TARGET
823LD_FOR_TARGET
824LIPO_FOR_TARGET
825NM_FOR_TARGET
826OBJDUMP_FOR_TARGET
827RANLIB_FOR_TARGET
828STRIP_FOR_TARGET
829WINDRES_FOR_TARGET
830WINDMC_FOR_TARGET'
831
a0da8069
NN
832
833# Initialize some variables set by options.
c6b750e1
DJ
834ac_init_help=
835ac_init_version=false
81ecdfbb
RW
836ac_unrecognized_opts=
837ac_unrecognized_sep=
a0da8069
NN
838# The variables have the same names as the options, with
839# dashes changed to underlines.
c6b750e1 840cache_file=/dev/null
a0da8069 841exec_prefix=NONE
a0da8069 842no_create=
a0da8069
NN
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
a0da8069
NN
851verbose=
852x_includes=NONE
853x_libraries=NONE
c6b750e1
DJ
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 860# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
a0da8069
NN
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
a0da8069
NN
869includedir='${prefix}/include'
870oldincludedir='/usr/include'
81ecdfbb
RW
871docdir='${datarootdir}/doc/${PACKAGE}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
252b5132 880
a0da8069 881ac_prev=
81ecdfbb 882ac_dashdash=
a0da8069
NN
883for ac_option
884do
a0da8069
NN
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
81ecdfbb 887 eval $ac_prev=\$ac_option
a0da8069
NN
888 ac_prev=
889 continue
890 fi
252b5132 891
81ecdfbb
RW
892 case $ac_option in
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *) ac_optarg=yes ;;
895 esac
a0da8069
NN
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
81ecdfbb
RW
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
a0da8069
NN
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 906 bindir=$ac_optarg ;;
a0da8069
NN
907
908 -build | --build | --buil | --bui | --bu)
c6b750e1 909 ac_prev=build_alias ;;
a0da8069 910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 911 build_alias=$ac_optarg ;;
a0da8069
NN
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
a0da8069 922
81ecdfbb 923 -datadir | --datadir | --datadi | --datad)
a0da8069 924 ac_prev=datadir ;;
81ecdfbb 925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 926 datadir=$ac_optarg ;;
a0da8069 927
81ecdfbb
RW
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
a0da8069 935 -disable-* | --disable-*)
81ecdfbb 936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 937 # Reject names that are not valid shell variable names.
81ecdfbb
RW
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944"enable_$ac_useropt"
945"*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
a0da8069
NN
960
961 -enable-* | --enable-*)
81ecdfbb 962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 963 # Reject names that are not valid shell variable names.
81ecdfbb
RW
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970"enable_$ac_useropt"
971"*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
a0da8069 974 esac
81ecdfbb 975 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
c6b750e1 984 exec_prefix=$ac_optarg ;;
a0da8069
NN
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
c6b750e1
DJ
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
a0da8069
NN
996
997 -host | --host | --hos | --ho)
c6b750e1 998 ac_prev=host_alias ;;
a0da8069 999 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1000 host_alias=$ac_optarg ;;
a0da8069 1001
81ecdfbb
RW
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
a0da8069
NN
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1013 includedir=$ac_optarg ;;
a0da8069
NN
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1018 infodir=$ac_optarg ;;
a0da8069
NN
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1023 libdir=$ac_optarg ;;
a0da8069
NN
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1030 libexecdir=$ac_optarg ;;
a0da8069 1031
81ecdfbb
RW
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
a0da8069 1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1038 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1042 localstatedir=$ac_optarg ;;
a0da8069
NN
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1047 mandir=$ac_optarg ;;
a0da8069
NN
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1054 | --no-cr | --no-c | -n)
a0da8069
NN
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1068 oldincludedir=$ac_optarg ;;
a0da8069
NN
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1073 prefix=$ac_optarg ;;
a0da8069
NN
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1080 program_prefix=$ac_optarg ;;
a0da8069
NN
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1087 program_suffix=$ac_optarg ;;
a0da8069
NN
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1104 program_transform_name=$ac_optarg ;;
a0da8069 1105
81ecdfbb
RW
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
a0da8069
NN
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
c6b750e1 1124 sbindir=$ac_optarg ;;
a0da8069
NN
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
c6b750e1 1135 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
c6b750e1 1140 site=$ac_optarg ;;
a0da8069
NN
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1145 srcdir=$ac_optarg ;;
a0da8069
NN
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1152 sysconfdir=$ac_optarg ;;
a0da8069
NN
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1155 ac_prev=target_alias ;;
a0da8069 1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1157 target_alias=$ac_optarg ;;
a0da8069
NN
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
c6b750e1
DJ
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
a0da8069
NN
1164
1165 -with-* | --with-*)
81ecdfbb 1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1167 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174"with_$ac_useropt"
1175"*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
a0da8069 1178 esac
81ecdfbb 1179 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1180
1181 -without-* | --without-*)
81ecdfbb 1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1183 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
a0da8069
NN
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1206 x_includes=$ac_optarg ;;
a0da8069
NN
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1213 x_libraries=$ac_optarg ;;
a0da8069 1214
81ecdfbb
RW
1215 -*) as_fn_error "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information."
a0da8069
NN
1217 ;;
1218
c6b750e1
DJ
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1227 export $ac_envvar ;;
1228
a0da8069 1229 *)
c6b750e1 1230 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1235 ;;
1236
1237 esac
1238done
1239
1240if test -n "$ac_prev"; then
c6b750e1 1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1242 as_fn_error "missing argument to $ac_option"
a0da8069 1243fi
a0da8069 1244
81ecdfbb
RW
1245if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1250 esac
81ecdfbb 1251fi
a0da8069 1252
81ecdfbb
RW
1253# Check all directory arguments for consistency.
1254for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
a0da8069 1258do
81ecdfbb
RW
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
c6b750e1 1267 case $ac_val in
81ecdfbb
RW
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1270 esac
81ecdfbb 1271 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1272done
1273
c6b750e1
DJ
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
376a0e54 1280
c6b750e1
DJ
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
81ecdfbb 1285 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1286 If a cross compiler is detected then cross compile mode will be used." >&2
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290fi
1291
1292ac_tool_prefix=
1293test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295test "$silent" = yes && exec 6>/dev/null
a0da8069 1296
a0da8069 1297
81ecdfbb
RW
1298ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299ac_ls_di=`ls -di .` &&
1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error "working directory cannot be determined"
1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error "pwd does not report name of working directory"
1304
1305
a0da8069
NN
1306# Find the source files, if location was not specified.
1307if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
81ecdfbb
RW
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315$as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
a0da8069 1333 srcdir=$ac_confdir
81ecdfbb 1334 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1335 srcdir=..
1336 fi
1337else
1338 ac_srcdir_defaulted=no
1339fi
81ecdfbb
RW
1340if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1343fi
1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1347 pwd)`
1348# When building in place, set srcdir=.
1349if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351fi
1352# Remove unnecessary trailing slashes from srcdir.
1353# Double slashes in file names in object file debugging info
1354# mess up M-x gdb in Emacs.
1355case $srcdir in
1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357esac
6d0cd39e
AM
1358case $srcdir in
1359 *" "*)
1360 as_fn_error "path to source, $srcdir, contains spaces"
1361 ;;
1362esac
9cc8ae67
PB
1363ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1364
81ecdfbb
RW
1365for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370done
c6b750e1
DJ
1371
1372#
1373# Report the --help message.
1374#
1375if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379\`configure' configures this package to adapt to many kinds of systems.
1380
1381Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386Defaults for the options are specified in brackets.
1387
1388Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
c6b750e1
DJ
1399Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1401 [$ac_default_prefix]
c6b750e1 1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1403 [PREFIX]
c6b750e1
DJ
1404
1405By default, \`make install' will install all the files in
1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408for instance \`--prefix=\$HOME'.
1409
1410For better control, use the options below.
1411
1412Fine tuning of the installation directories:
81ecdfbb
RW
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1432_ACEOF
1433
1434 cat <<\_ACEOF
1435
1436Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445_ACEOF
a0da8069 1446fi
a0da8069 1447
c6b750e1
DJ
1448if test -n "$ac_init_help"; then
1449
1450 cat <<\_ACEOF
1451
1452Optional Features:
81ecdfbb 1453 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1456 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1457 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1458 --disable-libquadmath do not build libquadmath directory
1459 --disable-libquadmath-support
1460 disable libquadmath support for Fortran
521ec477
DD
1461 --enable-libada build libada directory
1462 --enable-libssp build libssp directory
e8a5fa9c 1463 --enable-build-with-cxx build with C++ compiler instead of C compiler
7837304f
AS
1464 --disable-ppl-version-check
1465 disable check for PPL version
ceca0218
PB
1466 --enable-cloog-backend[=BACKEND]
1467 set the CLooG BACKEND used to either isl, ppl or
1468 ppl-legacy (default)
e552509b
ILT
1469 --disable-cloog-version-check
1470 disable check for CLooG version
700d40ca 1471 --enable-lto enable link time optimization support
7837304f
AS
1472 --enable-stage1-languages[=all]
1473 choose additional languages to build during stage1.
1474 Mostly useful for compiler development
1475 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1476 Objective-C runtime
521ec477
DD
1477 --enable-bootstrap enable bootstrapping [yes if native build]
1478 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1479 force sequential configuration of sub-packages for
1480 the host, target or build machine, or all
1481 sub-packages
1482 --enable-maintainer-mode
1483 enable make rules and dependencies not useful (and
1484 sometimes confusing) to the casual installer
1485 --enable-stage1-checking[=all]
1486 choose additional checking for stage1 of the
1487 compiler
c6b750e1
DJ
1488 --enable-werror enable -Werror in bootstrap stage2 and later
1489
1490Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1494 --with-mpc=PATH specify prefix directory for installed MPC package.
1495 Equivalent to --with-mpc-include=PATH/include plus
1496 --with-mpc-lib=PATH/lib
1497 --with-mpc-include=PATH specify directory for installed MPC include files
1498 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1499 --with-mpfr-dir=PATH this option has been REMOVED
1500 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1501 Equivalent to --with-mpfr-include=PATH/include plus
1502 --with-mpfr-lib=PATH/lib
c6b750e1 1503 --with-mpfr-include=PATH
521ec477
DD
1504 specify directory for installed MPFR include files
1505 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1506 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1507 --with-gmp=PATH specify prefix directory for the installed GMP
1508 package. Equivalent to
1509 --with-gmp-include=PATH/include plus
1510 --with-gmp-lib=PATH/lib
521ec477
DD
1511 --with-gmp-include=PATH specify directory for installed GMP include files
1512 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1513 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1514 linking with PPL
1515 --with-stage1-ldflags=FLAGS
1516 linker flags for stage1
1517 --with-stage1-libs=LIBS libraries for stage1
1518 --with-boot-libs=LIBS libraries for stage2 and later
1519 --with-boot-ldflags=FLAGS
1520 linker flags for stage2 and later
1521 --with-ppl=PATH specify prefix directory for the installed PPL
1522 package. Equivalent to
1523 --with-ppl-include=PATH/include plus
1524 --with-ppl-lib=PATH/lib
1525 --with-ppl-include=PATH specify directory for installed PPL include files
1526 --with-ppl-lib=PATH specify directory for the installed PPL library
e552509b
ILT
1527 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1528 package. Equivalent to
1529 --with-cloog-include=PATH/include plus
1530 --with-cloog-lib=PATH/lib
1531 --with-cloog-include=PATH
1532 Specify directory for installed CLooG include files
1533 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1534 library
521ec477 1535 --with-build-sysroot=SYSROOT
c6b750e1 1536 use sysroot as the system root during the build
8a6ee3ab 1537 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1538 map A to B, C to D ... in debug information
1539 --with-build-config='NAME NAME2...'
1540 use config/NAME.mk build configuration
521ec477 1541 --with-build-time-tools=PATH
c6b750e1 1542 use given path to find target tools during the build
c6b750e1
DJ
1543
1544Some influential environment variables:
1545 CC C compiler command
1546 CFLAGS C compiler flags
1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1548 nonstandard directory <lib dir>
81ecdfbb
RW
1549 LIBS libraries to pass to the linker, e.g. -l<library>
1550 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1551 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1552 CXX C++ compiler command
1553 CXXFLAGS C++ compiler flags
4074d5f2
RW
1554 build_configargs
1555 additional configure arguments for build directories
1556 host_configargs
1557 additional configure arguments for host directories
1558 target_configargs
1559 additional configure arguments for target directories
9a819804
AO
1560 AR AR for the host
1561 AS AS for the host
1562 DLLTOOL DLLTOOL for the host
1563 LD LD for the host
1564 LIPO LIPO for the host
1565 NM NM for the host
1566 RANLIB RANLIB for the host
1567 STRIP STRIP for the host
1568 WINDRES WINDRES for the host
0c24b341 1569 WINDMC WINDMC for the host
9a819804
AO
1570 OBJCOPY OBJCOPY for the host
1571 OBJDUMP OBJDUMP for the host
1572 CC_FOR_TARGET
1573 CC for the target
1574 CXX_FOR_TARGET
1575 CXX for the target
1576 GCC_FOR_TARGET
1577 GCC for the target
1578 GCJ_FOR_TARGET
1579 GCJ for the target
1580 GFORTRAN_FOR_TARGET
1581 GFORTRAN for the target
e552509b
ILT
1582 GOC_FOR_TARGET
1583 GOC for the target
9a819804
AO
1584 AR_FOR_TARGET
1585 AR for the target
1586 AS_FOR_TARGET
1587 AS for the target
1588 DLLTOOL_FOR_TARGET
1589 DLLTOOL for the target
1590 LD_FOR_TARGET
1591 LD for the target
1592 LIPO_FOR_TARGET
1593 LIPO for the target
1594 NM_FOR_TARGET
1595 NM for the target
1596 OBJDUMP_FOR_TARGET
1597 OBJDUMP for the target
1598 RANLIB_FOR_TARGET
1599 RANLIB for the target
1600 STRIP_FOR_TARGET
1601 STRIP for the target
1602 WINDRES_FOR_TARGET
1603 WINDRES for the target
0c24b341
NC
1604 WINDMC_FOR_TARGET
1605 WINDMC for the target
c6b750e1
DJ
1606
1607Use these variables to override the choices made by `configure' or to help
1608it to find libraries and programs with nonstandard names/locations.
1609
81ecdfbb 1610Report bugs to the package provider.
c6b750e1 1611_ACEOF
81ecdfbb 1612ac_status=$?
c6b750e1
DJ
1613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
c6b750e1 1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
c6b750e1
DJ
1621 ac_builddir=.
1622
81ecdfbb
RW
1623case "$ac_dir" in
1624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625*)
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633esac
1634ac_abs_top_builddir=$ac_pwd
1635ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636# for backward compatibility:
1637ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1638
1639case $srcdir in
81ecdfbb 1640 .) # We are building in place.
c6b750e1 1641 ac_srcdir=.
81ecdfbb
RW
1642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1645 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1652esac
81ecdfbb
RW
1653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1663 else
81ecdfbb
RW
1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1667 done
1668fi
1669
81ecdfbb 1670test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1671if $ac_init_version; then
1672 cat <<\_ACEOF
81ecdfbb
RW
1673configure
1674generated by GNU Autoconf 2.64
c6b750e1 1675
81ecdfbb 1676Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1677This configure script is free software; the Free Software Foundation
1678gives unlimited permission to copy, distribute and modify it.
1679_ACEOF
81ecdfbb 1680 exit
c6b750e1 1681fi
81ecdfbb
RW
1682
1683## ------------------------ ##
1684## Autoconf initialization. ##
1685## ------------------------ ##
1686
1687# ac_fn_c_try_compile LINENO
1688# --------------------------
1689# Try to compile conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_c_try_compile ()
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719fi
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1722
1723} # ac_fn_c_try_compile
1724
1725# ac_fn_cxx_try_compile LINENO
1726# ----------------------------
1727# Try to compile conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_cxx_try_compile ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_cxx_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 return $ac_retval
1760
1761} # ac_fn_cxx_try_compile
1762
1763# ac_fn_c_try_link LINENO
1764# -----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_link ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 $as_test_x conftest$ac_exeext
1791 }; then :
1792 ac_retval=0
1793else
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798fi
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 return $ac_retval
1806
1807} # ac_fn_c_try_link
1808cat >config.log <<_ACEOF
c6b750e1
DJ
1809This file contains any messages produced by compilers while
1810running configure, to aid debugging if configure makes a mistake.
1811
1812It was created by $as_me, which was
81ecdfbb 1813generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1814
1815 $ $0 $@
1816
1817_ACEOF
81ecdfbb 1818exec 5>>config.log
c6b750e1
DJ
1819{
1820cat <<_ASUNAME
1821## --------- ##
1822## Platform. ##
1823## --------- ##
1824
1825hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1826uname -m = `(uname -m) 2>/dev/null || echo unknown`
1827uname -r = `(uname -r) 2>/dev/null || echo unknown`
1828uname -s = `(uname -s) 2>/dev/null || echo unknown`
1829uname -v = `(uname -v) 2>/dev/null || echo unknown`
1830
1831/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1832/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1833
1834/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1835/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1836/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1837/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1838/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1839/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1840/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1841
1842_ASUNAME
1843
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1849 $as_echo "PATH: $as_dir"
1850 done
1851IFS=$as_save_IFS
c6b750e1
DJ
1852
1853} >&5
1854
1855cat >&5 <<_ACEOF
1856
1857
1858## ----------- ##
1859## Core tests. ##
1860## ----------- ##
1861
1862_ACEOF
1863
1864
1865# Keep a trace of the command line.
1866# Strip out --no-create and --no-recursion so they do not pile up.
1867# Strip out --silent because we don't want to record it for future runs.
1868# Also quote any args containing shell meta-characters.
1869# Make two passes to allow for proper duplicate-argument suppression.
1870ac_configure_args=
1871ac_configure_args0=
1872ac_configure_args1=
c6b750e1
DJ
1873ac_must_keep_next=false
1874for ac_pass in 1 2
1875do
1876 for ac_arg
1877 do
1878 case $ac_arg in
1879 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881 | -silent | --silent | --silen | --sile | --sil)
1882 continue ;;
81ecdfbb
RW
1883 *\'*)
1884 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1885 esac
1886 case $ac_pass in
81ecdfbb 1887 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1888 2)
81ecdfbb 1889 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1890 if test $ac_must_keep_next = true; then
1891 ac_must_keep_next=false # Got value, back to normal.
1892 else
1893 case $ac_arg in
1894 *=* | --config-cache | -C | -disable-* | --disable-* \
1895 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897 | -with-* | --with-* | -without-* | --without-* | --x)
1898 case "$ac_configure_args0 " in
1899 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900 esac
1901 ;;
1902 -* ) ac_must_keep_next=true ;;
1903 esac
1904 fi
81ecdfbb 1905 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1906 ;;
1907 esac
1908 done
1909done
81ecdfbb
RW
1910{ ac_configure_args0=; unset ac_configure_args0;}
1911{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1912
1913# When interrupted or exit'd, cleanup temporary files, and complete
1914# config.log. We remove comments because anyway the quotes in there
1915# would cause problems or look ugly.
81ecdfbb
RW
1916# WARNING: Use '\'' to represent an apostrophe within the trap.
1917# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1918trap 'exit_status=$?
1919 # Save into config.log some information that might help in debugging.
1920 {
1921 echo
1922
1923 cat <<\_ASBOX
1924## ---------------- ##
1925## Cache variables. ##
1926## ---------------- ##
1927_ASBOX
1928 echo
1929 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1930(
1931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932 eval ac_val=\$$ac_var
1933 case $ac_val in #(
1934 *${as_nl}*)
1935 case $ac_var in #(
1936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1938 esac
1939 case $ac_var in #(
1940 _ | IFS | as_nl) ;; #(
1941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942 *) { eval $ac_var=; unset $ac_var;} ;;
1943 esac ;;
1944 esac
1945 done
c6b750e1 1946 (set) 2>&1 |
81ecdfbb
RW
1947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948 *${as_nl}ac_space=\ *)
c6b750e1 1949 sed -n \
81ecdfbb
RW
1950 "s/'\''/'\''\\\\'\'''\''/g;
1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952 ;; #(
c6b750e1 1953 *)
81ecdfbb 1954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1955 ;;
81ecdfbb
RW
1956 esac |
1957 sort
1958)
c6b750e1
DJ
1959 echo
1960
1961 cat <<\_ASBOX
1962## ----------------- ##
1963## Output variables. ##
1964## ----------------- ##
1965_ASBOX
1966 echo
1967 for ac_var in $ac_subst_vars
1968 do
81ecdfbb
RW
1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1974 done | sort
1975 echo
1976
1977 if test -n "$ac_subst_files"; then
1978 cat <<\_ASBOX
81ecdfbb
RW
1979## ------------------- ##
1980## File substitutions. ##
1981## ------------------- ##
c6b750e1
DJ
1982_ASBOX
1983 echo
1984 for ac_var in $ac_subst_files
1985 do
81ecdfbb
RW
1986 eval ac_val=\$$ac_var
1987 case $ac_val in
1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 esac
1990 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1991 done | sort
1992 echo
1993 fi
1994
1995 if test -s confdefs.h; then
1996 cat <<\_ASBOX
1997## ----------- ##
1998## confdefs.h. ##
1999## ----------- ##
2000_ASBOX
2001 echo
81ecdfbb 2002 cat confdefs.h
c6b750e1
DJ
2003 echo
2004 fi
2005 test "$ac_signal" != 0 &&
81ecdfbb
RW
2006 $as_echo "$as_me: caught signal $ac_signal"
2007 $as_echo "$as_me: exit $exit_status"
c6b750e1 2008 } >&5
81ecdfbb
RW
2009 rm -f core *.core core.conftest.* &&
2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2011 exit $exit_status
81ecdfbb 2012' 0
c6b750e1 2013for ac_signal in 1 2 13 15; do
81ecdfbb 2014 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2015done
2016ac_signal=0
2017
2018# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2019rm -f -r conftest* confdefs.h
2020
2021$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2022
2023# Predefined preprocessor variables.
2024
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_NAME "$PACKAGE_NAME"
2027_ACEOF
2028
c6b750e1
DJ
2029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2031_ACEOF
2032
c6b750e1
DJ
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_VERSION "$PACKAGE_VERSION"
2035_ACEOF
2036
c6b750e1
DJ
2037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_STRING "$PACKAGE_STRING"
2039_ACEOF
2040
c6b750e1
DJ
2041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2043_ACEOF
2044
81ecdfbb
RW
2045cat >>confdefs.h <<_ACEOF
2046#define PACKAGE_URL "$PACKAGE_URL"
2047_ACEOF
2048
c6b750e1
DJ
2049
2050# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2051# Prefer an explicitly selected file to automatically selected ones.
2052ac_site_file1=NONE
2053ac_site_file2=NONE
2054if test -n "$CONFIG_SITE"; then
2055 ac_site_file1=$CONFIG_SITE
2056elif test "x$prefix" != xNONE; then
2057 ac_site_file1=$prefix/share/config.site
2058 ac_site_file2=$prefix/etc/config.site
2059else
2060 ac_site_file1=$ac_default_prefix/share/config.site
2061 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2062fi
81ecdfbb
RW
2063for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2064do
2065 test "x$ac_site_file" = xNONE && continue
a0da8069 2066 if test -r "$ac_site_file"; then
81ecdfbb
RW
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2069 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2070 . "$ac_site_file"
2071 fi
2072done
2073
2074if test -r "$cache_file"; then
c6b750e1
DJ
2075 # Some versions of bash will fail to source /dev/null (special
2076 # files actually), so we avoid doing that.
2077 if test -f "$cache_file"; then
81ecdfbb
RW
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2080 case $cache_file in
81ecdfbb
RW
2081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082 *) . "./$cache_file";;
c6b750e1
DJ
2083 esac
2084 fi
a0da8069 2085else
81ecdfbb
RW
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2088 >$cache_file
2089fi
2090
2091# Check that the precious variables saved in the cache have kept the same
2092# value.
2093ac_cache_corrupted=false
81ecdfbb 2094for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2096 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2097 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2098 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2099 case $ac_old_set,$ac_new_set in
2100 set,)
81ecdfbb
RW
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2102$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2103 ac_cache_corrupted=: ;;
2104 ,set)
81ecdfbb
RW
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2106$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2107 ac_cache_corrupted=: ;;
2108 ,);;
2109 *)
2110 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2111 # differences in whitespace do not lead to failure.
2112 ac_old_val_w=`echo x $ac_old_val`
2113 ac_new_val_w=`echo x $ac_new_val`
2114 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2116$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2117 ac_cache_corrupted=:
2118 else
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2120$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2121 eval $ac_var=\$ac_old_val
2122 fi
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2124$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2126$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2127 fi;;
2128 esac
2129 # Pass precious variables to config.status.
2130 if test "$ac_new_set" = set; then
2131 case $ac_new_val in
81ecdfbb 2132 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2133 *) ac_arg=$ac_var=$ac_new_val ;;
2134 esac
2135 case " $ac_configure_args " in
2136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2137 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2138 esac
2139 fi
2140done
2141if $ac_cache_corrupted; then
81ecdfbb
RW
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2145$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2146 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2147fi
81ecdfbb
RW
2148## -------------------- ##
2149## Main body of script. ##
2150## -------------------- ##
a0da8069
NN
2151
2152ac_ext=c
a0da8069 2153ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157
2158
2159
2160
c6b750e1
DJ
2161
2162
34a0f3cf 2163
c6b750e1 2164
5b553f7e
RW
2165
2166progname=$0
2167# if PWD already has a value, it is probably wrong.
2168if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2169
2170# Export original configure arguments for use by sub-configures.
2171# Quote arguments with shell meta charatcers.
2172TOPLEVEL_CONFIGURE_ARGUMENTS=
2173set -- "$progname" "$@"
2174for ac_arg
2175do
2176 case "$ac_arg" in
2177 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2178 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2179 # if the argument is of the form -foo=baz, quote the baz part only
2180 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2181 *) ;;
2182 esac
2183 # Add the quoted argument to the list.
2184 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2185done
2186if test "$silent" = yes; then
2187 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2188fi
2189# Remove the initial space we just introduced and, as these will be
2190# expanded by make, quote '$'.
2191TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2192
c6b750e1
DJ
2193
2194# Find the build, host, and target systems.
a0da8069 2195ac_aux_dir=
81ecdfbb
RW
2196for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2197 for ac_t in install-sh install.sh shtool; do
2198 if test -f "$ac_dir/$ac_t"; then
2199 ac_aux_dir=$ac_dir
2200 ac_install_sh="$ac_aux_dir/$ac_t -c"
2201 break 2
2202 fi
2203 done
a0da8069
NN
2204done
2205if test -z "$ac_aux_dir"; then
81ecdfbb 2206 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2207fi
81ecdfbb
RW
2208
2209# These three variables are undocumented and unsupported,
2210# and are intended to be withdrawn in a future Autoconf release.
2211# They can cause serious problems if a builder's source tree is in a directory
2212# whose full name contains unusual characters.
2213ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2214ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2215ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2216
a0da8069 2217
c6b750e1 2218# Make sure we can run config.sub.
81ecdfbb
RW
2219$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2220 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2221
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2223$as_echo_n "checking build system type... " >&6; }
2224if test "${ac_cv_build+set}" = set; then :
2225 $as_echo_n "(cached) " >&6
2226else
2227 ac_build_alias=$build_alias
2228test "x$ac_build_alias" = x &&
2229 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2230test "x$ac_build_alias" = x &&
2231 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2232ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2233 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2234
2235fi
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2237$as_echo "$ac_cv_build" >&6; }
2238case $ac_cv_build in
2239*-*-*) ;;
2240*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2241esac
c6b750e1 2242build=$ac_cv_build
81ecdfbb
RW
2243ac_save_IFS=$IFS; IFS='-'
2244set x $ac_cv_build
2245shift
2246build_cpu=$1
2247build_vendor=$2
2248shift; shift
2249# Remember, the first character of IFS is used to create $*,
2250# except with old shells:
2251build_os=$*
2252IFS=$ac_save_IFS
2253case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2254
a0da8069 2255
c6b750e1
DJ
2256 case ${build_alias} in
2257 "") build_noncanonical=${build} ;;
2258 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2259esac
2260
2261
cac3d6c4 2262
c6b750e1
DJ
2263 case ${host_alias} in
2264 "") host_noncanonical=${build_noncanonical} ;;
2265 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2266esac
2267
cac3d6c4 2268
c6b750e1
DJ
2269
2270 case ${target_alias} in
2271 "") target_noncanonical=${host_noncanonical} ;;
2272 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2273esac
2274
cac3d6c4 2275
c6b750e1
DJ
2276
2277
2278test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2279 test "$program_prefix$program_suffix$program_transform_name" = \
2280 NONENONEs,x,x, &&
c6b750e1 2281 program_transform_name=s,y,y,
cac3d6c4 2282
81ecdfbb
RW
2283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2284$as_echo_n "checking host system type... " >&6; }
2285if test "${ac_cv_host+set}" = set; then :
2286 $as_echo_n "(cached) " >&6
cac3d6c4 2287else
81ecdfbb
RW
2288 if test "x$host_alias" = x; then
2289 ac_cv_host=$ac_cv_build
2290else
2291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2292 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2293fi
c6b750e1
DJ
2294
2295fi
81ecdfbb
RW
2296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2297$as_echo "$ac_cv_host" >&6; }
2298case $ac_cv_host in
2299*-*-*) ;;
2300*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2301esac
c6b750e1 2302host=$ac_cv_host
81ecdfbb
RW
2303ac_save_IFS=$IFS; IFS='-'
2304set x $ac_cv_host
2305shift
2306host_cpu=$1
2307host_vendor=$2
2308shift; shift
2309# Remember, the first character of IFS is used to create $*,
2310# except with old shells:
2311host_os=$*
2312IFS=$ac_save_IFS
2313case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2314
2315
81ecdfbb
RW
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2317$as_echo_n "checking target system type... " >&6; }
2318if test "${ac_cv_target+set}" = set; then :
2319 $as_echo_n "(cached) " >&6
c6b750e1 2320else
81ecdfbb
RW
2321 if test "x$target_alias" = x; then
2322 ac_cv_target=$ac_cv_host
2323else
2324 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2325 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2326fi
c6b750e1 2327
cac3d6c4 2328fi
81ecdfbb
RW
2329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2330$as_echo "$ac_cv_target" >&6; }
2331case $ac_cv_target in
2332*-*-*) ;;
2333*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2334esac
c6b750e1 2335target=$ac_cv_target
81ecdfbb
RW
2336ac_save_IFS=$IFS; IFS='-'
2337set x $ac_cv_target
2338shift
2339target_cpu=$1
2340target_vendor=$2
2341shift; shift
2342# Remember, the first character of IFS is used to create $*,
2343# except with old shells:
2344target_os=$*
2345IFS=$ac_save_IFS
2346case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2347
2348
2349# The aliases save the names the user supplied, while $host etc.
2350# will get canonicalized.
2351test -n "$target_alias" &&
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2353 NONENONEs,x,x, &&
2354 program_prefix=${target_alias}-
81ecdfbb 2355
a0da8069 2356test "$program_prefix" != NONE &&
81ecdfbb 2357 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2358# Use a double $ so make ignores it.
2359test "$program_suffix" != NONE &&
81ecdfbb
RW
2360 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2361# Double any \ or $.
c6b750e1 2362# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2363ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2364program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2365
a0da8069
NN
2366
2367
e5c3f801
NN
2368# Get 'install' or 'install-sh' and its variants.
2369# Find a good install program. We prefer a C program (faster),
2370# so one script is as good as another. But avoid the broken or
2371# incompatible versions:
2372# SysV /etc/install, /usr/sbin/install
2373# SunOS /usr/etc/install
2374# IRIX /sbin/install
2375# AIX /bin/install
c6b750e1 2376# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2377# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2378# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2379# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2380# OS/2's system install, which has a completely different semantic
e5c3f801 2381# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2382# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2384$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2385if test -z "$INSTALL"; then
81ecdfbb
RW
2386if test "${ac_cv_path_install+set}" = set; then :
2387 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2388else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390for as_dir in $PATH
2391do
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2394 # Account for people who put trailing slashes in PATH elements.
2395case $as_dir/ in #((
2396 ./ | .// | /[cC]/* | \
c6b750e1 2397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2398 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2399 /usr/ucb/* ) ;;
2400 *)
2401 # OSF1 and SCO ODT 3.0 have their own names for install.
2402 # Don't use installbsd from OSF since it installs stuff as root
2403 # by default.
2404 for ac_prog in ginstall scoinst install; do
2405 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2406 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2407 if test $ac_prog = install &&
c6b750e1 2408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2409 # AIX install. It has an incompatible calling convention.
2410 :
c6b750e1
DJ
2411 elif test $ac_prog = install &&
2412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2413 # program-specific install script used by HP pwplus--don't use.
2414 :
e5c3f801 2415 else
58c85be7
RW
2416 rm -rf conftest.one conftest.two conftest.dir
2417 echo one > conftest.one
2418 echo two > conftest.two
2419 mkdir conftest.dir
2420 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2421 test -s conftest.one && test -s conftest.two &&
2422 test -s conftest.dir/conftest.one &&
2423 test -s conftest.dir/conftest.two
2424 then
2425 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2426 break 3
2427 fi
e5c3f801
NN
2428 fi
2429 fi
2430 done
c6b750e1
DJ
2431 done
2432 ;;
2433esac
81ecdfbb
RW
2434
2435 done
2436IFS=$as_save_IFS
c6b750e1 2437
58c85be7 2438rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2439
2440fi
2441 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2442 INSTALL=$ac_cv_path_install
e5c3f801 2443 else
58c85be7
RW
2444 # As a last resort, use the slow shell script. Don't cache a
2445 # value for INSTALL within a source directory, because that will
e5c3f801 2446 # break other packages using the cache if that directory is
58c85be7 2447 # removed, or if the value is a relative name.
c6b750e1 2448 INSTALL=$ac_install_sh
e5c3f801
NN
2449 fi
2450fi
81ecdfbb
RW
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2452$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2453
2454# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2455# It thinks the first close brace ends the variable substitution.
2456test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2457
c6b750e1 2458test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2459
2460test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2461
81ecdfbb
RW
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2463$as_echo_n "checking whether ln works... " >&6; }
2464if test "${acx_cv_prog_LN+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
656fdd47
PB
2466else
2467 rm -f conftestdata_t
2468echo >conftestdata_f
2469if ln conftestdata_f conftestdata_t 2>/dev/null
2470then
2471 acx_cv_prog_LN=ln
2472else
2473 acx_cv_prog_LN=no
2474fi
2475rm -f conftestdata_f conftestdata_t
2476
2477fi
2478if test $acx_cv_prog_LN = no; then
2479 LN="cp"
81ecdfbb
RW
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2481$as_echo "no, using $LN" >&6; }
656fdd47
PB
2482else
2483 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2485$as_echo "yes" >&6; }
656fdd47
PB
2486fi
2487
81ecdfbb
RW
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2489$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2490LN_S=$as_ln_s
2491if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493$as_echo "yes" >&6; }
cac3d6c4 2494else
81ecdfbb
RW
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2496$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2497fi
2498
8e957354
PB
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2500$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2501if test "${ac_cv_path_SED+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2503else
2504 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2505 for ac_i in 1 2 3 4 5 6 7; do
2506 ac_script="$ac_script$as_nl$ac_script"
2507 done
2508 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2509 { ac_script=; unset ac_script;}
2510 if test -z "$SED"; then
2511 ac_path_SED_found=false
2512 # Loop through the user's path and test for each of PROGNAME-LIST
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_prog in sed gsed; do
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2521 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2522# Check for GNU ac_path_SED and select it if it is found.
2523 # Check for GNU $ac_path_SED
2524case `"$ac_path_SED" --version 2>&1` in
2525*GNU*)
2526 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2527*)
2528 ac_count=0
2529 $as_echo_n 0123456789 >"conftest.in"
2530 while :
2531 do
2532 cat "conftest.in" "conftest.in" >"conftest.tmp"
2533 mv "conftest.tmp" "conftest.in"
2534 cp "conftest.in" "conftest.nl"
2535 $as_echo '' >> "conftest.nl"
2536 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2538 as_fn_arith $ac_count + 1 && ac_count=$as_val
2539 if test $ac_count -gt ${ac_path_SED_max-0}; then
2540 # Best one so far, save it but keep looking for a better one
2541 ac_cv_path_SED="$ac_path_SED"
2542 ac_path_SED_max=$ac_count
2543 fi
2544 # 10*(2^10) chars as input seems more than enough
2545 test $ac_count -gt 10 && break
2546 done
2547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2548esac
2549
2550 $ac_path_SED_found && break 3
2551 done
2552 done
2553 done
2554IFS=$as_save_IFS
2555 if test -z "$ac_cv_path_SED"; then
2556 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2557 fi
2558else
2559 ac_cv_path_SED=$SED
2560fi
2561
2562fi
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2564$as_echo "$ac_cv_path_SED" >&6; }
2565 SED="$ac_cv_path_SED"
2566 rm -f conftest.sed
2567
2568for ac_prog in gawk mawk nawk awk
2569do
2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
2571set dummy $ac_prog; ac_word=$2
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573$as_echo_n "checking for $ac_word... " >&6; }
2574if test "${ac_cv_prog_AWK+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576else
2577 if test -n "$AWK"; then
2578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_AWK="$ac_prog"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591done
2592 done
2593IFS=$as_save_IFS
2594
2595fi
2596fi
2597AWK=$ac_cv_prog_AWK
2598if test -n "$AWK"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2600$as_echo "$AWK" >&6; }
2601else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603$as_echo "no" >&6; }
2604fi
2605
2606
2607 test -n "$AWK" && break
2608done
2609
e5c3f801 2610
252b5132 2611### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2612### If we are on Windows, search for the shell. This will permit people
2613### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2614### without also having to set CONFIG_SHELL. This code will work when
2615### using bash, which sets OSTYPE.
2616case "${OSTYPE}" in
2617*win32*)
a0da8069
NN
2618 if test x${CONFIG_SHELL} = x ; then
2619 if test ! -f /bin/sh ; then
2620 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2621 CONFIG_SHELL=${SHELL}
2622 export CONFIG_SHELL
2623 else
2624 for prog in sh sh.exe bash bash.exe; do
2625 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2626 for dir in $PATH; do
2627 test -z "$dir" && dir=.
2628 if test -f $dir/$prog; then
2629 CONFIG_SHELL=$dir/$prog
2630 export CONFIG_SHELL
2631 break
2632 fi
2633 done
2634 IFS="$save_ifs"
2635 test -n "${CONFIG_SHELL}" && break
2636 done
2637 fi
2638 fi
2639 fi
2640 ;;
2641esac
2642
2643config_shell=${CONFIG_SHELL-/bin/sh}
2644
a0da8069 2645moveifchange=${srcdir}/move-if-change
252b5132 2646
0fdbe983
DJ
2647srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2648
2649# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2650# a relative path.
2651if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2652 INSTALL="${srcpwd}/install-sh -c"
2653fi
2654
a0da8069
NN
2655# Set srcdir to "." if that's what it is.
2656# This is important for multilib support.
2657pwd=`${PWDCMD-pwd}`
a0da8069
NN
2658if test "${pwd}" = "${srcpwd}" ; then
2659 srcdir=.
252b5132
RH
2660fi
2661
a0da8069 2662topsrcdir=$srcpwd
252b5132 2663
a0da8069 2664extra_host_args=
afefada0 2665
a0da8069
NN
2666### To add a new directory to the tree, first choose whether it is a target
2667### or a host dependent tool. Then put it into the appropriate list
2668### (library or tools, host or target), doing a dependency sort.
252b5132 2669
c6b750e1 2670# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2671# configdirs, or target_configdirs; see the serialization section below.
252b5132 2672
c6b750e1
DJ
2673# Dependency sorting is only needed when *configuration* must be done in
2674# a particular order. In all cases a dependency should be specified in
a0da8069 2675# the Makefile, whether or not it's implicitly specified here.
252b5132 2676
a0da8069
NN
2677# Double entries in build_configdirs, configdirs, or target_configdirs may
2678# cause circular dependencies and break everything horribly.
252b5132 2679
6a9cf61e
PB
2680# these library is used by various programs built for the build
2681# environment
2682#
2683build_libs="build-libiberty"
2684
2685# these tools are built for the build environment
ee025550 2686build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2687
a0da8069
NN
2688# these libraries are used by various programs built for the host environment
2689#
1f53ca9a 2690host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2691
a0da8069
NN
2692# these tools are built for the host environment
2693# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2694# know that we are building the simulator.
2695# binutils, gas and ld appear in that order because it makes sense to run
2696# "make check" in that particular order.
e6de499b 2697# If --enable-gold is used, "gold" may replace "ld".
f9806fa5 2698host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
2699
2700# libgcj represents the runtime libraries only used by gcj.
2701libgcj="target-libffi \
a0da8069
NN
2702 target-zlib \
2703 target-qthreads \
2704 target-libjava"
2705
2706# these libraries are built for the target environment, and are built after
2707# the host libraries and the host tools (which may be a cross compiler)
2708#
b1299c4e
DJ
2709target_libraries="target-libgcc \
2710 target-libiberty \
a0da8069
NN
2711 target-libgloss \
2712 target-newlib \
cff87f51 2713 target-libgomp \
b9459e83 2714 target-libstdc++-v3 \
4b1cb4fe 2715 target-libmudflap \
bb780410 2716 target-libssp \
e552509b 2717 target-libquadmath \
4b1cb4fe 2718 target-libgfortran \
4f0ef2d8 2719 target-boehm-gc \
83326456 2720 ${libgcj} \
a2592b1b 2721 target-libobjc \
e552509b
ILT
2722 target-libada \
2723 target-libgo"
a0da8069 2724
9c14acb8
NN
2725# these tools are built using the target libraries, and are intended to
2726# run only in the target environment
a0da8069 2727#
9c14acb8 2728# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2729# list belongs in this list.
a0da8069 2730#
2354b38b 2731target_tools="target-examples target-gperf target-rda"
252b5132 2732
a0da8069 2733################################################################################
252b5132 2734
a0da8069
NN
2735## All tools belong in one of the four categories, and are assigned above
2736## We assign ${configdirs} this way to remove all embedded newlines. This
2737## is important because configure will choke if they ever get through.
2738## ${configdirs} is directories we build using the host tools.
2739## ${target_configdirs} is directories we build using the target tools.
a0da8069 2740configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2741target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2742build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2743
9cc8ae67
PB
2744
2745
a0da8069 2746################################################################################
252b5132 2747
a0da8069 2748srcname="gnu development package"
252b5132 2749
a0da8069
NN
2750# This gets set non-empty for some net releases of packages.
2751appdirs=""
252b5132 2752
a0da8069
NN
2753# Define is_cross_compiler to save on calls to 'test'.
2754is_cross_compiler=
2755if test x"${host}" = x"${target}" ; then
2756 is_cross_compiler=no
252b5132 2757else
a0da8069 2758 is_cross_compiler=yes
c6b750e1 2759fi
252b5132 2760
9175bfc0 2761# Find the build and target subdir names.
dd12c3a8 2762
66a79c16
DJ
2763# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2764# have matching libraries, they should use host libraries: Makefile.tpl
2765# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2766# However, they still use the build modules, because the corresponding
2767# host modules (e.g. bison) are only built for the host when bootstrap
2768# finishes. So:
2769# - build_subdir is where we find build modules, and never changes.
2770# - build_libsubdir is where we find build libraries, and can be overridden.
2771
2772# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2773build_subdir="build-${build_noncanonical}"
c6b750e1 2774
81ecdfbb
RW
2775# Check whether --with-build-libsubdir was given.
2776if test "${with_build_libsubdir+set}" = set; then :
2777 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2778else
2779 build_libsubdir="$build_subdir"
81ecdfbb
RW
2780fi
2781
b00612cc
PB
2782# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2783if ( test $srcdir = . && test -d gcc ) \
2784 || test -d $srcdir/../host-${host_noncanonical}; then
2785 host_subdir="host-${host_noncanonical}"
2786else
2787 host_subdir=.
2788fi
dd12c3a8
NN
2789# No prefix.
2790target_subdir=${target_noncanonical}
c6b750e1 2791
2fd0b40b
RW
2792# Be sure to cover against remnants of an in-tree build.
2793if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2794 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2795Use a pristine source tree when building in a separate tree" "$LINENO" 5
2796fi
252b5132 2797
a0da8069
NN
2798# Skipdirs are removed silently.
2799skipdirs=
2800# Noconfigdirs are removed loudly.
2801noconfigdirs=""
252b5132 2802
a0da8069
NN
2803use_gnu_ld=
2804# Make sure we don't let GNU ld be added if we didn't want it.
2805if test x$with_gnu_ld = xno ; then
2806 use_gnu_ld=no
93f9b408 2807 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2808fi
2809
a0da8069
NN
2810use_gnu_as=
2811# Make sure we don't let GNU as be added if we didn't want it.
2812if test x$with_gnu_as = xno ; then
2813 use_gnu_as=no
2814 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2815fi
2816
700d40ca
ILT
2817use_included_zlib=
2818# Make sure we don't let ZLIB be added if we didn't want it.
2819if test x$with_system_zlib = xyes ; then
2820 use_included_zlib=no
2821 noconfigdirs="$noconfigdirs zlib"
2822fi
2823
c6b750e1 2824# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2825# it's not even worth trying to configure, much less build, that tool.
252b5132 2826
a0da8069
NN
2827case ${with_x} in
2828 yes | "") ;; # the default value for this tree is that X11 is available
2829 no)
675c6968 2830 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2831 # We won't be able to build gdbtk without X.
c6b750e1 2832 enable_gdbtk=no
a0da8069
NN
2833 ;;
2834 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2835esac
252b5132 2836
0377a422 2837# Some are only suitable for cross toolchains.
a0da8069
NN
2838# Remove these if host=target.
2839cross_only="target-libgloss target-newlib target-opcodes"
2840
2841case $is_cross_compiler in
2842 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2843esac
252b5132 2844
a0da8069
NN
2845# If both --with-headers and --with-libs are specified, default to
2846# --without-newlib.
32be62b5
RS
2847if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2848 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2849 if test x"${with_newlib}" = x ; then
2850 with_newlib=no
2851 fi
252b5132
RH
2852fi
2853
a0da8069
NN
2854# Recognize --with-newlib/--without-newlib.
2855case ${with_newlib} in
2856 no) skipdirs="${skipdirs} target-newlib" ;;
2857 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2858esac
252b5132 2859
c7791212
NC
2860# Handle --enable-gold, --enable-ld.
2861# --disable-gold [--enable-ld]
2862# Build only ld. Default option.
d3b50760
L
2863# --enable-gold [--enable-ld]
2864# Build both gold and ld. Install gold as "ld.gold", install ld
2865# as "ld.bfd" and "ld".
2866# --enable-gold=default [--enable-ld]
c7791212
NC
2867# Build both gold and ld. Install gold as "ld.gold" and "ld",
2868# install ld as "ld.bfd".
2869# --enable-gold[=default] --disable-ld
2870# Build only gold, which is then installed as both "ld.gold" and "ld".
2871# --enable-gold --enable-ld=default
d3b50760
L
2872# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2873# and ld.bfd).
c7791212
NC
2874# In other words, ld is default
2875# --enable-gold=default --enable-ld=default
2876# Error.
2877
2878default_ld=
81ecdfbb
RW
2879# Check whether --enable-gold was given.
2880if test "${enable_gold+set}" = set; then :
2881 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2882else
2883 ENABLE_GOLD=no
81ecdfbb
RW
2884fi
2885
c7791212
NC
2886case "${ENABLE_GOLD}" in
2887 yes|default)
e6de499b
NC
2888 # Check for ELF target.
2889 is_elf=no
2890 case "${target}" in
2891 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2892 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27
NC
2893 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2894 | *-*-solaris2* | *-*-nto*)
e6de499b
NC
2895 case "${target}" in
2896 *-*-linux*aout* | *-*-linux*oldld*)
2897 ;;
2898 *)
2899 is_elf=yes
2900 ;;
2901 esac
2902 esac
2903
2904 if test "$is_elf" = "yes"; then
2905 # Check for target supported by gold.
93f9b408 2906 case "${target}" in
e6de499b 2907 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
c7791212
NC
2908 configdirs="$configdirs gold"
2909 if test x${ENABLE_GOLD} = xdefault; then
2910 default_ld=gold
2911 fi
e6de499b 2912 ENABLE_GOLD=yes
93f9b408
ILT
2913 ;;
2914 esac
e6de499b
NC
2915 fi
2916 ;;
2917 no)
2918 ;;
2919 *)
2920 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2921 ;;
c7791212
NC
2922esac
2923
2924# Check whether --enable-ld was given.
2925if test "${enable_ld+set}" = set; then :
2926 enableval=$enable_ld; ENABLE_LD=$enableval
2927else
2928 ENABLE_LD=yes
2929fi
2930
2931
2932case "${ENABLE_LD}" in
2933 default)
d3b50760 2934 if test x${default_ld} != x; then
c7791212
NC
2935 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2936 fi
2937 ;;
2938 yes)
2939 ;;
2940 no)
2941 if test x${ENABLE_GOLD} != xyes; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2943$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2944 fi
2945 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2946 ;;
2947 *)
2948 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2949 ;;
2950esac
93f9b408 2951
a0da8069 2952# Configure extra directories which are host specific
252b5132 2953
a0da8069
NN
2954case "${host}" in
2955 *-cygwin*)
2956 configdirs="$configdirs libtermcap" ;;
2957esac
252b5132 2958
59f7ec45
HPN
2959# A target can indicate whether a language isn't supported for some reason.
2960# Only spaces may be used in this macro; not newlines or tabs.
2961unsupported_languages=
2962
c6b750e1 2963# Remove more programs from consideration, based on the host or
a0da8069
NN
2964# target this usually means that a port of the program doesn't
2965# exist yet.
252b5132 2966
a0da8069 2967case "${host}" in
3516a403 2968 i[3456789]86-*-msdosdjgpp*)
0377a422 2969 noconfigdirs="$noconfigdirs tcl tk itcl libffi"
bba45b8b 2970 ;;
2d1e8239 2971 x86_64-*-mingw*)
0377a422 2972 noconfigdirs="$noconfigdirs newlib"
2d1e8239 2973 ;;
ec11bdc6 2974 i[3456789]86-*-mingw32*)
0377a422 2975 noconfigdirs="$noconfigdirs newlib"
a0da8069 2976 ;;
a0da8069 2977esac
252b5132 2978
4b1cb4fe 2979
89a1e9c3
PB
2980# Check whether --enable-libquadmath was given.
2981if test "${enable_libquadmath+set}" = set; then :
2982 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2983else
2984 ENABLE_LIBQUADMATH=yes
2985fi
2986
2987if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2988 noconfigdirs="$noconfigdirs target-libquadmath"
2989fi
2990
2991
2992# Check whether --enable-libquadmath-support was given.
2993if test "${enable_libquadmath_support+set}" = set; then :
2994 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2995else
2996 ENABLE_LIBQUADMATH_SUPPORT=yes
2997fi
2998
2999enable_libquadmath_support=
3000if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3001 enable_libquadmath_support=no
3002fi
3003
3004
81ecdfbb
RW
3005# Check whether --enable-libada was given.
3006if test "${enable_libada+set}" = set; then :
3007 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3008else
3009 ENABLE_LIBADA=yes
81ecdfbb
RW
3010fi
3011
a2592b1b 3012if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3013 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3014fi
3015
81ecdfbb
RW
3016# Check whether --enable-libssp was given.
3017if test "${enable_libssp+set}" = set; then :
3018 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3019else
3020 ENABLE_LIBSSP=yes
81ecdfbb
RW
3021fi
3022
5f128533 3023
a0da8069
NN
3024# Save it here so that, even in case of --enable-libgcj, if the Java
3025# front-end isn't enabled, we still get libgcj disabled.
3026libgcj_saved=$libgcj
3027case $enable_libgcj in
3028yes)
3029 # If we reset it here, it won't get added to noconfigdirs in the
3030 # target-specific build rules, so it will be forcibly enabled
3031 # (unless the Java language itself isn't enabled).
3032 libgcj=
3033 ;;
3034no)
3035 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3036 # Don't disable libffi, though, other languages use it.
3037 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3038 # Clear libgcj_saved so that even if java is enabled libffi won't be
3039 # built.
3040 libgcj_saved=
a0da8069
NN
3041 ;;
3042esac
252b5132 3043
4b1cb4fe 3044
a6df5a19
PB
3045# Disable libmudflap on some systems.
3046if test x$enable_libmudflap = x ; then
3e707e94 3047 case "${target}" in
29383458 3048 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3049 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3050 ;;
3051 *-*-freebsd*)
3052 # Enable libmudflap by default in FreeBSD.
3053 ;;
3054 *)
3055 # Disable it by default everywhere else.
3056 noconfigdirs="$noconfigdirs target-libmudflap"
3057 ;;
3058 esac
a6df5a19 3059fi
4b1cb4fe 3060
a6df5a19
PB
3061# Disable libgomp on non POSIX hosted systems.
3062if test x$enable_libgomp = x ; then
b3ded179
PB
3063 # Enable libgomp by default on hosted POSIX systems.
3064 case "${target}" in
29383458 3065 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3066 ;;
5b806d27 3067 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3068 ;;
64ce424c 3069 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3070 ;;
3071 *-*-darwin* | *-*-aix*)
3072 ;;
3073 *)
3074 noconfigdirs="$noconfigdirs target-libgomp"
3075 ;;
3076 esac
a6df5a19 3077fi
b3ded179 3078
691bb5a1
DD
3079# Default libgloss CPU subdirectory.
3080libgloss_dir="$target_cpu"
4b1cb4fe 3081
a0da8069
NN
3082case "${target}" in
3083 *-*-chorusos)
54d1c879 3084 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3085 ;;
24741ab2 3086 powerpc-*-darwin*)
9d39db92 3087 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3088 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3089 ;;
85bd1942
TG
3090 i[3456789]86-*-darwin*)
3091 noconfigdirs="$noconfigdirs ld gprof"
3092 noconfigdirs="$noconfigdirs sim target-rda"
3093 ;;
e8a5fa9c 3094 x86_64-*-darwin[912]*)
652dec25
TG
3095 noconfigdirs="$noconfigdirs ld gas gprof"
3096 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3097 ;;
04d1ab34 3098 *-*-darwin*)
d320aacb 3099 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3100 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3101 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3102 ;;
5b806d27
NC
3103 *-*-dragonfly*)
3104 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3105 ;;
a0da8069 3106 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 3107 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3108 ;;
de0b4a87 3109 *-*-freebsd*)
4b1cb4fe
DD
3110 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3111 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3112 && test -f /usr/local/include/gmp.h; then
3113 with_gmp=/usr/local
3114 fi
3115
3116 # Skip some stuff that's unsupported on some FreeBSD configurations.
3117 case "${target}" in
3118 i*86-*-*) ;;
3119 alpha*-*-*) ;;
143754cd 3120 x86_64-*-*) ;;
4b1cb4fe 3121 *)
54d1c879 3122 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3123 ;;
3124 esac
3125 ;;
f8a495c8
NC
3126 *-*-kaos*)
3127 # Remove unsupported stuff on all kaOS configurations.
2354b38b 3128 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3"
0377a422 3129 skipdirs="$skipdirs target-libobjc"
f8a495c8
NC
3130 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3131 noconfigdirs="$noconfigdirs target-libgloss"
3132 ;;
a0da8069
NN
3133 *-*-netbsd*)
3134 # Skip some stuff on all NetBSD configurations.
3135 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3136
3137 # Skip some stuff that's unsupported on some NetBSD configurations.
3138 case "${target}" in
3139 i*86-*-netbsdelf*) ;;
5b474aa8 3140 arm*-*-netbsdelf*) ;;
a0da8069 3141 *)
54d1c879 3142 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3143 ;;
3144 esac
3145 ;;
2a3124ca 3146 *-*-netware*)
2354b38b 3147 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj}"
a0da8069
NN
3148 ;;
3149 *-*-rtems*)
a009f2e7 3150 skipdirs="${skipdirs} target-libiberty"
54d1c879 3151 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3152 ;;
1587117a
EC
3153 # The tpf target doesn't support gdb yet.
3154 *-*-tpf*)
2354b38b 3155 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} gdb tcl tk libgui itcl"
1587117a 3156 ;;
c1968181 3157 *-*-uclinux*)
54d1c879 3158 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3159 ;;
a0da8069 3160 *-*-vxworks*)
54d1c879 3161 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3162 ;;
3163 alpha*-dec-osf*)
3164 # ld works, but does not support shared libraries.
0377a422 3165 # newlib is not 64 bit ready.
a0da8069 3166 # gas doesn't generate exception information.
0377a422 3167 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
a0da8069
NN
3168 ;;
3169 alpha*-*-*vms*)
d594eacc 3170 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3171 ;;
3172 alpha*-*-linux*)
3173 # newlib is not 64 bit ready
3174 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3175 ;;
a0da8069
NN
3176 alpha*-*-*)
3177 # newlib is not 64 bit ready
54d1c879 3178 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3179 ;;
4a18bd6b 3180 am33_2.0-*-linux*)
54d1c879 3181 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3182 ;;
a0da8069 3183 sh-*-linux*)
54d1c879 3184 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3185 ;;
a0da8069 3186 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3187 noconfigdirs="$noconfigdirs ${libgcj}"
0377a422 3188 noconfigdirs="$noconfigdirs target-libiberty"
675c6968 3189 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3190 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3191 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069 3192 noconfigdirs="$noconfigdirs target-newlib"
691bb5a1 3193 libgloss_dir=wince
a0da8069
NN
3194 ;;
3195 arc-*-*)
782cb41f 3196 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3197 ;;
93cc359e 3198 arm-*-coff)
54d1c879 3199 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3200 libgloss_dir=arm
a0da8069 3201 ;;
93cc359e 3202 arm-*-elf* | arm*-*-eabi* )
0377a422 3203 noconfigdirs="$noconfigdirs target-libffi"
691bb5a1 3204 libgloss_dir=arm
a0da8069 3205 ;;
bd70a46f 3206 arm*-*-linux-gnueabi)
0377a422 3207 noconfigdirs="$noconfigdirs"
a5b3b4dd
DD
3208 case ${with_newlib} in
3209 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3210 esac
691bb5a1 3211 libgloss_dir=arm
bd70a46f 3212 ;;
df4a6958 3213 arm*-*-symbianelf*)
54d1c879 3214 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3215 libgloss_dir=arm
df4a6958 3216 ;;
a0da8069 3217 arm-*-pe*)
54d1c879 3218 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3219 ;;
a0da8069 3220 arm-*-riscix*)
54d1c879 3221 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3222 ;;
3223 avr-*-*)
266df637 3224 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3225 ;;
376a0e54 3226 bfin-*-*)
df51e4e1 3227 unsupported_languages="$unsupported_languages java"
7837304f 3228 noconfigdirs="$noconfigdirs target-boehm-gc"
3cf3372e 3229 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3230 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3231 fi
3232 ;;
a0da8069 3233 c4x-*-* | tic4x-*-*)
54d1c879 3234 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3235 ;;
3236 c54x*-*-* | tic54x-*-*)
54d1c879 3237 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3238 ;;
52310858
NC
3239 cr16-*-*)
3240 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3241 ;;
c7e66c6d 3242 cris-*-* | crisv32-*-*)
59f7ec45 3243 unsupported_languages="$unsupported_languages java"
c7e66c6d 3244 case "${target}" in
2faa2958 3245 *-*-aout)
096f7d00 3246 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3247 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
d357cef7
HPN
3248 *-*-elf) # See PR46792 regarding target-libffi.
3249 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3250 *-*-linux*)
5e818318 3251 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3252 *)
096f7d00 3253 unsupported_languages="$unsupported_languages fortran"
54d1c879 3254 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3255 esac
691bb5a1 3256 libgloss_dir=cris
a0da8069
NN
3257 ;;
3258 d10v-*-*)
54d1c879 3259 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3260 ;;
3261 d30v-*-*)
54d1c879 3262 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3263 ;;
3264 fr30-*-elf*)
54d1c879 3265 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3266 ;;
3267 frv-*-*)
54d1c879 3268 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3269 ;;
20135e4c
NC
3270 moxie-*-*)
3271 noconfigdirs="$noconfigdirs ${libgcj}"
3272 noconfigdirs="$noconfigdirs gprof"
3273 ;;
a0da8069 3274 h8300*-*-*)
54d1c879 3275 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3276 ;;
3277 h8500-*-*)
54d1c879 3278 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3279 ;;
caeba88f 3280 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3281 ;;
93cc359e 3282 hppa*64*-*-linux*)
a0da8069
NN
3283 # In this case, it's because the hppa64-linux target is for
3284 # the kernel only at this point and has no libc, and thus no
3285 # headers, crt*.o, etc., all of which are needed by these.
3286 noconfigdirs="$noconfigdirs target-zlib"
3287 ;;
f0ff0f90 3288 hppa*-*-linux*)
5dcac624 3289 ;;
a0da8069 3290 hppa*-*-*elf* | \
a0da8069
NN
3291 hppa*-*-lites* | \
3292 hppa*-*-openbsd* | \
3293 hppa*64*-*-*)
54d1c879 3294 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3295 ;;
3296 hppa*-hp-hpux11*)
0377a422 3297 noconfigdirs="$noconfigdirs ld"
a0da8069 3298 ;;
691bb5a1
DD
3299 hppa*-*-pro*)
3300 libgloss_dir=pa
3301 ;;
a0da8069
NN
3302 hppa*-*-*)
3303 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3304 # build on HP-UX 10.20.
0377a422 3305 noconfigdirs="$noconfigdirs ld ${libgcj}"
a0da8069 3306 ;;
b07c2aad 3307 i960-*-*)
54d1c879 3308 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3309 ;;
a0da8069
NN
3310 ia64*-*-elf*)
3311 # No gdb support yet.
0377a422 3312 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3313 ;;
3314 ia64*-**-hpux*)
92c9a463
JB
3315 # No ld support yet.
3316 noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
a0da8069 3317 ;;
19e99079
NC
3318 ia64*-*-*vms*)
3319 # No gdb or ld support yet.
0377a422 3320 noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
19e99079 3321 ;;
ec11bdc6 3322 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3323 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3324 libgloss_dir=i386
a0da8069 3325 ;;
ec11bdc6 3326 i[3456789]86-*-linux*)
a0da8069
NN
3327 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3328 # not build java stuff by default.
3329 case "${target}" in
3330 *-*-*libc1*)
54d1c879 3331 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3332 esac
3333
3334 # This section makes it possible to build newlib natively on linux.
3335 # If we are using a cross compiler then don't configure newlib.
3336 if test x${is_cross_compiler} != xno ; then
bba45b8b 3337 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3338 fi
3339 noconfigdirs="$noconfigdirs target-libgloss"
3340 # If we are not using a cross compiler, do configure newlib.
3341 # Note however, that newlib will only be configured in this situation
3342 # if the --with-newlib option has been given, because otherwise
3343 # 'target-newlib' will appear in skipdirs.
3344 ;;
1f53ca9a 3345 i[3456789]86-w64-mingw*)
0377a422 3346 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
1f53ca9a
AO
3347 ;;
3348 i[3456789]86-*-mingw*)
45055374 3349 target_configdirs="$target_configdirs target-winsup"
0377a422 3350 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
c6b750e1 3351 ;;
2d1e8239 3352 x86_64-*-mingw*)
0377a422 3353 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
c6b750e1 3354 ;;
a0da8069
NN
3355 *-*-cygwin*)
3356 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3357 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3358 # always build newlib if winsup directory is present.
45055374 3359 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3360 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3361 elif test -d "$srcdir/newlib"; then
45055374 3362 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3363 fi
c6b750e1 3364 ;;
f0ff0f90 3365 i[3456789]86-*-interix* )
caeba88f 3366 ;;
ec11bdc6 3367 i[3456789]86-*-pe)
782cb41f 3368 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3369 ;;
ec11bdc6 3370 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3371 # The linker does not yet know about weak symbols in COFF,
3372 # and is not configured to handle mixed ELF and COFF.
54d1c879 3373 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3374 ;;
ec11bdc6 3375 i[3456789]86-*-sco*)
54d1c879 3376 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3377 ;;
ec11bdc6 3378 i[3456789]86-*-solaris2*)
a0da8069
NN
3379 noconfigdirs="$noconfigdirs target-libgloss"
3380 ;;
ec11bdc6 3381 i[3456789]86-*-sysv4*)
54d1c879 3382 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3383 ;;
ec11bdc6 3384 i[3456789]86-*-beos*)
54d1c879 3385 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3386 ;;
b59bea8a 3387 i[3456789]86-*-rdos*)
2429c060
PB
3388 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3389 ;;
b07c2aad 3390 m32r-*-*)
54d1c879 3391 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3392 ;;
a0da8069 3393 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
782cb41f 3394 noconfigdirs="$noconfigdirs target-libiberty"
691bb5a1 3395 libgloss_dir=m68hc11
a0da8069
NN
3396 ;;
3397 m68k-*-elf*)
54d1c879 3398 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3399 ;;
3400 m68k-*-coff*)
54d1c879 3401 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3402 ;;
691bb5a1
DD
3403 m68*-*-* | fido-*-*)
3404 libgloss_dir=m68k
3405 ;;
a0da8069 3406 mmix-*-*)
59f7ec45 3407 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3408 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3409 ;;
3410 mn10200-*-*)
54d1c879 3411 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3412 ;;
3413 mn10300-*-*)
54d1c879 3414 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3415 ;;
4970f871 3416 mt-*-*)
cdb9b172
AH
3417 noconfigdirs="$noconfigdirs sim"
3418 ;;
887ebfb4
RW
3419 picochip-*-*)
3420 noconfigdirs="$noconfigdirs target-libiberty"
3421 ;;
a0da8069
NN
3422 powerpc-*-aix*)
3423 # copied from rs6000-*-* entry
e8a5fa9c 3424 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069 3425 ;;
93cc359e 3426 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3427 target_configdirs="$target_configdirs target-winsup"
0377a422 3428 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl ${libgcj}"
a0da8069
NN
3429 # always build newlib.
3430 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3431 ;;
3432 # This is temporary until we can link against shared libraries
3433 powerpcle-*-solaris*)
0377a422 3434 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl ${libgcj}"
691bb5a1 3435 libgloss_dir=rs6000
a0da8069
NN
3436 ;;
3437 powerpc-*-beos*)
54d1c879 3438 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3439 ;;
a0da8069 3440 powerpc-*-eabi)
54d1c879 3441 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3442 libgloss_dir=rs6000
caeba88f
AL
3443 ;;
3444 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3445 libgloss_dir=rs6000
a0da8069 3446 ;;
a0da8069 3447 rs6000-*-lynxos*)
54d1c879 3448 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3449 ;;
3450 rs6000-*-aix*)
e8a5fa9c 3451 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3452 ;;
3453 rs6000-*-*)
54d1c879 3454 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3455 ;;
3456 m68k-apollo-*)
54d1c879 3457 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3458 ;;
25a07265 3459 microblaze*)
29821356 3460 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
25a07265 3461 ;;
5bd8be13
RS
3462 mips*-sde-elf*)
3463 skipdirs="$skipdirs target-libiberty"
3464 noconfigdirs="$noconfigdirs ${libgcj}"
3465 if test x$with_newlib = xyes; then
3466 noconfigdirs="$noconfigdirs gprof"
3467 fi
3468 libgloss_dir=mips
3469 ;;
a0da8069 3470 mips*-*-irix5*)
54d1c879 3471 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3472 ;;
3473 mips*-*-irix6*)
a0da8069
NN
3474 # Linking libjava exceeds command-line length limits on at least
3475 # IRIX 6.2, but not on IRIX 6.5.
3476 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3477 # <oldham@codesourcery.com>
54d1c879 3478 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3479 ;;
a0da8069 3480 mips*-*-bsd*)
54d1c879 3481 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3482 ;;
a0da8069
NN
3483 mips*-*-linux*)
3484 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3485 ;;
3486 mips*-*-*)
54d1c879 3487 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3488 libgloss_dir=mips
a0da8069
NN
3489 ;;
3490 romp-*-*)
54d1c879 3491 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3492 ;;
dbf85af7 3493 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3494 case "${target}" in
3495 sh*-*-elf)
3496 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3497 *)
3498 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3499 esac
a0da8069 3500 ;;
691bb5a1
DD
3501 sparclet-*-aout* | sparc86x-*-*)
3502 libgloss_dir=sparc
3503 ;;
a0da8069 3504 sparc-*-elf*)
54d1c879 3505 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3506 ;;
3507 sparc64-*-elf*)
54d1c879 3508 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3509 libgloss_dir=sparc
a0da8069
NN
3510 ;;
3511 sparclite-*-*)
54d1c879 3512 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3513 libgloss_dir=sparc
a0da8069
NN
3514 ;;
3515 sparc-*-sunos4*)
54d1c879 3516 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3517 if test x${is_cross_compiler} != xno ; then
3518 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3519 else
3520 use_gnu_ld=no
3521 fi
3522 ;;
e3c770b1 3523 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3524 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3525 ;;
a0da8069
NN
3526 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3527 ;;
619a3713
JM
3528 tic6x-*-*)
3529 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3530 ;;
a0da8069 3531 v810-*-*)
54d1c879 3532 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069 3533 ;;
1cd986c5
NC
3534 v850*-*-*)
3535 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3536 ;;
3537 vax-*-vms)
54d1c879 3538 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3539 ;;
3540 vax-*-*)
54d1c879 3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3542 ;;
8b66833e 3543 xtensa*-*-*)
54d1c879 3544 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3545 ;;
a0da8069 3546 ip2k-*-*)
54d1c879 3547 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3548 ;;
29383458 3549 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
3552 *-*-lynxos*)
54d1c879 3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3554 ;;
a0da8069 3555 *-*-*)
54d1c879 3556 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3557 ;;
3558esac
252b5132 3559
a0da8069
NN
3560# If we aren't building newlib, then don't build libgloss, since libgloss
3561# depends upon some newlib header files.
3562case "${noconfigdirs}" in
3563 *target-libgloss*) ;;
3564 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3565esac
3566
a0da8069 3567# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3568host_makefile_frag=/dev/null
3569if test -d ${srcdir}/config ; then
3570case "${host}" in
ec11bdc6 3571 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3572 host_makefile_frag="config/mh-djgpp"
3573 ;;
3574 *-cygwin*)
e33b51a6 3575
81ecdfbb
RW
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3577$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3578echo a >cygwin-cat-check
1f53ca9a 3579if test `cat cygwin-cat-check` = a ; then
8ade07e9 3580 rm cygwin-cat-check
81ecdfbb
RW
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3582$as_echo "yes" >&6; }
e33b51a6 3583else
8ade07e9 3584 rm cygwin-cat-check
81ecdfbb
RW
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586$as_echo "no" >&6; }
3587 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3588 Please either mount the build directory in binary mode or run the following
3589 commands before running any configure script:
3590set -o igncr
3591export SHELLOPTS
81ecdfbb 3592 " "$LINENO" 5
e33b51a6 3593fi
e33b51a6 3594
a0da8069
NN
3595 host_makefile_frag="config/mh-cygwin"
3596 ;;
8a1599ab 3597 *-mingw*)
84e7906e 3598 host_makefile_frag="config/mh-mingw"
2d1e8239 3599 ;;
a0da8069
NN
3600 *-interix*)
3601 host_makefile_frag="config/mh-interix"
3602 ;;
da888c87 3603 hppa*-hp-hpux10*)
da888c87 3604 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3605 ;;
3516a403 3606 hppa*-hp-hpux*)
da888c87
PB
3607 host_makefile_frag="config/mh-pa"
3608 ;;
3609 hppa*-*)
3610 host_makefile_frag="config/mh-pa"
3611 ;;
e552509b
ILT
3612 *-*-darwin*)
3613 host_makefile_frag="config/mh-darwin"
0df3d27f 3614 ;;
f6d183c0
PB
3615 powerpc-*-aix*)
3616 host_makefile_frag="config/mh-ppc-aix"
3617 ;;
3618 rs6000-*-aix*)
3619 host_makefile_frag="config/mh-ppc-aix"
3620 ;;
a0da8069
NN
3621esac
3622fi
3623
9e07f89d 3624if test "${build}" != "${host}" ; then
1576798e
PB
3625 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3626 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3627 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3628 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3629 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3630 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3631 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3632 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3633 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3634 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3635 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3636 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3637 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3638else
3639 AR_FOR_BUILD="\$(AR)"
3640 AS_FOR_BUILD="\$(AS)"
512b7dfb 3641 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3642 CXX_FOR_BUILD="\$(CXX)"
3643 GCJ_FOR_BUILD="\$(GCJ)"
3644 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3645 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3646 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3647 LD_FOR_BUILD="\$(LD)"
3648 NM_FOR_BUILD="\$(NM)"
3649 RANLIB_FOR_BUILD="\$(RANLIB)"
3650 WINDRES_FOR_BUILD="\$(WINDRES)"
3651 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3652fi
3653
3654ac_ext=c
c6b750e1
DJ
3655ac_cpp='$CPP $CPPFLAGS'
3656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659if test -n "$ac_tool_prefix"; then
3660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3661set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663$as_echo_n "checking for $ac_word... " >&6; }
3664if test "${ac_cv_prog_CC+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3666else
3667 if test -n "$CC"; then
3668 ac_cv_prog_CC="$CC" # Let the user override the test.
3669else
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3677 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3679 break 2
3680 fi
3681done
81ecdfbb
RW
3682 done
3683IFS=$as_save_IFS
c6b750e1
DJ
3684
3685fi
3686fi
3687CC=$ac_cv_prog_CC
3688if test -n "$CC"; then
81ecdfbb
RW
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690$as_echo "$CC" >&6; }
c6b750e1 3691else
81ecdfbb
RW
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693$as_echo "no" >&6; }
c6b750e1
DJ
3694fi
3695
81ecdfbb 3696
c6b750e1
DJ
3697fi
3698if test -z "$ac_cv_prog_CC"; then
3699 ac_ct_CC=$CC
6a9cf61e 3700 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3701set dummy gcc; ac_word=$2
81ecdfbb
RW
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703$as_echo_n "checking for $ac_word... " >&6; }
3704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3706else
3707 if test -n "$ac_ct_CC"; then
3708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
3712do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3717 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3719 break 2
3720 fi
3721done
81ecdfbb
RW
3722 done
3723IFS=$as_save_IFS
c6b750e1
DJ
3724
3725fi
3726fi
3727ac_ct_CC=$ac_cv_prog_ac_ct_CC
3728if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3730$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3731else
81ecdfbb
RW
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733$as_echo "no" >&6; }
c6b750e1
DJ
3734fi
3735
81ecdfbb
RW
3736 if test "x$ac_ct_CC" = x; then
3737 CC=""
3738 else
3739 case $cross_compiling:$ac_tool_warned in
3740yes:)
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3743ac_tool_warned=yes ;;
3744esac
3745 CC=$ac_ct_CC
3746 fi
c6b750e1
DJ
3747else
3748 CC="$ac_cv_prog_CC"
3749fi
3750
3751if test -z "$CC"; then
81ecdfbb
RW
3752 if test -n "$ac_tool_prefix"; then
3753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3754set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756$as_echo_n "checking for $ac_word... " >&6; }
3757if test "${ac_cv_prog_CC+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
9e07f89d
NN
3759else
3760 if test -n "$CC"; then
3761 ac_cv_prog_CC="$CC" # Let the user override the test.
3762else
c6b750e1
DJ
3763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH
3765do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3770 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3772 break 2
3773 fi
3774done
81ecdfbb
RW
3775 done
3776IFS=$as_save_IFS
c6b750e1 3777
9e07f89d
NN
3778fi
3779fi
c6b750e1 3780CC=$ac_cv_prog_CC
9e07f89d 3781if test -n "$CC"; then
81ecdfbb
RW
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783$as_echo "$CC" >&6; }
c6b750e1 3784else
81ecdfbb
RW
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786$as_echo "no" >&6; }
c6b750e1
DJ
3787fi
3788
c6b750e1 3789
81ecdfbb 3790 fi
c6b750e1 3791fi
9e07f89d
NN
3792if test -z "$CC"; then
3793 # Extract the first word of "cc", so it can be a program name with args.
3794set dummy cc; ac_word=$2
81ecdfbb
RW
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796$as_echo_n "checking for $ac_word... " >&6; }
3797if test "${ac_cv_prog_CC+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
9e07f89d
NN
3799else
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC="$CC" # Let the user override the test.
3802else
9e07f89d 3803 ac_prog_rejected=no
c6b750e1
DJ
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3812 ac_prog_rejected=yes
3813 continue
3814 fi
3815 ac_cv_prog_CC="cc"
81ecdfbb 3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3817 break 2
3818 fi
3819done
81ecdfbb
RW
3820 done
3821IFS=$as_save_IFS
c6b750e1 3822
9e07f89d
NN
3823if test $ac_prog_rejected = yes; then
3824 # We found a bogon in the path, so make sure we never use it.
3825 set dummy $ac_cv_prog_CC
3826 shift
c6b750e1 3827 if test $# != 0; then
9e07f89d
NN
3828 # We chose a different compiler from the bogus one.
3829 # However, it has the same basename, so the bogon will be chosen
3830 # first if we set CC to just the basename; use the full file name.
3831 shift
c6b750e1 3832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3833 fi
3834fi
3835fi
3836fi
c6b750e1 3837CC=$ac_cv_prog_CC
9e07f89d 3838if test -n "$CC"; then
81ecdfbb
RW
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840$as_echo "$CC" >&6; }
9e07f89d 3841else
81ecdfbb
RW
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843$as_echo "no" >&6; }
9e07f89d
NN
3844fi
3845
81ecdfbb 3846
c6b750e1
DJ
3847fi
3848if test -z "$CC"; then
3849 if test -n "$ac_tool_prefix"; then
81ecdfbb 3850 for ac_prog in cl.exe
c6b750e1
DJ
3851 do
3852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855$as_echo_n "checking for $ac_word... " >&6; }
3856if test "${ac_cv_prog_CC+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
9e07f89d
NN
3858else
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC="$CC" # Let the user override the test.
3861else
c6b750e1
DJ
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3871 break 2
376a0e54 3872 fi
c6b750e1 3873done
81ecdfbb
RW
3874 done
3875IFS=$as_save_IFS
cac3d6c4 3876
c6b750e1
DJ
3877fi
3878fi
3879CC=$ac_cv_prog_CC
3880if test -n "$CC"; then
81ecdfbb
RW
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882$as_echo "$CC" >&6; }
cac3d6c4 3883else
81ecdfbb
RW
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
9e07f89d 3886fi
cac3d6c4 3887
81ecdfbb 3888
c6b750e1
DJ
3889 test -n "$CC" && break
3890 done
cac3d6c4 3891fi
c6b750e1
DJ
3892if test -z "$CC"; then
3893 ac_ct_CC=$CC
81ecdfbb 3894 for ac_prog in cl.exe
c6b750e1
DJ
3895do
3896 # Extract the first word of "$ac_prog", so it can be a program name with args.
3897set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899$as_echo_n "checking for $ac_word... " >&6; }
3900if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
cac3d6c4 3902else
c6b750e1
DJ
3903 if test -n "$ac_ct_CC"; then
3904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3905else
c6b750e1
DJ
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3913 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3915 break 2
3916 fi
3917done
81ecdfbb
RW
3918 done
3919IFS=$as_save_IFS
c6b750e1 3920
cac3d6c4
CM
3921fi
3922fi
c6b750e1
DJ
3923ac_ct_CC=$ac_cv_prog_ac_ct_CC
3924if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3926$as_echo "$ac_ct_CC" >&6; }
9e07f89d 3927else
81ecdfbb
RW
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929$as_echo "no" >&6; }
cac3d6c4 3930fi
376a0e54 3931
81ecdfbb 3932
c6b750e1
DJ
3933 test -n "$ac_ct_CC" && break
3934done
3935
81ecdfbb
RW
3936 if test "x$ac_ct_CC" = x; then
3937 CC=""
3938 else
3939 case $cross_compiling:$ac_tool_warned in
3940yes:)
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3943ac_tool_warned=yes ;;
3944esac
3945 CC=$ac_ct_CC
3946 fi
c6b750e1
DJ
3947fi
3948
3949fi
3950
3951
81ecdfbb
RW
3952test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954as_fn_error "no acceptable C compiler found in \$PATH
3955See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
3956
3957# Provide some information about the compiler.
81ecdfbb
RW
3958$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3959set X $ac_compile
3960ac_compiler=$2
3961for ac_option in --version -v -V -qversion; do
3962 { { ac_try="$ac_compiler $ac_option >&5"
3963case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966esac
3967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968$as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 3970 ac_status=$?
81ecdfbb
RW
3971 if test -s conftest.err; then
3972 sed '10a\
3973... rest of stderr output deleted ...
3974 10q' conftest.err >conftest.er1
3975 cat conftest.er1 >&5
3976 rm -f conftest.er1 conftest.err
3977 fi
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }
3980done
c6b750e1 3981
81ecdfbb 3982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
3983/* end confdefs.h. */
3984
3985int
3986main ()
3987{
3988
3989 ;
3990 return 0;
3991}
3992_ACEOF
3993ac_clean_files_save=$ac_clean_files
81ecdfbb 3994ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
3995# Try to create an executable without -o first, disregard a.out.
3996# It will help us diagnose broken compilers, and finding out an intuition
3997# of exeext.
81ecdfbb
RW
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3999$as_echo_n "checking for C compiler default output file name... " >&6; }
4000ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4001
4002# The possible output files:
4003ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4004
4005ac_rmfiles=
4006for ac_file in $ac_files
4007do
4008 case $ac_file in
4009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4010 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4011 esac
4012done
4013rm -f $ac_rmfiles
4014
4015if { { ac_try="$ac_link_default"
4016case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019esac
4020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021$as_echo "$ac_try_echo"; } >&5
4022 (eval "$ac_link_default") 2>&5
c6b750e1 4023 ac_status=$?
81ecdfbb
RW
4024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025 test $ac_status = 0; }; then :
4026 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4027# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4028# in a Makefile. We should not override ac_cv_exeext if it was cached,
4029# so that the user can short-circuit this test for compilers unknown to
4030# Autoconf.
4031for ac_file in $ac_files ''
c6b750e1
DJ
4032do
4033 test -f "$ac_file" || continue
4034 case $ac_file in
81ecdfbb 4035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4036 ;;
4037 [ab].out )
4038 # We found the default executable, but exeext='' is most
4039 # certainly right.
4040 break;;
4041 *.* )
81ecdfbb
RW
4042 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4043 then :; else
4044 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4045 fi
4046 # We set ac_cv_exeext here because the later test for it is not
4047 # safe: cross compilers may not add the suffix if given an `-o'
4048 # argument, so we may need to know it at that point already.
4049 # Even if this section looks crufty: it has the advantage of
4050 # actually working.
c6b750e1
DJ
4051 break;;
4052 * )
4053 break;;
4054 esac
4055done
81ecdfbb
RW
4056test "$ac_cv_exeext" = no && ac_cv_exeext=
4057
c6b750e1 4058else
81ecdfbb
RW
4059 ac_file=''
4060fi
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4062$as_echo "$ac_file" >&6; }
4063if test -z "$ac_file"; then :
4064 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
81ecdfbb
RW
4067{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069{ as_fn_set_status 77
4070as_fn_error "C compiler cannot create executables
4071See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4072fi
c6b750e1 4073ac_exeext=$ac_cv_exeext
c6b750e1 4074
81ecdfbb 4075# Check that the compiler produces executables we can run. If not, either
c6b750e1 4076# the compiler is broken, or we cross compile.
81ecdfbb
RW
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4078$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4079# If not cross compiling, check that we can run a simple program.
4080if test "$cross_compiling" != yes; then
4081 if { ac_try='./$ac_file'
81ecdfbb
RW
4082 { { case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085esac
4086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087$as_echo "$ac_try_echo"; } >&5
4088 (eval "$ac_try") 2>&5
c6b750e1 4089 ac_status=$?
81ecdfbb
RW
4090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091 test $ac_status = 0; }; }; then
c6b750e1
DJ
4092 cross_compiling=no
4093 else
4094 if test "$cross_compiling" = maybe; then
4095 cross_compiling=yes
4096 else
81ecdfbb
RW
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099as_fn_error "cannot run C compiled programs.
c6b750e1 4100If you meant to cross compile, use \`--host'.
81ecdfbb 4101See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4102 fi
4103 fi
4104fi
81ecdfbb
RW
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4106$as_echo "yes" >&6; }
c6b750e1 4107
81ecdfbb 4108rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4109ac_clean_files=$ac_clean_files_save
81ecdfbb 4110# Check that the compiler produces executables we can run. If not, either
c6b750e1 4111# the compiler is broken, or we cross compile.
81ecdfbb
RW
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4113$as_echo_n "checking whether we are cross compiling... " >&6; }
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4115$as_echo "$cross_compiling" >&6; }
4116
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4118$as_echo_n "checking for suffix of executables... " >&6; }
4119if { { ac_try="$ac_link"
4120case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123esac
4124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125$as_echo "$ac_try_echo"; } >&5
4126 (eval "$ac_link") 2>&5
c6b750e1 4127 ac_status=$?
81ecdfbb
RW
4128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129 test $ac_status = 0; }; then :
c6b750e1
DJ
4130 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4131# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4132# work properly (i.e., refer to `conftest.exe'), while it won't with
4133# `rm'.
4134for ac_file in conftest.exe conftest conftest.*; do
4135 test -f "$ac_file" || continue
4136 case $ac_file in
81ecdfbb 4137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4138 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4139 break;;
4140 * ) break;;
4141 esac
4142done
4143else
81ecdfbb
RW
4144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4146as_fn_error "cannot compute suffix of executables: cannot compile and link
4147See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4148fi
c6b750e1 4149rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4151$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4152
4153rm -f conftest.$ac_ext
4154EXEEXT=$ac_cv_exeext
4155ac_exeext=$EXEEXT
81ecdfbb
RW
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4157$as_echo_n "checking for suffix of object files... " >&6; }
4158if test "${ac_cv_objext+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
c6b750e1 4160else
81ecdfbb 4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4162/* end confdefs.h. */
4163
4164int
4165main ()
4166{
4167
4168 ;
4169 return 0;
4170}
4171_ACEOF
4172rm -f conftest.o conftest.obj
81ecdfbb
RW
4173if { { ac_try="$ac_compile"
4174case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177esac
4178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179$as_echo "$ac_try_echo"; } >&5
4180 (eval "$ac_compile") 2>&5
c6b750e1 4181 ac_status=$?
81ecdfbb
RW
4182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183 test $ac_status = 0; }; then :
4184 for ac_file in conftest.o conftest.obj conftest.*; do
4185 test -f "$ac_file" || continue;
c6b750e1 4186 case $ac_file in
81ecdfbb 4187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4188 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4189 break;;
4190 esac
4191done
cac3d6c4 4192else
81ecdfbb 4193 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
81ecdfbb
RW
4196{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198as_fn_error "cannot compute suffix of object files: cannot compile
4199See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4200fi
c6b750e1
DJ
4201rm -f conftest.$ac_cv_objext conftest.$ac_ext
4202fi
81ecdfbb
RW
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4204$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4205OBJEXT=$ac_cv_objext
4206ac_objext=$OBJEXT
81ecdfbb
RW
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4208$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4209if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
c6b750e1 4211else
81ecdfbb 4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4213/* end confdefs.h. */
4214
4215int
4216main ()
4217{
4218#ifndef __GNUC__
4219 choke me
4220#endif
4221
4222 ;
4223 return 0;
4224}
4225_ACEOF
81ecdfbb 4226if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4227 ac_compiler_gnu=yes
4228else
81ecdfbb 4229 ac_compiler_gnu=no
c6b750e1 4230fi
81ecdfbb 4231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4232ac_cv_c_compiler_gnu=$ac_compiler_gnu
4233
4234fi
81ecdfbb
RW
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4236$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4237if test $ac_compiler_gnu = yes; then
4238 GCC=yes
4239else
4240 GCC=
4241fi
c6b750e1
DJ
4242ac_test_CFLAGS=${CFLAGS+set}
4243ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4245$as_echo_n "checking whether $CC accepts -g... " >&6; }
4246if test "${ac_cv_prog_cc_g+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248else
4249 ac_save_c_werror_flag=$ac_c_werror_flag
4250 ac_c_werror_flag=yes
4251 ac_cv_prog_cc_g=no
4252 CFLAGS="-g"
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4254/* end confdefs.h. */
4255
4256int
4257main ()
4258{
4259
4260 ;
4261 return 0;
4262}
4263_ACEOF
81ecdfbb 4264if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4265 ac_cv_prog_cc_g=yes
4266else
81ecdfbb
RW
4267 CFLAGS=""
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269/* end confdefs.h. */
4270
4271int
4272main ()
4273{
4274
4275 ;
4276 return 0;
4277}
4278_ACEOF
4279if ac_fn_c_try_compile "$LINENO"; then :
4280
4281else
4282 ac_c_werror_flag=$ac_save_c_werror_flag
4283 CFLAGS="-g"
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h. */
cac3d6c4 4286
81ecdfbb
RW
4287int
4288main ()
4289{
4290
4291 ;
4292 return 0;
4293}
4294_ACEOF
4295if ac_fn_c_try_compile "$LINENO"; then :
4296 ac_cv_prog_cc_g=yes
4297fi
4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4299fi
81ecdfbb 4300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4301fi
81ecdfbb
RW
4302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 ac_c_werror_flag=$ac_save_c_werror_flag
4304fi
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4306$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4307if test "$ac_test_CFLAGS" = set; then
c6b750e1 4308 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4309elif test $ac_cv_prog_cc_g = yes; then
4310 if test "$GCC" = yes; then
4311 CFLAGS="-g -O2"
4312 else
4313 CFLAGS="-g"
4314 fi
4315else
4316 if test "$GCC" = yes; then
4317 CFLAGS="-O2"
4318 else
4319 CFLAGS=
4320 fi
4321fi
81ecdfbb
RW
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4323$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4324if test "${ac_cv_prog_cc_c89+set}" = set; then :
4325 $as_echo_n "(cached) " >&6
c6b750e1 4326else
81ecdfbb 4327 ac_cv_prog_cc_c89=no
c6b750e1 4328ac_save_CC=$CC
81ecdfbb 4329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4330/* end confdefs.h. */
4331#include <stdarg.h>
4332#include <stdio.h>
4333#include <sys/types.h>
4334#include <sys/stat.h>
4335/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4336struct buf { int x; };
4337FILE * (*rcsopen) (struct buf *, struct stat *, int);
4338static char *e (p, i)
4339 char **p;
4340 int i;
4341{
4342 return p[i];
4343}
4344static char *f (char * (*g) (char **, int), char **p, ...)
4345{
4346 char *s;
4347 va_list v;
4348 va_start (v,p);
4349 s = g (p, va_arg (v,int));
4350 va_end (v);
4351 return s;
4352}
4353
4354/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4355 function prototypes and stuff, but not '\xHH' hex character constants.
4356 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4357 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4358 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4359 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4360 that's true only with -std. */
c6b750e1
DJ
4361int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4362
81ecdfbb
RW
4363/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4364 inside strings and character constants. */
4365#define FOO(x) 'x'
4366int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4367
c6b750e1
DJ
4368int test (int i, double x);
4369struct s1 {int (*f) (int a);};
4370struct s2 {int (*f) (double a);};
4371int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4372int argc;
4373char **argv;
4374int
4375main ()
4376{
4377return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4378 ;
4379 return 0;
4380}
4381_ACEOF
81ecdfbb
RW
4382for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4383 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4384do
4385 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4386 if ac_fn_c_try_compile "$LINENO"; then :
4387 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4388fi
81ecdfbb
RW
4389rm -f core conftest.err conftest.$ac_objext
4390 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4391done
81ecdfbb 4392rm -f conftest.$ac_ext
c6b750e1
DJ
4393CC=$ac_save_CC
4394
4395fi
81ecdfbb
RW
4396# AC_CACHE_VAL
4397case "x$ac_cv_prog_cc_c89" in
4398 x)
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4400$as_echo "none needed" >&6; } ;;
4401 xno)
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4403$as_echo "unsupported" >&6; } ;;
c6b750e1 4404 *)
81ecdfbb
RW
4405 CC="$CC $ac_cv_prog_cc_c89"
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4407$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4408esac
81ecdfbb 4409if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4410
c6b750e1
DJ
4411fi
4412
c6b750e1
DJ
4413ac_ext=c
4414ac_cpp='$CPP $CPPFLAGS'
4415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4418
81ecdfbb 4419ac_ext=cpp
18f6b6ee
PB
4420ac_cpp='$CXXCPP $CPPFLAGS'
4421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4424if test -z "$CXX"; then
4425 if test -n "$CCC"; then
4426 CXX=$CCC
4427 else
4428 if test -n "$ac_tool_prefix"; then
4429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4430 do
4431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4432set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434$as_echo_n "checking for $ac_word... " >&6; }
4435if test "${ac_cv_prog_CXX+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4437else
4438 if test -n "$CXX"; then
4439 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4440else
4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4448 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4450 break 2
4451 fi
4452done
81ecdfbb
RW
4453 done
4454IFS=$as_save_IFS
512b7dfb 4455
18f6b6ee
PB
4456fi
4457fi
4458CXX=$ac_cv_prog_CXX
4459if test -n "$CXX"; then
81ecdfbb
RW
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4461$as_echo "$CXX" >&6; }
18f6b6ee 4462else
81ecdfbb
RW
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464$as_echo "no" >&6; }
18f6b6ee
PB
4465fi
4466
81ecdfbb 4467
18f6b6ee
PB
4468 test -n "$CXX" && break
4469 done
4470fi
4471if test -z "$CXX"; then
4472 ac_ct_CXX=$CXX
81ecdfbb 4473 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4474do
4475 # Extract the first word of "$ac_prog", so it can be a program name with args.
4476set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478$as_echo_n "checking for $ac_word... " >&6; }
4479if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4481else
4482 if test -n "$ac_ct_CXX"; then
4483 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4484else
4485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4492 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4494 break 2
512b7dfb 4495 fi
18f6b6ee 4496done
81ecdfbb
RW
4497 done
4498IFS=$as_save_IFS
512b7dfb 4499
18f6b6ee
PB
4500fi
4501fi
4502ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4503if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4505$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4506else
81ecdfbb
RW
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508$as_echo "no" >&6; }
18f6b6ee
PB
4509fi
4510
81ecdfbb 4511
18f6b6ee
PB
4512 test -n "$ac_ct_CXX" && break
4513done
18f6b6ee 4514
81ecdfbb
RW
4515 if test "x$ac_ct_CXX" = x; then
4516 CXX="g++"
4517 else
4518 case $cross_compiling:$ac_tool_warned in
4519yes:)
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4522ac_tool_warned=yes ;;
4523esac
4524 CXX=$ac_ct_CXX
4525 fi
18f6b6ee
PB
4526fi
4527
81ecdfbb
RW
4528 fi
4529fi
18f6b6ee 4530# Provide some information about the compiler.
81ecdfbb
RW
4531$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4532set X $ac_compile
4533ac_compiler=$2
4534for ac_option in --version -v -V -qversion; do
4535 { { ac_try="$ac_compiler $ac_option >&5"
4536case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539esac
4540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541$as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4543 ac_status=$?
81ecdfbb
RW
4544 if test -s conftest.err; then
4545 sed '10a\
4546... rest of stderr output deleted ...
4547 10q' conftest.err >conftest.er1
4548 cat conftest.er1 >&5
4549 rm -f conftest.er1 conftest.err
4550 fi
4551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4552 test $ac_status = 0; }
4553done
18f6b6ee 4554
81ecdfbb
RW
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4556$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4557if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
18f6b6ee 4559else
81ecdfbb 4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4561/* end confdefs.h. */
4562
4563int
4564main ()
4565{
4566#ifndef __GNUC__
4567 choke me
4568#endif
4569
4570 ;
4571 return 0;
4572}
4573_ACEOF
81ecdfbb 4574if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4575 ac_compiler_gnu=yes
4576else
81ecdfbb 4577 ac_compiler_gnu=no
18f6b6ee 4578fi
81ecdfbb 4579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4580ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4581
4582fi
81ecdfbb
RW
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4584$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4585if test $ac_compiler_gnu = yes; then
4586 GXX=yes
4587else
4588 GXX=
4589fi
18f6b6ee
PB
4590ac_test_CXXFLAGS=${CXXFLAGS+set}
4591ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4593$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4594if test "${ac_cv_prog_cxx_g+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4596else
4597 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4598 ac_cxx_werror_flag=yes
4599 ac_cv_prog_cxx_g=no
4600 CXXFLAGS="-g"
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4602/* end confdefs.h. */
4603
4604int
4605main ()
4606{
4607
4608 ;
4609 return 0;
4610}
4611_ACEOF
81ecdfbb 4612if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4613 ac_cv_prog_cxx_g=yes
4614else
81ecdfbb
RW
4615 CXXFLAGS=""
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4617/* end confdefs.h. */
81ecdfbb 4618
18f6b6ee
PB
4619int
4620main ()
4621{
81ecdfbb 4622
18f6b6ee
PB
4623 ;
4624 return 0;
4625}
4626_ACEOF
81ecdfbb 4627if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4628
81ecdfbb
RW
4629else
4630 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4631 CXXFLAGS="-g"
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4633/* end confdefs.h. */
81ecdfbb 4634
18f6b6ee
PB
4635int
4636main ()
4637{
81ecdfbb 4638
18f6b6ee
PB
4639 ;
4640 return 0;
4641}
4642_ACEOF
81ecdfbb
RW
4643if ac_fn_cxx_try_compile "$LINENO"; then :
4644 ac_cv_prog_cxx_g=yes
18f6b6ee 4645fi
81ecdfbb
RW
4646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647fi
4648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649fi
4650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4652fi
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4654$as_echo "$ac_cv_prog_cxx_g" >&6; }
4655if test "$ac_test_CXXFLAGS" = set; then
4656 CXXFLAGS=$ac_save_CXXFLAGS
4657elif test $ac_cv_prog_cxx_g = yes; then
4658 if test "$GXX" = yes; then
4659 CXXFLAGS="-g -O2"
4660 else
4661 CXXFLAGS="-g"
4662 fi
4663else
4664 if test "$GXX" = yes; then
4665 CXXFLAGS="-O2"
4666 else
4667 CXXFLAGS=
4668 fi
18f6b6ee 4669fi
18f6b6ee
PB
4670ac_ext=c
4671ac_cpp='$CPP $CPPFLAGS'
4672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675
4676
4677# We must set the default linker to the linker used by gcc for the correct
4678# operation of libtool. If LD is not defined and we are using gcc, try to
4679# set the LD default to the ld used by gcc.
4680if test -z "$LD"; then
4681 if test "$GCC" = yes; then
4682 case $build in
4683 *-*-mingw*)
4684 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4685 *)
4686 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4687 esac
4688 case $gcc_prog_ld in
4689 # Accept absolute paths.
4690 [\\/]* | [A-Za-z]:[\\/]*)
4691 LD="$gcc_prog_ld" ;;
4692 esac
4693 fi
512b7dfb
PB
4694fi
4695
4696
4697
4698
c6b750e1 4699if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4700 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4701set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703$as_echo_n "checking for $ac_word... " >&6; }
4704if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
9e07f89d 4706else
512b7dfb
PB
4707 if test -n "$GNATBIND"; then
4708 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4709else
c6b750e1
DJ
4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4717 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4719 break 2
4720 fi
4721done
81ecdfbb
RW
4722 done
4723IFS=$as_save_IFS
c6b750e1 4724
9e07f89d
NN
4725fi
4726fi
512b7dfb
PB
4727GNATBIND=$ac_cv_prog_GNATBIND
4728if test -n "$GNATBIND"; then
81ecdfbb
RW
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4730$as_echo "$GNATBIND" >&6; }
9e07f89d 4731else
81ecdfbb
RW
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733$as_echo "no" >&6; }
9e07f89d
NN
4734fi
4735
81ecdfbb 4736
c6b750e1 4737fi
512b7dfb
PB
4738if test -z "$ac_cv_prog_GNATBIND"; then
4739 ac_ct_GNATBIND=$GNATBIND
4740 # Extract the first word of "gnatbind", so it can be a program name with args.
4741set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743$as_echo_n "checking for $ac_word... " >&6; }
4744if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
9e07f89d 4746else
512b7dfb
PB
4747 if test -n "$ac_ct_GNATBIND"; then
4748 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4749else
c6b750e1
DJ
4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4757 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4759 break 2
4760 fi
4761done
81ecdfbb
RW
4762 done
4763IFS=$as_save_IFS
c6b750e1 4764
9e07f89d
NN
4765fi
4766fi
512b7dfb
PB
4767ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4768if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4770$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4771else
81ecdfbb
RW
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773$as_echo "no" >&6; }
9e07f89d
NN
4774fi
4775
81ecdfbb
RW
4776 if test "x$ac_ct_GNATBIND" = x; then
4777 GNATBIND="no"
4778 else
4779 case $cross_compiling:$ac_tool_warned in
4780yes:)
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783ac_tool_warned=yes ;;
4784esac
4785 GNATBIND=$ac_ct_GNATBIND
4786 fi
24ff9987 4787else
512b7dfb 4788 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4789fi
4790
7df2cd5d 4791if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4792 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4793set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795$as_echo_n "checking for $ac_word... " >&6; }
4796if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
7df2cd5d 4798else
512b7dfb
PB
4799 if test -n "$GNATMAKE"; then
4800 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4801else
4802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4809 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4811 break 2
4812 fi
4813done
81ecdfbb
RW
4814 done
4815IFS=$as_save_IFS
7df2cd5d
PB
4816
4817fi
4818fi
512b7dfb
PB
4819GNATMAKE=$ac_cv_prog_GNATMAKE
4820if test -n "$GNATMAKE"; then
81ecdfbb
RW
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4822$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4823else
81ecdfbb
RW
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825$as_echo "no" >&6; }
7df2cd5d
PB
4826fi
4827
81ecdfbb 4828
7df2cd5d 4829fi
512b7dfb
PB
4830if test -z "$ac_cv_prog_GNATMAKE"; then
4831 ac_ct_GNATMAKE=$GNATMAKE
4832 # Extract the first word of "gnatmake", so it can be a program name with args.
4833set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835$as_echo_n "checking for $ac_word... " >&6; }
4836if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
7df2cd5d 4838else
512b7dfb
PB
4839 if test -n "$ac_ct_GNATMAKE"; then
4840 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4849 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4851 break 2
4852 fi
4853done
81ecdfbb
RW
4854 done
4855IFS=$as_save_IFS
7df2cd5d 4856
7df2cd5d
PB
4857fi
4858fi
512b7dfb
PB
4859ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4860if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4862$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4863else
81ecdfbb
RW
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865$as_echo "no" >&6; }
7df2cd5d
PB
4866fi
4867
81ecdfbb
RW
4868 if test "x$ac_ct_GNATMAKE" = x; then
4869 GNATMAKE="no"
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872yes:)
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875ac_tool_warned=yes ;;
4876esac
4877 GNATMAKE=$ac_ct_GNATMAKE
4878 fi
7df2cd5d 4879else
512b7dfb 4880 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4881fi
4882
81ecdfbb
RW
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4884$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4885if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
9e07f89d
NN
4887else
4888 cat >conftest.adb <<EOF
4889procedure conftest is begin null; end conftest;
4890EOF
4891acx_cv_cc_gcc_supports_ada=no
4892# There is a bug in old released versions of GCC which causes the
4893# driver to exit successfully when the appropriate language module
4894# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4895# Therefore we must check for the error message as well as an
4896# unsuccessful exit.
b8908782
DD
4897# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4898# given a .adb file, but produce no object file. So we must check
4899# if an object file was really produced to guard against this.
9e07f89d 4900errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4901if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4902 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4903fi
4904rm -f conftest.*
4905fi
81ecdfbb
RW
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4907$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 4908
512b7dfb 4909if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4910 have_gnat=yes
4911else
4912 have_gnat=no
4913fi
4914
81ecdfbb
RW
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4916$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4917if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
b8908782
DD
4919else
4920 echo abfoo >t1
4921 echo cdfoo >t2
4922 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4923 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4924 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4925 :
4926 else
4927 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4928 fi
4929 fi
b8908782
DD
4930 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4931 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4932 :
b8908782
DD
4933 else
4934 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4935 fi
4936 fi
4937 rm t1 t2
4938
4939fi
81ecdfbb
RW
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4941$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
4942do_compare="$gcc_cv_prog_cmp_skip"
4943
4944
9e07f89d 4945
e8a5fa9c 4946# See if we are building gcc with C++.
81ecdfbb
RW
4947# Check whether --enable-build-with-cxx was given.
4948if test "${enable_build_with_cxx+set}" = set; then :
4949 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
4950else
4951 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
4952fi
4953
e8a5fa9c 4954
d5f2ee2e
KG
4955# Used for setting $lt_cv_objdir
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
4957$as_echo_n "checking for objdir... " >&6; }
4958if test "${lt_cv_objdir+set}" = set; then :
4959 $as_echo_n "(cached) " >&6
4960else
4961 rm -f .libs 2>/dev/null
4962mkdir .libs 2>/dev/null
4963if test -d .libs; then
4964 lt_cv_objdir=.libs
4965else
4966 # MS-DOS does not allow filenames that begin with a dot.
4967 lt_cv_objdir=_libs
4968fi
4969rmdir .libs 2>/dev/null
4970fi
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
4972$as_echo "$lt_cv_objdir" >&6; }
4973objdir=$lt_cv_objdir
4974
4975
4976
4977
4978
4979cat >>confdefs.h <<_ACEOF
4980#define LT_OBJDIR "$lt_cv_objdir/"
4981_ACEOF
4982
4983
4984
e8a5fa9c 4985# Check for GMP, MPFR and MPC
d9b76ff9 4986gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 4987gmpinc=
4b900473 4988have_gmp=no
e8a5fa9c
RW
4989
4990# Specify a location for mpc
4991# check for this first so it ends up on the link line before mpfr.
4992
81ecdfbb
RW
4993# Check whether --with-mpc was given.
4994if test "${with_mpc+set}" = set; then :
4995 withval=$with_mpc;
4996fi
e8a5fa9c 4997
e8a5fa9c 4998
e552509b 4999# Check whether --with-mpc-include was given.
81ecdfbb
RW
5000if test "${with_mpc_include+set}" = set; then :
5001 withval=$with_mpc_include;
5002fi
e8a5fa9c 5003
e8a5fa9c 5004
e552509b 5005# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5006if test "${with_mpc_lib+set}" = set; then :
5007 withval=$with_mpc_lib;
5008fi
e8a5fa9c 5009
e8a5fa9c
RW
5010
5011if test "x$with_mpc" != x; then
d9b76ff9
KG
5012 gmplibs="-L$with_mpc/lib $gmplibs"
5013 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5014fi
5015if test "x$with_mpc_include" != x; then
d9b76ff9 5016 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5017fi
5018if test "x$with_mpc_lib" != x; then
d9b76ff9 5019 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5020fi
5021if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5022 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5023 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5024 # Do not test the mpc version. Assume that it is sufficient, since
5025 # it is in the source tree, and the library has not been built yet
5026 # but it would be included on the link line in the version check below
5027 # hence making the test fail.
d9b76ff9 5028 have_gmp=yes
e8a5fa9c 5029fi
4b900473 5030
11b04d1f
DD
5031# Specify a location for mpfr
5032# check for this first so it ends up on the link line before gmp.
c6b750e1 5033
81ecdfbb
RW
5034# Check whether --with-mpfr-dir was given.
5035if test "${with_mpfr_dir+set}" = set; then :
5036 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5037Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5038fi
5039
11b04d1f
DD
5040
5041
81ecdfbb
RW
5042# Check whether --with-mpfr was given.
5043if test "${with_mpfr+set}" = set; then :
5044 withval=$with_mpfr;
5045fi
c6b750e1 5046
11b04d1f 5047
e552509b 5048# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5049if test "${with_mpfr_include+set}" = set; then :
5050 withval=$with_mpfr_include;
5051fi
c6b750e1 5052
8a0d8a5c 5053
e552509b 5054# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5055if test "${with_mpfr_lib+set}" = set; then :
5056 withval=$with_mpfr_lib;
5057fi
8a0d8a5c 5058
11b04d1f
DD
5059
5060if test "x$with_mpfr" != x; then
5061 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5062 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5063fi
8a0d8a5c 5064if test "x$with_mpfr_include" != x; then
d9b76ff9 5065 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5066fi
5067if test "x$with_mpfr_lib" != x; then
5068 gmplibs="-L$with_mpfr_lib $gmplibs"
5069fi
4b900473 5070if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5071 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5072 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5073 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5074 # Do not test the mpfr version. Assume that it is sufficient, since
5075 # it is in the source tree, and the library has not been built yet
5076 # but it would be included on the link line in the version check below
5077 # hence making the test fail.
5078 have_gmp=yes
5079fi
11b04d1f 5080
4b1cb4fe 5081# Specify a location for gmp
c6b750e1 5082
81ecdfbb
RW
5083# Check whether --with-gmp-dir was given.
5084if test "${with_gmp_dir+set}" = set; then :
5085 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5086Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5087fi
5088
4b1cb4fe
DD
5089
5090
81ecdfbb
RW
5091# Check whether --with-gmp was given.
5092if test "${with_gmp+set}" = set; then :
5093 withval=$with_gmp;
5094fi
c6b750e1 5095
4b1cb4fe 5096
e552509b 5097# Check whether --with-gmp-include was given.
81ecdfbb
RW
5098if test "${with_gmp_include+set}" = set; then :
5099 withval=$with_gmp_include;
5100fi
c6b750e1 5101
8a0d8a5c 5102
e552509b 5103# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5104if test "${with_gmp_lib+set}" = set; then :
5105 withval=$with_gmp_lib;
5106fi
8a0d8a5c
PB
5107
5108
4b1cb4fe 5109
11b04d1f
DD
5110if test "x$with_gmp" != x; then
5111 gmplibs="-L$with_gmp/lib $gmplibs"
5112 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5113fi
8a0d8a5c
PB
5114if test "x$with_gmp_include" != x; then
5115 gmpinc="-I$with_gmp_include $gmpinc"
5116fi
5117if test "x$with_gmp_lib" != x; then
5118 gmplibs="-L$with_gmp_lib $gmplibs"
5119fi
4b900473 5120if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5121 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5122 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5123 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5124 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5125 # Do not test the gmp version. Assume that it is sufficient, since
5126 # it is in the source tree, and the library has not been built yet
5127 # but it would be included on the link line in the version check below
5128 # hence making the test fail.
5129 have_gmp=yes
5130fi
4b1cb4fe 5131
ceb92e78 5132if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5133 have_gmp=yes
5134 saved_CFLAGS="$CFLAGS"
5135 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5136 # Check for the recommended and required versions of GMP.
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5138$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5139
5140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5141/* end confdefs.h. */
5142#include "gmp.h"
5143int
5144main ()
5145{
5146
5147 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5148 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5149 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5150 choke me
5151 #endif
5152
5153 ;
5154 return 0;
5155}
5156_ACEOF
5157if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5159/* end confdefs.h. */
a6b5846e 5160#include <gmp.h>
c6b750e1
DJ
5161int
5162main ()
5163{
4b1cb4fe 5164
a6b5846e
KG
5165 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5166 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5167 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5168 choke me
5169 #endif
c6b750e1
DJ
5170
5171 ;
5172 return 0;
5173}
5174_ACEOF
81ecdfbb
RW
5175if ac_fn_c_try_compile "$LINENO"; then :
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5177$as_echo "yes" >&6; }
a6b5846e
KG
5178else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5180$as_echo "buggy but acceptable" >&6; }
5181fi
5182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5183else
81ecdfbb
RW
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5186fi
81ecdfbb 5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5188
e8a5fa9c 5189 # If we have GMP, check the MPFR version.
4b900473 5190 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5191 # Check for the recommended and required versions of MPFR.
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5193$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5195/* end confdefs.h. */
9b134994 5196#include <gmp.h>
4b900473 5197 #include <mpfr.h>
c6b750e1
DJ
5198int
5199main ()
5200{
9b134994 5201
ef699244 5202 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5203 choke me
5204 #endif
c6b750e1
DJ
5205
5206 ;
5207 return 0;
5208}
5209_ACEOF
81ecdfbb
RW
5210if ac_fn_c_try_compile "$LINENO"; then :
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5212/* end confdefs.h. */
4b1cb4fe 5213#include <gmp.h>
4b900473 5214 #include <mpfr.h>
c6b750e1
DJ
5215int
5216main ()
5217{
9dbaa842 5218
a6b5846e 5219 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5220 choke me
5221 #endif
e8a5fa9c
RW
5222
5223 ;
5224 return 0;
5225}
5226_ACEOF
81ecdfbb
RW
5227if ac_fn_c_try_compile "$LINENO"; then :
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229$as_echo "yes" >&6; }
e8a5fa9c 5230else
81ecdfbb
RW
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5232$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5233fi
81ecdfbb 5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5235else
81ecdfbb
RW
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5238fi
81ecdfbb 5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5240 fi
5241
5242 # Check for the MPC header version.
d9b76ff9 5243 if test x"$have_gmp" = xyes ; then
a6b5846e 5244 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5246$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5248/* end confdefs.h. */
5249#include <mpc.h>
5250int
5251main ()
5252{
5253
a6b5846e
KG
5254 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5255 choke me
5256 #endif
5257
5258 ;
5259 return 0;
5260}
5261_ACEOF
5262if ac_fn_c_try_compile "$LINENO"; then :
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264/* end confdefs.h. */
5265#include <mpc.h>
5266int
5267main ()
5268{
5269
5270 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5271 choke me
5272 #endif
5273
5274 ;
5275 return 0;
5276}
5277_ACEOF
81ecdfbb
RW
5278if ac_fn_c_try_compile "$LINENO"; then :
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5280$as_echo "yes" >&6; }
a6b5846e
KG
5281else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5283$as_echo "buggy but acceptable" >&6; }
5284fi
5285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5286else
81ecdfbb 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5288$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5289fi
81ecdfbb 5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5291 fi
5292
5293 # Now check the MPFR library.
5294 if test x"$have_gmp" = xyes; then
5295 saved_LIBS="$LIBS"
5296 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5298$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5300/* end confdefs.h. */
d9b76ff9 5301#include <mpc.h>
e8a5fa9c
RW
5302int
5303main ()
5304{
5305
5306 mpfr_t n;
5307 mpfr_t x;
d9b76ff9 5308 mpc_t c;
e8a5fa9c
RW
5309 int t;
5310 mpfr_init (n);
5311 mpfr_init (x);
5312 mpfr_atan2 (n, n, x, GMP_RNDN);
5313 mpfr_erfc (n, x, GMP_RNDN);
5314 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5315 mpfr_clear(n);
5316 mpfr_clear(x);
5317 mpc_init2 (c, 53);
5318 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5319 mpc_cosh (c, c, MPC_RNDNN);
5320 mpc_pow (c, c, c, MPC_RNDNN);
5321 mpc_acosh (c, c, MPC_RNDNN);
5322 mpc_clear (c);
c6b750e1
DJ
5323
5324 ;
5325 return 0;
5326}
5327_ACEOF
81ecdfbb
RW
5328if ac_fn_c_try_link "$LINENO"; then :
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330$as_echo "yes" >&6; }
c6b750e1 5331else
81ecdfbb
RW
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5334fi
81ecdfbb
RW
5335rm -f core conftest.err conftest.$ac_objext \
5336 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5337 LIBS="$saved_LIBS"
5338 fi
5339
4b900473 5340 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5341
a6b5846e
KG
5342# The library versions listed in the error message below should match
5343# the HARD-minimums enforced above.
4b900473 5344 if test x$have_gmp != xyes; then
a6b5846e 5345 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5346Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5347their locations. Source code for these libraries can be found at
5348their respective hosting sites as well as at
5349ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5350http://gcc.gnu.org/install/prerequisites.html for additional info. If
5351you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5352make sure that you have installed both the libraries and the header
5353files. They may be located in separate packages." "$LINENO" 5
4b900473 5354 fi
9dbaa842
DD
5355fi
5356
e8a5fa9c
RW
5357# Flags needed for both GMP, MPFR and/or MPC.
5358
5359
5360
4b1cb4fe
DD
5361
5362
5363
29383458
JM
5364# Allow host libstdc++ to be specified for static linking with PPL.
5365
81ecdfbb
RW
5366# Check whether --with-host-libstdcxx was given.
5367if test "${with_host_libstdcxx+set}" = set; then :
5368 withval=$with_host_libstdcxx;
5369fi
29383458 5370
29383458
JM
5371
5372case $with_host_libstdcxx in
5373 no|yes)
81ecdfbb 5374 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5375 ;;
5376esac
e28c595f 5377
e8a5fa9c
RW
5378# Linker flags to use for stage1 or when not boostrapping.
5379
81ecdfbb
RW
5380# Check whether --with-stage1-ldflags was given.
5381if test "${with_stage1_ldflags+set}" = set; then :
5382 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5383 stage1_ldflags=
5384 else
5385 stage1_ldflags=$withval
5386 fi
5387else
5388 stage1_ldflags=
81ecdfbb
RW
5389fi
5390
e8a5fa9c
RW
5391
5392
5393# Libraries to use for stage1 or when not bootstrapping.
5394
81ecdfbb
RW
5395# Check whether --with-stage1-libs was given.
5396if test "${with_stage1_libs+set}" = set; then :
5397 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5398 stage1_libs=
5399 else
5400 stage1_libs=$withval
5401 fi
5402else
5403 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5404fi
5405
e8a5fa9c
RW
5406
5407
e8a5fa9c
RW
5408# Libraries to use for stage2 and later builds. This defaults to the
5409# argument passed to --with-host-libstdcxx.
5410
81ecdfbb
RW
5411# Check whether --with-boot-libs was given.
5412if test "${with_boot_libs+set}" = set; then :
5413 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5414 poststage1_libs=
5415 else
5416 poststage1_libs=$withval
5417 fi
5418else
5419 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5420fi
5421
e8a5fa9c
RW
5422
5423
143754cd
NC
5424# Linker flags to use for stage2 and later builds.
5425
5426# Check whether --with-boot-ldflags was given.
5427if test "${with_boot_ldflags+set}" = set; then :
5428 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5429 poststage1_ldflags=
5430 else
5431 poststage1_ldflags=$withval
5432 fi
5433else
5434 poststage1_ldflags=
4f11b223
ILT
5435 # In stages 2 and 3, default to linking libstdc++ and libgcc
5436 # statically. But if the user explicitly specified the libraries to
5437 # use, trust that they are doing what they want.
5438 if test "$poststage1_libs" = ""; then
143754cd
NC
5439 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5440 fi
5441fi
5442
5443
5444
e28c595f 5445# Check for PPL
b123da99 5446ppllibs=
e28c595f 5447pplinc=
b123da99 5448pwllib=
e28c595f
JM
5449
5450
81ecdfbb
RW
5451# Check whether --with-ppl was given.
5452if test "${with_ppl+set}" = set; then :
5453 withval=$with_ppl;
81ecdfbb 5454fi
e28c595f 5455
e28c595f 5456
e552509b 5457# Check whether --with-ppl-include was given.
81ecdfbb
RW
5458if test "${with_ppl_include+set}" = set; then :
5459 withval=$with_ppl_include;
5460fi
5461
e28c595f 5462
e552509b 5463# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5464if test "${with_ppl_lib+set}" = set; then :
5465 withval=$with_ppl_lib;
5466fi
e28c595f 5467
e28c595f 5468
b123da99
SP
5469# Check whether --enable-ppl-version-check was given.
5470if test "${enable_ppl_version_check+set}" = set; then :
5471 enableval=$enable_ppl_version_check;
5472fi
5473
5474
29383458 5475case $with_ppl in
b123da99 5476 yes | no | "")
1f53ca9a 5477 ;;
29383458 5478 *)
b123da99 5479 ppllibs="-L$with_ppl/lib"
29383458 5480 pplinc="-I$with_ppl/include $pplinc"
b123da99
SP
5481 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5482 with_ppl=yes
5483 else
5484 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5485 fi
29383458
JM
5486 ;;
5487esac
b123da99
SP
5488
5489if test x"$with_ppl_include" != x; then
e28c595f 5490 pplinc="-I$with_ppl_include $pplinc"
b123da99 5491 with_ppl=yes
e28c595f 5492fi
b123da99 5493
e28c595f 5494if test "x$with_ppl_lib" != x; then
b123da99
SP
5495 ppllibs="-L$with_ppl_lib"
5496 with_ppl=yes
e28c595f 5497fi
b123da99
SP
5498
5499if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5500 if test x"$enable_watchdog" = xyes; then
5501 pwllib="-lpwl"
5502 fi
5503 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
1f53ca9a
AO
5504 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5505 enable_ppl_version_check=no
b123da99 5506 with_ppl=yes
e28c595f
JM
5507fi
5508
86ed8cf6 5509if test "x$with_ppl" != xno; then
b123da99 5510 if test "x$pwllib" = x; then
0e8ad34f
RO
5511 saved_LIBS="$LIBS"
5512 LIBS="$LIBS $ppllibs -lstdc++ -lm"
b123da99
SP
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5514$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5515if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5516 $as_echo_n "(cached) " >&6
5517else
5518 ac_check_lib_save_LIBS=$LIBS
5519LIBS="-lpwl $LIBS"
5520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h. */
5522
5523/* Override any GCC internal prototype to avoid an error.
5524 Use char because int might match the return type of a GCC
5525 builtin and then its argument prototype would still apply. */
5526#ifdef __cplusplus
5527extern "C"
5528#endif
5529char PWL_handle_timeout ();
5530int
5531main ()
5532{
5533return PWL_handle_timeout ();
5534 ;
5535 return 0;
5536}
5537_ACEOF
5538if ac_fn_c_try_link "$LINENO"; then :
5539 ac_cv_lib_pwl_PWL_handle_timeout=yes
e28c595f 5540else
b123da99
SP
5541 ac_cv_lib_pwl_PWL_handle_timeout=no
5542fi
5543rm -f core conftest.err conftest.$ac_objext \
5544 conftest$ac_exeext conftest.$ac_ext
5545LIBS=$ac_check_lib_save_LIBS
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5548$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5549if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5550 pwllib="-lpwl"
81ecdfbb
RW
5551fi
5552
0e8ad34f 5553 LIBS="$saved_LIBS"
b123da99 5554 fi
e28c595f 5555
b123da99
SP
5556 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5557
5558 if test "$enable_ppl_version_check" != no; then
5559 saved_CFLAGS="$CFLAGS"
5560 CFLAGS="$CFLAGS $pplinc $gmpinc"
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5562$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5564/* end confdefs.h. */
5565#include "ppl_c.h"
5566int
5567main ()
5568{
5569
b123da99
SP
5570 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5571 choke me
5572 #endif
e28c595f
JM
5573
5574 ;
5575 return 0;
5576}
5577_ACEOF
81ecdfbb
RW
5578if ac_fn_c_try_compile "$LINENO"; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580$as_echo "yes" >&6; }
e28c595f 5581else
81ecdfbb 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5583$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5584fi
81ecdfbb 5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b123da99
SP
5586 CFLAGS="$saved_CFLAGS"
5587 fi
e28c595f
JM
5588fi
5589
5590# Flags needed for PPL
5591
5592
5593
5594
5595# Check for CLOOG
e552509b 5596
e28c595f
JM
5597
5598
81ecdfbb
RW
5599# Check whether --with-cloog was given.
5600if test "${with_cloog+set}" = set; then :
5601 withval=$with_cloog;
81ecdfbb
RW
5602fi
5603
e28c595f 5604
e552509b 5605# Check whether --with-cloog-include was given.
81ecdfbb
RW
5606if test "${with_cloog_include+set}" = set; then :
5607 withval=$with_cloog_include;
5608fi
e28c595f 5609
e28c595f 5610
e552509b 5611# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5612if test "${with_cloog_lib+set}" = set; then :
5613 withval=$with_cloog_lib;
5614fi
e28c595f 5615
e28c595f 5616
e552509b
ILT
5617 # Check whether --enable-cloog-backend was given.
5618if test "${enable_cloog_backend+set}" = set; then :
5619 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5620 cloog_backend=isl
5621 elif test "x${enableval}" = "xppl"; then
5622 cloog_backend=ppl
5623 else
5624 cloog_backend=ppl-legacy
5625 fi
5626else
5627 cloog_backend=ppl-legacy
5628fi
5629
5630 # Check whether --enable-cloog-version-check was given.
5631if test "${enable_cloog_version_check+set}" = set; then :
5632 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5633else
5634 ENABLE_CLOOG_CHECK=yes
5635fi
5636
5637
5638 # Initialize clooglibs and clooginc.
5639 case $with_cloog in
5640 no)
5641 clooglibs=
5642 clooginc=
5643 ;;
5644 "" | yes)
5645 ;;
5646 *)
5647 clooglibs="-L$with_cloog/lib"
5648 clooginc="-I$with_cloog/include"
5649 ;;
5650 esac
5651 if test "x${with_cloog_include}" != x ; then
5652 clooginc="-I$with_cloog_include"
5653 fi
5654 if test "x${with_cloog_lib}" != x; then
5655 clooglibs="-L$with_cloog_lib"
5656 fi
5657
5658
5659
5660
5661
1f53ca9a 5662if test "x$with_ppl" = "xno"; then
8d8eef9a
RW
5663
5664
5665
5666 if test "x${with_cloog}" = xno; then
5667 graphite_requested=no
5668 elif test "x${with_cloog}" != x \
5669 || test "x${with_cloog_include}" != x \
5670 || test "x${with_cloog_lib}" != x ; then
5671 graphite_requested=yes
5672 else
5673 graphite_requested=no
5674 fi
5675
5676
5677 if test "${graphite_requested}" = yes; then
5678 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5679 fi
1f53ca9a
AO
5680 with_cloog=no
5681fi
e552509b
ILT
5682if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5683 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5684 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5685 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5686fi
5687if test "x$with_cloog" != "xno"; then
1f53ca9a 5688
e552509b
ILT
5689
5690
5691 _cloog_saved_CFLAGS=$CFLAGS
5692 _cloog_saved_CPPFLAGS=$CPPFLAGS
5693 _cloog_saved_LDFLAGS=$LDFLAGS
5694 _cloog_saved_LIBS=$LIBS
5695
5696 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5697
5698 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5699 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5700 LDFLAGS="${LDFLAGS} ${clooglibs}"
5701
5702 case $cloog_backend in
5703 "ppl-legacy")
5704 CFLAGS="${CFLAGS} ${pplinc}"
5705 LDFLAGS="${LDFLAGS} ${ppllibs}"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5707$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5708if test "${gcc_cv_cloog_type+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5710else
5711 LIBS="-lcloog ${_cloog_saved_LIBS}"
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713/* end confdefs.h. */
5714#include "cloog/cloog.h"
5715int
5716main ()
5717{
5718#ifndef CLOOG_PPL_BACKEND
5719 choke me
5720 #endif
5721 ;
5722 return 0;
5723}
5724_ACEOF
5725if ac_fn_c_try_link "$LINENO"; then :
5726 gcc_cv_cloog_type="PPL Legacy"
5727else
5728 gcc_cv_cloog_type=no
5729fi
5730rm -f core conftest.err conftest.$ac_objext \
5731 conftest$ac_exeext conftest.$ac_ext
e28c595f 5732fi
e552509b
ILT
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5734$as_echo "$gcc_cv_cloog_type" >&6; }
5735 ;;
5736 "isl")
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5738$as_echo_n "checking for installed CLooG ISL... " >&6; }
5739if test "${gcc_cv_cloog_type+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741else
5742 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744/* end confdefs.h. */
5745#include "cloog/cloog.h"
5746int
5747main ()
5748{
5749cloog_version ()
5750 ;
5751 return 0;
5752}
5753_ACEOF
5754if ac_fn_c_try_link "$LINENO"; then :
5755 gcc_cv_cloog_type="ISL"
5756else
5757 gcc_cv_cloog_type=no
e28c595f 5758fi
e552509b
ILT
5759rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
e28c595f 5761fi
e552509b
ILT
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5763$as_echo "$gcc_cv_cloog_type" >&6; }
5764 ;;
5765 "ppl")
5766 CFLAGS="${CFLAGS} ${pplinc}"
5767 LDFLAGS="${LDFLAGS} ${ppllibs}"
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5769$as_echo_n "checking for installed CLooG PPL... " >&6; }
5770if test "${gcc_cv_cloog_type+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
e28c595f 5772else
e552509b
ILT
5773 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775/* end confdefs.h. */
5776#include "cloog/cloog.h"
5777 #include "cloog/ppl/cloog.h"
5778int
5779main ()
5780{
5781cloog_version ()
5782 ;
5783 return 0;
5784}
5785_ACEOF
5786if ac_fn_c_try_link "$LINENO"; then :
5787 gcc_cv_cloog_type="PPL"
5788else
5789 gcc_cv_cloog_type=no
81ecdfbb 5790fi
e552509b
ILT
5791rm -f core conftest.err conftest.$ac_objext \
5792 conftest$ac_exeext conftest.$ac_ext
5793fi
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5795$as_echo "$gcc_cv_cloog_type" >&6; }
5796 ;;
5797 *)
5798 gcc_cv_cloog_type=""
5799 esac
5800
5801 case $gcc_cv_cloog_type in
5802 "PPL Legacy")
5803 clooginc="${clooginc}"
5804 clooglibs="${clooglibs} -lcloog"
5805 cloog_org=no
5806 ;;
5807 "ISL")
5808 clooginc="${clooginc} ${_cloogorginc}"
b123da99 5809 clooglibs="${clooglibs} -lcloog-isl -lisl"
e552509b
ILT
5810 cloog_org=yes
5811 ;;
5812 "PPL")
5813 clooginc="${clooginc} ${_cloogorginc}"
5814 clooglibs="${clooglibs} -lcloog-ppl"
5815 cloog_org=yes
5816 ;;
5817 *)
5818 clooglibs=
5819 clooginc=
5820 cloog_org=
5821 ;;
5822 esac
81ecdfbb 5823
e552509b
ILT
5824 LIBS=$_cloog_saved_LIBS
5825 CFLAGS=$_cloog_saved_CFLAGS
5826 CPPFLAGS=$_cloog_saved_CPPFLAGS
5827 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5828
e552509b
ILT
5829
5830
5831
5832
5833 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5834 _cloog_saved_CFLAGS=$CFLAGS
5835 _cloog_saved_LDFLAGS=$LDFLAGS
5836
5837 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5838 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5839
5840 if test "${cloog_org}" = yes ; then
8d8eef9a
RW
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5842$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
e552509b
ILT
5843if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5845else
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847/* end confdefs.h. */
5848#include "cloog/cloog.h"
5849int
5850main ()
5851{
5852#if CLOOG_VERSION_MAJOR != 0 \
8d8eef9a
RW
5853 || CLOOG_VERSION_MINOR != 16 \
5854 || CLOOG_VERSION_REVISION < 1
e552509b
ILT
5855 choke me
5856 #endif
5857 ;
5858 return 0;
5859}
5860_ACEOF
5861if ac_fn_c_try_compile "$LINENO"; then :
5862 gcc_cv_cloog_ct_0_14_0=yes
5863else
5864 gcc_cv_cloog_ct_0_14_0=no
5865fi
5866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867fi
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5869$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5870 elif test "${cloog_org}" = no ; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 5872$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
5873if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5875else
81ecdfbb 5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5877/* end confdefs.h. */
5878#include "cloog/cloog.h"
5879int
5880main ()
5881{
e552509b
ILT
5882#if CLOOG_VERSION_MAJOR != 0 \
5883 || CLOOG_VERSION_MINOR != 15 \
5884 || CLOOG_VERSION_REVISION < 5
5885 choke me
5886 #endif
e28c595f
JM
5887 ;
5888 return 0;
5889}
5890_ACEOF
a009f2e7
RW
5891if ac_fn_c_try_compile "$LINENO"; then :
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893/* end confdefs.h. */
5894#include "cloog/cloog.h"
5895int
5896main ()
5897{
e552509b
ILT
5898#if CLOOG_VERSION_MAJOR != 0 \
5899 || CLOOG_VERSION_MINOR != 15 \
5900 || CLOOG_VERSION_REVISION < 9
5901 choke me
5902 #endif
a009f2e7
RW
5903 ;
5904 return 0;
5905}
5906_ACEOF
81ecdfbb 5907if ac_fn_c_try_compile "$LINENO"; then :
e552509b 5908 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 5909else
e552509b 5910 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
5911fi
5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5913else
e552509b 5914 gcc_cv_cloog_ct_0_15_5=no
e28c595f 5915fi
81ecdfbb 5916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5917fi
e552509b
ILT
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5919$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5920 fi
5921
5922 CFLAGS=$_cloog_saved_CFLAGS
5923 LDFLAGS=$_cloog_saved_LDFLAGS
5924 fi
5925
5926
5927
e28c595f 5928
e28c595f
JM
5929
5930
5931
8d8eef9a
RW
5932 if test "x${with_cloog}" = xno; then
5933 graphite_requested=no
5934 elif test "x${with_cloog}" != x \
e552509b
ILT
5935 || test "x${with_cloog_include}" != x \
5936 || test "x${with_cloog_lib}" != x ; then
5937 graphite_requested=yes
5938 else
5939 graphite_requested=no
5940 fi
5941
5942
5943
5944 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5945 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5946 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5947 clooglibs=
5948 clooginc=
5949 fi
5950
5951 if test "${graphite_requested}" = yes \
5952 && test "x${clooglibs}" = x \
5953 && test "x${clooginc}" = x ; then
5954
8d8eef9a 5955 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
5956 fi
5957
5958
5959fi
5960
700d40ca
ILT
5961# Check for LTO support.
5962# Check whether --enable-lto was given.
5963if test "${enable_lto+set}" = set; then :
5964 enableval=$enable_lto; enable_lto=$enableval
5965else
5966 enable_lto=yes; default_enable_lto=yes
5967fi
5968
5969
143754cd 5970
e49e5c92
DK
5971
5972
5973target_elf=no
5974case $target in
5975 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5976 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 5977 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
5978 target_elf=no
5979 ;;
5980 *)
5981 target_elf=yes
5982 ;;
5983esac
5984
5985if test $target_elf = yes; then :
74cea91b
DK
5986 # ELF platforms build the lto-plugin always.
5987 build_lto_plugin=yes
e49e5c92 5988
e49e5c92
DK
5989else
5990 if test x"$default_enable_lto" = x"yes" ; then
29821356 5991 case $target in
dbbe5f95 5992 *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
74cea91b 5993 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
5994 *) enable_lto=no ;;
5995 esac
e49e5c92 5996 else
29821356
RW
5997 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5998 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
5999 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6000 # warn during gcc/ subconfigure; unless you're bootstrapping with
6001 # -flto it won't be needed until after installation anyway.
6002 case $target in
a8eb3f0a 6003 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6004 *) if test x"$enable_lto" = x"yes"; then
6005 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6006 fi
6007 ;;
6008 esac
6009 fi
a8eb3f0a 6010 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6011 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6012 case $target in
74cea91b 6013 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6014 *) ;;
6015 esac
74cea91b 6016
e49e5c92
DK
6017fi
6018
700d40ca 6019
e28c595f 6020
947f426e 6021# By default, C is the only stage 1 language.
9b134994 6022stage1_languages=,c,
1d39f329 6023
e8a5fa9c 6024# Target libraries that we bootstrap.
2aa2364a 6025bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6026
9e07f89d
NN
6027# Figure out what language subdirectories are present.
6028# Look if the user specified --enable-languages="..."; if not, use
6029# the environment variable $LANGUAGES if defined. $LANGUAGES might
6030# go away some day.
6031# NB: embedded tabs in this IF block -- do not untabify
6032if test -d ${srcdir}/gcc; then
6033 if test x"${enable_languages+set}" != xset; then
6034 if test x"${LANGUAGES+set}" = xset; then
6035 enable_languages="${LANGUAGES}"
6036 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6037 else
6038 enable_languages=all
6039 fi
6040 else
6041 if test x"${enable_languages}" = x ||
6042 test x"${enable_languages}" = xyes;
6043 then
6044 echo configure.in: --enable-languages needs at least one language argument 1>&2
6045 exit 1
6046 fi
6047 fi
6048 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6049
096f7d00
DE
6050 # 'f95' is the old name for the 'fortran' language. We issue a warning
6051 # and make the substitution.
6052 case ,${enable_languages}, in
6053 *,f95,*)
6054 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6055 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6056 ;;
6057 esac
6058
9e07f89d
NN
6059 # First scan to see if an enabled language requires some other language.
6060 # We assume that a given config-lang.in will list all the language
6061 # front ends it requires, even if some are required indirectly.
6062 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6063 case ${lang_frag} in
6064 ..) ;;
6065 # The odd quoting in the next line works around
6066 # an apparent bug in bash 1.12 on linux.
6067 ${srcdir}/gcc/[*]/config-lang.in) ;;
6068 *)
e552509b
ILT
6069 # From the config-lang.in, get $language, $lang_requires, and
6070 # $lang_requires_boot_languages.
9e07f89d
NN
6071 language=
6072 lang_requires=
e552509b 6073 lang_requires_boot_languages=
9e07f89d 6074 . ${lang_frag}
e552509b 6075 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6076 case ,${enable_languages}, in
6077 *,$other,*) ;;
6078 *,all,*) ;;
6079 *,$language,*)
6080 echo " \`$other' language required by \`$language'; enabling" 1>&2
6081 enable_languages="${enable_languages},${other}"
6082 ;;
6083 esac
6084 done
e552509b
ILT
6085 for other in ${lang_requires_boot_languages} ; do
6086 if test "$other" != "c"; then
6087 case ,${enable_stage1_languages}, in
6088 *,$other,*) ;;
6089 *,all,*) ;;
6090 *)
6091 case ,${enable_languages}, in
6092 *,$language,*)
6093 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6094 enable_stage1_languages="$enable_stage1_languages,${other}"
6095 ;;
6096 esac
6097 ;;
6098 esac
6099 fi
6100 done
9e07f89d
NN
6101 ;;
6102 esac
6103 done
6104
9b134994 6105 new_enable_languages=,c,
700d40ca
ILT
6106
6107 # If LTO is enabled, add the LTO front end.
6108 extra_host_libiberty_configure_flags=
6109 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6110 case ,${enable_languages}, in
6111 *,lto,*) ;;
6112 *) enable_languages="${enable_languages},lto" ;;
6113 esac
a8eb3f0a 6114 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6115 configdirs="$configdirs lto-plugin"
6116 extra_host_libiberty_configure_flags=--enable-shared
6117 fi
6118 fi
6119
6120
9e07f89d 6121 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6122 potential_languages=,c,
9e07f89d 6123
9e1a94f4
ILT
6124 enabled_target_libs=
6125 disabled_target_libs=
6126
9e07f89d
NN
6127 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6128 case ${lang_frag} in
6129 ..) ;;
6130 # The odd quoting in the next line works around
6131 # an apparent bug in bash 1.12 on linux.
6132 ${srcdir}/gcc/[*]/config-lang.in) ;;
6133 *)
c6b750e1 6134 # From the config-lang.in, get $language, $target_libs,
1d39f329 6135 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6136 language=
6137 target_libs=
6138 lang_dirs=
64ce424c 6139 subdir_requires=
9b134994
PB
6140 boot_language=no
6141 build_by_default=yes
9e07f89d 6142 . ${lang_frag}
9b134994
PB
6143 if test x${language} = x; then
6144 echo "${lang_frag} doesn't set \$language." 1>&2
6145 exit 1
6146 fi
6147
1f53ca9a
AO
6148 if test "$language" = "c++" \
6149 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6150 boot_language=yes
6151 fi
6152
9b134994
PB
6153 case ,${enable_languages}, in
6154 *,${language},*)
9e07f89d
NN
6155 # Language was explicitly selected; include it.
6156 add_this_lang=yes
6157 ;;
9b134994
PB
6158 *,all,*)
6159 # 'all' was selected, select it if it is a default language
6160 add_this_lang=${build_by_default}
9e07f89d
NN
6161 ;;
6162 *)
6163 add_this_lang=no
6164 ;;
6165 esac
4b1cb4fe 6166
64ce424c 6167 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6168 for i in $subdir_requires; do
3d3adb43 6169 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6170 case ,${enable_languages}, in
6171 *,${language},*)
6172 # Specifically requested language; tell them.
81ecdfbb 6173 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6174 ;;
6175 *)
6176 # Silently disable.
9b134994 6177 add_this_lang=unsupported
64ce424c
PB
6178 ;;
6179 esac
6180 done
6181
9b134994
PB
6182 # Disable Ada if no preexisting GNAT is available.
6183 case ,${enable_languages},:${language}:${have_gnat} in
6184 *,${language},*:ada:no)
6185 # Specifically requested language; tell them.
81ecdfbb 6186 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6187 ;;
6188 *:ada:no)
6189 # Silently disable.
6190 add_this_lang=unsupported
6191 ;;
6192 esac
6193
59f7ec45
HPN
6194 # Disable a language that is unsupported by the target.
6195 case " $unsupported_languages " in
6196 *" $language "*)
9b134994 6197 add_this_lang=unsupported
59f7ec45
HPN
6198 ;;
6199 esac
6200
4b1cb4fe 6201 case $add_this_lang in
9b134994 6202 unsupported)
9e07f89d 6203 # Remove language-dependent dirs.
9e1a94f4
ILT
6204 disabled_target_libs="$disabled_target_libs $target_libs"
6205 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6206 ;;
9b134994
PB
6207 no)
6208 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6209 disabled_target_libs="$disabled_target_libs $target_libs"
6210 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6211 potential_languages="${potential_languages}${language},"
6212 ;;
6213 yes)
6214 new_enable_languages="${new_enable_languages}${language},"
6215 potential_languages="${potential_languages}${language},"
1d39f329 6216 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6217 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6218 case "${boot_language}:,$enable_stage1_languages," in
6219 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6220 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6221 case ",$stage1_languages," in
6222 *,$language,* | ,yes, | ,all,) ;;
6223 *) stage1_languages="${stage1_languages}${language}," ;;
6224 esac
e8a5fa9c
RW
6225 # We need to bootstrap any supporting libraries.
6226 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6227 ;;
6228 esac
6229 ;;
9e07f89d
NN
6230 esac
6231 ;;
6232 esac
6233 done
6234
9e1a94f4
ILT
6235 # Add target libraries which are only needed for disabled languages
6236 # to noconfigdirs.
6237 if test -n "$disabled_target_libs"; then
6238 for dir in $disabled_target_libs; do
6239 case " $enabled_target_libs " in
6240 *" ${dir} "*) ;;
6241 *) noconfigdirs="$noconfigdirs $dir" ;;
6242 esac
6243 done
6244 fi
6245
81ecdfbb
RW
6246 # Check whether --enable-stage1-languages was given.
6247if test "${enable_stage1_languages+set}" = set; then :
6248 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6249 ,no,|,,)
6250 # Set it to something that will have no effect in the loop below
6251 enable_stage1_languages=c ;;
6252 ,yes,)
6253 enable_stage1_languages=`echo $new_enable_languages | \
6254 sed -e "s/^,//" -e "s/,$//" ` ;;
6255 *,all,*)
6256 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6257 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6258 esac
6259
6260 # Add "good" languages from enable_stage1_languages to stage1_languages,
6261 # while "bad" languages go in missing_languages. Leave no duplicates.
6262 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6263 case $potential_languages in
6264 *,$i,*)
6265 case $stage1_languages in
6266 *,$i,*) ;;
6267 *) stage1_languages="$stage1_languages$i," ;;
6268 esac ;;
6269 *)
6270 case $missing_languages in
6271 *,$i,*) ;;
6272 *) missing_languages="$missing_languages$i," ;;
6273 esac ;;
6274 esac
6275 done
81ecdfbb
RW
6276fi
6277
9b134994
PB
6278
6279 # Remove leading/trailing commas that were added for simplicity
6280 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6281 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6282 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6283 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6284
9e07f89d 6285 if test "x$missing_languages" != x; then
81ecdfbb 6286 as_fn_error "
27258dd4 6287The following requested languages could not be built: ${missing_languages}
81ecdfbb 6288Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6289 fi
9e07f89d
NN
6290 if test "x$new_enable_languages" != "x$enable_languages"; then
6291 echo The following languages will be built: ${new_enable_languages}
9b134994 6292 enable_languages="$new_enable_languages"
9e07f89d 6293 fi
9b134994 6294
c6b750e1 6295
81ec575a 6296 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6297fi
6298
a6df5a19
PB
6299# Handle --disable-<component> generically.
6300for dir in $configdirs $build_configdirs $target_configdirs ; do
6301 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6302 varname=`echo $dirname | sed -e s/+/_/g`
6303 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6304 noconfigdirs="$noconfigdirs $dir"
6305 fi
6306done
6307
4f0ef2d8 6308# Check for Boehm's garbage collector
81ecdfbb
RW
6309# Check whether --enable-objc-gc was given.
6310if test "${enable_objc_gc+set}" = set; then :
6311 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6312 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6313 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6314 ;;
6315esac
81ecdfbb
RW
6316fi
6317
4f0ef2d8
CD
6318
6319# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6320case ,${enable_languages},:${enable_objc_gc} in
6321 *,objc,*:yes)
4f0ef2d8
CD
6322 # Keep target-boehm-gc if requested for Objective-C.
6323 ;;
4f0ef2d8 6324 *)
d42c4017
DA
6325 # Otherwise remove target-boehm-gc depending on target-libjava.
6326 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6327 noconfigdirs="$noconfigdirs target-boehm-gc"
6328 fi
4f0ef2d8
CD
6329 ;;
6330esac
6331
caeba88f
AL
6332# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6333# $build_configdirs and $target_configdirs.
9e07f89d
NN
6334# If we have the source for $noconfigdirs entries, add them to $notsupp.
6335
6336notsupp=""
6337for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6338 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6339 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6340 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6341 if test -r $srcdir/$dirname/configure ; then
6342 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6343 true
6344 else
6345 notsupp="$notsupp $dir"
6346 fi
6347 fi
6348 fi
caeba88f
AL
6349 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6350 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6351 if test -r $srcdir/$dirname/configure ; then
6352 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6353 true
6354 else
6355 notsupp="$notsupp $dir"
6356 fi
6357 fi
6358 fi
9e07f89d
NN
6359 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6360 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6361 if test -r $srcdir/$dirname/configure ; then
6362 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6363 true
6364 else
6365 notsupp="$notsupp $dir"
6366 fi
6367 fi
6368 fi
6369done
6370
6371# Sometimes the tools are distributed with libiberty but with no other
6372# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6373# Don't let libgcc imply libiberty either.
9e07f89d 6374if test -n "${target_configdirs}" ; then
f86e35b8 6375 libgcc=
9e07f89d
NN
6376 others=
6377 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6378 if test "$i" = "libgcc"; then
6379 libgcc=target-libgcc
6380 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6381 if test -r $srcdir/$i/configure ; then
6382 others=yes;
6383 break;
6384 fi
6385 fi
6386 done
6387 if test -z "${others}" ; then
f86e35b8 6388 target_configdirs=$libgcc
9e07f89d
NN
6389 fi
6390fi
6391
6392# Quietly strip out all directories which aren't configurable in this tree.
6393# This relies on all configurable subdirectories being autoconfiscated, which
6394# is now the case.
6a9cf61e
PB
6395build_configdirs_all="$build_configdirs"
6396build_configdirs=
6397for i in ${build_configdirs_all} ; do
c6b750e1 6398 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6399 if test -f ${srcdir}/$j/configure ; then
6400 build_configdirs="${build_configdirs} $i"
6401 fi
6402done
6403
9e07f89d
NN
6404configdirs_all="$configdirs"
6405configdirs=
6406for i in ${configdirs_all} ; do
6407 if test -f ${srcdir}/$i/configure ; then
6408 configdirs="${configdirs} $i"
6409 fi
6410done
6a9cf61e 6411
9e07f89d
NN
6412target_configdirs_all="$target_configdirs"
6413target_configdirs=
6414for i in ${target_configdirs_all} ; do
c6b750e1 6415 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6416 if test -f ${srcdir}/$j/configure ; then
6417 target_configdirs="${target_configdirs} $i"
6418 fi
6419done
6420
6421# Produce a warning message for the subdirs we can't configure.
6422# This isn't especially interesting in the Cygnus tree, but in the individual
6423# FSF releases, it's important to let people know when their machine isn't
6424# supported by the one or two programs in a package.
6425
6426if test -n "${notsupp}" && test -z "${norecursion}" ; then
6427 # If $appdirs is non-empty, at least one of those directories must still
6428 # be configured, or we error out. (E.g., if the gas release supports a
6429 # specified target in some subdirs but not the gas subdir, we shouldn't
6430 # pretend that all is well.)
6431 if test -n "$appdirs" ; then
6432 for dir in $appdirs ; do
6433 if test -r $dir/Makefile.in ; then
6434 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6435 appdirs=""
6436 break
6437 fi
6a9cf61e 6438 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6439 appdirs=""
6440 break
6441 fi
6442 fi
6443 done
6444 if test -n "$appdirs" ; then
6445 echo "*** This configuration is not supported by this package." 1>&2
6446 exit 1
6447 fi
6448 fi
6449 # Okay, some application will build, or we don't care to check. Still
6450 # notify of subdirs not getting built.
6451 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6452 echo " ${notsupp}" 1>&2
6453 echo " (Any other directories should still work fine.)" 1>&2
6454fi
6455
6456case "$host" in
6457 *msdosdjgpp*)
6458 enable_gdbtk=no ;;
6459esac
6460
18f6b6ee
PB
6461# To find our prefix, in gcc_cv_tool_prefix.
6462
6463# The user is always right.
6464if test "${PATH_SEPARATOR+set}" != set; then
6465 echo "#! /bin/sh" >conf$$.sh
6466 echo "exit 0" >>conf$$.sh
6467 chmod +x conf$$.sh
6468 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6469 PATH_SEPARATOR=';'
6470 else
6471 PATH_SEPARATOR=:
6472 fi
6473 rm -f conf$$.sh
6474fi
6475
6476
6477
6478if test "x$exec_prefix" = xNONE; then
6479 if test "x$prefix" = xNONE; then
6480 gcc_cv_tool_prefix=$ac_default_prefix
6481 else
6482 gcc_cv_tool_prefix=$prefix
6483 fi
6484else
6485 gcc_cv_tool_prefix=$exec_prefix
6486fi
6487
6488# If there is no compiler in the tree, use the PATH only. In any
6489# case, if there is no compiler in the tree nobody should use
6490# AS_FOR_TARGET and LD_FOR_TARGET.
6491if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6492 gcc_version=`cat $srcdir/gcc/BASE-VER`
6493 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6494 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6495 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6496 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6497 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6498 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6499else
6500 gcc_cv_tool_dirs=
6501fi
6502
6503if test x$build = x$target && test -n "$md_exec_prefix"; then
6504 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6505fi
6506
6507
6508
9e07f89d
NN
6509copy_dirs=
6510
c6b750e1 6511
81ecdfbb
RW
6512# Check whether --with-build-sysroot was given.
6513if test "${with_build_sysroot+set}" = set; then :
6514 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6515 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6516 fi
6517else
6518 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6519fi
a19b6204
MM
6520
6521
8a6ee3ab 6522
81ecdfbb
RW
6523
6524# Check whether --with-debug-prefix-map was given.
6525if test "${with_debug_prefix_map+set}" = set; then :
6526 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6527 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6528 for debug_map in $withval; do
6529 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6530 done
6531 fi
6532else
6533 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6534fi
6535
8a6ee3ab
JM
6536
6537
7f6ef0c0
PB
6538# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6539# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6540# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6541# We want to ensure that TARGET libraries (which we know are built with
6542# gcc) are built with "-O2 -g", so include those options when setting
6543# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6544if test "x$CFLAGS_FOR_TARGET" = x; then
6545 CFLAGS_FOR_TARGET=$CFLAGS
6546 case " $CFLAGS " in
6547 *" -O2 "*) ;;
6548 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6549 esac
6550 case " $CFLAGS " in
6551 *" -g "* | *" -g3 "*) ;;
6552 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6553 esac
6554fi
6555
6556
6557if test "x$CXXFLAGS_FOR_TARGET" = x; then
6558 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6559 case " $CXXFLAGS " in
6560 *" -O2 "*) ;;
6561 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6562 esac
6563 case " $CXXFLAGS " in
6564 *" -g "* | *" -g3 "*) ;;
6565 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6566 esac
6567fi
6568
6569
9e07f89d
NN
6570# Handle --with-headers=XXX. If the value is not "yes", the contents of
6571# the named directory are copied to $(tooldir)/sys-include.
6572if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6573 if test x${is_cross_compiler} = xno ; then
6574 echo 1>&2 '***' --with-headers is only supported when cross compiling
6575 exit 1
6576 fi
6577 if test x"${with_headers}" != xyes ; then
18f6b6ee 6578 x=${gcc_cv_tool_prefix}
c6b750e1 6579 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6580 fi
6581fi
6582
6583# Handle --with-libs=XXX. If the value is not "yes", the contents of
6584# the name directories are copied to $(tooldir)/lib. Multiple directories
6585# are permitted.
6586if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6587 if test x${is_cross_compiler} = xno ; then
6588 echo 1>&2 '***' --with-libs is only supported when cross compiling
6589 exit 1
6590 fi
6591 if test x"${with_libs}" != xyes ; then
6592 # Copy the libraries in reverse order, so that files in the first named
6593 # library override files in subsequent libraries.
18f6b6ee 6594 x=${gcc_cv_tool_prefix}
9e07f89d 6595 for l in ${with_libs}; do
c6b750e1 6596 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6597 done
6598 fi
6599fi
6600
700d40ca 6601# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6602#
6603# This is done by determining whether or not the appropriate directory
6604# is available, and by checking whether or not specific configurations
6605# have requested that this magic not happen.
c6b750e1
DJ
6606#
6607# The command line options always override the explicit settings in
2429c060
PB
6608# configure.in, and the settings in configure.in override this magic.
6609#
c6b750e1 6610# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6611# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6612# --without-gnu-ld options for the configure script. Similarly, if
6613# the default is to use the included zlib and you don't want to do that,
6614# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6615
6616if test x${use_gnu_as} = x &&
6617 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6618 with_gnu_as=yes
6619 extra_host_args="$extra_host_args --with-gnu-as"
6620fi
6621
6622if test x${use_gnu_ld} = x &&
93f9b408 6623 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6624 with_gnu_ld=yes
6625 extra_host_args="$extra_host_args --with-gnu-ld"
6626fi
6627
700d40ca
ILT
6628if test x${use_included_zlib} = x &&
6629 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6630 :
6631else
6632 with_system_zlib=yes
6633 extra_host_args="$extra_host_args --with-system-zlib"
6634fi
6635
2429c060
PB
6636# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6637# can detect this case.
6638
6639if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6640 with_newlib=yes
6641 extra_host_args="$extra_host_args --with-newlib"
6642fi
6643
9e07f89d
NN
6644# Handle ${copy_dirs}
6645set fnord ${copy_dirs}
6646shift
6647while test $# != 0 ; do
6648 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6649 :
6650 else
6651 echo Copying $1 to $2
6652
6653 # Use the install script to create the directory and all required
6654 # parent directories.
6655 if test -d $2 ; then
6656 :
6657 else
6658 echo >config.temp
6659 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6660 fi
6661
6662 # Copy the directory, assuming we have tar.
6663 # FIXME: Should we use B in the second tar? Not all systems support it.
6664 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6665
6666 # It is the responsibility of the user to correctly adjust all
6667 # symlinks. If somebody can figure out how to handle them correctly
6668 # here, feel free to add the code.
6669
6670 echo $1 > $2/COPIED
6671 fi
6672 shift; shift
6673done
6674
2429c060
PB
6675# Determine a target-dependent exec_prefix that the installed
6676# gcc will search in. Keep this list sorted by triplet, with
6677# the *-*-osname triplets last.
6678md_exec_prefix=
6679case "${target}" in
6680 alpha*-*-*vms*)
6681 md_exec_prefix=/gnu/lib/gcc-lib
6682 ;;
521ec477 6683 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6684 md_exec_prefix=/dev/env/DJDIR/bin
6685 ;;
521ec477 6686 i[34567]86-*-sco3.2v5*)
2429c060
PB
6687 if test $with_gnu_as = yes; then
6688 md_exec_prefix=/usr/gnu/bin
6689 else
6690 md_exec_prefix=/usr/ccs/bin/elf
6691 fi
6692 ;;
6693
6694 mn10300-*-* | \
6695 powerpc-*-chorusos* | \
6696 powerpc*-*-eabi* | \
6697 powerpc*-*-sysv* | \
6698 powerpc*-*-kaos* | \
6699 s390x-ibm-tpf*)
6700 md_exec_prefix=/usr/ccs/bin
6701 ;;
6702 sparc64-*-elf*)
6703 ;;
6704 v850*-*-*)
6705 md_exec_prefix=/usr/ccs/bin
6706 ;;
8b66833e 6707 xtensa*-*-elf*)
2429c060
PB
6708 ;;
6709
6710 *-*-beos* | \
6711 *-*-elf* | \
6712 *-*-hpux* | \
6713 *-*-netware* | \
6714 *-*-nto-qnx* | \
6715 *-*-rtems* | \
6716 *-*-solaris2* | \
521ec477 6717 *-*-sysv[45]* | \
2429c060
PB
6718 *-*-vxworks* | \
6719 *-wrs-windiss)
6720 md_exec_prefix=/usr/ccs/bin
6721 ;;
6722esac
6723
a0da8069
NN
6724extra_arflags_for_target=
6725extra_nmflags_for_target=
6726extra_ranlibflags_for_target=
6727target_makefile_frag=/dev/null
6728case "${target}" in
77d7106f
AM
6729 spu-*-*)
6730 target_makefile_frag="config/mt-spu"
6731 ;;
429acdec
RS
6732 mips*-sde-elf*)
6733 target_makefile_frag="config/mt-sde"
6734 ;;
f3b1e08e
RS
6735 mipsisa*-*-elfoabi*)
6736 target_makefile_frag="config/mt-mips-elfoabi"
6737 ;;
e7c8859c
RS
6738 mips*-*-*linux* | mips*-*-gnu*)
6739 target_makefile_frag="config/mt-mips-gnu"
6740 ;;
29383458 6741 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6742 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6743 ;;
6744 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6745 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6746 # commands to handle both 32-bit and 64-bit objects. These flags are
6747 # harmless if we're using GNU nm or ar.
6748 extra_arflags_for_target=" -X32_64"
6749 extra_nmflags_for_target=" -B -X32_64"
6750 ;;
92f4e989
JM
6751 *-*-darwin[3-9]*)
6752 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6753 extra_ranlibflags_for_target=" -c"
6754 ;;
a0da8069
NN
6755esac
6756
6757alphaieee_frag=/dev/null
6758case $target in
6759 alpha*-*-*)
6760 # This just makes sure to use the -mieee option to build target libs.
6761 # This should probably be set individually by each library.
6762 alphaieee_frag="config/mt-alphaieee"
6763 ;;
6764esac
6765
6766# If --enable-target-optspace always use -Os instead of -O2 to build
6767# the target libraries, similarly if it is not specified, use -Os
6768# on selected platforms.
6769ospace_frag=/dev/null
6770case "${enable_target_optspace}:${target}" in
6771 yes:*)
6772 ospace_frag="config/mt-ospace"
6773 ;;
6774 :d30v-*)
6775 ospace_frag="config/mt-d30v"
6776 ;;
6777 :m32r-* | :d10v-* | :fr30-*)
6778 ospace_frag="config/mt-ospace"
6779 ;;
6780 no:* | :*)
6781 ;;
6782 *)
6783 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6784 ;;
6785esac
6786
a0da8069
NN
6787# Default to using --with-stabs for certain targets.
6788if test x${with_stabs} = x ; then
6789 case "${target}" in
e31d1ea3 6790 mips*-*-irix[56]*)
a0da8069
NN
6791 ;;
6792 mips*-*-* | alpha*-*-osf*)
6793 with_stabs=yes;
6794 extra_host_args="${extra_host_args} --with-stabs"
6795 ;;
6796 esac
6797fi
6798
6799# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6800# them automatically.
6801case "${host}" in
c6b750e1 6802 hppa*64*-*-hpux11*)
a0da8069
NN
6803 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6804 ;;
6805esac
6806
a0da8069
NN
6807# Some systems (e.g., one of the i386-aix systems the gas testers are
6808# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6809tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6810build_tooldir=${tooldir}
6811
a0da8069
NN
6812# Create a .gdbinit file which runs the one in srcdir
6813# and tells GDB to look there for source files.
6814
6815if test -r ${srcdir}/.gdbinit ; then
6816 case ${srcdir} in
6817 .) ;;
6818 *) cat > ./.gdbinit <<EOF
6819# ${NO_EDIT}
6820dir ${srcdir}
6821dir .
6822source ${srcdir}/.gdbinit
6823EOF
6824 ;;
6825 esac
6826fi
6827
a0da8069
NN
6828# Make sure that the compiler is able to generate an executable. If it
6829# can't, we are probably in trouble. We don't care whether we can run the
6830# executable--we might be using a cross compiler--we only care whether it
6831# can be created. At this point the main configure script has set CC.
6832we_are_ok=no
6833echo "int main () { return 0; }" > conftest.c
6834${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6835if test $? = 0 ; then
6836 if test -s conftest || test -s conftest.exe ; then
6837 we_are_ok=yes
6838 fi
c6b750e1 6839fi
a0da8069
NN
6840case $we_are_ok in
6841 no)
6842 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6843 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6844 rm -f conftest*
6845 exit 1
6846 ;;
6847esac
6848rm -f conftest*
6849
6850# The Solaris /usr/ucb/cc compiler does not appear to work.
6851case "${host}" in
6852 sparc-sun-solaris2*)
6853 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6854 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6855 could_use=
6856 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6857 if test -d /opt/cygnus/bin ; then
6858 if test "$could_use" = "" ; then
6859 could_use="/opt/cygnus/bin"
6860 else
6861 could_use="$could_use or /opt/cygnus/bin"
6862 fi
6863 fi
6864 if test "$could_use" = "" ; then
6865 echo "Warning: compilation may fail because you're using"
6866 echo "/usr/ucb/cc. You should change your PATH or CC "
6867 echo "variable and rerun configure."
6868 else
6869 echo "Warning: compilation may fail because you're using"
6870 echo "/usr/ucb/cc, when you should use the C compiler from"
6871 echo "$could_use. You should change your"
6872 echo "PATH or CC variable and rerun configure."
6873 fi
6874 fi
6875 ;;
6876esac
6877
3bbd2f8f 6878# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6879case "${host}" in
6880 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6881 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6882 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6883 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6884esac
6885
3bbd2f8f 6886# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6887# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6888# built executables to PATH.
3bbd2f8f
AL
6889if test "$RPATH_ENVVAR" = PATH; then
6890 GCC_SHLIB_SUBDIR=/shlib
6891else
6892 GCC_SHLIB_SUBDIR=
6893fi
6894
a0da8069
NN
6895# Record target_configdirs and the configure arguments for target and
6896# build configuration in Makefile.
6897target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6898build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6899
2aa2364a
JR
6900# If we are building libgomp, bootstrap it.
6901if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6902 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6903fi
6904
a0da8069
NN
6905# Determine whether gdb needs tk/tcl or not.
6906# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6907# and in that case we want gdb to be built without tk. Ugh!
6908# In fact I believe gdb is the *only* package directly dependent on tk,
6909# so we should be able to put the 'maybe's in unconditionally and
6910# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6911# 100% sure that that's safe though.
c180f501 6912
675c6968 6913gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6914case "$enable_gdbtk" in
6915 no)
6916 GDB_TK="" ;;
c180f501
AC
6917 yes)
6918 GDB_TK="${gdb_tk}" ;;
a0da8069 6919 *)
c180f501
AC
6920 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6921 # distro. Eventually someone will fix this and move Insight, nee
6922 # gdbtk to a separate directory.
6923 if test -d ${srcdir}/gdb/gdbtk ; then
6924 GDB_TK="${gdb_tk}"
6925 else
6926 GDB_TK=""
6927 fi
6928 ;;
a0da8069 6929esac
907be67c
DJ
6930CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6931INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6932
6bd3dfaa 6933# Strip out unwanted targets.
dd12c3a8
NN
6934
6935# While at that, we remove Makefiles if we were started for recursive
6936# configuration, so that the top-level Makefile reconfigures them,
6937# like we used to do when configure itself was recursive.
dd12c3a8 6938
06a51eac
RW
6939# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6940# but now we're fixing up the Makefile ourselves with the additional
6941# commands passed to AC_CONFIG_FILES. Use separate variables
6942# extrasub-{build,host,target} not because there is any reason to split
6943# the substitutions up that way, but only to remain below the limit of
6944# 99 commands in a script, for HP-UX sed.
6945# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6946
81ecdfbb
RW
6947# Check whether --enable-bootstrap was given.
6948if test "${enable_bootstrap+set}" = set; then :
6949 enableval=$enable_bootstrap;
319cab08 6950else
9cb3fa6f 6951 enable_bootstrap=default
81ecdfbb
RW
6952fi
6953
319cab08 6954
9cb3fa6f
PB
6955# Issue errors and warnings for invalid/strange bootstrap combinations.
6956case "$configdirs" in
6957 *gcc*) have_compiler=yes ;;
6958 *) have_compiler=no ;;
6959esac
6960
6961case "$have_compiler:$host:$target:$enable_bootstrap" in
6962 *:*:*:no) ;;
6963
0aed8855 6964 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
6965 # and we are in a native configuration.
6966 yes:$build:$build:default)
0aed8855 6967 enable_bootstrap=yes ;;
9cb3fa6f
PB
6968
6969 *:*:*:default)
6970 enable_bootstrap=no ;;
6971
6972 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 6973 yes:$build:$build:yes)
9cb3fa6f
PB
6974 ;;
6975
6976 # Other configurations, but we have a compiler. Assume the user knows
6977 # what he's doing.
80911fe1 6978 yes:*:*:yes)
81ecdfbb
RW
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6980$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
6981 ;;
6982
6983 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 6984 no:*:*:yes)
81ecdfbb 6985 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
6986
6987 # Fail if wrong command line
6988 *)
81ecdfbb 6989 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
6990 ;;
6991esac
6992
4385ad3c
RW
6993case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6994 *,c++,*:yes:yes) ;;
6995 *:yes:yes)
6996 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6997 ;;
6998esac
6999
16b1ad29
RW
7000case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7001 yes:yes:*\ gold\ *:*,c++,*) ;;
7002 yes:yes:*\ gold\ *:*)
7003 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7004 ;;
7005esac
7006
9cb3fa6f 7007# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7008case $enable_bootstrap in
319cab08 7009 yes)
96655cc4
AO
7010 bootstrap_suffix=bootstrap
7011 BUILD_CONFIG=bootstrap-debug
7012 ;;
319cab08 7013 no)
96655cc4
AO
7014 bootstrap_suffix=no-bootstrap
7015 BUILD_CONFIG=
7016 ;;
319cab08
PB
7017esac
7018
96655cc4
AO
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7020$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7021
7022
7023# Check whether --with-build-config was given.
7024if test "${with_build_config+set}" = set; then :
7025 withval=$with_build_config; case $with_build_config in
7026 yes) with_build_config= ;;
7027 no) with_build_config= BUILD_CONFIG= ;;
7028 esac
7029fi
7030
7031
7032if test "x${with_build_config}" != x; then
7033 BUILD_CONFIG=$with_build_config
7034else
7035 case $BUILD_CONFIG in
7036 bootstrap-debug)
7037 if echo "int f (void) { return 0; }" > conftest.c &&
7038 ${CC} -c conftest.c &&
7039 mv conftest.o conftest.o.g0 &&
7040 ${CC} -c -g conftest.c &&
7041 mv conftest.o conftest.o.g &&
a009f2e7 7042 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7043 :
7044 else
7045 BUILD_CONFIG=
7046 fi
7047 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7048 ;;
7049 esac
7050fi
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7052$as_echo "$BUILD_CONFIG" >&6; }
7053
7054
06a51eac 7055extrasub_build=
6a9cf61e 7056for module in ${build_configdirs} ; do
498d4a71
CF
7057 if test -z "${no_recursion}" \
7058 && test -f ${build_subdir}/${module}/Makefile; then
7059 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7060 rm -f ${build_subdir}/${module}/Makefile
7061 fi
06a51eac 7062 extrasub_build="$extrasub_build
498d4a71
CF
7063/^@if build-$module\$/d
7064/^@endif build-$module\$/d
7065/^@if build-$module-$bootstrap_suffix\$/d
7066/^@endif build-$module-$bootstrap_suffix\$/d"
7067done
06a51eac 7068extrasub_host=
498d4a71 7069for module in ${configdirs} ; do
80911fe1 7070 if test -z "${no_recursion}"; then
8cf39b1b 7071 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7072 if test -f ${file}; then
7073 echo 1>&2 "*** removing ${file} to force reconfigure"
7074 rm -f ${file}
7075 fi
7076 done
498d4a71 7077 fi
06a51eac 7078 extrasub_host="$extrasub_host
498d4a71
CF
7079/^@if $module\$/d
7080/^@endif $module\$/d
7081/^@if $module-$bootstrap_suffix\$/d
7082/^@endif $module-$bootstrap_suffix\$/d"
7083done
06a51eac 7084extrasub_target=
498d4a71
CF
7085for module in ${target_configdirs} ; do
7086 if test -z "${no_recursion}" \
7087 && test -f ${target_subdir}/${module}/Makefile; then
7088 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7089 rm -f ${target_subdir}/${module}/Makefile
7090 fi
e8a5fa9c
RW
7091
7092 # We only bootstrap target libraries listed in bootstrap_target_libs.
7093 case $bootstrap_target_libs in
7094 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7095 *) target_bootstrap_suffix=no-bootstrap ;;
7096 esac
7097
06a51eac 7098 extrasub_target="$extrasub_target
498d4a71
CF
7099/^@if target-$module\$/d
7100/^@endif target-$module\$/d
e8a5fa9c
RW
7101/^@if target-$module-$target_bootstrap_suffix\$/d
7102/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7103done
7104
06a51eac
RW
7105# Do the final fixup along with target modules.
7106extrasub_target="$extrasub_target
6bd3dfaa 7107/^@if /,/^@endif /d"
a0da8069
NN
7108
7109# Create the serialization dependencies. This uses a temporary file.
7110
81ecdfbb
RW
7111# Check whether --enable-serial-configure was given.
7112if test "${enable_serial_configure+set}" = set; then :
7113 enableval=$enable_serial_configure;
7114fi
e6bfb94a
AO
7115
7116
1047cb91
DD
7117case ${enable_serial_configure} in
7118 yes)
7119 enable_serial_build_configure=yes
7120 enable_serial_host_configure=yes
7121 enable_serial_target_configure=yes
7122 ;;
7123esac
7124
a0da8069
NN
7125# These force 'configure's to be done one at a time, to avoid problems
7126# with contention over a shared config.cache.
7127rm -f serdep.tmp
e6bfb94a 7128echo '# serdep.tmp' > serdep.tmp
a0da8069 7129olditem=
1047cb91 7130test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7131for item in ${build_configdirs} ; do
7132 case ${olditem} in
7133 "") ;;
e6bfb94a 7134 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7135 esac
7136 olditem=${item}
7137done
7138olditem=
1047cb91 7139test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7140for item in ${configdirs} ; do
7141 case ${olditem} in
7142 "") ;;
e6bfb94a 7143 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7144 esac
7145 olditem=${item}
7146done
7147olditem=
1047cb91 7148test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7149for item in ${target_configdirs} ; do
7150 case ${olditem} in
7151 "") ;;
e6bfb94a 7152 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7153 esac
7154 olditem=${item}
7155done
7156serialization_dependencies=serdep.tmp
7157
7158
e6bfb94a 7159# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7160# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7161# might not want to pass down to subconfigures. The exception being
7162# --cache-file=/dev/null, which is used to turn off the use of cache
7163# files altogether, and which should be passed on to subconfigures.
7164# Also strip program-prefix, program-suffix, and program-transform-name,
7165# so that we can pass down a consistent program-transform-name.
c6b750e1 7166baseargs=
65b4571a 7167tbaseargs=
c6b750e1
DJ
7168keep_next=no
7169skip_next=no
7170eval "set -- $ac_configure_args"
18f6b6ee
PB
7171for ac_arg
7172do
c6b750e1
DJ
7173 if test X"$skip_next" = X"yes"; then
7174 skip_next=no
7175 continue
7176 fi
7177 if test X"$keep_next" = X"yes"; then
7178 case $ac_arg in
7179 *\'*)
7180 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7181 esac
7182 baseargs="$baseargs '$ac_arg'"
65b4571a 7183 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7184 keep_next=no
7185 continue
7186 fi
7187
7188 # Handle separated arguments. Based on the logic generated by
7189 # autoconf 2.59.
7190 case $ac_arg in
7191 *=* | --config-cache | -C | -disable-* | --disable-* \
7192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7194 | -with-* | --with-* | -without-* | --without-* | --x)
7195 separate_arg=no
7196 ;;
7197 -*)
7198 separate_arg=yes
7199 ;;
7200 *)
7201 separate_arg=no
7202 ;;
7203 esac
7204
65b4571a
AO
7205 skip_targ=no
7206 case $ac_arg in
7207
7208 --with-* | --without-*)
7209 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7210
7211 case $libopt in
7212 *[-_]include)
7213 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7214 ;;
7215 *[-_]lib)
7216 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7217 ;;
7218 *)
7219 lib=$libopt
7220 ;;
7221 esac
7222
7223
7224 case $lib in
7225 mpc | mpfr | gmp | ppl | cloog)
7226 # If we're processing --with-$lib, --with-$lib-include or
7227 # --with-$lib-lib, for one of the libs above, and target is
7228 # different from host, don't pass the current argument to any
7229 # target library's configure.
7230 if test x$is_cross_compiler = xyes; then
7231 skip_targ=yes
7232 fi
7233 ;;
7234 esac
7235 ;;
7236 esac
7237
c6b750e1 7238 case "$ac_arg" in
30167e0a
NC
7239 --cache-file=/dev/null | \
7240 -cache-file=/dev/null )
7241 # Handled here to avoid the test to skip args below.
7242 baseargs="$baseargs '$ac_arg'"
65b4571a 7243 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7244 # Assert: $separate_arg should always be no.
7245 keep_next=$separate_arg
7246 ;;
c6b750e1
DJ
7247 --no*)
7248 continue
7249 ;;
7250 --c* | \
7251 --sr* | \
7252 --ho* | \
7253 --bu* | \
7254 --t* | \
7255 --program-* | \
7256 -cache_file* | \
7257 -srcdir* | \
7258 -host* | \
7259 -build* | \
7260 -target* | \
7261 -program-prefix* | \
7262 -program-suffix* | \
7263 -program-transform-name* )
7264 skip_next=$separate_arg
7265 continue
7266 ;;
7267 -*)
7268 # An option. Add it.
7269 case $ac_arg in
7270 *\'*)
7271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7272 esac
7273 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7274 if test X"$skip_targ" = Xno; then
7275 tbaseargs="$tbaseargs '$ac_arg'"
7276 fi
c6b750e1
DJ
7277 keep_next=$separate_arg
7278 ;;
7279 *)
7280 # Either a variable assignment, or a nonopt (triplet). Don't
7281 # pass it down; let the Makefile handle this.
7282 continue
7283 ;;
7284 esac
7285done
7286# Remove the initial space we just introduced and, as these will be
7287# expanded by make, quote '$'.
7288baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7289
f27d4f92
DJ
7290# Add in --program-transform-name, after --program-prefix and
7291# --program-suffix have been applied to it. Autoconf has already
7292# doubled dollar signs and backslashes in program_transform_name; we want
7293# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7294# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7295# Also, because we want to override the logic in subdir configure scripts to
7296# choose program_transform_name, replace any s,x,x, with s,y,y,.
7297sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7298${program_transform_name}
7299EOF_SED
7300gcc_transform_name=`cat conftestsed.out`
7301rm -f conftestsed.out
7302baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7303tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7304if test "$silent" = yes; then
7305 baseargs="$baseargs --silent"
65b4571a 7306 tbaseargs="$tbaseargs --silent"
2444379b 7307fi
34a0f3cf 7308baseargs="$baseargs --disable-option-checking"
65b4571a 7309tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7310
4074d5f2
RW
7311# Record and document user additions to sub configure arguments.
7312
7313
7314
7315
a0da8069
NN
7316# For the build-side libraries, we just need to pretend we're native,
7317# and not use the same cache file. Multilibs are neither needed nor
7318# desired.
4074d5f2 7319build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7320
7321# For host modules, accept cache file option, or specification as blank.
7322case "${cache_file}" in
7323"") # empty
7324 cache_file_option="" ;;
7325/* | [A-Za-z]:[\\/]* ) # absolute path
7326 cache_file_option="--cache-file=${cache_file}" ;;
7327*) # relative path
7328 cache_file_option="--cache-file=../${cache_file}" ;;
7329esac
7330
82252c06
NN
7331# Host dirs don't like to share a cache file either, horribly enough.
7332# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7333host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7334
65b4571a 7335target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7336
7337# Passing a --with-cross-host argument lets the target libraries know
7338# whether they are being built with a cross-compiler or being built
7339# native. However, it would be better to use other mechanisms to make the
7340# sorts of decisions they want to make on this basis. Please consider
7341# this option to be deprecated. FIXME.
7342if test x${is_cross_compiler} = xyes ; then
c6b750e1 7343 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7344fi
7345
938d2b74
RW
7346# Default to --enable-multilib.
7347if test x${enable_multilib} = x ; then
a0da8069 7348 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7349fi
a0da8069
NN
7350
7351# Pass --with-newlib if appropriate. Note that target_configdirs has
7352# changed from the earlier setting of with_newlib.
7353if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7354 target_configargs="--with-newlib ${target_configargs}"
7355fi
7356
95036d20
NN
7357# Different target subdirs use different values of certain variables
7358# (notably CXX). Worse, multilibs use *lots* of different values.
7359# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7360# it doesn't automatically accept command-line overrides of them.
7361# This means it's not safe for target subdirs to share a cache file,
7362# which is disgusting, but there you have it. Hopefully this can be
7363# fixed in future. It's still worthwhile to use a cache file for each
7364# directory. I think.
7365
ae380b45
MS
7366# Pass the appropriate --build, --host, --target and --cache-file arguments.
7367# We need to pass --target, as newer autoconf's requires consistency
7368# for target_alias and gcc doesn't manage it consistently.
4b900473 7369target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7370
a0da8069
NN
7371FLAGS_FOR_TARGET=
7372case " $target_configdirs " in
7373 *" newlib "*)
7374 case " $target_configargs " in
7375 *" --with-newlib "*)
7376 case "$target" in
1f53ca9a
AO
7377 *-cygwin*)
7378 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'
7379 ;;
a0da8069
NN
7380 esac
7381
7382 # If we're not building GCC, don't discard standard headers.
7383 if test -d ${srcdir}/gcc; then
7384 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7385
7386 if test "${build}" != "${host}"; then
7387 # On Canadian crosses, CC_FOR_TARGET will have already been set
7388 # by `configure', so we won't have an opportunity to add -Bgcc/
7389 # to it. This is right: we don't want to search that directory
7390 # for binaries, but we want the header files in there, so add
7391 # them explicitly.
e552509b 7392 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7393
7394 # Someone might think of using the pre-installed headers on
7395 # Canadian crosses, in case the installed compiler is not fully
7396 # compatible with the compiler being built. In this case, it
7397 # would be better to flag an error than risking having
7398 # incompatible object files being constructed. We can't
7399 # guarantee that an error will be flagged, but let's hope the
7400 # compiler will do it, when presented with incompatible header
7401 # files.
7402 fi
7403 fi
7404
7405 case "${target}-${is_cross_compiler}" in
ec11bdc6 7406 i[3456789]86-*-linux*-no)
a0da8069
NN
7407 # Here host == target, so we don't need to build gcc,
7408 # so we don't want to discard standard headers.
7409 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7410 ;;
7411 *)
7412 # If we're building newlib, use its generic headers last, but search
7413 # for any libc-related directories first (so make it the last -B
7414 # switch).
7415 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
7416
7417 # If we're building libgloss, find the startup file, simulator library
7418 # and linker script.
7419 case " $target_configdirs " in
7420 *" libgloss "*)
7421 # Look for startup file, simulator library and maybe linker script.
7422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7423 # Look for libnosys.a in case the target needs it.
7424 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7425 # Most targets have the linker script in the source directory.
7426 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7427 ;;
7428 esac
a0da8069
NN
7429 ;;
7430 esac
7431 ;;
7432 esac
7433 ;;
7434esac
1f53ca9a 7435
45055374 7436case "$target" in
1f53ca9a
AO
7437 x86_64-*mingw* | *-w64-mingw*)
7438 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7439 # however, use a symlink named 'mingw' in ${prefix} .
7440 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7441 ;;
7442 *-mingw*)
7443 # MinGW can't be handled as Cygwin above since it does not use newlib.
7444 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'
7445 ;;
45055374 7446esac
a0da8069 7447
5fbad20a
DD
7448# Allow the user to override the flags for
7449# our build compiler if desired.
c66487f8
NC
7450if test x"${build}" = x"${host}" ; then
7451 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7452 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7453 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7454fi
5fbad20a 7455
a0da8069
NN
7456# On Canadian crosses, we'll be searching the right directories for
7457# the previously-installed cross compiler, so don't bother to add
7458# flags for directories within the install tree of the compiler
7459# being built; programs in there won't even run.
7460if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7461 # Search for pre-installed headers if nothing else fits.
bba45b8b 7462 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
7463fi
7464
7465if test "x${use_gnu_ld}" = x &&
7466 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7467 # Arrange for us to find uninstalled linker scripts.
b00612cc 7468 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7469fi
7470
a481dbb7
DD
7471# Search for other target-specific linker scripts and such.
7472case "${target}" in
4e206d7e
DB
7473 mep*)
7474 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7475 ;;
7476esac
7477
a0da8069 7478# Makefile fragments.
3e707e94
PB
7479for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7480do
7481 eval fragval=\$$frag
7482 if test $fragval != /dev/null; then
7483 eval $frag=${srcdir}/$fragval
7484 fi
7485done
a0da8069
NN
7486
7487
7488
7489
7490
7491# Miscellanea: directories, flags, etc.
7492
7493
7494
7495
7496
7497
7498
3bbd2f8f 7499
6a9cf61e 7500# Build module lists & subconfigure args.
a0da8069
NN
7501
7502
7503
be01d343
PB
7504# Host module lists & subconfigure args.
7505
7506
7507
911e63d0 7508
be01d343
PB
7509# Target module lists & subconfigure args.
7510
7511
7512
7513# Build tools.
7514
7515
7516
1576798e
PB
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
e552509b 7531
be01d343
PB
7532# Generate default definitions for YACC, M4, LEX and other programs that run
7533# on the build machine. These are used if the Makefile can't locate these
7534# programs in objdir.
7535MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7536
7537for ac_prog in 'bison -y' byacc yacc
7538do
c6b750e1 7539 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7540set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542$as_echo_n "checking for $ac_word... " >&6; }
7543if test "${ac_cv_prog_YACC+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
be01d343
PB
7545else
7546 if test -n "$YACC"; then
7547 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7548else
c6b750e1
DJ
7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550for as_dir in $PATH
7551do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7556 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7558 break 2
7559 fi
7560done
81ecdfbb
RW
7561 done
7562IFS=$as_save_IFS
c6b750e1 7563
be01d343
PB
7564fi
7565fi
c6b750e1 7566YACC=$ac_cv_prog_YACC
be01d343 7567if test -n "$YACC"; then
81ecdfbb
RW
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7569$as_echo "$YACC" >&6; }
be01d343 7570else
81ecdfbb
RW
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
be01d343
PB
7573fi
7574
81ecdfbb 7575
c6b750e1 7576 test -n "$YACC" && break
be01d343
PB
7577done
7578test -n "$YACC" || YACC="$MISSING bison -y"
7579
7580case " $build_configdirs " in
7581 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7582 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7583esac
7584
7585for ac_prog in bison
7586do
c6b750e1 7587 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7588set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590$as_echo_n "checking for $ac_word... " >&6; }
7591if test "${ac_cv_prog_BISON+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
be01d343
PB
7593else
7594 if test -n "$BISON"; then
7595 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7596else
c6b750e1
DJ
7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7604 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7606 break 2
7607 fi
7608done
81ecdfbb
RW
7609 done
7610IFS=$as_save_IFS
c6b750e1 7611
be01d343
PB
7612fi
7613fi
c6b750e1 7614BISON=$ac_cv_prog_BISON
be01d343 7615if test -n "$BISON"; then
81ecdfbb
RW
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7617$as_echo "$BISON" >&6; }
be01d343 7618else
81ecdfbb
RW
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620$as_echo "no" >&6; }
be01d343
PB
7621fi
7622
81ecdfbb 7623
c6b750e1 7624 test -n "$BISON" && break
be01d343
PB
7625done
7626test -n "$BISON" || BISON="$MISSING bison"
7627
7628case " $build_configdirs " in
7629 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7630esac
7631
7632for ac_prog in gm4 gnum4 m4
7633do
c6b750e1 7634 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7635set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637$as_echo_n "checking for $ac_word... " >&6; }
7638if test "${ac_cv_prog_M4+set}" = set; then :
7639 $as_echo_n "(cached) " >&6
be01d343
PB
7640else
7641 if test -n "$M4"; then
7642 ac_cv_prog_M4="$M4" # Let the user override the test.
7643else
c6b750e1
DJ
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7651 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7653 break 2
7654 fi
7655done
81ecdfbb
RW
7656 done
7657IFS=$as_save_IFS
c6b750e1 7658
be01d343
PB
7659fi
7660fi
c6b750e1 7661M4=$ac_cv_prog_M4
be01d343 7662if test -n "$M4"; then
81ecdfbb
RW
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7664$as_echo "$M4" >&6; }
be01d343 7665else
81ecdfbb
RW
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667$as_echo "no" >&6; }
be01d343
PB
7668fi
7669
81ecdfbb 7670
c6b750e1 7671 test -n "$M4" && break
be01d343
PB
7672done
7673test -n "$M4" || M4="$MISSING m4"
7674
7675case " $build_configdirs " in
7676 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7677esac
7678
7679for ac_prog in flex lex
7680do
c6b750e1 7681 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7682set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7684$as_echo_n "checking for $ac_word... " >&6; }
7685if test "${ac_cv_prog_LEX+set}" = set; then :
7686 $as_echo_n "(cached) " >&6
be01d343
PB
7687else
7688 if test -n "$LEX"; then
7689 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7690else
c6b750e1
DJ
7691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692for as_dir in $PATH
7693do
7694 IFS=$as_save_IFS
7695 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7696 for ac_exec_ext in '' $ac_executable_extensions; do
7697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7698 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7700 break 2
7701 fi
7702done
81ecdfbb
RW
7703 done
7704IFS=$as_save_IFS
c6b750e1 7705
be01d343
PB
7706fi
7707fi
c6b750e1 7708LEX=$ac_cv_prog_LEX
be01d343 7709if test -n "$LEX"; then
81ecdfbb
RW
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7711$as_echo "$LEX" >&6; }
be01d343 7712else
81ecdfbb
RW
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714$as_echo "no" >&6; }
be01d343
PB
7715fi
7716
81ecdfbb 7717
c6b750e1 7718 test -n "$LEX" && break
be01d343
PB
7719done
7720test -n "$LEX" || LEX="$MISSING flex"
7721
7722case " $build_configdirs " in
7723 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7724 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7725esac
7726
7727for ac_prog in flex
7728do
c6b750e1 7729 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7730set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732$as_echo_n "checking for $ac_word... " >&6; }
7733if test "${ac_cv_prog_FLEX+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
be01d343
PB
7735else
7736 if test -n "$FLEX"; then
7737 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7738else
c6b750e1
DJ
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7746 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7748 break 2
7749 fi
7750done
81ecdfbb
RW
7751 done
7752IFS=$as_save_IFS
c6b750e1 7753
be01d343
PB
7754fi
7755fi
c6b750e1 7756FLEX=$ac_cv_prog_FLEX
be01d343 7757if test -n "$FLEX"; then
81ecdfbb
RW
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7759$as_echo "$FLEX" >&6; }
be01d343 7760else
81ecdfbb
RW
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
be01d343
PB
7763fi
7764
81ecdfbb 7765
c6b750e1 7766 test -n "$FLEX" && break
be01d343
PB
7767done
7768test -n "$FLEX" || FLEX="$MISSING flex"
7769
7770case " $build_configdirs " in
7771 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7772esac
7773
7774for ac_prog in makeinfo
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_MAKEINFO+set}" = set; then :
7781 $as_echo_n "(cached) " >&6
be01d343
PB
7782else
7783 if test -n "$MAKEINFO"; then
7784 ac_cv_prog_MAKEINFO="$MAKEINFO" # 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_MAKEINFO="$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 7803MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7804if test -n "$MAKEINFO"; then
81ecdfbb
RW
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7806$as_echo "$MAKEINFO" >&6; }
be01d343 7807else
81ecdfbb
RW
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809$as_echo "no" >&6; }
be01d343
PB
7810fi
7811
81ecdfbb 7812
c6b750e1 7813 test -n "$MAKEINFO" && break
be01d343
PB
7814done
7815test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7816
7817case " $build_configdirs " in
7818 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7819 *)
7820
10ad8ef3 7821 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7822 # higher, else we use the "missing" dummy.
7823 if ${MAKEINFO} --version \
10ad8ef3 7824 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7825 :
7826 else
7827 MAKEINFO="$MISSING makeinfo"
7828 fi
7829 ;;
7830
7831esac
a0da8069 7832
be01d343 7833# FIXME: expect and dejagnu may become build tools?
a0da8069 7834
be01d343
PB
7835for ac_prog in expect
7836do
c6b750e1 7837 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7838set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840$as_echo_n "checking for $ac_word... " >&6; }
7841if test "${ac_cv_prog_EXPECT+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
be01d343
PB
7843else
7844 if test -n "$EXPECT"; then
7845 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7846else
c6b750e1
DJ
7847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848for as_dir in $PATH
7849do
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7854 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7856 break 2
7857 fi
7858done
81ecdfbb
RW
7859 done
7860IFS=$as_save_IFS
c6b750e1 7861
be01d343
PB
7862fi
7863fi
c6b750e1 7864EXPECT=$ac_cv_prog_EXPECT
be01d343 7865if test -n "$EXPECT"; then
81ecdfbb
RW
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7867$as_echo "$EXPECT" >&6; }
be01d343 7868else
81ecdfbb
RW
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870$as_echo "no" >&6; }
be01d343 7871fi
a0da8069 7872
81ecdfbb 7873
c6b750e1 7874 test -n "$EXPECT" && break
be01d343
PB
7875done
7876test -n "$EXPECT" || EXPECT="expect"
a0da8069 7877
be01d343
PB
7878case " $configdirs " in
7879 *" expect "*)
7880 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7881 ;;
7882esac
a0da8069 7883
be01d343
PB
7884for ac_prog in runtest
7885do
c6b750e1 7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7887set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889$as_echo_n "checking for $ac_word... " >&6; }
7890if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
be01d343
PB
7892else
7893 if test -n "$RUNTEST"; then
7894 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7895else
c6b750e1
DJ
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7903 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7905 break 2
7906 fi
7907done
81ecdfbb
RW
7908 done
7909IFS=$as_save_IFS
c6b750e1 7910
be01d343
PB
7911fi
7912fi
c6b750e1 7913RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7914if test -n "$RUNTEST"; then
81ecdfbb
RW
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7916$as_echo "$RUNTEST" >&6; }
be01d343 7917else
81ecdfbb
RW
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919$as_echo "no" >&6; }
be01d343 7920fi
a0da8069 7921
81ecdfbb 7922
c6b750e1 7923 test -n "$RUNTEST" && break
be01d343
PB
7924done
7925test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7926
be01d343
PB
7927case " $configdirs " in
7928 *" dejagnu "*)
6b89cc21 7929 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7930 ;;
7931esac
a0da8069
NN
7932
7933
a0da8069 7934# Host tools.
859789af
AC
7935ncn_tool_prefix=
7936test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7937ncn_target_tool_prefix=
7938test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7939
9a819804
AO
7940
7941
7942if test -n "$AR"; then
7943 ac_cv_prog_AR=$AR
7944elif test -n "$ac_cv_prog_AR"; then
7945 AR=$ac_cv_prog_AR
7946fi
7947
7948if test -n "$ac_cv_prog_AR"; then
7949 for ncn_progname in ar; do
7950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7951set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953$as_echo_n "checking for $ac_word... " >&6; }
7954if test "${ac_cv_prog_AR+set}" = set; then :
7955 $as_echo_n "(cached) " >&6
9a819804
AO
7956else
7957 if test -n "$AR"; then
7958 ac_cv_prog_AR="$AR" # Let the user override the test.
7959else
7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7967 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7969 break 2
7970 fi
7971done
81ecdfbb
RW
7972 done
7973IFS=$as_save_IFS
9a819804
AO
7974
7975fi
7976fi
7977AR=$ac_cv_prog_AR
7978if test -n "$AR"; then
81ecdfbb
RW
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7980$as_echo "$AR" >&6; }
9a819804 7981else
81ecdfbb
RW
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
9a819804
AO
7984fi
7985
81ecdfbb 7986
9a819804
AO
7987 done
7988fi
7989
7990for ncn_progname in ar; do
05cbd757
PB
7991 if test -n "$ncn_tool_prefix"; then
7992 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7993set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995$as_echo_n "checking for $ac_word... " >&6; }
7996if test "${ac_cv_prog_AR+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
859789af
AC
7998else
7999 if test -n "$AR"; then
8000 ac_cv_prog_AR="$AR" # Let the user override the test.
8001else
c6b750e1
DJ
8002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8009 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8011 break 2
8012 fi
8013done
81ecdfbb
RW
8014 done
8015IFS=$as_save_IFS
c6b750e1 8016
859789af
AC
8017fi
8018fi
c6b750e1 8019AR=$ac_cv_prog_AR
859789af 8020if test -n "$AR"; then
81ecdfbb
RW
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8022$as_echo "$AR" >&6; }
859789af 8023else
81ecdfbb
RW
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025$as_echo "no" >&6; }
859789af
AC
8026fi
8027
81ecdfbb 8028
05cbd757
PB
8029 fi
8030 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8032set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034$as_echo_n "checking for $ac_word... " >&6; }
8035if test "${ac_cv_prog_AR+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
859789af 8037else
05cbd757
PB
8038 if test -n "$AR"; then
8039 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8040else
c6b750e1
DJ
8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8048 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8050 break 2
8051 fi
8052done
81ecdfbb
RW
8053 done
8054IFS=$as_save_IFS
c6b750e1 8055
859789af
AC
8056fi
8057fi
c6b750e1 8058AR=$ac_cv_prog_AR
05cbd757 8059if test -n "$AR"; then
81ecdfbb
RW
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8061$as_echo "$AR" >&6; }
859789af 8062else
81ecdfbb
RW
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064$as_echo "no" >&6; }
859789af 8065fi
c6b750e1 8066
81ecdfbb 8067
05cbd757
PB
8068 fi
8069 test -n "$ac_cv_prog_AR" && break
8070done
8071
8072if test -z "$ac_cv_prog_AR" ; then
8073 set dummy ar
8074 if test $build = $host ; then
8075 AR="$2"
859789af 8076 else
05cbd757 8077 AR="${ncn_tool_prefix}$2"
859789af 8078 fi
859789af
AC
8079fi
8080
9a819804
AO
8081
8082
8083if test -n "$AS"; then
8084 ac_cv_prog_AS=$AS
8085elif test -n "$ac_cv_prog_AS"; then
8086 AS=$ac_cv_prog_AS
8087fi
8088
8089if test -n "$ac_cv_prog_AS"; then
8090 for ncn_progname in as; do
8091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8092set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094$as_echo_n "checking for $ac_word... " >&6; }
8095if test "${ac_cv_prog_AS+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
9a819804
AO
8097else
8098 if test -n "$AS"; then
8099 ac_cv_prog_AS="$AS" # Let the user override the test.
8100else
8101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102for as_dir in $PATH
8103do
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8108 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8110 break 2
8111 fi
8112done
81ecdfbb
RW
8113 done
8114IFS=$as_save_IFS
9a819804
AO
8115
8116fi
8117fi
8118AS=$ac_cv_prog_AS
8119if test -n "$AS"; then
81ecdfbb
RW
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8121$as_echo "$AS" >&6; }
9a819804 8122else
81ecdfbb
RW
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124$as_echo "no" >&6; }
9a819804
AO
8125fi
8126
81ecdfbb 8127
9a819804
AO
8128 done
8129fi
8130
8131for ncn_progname in as; do
05cbd757
PB
8132 if test -n "$ncn_tool_prefix"; then
8133 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8134set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136$as_echo_n "checking for $ac_word... " >&6; }
8137if test "${ac_cv_prog_AS+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
859789af
AC
8139else
8140 if test -n "$AS"; then
8141 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8142else
8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144for as_dir in $PATH
8145do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8150 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8152 break 2
8153 fi
8154done
81ecdfbb
RW
8155 done
8156IFS=$as_save_IFS
c6b750e1 8157
859789af
AC
8158fi
8159fi
c6b750e1 8160AS=$ac_cv_prog_AS
859789af 8161if test -n "$AS"; then
81ecdfbb
RW
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8163$as_echo "$AS" >&6; }
859789af 8164else
81ecdfbb
RW
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166$as_echo "no" >&6; }
859789af
AC
8167fi
8168
81ecdfbb 8169
05cbd757
PB
8170 fi
8171 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8173set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175$as_echo_n "checking for $ac_word... " >&6; }
8176if test "${ac_cv_prog_AS+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
859789af 8178else
05cbd757
PB
8179 if test -n "$AS"; then
8180 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8181else
c6b750e1
DJ
8182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8189 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8191 break 2
8192 fi
8193done
81ecdfbb
RW
8194 done
8195IFS=$as_save_IFS
c6b750e1 8196
859789af
AC
8197fi
8198fi
c6b750e1 8199AS=$ac_cv_prog_AS
05cbd757 8200if test -n "$AS"; then
81ecdfbb
RW
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8202$as_echo "$AS" >&6; }
859789af 8203else
81ecdfbb
RW
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205$as_echo "no" >&6; }
859789af 8206fi
c6b750e1 8207
81ecdfbb 8208
05cbd757
PB
8209 fi
8210 test -n "$ac_cv_prog_AS" && break
8211done
8212
8213if test -z "$ac_cv_prog_AS" ; then
8214 set dummy as
8215 if test $build = $host ; then
8216 AS="$2"
859789af 8217 else
05cbd757 8218 AS="${ncn_tool_prefix}$2"
859789af 8219 fi
859789af
AC
8220fi
8221
9a819804
AO
8222
8223
8224if test -n "$DLLTOOL"; then
8225 ac_cv_prog_DLLTOOL=$DLLTOOL
8226elif test -n "$ac_cv_prog_DLLTOOL"; then
8227 DLLTOOL=$ac_cv_prog_DLLTOOL
8228fi
8229
8230if test -n "$ac_cv_prog_DLLTOOL"; then
8231 for ncn_progname in dlltool; do
8232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8233set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235$as_echo_n "checking for $ac_word... " >&6; }
8236if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
9a819804
AO
8238else
8239 if test -n "$DLLTOOL"; then
8240 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8241else
8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243for as_dir in $PATH
8244do
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8249 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8251 break 2
8252 fi
8253done
81ecdfbb
RW
8254 done
8255IFS=$as_save_IFS
9a819804
AO
8256
8257fi
8258fi
8259DLLTOOL=$ac_cv_prog_DLLTOOL
8260if test -n "$DLLTOOL"; then
81ecdfbb
RW
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8262$as_echo "$DLLTOOL" >&6; }
9a819804 8263else
81ecdfbb
RW
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265$as_echo "no" >&6; }
9a819804
AO
8266fi
8267
81ecdfbb 8268
9a819804
AO
8269 done
8270fi
8271
8272for ncn_progname in dlltool; do
05cbd757
PB
8273 if test -n "$ncn_tool_prefix"; then
8274 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8275set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277$as_echo_n "checking for $ac_word... " >&6; }
8278if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
859789af
AC
8280else
8281 if test -n "$DLLTOOL"; then
8282 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8283else
c6b750e1
DJ
8284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285for as_dir in $PATH
8286do
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8291 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8293 break 2
8294 fi
8295done
81ecdfbb
RW
8296 done
8297IFS=$as_save_IFS
c6b750e1 8298
859789af
AC
8299fi
8300fi
c6b750e1 8301DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8302if test -n "$DLLTOOL"; then
81ecdfbb
RW
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8304$as_echo "$DLLTOOL" >&6; }
859789af 8305else
81ecdfbb
RW
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307$as_echo "no" >&6; }
859789af
AC
8308fi
8309
81ecdfbb 8310
05cbd757
PB
8311 fi
8312 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8314set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316$as_echo_n "checking for $ac_word... " >&6; }
8317if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
859789af 8319else
05cbd757
PB
8320 if test -n "$DLLTOOL"; then
8321 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8322else
c6b750e1
DJ
8323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324for as_dir in $PATH
8325do
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8330 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8332 break 2
8333 fi
8334done
81ecdfbb
RW
8335 done
8336IFS=$as_save_IFS
c6b750e1 8337
859789af
AC
8338fi
8339fi
c6b750e1 8340DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8341if test -n "$DLLTOOL"; then
81ecdfbb
RW
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8343$as_echo "$DLLTOOL" >&6; }
859789af 8344else
81ecdfbb
RW
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346$as_echo "no" >&6; }
859789af 8347fi
c6b750e1 8348
81ecdfbb 8349
05cbd757
PB
8350 fi
8351 test -n "$ac_cv_prog_DLLTOOL" && break
8352done
8353
8354if test -z "$ac_cv_prog_DLLTOOL" ; then
8355 set dummy dlltool
8356 if test $build = $host ; then
8357 DLLTOOL="$2"
859789af 8358 else
05cbd757 8359 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8360 fi
859789af
AC
8361fi
8362
9a819804
AO
8363
8364
8365if test -n "$LD"; then
8366 ac_cv_prog_LD=$LD
8367elif test -n "$ac_cv_prog_LD"; then
8368 LD=$ac_cv_prog_LD
8369fi
8370
8371if test -n "$ac_cv_prog_LD"; then
8372 for ncn_progname in ld; do
8373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8374set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376$as_echo_n "checking for $ac_word... " >&6; }
8377if test "${ac_cv_prog_LD+set}" = set; then :
8378 $as_echo_n "(cached) " >&6
9a819804
AO
8379else
8380 if test -n "$LD"; then
8381 ac_cv_prog_LD="$LD" # Let the user override the test.
8382else
8383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384for as_dir in $PATH
8385do
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8390 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8392 break 2
8393 fi
8394done
81ecdfbb
RW
8395 done
8396IFS=$as_save_IFS
9a819804
AO
8397
8398fi
8399fi
8400LD=$ac_cv_prog_LD
8401if test -n "$LD"; then
81ecdfbb
RW
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8403$as_echo "$LD" >&6; }
9a819804 8404else
81ecdfbb
RW
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406$as_echo "no" >&6; }
9a819804
AO
8407fi
8408
81ecdfbb 8409
9a819804
AO
8410 done
8411fi
8412
8413for ncn_progname in ld; do
05cbd757
PB
8414 if test -n "$ncn_tool_prefix"; then
8415 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8416set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418$as_echo_n "checking for $ac_word... " >&6; }
8419if test "${ac_cv_prog_LD+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
859789af
AC
8421else
8422 if test -n "$LD"; then
8423 ac_cv_prog_LD="$LD" # Let the user override the test.
8424else
c6b750e1
DJ
8425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426for as_dir in $PATH
8427do
8428 IFS=$as_save_IFS
8429 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8432 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8434 break 2
8435 fi
8436done
81ecdfbb
RW
8437 done
8438IFS=$as_save_IFS
c6b750e1 8439
859789af
AC
8440fi
8441fi
c6b750e1 8442LD=$ac_cv_prog_LD
859789af 8443if test -n "$LD"; then
81ecdfbb
RW
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8445$as_echo "$LD" >&6; }
859789af 8446else
81ecdfbb
RW
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448$as_echo "no" >&6; }
859789af
AC
8449fi
8450
81ecdfbb 8451
05cbd757
PB
8452 fi
8453 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8455set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457$as_echo_n "checking for $ac_word... " >&6; }
8458if test "${ac_cv_prog_LD+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
859789af 8460else
05cbd757
PB
8461 if test -n "$LD"; then
8462 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8463else
c6b750e1
DJ
8464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465for as_dir in $PATH
8466do
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8471 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8473 break 2
8474 fi
8475done
81ecdfbb
RW
8476 done
8477IFS=$as_save_IFS
c6b750e1 8478
859789af
AC
8479fi
8480fi
c6b750e1 8481LD=$ac_cv_prog_LD
05cbd757 8482if test -n "$LD"; then
81ecdfbb
RW
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8484$as_echo "$LD" >&6; }
859789af 8485else
81ecdfbb
RW
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487$as_echo "no" >&6; }
859789af 8488fi
c6b750e1 8489
81ecdfbb 8490
05cbd757
PB
8491 fi
8492 test -n "$ac_cv_prog_LD" && break
8493done
8494
8495if test -z "$ac_cv_prog_LD" ; then
8496 set dummy ld
8497 if test $build = $host ; then
8498 LD="$2"
859789af 8499 else
05cbd757 8500 LD="${ncn_tool_prefix}$2"
859789af 8501 fi
859789af
AC
8502fi
8503
9a819804
AO
8504
8505
8506if test -n "$LIPO"; then
8507 ac_cv_prog_LIPO=$LIPO
8508elif test -n "$ac_cv_prog_LIPO"; then
8509 LIPO=$ac_cv_prog_LIPO
8510fi
8511
8512if test -n "$ac_cv_prog_LIPO"; then
8513 for ncn_progname in lipo; do
8514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8515set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517$as_echo_n "checking for $ac_word... " >&6; }
8518if test "${ac_cv_prog_LIPO+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
9a819804
AO
8520else
8521 if test -n "$LIPO"; then
8522 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8523else
8524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525for as_dir in $PATH
8526do
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8531 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8533 break 2
8534 fi
8535done
81ecdfbb
RW
8536 done
8537IFS=$as_save_IFS
9a819804
AO
8538
8539fi
8540fi
8541LIPO=$ac_cv_prog_LIPO
8542if test -n "$LIPO"; then
81ecdfbb
RW
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8544$as_echo "$LIPO" >&6; }
9a819804 8545else
81ecdfbb
RW
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547$as_echo "no" >&6; }
9a819804
AO
8548fi
8549
81ecdfbb 8550
9a819804
AO
8551 done
8552fi
8553
8554for ncn_progname in lipo; do
be01d343
PB
8555 if test -n "$ncn_tool_prefix"; then
8556 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8557set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559$as_echo_n "checking for $ac_word... " >&6; }
8560if test "${ac_cv_prog_LIPO+set}" = set; then :
8561 $as_echo_n "(cached) " >&6
be01d343
PB
8562else
8563 if test -n "$LIPO"; then
8564 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8565else
c6b750e1
DJ
8566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567for as_dir in $PATH
8568do
8569 IFS=$as_save_IFS
8570 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8573 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8575 break 2
8576 fi
8577done
81ecdfbb
RW
8578 done
8579IFS=$as_save_IFS
c6b750e1 8580
be01d343
PB
8581fi
8582fi
c6b750e1 8583LIPO=$ac_cv_prog_LIPO
be01d343 8584if test -n "$LIPO"; then
81ecdfbb
RW
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8586$as_echo "$LIPO" >&6; }
be01d343 8587else
81ecdfbb
RW
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
be01d343
PB
8590fi
8591
81ecdfbb 8592
be01d343
PB
8593 fi
8594 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8596set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598$as_echo_n "checking for $ac_word... " >&6; }
8599if test "${ac_cv_prog_LIPO+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
be01d343
PB
8601else
8602 if test -n "$LIPO"; then
8603 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8604else
c6b750e1
DJ
8605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH
8607do
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8612 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8614 break 2
8615 fi
8616done
81ecdfbb
RW
8617 done
8618IFS=$as_save_IFS
c6b750e1 8619
be01d343
PB
8620fi
8621fi
c6b750e1 8622LIPO=$ac_cv_prog_LIPO
be01d343 8623if test -n "$LIPO"; then
81ecdfbb
RW
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8625$as_echo "$LIPO" >&6; }
be01d343 8626else
81ecdfbb
RW
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628$as_echo "no" >&6; }
be01d343 8629fi
c6b750e1 8630
81ecdfbb 8631
be01d343
PB
8632 fi
8633 test -n "$ac_cv_prog_LIPO" && break
8634done
8635
8636if test -z "$ac_cv_prog_LIPO" ; then
8637 set dummy lipo
8638 if test $build = $host ; then
8639 LIPO="$2"
8640 else
8641 LIPO="${ncn_tool_prefix}$2"
8642 fi
8643fi
8644
9a819804
AO
8645
8646
8647if test -n "$NM"; then
8648 ac_cv_prog_NM=$NM
8649elif test -n "$ac_cv_prog_NM"; then
8650 NM=$ac_cv_prog_NM
8651fi
8652
8653if test -n "$ac_cv_prog_NM"; then
8654 for ncn_progname in nm; do
8655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8656set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658$as_echo_n "checking for $ac_word... " >&6; }
8659if test "${ac_cv_prog_NM+set}" = set; then :
8660 $as_echo_n "(cached) " >&6
859789af
AC
8661else
8662 if test -n "$NM"; then
8663 ac_cv_prog_NM="$NM" # Let the user override the test.
8664else
c6b750e1
DJ
8665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666for as_dir in $PATH
8667do
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8672 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8674 break 2
8675 fi
8676done
81ecdfbb
RW
8677 done
8678IFS=$as_save_IFS
c6b750e1 8679
859789af
AC
8680fi
8681fi
c6b750e1 8682NM=$ac_cv_prog_NM
859789af 8683if test -n "$NM"; then
81ecdfbb
RW
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8685$as_echo "$NM" >&6; }
859789af 8686else
81ecdfbb
RW
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688$as_echo "no" >&6; }
859789af
AC
8689fi
8690
81ecdfbb 8691
9a819804
AO
8692 done
8693fi
8694
8695for ncn_progname in nm; do
8696 if test -n "$ncn_tool_prefix"; then
8697 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8698set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8700$as_echo_n "checking for $ac_word... " >&6; }
8701if test "${ac_cv_prog_NM+set}" = set; then :
8702 $as_echo_n "(cached) " >&6
859789af 8703else
05cbd757
PB
8704 if test -n "$NM"; then
8705 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8706else
c6b750e1
DJ
8707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708for as_dir in $PATH
8709do
8710 IFS=$as_save_IFS
8711 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8712 for ac_exec_ext in '' $ac_executable_extensions; do
8713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8714 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8716 break 2
8717 fi
8718done
81ecdfbb
RW
8719 done
8720IFS=$as_save_IFS
c6b750e1 8721
859789af
AC
8722fi
8723fi
c6b750e1 8724NM=$ac_cv_prog_NM
05cbd757 8725if test -n "$NM"; then
81ecdfbb
RW
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8727$as_echo "$NM" >&6; }
859789af 8728else
81ecdfbb
RW
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730$as_echo "no" >&6; }
859789af 8731fi
c6b750e1 8732
81ecdfbb 8733
05cbd757 8734 fi
9a819804
AO
8735 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8737set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739$as_echo_n "checking for $ac_word... " >&6; }
8740if test "${ac_cv_prog_NM+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
9a819804
AO
8742else
8743 if test -n "$NM"; then
8744 ac_cv_prog_NM="$NM" # Let the user override the test.
8745else
8746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747for as_dir in $PATH
8748do
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8753 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8755 break 2
8756 fi
8757done
81ecdfbb
RW
8758 done
8759IFS=$as_save_IFS
9a819804
AO
8760
8761fi
8762fi
8763NM=$ac_cv_prog_NM
8764if test -n "$NM"; then
81ecdfbb
RW
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8766$as_echo "$NM" >&6; }
9a819804 8767else
81ecdfbb
RW
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
9a819804
AO
8770fi
8771
81ecdfbb 8772
9a819804
AO
8773 fi
8774 test -n "$ac_cv_prog_NM" && break
8775done
8776
8777if test -z "$ac_cv_prog_NM" ; then
8778 set dummy nm
8779 if test $build = $host ; then
8780 NM="$2"
8781 else
8782 NM="${ncn_tool_prefix}$2"
8783 fi
8784fi
8785
8786
8787
8788if test -n "$RANLIB"; then
8789 ac_cv_prog_RANLIB=$RANLIB
8790elif test -n "$ac_cv_prog_RANLIB"; then
8791 RANLIB=$ac_cv_prog_RANLIB
8792fi
8793
8794if test -n "$ac_cv_prog_RANLIB"; then
8795 for ncn_progname in ranlib; do
8796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8797set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799$as_echo_n "checking for $ac_word... " >&6; }
8800if test "${ac_cv_prog_RANLIB+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
9a819804
AO
8802else
8803 if test -n "$RANLIB"; then
8804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8805else
8806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $PATH
8808do
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8813 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8815 break 2
8816 fi
8817done
81ecdfbb
RW
8818 done
8819IFS=$as_save_IFS
9a819804
AO
8820
8821fi
8822fi
8823RANLIB=$ac_cv_prog_RANLIB
8824if test -n "$RANLIB"; then
81ecdfbb
RW
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8826$as_echo "$RANLIB" >&6; }
9a819804 8827else
81ecdfbb
RW
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829$as_echo "no" >&6; }
9a819804
AO
8830fi
8831
81ecdfbb 8832
9a819804
AO
8833 done
8834fi
859789af 8835
9a819804 8836for ncn_progname in ranlib; do
05cbd757
PB
8837 if test -n "$ncn_tool_prefix"; then
8838 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8839set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841$as_echo_n "checking for $ac_word... " >&6; }
8842if test "${ac_cv_prog_RANLIB+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
859789af
AC
8844else
8845 if test -n "$RANLIB"; then
8846 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8847else
c6b750e1
DJ
8848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849for as_dir in $PATH
8850do
8851 IFS=$as_save_IFS
8852 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8855 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8857 break 2
8858 fi
8859done
81ecdfbb
RW
8860 done
8861IFS=$as_save_IFS
c6b750e1 8862
859789af
AC
8863fi
8864fi
c6b750e1 8865RANLIB=$ac_cv_prog_RANLIB
859789af 8866if test -n "$RANLIB"; then
81ecdfbb
RW
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8868$as_echo "$RANLIB" >&6; }
859789af 8869else
81ecdfbb
RW
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871$as_echo "no" >&6; }
859789af
AC
8872fi
8873
81ecdfbb 8874
05cbd757
PB
8875 fi
8876 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8878set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880$as_echo_n "checking for $ac_word... " >&6; }
8881if test "${ac_cv_prog_RANLIB+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
859789af 8883else
05cbd757
PB
8884 if test -n "$RANLIB"; then
8885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8886else
c6b750e1
DJ
8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888for as_dir in $PATH
8889do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8894 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8896 break 2
8897 fi
8898done
81ecdfbb
RW
8899 done
8900IFS=$as_save_IFS
c6b750e1 8901
859789af
AC
8902fi
8903fi
c6b750e1 8904RANLIB=$ac_cv_prog_RANLIB
05cbd757 8905if test -n "$RANLIB"; then
81ecdfbb
RW
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8907$as_echo "$RANLIB" >&6; }
859789af 8908else
81ecdfbb
RW
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
859789af 8911fi
c6b750e1 8912
81ecdfbb 8913
859789af 8914 fi
05cbd757
PB
8915 test -n "$ac_cv_prog_RANLIB" && break
8916done
8917
8918if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8919 RANLIB="true"
859789af
AC
8920fi
8921
9a819804
AO
8922
8923
8924if test -n "$STRIP"; then
8925 ac_cv_prog_STRIP=$STRIP
8926elif test -n "$ac_cv_prog_STRIP"; then
8927 STRIP=$ac_cv_prog_STRIP
8928fi
8929
8930if test -n "$ac_cv_prog_STRIP"; then
8931 for ncn_progname in strip; do
8932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8933set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935$as_echo_n "checking for $ac_word... " >&6; }
8936if test "${ac_cv_prog_STRIP+set}" = set; then :
8937 $as_echo_n "(cached) " >&6
9a819804
AO
8938else
8939 if test -n "$STRIP"; then
8940 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8941else
8942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943for as_dir in $PATH
8944do
8945 IFS=$as_save_IFS
8946 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8949 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8951 break 2
8952 fi
8953done
81ecdfbb
RW
8954 done
8955IFS=$as_save_IFS
9a819804
AO
8956
8957fi
8958fi
8959STRIP=$ac_cv_prog_STRIP
8960if test -n "$STRIP"; then
81ecdfbb
RW
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8962$as_echo "$STRIP" >&6; }
9a819804 8963else
81ecdfbb
RW
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965$as_echo "no" >&6; }
9a819804
AO
8966fi
8967
81ecdfbb 8968
9a819804
AO
8969 done
8970fi
8971
8972for ncn_progname in strip; do
be01d343
PB
8973 if test -n "$ncn_tool_prefix"; then
8974 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8975set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977$as_echo_n "checking for $ac_word... " >&6; }
8978if test "${ac_cv_prog_STRIP+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
be01d343
PB
8980else
8981 if test -n "$STRIP"; then
8982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8983else
c6b750e1
DJ
8984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985for as_dir in $PATH
8986do
8987 IFS=$as_save_IFS
8988 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8989 for ac_exec_ext in '' $ac_executable_extensions; do
8990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8991 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8993 break 2
8994 fi
8995done
81ecdfbb
RW
8996 done
8997IFS=$as_save_IFS
c6b750e1 8998
be01d343
PB
8999fi
9000fi
c6b750e1 9001STRIP=$ac_cv_prog_STRIP
be01d343 9002if test -n "$STRIP"; then
81ecdfbb
RW
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9004$as_echo "$STRIP" >&6; }
be01d343 9005else
81ecdfbb
RW
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007$as_echo "no" >&6; }
be01d343
PB
9008fi
9009
81ecdfbb 9010
be01d343
PB
9011 fi
9012 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9014set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016$as_echo_n "checking for $ac_word... " >&6; }
9017if test "${ac_cv_prog_STRIP+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
be01d343
PB
9019else
9020 if test -n "$STRIP"; then
9021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9022else
c6b750e1
DJ
9023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024for as_dir in $PATH
9025do
9026 IFS=$as_save_IFS
9027 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9030 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9032 break 2
9033 fi
9034done
81ecdfbb
RW
9035 done
9036IFS=$as_save_IFS
c6b750e1 9037
be01d343
PB
9038fi
9039fi
c6b750e1 9040STRIP=$ac_cv_prog_STRIP
be01d343 9041if test -n "$STRIP"; then
81ecdfbb
RW
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9043$as_echo "$STRIP" >&6; }
be01d343 9044else
81ecdfbb
RW
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046$as_echo "no" >&6; }
be01d343 9047fi
c6b750e1 9048
81ecdfbb 9049
be01d343
PB
9050 fi
9051 test -n "$ac_cv_prog_STRIP" && break
9052done
9053
9054if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9055 STRIP="true"
be01d343
PB
9056fi
9057
9a819804
AO
9058
9059
9060if test -n "$WINDRES"; then
9061 ac_cv_prog_WINDRES=$WINDRES
9062elif test -n "$ac_cv_prog_WINDRES"; then
9063 WINDRES=$ac_cv_prog_WINDRES
9064fi
9065
9066if test -n "$ac_cv_prog_WINDRES"; then
9067 for ncn_progname in windres; do
9068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9069set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071$as_echo_n "checking for $ac_word... " >&6; }
9072if test "${ac_cv_prog_WINDRES+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9a819804
AO
9074else
9075 if test -n "$WINDRES"; then
9076 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9077else
9078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079for as_dir in $PATH
9080do
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9085 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9087 break 2
9088 fi
9089done
81ecdfbb
RW
9090 done
9091IFS=$as_save_IFS
9a819804
AO
9092
9093fi
9094fi
9095WINDRES=$ac_cv_prog_WINDRES
9096if test -n "$WINDRES"; then
81ecdfbb
RW
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9098$as_echo "$WINDRES" >&6; }
9a819804 9099else
81ecdfbb
RW
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101$as_echo "no" >&6; }
9a819804
AO
9102fi
9103
81ecdfbb 9104
9a819804
AO
9105 done
9106fi
9107
9108for ncn_progname in windres; do
05cbd757
PB
9109 if test -n "$ncn_tool_prefix"; then
9110 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9111set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113$as_echo_n "checking for $ac_word... " >&6; }
9114if test "${ac_cv_prog_WINDRES+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
859789af
AC
9116else
9117 if test -n "$WINDRES"; then
9118 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9119else
c6b750e1
DJ
9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9127 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9129 break 2
9130 fi
9131done
81ecdfbb
RW
9132 done
9133IFS=$as_save_IFS
c6b750e1 9134
859789af
AC
9135fi
9136fi
c6b750e1 9137WINDRES=$ac_cv_prog_WINDRES
859789af 9138if test -n "$WINDRES"; then
81ecdfbb
RW
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9140$as_echo "$WINDRES" >&6; }
859789af 9141else
81ecdfbb
RW
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
859789af
AC
9144fi
9145
81ecdfbb 9146
05cbd757
PB
9147 fi
9148 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9150set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152$as_echo_n "checking for $ac_word... " >&6; }
9153if test "${ac_cv_prog_WINDRES+set}" = set; then :
9154 $as_echo_n "(cached) " >&6
859789af 9155else
05cbd757
PB
9156 if test -n "$WINDRES"; then
9157 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9158else
c6b750e1
DJ
9159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160for as_dir in $PATH
9161do
9162 IFS=$as_save_IFS
9163 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9166 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9168 break 2
9169 fi
9170done
81ecdfbb
RW
9171 done
9172IFS=$as_save_IFS
c6b750e1 9173
859789af
AC
9174fi
9175fi
c6b750e1 9176WINDRES=$ac_cv_prog_WINDRES
05cbd757 9177if test -n "$WINDRES"; then
81ecdfbb
RW
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9179$as_echo "$WINDRES" >&6; }
859789af 9180else
81ecdfbb
RW
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182$as_echo "no" >&6; }
859789af 9183fi
c6b750e1 9184
81ecdfbb 9185
05cbd757
PB
9186 fi
9187 test -n "$ac_cv_prog_WINDRES" && break
9188done
9189
9190if test -z "$ac_cv_prog_WINDRES" ; then
9191 set dummy windres
9192 if test $build = $host ; then
9193 WINDRES="$2"
859789af 9194 else
05cbd757 9195 WINDRES="${ncn_tool_prefix}$2"
859789af 9196 fi
859789af
AC
9197fi
9198
9a819804
AO
9199
9200
0c24b341
NC
9201if test -n "$WINDMC"; then
9202 ac_cv_prog_WINDMC=$WINDMC
9203elif test -n "$ac_cv_prog_WINDMC"; then
9204 WINDMC=$ac_cv_prog_WINDMC
9205fi
9206
9207if test -n "$ac_cv_prog_WINDMC"; then
9208 for ncn_progname in windmc; do
9209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9210set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9212$as_echo_n "checking for $ac_word... " >&6; }
9213if test "${ac_cv_prog_WINDMC+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
0c24b341
NC
9215else
9216 if test -n "$WINDMC"; then
9217 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9218else
9219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220for as_dir in $PATH
9221do
9222 IFS=$as_save_IFS
9223 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9224 for ac_exec_ext in '' $ac_executable_extensions; do
9225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9226 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9228 break 2
9229 fi
9230done
81ecdfbb
RW
9231 done
9232IFS=$as_save_IFS
0c24b341
NC
9233
9234fi
9235fi
9236WINDMC=$ac_cv_prog_WINDMC
9237if test -n "$WINDMC"; then
81ecdfbb
RW
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9239$as_echo "$WINDMC" >&6; }
0c24b341 9240else
81ecdfbb
RW
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242$as_echo "no" >&6; }
0c24b341
NC
9243fi
9244
81ecdfbb 9245
0c24b341
NC
9246 done
9247fi
9248
9249for ncn_progname in windmc; do
9250 if test -n "$ncn_tool_prefix"; then
9251 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9252set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254$as_echo_n "checking for $ac_word... " >&6; }
9255if test "${ac_cv_prog_WINDMC+set}" = set; then :
9256 $as_echo_n "(cached) " >&6
0c24b341
NC
9257else
9258 if test -n "$WINDMC"; then
9259 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9260else
9261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262for as_dir in $PATH
9263do
9264 IFS=$as_save_IFS
9265 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9268 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9270 break 2
9271 fi
9272done
81ecdfbb
RW
9273 done
9274IFS=$as_save_IFS
0c24b341
NC
9275
9276fi
9277fi
9278WINDMC=$ac_cv_prog_WINDMC
9279if test -n "$WINDMC"; then
81ecdfbb
RW
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9281$as_echo "$WINDMC" >&6; }
0c24b341 9282else
81ecdfbb
RW
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284$as_echo "no" >&6; }
0c24b341
NC
9285fi
9286
81ecdfbb 9287
0c24b341
NC
9288 fi
9289 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9291set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293$as_echo_n "checking for $ac_word... " >&6; }
9294if test "${ac_cv_prog_WINDMC+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
0c24b341
NC
9296else
9297 if test -n "$WINDMC"; then
9298 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9299else
9300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301for as_dir in $PATH
9302do
9303 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9307 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9309 break 2
9310 fi
9311done
81ecdfbb
RW
9312 done
9313IFS=$as_save_IFS
0c24b341
NC
9314
9315fi
9316fi
9317WINDMC=$ac_cv_prog_WINDMC
9318if test -n "$WINDMC"; then
81ecdfbb
RW
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9320$as_echo "$WINDMC" >&6; }
0c24b341 9321else
81ecdfbb
RW
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323$as_echo "no" >&6; }
0c24b341
NC
9324fi
9325
81ecdfbb 9326
0c24b341
NC
9327 fi
9328 test -n "$ac_cv_prog_WINDMC" && break
9329done
9330
9331if test -z "$ac_cv_prog_WINDMC" ; then
9332 set dummy windmc
9333 if test $build = $host ; then
9334 WINDMC="$2"
9335 else
9336 WINDMC="${ncn_tool_prefix}$2"
9337 fi
9338fi
9339
9340
9341
9a819804
AO
9342if test -n "$OBJCOPY"; then
9343 ac_cv_prog_OBJCOPY=$OBJCOPY
9344elif test -n "$ac_cv_prog_OBJCOPY"; then
9345 OBJCOPY=$ac_cv_prog_OBJCOPY
9346fi
9347
9348if test -n "$ac_cv_prog_OBJCOPY"; then
9349 for ncn_progname in objcopy; do
9350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9351set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353$as_echo_n "checking for $ac_word... " >&6; }
9354if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9355 $as_echo_n "(cached) " >&6
9a819804
AO
9356else
9357 if test -n "$OBJCOPY"; then
9358 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9359else
9360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361for as_dir in $PATH
9362do
9363 IFS=$as_save_IFS
9364 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9365 for ac_exec_ext in '' $ac_executable_extensions; do
9366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9367 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9369 break 2
9370 fi
9371done
81ecdfbb
RW
9372 done
9373IFS=$as_save_IFS
9a819804
AO
9374
9375fi
9376fi
9377OBJCOPY=$ac_cv_prog_OBJCOPY
9378if test -n "$OBJCOPY"; then
81ecdfbb
RW
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9380$as_echo "$OBJCOPY" >&6; }
9a819804 9381else
81ecdfbb
RW
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383$as_echo "no" >&6; }
9a819804
AO
9384fi
9385
81ecdfbb 9386
9a819804
AO
9387 done
9388fi
9389
9390for ncn_progname in objcopy; do
05cbd757
PB
9391 if test -n "$ncn_tool_prefix"; then
9392 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9393set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395$as_echo_n "checking for $ac_word... " >&6; }
9396if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
859789af
AC
9398else
9399 if test -n "$OBJCOPY"; then
9400 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9401else
c6b750e1
DJ
9402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403for as_dir in $PATH
9404do
9405 IFS=$as_save_IFS
9406 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9407 for ac_exec_ext in '' $ac_executable_extensions; do
9408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9409 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9411 break 2
9412 fi
9413done
81ecdfbb
RW
9414 done
9415IFS=$as_save_IFS
c6b750e1 9416
859789af
AC
9417fi
9418fi
c6b750e1 9419OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9420if test -n "$OBJCOPY"; then
81ecdfbb
RW
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9422$as_echo "$OBJCOPY" >&6; }
859789af 9423else
81ecdfbb
RW
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425$as_echo "no" >&6; }
859789af
AC
9426fi
9427
81ecdfbb 9428
05cbd757
PB
9429 fi
9430 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9432set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434$as_echo_n "checking for $ac_word... " >&6; }
9435if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
859789af 9437else
05cbd757
PB
9438 if test -n "$OBJCOPY"; then
9439 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9440else
c6b750e1
DJ
9441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442for as_dir in $PATH
9443do
9444 IFS=$as_save_IFS
9445 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9446 for ac_exec_ext in '' $ac_executable_extensions; do
9447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9448 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9450 break 2
9451 fi
9452done
81ecdfbb
RW
9453 done
9454IFS=$as_save_IFS
c6b750e1 9455
859789af
AC
9456fi
9457fi
c6b750e1 9458OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9459if test -n "$OBJCOPY"; then
81ecdfbb
RW
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9461$as_echo "$OBJCOPY" >&6; }
859789af 9462else
81ecdfbb
RW
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464$as_echo "no" >&6; }
859789af 9465fi
c6b750e1 9466
81ecdfbb 9467
05cbd757
PB
9468 fi
9469 test -n "$ac_cv_prog_OBJCOPY" && break
9470done
9471
9472if test -z "$ac_cv_prog_OBJCOPY" ; then
9473 set dummy objcopy
9474 if test $build = $host ; then
9475 OBJCOPY="$2"
859789af 9476 else
05cbd757 9477 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9478 fi
859789af
AC
9479fi
9480
9a819804
AO
9481
9482
9483if test -n "$OBJDUMP"; then
9484 ac_cv_prog_OBJDUMP=$OBJDUMP
9485elif test -n "$ac_cv_prog_OBJDUMP"; then
9486 OBJDUMP=$ac_cv_prog_OBJDUMP
9487fi
9488
9489if test -n "$ac_cv_prog_OBJDUMP"; then
9490 for ncn_progname in objdump; do
9491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9492set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494$as_echo_n "checking for $ac_word... " >&6; }
9495if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9a819804
AO
9497else
9498 if test -n "$OBJDUMP"; then
9499 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9500else
9501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502for as_dir in $PATH
9503do
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9508 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9510 break 2
9511 fi
9512done
81ecdfbb
RW
9513 done
9514IFS=$as_save_IFS
9a819804
AO
9515
9516fi
9517fi
9518OBJDUMP=$ac_cv_prog_OBJDUMP
9519if test -n "$OBJDUMP"; then
81ecdfbb
RW
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9521$as_echo "$OBJDUMP" >&6; }
9a819804 9522else
81ecdfbb
RW
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524$as_echo "no" >&6; }
9a819804
AO
9525fi
9526
81ecdfbb 9527
9a819804
AO
9528 done
9529fi
9530
9531for ncn_progname in objdump; do
05cbd757
PB
9532 if test -n "$ncn_tool_prefix"; then
9533 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9534set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9536$as_echo_n "checking for $ac_word... " >&6; }
9537if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9538 $as_echo_n "(cached) " >&6
859789af
AC
9539else
9540 if test -n "$OBJDUMP"; then
9541 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9542else
c6b750e1
DJ
9543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544for as_dir in $PATH
9545do
9546 IFS=$as_save_IFS
9547 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9548 for ac_exec_ext in '' $ac_executable_extensions; do
9549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9550 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9552 break 2
9553 fi
9554done
81ecdfbb
RW
9555 done
9556IFS=$as_save_IFS
c6b750e1 9557
859789af
AC
9558fi
9559fi
c6b750e1 9560OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9561if test -n "$OBJDUMP"; then
81ecdfbb
RW
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9563$as_echo "$OBJDUMP" >&6; }
859789af 9564else
81ecdfbb
RW
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566$as_echo "no" >&6; }
859789af
AC
9567fi
9568
81ecdfbb 9569
05cbd757
PB
9570 fi
9571 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9573set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575$as_echo_n "checking for $ac_word... " >&6; }
9576if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
859789af 9578else
05cbd757
PB
9579 if test -n "$OBJDUMP"; then
9580 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9581else
c6b750e1
DJ
9582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9589 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9591 break 2
9592 fi
9593done
81ecdfbb
RW
9594 done
9595IFS=$as_save_IFS
c6b750e1 9596
859789af
AC
9597fi
9598fi
c6b750e1 9599OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9600if test -n "$OBJDUMP"; then
81ecdfbb
RW
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9602$as_echo "$OBJDUMP" >&6; }
859789af 9603else
81ecdfbb
RW
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605$as_echo "no" >&6; }
859789af 9606fi
c6b750e1 9607
81ecdfbb 9608
05cbd757
PB
9609 fi
9610 test -n "$ac_cv_prog_OBJDUMP" && break
9611done
9612
9613if test -z "$ac_cv_prog_OBJDUMP" ; then
9614 set dummy objdump
9615 if test $build = $host ; then
9616 OBJDUMP="$2"
859789af 9617 else
05cbd757 9618 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9619 fi
859789af
AC
9620fi
9621
a0da8069
NN
9622
9623
9624
9625
9626
be01d343 9627# Target tools.
c6b750e1 9628
81ecdfbb
RW
9629# Check whether --with-build-time-tools was given.
9630if test "${with_build_time_tools+set}" = set; then :
9631 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9632 x/*) ;;
9633 *)
9634 with_build_time_tools=
81ecdfbb
RW
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9636$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9637 ;;
9638 esac
859789af 9639else
2429c060 9640 with_build_time_tools=
81ecdfbb
RW
9641fi
9642
859789af 9643
9a819804
AO
9644
9645
9646if test -n "$CC_FOR_TARGET"; then
9647 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9648elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9649 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9650fi
9651
9652if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9653 for ncn_progname in cc gcc; do
9654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9655set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657$as_echo_n "checking for $ac_word... " >&6; }
9658if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9a819804
AO
9660else
9661 if test -n "$CC_FOR_TARGET"; then
9662 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9663else
9664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665for as_dir in $PATH
9666do
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9671 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9673 break 2
9674 fi
9675done
81ecdfbb
RW
9676 done
9677IFS=$as_save_IFS
9a819804
AO
9678
9679fi
9680fi
9681CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9682if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9684$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9685else
81ecdfbb
RW
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687$as_echo "no" >&6; }
9a819804
AO
9688fi
9689
81ecdfbb 9690
9a819804
AO
9691 done
9692fi
9693
9694if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9695 for ncn_progname in cc gcc; do
81ecdfbb
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9697$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9698 if test -x $with_build_time_tools/${ncn_progname}; then
9699 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9701$as_echo "yes" >&6; }
cac3d6c4 9702 break
2429c060 9703 else
81ecdfbb
RW
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705$as_echo "no" >&6; }
cac3d6c4
CM
9706 fi
9707 done
55db4b87
PB
9708fi
9709
2429c060
PB
9710if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9711 for ncn_progname in cc gcc; do
9712 if test -n "$ncn_target_tool_prefix"; then
9713 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9714set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716$as_echo_n "checking for $ac_word... " >&6; }
9717if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
55db4b87
PB
9719else
9720 if test -n "$CC_FOR_TARGET"; then
9721 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9722else
c6b750e1
DJ
9723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724for as_dir in $PATH
9725do
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9730 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9732 break 2
9733 fi
9734done
81ecdfbb
RW
9735 done
9736IFS=$as_save_IFS
c6b750e1 9737
55db4b87
PB
9738fi
9739fi
c6b750e1 9740CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9741if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9743$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9744else
81ecdfbb
RW
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746$as_echo "no" >&6; }
55db4b87
PB
9747fi
9748
81ecdfbb 9749
2429c060
PB
9750 fi
9751 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9753set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755$as_echo_n "checking for $ac_word... " >&6; }
9756if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
55db4b87 9758else
05cbd757
PB
9759 if test -n "$CC_FOR_TARGET"; then
9760 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9761else
c6b750e1
DJ
9762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763for as_dir in $PATH
9764do
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9769 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9771 break 2
9772 fi
9773done
81ecdfbb
RW
9774 done
9775IFS=$as_save_IFS
c6b750e1 9776
55db4b87
PB
9777fi
9778fi
c6b750e1 9779CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9780if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9782$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9783else
81ecdfbb
RW
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785$as_echo "no" >&6; }
55db4b87 9786fi
c6b750e1 9787
81ecdfbb 9788
2429c060
PB
9789 fi
9790 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9791 done
9792fi
c6b750e1 9793
05cbd757
PB
9794if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9795 set dummy cc gcc
9796 if test $build = $target ; then
9797 CC_FOR_TARGET="$2"
55db4b87 9798 else
05cbd757 9799 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9800 fi
d3f5afc4
MS
9801else
9802 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9803fi
9804
9a819804
AO
9805
9806
9807if test -n "$CXX_FOR_TARGET"; then
9808 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9809elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9810 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9811fi
9812
9813if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9814 for ncn_progname in c++ g++ cxx gxx; do
9815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9816set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818$as_echo_n "checking for $ac_word... " >&6; }
9819if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9a819804
AO
9821else
9822 if test -n "$CXX_FOR_TARGET"; then
9823 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9824else
9825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826for as_dir in $PATH
9827do
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9832 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9834 break 2
9835 fi
9836done
81ecdfbb
RW
9837 done
9838IFS=$as_save_IFS
9a819804
AO
9839
9840fi
9841fi
9842CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9843if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9845$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9846else
81ecdfbb
RW
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848$as_echo "no" >&6; }
9a819804
AO
9849fi
9850
81ecdfbb 9851
9a819804
AO
9852 done
9853fi
9854
9855if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9856 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9858$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9859 if test -x $with_build_time_tools/${ncn_progname}; then
9860 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9862$as_echo "yes" >&6; }
2429c060
PB
9863 break
9864 else
81ecdfbb
RW
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866$as_echo "no" >&6; }
2429c060
PB
9867 fi
9868 done
9869fi
9870
9871if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9872 for ncn_progname in c++ g++ cxx gxx; do
9873 if test -n "$ncn_target_tool_prefix"; then
9874 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9875set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9877$as_echo_n "checking for $ac_word... " >&6; }
9878if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
55db4b87
PB
9880else
9881 if test -n "$CXX_FOR_TARGET"; then
9882 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9883else
c6b750e1
DJ
9884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885for as_dir in $PATH
9886do
9887 IFS=$as_save_IFS
9888 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9889 for ac_exec_ext in '' $ac_executable_extensions; do
9890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9891 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9893 break 2
9894 fi
9895done
81ecdfbb
RW
9896 done
9897IFS=$as_save_IFS
c6b750e1 9898
55db4b87
PB
9899fi
9900fi
c6b750e1 9901CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9902if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9904$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9905else
81ecdfbb
RW
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907$as_echo "no" >&6; }
55db4b87
PB
9908fi
9909
81ecdfbb 9910
2429c060
PB
9911 fi
9912 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9914set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916$as_echo_n "checking for $ac_word... " >&6; }
9917if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
55db4b87 9919else
05cbd757
PB
9920 if test -n "$CXX_FOR_TARGET"; then
9921 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9922else
c6b750e1
DJ
9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9930 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9932 break 2
9933 fi
9934done
81ecdfbb
RW
9935 done
9936IFS=$as_save_IFS
c6b750e1 9937
55db4b87
PB
9938fi
9939fi
c6b750e1 9940CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9941if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9943$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9944else
81ecdfbb
RW
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946$as_echo "no" >&6; }
55db4b87 9947fi
c6b750e1 9948
81ecdfbb 9949
2429c060
PB
9950 fi
9951 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9952 done
9953fi
c6b750e1 9954
05cbd757
PB
9955if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9956 set dummy c++ g++ cxx gxx
9957 if test $build = $target ; then
9958 CXX_FOR_TARGET="$2"
55db4b87 9959 else
05cbd757 9960 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9961 fi
d3f5afc4
MS
9962else
9963 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9964fi
9965
9a819804
AO
9966
9967
9968if test -n "$GCC_FOR_TARGET"; then
9969 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9970elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9971 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9972fi
9973
9974if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9975 for ncn_progname in gcc; do
9976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9977set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979$as_echo_n "checking for $ac_word... " >&6; }
9980if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
9a819804
AO
9982else
9983 if test -n "$GCC_FOR_TARGET"; then
9984 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9985else
9986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987for as_dir in $PATH
9988do
9989 IFS=$as_save_IFS
9990 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9993 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9995 break 2
9996 fi
9997done
81ecdfbb
RW
9998 done
9999IFS=$as_save_IFS
9a819804
AO
10000
10001fi
10002fi
10003GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10004if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10006$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10007else
81ecdfbb
RW
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009$as_echo "no" >&6; }
9a819804
AO
10010fi
10011
81ecdfbb 10012
9a819804
AO
10013 done
10014fi
10015
10016if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10017 for ncn_progname in gcc; do
81ecdfbb
RW
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10019$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10020 if test -x $with_build_time_tools/${ncn_progname}; then
10021 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10023$as_echo "yes" >&6; }
2429c060
PB
10024 break
10025 else
81ecdfbb
RW
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027$as_echo "no" >&6; }
2429c060
PB
10028 fi
10029 done
10030fi
10031
10032if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10033 for ncn_progname in gcc; do
10034 if test -n "$ncn_target_tool_prefix"; then
10035 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10036set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10038$as_echo_n "checking for $ac_word... " >&6; }
10039if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10040 $as_echo_n "(cached) " >&6
859789af 10041else
2429c060
PB
10042 if test -n "$GCC_FOR_TARGET"; then
10043 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10044else
c6b750e1
DJ
10045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046for as_dir in $PATH
10047do
10048 IFS=$as_save_IFS
10049 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10050 for ac_exec_ext in '' $ac_executable_extensions; do
10051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10052 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10054 break 2
10055 fi
10056done
81ecdfbb
RW
10057 done
10058IFS=$as_save_IFS
c6b750e1 10059
55db4b87
PB
10060fi
10061fi
c6b750e1 10062GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10063if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10065$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10066else
81ecdfbb
RW
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068$as_echo "no" >&6; }
55db4b87
PB
10069fi
10070
81ecdfbb 10071
2429c060
PB
10072 fi
10073 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10075set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077$as_echo_n "checking for $ac_word... " >&6; }
10078if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10079 $as_echo_n "(cached) " >&6
55db4b87 10080else
05cbd757
PB
10081 if test -n "$GCC_FOR_TARGET"; then
10082 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10083else
c6b750e1
DJ
10084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085for as_dir in $PATH
10086do
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10091 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10093 break 2
10094 fi
10095done
81ecdfbb
RW
10096 done
10097IFS=$as_save_IFS
c6b750e1 10098
55db4b87
PB
10099fi
10100fi
c6b750e1 10101GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10102if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10104$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10105else
81ecdfbb
RW
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107$as_echo "no" >&6; }
55db4b87 10108fi
c6b750e1 10109
81ecdfbb 10110
2429c060
PB
10111 fi
10112 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10113 done
10114fi
c6b750e1 10115
05cbd757
PB
10116if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10117 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10118else
10119 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10120fi
10121
9a819804
AO
10122
10123
10124if test -n "$GCJ_FOR_TARGET"; then
10125 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10126elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10127 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10128fi
10129
10130if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10131 for ncn_progname in gcj; do
10132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10133set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135$as_echo_n "checking for $ac_word... " >&6; }
10136if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10137 $as_echo_n "(cached) " >&6
9a819804
AO
10138else
10139 if test -n "$GCJ_FOR_TARGET"; then
10140 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10141else
10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143for as_dir in $PATH
10144do
10145 IFS=$as_save_IFS
10146 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10147 for ac_exec_ext in '' $ac_executable_extensions; do
10148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10149 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10151 break 2
10152 fi
10153done
81ecdfbb
RW
10154 done
10155IFS=$as_save_IFS
9a819804
AO
10156
10157fi
10158fi
10159GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10160if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10162$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10163else
81ecdfbb
RW
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165$as_echo "no" >&6; }
9a819804
AO
10166fi
10167
81ecdfbb 10168
9a819804
AO
10169 done
10170fi
10171
10172if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10173 for ncn_progname in gcj; do
81ecdfbb
RW
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10175$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10176 if test -x $with_build_time_tools/${ncn_progname}; then
10177 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10179$as_echo "yes" >&6; }
2429c060
PB
10180 break
10181 else
81ecdfbb
RW
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183$as_echo "no" >&6; }
2429c060
PB
10184 fi
10185 done
10186fi
10187
10188if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10189 for ncn_progname in gcj; do
10190 if test -n "$ncn_target_tool_prefix"; then
10191 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10192set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10194$as_echo_n "checking for $ac_word... " >&6; }
10195if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
55db4b87
PB
10197else
10198 if test -n "$GCJ_FOR_TARGET"; then
10199 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10200else
c6b750e1
DJ
10201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202for as_dir in $PATH
10203do
10204 IFS=$as_save_IFS
10205 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10206 for ac_exec_ext in '' $ac_executable_extensions; do
10207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10208 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10210 break 2
10211 fi
10212done
81ecdfbb
RW
10213 done
10214IFS=$as_save_IFS
c6b750e1 10215
55db4b87
PB
10216fi
10217fi
9a819804
AO
10218GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10219if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10221$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10222else
81ecdfbb
RW
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224$as_echo "no" >&6; }
9a819804
AO
10225fi
10226
81ecdfbb 10227
9a819804
AO
10228 fi
10229 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10231set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233$as_echo_n "checking for $ac_word... " >&6; }
10234if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10235 $as_echo_n "(cached) " >&6
9a819804
AO
10236else
10237 if test -n "$GCJ_FOR_TARGET"; then
10238 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10239else
10240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241for as_dir in $PATH
10242do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10247 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10249 break 2
10250 fi
10251done
81ecdfbb
RW
10252 done
10253IFS=$as_save_IFS
9a819804
AO
10254
10255fi
10256fi
10257GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10258if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10260$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10261else
81ecdfbb
RW
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263$as_echo "no" >&6; }
9a819804
AO
10264fi
10265
81ecdfbb 10266
9a819804
AO
10267 fi
10268 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10269 done
10270fi
10271
10272if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10273 set dummy gcj
10274 if test $build = $target ; then
10275 GCJ_FOR_TARGET="$2"
10276 else
10277 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10278 fi
d3f5afc4
MS
10279else
10280 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10281fi
10282
10283
10284
10285if test -n "$GFORTRAN_FOR_TARGET"; then
10286 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10287elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10288 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10289fi
10290
9a819804
AO
10291if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10292 for ncn_progname in gfortran; do
10293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10294set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10296$as_echo_n "checking for $ac_word... " >&6; }
10297if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10298 $as_echo_n "(cached) " >&6
55db4b87 10299else
9a819804
AO
10300 if test -n "$GFORTRAN_FOR_TARGET"; then
10301 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10302else
c6b750e1
DJ
10303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304for as_dir in $PATH
10305do
10306 IFS=$as_save_IFS
10307 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10310 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10312 break 2
10313 fi
10314done
81ecdfbb
RW
10315 done
10316IFS=$as_save_IFS
c6b750e1 10317
55db4b87
PB
10318fi
10319fi
9a819804
AO
10320GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10321if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10323$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10324else
81ecdfbb
RW
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326$as_echo "no" >&6; }
55db4b87 10327fi
c6b750e1 10328
81ecdfbb 10329
2429c060
PB
10330 done
10331fi
c6b750e1 10332
9a819804 10333if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10334 for ncn_progname in gfortran; do
81ecdfbb
RW
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10336$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10337 if test -x $with_build_time_tools/${ncn_progname}; then
10338 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10340$as_echo "yes" >&6; }
2429c060
PB
10341 break
10342 else
81ecdfbb
RW
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344$as_echo "no" >&6; }
2429c060
PB
10345 fi
10346 done
10347fi
10348
10349if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10350 for ncn_progname in gfortran; do
10351 if test -n "$ncn_target_tool_prefix"; then
10352 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10353set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355$as_echo_n "checking for $ac_word... " >&6; }
10356if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
55db4b87
PB
10358else
10359 if test -n "$GFORTRAN_FOR_TARGET"; then
10360 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10361else
c6b750e1
DJ
10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363for as_dir in $PATH
10364do
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10369 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10371 break 2
10372 fi
10373done
81ecdfbb
RW
10374 done
10375IFS=$as_save_IFS
c6b750e1 10376
55db4b87
PB
10377fi
10378fi
c6b750e1 10379GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10380if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10382$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10383else
81ecdfbb
RW
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385$as_echo "no" >&6; }
55db4b87
PB
10386fi
10387
81ecdfbb 10388
2429c060
PB
10389 fi
10390 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10392set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394$as_echo_n "checking for $ac_word... " >&6; }
10395if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
55db4b87 10397else
05cbd757 10398 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10399 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10400else
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10408 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10410 break 2
10411 fi
10412done
81ecdfbb
RW
10413 done
10414IFS=$as_save_IFS
c6b750e1 10415
55db4b87
PB
10416fi
10417fi
c6b750e1 10418GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10419if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10421$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10422else
81ecdfbb
RW
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424$as_echo "no" >&6; }
55db4b87 10425fi
c6b750e1 10426
81ecdfbb 10427
2429c060
PB
10428 fi
10429 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10430 done
10431fi
c6b750e1 10432
05cbd757
PB
10433if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10434 set dummy gfortran
10435 if test $build = $target ; then
10436 GFORTRAN_FOR_TARGET="$2"
55db4b87 10437 else
05cbd757 10438 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10439 fi
d3f5afc4
MS
10440else
10441 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10442fi
10443
2429c060
PB
10444
10445
e552509b
ILT
10446if test -n "$GOC_FOR_TARGET"; then
10447 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10448elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10449 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10450fi
10451
10452if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10453 for ncn_progname in gccgo; do
10454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10455set dummy ${ncn_progname}; ac_word=$2
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457$as_echo_n "checking for $ac_word... " >&6; }
10458if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10460else
10461 if test -n "$GOC_FOR_TARGET"; then
10462 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10463else
10464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10471 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475done
10476 done
10477IFS=$as_save_IFS
10478
10479fi
10480fi
10481GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10482if test -n "$GOC_FOR_TARGET"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10484$as_echo "$GOC_FOR_TARGET" >&6; }
10485else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487$as_echo "no" >&6; }
10488fi
10489
10490
10491 done
10492fi
10493
10494if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10495 for ncn_progname in gccgo; do
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10497$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10498 if test -x $with_build_time_tools/${ncn_progname}; then
10499 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10501$as_echo "yes" >&6; }
10502 break
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505$as_echo "no" >&6; }
10506 fi
10507 done
10508fi
10509
10510if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10511 for ncn_progname in gccgo; do
10512 if test -n "$ncn_target_tool_prefix"; then
10513 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10514set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516$as_echo_n "checking for $ac_word... " >&6; }
10517if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10518 $as_echo_n "(cached) " >&6
10519else
10520 if test -n "$GOC_FOR_TARGET"; then
10521 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10522else
10523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524for as_dir in $PATH
10525do
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10530 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10533 fi
10534done
10535 done
10536IFS=$as_save_IFS
10537
10538fi
10539fi
10540GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10541if test -n "$GOC_FOR_TARGET"; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10543$as_echo "$GOC_FOR_TARGET" >&6; }
10544else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546$as_echo "no" >&6; }
10547fi
10548
10549
10550 fi
10551 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10553set dummy ${ncn_progname}; ac_word=$2
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555$as_echo_n "checking for $ac_word... " >&6; }
10556if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10557 $as_echo_n "(cached) " >&6
10558else
10559 if test -n "$GOC_FOR_TARGET"; then
10560 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10561else
10562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563for as_dir in $PATH
10564do
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 break 2
10572 fi
10573done
10574 done
10575IFS=$as_save_IFS
10576
10577fi
10578fi
10579GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10580if test -n "$GOC_FOR_TARGET"; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10582$as_echo "$GOC_FOR_TARGET" >&6; }
10583else
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585$as_echo "no" >&6; }
10586fi
10587
10588
10589 fi
10590 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10591 done
10592fi
10593
10594if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10595 set dummy gccgo
10596 if test $build = $target ; then
10597 GOC_FOR_TARGET="$2"
10598 else
10599 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10600 fi
10601else
10602 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10603fi
10604
10605
10606
2429c060
PB
10607cat > conftest.c << \EOF
10608#ifdef __GNUC__
10609 gcc_yay;
10610#endif
10611EOF
10612if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10613 have_gcc_for_target=yes
859789af 10614else
2429c060
PB
10615 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10616 have_gcc_for_target=no
859789af 10617fi
2429c060
PB
10618rm conftest.c
10619
10620
10621
859789af 10622
2429c060
PB
10623if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10624 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10626$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10627 if test -x $with_build_time_tools/ar; then
10628 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10629 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10631$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10632 else
81ecdfbb
RW
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634$as_echo "no" >&6; }
3a35eeb3 10635 fi
2429c060
PB
10636 elif test $build != $host && test $have_gcc_for_target = yes; then
10637 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10638 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10639 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10640 fi
2429c060 10641fi
c6b750e1 10642if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10643 # Extract the first word of "ar", so it can be a program name with args.
10644set dummy ar; ac_word=$2
81ecdfbb
RW
10645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10646$as_echo_n "checking for $ac_word... " >&6; }
10647if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10648 $as_echo_n "(cached) " >&6
859789af 10649else
c6b750e1
DJ
10650 case $AR_FOR_TARGET in
10651 [\\/]* | ?:[\\/]*)
2429c060
PB
10652 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10653 ;;
2429c060 10654 *)
c6b750e1
DJ
10655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656for as_dir in $gcc_cv_tool_dirs
10657do
10658 IFS=$as_save_IFS
10659 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10662 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10664 break 2
10665 fi
10666done
81ecdfbb
RW
10667 done
10668IFS=$as_save_IFS
c6b750e1 10669
2429c060
PB
10670 ;;
10671esac
859789af 10672fi
c6b750e1 10673AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10674if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10676$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10677else
81ecdfbb
RW
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679$as_echo "no" >&6; }
859789af 10680fi
05cbd757 10681
81ecdfbb 10682
2429c060
PB
10683fi
10684if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10685
10686
10687if test -n "$AR_FOR_TARGET"; then
10688 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10689elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10690 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10691fi
10692
10693if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10694 for ncn_progname in ar; do
10695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10696set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698$as_echo_n "checking for $ac_word... " >&6; }
10699if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
9a819804
AO
10701else
10702 if test -n "$AR_FOR_TARGET"; then
10703 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10704else
10705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706for as_dir in $PATH
10707do
10708 IFS=$as_save_IFS
10709 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10710 for ac_exec_ext in '' $ac_executable_extensions; do
10711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10712 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10714 break 2
10715 fi
10716done
81ecdfbb
RW
10717 done
10718IFS=$as_save_IFS
9a819804
AO
10719
10720fi
10721fi
10722AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10723if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10725$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10726else
81ecdfbb
RW
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728$as_echo "no" >&6; }
9a819804
AO
10729fi
10730
81ecdfbb 10731
9a819804
AO
10732 done
10733fi
10734
10735if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10736 for ncn_progname in ar; do
81ecdfbb
RW
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10738$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10739 if test -x $with_build_time_tools/${ncn_progname}; then
10740 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10742$as_echo "yes" >&6; }
2429c060
PB
10743 break
10744 else
81ecdfbb
RW
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746$as_echo "no" >&6; }
2429c060
PB
10747 fi
10748 done
859789af
AC
10749fi
10750
2429c060
PB
10751if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10752 for ncn_progname in ar; do
10753 if test -n "$ncn_target_tool_prefix"; then
10754 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10755set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757$as_echo_n "checking for $ac_word... " >&6; }
10758if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10759 $as_echo_n "(cached) " >&6
7e0f7140 10760else
2429c060
PB
10761 if test -n "$AR_FOR_TARGET"; then
10762 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10763else
c6b750e1
DJ
10764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765for as_dir in $PATH
10766do
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10771 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10773 break 2
10774 fi
10775done
81ecdfbb
RW
10776 done
10777IFS=$as_save_IFS
c6b750e1 10778
7e0f7140
GK
10779fi
10780fi
c6b750e1 10781AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10782if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10784$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10785else
81ecdfbb
RW
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787$as_echo "no" >&6; }
7e0f7140
GK
10788fi
10789
81ecdfbb 10790
2429c060
PB
10791 fi
10792 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10794set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796$as_echo_n "checking for $ac_word... " >&6; }
10797if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10798 $as_echo_n "(cached) " >&6
7e0f7140 10799else
2429c060
PB
10800 if test -n "$AR_FOR_TARGET"; then
10801 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10802else
c6b750e1
DJ
10803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804for as_dir in $PATH
10805do
10806 IFS=$as_save_IFS
10807 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10810 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10812 break 2
10813 fi
10814done
81ecdfbb
RW
10815 done
10816IFS=$as_save_IFS
c6b750e1 10817
7e0f7140
GK
10818fi
10819fi
c6b750e1 10820AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10821if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10823$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10824else
81ecdfbb
RW
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826$as_echo "no" >&6; }
7e0f7140 10827fi
c6b750e1 10828
81ecdfbb 10829
2429c060
PB
10830 fi
10831 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10832 done
10833fi
c6b750e1 10834
2429c060
PB
10835if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10836 set dummy ar
7e0f7140 10837 if test $build = $target ; then
2429c060 10838 AR_FOR_TARGET="$2"
7e0f7140 10839 else
2429c060 10840 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10841 fi
d3f5afc4
MS
10842else
10843 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10844fi
10845
3a35eeb3
PB
10846else
10847 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10848fi
10849
10850
10851
10852
10853if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10854 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10856$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10857 if test -x $with_build_time_tools/as; then
10858 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10859 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10861$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10862 else
81ecdfbb
RW
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864$as_echo "no" >&6; }
3a35eeb3 10865 fi
2429c060
PB
10866 elif test $build != $host && test $have_gcc_for_target = yes; then
10867 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10868 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10869 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10870 fi
10871fi
c6b750e1 10872if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10873 # Extract the first word of "as", so it can be a program name with args.
10874set dummy as; ac_word=$2
81ecdfbb
RW
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876$as_echo_n "checking for $ac_word... " >&6; }
10877if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
2429c060 10879else
c6b750e1
DJ
10880 case $AS_FOR_TARGET in
10881 [\\/]* | ?:[\\/]*)
2429c060
PB
10882 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10883 ;;
2429c060 10884 *)
c6b750e1
DJ
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886for as_dir in $gcc_cv_tool_dirs
10887do
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10892 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10894 break 2
10895 fi
10896done
81ecdfbb
RW
10897 done
10898IFS=$as_save_IFS
c6b750e1 10899
2429c060
PB
10900 ;;
10901esac
10902fi
c6b750e1 10903AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10904if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10906$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10907else
81ecdfbb
RW
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; }
2429c060
PB
10910fi
10911
81ecdfbb 10912
2429c060
PB
10913fi
10914if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10915
10916
10917if test -n "$AS_FOR_TARGET"; then
10918 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10919elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10920 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10921fi
10922
10923if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10924 for ncn_progname in as; do
10925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10926set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10928$as_echo_n "checking for $ac_word... " >&6; }
10929if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10930 $as_echo_n "(cached) " >&6
9a819804
AO
10931else
10932 if test -n "$AS_FOR_TARGET"; then
10933 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10934else
10935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936for as_dir in $PATH
10937do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10942 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10944 break 2
10945 fi
10946done
81ecdfbb
RW
10947 done
10948IFS=$as_save_IFS
9a819804
AO
10949
10950fi
10951fi
10952AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10953if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10955$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10956else
81ecdfbb
RW
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958$as_echo "no" >&6; }
9a819804
AO
10959fi
10960
81ecdfbb 10961
9a819804
AO
10962 done
10963fi
10964
10965if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10966 for ncn_progname in as; do
81ecdfbb
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10968$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10969 if test -x $with_build_time_tools/${ncn_progname}; then
10970 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10972$as_echo "yes" >&6; }
2429c060
PB
10973 break
10974 else
81ecdfbb
RW
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976$as_echo "no" >&6; }
2429c060
PB
10977 fi
10978 done
10979fi
10980
10981if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10982 for ncn_progname in as; do
10983 if test -n "$ncn_target_tool_prefix"; then
10984 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10985set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987$as_echo_n "checking for $ac_word... " >&6; }
10988if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
2429c060
PB
10990else
10991 if test -n "$AS_FOR_TARGET"; then
10992 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10993else
c6b750e1
DJ
10994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997 IFS=$as_save_IFS
10998 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10999 for ac_exec_ext in '' $ac_executable_extensions; do
11000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11001 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11003 break 2
11004 fi
11005done
81ecdfbb
RW
11006 done
11007IFS=$as_save_IFS
c6b750e1 11008
2429c060
PB
11009fi
11010fi
c6b750e1 11011AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11012if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11014$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11015else
81ecdfbb
RW
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017$as_echo "no" >&6; }
2429c060
PB
11018fi
11019
81ecdfbb 11020
2429c060
PB
11021 fi
11022 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11024set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11026$as_echo_n "checking for $ac_word... " >&6; }
11027if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
2429c060
PB
11029else
11030 if test -n "$AS_FOR_TARGET"; then
11031 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11032else
c6b750e1
DJ
11033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034for as_dir in $PATH
11035do
11036 IFS=$as_save_IFS
11037 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11038 for ac_exec_ext in '' $ac_executable_extensions; do
11039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11040 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11042 break 2
11043 fi
11044done
81ecdfbb
RW
11045 done
11046IFS=$as_save_IFS
c6b750e1 11047
2429c060
PB
11048fi
11049fi
c6b750e1 11050AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11051if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11053$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11054else
81ecdfbb
RW
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056$as_echo "no" >&6; }
2429c060 11057fi
c6b750e1 11058
81ecdfbb 11059
2429c060
PB
11060 fi
11061 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11062 done
11063fi
c6b750e1 11064
2429c060
PB
11065if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11066 set dummy as
11067 if test $build = $target ; then
11068 AS_FOR_TARGET="$2"
11069 else
11070 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11071 fi
d3f5afc4
MS
11072else
11073 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11074fi
11075
3a35eeb3
PB
11076else
11077 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11078fi
11079
11080
11081
11082
11083if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11084 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11086$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11087 if test -x $with_build_time_tools/dlltool; then
11088 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11089 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11091$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11092 else
81ecdfbb
RW
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094$as_echo "no" >&6; }
3a35eeb3 11095 fi
2429c060
PB
11096 elif test $build != $host && test $have_gcc_for_target = yes; then
11097 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11098 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11099 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11100 fi
11101fi
c6b750e1 11102if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11103 # Extract the first word of "dlltool", so it can be a program name with args.
11104set dummy dlltool; ac_word=$2
81ecdfbb
RW
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11106$as_echo_n "checking for $ac_word... " >&6; }
11107if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
2429c060 11109else
c6b750e1
DJ
11110 case $DLLTOOL_FOR_TARGET in
11111 [\\/]* | ?:[\\/]*)
2429c060
PB
11112 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11113 ;;
2429c060 11114 *)
c6b750e1
DJ
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116for as_dir in $gcc_cv_tool_dirs
11117do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11122 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11124 break 2
11125 fi
11126done
81ecdfbb
RW
11127 done
11128IFS=$as_save_IFS
c6b750e1 11129
2429c060
PB
11130 ;;
11131esac
11132fi
c6b750e1 11133DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11134if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11136$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11137else
81ecdfbb
RW
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139$as_echo "no" >&6; }
2429c060
PB
11140fi
11141
81ecdfbb 11142
2429c060
PB
11143fi
11144if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11145
11146
11147if test -n "$DLLTOOL_FOR_TARGET"; then
11148 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11149elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11150 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11151fi
11152
11153if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11154 for ncn_progname in dlltool; do
11155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11156set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11158$as_echo_n "checking for $ac_word... " >&6; }
11159if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11160 $as_echo_n "(cached) " >&6
9a819804
AO
11161else
11162 if test -n "$DLLTOOL_FOR_TARGET"; then
11163 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11164else
11165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166for as_dir in $PATH
11167do
11168 IFS=$as_save_IFS
11169 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11170 for ac_exec_ext in '' $ac_executable_extensions; do
11171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11172 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11174 break 2
11175 fi
11176done
81ecdfbb
RW
11177 done
11178IFS=$as_save_IFS
9a819804
AO
11179
11180fi
11181fi
11182DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11183if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11185$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11186else
81ecdfbb
RW
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188$as_echo "no" >&6; }
9a819804
AO
11189fi
11190
81ecdfbb 11191
9a819804
AO
11192 done
11193fi
11194
11195if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11196 for ncn_progname in dlltool; do
81ecdfbb
RW
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11198$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11199 if test -x $with_build_time_tools/${ncn_progname}; then
11200 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11202$as_echo "yes" >&6; }
2429c060
PB
11203 break
11204 else
81ecdfbb
RW
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206$as_echo "no" >&6; }
2429c060
PB
11207 fi
11208 done
11209fi
11210
11211if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11212 for ncn_progname in dlltool; do
11213 if test -n "$ncn_target_tool_prefix"; then
11214 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11215set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217$as_echo_n "checking for $ac_word... " >&6; }
11218if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
2429c060
PB
11220else
11221 if test -n "$DLLTOOL_FOR_TARGET"; then
11222 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11223else
c6b750e1
DJ
11224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225for as_dir in $PATH
11226do
11227 IFS=$as_save_IFS
11228 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11231 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11233 break 2
11234 fi
11235done
81ecdfbb
RW
11236 done
11237IFS=$as_save_IFS
c6b750e1 11238
2429c060
PB
11239fi
11240fi
c6b750e1 11241DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11242if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11244$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11245else
81ecdfbb
RW
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247$as_echo "no" >&6; }
2429c060
PB
11248fi
11249
81ecdfbb 11250
2429c060
PB
11251 fi
11252 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11254set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11256$as_echo_n "checking for $ac_word... " >&6; }
11257if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11258 $as_echo_n "(cached) " >&6
2429c060
PB
11259else
11260 if test -n "$DLLTOOL_FOR_TARGET"; then
11261 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11262else
c6b750e1
DJ
11263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264for as_dir in $PATH
11265do
11266 IFS=$as_save_IFS
11267 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11270 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11272 break 2
11273 fi
11274done
81ecdfbb
RW
11275 done
11276IFS=$as_save_IFS
c6b750e1 11277
2429c060
PB
11278fi
11279fi
c6b750e1 11280DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11281if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11283$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11284else
81ecdfbb
RW
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11286$as_echo "no" >&6; }
2429c060 11287fi
c6b750e1 11288
81ecdfbb 11289
2429c060
PB
11290 fi
11291 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11292 done
11293fi
c6b750e1 11294
2429c060
PB
11295if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11296 set dummy dlltool
11297 if test $build = $target ; then
11298 DLLTOOL_FOR_TARGET="$2"
11299 else
11300 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11301 fi
d3f5afc4
MS
11302else
11303 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11304fi
11305
3a35eeb3
PB
11306else
11307 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11308fi
11309
11310
11311
11312
11313if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11314 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11316$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11317 if test -x $with_build_time_tools/ld; then
11318 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11319 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11321$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11322 else
81ecdfbb
RW
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324$as_echo "no" >&6; }
3a35eeb3 11325 fi
2429c060
PB
11326 elif test $build != $host && test $have_gcc_for_target = yes; then
11327 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11328 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11329 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11330 fi
11331fi
c6b750e1 11332if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11333 # Extract the first word of "ld", so it can be a program name with args.
11334set dummy ld; ac_word=$2
81ecdfbb
RW
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336$as_echo_n "checking for $ac_word... " >&6; }
11337if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11338 $as_echo_n "(cached) " >&6
2429c060 11339else
c6b750e1
DJ
11340 case $LD_FOR_TARGET in
11341 [\\/]* | ?:[\\/]*)
2429c060
PB
11342 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11343 ;;
2429c060 11344 *)
c6b750e1
DJ
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346for as_dir in $gcc_cv_tool_dirs
11347do
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11352 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11354 break 2
11355 fi
11356done
81ecdfbb
RW
11357 done
11358IFS=$as_save_IFS
c6b750e1 11359
2429c060
PB
11360 ;;
11361esac
11362fi
c6b750e1 11363LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11364if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11366$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11367else
81ecdfbb
RW
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369$as_echo "no" >&6; }
2429c060
PB
11370fi
11371
81ecdfbb 11372
2429c060
PB
11373fi
11374if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11375
11376
11377if test -n "$LD_FOR_TARGET"; then
11378 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11379elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11380 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11381fi
11382
11383if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11384 for ncn_progname in ld; do
11385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11386set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388$as_echo_n "checking for $ac_word... " >&6; }
11389if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11390 $as_echo_n "(cached) " >&6
9a819804
AO
11391else
11392 if test -n "$LD_FOR_TARGET"; then
11393 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11394else
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11402 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11404 break 2
11405 fi
11406done
81ecdfbb
RW
11407 done
11408IFS=$as_save_IFS
9a819804
AO
11409
11410fi
11411fi
11412LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11413if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11415$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11416else
81ecdfbb
RW
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
9a819804
AO
11419fi
11420
81ecdfbb 11421
9a819804
AO
11422 done
11423fi
11424
11425if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11426 for ncn_progname in ld; do
81ecdfbb
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11428$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11429 if test -x $with_build_time_tools/${ncn_progname}; then
11430 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11432$as_echo "yes" >&6; }
2429c060
PB
11433 break
11434 else
81ecdfbb
RW
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436$as_echo "no" >&6; }
2429c060
PB
11437 fi
11438 done
11439fi
11440
11441if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11442 for ncn_progname in ld; do
11443 if test -n "$ncn_target_tool_prefix"; then
11444 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11445set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11447$as_echo_n "checking for $ac_word... " >&6; }
11448if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11449 $as_echo_n "(cached) " >&6
2429c060
PB
11450else
11451 if test -n "$LD_FOR_TARGET"; then
11452 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11453else
c6b750e1
DJ
11454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455for as_dir in $PATH
11456do
11457 IFS=$as_save_IFS
11458 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11459 for ac_exec_ext in '' $ac_executable_extensions; do
11460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11461 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11463 break 2
11464 fi
11465done
81ecdfbb
RW
11466 done
11467IFS=$as_save_IFS
c6b750e1 11468
2429c060
PB
11469fi
11470fi
c6b750e1 11471LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11472if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11474$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11475else
81ecdfbb
RW
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477$as_echo "no" >&6; }
2429c060
PB
11478fi
11479
81ecdfbb 11480
2429c060
PB
11481 fi
11482 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11484set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486$as_echo_n "checking for $ac_word... " >&6; }
11487if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11488 $as_echo_n "(cached) " >&6
2429c060
PB
11489else
11490 if test -n "$LD_FOR_TARGET"; then
11491 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11492else
c6b750e1
DJ
11493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494for as_dir in $PATH
11495do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11500 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11502 break 2
11503 fi
11504done
81ecdfbb
RW
11505 done
11506IFS=$as_save_IFS
c6b750e1 11507
2429c060
PB
11508fi
11509fi
c6b750e1 11510LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11511if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11513$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11514else
81ecdfbb
RW
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516$as_echo "no" >&6; }
2429c060 11517fi
c6b750e1 11518
81ecdfbb 11519
2429c060
PB
11520 fi
11521 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11522 done
11523fi
c6b750e1 11524
2429c060
PB
11525if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11526 set dummy ld
11527 if test $build = $target ; then
11528 LD_FOR_TARGET="$2"
11529 else
11530 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11531 fi
d3f5afc4
MS
11532else
11533 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11534fi
11535
3a35eeb3
PB
11536else
11537 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11538fi
11539
11540
11541
11542
11543if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11544 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11546$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11547 if test -x $with_build_time_tools/lipo; then
11548 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11549 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11551$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11552 else
81ecdfbb
RW
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554$as_echo "no" >&6; }
3a35eeb3 11555 fi
2429c060
PB
11556 elif test $build != $host && test $have_gcc_for_target = yes; then
11557 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11558 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11559 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11560 fi
11561fi
9a819804
AO
11562if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11563 # Extract the first word of "lipo", so it can be a program name with args.
11564set dummy lipo; ac_word=$2
81ecdfbb
RW
11565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566$as_echo_n "checking for $ac_word... " >&6; }
11567if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11568 $as_echo_n "(cached) " >&6
9a819804
AO
11569else
11570 case $LIPO_FOR_TARGET in
11571 [\\/]* | ?:[\\/]*)
11572 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11573 ;;
11574 *)
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576for as_dir in $gcc_cv_tool_dirs
11577do
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11582 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11584 break 2
11585 fi
11586done
81ecdfbb
RW
11587 done
11588IFS=$as_save_IFS
9a819804
AO
11589
11590 ;;
11591esac
11592fi
11593LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11594if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11596$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11597else
81ecdfbb
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599$as_echo "no" >&6; }
9a819804
AO
11600fi
11601
81ecdfbb 11602
9a819804
AO
11603fi
11604if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11605
11606
11607if test -n "$LIPO_FOR_TARGET"; then
11608 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11609elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11610 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11611fi
11612
11613if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11614 for ncn_progname in lipo; do
11615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11616set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618$as_echo_n "checking for $ac_word... " >&6; }
11619if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
2429c060 11621else
9a819804
AO
11622 if test -n "$LIPO_FOR_TARGET"; then
11623 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11624else
11625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626for as_dir in $PATH
c6b750e1
DJ
11627do
11628 IFS=$as_save_IFS
11629 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11632 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11634 break 2
11635 fi
11636done
81ecdfbb
RW
11637 done
11638IFS=$as_save_IFS
c6b750e1 11639
2429c060 11640fi
9a819804
AO
11641fi
11642LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11643if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11645$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11646else
81ecdfbb
RW
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648$as_echo "no" >&6; }
2429c060
PB
11649fi
11650
81ecdfbb 11651
9a819804 11652 done
2429c060 11653fi
9a819804
AO
11654
11655if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11656 for ncn_progname in lipo; do
81ecdfbb
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11658$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11659 if test -x $with_build_time_tools/${ncn_progname}; then
11660 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11662$as_echo "yes" >&6; }
2429c060
PB
11663 break
11664 else
81ecdfbb
RW
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666$as_echo "no" >&6; }
2429c060
PB
11667 fi
11668 done
11669fi
11670
11671if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11672 for ncn_progname in lipo; do
11673 if test -n "$ncn_target_tool_prefix"; then
11674 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11675set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677$as_echo_n "checking for $ac_word... " >&6; }
11678if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11679 $as_echo_n "(cached) " >&6
2429c060
PB
11680else
11681 if test -n "$LIPO_FOR_TARGET"; then
11682 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11683else
c6b750e1
DJ
11684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685for as_dir in $PATH
11686do
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11691 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11693 break 2
11694 fi
11695done
81ecdfbb
RW
11696 done
11697IFS=$as_save_IFS
c6b750e1 11698
2429c060
PB
11699fi
11700fi
c6b750e1 11701LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11702if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11704$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11705else
81ecdfbb
RW
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707$as_echo "no" >&6; }
2429c060
PB
11708fi
11709
81ecdfbb 11710
2429c060
PB
11711 fi
11712 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11714set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716$as_echo_n "checking for $ac_word... " >&6; }
11717if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11718 $as_echo_n "(cached) " >&6
2429c060
PB
11719else
11720 if test -n "$LIPO_FOR_TARGET"; then
11721 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11722else
c6b750e1
DJ
11723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724for as_dir in $PATH
11725do
11726 IFS=$as_save_IFS
11727 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11728 for ac_exec_ext in '' $ac_executable_extensions; do
11729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11730 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11732 break 2
11733 fi
11734done
81ecdfbb
RW
11735 done
11736IFS=$as_save_IFS
c6b750e1 11737
2429c060
PB
11738fi
11739fi
c6b750e1 11740LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11741if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11743$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11744else
81ecdfbb
RW
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746$as_echo "no" >&6; }
2429c060 11747fi
c6b750e1 11748
81ecdfbb 11749
2429c060
PB
11750 fi
11751 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11752 done
11753fi
c6b750e1 11754
2429c060
PB
11755if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11756 set dummy lipo
11757 if test $build = $target ; then
11758 LIPO_FOR_TARGET="$2"
11759 else
11760 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11761 fi
d3f5afc4
MS
11762else
11763 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11764fi
11765
3a35eeb3
PB
11766else
11767 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11768fi
11769
11770
11771
11772
11773if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11774 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11776$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11777 if test -x $with_build_time_tools/nm; then
11778 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11779 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11781$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11782 else
81ecdfbb
RW
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784$as_echo "no" >&6; }
3a35eeb3 11785 fi
2429c060
PB
11786 elif test $build != $host && test $have_gcc_for_target = yes; then
11787 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11788 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11789 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11790 fi
11791fi
c6b750e1 11792if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11793 # Extract the first word of "nm", so it can be a program name with args.
11794set dummy nm; ac_word=$2
81ecdfbb
RW
11795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796$as_echo_n "checking for $ac_word... " >&6; }
11797if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11798 $as_echo_n "(cached) " >&6
2429c060 11799else
c6b750e1
DJ
11800 case $NM_FOR_TARGET in
11801 [\\/]* | ?:[\\/]*)
2429c060
PB
11802 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11803 ;;
2429c060 11804 *)
c6b750e1
DJ
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806for as_dir in $gcc_cv_tool_dirs
11807do
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11812 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11814 break 2
11815 fi
11816done
81ecdfbb
RW
11817 done
11818IFS=$as_save_IFS
c6b750e1 11819
2429c060
PB
11820 ;;
11821esac
11822fi
c6b750e1 11823NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11824if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11826$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11827else
81ecdfbb
RW
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829$as_echo "no" >&6; }
2429c060
PB
11830fi
11831
81ecdfbb 11832
2429c060
PB
11833fi
11834if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11835
11836
11837if test -n "$NM_FOR_TARGET"; then
11838 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11839elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11840 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11841fi
11842
11843if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11844 for ncn_progname in nm; do
11845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11846set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848$as_echo_n "checking for $ac_word... " >&6; }
11849if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
9a819804
AO
11851else
11852 if test -n "$NM_FOR_TARGET"; then
11853 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11854else
11855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856for as_dir in $PATH
11857do
11858 IFS=$as_save_IFS
11859 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11860 for ac_exec_ext in '' $ac_executable_extensions; do
11861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11862 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11864 break 2
11865 fi
11866done
81ecdfbb
RW
11867 done
11868IFS=$as_save_IFS
9a819804
AO
11869
11870fi
11871fi
11872NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11873if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11875$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11876else
81ecdfbb
RW
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878$as_echo "no" >&6; }
9a819804
AO
11879fi
11880
81ecdfbb 11881
9a819804
AO
11882 done
11883fi
11884
11885if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11886 for ncn_progname in nm; do
81ecdfbb
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11888$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11889 if test -x $with_build_time_tools/${ncn_progname}; then
11890 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892$as_echo "yes" >&6; }
2429c060
PB
11893 break
11894 else
81ecdfbb
RW
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
2429c060
PB
11897 fi
11898 done
11899fi
11900
11901if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11902 for ncn_progname in nm; do
11903 if test -n "$ncn_target_tool_prefix"; then
11904 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11905set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907$as_echo_n "checking for $ac_word... " >&6; }
11908if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11909 $as_echo_n "(cached) " >&6
859789af 11910else
55db4b87
PB
11911 if test -n "$NM_FOR_TARGET"; then
11912 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11913else
c6b750e1
DJ
11914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915for as_dir in $PATH
11916do
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11919 for ac_exec_ext in '' $ac_executable_extensions; do
11920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11921 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11923 break 2
11924 fi
11925done
81ecdfbb
RW
11926 done
11927IFS=$as_save_IFS
c6b750e1 11928
859789af
AC
11929fi
11930fi
c6b750e1 11931NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11932if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11934$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11935else
81ecdfbb
RW
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937$as_echo "no" >&6; }
859789af
AC
11938fi
11939
81ecdfbb 11940
2429c060
PB
11941 fi
11942 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11944set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946$as_echo_n "checking for $ac_word... " >&6; }
11947if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
859789af 11949else
05cbd757
PB
11950 if test -n "$NM_FOR_TARGET"; then
11951 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11952else
c6b750e1
DJ
11953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954for as_dir in $PATH
11955do
11956 IFS=$as_save_IFS
11957 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11958 for ac_exec_ext in '' $ac_executable_extensions; do
11959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11960 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11962 break 2
11963 fi
11964done
81ecdfbb
RW
11965 done
11966IFS=$as_save_IFS
c6b750e1 11967
859789af
AC
11968fi
11969fi
c6b750e1 11970NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11971if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11973$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11974else
81ecdfbb
RW
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976$as_echo "no" >&6; }
859789af 11977fi
c6b750e1 11978
81ecdfbb 11979
2429c060
PB
11980 fi
11981 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11982 done
11983fi
c6b750e1 11984
05cbd757
PB
11985if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11986 set dummy nm
11987 if test $build = $target ; then
11988 NM_FOR_TARGET="$2"
859789af 11989 else
05cbd757 11990 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11991 fi
d3f5afc4
MS
11992else
11993 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11994fi
11995
3a35eeb3
PB
11996else
11997 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11998fi
11999
12000
12001
12002
12003if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12004 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12006$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12007 if test -x $with_build_time_tools/objdump; then
12008 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12009 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12011$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12012 else
81ecdfbb
RW
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
3a35eeb3 12015 fi
2429c060
PB
12016 elif test $build != $host && test $have_gcc_for_target = yes; then
12017 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12018 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12019 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12020 fi
12021fi
c6b750e1 12022if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12023 # Extract the first word of "objdump", so it can be a program name with args.
12024set dummy objdump; ac_word=$2
81ecdfbb
RW
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12026$as_echo_n "checking for $ac_word... " >&6; }
12027if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12028 $as_echo_n "(cached) " >&6
2429c060 12029else
c6b750e1
DJ
12030 case $OBJDUMP_FOR_TARGET in
12031 [\\/]* | ?:[\\/]*)
2429c060
PB
12032 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12033 ;;
2429c060 12034 *)
c6b750e1
DJ
12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036for as_dir in $gcc_cv_tool_dirs
12037do
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12042 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12044 break 2
12045 fi
12046done
81ecdfbb
RW
12047 done
12048IFS=$as_save_IFS
c6b750e1 12049
2429c060
PB
12050 ;;
12051esac
12052fi
c6b750e1 12053OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12054if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12056$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12057else
81ecdfbb
RW
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059$as_echo "no" >&6; }
2429c060
PB
12060fi
12061
81ecdfbb 12062
2429c060
PB
12063fi
12064if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12065
12066
12067if test -n "$OBJDUMP_FOR_TARGET"; then
12068 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12069elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12070 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12071fi
12072
12073if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12074 for ncn_progname in objdump; do
12075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12076set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12078$as_echo_n "checking for $ac_word... " >&6; }
12079if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12080 $as_echo_n "(cached) " >&6
9a819804
AO
12081else
12082 if test -n "$OBJDUMP_FOR_TARGET"; then
12083 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12084else
12085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086for as_dir in $PATH
12087do
12088 IFS=$as_save_IFS
12089 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12092 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12094 break 2
12095 fi
12096done
81ecdfbb
RW
12097 done
12098IFS=$as_save_IFS
9a819804
AO
12099
12100fi
12101fi
12102OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12103if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12105$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12106else
81ecdfbb
RW
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108$as_echo "no" >&6; }
9a819804
AO
12109fi
12110
81ecdfbb 12111
9a819804
AO
12112 done
12113fi
12114
12115if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12116 for ncn_progname in objdump; do
81ecdfbb
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12118$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12119 if test -x $with_build_time_tools/${ncn_progname}; then
12120 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12122$as_echo "yes" >&6; }
2429c060
PB
12123 break
12124 else
81ecdfbb
RW
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126$as_echo "no" >&6; }
2429c060
PB
12127 fi
12128 done
12129fi
12130
12131if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12132 for ncn_progname in objdump; do
12133 if test -n "$ncn_target_tool_prefix"; then
12134 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12135set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137$as_echo_n "checking for $ac_word... " >&6; }
12138if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
5ae72758
DJ
12140else
12141 if test -n "$OBJDUMP_FOR_TARGET"; then
12142 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12143else
c6b750e1
DJ
12144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145for as_dir in $PATH
12146do
12147 IFS=$as_save_IFS
12148 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12151 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12153 break 2
12154 fi
12155done
81ecdfbb
RW
12156 done
12157IFS=$as_save_IFS
c6b750e1 12158
5ae72758
DJ
12159fi
12160fi
c6b750e1 12161OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12162if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12164$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12165else
81ecdfbb
RW
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167$as_echo "no" >&6; }
5ae72758
DJ
12168fi
12169
81ecdfbb 12170
2429c060
PB
12171 fi
12172 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12174set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176$as_echo_n "checking for $ac_word... " >&6; }
12177if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12178 $as_echo_n "(cached) " >&6
5ae72758
DJ
12179else
12180 if test -n "$OBJDUMP_FOR_TARGET"; then
12181 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12182else
c6b750e1
DJ
12183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184for as_dir in $PATH
12185do
12186 IFS=$as_save_IFS
12187 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12190 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12192 break 2
12193 fi
12194done
81ecdfbb
RW
12195 done
12196IFS=$as_save_IFS
c6b750e1 12197
5ae72758
DJ
12198fi
12199fi
c6b750e1 12200OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12201if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12203$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12204else
81ecdfbb
RW
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206$as_echo "no" >&6; }
5ae72758 12207fi
c6b750e1 12208
81ecdfbb 12209
2429c060
PB
12210 fi
12211 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12212 done
12213fi
c6b750e1 12214
5ae72758
DJ
12215if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12216 set dummy objdump
12217 if test $build = $target ; then
12218 OBJDUMP_FOR_TARGET="$2"
12219 else
12220 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12221 fi
d3f5afc4
MS
12222else
12223 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12224fi
12225
3a35eeb3
PB
12226else
12227 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12228fi
12229
12230
12231
12232
12233if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12234 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12236$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12237 if test -x $with_build_time_tools/ranlib; then
12238 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12239 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12241$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12242 else
81ecdfbb
RW
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244$as_echo "no" >&6; }
3a35eeb3 12245 fi
2429c060
PB
12246 elif test $build != $host && test $have_gcc_for_target = yes; then
12247 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12248 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12249 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12250 fi
12251fi
c6b750e1 12252if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12253 # Extract the first word of "ranlib", so it can be a program name with args.
12254set dummy ranlib; ac_word=$2
81ecdfbb
RW
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256$as_echo_n "checking for $ac_word... " >&6; }
12257if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12258 $as_echo_n "(cached) " >&6
2429c060 12259else
c6b750e1
DJ
12260 case $RANLIB_FOR_TARGET in
12261 [\\/]* | ?:[\\/]*)
2429c060
PB
12262 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12263 ;;
2429c060 12264 *)
c6b750e1
DJ
12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266for as_dir in $gcc_cv_tool_dirs
12267do
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12272 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12274 break 2
12275 fi
12276done
81ecdfbb
RW
12277 done
12278IFS=$as_save_IFS
c6b750e1 12279
2429c060
PB
12280 ;;
12281esac
12282fi
c6b750e1 12283RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12284if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12286$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12287else
81ecdfbb
RW
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
2429c060
PB
12290fi
12291
81ecdfbb 12292
2429c060
PB
12293fi
12294if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12295
12296
12297if test -n "$RANLIB_FOR_TARGET"; then
12298 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12299elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12300 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12301fi
12302
12303if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12304 for ncn_progname in ranlib; do
12305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12306set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308$as_echo_n "checking for $ac_word... " >&6; }
12309if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
9a819804
AO
12311else
12312 if test -n "$RANLIB_FOR_TARGET"; then
12313 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12314else
12315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316for as_dir in $PATH
12317do
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12322 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12324 break 2
12325 fi
12326done
81ecdfbb
RW
12327 done
12328IFS=$as_save_IFS
9a819804
AO
12329
12330fi
12331fi
12332RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12333if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12335$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12336else
81ecdfbb
RW
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338$as_echo "no" >&6; }
9a819804
AO
12339fi
12340
81ecdfbb 12341
9a819804
AO
12342 done
12343fi
12344
12345if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12346 for ncn_progname in ranlib; do
81ecdfbb
RW
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12348$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12349 if test -x $with_build_time_tools/${ncn_progname}; then
12350 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12352$as_echo "yes" >&6; }
2429c060
PB
12353 break
12354 else
81ecdfbb
RW
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356$as_echo "no" >&6; }
2429c060
PB
12357 fi
12358 done
12359fi
12360
12361if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12362 for ncn_progname in ranlib; do
12363 if test -n "$ncn_target_tool_prefix"; then
12364 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12365set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367$as_echo_n "checking for $ac_word... " >&6; }
12368if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12369 $as_echo_n "(cached) " >&6
859789af 12370else
55db4b87
PB
12371 if test -n "$RANLIB_FOR_TARGET"; then
12372 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12373else
c6b750e1
DJ
12374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375for as_dir in $PATH
12376do
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12381 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12383 break 2
12384 fi
12385done
81ecdfbb
RW
12386 done
12387IFS=$as_save_IFS
c6b750e1 12388
859789af
AC
12389fi
12390fi
c6b750e1 12391RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12392if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12394$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12395else
81ecdfbb
RW
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397$as_echo "no" >&6; }
859789af
AC
12398fi
12399
81ecdfbb 12400
2429c060
PB
12401 fi
12402 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12404set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406$as_echo_n "checking for $ac_word... " >&6; }
12407if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12408 $as_echo_n "(cached) " >&6
859789af 12409else
05cbd757
PB
12410 if test -n "$RANLIB_FOR_TARGET"; then
12411 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12412else
c6b750e1
DJ
12413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414for as_dir in $PATH
12415do
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12420 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12422 break 2
12423 fi
12424done
81ecdfbb
RW
12425 done
12426IFS=$as_save_IFS
c6b750e1 12427
859789af
AC
12428fi
12429fi
c6b750e1 12430RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12431if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12433$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12434else
81ecdfbb
RW
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436$as_echo "no" >&6; }
859789af 12437fi
c6b750e1 12438
81ecdfbb 12439
2429c060
PB
12440 fi
12441 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12442 done
12443fi
c6b750e1 12444
2429c060
PB
12445if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12446 set dummy ranlib
12447 if test $build = $target ; then
12448 RANLIB_FOR_TARGET="$2"
12449 else
12450 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12451 fi
d3f5afc4
MS
12452else
12453 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12454fi
05cbd757 12455
3a35eeb3
PB
12456else
12457 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12458fi
12459
2429c060
PB
12460
12461
12462
12463if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12464 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12466$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12467 if test -x $with_build_time_tools/strip; then
12468 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12469 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12471$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12472 else
81ecdfbb
RW
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12474$as_echo "no" >&6; }
3a35eeb3 12475 fi
2429c060
PB
12476 elif test $build != $host && test $have_gcc_for_target = yes; then
12477 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12478 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12479 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12480 fi
12481fi
c6b750e1 12482if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12483 # Extract the first word of "strip", so it can be a program name with args.
12484set dummy strip; ac_word=$2
81ecdfbb
RW
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486$as_echo_n "checking for $ac_word... " >&6; }
12487if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12488 $as_echo_n "(cached) " >&6
2429c060 12489else
c6b750e1
DJ
12490 case $STRIP_FOR_TARGET in
12491 [\\/]* | ?:[\\/]*)
2429c060
PB
12492 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12493 ;;
2429c060 12494 *)
c6b750e1
DJ
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496for as_dir in $gcc_cv_tool_dirs
12497do
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12502 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12504 break 2
12505 fi
12506done
81ecdfbb
RW
12507 done
12508IFS=$as_save_IFS
c6b750e1 12509
2429c060
PB
12510 ;;
12511esac
12512fi
c6b750e1 12513STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12514if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12516$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12517else
81ecdfbb
RW
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519$as_echo "no" >&6; }
2429c060
PB
12520fi
12521
81ecdfbb 12522
2429c060
PB
12523fi
12524if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12525
12526
12527if test -n "$STRIP_FOR_TARGET"; then
12528 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12529elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12530 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12531fi
12532
12533if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12534 for ncn_progname in strip; do
12535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12536set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538$as_echo_n "checking for $ac_word... " >&6; }
12539if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12540 $as_echo_n "(cached) " >&6
9a819804
AO
12541else
12542 if test -n "$STRIP_FOR_TARGET"; then
12543 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12544else
12545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546for as_dir in $PATH
12547do
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12552 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12554 break 2
12555 fi
12556done
81ecdfbb
RW
12557 done
12558IFS=$as_save_IFS
9a819804
AO
12559
12560fi
12561fi
12562STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12563if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12565$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12566else
81ecdfbb
RW
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568$as_echo "no" >&6; }
9a819804
AO
12569fi
12570
81ecdfbb 12571
9a819804
AO
12572 done
12573fi
12574
12575if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12576 for ncn_progname in strip; do
81ecdfbb
RW
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12578$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12579 if test -x $with_build_time_tools/${ncn_progname}; then
12580 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12582$as_echo "yes" >&6; }
2429c060
PB
12583 break
12584 else
81ecdfbb
RW
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
2429c060
PB
12587 fi
12588 done
12589fi
12590
12591if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12592 for ncn_progname in strip; do
12593 if test -n "$ncn_target_tool_prefix"; then
12594 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12595set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597$as_echo_n "checking for $ac_word... " >&6; }
12598if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
7e0f7140
GK
12600else
12601 if test -n "$STRIP_FOR_TARGET"; then
12602 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12603else
12604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605for as_dir in $PATH
12606do
12607 IFS=$as_save_IFS
12608 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12609 for ac_exec_ext in '' $ac_executable_extensions; do
12610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12611 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12613 break 2
12614 fi
12615done
81ecdfbb
RW
12616 done
12617IFS=$as_save_IFS
c6b750e1 12618
7e0f7140
GK
12619fi
12620fi
c6b750e1 12621STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12622if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12624$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12625else
81ecdfbb
RW
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627$as_echo "no" >&6; }
7e0f7140
GK
12628fi
12629
81ecdfbb 12630
2429c060
PB
12631 fi
12632 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12634set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636$as_echo_n "checking for $ac_word... " >&6; }
12637if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
7e0f7140
GK
12639else
12640 if test -n "$STRIP_FOR_TARGET"; then
12641 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12642else
c6b750e1
DJ
12643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644for as_dir in $PATH
12645do
12646 IFS=$as_save_IFS
12647 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12648 for ac_exec_ext in '' $ac_executable_extensions; do
12649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12650 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12652 break 2
12653 fi
12654done
81ecdfbb
RW
12655 done
12656IFS=$as_save_IFS
c6b750e1 12657
7e0f7140
GK
12658fi
12659fi
c6b750e1 12660STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12661if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12663$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12664else
81ecdfbb
RW
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666$as_echo "no" >&6; }
7e0f7140 12667fi
c6b750e1 12668
81ecdfbb 12669
2429c060
PB
12670 fi
12671 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12672 done
12673fi
c6b750e1 12674
7e0f7140
GK
12675if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12676 set dummy strip
12677 if test $build = $target ; then
12678 STRIP_FOR_TARGET="$2"
12679 else
12680 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12681 fi
d3f5afc4
MS
12682else
12683 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12684fi
12685
3a35eeb3
PB
12686else
12687 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12688fi
12689
12690
12691
12692
12693if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12694 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12696$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12697 if test -x $with_build_time_tools/windres; then
12698 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12699 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12701$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12702 else
81ecdfbb
RW
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704$as_echo "no" >&6; }
3a35eeb3 12705 fi
2429c060
PB
12706 elif test $build != $host && test $have_gcc_for_target = yes; then
12707 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12708 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12709 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12710 fi
12711fi
c6b750e1 12712if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12713 # Extract the first word of "windres", so it can be a program name with args.
12714set dummy windres; ac_word=$2
81ecdfbb
RW
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716$as_echo_n "checking for $ac_word... " >&6; }
12717if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12718 $as_echo_n "(cached) " >&6
2429c060 12719else
c6b750e1
DJ
12720 case $WINDRES_FOR_TARGET in
12721 [\\/]* | ?:[\\/]*)
2429c060
PB
12722 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12723 ;;
2429c060 12724 *)
c6b750e1
DJ
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726for as_dir in $gcc_cv_tool_dirs
12727do
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12732 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12734 break 2
12735 fi
12736done
81ecdfbb
RW
12737 done
12738IFS=$as_save_IFS
c6b750e1 12739
2429c060
PB
12740 ;;
12741esac
12742fi
c6b750e1 12743WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12744if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12746$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12747else
81ecdfbb
RW
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749$as_echo "no" >&6; }
2429c060
PB
12750fi
12751
81ecdfbb 12752
2429c060
PB
12753fi
12754if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12755
12756
12757if test -n "$WINDRES_FOR_TARGET"; then
12758 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12759elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12760 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12761fi
12762
12763if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12764 for ncn_progname in windres; do
12765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12766set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12768$as_echo_n "checking for $ac_word... " >&6; }
12769if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
9a819804
AO
12771else
12772 if test -n "$WINDRES_FOR_TARGET"; then
12773 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12774else
12775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776for as_dir in $PATH
12777do
12778 IFS=$as_save_IFS
12779 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12782 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12784 break 2
12785 fi
12786done
81ecdfbb
RW
12787 done
12788IFS=$as_save_IFS
9a819804
AO
12789
12790fi
12791fi
12792WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12793if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12795$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12796else
81ecdfbb
RW
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798$as_echo "no" >&6; }
9a819804
AO
12799fi
12800
81ecdfbb 12801
9a819804
AO
12802 done
12803fi
12804
12805if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12806 for ncn_progname in windres; do
81ecdfbb
RW
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12808$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12809 if test -x $with_build_time_tools/${ncn_progname}; then
12810 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12812$as_echo "yes" >&6; }
2429c060
PB
12813 break
12814 else
81ecdfbb
RW
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816$as_echo "no" >&6; }
2429c060
PB
12817 fi
12818 done
12819fi
12820
12821if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12822 for ncn_progname in windres; do
12823 if test -n "$ncn_target_tool_prefix"; then
12824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12825set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12827$as_echo_n "checking for $ac_word... " >&6; }
12828if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12829 $as_echo_n "(cached) " >&6
859789af 12830else
55db4b87
PB
12831 if test -n "$WINDRES_FOR_TARGET"; then
12832 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12833else
c6b750e1
DJ
12834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835for as_dir in $PATH
12836do
12837 IFS=$as_save_IFS
12838 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12839 for ac_exec_ext in '' $ac_executable_extensions; do
12840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12841 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12843 break 2
12844 fi
12845done
81ecdfbb
RW
12846 done
12847IFS=$as_save_IFS
c6b750e1 12848
859789af
AC
12849fi
12850fi
c6b750e1 12851WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12852if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12854$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12855else
81ecdfbb
RW
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857$as_echo "no" >&6; }
859789af
AC
12858fi
12859
81ecdfbb 12860
2429c060
PB
12861 fi
12862 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12864set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12866$as_echo_n "checking for $ac_word... " >&6; }
12867if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12868 $as_echo_n "(cached) " >&6
859789af 12869else
05cbd757
PB
12870 if test -n "$WINDRES_FOR_TARGET"; then
12871 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12872else
c6b750e1
DJ
12873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12874for as_dir in $PATH
12875do
12876 IFS=$as_save_IFS
12877 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12878 for ac_exec_ext in '' $ac_executable_extensions; do
12879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12880 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12882 break 2
12883 fi
12884done
81ecdfbb
RW
12885 done
12886IFS=$as_save_IFS
c6b750e1 12887
859789af
AC
12888fi
12889fi
c6b750e1 12890WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12891if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12893$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12894else
81ecdfbb
RW
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896$as_echo "no" >&6; }
859789af 12897fi
c6b750e1 12898
81ecdfbb 12899
2429c060
PB
12900 fi
12901 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12902 done
12903fi
c6b750e1 12904
05cbd757
PB
12905if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12906 set dummy windres
12907 if test $build = $target ; then
12908 WINDRES_FOR_TARGET="$2"
859789af 12909 else
05cbd757 12910 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12911 fi
d3f5afc4
MS
12912else
12913 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12914fi
12915
3a35eeb3
PB
12916else
12917 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12918fi
12919
852e5f18 12920
0c24b341
NC
12921
12922
12923if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12924 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12926$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12927 if test -x $with_build_time_tools/windmc; then
12928 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12929 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12931$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12932 else
81ecdfbb
RW
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934$as_echo "no" >&6; }
0c24b341
NC
12935 fi
12936 elif test $build != $host && test $have_gcc_for_target = yes; then
12937 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12938 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12939 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12940 fi
12941fi
12942if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12943 # Extract the first word of "windmc", so it can be a program name with args.
12944set dummy windmc; ac_word=$2
81ecdfbb
RW
12945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946$as_echo_n "checking for $ac_word... " >&6; }
12947if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12948 $as_echo_n "(cached) " >&6
0c24b341
NC
12949else
12950 case $WINDMC_FOR_TARGET in
12951 [\\/]* | ?:[\\/]*)
12952 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12953 ;;
12954 *)
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956for as_dir in $gcc_cv_tool_dirs
12957do
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12962 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12964 break 2
12965 fi
12966done
81ecdfbb
RW
12967 done
12968IFS=$as_save_IFS
0c24b341
NC
12969
12970 ;;
12971esac
12972fi
12973WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12974if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12976$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12977else
81ecdfbb
RW
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979$as_echo "no" >&6; }
0c24b341
NC
12980fi
12981
81ecdfbb 12982
0c24b341
NC
12983fi
12984if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12985
12986
12987if test -n "$WINDMC_FOR_TARGET"; then
12988 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12989elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12990 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12991fi
12992
12993if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12994 for ncn_progname in windmc; do
12995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12996set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
12999if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
0c24b341
NC
13001else
13002 if test -n "$WINDMC_FOR_TARGET"; then
13003 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13004else
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13012 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13014 break 2
13015 fi
13016done
81ecdfbb
RW
13017 done
13018IFS=$as_save_IFS
0c24b341
NC
13019
13020fi
13021fi
13022WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13023if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13025$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13026else
81ecdfbb
RW
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028$as_echo "no" >&6; }
0c24b341
NC
13029fi
13030
81ecdfbb 13031
0c24b341
NC
13032 done
13033fi
13034
13035if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13036 for ncn_progname in windmc; do
81ecdfbb
RW
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13038$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13039 if test -x $with_build_time_tools/${ncn_progname}; then
13040 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13042$as_echo "yes" >&6; }
0c24b341
NC
13043 break
13044 else
81ecdfbb
RW
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046$as_echo "no" >&6; }
0c24b341
NC
13047 fi
13048 done
13049fi
13050
13051if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13052 for ncn_progname in windmc; do
13053 if test -n "$ncn_target_tool_prefix"; then
13054 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13055set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13057$as_echo_n "checking for $ac_word... " >&6; }
13058if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13059 $as_echo_n "(cached) " >&6
0c24b341
NC
13060else
13061 if test -n "$WINDMC_FOR_TARGET"; then
13062 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13063else
13064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13065for as_dir in $PATH
13066do
13067 IFS=$as_save_IFS
13068 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13069 for ac_exec_ext in '' $ac_executable_extensions; do
13070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13071 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13073 break 2
13074 fi
13075done
81ecdfbb
RW
13076 done
13077IFS=$as_save_IFS
0c24b341
NC
13078
13079fi
13080fi
13081WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13082if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13084$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13085else
81ecdfbb
RW
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087$as_echo "no" >&6; }
0c24b341
NC
13088fi
13089
81ecdfbb 13090
0c24b341
NC
13091 fi
13092 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13094set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096$as_echo_n "checking for $ac_word... " >&6; }
13097if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13098 $as_echo_n "(cached) " >&6
0c24b341
NC
13099else
13100 if test -n "$WINDMC_FOR_TARGET"; then
13101 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13102else
13103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104for as_dir in $PATH
13105do
13106 IFS=$as_save_IFS
13107 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13110 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13112 break 2
13113 fi
13114done
81ecdfbb
RW
13115 done
13116IFS=$as_save_IFS
0c24b341
NC
13117
13118fi
13119fi
13120WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13121if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13123$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13124else
81ecdfbb
RW
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126$as_echo "no" >&6; }
0c24b341
NC
13127fi
13128
81ecdfbb 13129
0c24b341
NC
13130 fi
13131 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13132 done
13133fi
13134
13135if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13136 set dummy windmc
13137 if test $build = $target ; then
13138 WINDMC_FOR_TARGET="$2"
13139 else
13140 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13141 fi
13142else
13143 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13144fi
13145
13146else
13147 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13148fi
13149
13150
be01d343
PB
13151RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13152
81ecdfbb
RW
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13154$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13155if test "x${build}" != "x${host}" ; then
2429c060
PB
13156 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13157 # We already found the complete path
b8025f34 13158 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13160$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13161 else
13162 # Canadian cross, just use what we found
81ecdfbb
RW
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13164$as_echo "pre-installed" >&6; }
2429c060 13165 fi
be01d343
PB
13166else
13167 ok=yes
13168 case " ${configdirs} " in
13169 *" binutils "*) ;;
13170 *) ok=no ;;
13171 esac
c6b750e1 13172
be01d343
PB
13173 if test $ok = yes; then
13174 # An in-tree tool is available and we can use it
13175 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13177$as_echo "just compiled" >&6; }
2429c060
PB
13178 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13179 # We already found the complete path
b8025f34 13180 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13182$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13183 elif test "x$target" = "x$host"; then
13184 # We can use an host tool
13185 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13187$as_echo "host tool" >&6; }
be01d343
PB
13188 else
13189 # We need a cross tool
81ecdfbb
RW
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13191$as_echo "pre-installed" >&6; }
be01d343
PB
13192 fi
13193fi
4b900473 13194
81ecdfbb
RW
13195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13196$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13197if test "x${build}" != "x${host}" ; then
2429c060
PB
13198 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13199 # We already found the complete path
b8025f34 13200 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13202$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13203 else
13204 # Canadian cross, just use what we found
81ecdfbb
RW
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13206$as_echo "pre-installed" >&6; }
2429c060 13207 fi
be01d343
PB
13208else
13209 ok=yes
13210 case " ${configdirs} " in
13211 *" gas "*) ;;
13212 *) ok=no ;;
13213 esac
c6b750e1 13214
be01d343
PB
13215 if test $ok = yes; then
13216 # An in-tree tool is available and we can use it
13217 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13219$as_echo "just compiled" >&6; }
2429c060
PB
13220 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13221 # We already found the complete path
b8025f34 13222 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13224$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13225 elif test "x$target" = "x$host"; then
13226 # We can use an host tool
13227 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13229$as_echo "host tool" >&6; }
be01d343
PB
13230 else
13231 # We need a cross tool
81ecdfbb
RW
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13233$as_echo "pre-installed" >&6; }
be01d343
PB
13234 fi
13235fi
4b900473 13236
81ecdfbb
RW
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13238$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13239if test "x${build}" != "x${host}" ; then
2429c060
PB
13240 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13241 # We already found the complete path
b8025f34 13242 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13244$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13245 else
13246 # Canadian cross, just use what we found
81ecdfbb
RW
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13248$as_echo "pre-installed" >&6; }
2429c060 13249 fi
be01d343
PB
13250else
13251 ok=yes
13252 case " ${configdirs} " in
13253 *" gcc "*) ;;
13254 *) ok=no ;;
13255 esac
c6b750e1 13256
be01d343
PB
13257 if test $ok = yes; then
13258 # An in-tree tool is available and we can use it
13259 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13261$as_echo "just compiled" >&6; }
2429c060
PB
13262 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13263 # We already found the complete path
b8025f34 13264 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13266$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13267 elif test "x$target" = "x$host"; then
13268 # We can use an host tool
13269 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13271$as_echo "host tool" >&6; }
be01d343
PB
13272 else
13273 # We need a cross tool
81ecdfbb
RW
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13275$as_echo "pre-installed" >&6; }
be01d343
PB
13276 fi
13277fi
4b900473 13278
81ecdfbb
RW
13279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13280$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13281if test "x${build}" != "x${host}" ; then
2429c060
PB
13282 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13283 # We already found the complete path
b8025f34 13284 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13286$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13287 else
13288 # Canadian cross, just use what we found
81ecdfbb
RW
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13290$as_echo "pre-installed" >&6; }
2429c060 13291 fi
be01d343
PB
13292else
13293 ok=yes
13294 case " ${configdirs} " in
13295 *" gcc "*) ;;
13296 *) ok=no ;;
13297 esac
13298 case ,${enable_languages}, in
13299 *,c++,*) ;;
13300 *) ok=no ;;
13301 esac
13302 if test $ok = yes; then
13303 # An in-tree tool is available and we can use it
87cda2cf 13304 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
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13306$as_echo "just compiled" >&6; }
2429c060
PB
13307 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13308 # We already found the complete path
b8025f34 13309 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13311$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13312 elif test "x$target" = "x$host"; then
13313 # We can use an host tool
13314 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13316$as_echo "host tool" >&6; }
be01d343
PB
13317 else
13318 # We need a cross tool
81ecdfbb
RW
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13320$as_echo "pre-installed" >&6; }
be01d343
PB
13321 fi
13322fi
4b900473 13323
81ecdfbb
RW
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13325$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13326if test "x${build}" != "x${host}" ; then
2429c060
PB
13327 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13328 # We already found the complete path
b8025f34 13329 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13331$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13332 else
13333 # Canadian cross, just use what we found
81ecdfbb
RW
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13335$as_echo "pre-installed" >&6; }
2429c060 13336 fi
be01d343
PB
13337else
13338 ok=yes
13339 case " ${configdirs} " in
13340 *" gcc "*) ;;
13341 *) ok=no ;;
13342 esac
13343 case ,${enable_languages}, in
13344 *,c++,*) ;;
13345 *) ok=no ;;
13346 esac
13347 if test $ok = yes; then
13348 # An in-tree tool is available and we can use it
13349 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
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13351$as_echo "just compiled" >&6; }
2429c060
PB
13352 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13353 # We already found the complete path
b8025f34 13354 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13356$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13357 elif test "x$target" = "x$host"; then
13358 # We can use an host tool
13359 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13361$as_echo "host tool" >&6; }
be01d343
PB
13362 else
13363 # We need a cross tool
81ecdfbb
RW
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13365$as_echo "pre-installed" >&6; }
be01d343
PB
13366 fi
13367fi
4b900473 13368
81ecdfbb
RW
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13370$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13371if test "x${build}" != "x${host}" ; then
2429c060
PB
13372 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13373 # We already found the complete path
b8025f34 13374 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13376$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13377 else
13378 # Canadian cross, just use what we found
81ecdfbb
RW
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13380$as_echo "pre-installed" >&6; }
2429c060 13381 fi
be01d343
PB
13382else
13383 ok=yes
13384 case " ${configdirs} " in
13385 *" binutils "*) ;;
13386 *) ok=no ;;
13387 esac
c6b750e1 13388
be01d343
PB
13389 if test $ok = yes; then
13390 # An in-tree tool is available and we can use it
13391 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13393$as_echo "just compiled" >&6; }
2429c060
PB
13394 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13395 # We already found the complete path
b8025f34 13396 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13398$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13399 elif test "x$target" = "x$host"; then
13400 # We can use an host tool
13401 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13403$as_echo "host tool" >&6; }
be01d343
PB
13404 else
13405 # We need a cross tool
81ecdfbb
RW
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13407$as_echo "pre-installed" >&6; }
be01d343
PB
13408 fi
13409fi
4b900473 13410
81ecdfbb
RW
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13412$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13413if test "x${build}" != "x${host}" ; then
2429c060
PB
13414 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13415 # We already found the complete path
b8025f34 13416 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13418$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13419 else
13420 # Canadian cross, just use what we found
81ecdfbb
RW
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13422$as_echo "pre-installed" >&6; }
2429c060 13423 fi
be01d343
PB
13424else
13425 ok=yes
13426 case " ${configdirs} " in
13427 *" gcc "*) ;;
13428 *) ok=no ;;
13429 esac
c6b750e1 13430
be01d343
PB
13431 if test $ok = yes; then
13432 # An in-tree tool is available and we can use it
13433 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13435$as_echo "just compiled" >&6; }
2429c060
PB
13436 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13437 # We already found the complete path
b8025f34 13438 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13440$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13441 elif test "x$target" = "x$host"; then
13442 # We can use an host tool
13443 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13445$as_echo "host tool" >&6; }
be01d343
PB
13446 else
13447 # We need a cross tool
81ecdfbb
RW
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13449$as_echo "pre-installed" >&6; }
be01d343
PB
13450 fi
13451fi
4b900473 13452
81ecdfbb
RW
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13454$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13455if test "x${build}" != "x${host}" ; then
2429c060
PB
13456 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13457 # We already found the complete path
b8025f34 13458 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13460$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13461 else
13462 # Canadian cross, just use what we found
81ecdfbb
RW
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13464$as_echo "pre-installed" >&6; }
2429c060 13465 fi
be01d343
PB
13466else
13467 ok=yes
13468 case " ${configdirs} " in
13469 *" gcc "*) ;;
13470 *) ok=no ;;
13471 esac
13472 case ,${enable_languages}, in
13473 *,java,*) ;;
13474 *) ok=no ;;
13475 esac
13476 if test $ok = yes; then
13477 # An in-tree tool is available and we can use it
13478 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13480$as_echo "just compiled" >&6; }
2429c060
PB
13481 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13482 # We already found the complete path
b8025f34 13483 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13485$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13486 elif test "x$target" = "x$host"; then
13487 # We can use an host tool
13488 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13490$as_echo "host tool" >&6; }
be01d343
PB
13491 else
13492 # We need a cross tool
81ecdfbb
RW
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13494$as_echo "pre-installed" >&6; }
be01d343
PB
13495 fi
13496fi
4b900473 13497
81ecdfbb
RW
13498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13499$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13500if test "x${build}" != "x${host}" ; then
2429c060
PB
13501 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13502 # We already found the complete path
b8025f34 13503 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13505$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13506 else
13507 # Canadian cross, just use what we found
81ecdfbb
RW
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13509$as_echo "pre-installed" >&6; }
2429c060 13510 fi
be01d343
PB
13511else
13512 ok=yes
13513 case " ${configdirs} " in
13514 *" gcc "*) ;;
13515 *) ok=no ;;
13516 esac
13517 case ,${enable_languages}, in
13518 *,fortran,*) ;;
13519 *) ok=no ;;
13520 esac
13521 if test $ok = yes; then
13522 # An in-tree tool is available and we can use it
13523 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13525$as_echo "just compiled" >&6; }
2429c060
PB
13526 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13527 # We already found the complete path
b8025f34 13528 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13530$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13531 elif test "x$target" = "x$host"; then
13532 # We can use an host tool
13533 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13535$as_echo "host tool" >&6; }
be01d343
PB
13536 else
13537 # We need a cross tool
81ecdfbb
RW
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13539$as_echo "pre-installed" >&6; }
be01d343
PB
13540 fi
13541fi
4b900473 13542
e552509b
ILT
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13544$as_echo_n "checking where to find the target gccgo... " >&6; }
13545if test "x${build}" != "x${host}" ; then
13546 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13547 # We already found the complete path
13548 ac_dir=`dirname $GOC_FOR_TARGET`
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13550$as_echo "pre-installed in $ac_dir" >&6; }
13551 else
13552 # Canadian cross, just use what we found
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13554$as_echo "pre-installed" >&6; }
13555 fi
13556else
13557 ok=yes
13558 case " ${configdirs} " in
13559 *" gcc "*) ;;
13560 *) ok=no ;;
13561 esac
13562 case ,${enable_languages}, in
13563 *,go,*) ;;
13564 *) ok=no ;;
13565 esac
13566 if test $ok = yes; then
13567 # An in-tree tool is available and we can use it
13568 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13570$as_echo "just compiled" >&6; }
13571 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13572 # We already found the complete path
13573 ac_dir=`dirname $GOC_FOR_TARGET`
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13575$as_echo "pre-installed in $ac_dir" >&6; }
13576 elif test "x$target" = "x$host"; then
13577 # We can use an host tool
13578 GOC_FOR_TARGET='$(GOC)'
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13580$as_echo "host tool" >&6; }
13581 else
13582 # We need a cross tool
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13584$as_echo "pre-installed" >&6; }
13585 fi
13586fi
13587
81ecdfbb
RW
13588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13589$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13590if test "x${build}" != "x${host}" ; then
2429c060
PB
13591 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13592 # We already found the complete path
b8025f34 13593 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13595$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13596 else
13597 # Canadian cross, just use what we found
81ecdfbb
RW
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13599$as_echo "pre-installed" >&6; }
2429c060 13600 fi
be01d343
PB
13601else
13602 ok=yes
13603 case " ${configdirs} " in
13604 *" ld "*) ;;
13605 *) ok=no ;;
13606 esac
c6b750e1 13607
be01d343
PB
13608 if test $ok = yes; then
13609 # An in-tree tool is available and we can use it
13610 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13612$as_echo "just compiled" >&6; }
2429c060
PB
13613 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13614 # We already found the complete path
b8025f34 13615 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13617$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13618 elif test "x$target" = "x$host"; then
13619 # We can use an host tool
13620 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13622$as_echo "host tool" >&6; }
be01d343
PB
13623 else
13624 # We need a cross tool
81ecdfbb
RW
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13626$as_echo "pre-installed" >&6; }
be01d343
PB
13627 fi
13628fi
4b900473 13629
81ecdfbb
RW
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13631$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13632if test "x${build}" != "x${host}" ; then
2429c060
PB
13633 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13634 # We already found the complete path
b8025f34 13635 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13637$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13638 else
13639 # Canadian cross, just use what we found
81ecdfbb
RW
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13641$as_echo "pre-installed" >&6; }
2429c060 13642 fi
be01d343 13643else
2429c060
PB
13644 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13645 # We already found the complete path
b8025f34 13646 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13648$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13649 elif test "x$target" = "x$host"; then
be01d343
PB
13650 # We can use an host tool
13651 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13653$as_echo "host tool" >&6; }
be01d343
PB
13654 else
13655 # We need a cross tool
81ecdfbb
RW
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13657$as_echo "pre-installed" >&6; }
be01d343
PB
13658 fi
13659fi
4b900473 13660
81ecdfbb
RW
13661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13662$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13663if test "x${build}" != "x${host}" ; then
2429c060
PB
13664 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13665 # We already found the complete path
b8025f34 13666 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13668$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13669 else
13670 # Canadian cross, just use what we found
81ecdfbb
RW
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13672$as_echo "pre-installed" >&6; }
2429c060 13673 fi
be01d343
PB
13674else
13675 ok=yes
13676 case " ${configdirs} " in
13677 *" binutils "*) ;;
13678 *) ok=no ;;
13679 esac
c6b750e1 13680
be01d343
PB
13681 if test $ok = yes; then
13682 # An in-tree tool is available and we can use it
13683 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13685$as_echo "just compiled" >&6; }
2429c060
PB
13686 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13687 # We already found the complete path
b8025f34 13688 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13690$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13691 elif test "x$target" = "x$host"; then
13692 # We can use an host tool
13693 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13695$as_echo "host tool" >&6; }
be01d343
PB
13696 else
13697 # We need a cross tool
81ecdfbb
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13699$as_echo "pre-installed" >&6; }
be01d343
PB
13700 fi
13701fi
4b900473 13702
81ecdfbb
RW
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13704$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13705if test "x${build}" != "x${host}" ; then
2429c060
PB
13706 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13707 # We already found the complete path
b8025f34 13708 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13710$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13711 else
13712 # Canadian cross, just use what we found
81ecdfbb
RW
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13714$as_echo "pre-installed" >&6; }
2429c060 13715 fi
be01d343
PB
13716else
13717 ok=yes
13718 case " ${configdirs} " in
13719 *" binutils "*) ;;
13720 *) ok=no ;;
13721 esac
c6b750e1 13722
be01d343
PB
13723 if test $ok = yes; then
13724 # An in-tree tool is available and we can use it
13725 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13727$as_echo "just compiled" >&6; }
2429c060
PB
13728 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13729 # We already found the complete path
b8025f34 13730 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13732$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13733 elif test "x$target" = "x$host"; then
13734 # We can use an host tool
13735 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13737$as_echo "host tool" >&6; }
be01d343
PB
13738 else
13739 # We need a cross tool
81ecdfbb
RW
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13741$as_echo "pre-installed" >&6; }
be01d343
PB
13742 fi
13743fi
4b900473 13744
81ecdfbb
RW
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13746$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13747if test "x${build}" != "x${host}" ; then
2429c060
PB
13748 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13749 # We already found the complete path
b8025f34 13750 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13752$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13753 else
13754 # Canadian cross, just use what we found
81ecdfbb
RW
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13756$as_echo "pre-installed" >&6; }
2429c060 13757 fi
be01d343
PB
13758else
13759 ok=yes
13760 case " ${configdirs} " in
13761 *" binutils "*) ;;
13762 *) ok=no ;;
13763 esac
c6b750e1 13764
be01d343
PB
13765 if test $ok = yes; then
13766 # An in-tree tool is available and we can use it
13767 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13769$as_echo "just compiled" >&6; }
2429c060
PB
13770 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13771 # We already found the complete path
b8025f34 13772 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13774$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13775 elif test "x$target" = "x$host"; then
13776 # We can use an host tool
13777 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13779$as_echo "host tool" >&6; }
be01d343
PB
13780 else
13781 # We need a cross tool
81ecdfbb
RW
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13783$as_echo "pre-installed" >&6; }
be01d343
PB
13784 fi
13785fi
4b900473 13786
81ecdfbb
RW
13787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13788$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13789if test "x${build}" != "x${host}" ; then
2429c060
PB
13790 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13791 # We already found the complete path
b8025f34 13792 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13794$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13795 else
13796 # Canadian cross, just use what we found
81ecdfbb
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13798$as_echo "pre-installed" >&6; }
2429c060 13799 fi
be01d343
PB
13800else
13801 ok=yes
13802 case " ${configdirs} " in
13803 *" binutils "*) ;;
13804 *) ok=no ;;
13805 esac
c6b750e1 13806
be01d343
PB
13807 if test $ok = yes; then
13808 # An in-tree tool is available and we can use it
9b980aa1 13809 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13811$as_echo "just compiled" >&6; }
2429c060
PB
13812 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13813 # We already found the complete path
b8025f34 13814 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13816$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13817 elif test "x$target" = "x$host"; then
13818 # We can use an host tool
13819 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13821$as_echo "host tool" >&6; }
be01d343
PB
13822 else
13823 # We need a cross tool
81ecdfbb
RW
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13825$as_echo "pre-installed" >&6; }
be01d343
PB
13826 fi
13827fi
4b900473 13828
81ecdfbb
RW
13829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13830$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13831if test "x${build}" != "x${host}" ; then
2429c060
PB
13832 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13833 # We already found the complete path
b8025f34 13834 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13836$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13837 else
13838 # Canadian cross, just use what we found
81ecdfbb
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13840$as_echo "pre-installed" >&6; }
2429c060 13841 fi
be01d343
PB
13842else
13843 ok=yes
13844 case " ${configdirs} " in
13845 *" binutils "*) ;;
13846 *) ok=no ;;
13847 esac
c6b750e1 13848
be01d343
PB
13849 if test $ok = yes; then
13850 # An in-tree tool is available and we can use it
13851 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13853$as_echo "just compiled" >&6; }
2429c060
PB
13854 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13855 # We already found the complete path
b8025f34 13856 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13858$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13859 elif test "x$target" = "x$host"; then
13860 # We can use an host tool
13861 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13863$as_echo "host tool" >&6; }
be01d343
PB
13864 else
13865 # We need a cross tool
81ecdfbb
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13867$as_echo "pre-installed" >&6; }
be01d343 13868 fi
a0da8069 13869fi
54752a6b 13870
81ecdfbb
RW
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13872$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13873if test "x${build}" != "x${host}" ; then
13874 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13875 # We already found the complete path
13876 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13878$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13879 else
13880 # Canadian cross, just use what we found
81ecdfbb
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13882$as_echo "pre-installed" >&6; }
0c24b341
NC
13883 fi
13884else
13885 ok=yes
13886 case " ${configdirs} " in
13887 *" binutils "*) ;;
13888 *) ok=no ;;
13889 esac
13890
13891 if test $ok = yes; then
13892 # An in-tree tool is available and we can use it
13893 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13895$as_echo "just compiled" >&6; }
0c24b341
NC
13896 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13897 # We already found the complete path
13898 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13900$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13901 elif test "x$target" = "x$host"; then
13902 # We can use an host tool
13903 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13905$as_echo "host tool" >&6; }
0c24b341
NC
13906 else
13907 # We need a cross tool
81ecdfbb
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13909$as_echo "pre-installed" >&6; }
0c24b341
NC
13910 fi
13911fi
13912
54752a6b
NN
13913
13914
be01d343 13915
4b900473 13916
a0da8069
NN
13917# Certain tools may need extra flags.
13918AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13919RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13920NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13921
be01d343
PB
13922# When building target libraries, except in a Canadian cross, we use
13923# the same toolchain as the compiler we just built.
13924COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13925COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13926COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13927if test $host = $build; then
13928 case " $configdirs " in
13929 *" gcc "*)
13930 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13931 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13932 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13933 ;;
13934 esac
13935fi
13936
13937
13938
13939
13940
81ecdfbb
RW
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13942$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13943# Check whether --enable-maintainer-mode was given.
13944if test "${enable_maintainer_mode+set}" = set; then :
13945 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13946else
13947 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13948fi
13949
13950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13951$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13952
13953
13954if test "$USE_MAINTAINER_MODE" = yes; then
13955 MAINTAINER_MODE_TRUE=
13956 MAINTAINER_MODE_FALSE='#'
13957else
13958 MAINTAINER_MODE_TRUE='#'
13959 MAINTAINER_MODE_FALSE=
c6b750e1 13960fi
3d5e36ae
AO
13961MAINT=$MAINTAINER_MODE_TRUE
13962
1d39f329
NN
13963# ---------------------
13964# GCC bootstrap support
13965# ---------------------
13966
13967# Stage specific cflags for build.
13968stage1_cflags="-g"
13969case $build in
13970 vax-*-*)
13971 case ${GCC} in
13972 yes) stage1_cflags="-g -Wa,-J" ;;
13973 *) stage1_cflags="-g -J" ;;
13974 esac ;;
1d39f329
NN
13975esac
13976
1d89b610 13977# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 13978if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
13979 saved_CFLAGS="$CFLAGS"
13980
13981 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13982 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13984$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
13986/* end confdefs.h. */
13987
2038f525
PB
13988#if (__GNUC__ < 3) \
13989 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13990 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13991#error http://gcc.gnu.org/PR29382
13992#endif
13993
c6b750e1
DJ
13994int
13995main ()
13996{
13997
13998 ;
13999 return 0;
14000}
14001_ACEOF
81ecdfbb
RW
14002if ac_fn_c_try_compile "$LINENO"; then :
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14004$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14005else
81ecdfbb
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007$as_echo "no" >&6; }
c6b750e1 14008fi
81ecdfbb 14009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14010
14011 CFLAGS="$saved_CFLAGS"
14012fi
14013
14014
1d39f329 14015
8a0d8a5c 14016# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14017# Check whether --enable-stage1-checking was given.
14018if test "${enable_stage1_checking+set}" = set; then :
14019 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14020else
5566c1fa 14021 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14022 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14023else
5566c1fa 14024 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14025fi
81ecdfbb 14026fi
8a0d8a5c
PB
14027
14028
c6b750e1 14029
81ecdfbb
RW
14030# Enable -Werror in bootstrap stage2 and later.
14031# Check whether --enable-werror was given.
14032if test "${enable_werror+set}" = set; then :
14033 enableval=$enable_werror;
1d39f329 14034else
a0323144 14035 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14036 enable_werror=yes
79fcd0ec
PB
14037else
14038 enable_werror=no
14039fi
81ecdfbb
RW
14040fi
14041
1a6f2dc7
NN
14042case ${enable_werror} in
14043 yes) stage2_werror_flag="--enable-werror-always" ;;
14044 *) stage2_werror_flag="" ;;
1d39f329
NN
14045esac
14046
14047
e8a5fa9c
RW
14048# Specify what files to not compare during bootstrap.
14049
14050compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14051case "$target" in
14052 hppa*64*-*-hpux*) ;;
14053 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14054esac
1f53ca9a
AO
14055case " $configdirs " in
14056*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14057esac
e8a5fa9c
RW
14058
14059
81ecdfbb
RW
14060ac_config_files="$ac_config_files Makefile"
14061
c6b750e1 14062cat >confcache <<\_ACEOF
a0da8069
NN
14063# This file is a shell script that caches the results of configure
14064# tests run on this system so they can be shared between configure
c6b750e1
DJ
14065# scripts and configure runs, see configure's option --config-cache.
14066# It is not useful on other systems. If it contains results you don't
14067# want to keep, you may remove or edit it.
a0da8069 14068#
c6b750e1
DJ
14069# config.status only pays attention to the cache file if you give it
14070# the --recheck option to rerun configure.
a0da8069 14071#
c6b750e1
DJ
14072# `ac_cv_env_foo' variables (set or unset) will be overridden when
14073# loading this file, other *unset* `ac_cv_foo' will be assigned the
14074# following values.
14075
14076_ACEOF
14077
a0da8069
NN
14078# The following way of writing the cache mishandles newlines in values,
14079# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14080# So, we kill variables containing newlines.
a0da8069
NN
14081# Ultrix sh set writes to stderr and can't be redirected directly,
14082# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14083(
14084 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14085 eval ac_val=\$$ac_var
14086 case $ac_val in #(
14087 *${as_nl}*)
14088 case $ac_var in #(
14089 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14090$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14091 esac
14092 case $ac_var in #(
14093 _ | IFS | as_nl) ;; #(
14094 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14095 *) { eval $ac_var=; unset $ac_var;} ;;
14096 esac ;;
14097 esac
14098 done
14099
c6b750e1 14100 (set) 2>&1 |
81ecdfbb
RW
14101 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14102 *${as_nl}ac_space=\ *)
14103 # `set' does not quote correctly, so add quotes: double-quote
14104 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14105 sed -n \
14106 "s/'/'\\\\''/g;
14107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14108 ;; #(
c6b750e1
DJ
14109 *)
14110 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14112 ;;
81ecdfbb
RW
14113 esac |
14114 sort
14115) |
c6b750e1 14116 sed '
81ecdfbb 14117 /^ac_cv_env_/b end
c6b750e1 14118 t clear
81ecdfbb 14119 :clear
c6b750e1
DJ
14120 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14121 t end
81ecdfbb
RW
14122 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14123 :end' >>confcache
14124if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14125 if test -w "$cache_file"; then
14126 test "x$cache_file" != "x/dev/null" &&
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14128$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14129 cat confcache >$cache_file
a0da8069 14130 else
81ecdfbb
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14132$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14133 fi
852e5f18 14134fi
a0da8069 14135rm -f confcache
852e5f18 14136
a0da8069
NN
14137test "x$prefix" = xNONE && prefix=$ac_default_prefix
14138# Let make expand exec_prefix.
14139test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14140
a0da8069
NN
14141# Transform confdefs.h into DEFS.
14142# Protect against shell expansion while executing Makefile rules.
14143# Protect against Makefile macro expansion.
c6b750e1
DJ
14144#
14145# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14146# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14147# look for a macro that doesn't take arguments.
81ecdfbb
RW
14148ac_script='
14149:mline
14150/\\$/{
14151 N
14152 s,\\\n,,
14153 b mline
14154}
c6b750e1 14155t clear
81ecdfbb
RW
14156:clear
14157s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14158t quote
81ecdfbb 14159s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14160t quote
81ecdfbb
RW
14161b any
14162:quote
14163s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14164s/\[/\\&/g
14165s/\]/\\&/g
14166s/\$/$$/g
14167H
14168:any
14169${
14170 g
14171 s/^\n//
14172 s/\n/ /g
14173 p
14174}
14175'
14176DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14177
14178
14179ac_libobjs=
14180ac_ltlibobjs=
14181for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14182 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14183 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14184 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14185 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14186 # will be set to the directory where LIBOBJS objects are built.
14187 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14188 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14189done
14190LIBOBJS=$ac_libobjs
852e5f18 14191
c6b750e1 14192LTLIBOBJS=$ac_ltlibobjs
376a0e54 14193
cac3d6c4 14194
c6b750e1
DJ
14195
14196: ${CONFIG_STATUS=./config.status}
81ecdfbb 14197ac_write_fail=0
c6b750e1
DJ
14198ac_clean_files_save=$ac_clean_files
14199ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14200{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14201$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14202as_write_fail=0
14203cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14204#! $SHELL
14205# Generated by $as_me.
a0da8069 14206# Run this file to recreate the current configuration.
a0da8069 14207# Compiler output produced by configure, useful for debugging
c6b750e1 14208# configure, is in config.log if it exists.
376a0e54 14209
c6b750e1
DJ
14210debug=false
14211ac_cs_recheck=false
14212ac_cs_silent=false
c6b750e1 14213
81ecdfbb
RW
14214SHELL=\${CONFIG_SHELL-$SHELL}
14215export SHELL
14216_ASEOF
14217cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14218## -------------------- ##
14219## M4sh Initialization. ##
14220## -------------------- ##
14221
14222# Be more Bourne compatible
14223DUALCASE=1; export DUALCASE # for MKS sh
14224if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14225 emulate sh
14226 NULLCMD=:
81ecdfbb 14227 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14228 # is contrary to our usage. Disable this feature.
14229 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14230 setopt NO_GLOB_SUBST
14231else
14232 case `(set -o) 2>/dev/null` in #(
14233 *posix*) :
14234 set -o posix ;; #(
14235 *) :
14236 ;;
14237esac
c6b750e1 14238fi
c6b750e1 14239
81ecdfbb
RW
14240
14241as_nl='
14242'
14243export as_nl
14244# Printing a long string crashes Solaris 7 /usr/bin/printf.
14245as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14246as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14247as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14248# Prefer a ksh shell builtin over an external printf program on Solaris,
14249# but without wasting forks for bash or zsh.
14250if test -z "$BASH_VERSION$ZSH_VERSION" \
14251 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14252 as_echo='print -r --'
14253 as_echo_n='print -rn --'
14254elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14255 as_echo='printf %s\n'
14256 as_echo_n='printf %s'
14257else
14258 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14259 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14260 as_echo_n='/usr/ucb/echo -n'
14261 else
14262 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14263 as_echo_n_body='eval
14264 arg=$1;
14265 case $arg in #(
14266 *"$as_nl"*)
14267 expr "X$arg" : "X\\(.*\\)$as_nl";
14268 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14269 esac;
14270 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14271 '
14272 export as_echo_n_body
14273 as_echo_n='sh -c $as_echo_n_body as_echo'
14274 fi
14275 export as_echo_body
14276 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14277fi
14278
81ecdfbb
RW
14279# The user is always right.
14280if test "${PATH_SEPARATOR+set}" != set; then
14281 PATH_SEPARATOR=:
14282 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14283 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14284 PATH_SEPARATOR=';'
14285 }
14286fi
14287
14288
14289# IFS
14290# We need space, tab and new line, in precisely that order. Quoting is
14291# there to prevent editors from complaining about space-tab.
14292# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14293# splitting by setting IFS to empty value.)
14294IFS=" "" $as_nl"
14295
14296# Find who we are. Look in the path if we contain no directory separator.
14297case $0 in #((
14298 *[\\/]* ) as_myself=$0 ;;
14299 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14300for as_dir in $PATH
14301do
14302 IFS=$as_save_IFS
14303 test -z "$as_dir" && as_dir=.
14304 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14305 done
14306IFS=$as_save_IFS
14307
14308 ;;
14309esac
14310# We did not find ourselves, most probably we were run as `sh COMMAND'
14311# in which case we are not to be found in the path.
14312if test "x$as_myself" = x; then
14313 as_myself=$0
14314fi
14315if test ! -f "$as_myself"; then
14316 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14317 exit 1
14318fi
c6b750e1 14319
81ecdfbb
RW
14320# Unset variables that we do not need and which cause bugs (e.g. in
14321# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14322# suppresses any "Segmentation fault" message there. '((' could
14323# trigger a bug in pdksh 5.2.14.
14324for as_var in BASH_ENV ENV MAIL MAILPATH
14325do eval test x\${$as_var+set} = xset \
14326 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14327done
c6b750e1
DJ
14328PS1='$ '
14329PS2='> '
14330PS4='+ '
14331
14332# NLS nuisances.
81ecdfbb
RW
14333LC_ALL=C
14334export LC_ALL
14335LANGUAGE=C
14336export LANGUAGE
14337
14338# CDPATH.
14339(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14340
14341
14342# as_fn_error ERROR [LINENO LOG_FD]
14343# ---------------------------------
14344# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14345# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14346# script with status $?, using 1 if that was 0.
14347as_fn_error ()
14348{
14349 as_status=$?; test $as_status -eq 0 && as_status=1
14350 if test "$3"; then
14351 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14352 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14353 fi
81ecdfbb
RW
14354 $as_echo "$as_me: error: $1" >&2
14355 as_fn_exit $as_status
14356} # as_fn_error
14357
14358
14359# as_fn_set_status STATUS
14360# -----------------------
14361# Set $? to STATUS, without forking.
14362as_fn_set_status ()
14363{
14364 return $1
14365} # as_fn_set_status
14366
14367# as_fn_exit STATUS
14368# -----------------
14369# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14370as_fn_exit ()
14371{
14372 set +e
14373 as_fn_set_status $1
14374 exit $1
14375} # as_fn_exit
14376
14377# as_fn_unset VAR
14378# ---------------
14379# Portably unset VAR.
14380as_fn_unset ()
14381{
14382 { eval $1=; unset $1;}
14383}
14384as_unset=as_fn_unset
14385# as_fn_append VAR VALUE
14386# ----------------------
14387# Append the text in VALUE to the end of the definition contained in VAR. Take
14388# advantage of any shell optimizations that allow amortized linear growth over
14389# repeated appends, instead of the typical quadratic growth present in naive
14390# implementations.
14391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14392 eval 'as_fn_append ()
14393 {
14394 eval $1+=\$2
14395 }'
14396else
14397 as_fn_append ()
14398 {
14399 eval $1=\$$1\$2
14400 }
14401fi # as_fn_append
14402
14403# as_fn_arith ARG...
14404# ------------------
14405# Perform arithmetic evaluation on the ARGs, and store the result in the
14406# global $as_val. Take advantage of shells that can avoid forks. The arguments
14407# must be portable across $(()) and expr.
14408if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14409 eval 'as_fn_arith ()
14410 {
14411 as_val=$(( $* ))
14412 }'
14413else
14414 as_fn_arith ()
14415 {
14416 as_val=`expr "$@" || test $? -eq 1`
14417 }
14418fi # as_fn_arith
14419
c6b750e1 14420
81ecdfbb
RW
14421if expr a : '\(a\)' >/dev/null 2>&1 &&
14422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14423 as_expr=expr
14424else
14425 as_expr=false
14426fi
14427
81ecdfbb 14428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14429 as_basename=basename
14430else
14431 as_basename=false
14432fi
14433
81ecdfbb
RW
14434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14435 as_dirname=dirname
14436else
14437 as_dirname=false
14438fi
c6b750e1 14439
81ecdfbb 14440as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14442 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14444$as_echo X/"$0" |
14445 sed '/^.*\/\([^/][^/]*\)\/*$/{
14446 s//\1/
14447 q
14448 }
14449 /^X\/\(\/\/\)$/{
14450 s//\1/
14451 q
14452 }
14453 /^X\/\(\/\).*/{
14454 s//\1/
14455 q
14456 }
14457 s/.*/./; q'`
c6b750e1 14458
c6b750e1
DJ
14459# Avoid depending upon Character Ranges.
14460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14463as_cr_digits='0123456789'
14464as_cr_alnum=$as_cr_Letters$as_cr_digits
14465
81ecdfbb
RW
14466ECHO_C= ECHO_N= ECHO_T=
14467case `echo -n x` in #(((((
14468-n*)
14469 case `echo 'xy\c'` in
14470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14471 xy) ECHO_C='\c';;
14472 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14473 ECHO_T=' ';;
14474 esac;;
14475*)
14476 ECHO_N='-n';;
c6b750e1
DJ
14477esac
14478
81ecdfbb
RW
14479rm -f conf$$ conf$$.exe conf$$.file
14480if test -d conf$$.dir; then
14481 rm -f conf$$.dir/conf$$.file
c6b750e1 14482else
81ecdfbb
RW
14483 rm -f conf$$.dir
14484 mkdir conf$$.dir 2>/dev/null
c6b750e1 14485fi
81ecdfbb
RW
14486if (echo >conf$$.file) 2>/dev/null; then
14487 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14488 as_ln_s='ln -s'
81ecdfbb
RW
14489 # ... but there are two gotchas:
14490 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14491 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14492 # In both cases, we have to default to `cp -p'.
14493 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14494 as_ln_s='cp -p'
14495 elif ln conf$$.file conf$$ 2>/dev/null; then
14496 as_ln_s=ln
14497 else
14498 as_ln_s='cp -p'
c6b750e1 14499 fi
c6b750e1
DJ
14500else
14501 as_ln_s='cp -p'
14502fi
81ecdfbb
RW
14503rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14504rmdir conf$$.dir 2>/dev/null
14505
14506
14507# as_fn_mkdir_p
14508# -------------
14509# Create "$as_dir" as a directory, including parents if necessary.
14510as_fn_mkdir_p ()
14511{
14512
14513 case $as_dir in #(
14514 -*) as_dir=./$as_dir;;
14515 esac
14516 test -d "$as_dir" || eval $as_mkdir_p || {
14517 as_dirs=
14518 while :; do
14519 case $as_dir in #(
14520 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14521 *) as_qdir=$as_dir;;
14522 esac
14523 as_dirs="'$as_qdir' $as_dirs"
14524 as_dir=`$as_dirname -- "$as_dir" ||
14525$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14526 X"$as_dir" : 'X\(//\)[^/]' \| \
14527 X"$as_dir" : 'X\(//\)$' \| \
14528 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14529$as_echo X"$as_dir" |
14530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14531 s//\1/
14532 q
14533 }
14534 /^X\(\/\/\)[^/].*/{
14535 s//\1/
14536 q
14537 }
14538 /^X\(\/\/\)$/{
14539 s//\1/
14540 q
14541 }
14542 /^X\(\/\).*/{
14543 s//\1/
14544 q
14545 }
14546 s/.*/./; q'`
14547 test -d "$as_dir" && break
14548 done
14549 test -z "$as_dirs" || eval "mkdir $as_dirs"
14550 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14551
c6b750e1 14552
81ecdfbb 14553} # as_fn_mkdir_p
c6b750e1 14554if mkdir -p . 2>/dev/null; then
81ecdfbb 14555 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14556else
14557 test -d ./-p && rmdir ./-p
14558 as_mkdir_p=false
14559fi
14560
81ecdfbb
RW
14561if test -x / >/dev/null 2>&1; then
14562 as_test_x='test -x'
14563else
14564 if ls -dL / >/dev/null 2>&1; then
14565 as_ls_L_option=L
14566 else
14567 as_ls_L_option=
14568 fi
14569 as_test_x='
14570 eval sh -c '\''
14571 if test -d "$1"; then
14572 test -d "$1/.";
14573 else
14574 case $1 in #(
14575 -*)set "./$1";;
14576 esac;
14577 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14578 ???[sx]*):;;*)false;;esac;fi
14579 '\'' sh
14580 '
14581fi
14582as_executable_p=$as_test_x
c6b750e1
DJ
14583
14584# Sed expression to map a string onto a valid CPP name.
14585as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14586
14587# Sed expression to map a string onto a valid variable name.
14588as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14589
14590
c6b750e1 14591exec 6>&1
81ecdfbb
RW
14592## ----------------------------------- ##
14593## Main body of $CONFIG_STATUS script. ##
14594## ----------------------------------- ##
14595_ASEOF
14596test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14597
14598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14599# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14600# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14601# values after options handling.
14602ac_log="
c6b750e1 14603This file was extended by $as_me, which was
81ecdfbb 14604generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14605
14606 CONFIG_FILES = $CONFIG_FILES
14607 CONFIG_HEADERS = $CONFIG_HEADERS
14608 CONFIG_LINKS = $CONFIG_LINKS
14609 CONFIG_COMMANDS = $CONFIG_COMMANDS
14610 $ $0 $@
14611
81ecdfbb
RW
14612on `(hostname || uname -n) 2>/dev/null | sed 1q`
14613"
14614
c6b750e1
DJ
14615_ACEOF
14616
81ecdfbb
RW
14617case $ac_config_files in *"
14618"*) set x $ac_config_files; shift; ac_config_files=$*;;
14619esac
c6b750e1 14620
c6b750e1 14621
c6b750e1 14622
81ecdfbb
RW
14623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14624# Files that config.status was made for.
14625config_files="$ac_config_files"
c6b750e1 14626
81ecdfbb 14627_ACEOF
c6b750e1 14628
81ecdfbb 14629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14630ac_cs_usage="\
81ecdfbb
RW
14631\`$as_me' instantiates files and other configuration actions
14632from templates according to the current configuration. Unless the files
14633and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14634
81ecdfbb 14635Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14636
14637 -h, --help print this help, then exit
81ecdfbb
RW
14638 -V, --version print version number and configuration settings, then exit
14639 -q, --quiet, --silent
14640 do not print progress messages
c6b750e1
DJ
14641 -d, --debug don't remove temporary files
14642 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14643 --file=FILE[:TEMPLATE]
14644 instantiate the configuration file FILE
c6b750e1
DJ
14645
14646Configuration files:
14647$config_files
14648
81ecdfbb 14649Report bugs to the package provider."
c6b750e1 14650
81ecdfbb
RW
14651_ACEOF
14652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14653ac_cs_version="\\
14654config.status
81ecdfbb
RW
14655configured by $0, generated by GNU Autoconf 2.64,
14656 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14657
81ecdfbb 14658Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14659This config.status script is free software; the Free Software Foundation
14660gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14661
14662ac_pwd='$ac_pwd'
14663srcdir='$srcdir'
14664INSTALL='$INSTALL'
8e957354 14665AWK='$AWK'
81ecdfbb 14666test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14667_ACEOF
14668
81ecdfbb
RW
14669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14670# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14671ac_need_defaults=:
14672while test $# != 0
a0da8069 14673do
c6b750e1
DJ
14674 case $1 in
14675 --*=*)
81ecdfbb
RW
14676 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14677 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14678 ac_shift=:
14679 ;;
81ecdfbb 14680 *)
c6b750e1
DJ
14681 ac_option=$1
14682 ac_optarg=$2
14683 ac_shift=shift
14684 ;;
c6b750e1
DJ
14685 esac
14686
14687 case $ac_option in
14688 # Handling of the options.
a0da8069 14689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14690 ac_cs_recheck=: ;;
81ecdfbb
RW
14691 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14692 $as_echo "$ac_cs_version"; exit ;;
14693 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14694 debug=: ;;
14695 --file | --fil | --fi | --f )
14696 $ac_shift
81ecdfbb
RW
14697 case $ac_optarg in
14698 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14699 esac
14700 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14701 ac_need_defaults=false;;
81ecdfbb
RW
14702 --he | --h | --help | --hel | -h )
14703 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14705 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14706 ac_cs_silent=: ;;
14707
14708 # This is an error.
81ecdfbb
RW
14709 -*) as_fn_error "unrecognized option: \`$1'
14710Try \`$0 --help' for more information." ;;
c6b750e1 14711
81ecdfbb
RW
14712 *) as_fn_append ac_config_targets " $1"
14713 ac_need_defaults=false ;;
c6b750e1 14714
376a0e54 14715 esac
c6b750e1 14716 shift
376a0e54
CM
14717done
14718
c6b750e1 14719ac_configure_extra_args=
376a0e54 14720
c6b750e1
DJ
14721if $ac_cs_silent; then
14722 exec 6>/dev/null
14723 ac_configure_extra_args="$ac_configure_extra_args --silent"
14724fi
376a0e54 14725
c6b750e1 14726_ACEOF
81ecdfbb 14727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14728if \$ac_cs_recheck; then
81ecdfbb
RW
14729 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14730 shift
14731 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14732 CONFIG_SHELL='$SHELL'
14733 export CONFIG_SHELL
14734 exec "\$@"
c6b750e1
DJ
14735fi
14736
14737_ACEOF
81ecdfbb
RW
14738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14739exec 5>>config.log
14740{
14741 echo
14742 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14743## Running $as_me. ##
14744_ASBOX
14745 $as_echo "$ac_log"
14746} >&5
c6b750e1 14747
81ecdfbb
RW
14748_ACEOF
14749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14750#
14751# INIT-COMMANDS
14752#
14753extrasub_build="$extrasub_build"
14754 extrasub_host="$extrasub_host"
14755 extrasub_target="$extrasub_target"
14756
81ecdfbb 14757_ACEOF
c6b750e1 14758
81ecdfbb 14759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14760
81ecdfbb 14761# Handling of arguments.
c6b750e1
DJ
14762for ac_config_target in $ac_config_targets
14763do
81ecdfbb
RW
14764 case $ac_config_target in
14765 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14766
14767 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14768 esac
14769done
14770
81ecdfbb 14771
c6b750e1
DJ
14772# If the user did not use the arguments to specify the items to instantiate,
14773# then the envvar interface is used. Set only those that are not.
14774# We use the long form for the default assignment because of an extremely
14775# bizarre bug on SunOS 4.1.3.
14776if $ac_need_defaults; then
14777 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14778fi
14779
14780# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14781# simply because there is no reason against having it here, and in addition,
c6b750e1 14782# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14783# Hook for its removal unless debugging.
14784# Note that there is a small window in which the directory will not be cleaned:
14785# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14786$debug ||
14787{
81ecdfbb
RW
14788 tmp=
14789 trap 'exit_status=$?
14790 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14791' 0
14792 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14793}
c6b750e1
DJ
14794# Create a (secure) tmp directory for tmp files.
14795
14796{
81ecdfbb 14797 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14798 test -n "$tmp" && test -d "$tmp"
14799} ||
14800{
81ecdfbb
RW
14801 tmp=./conf$$-$RANDOM
14802 (umask 077 && mkdir "$tmp")
14803} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14804
14805# Set up the scripts for CONFIG_FILES section.
14806# No need to generate them if there are no CONFIG_FILES.
14807# This happens for instance with `./config.status config.h'.
14808if test -n "$CONFIG_FILES"; then
14809
14810if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14811 ac_cs_awk_getline=:
14812 ac_cs_awk_pipe_init=
14813 ac_cs_awk_read_file='
14814 while ((getline aline < (F[key])) > 0)
14815 print(aline)
14816 close(F[key])'
14817 ac_cs_awk_pipe_fini=
14818else
14819 ac_cs_awk_getline=false
14820 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14821 ac_cs_awk_read_file='
14822 print "|#_!!_#|"
14823 print "cat " F[key] " &&"
14824 '$ac_cs_awk_pipe_init
14825 # The final `:' finishes the AND list.
14826 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14827fi
14828ac_cr=`echo X | tr X '\015'`
14829# On cygwin, bash can eat \r inside `` if the user requested igncr.
14830# But we know of no other shell where ac_cr would be empty at this
14831# point, so we can use a bashism as a fallback.
14832if test "x$ac_cr" = x; then
14833 eval ac_cr=\$\'\\r\'
14834fi
14835ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14836if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14837 ac_cs_awk_cr='\r'
14838else
14839 ac_cs_awk_cr=$ac_cr
14840fi
14841
14842echo 'BEGIN {' >"$tmp/subs1.awk" &&
14843_ACEOF
14844
14845# Create commands to substitute file output variables.
c6b750e1 14846{
81ecdfbb
RW
14847 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14848 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14849 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14850 echo "_ACAWK" &&
14851 echo "_ACEOF"
14852} >conf$$files.sh &&
14853. ./conf$$files.sh ||
14854 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14855rm -f conf$$files.sh
c6b750e1 14856
81ecdfbb
RW
14857{
14858 echo "cat >conf$$subs.awk <<_ACEOF" &&
14859 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14860 echo "_ACEOF"
14861} >conf$$subs.sh ||
14862 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14863ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14864ac_delim='%!_!# '
14865for ac_last_try in false false false false false :; do
14866 . ./conf$$subs.sh ||
14867 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14868
14869 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14870 if test $ac_delim_n = $ac_delim_num; then
14871 break
14872 elif $ac_last_try; then
14873 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14874 else
14875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14876 fi
14877done
14878rm -f conf$$subs.sh
14879
14880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14881cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14882_ACEOF
81ecdfbb
RW
14883sed -n '
14884h
14885s/^/S["/; s/!.*/"]=/
14886p
14887g
14888s/^[^!]*!//
14889:repl
14890t repl
14891s/'"$ac_delim"'$//
14892t delim
14893:nl
14894h
14895s/\(.\{148\}\).*/\1/
14896t more1
14897s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14898p
14899n
14900b repl
14901:more1
14902s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14903p
14904g
14905s/.\{148\}//
14906t nl
14907:delim
14908h
14909s/\(.\{148\}\).*/\1/
14910t more2
14911s/["\\]/\\&/g; s/^/"/; s/$/"/
14912p
14913b
14914:more2
14915s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14916p
14917g
14918s/.\{148\}//
14919t delim
14920' <conf$$subs.awk | sed '
14921/^[^""]/{
14922 N
14923 s/\n//
14924}
14925' >>$CONFIG_STATUS || ac_write_fail=1
14926rm -f conf$$subs.awk
14927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14928_ACAWK
14929cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14930 for (key in S) S_is_set[key] = 1
14931 FS = "\a"
14932 \$ac_cs_awk_pipe_init
14933}
14934{
14935 line = $ 0
14936 nfields = split(line, field, "@")
14937 substed = 0
14938 len = length(field[1])
14939 for (i = 2; i < nfields; i++) {
14940 key = field[i]
14941 keylen = length(key)
14942 if (S_is_set[key]) {
14943 value = S[key]
14944 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14945 len += length(value) + length(field[++i])
14946 substed = 1
14947 } else
14948 len += 1 + keylen
14949 }
14950 if (nfields == 3 && !substed) {
14951 key = field[2]
14952 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14953 \$ac_cs_awk_read_file
14954 next
14955 }
14956 }
14957 print line
14958}
14959\$ac_cs_awk_pipe_fini
14960_ACAWK
14961_ACEOF
14962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14963if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14964 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14965else
14966 cat
14967fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14968 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14969_ACEOF
14970
14971# VPATH may cause trouble with some makes, so we remove $(srcdir),
14972# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14973# trailing colons and then remove the whole line if VPATH becomes empty
14974# (actually we leave an empty line to preserve line numbers).
14975if test "x$srcdir" = x.; then
14976 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14977s/:*\$(srcdir):*/:/
14978s/:*\${srcdir}:*/:/
14979s/:*@srcdir@:*/:/
14980s/^\([^=]*=[ ]*\):*/\1/
14981s/:*$//
14982s/^[^=]*=[ ]*$//
14983}'
14984fi
c6b750e1 14985
81ecdfbb
RW
14986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14987fi # test -n "$CONFIG_FILES"
c6b750e1 14988
c6b750e1 14989
81ecdfbb
RW
14990eval set X " :F $CONFIG_FILES "
14991shift
14992for ac_tag
14993do
14994 case $ac_tag in
14995 :[FHLC]) ac_mode=$ac_tag; continue;;
14996 esac
14997 case $ac_mode$ac_tag in
14998 :[FHL]*:*);;
14999 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15000 :[FH]-) ac_tag=-:-;;
15001 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15002 esac
15003 ac_save_IFS=$IFS
15004 IFS=:
15005 set x $ac_tag
15006 IFS=$ac_save_IFS
15007 shift
15008 ac_file=$1
15009 shift
252b5132 15010
81ecdfbb
RW
15011 case $ac_mode in
15012 :L) ac_source=$1;;
15013 :[FH])
15014 ac_file_inputs=
15015 for ac_f
15016 do
15017 case $ac_f in
15018 -) ac_f="$tmp/stdin";;
15019 *) # Look for the file first in the build tree, then in the source tree
15020 # (if the path is not absolute). The absolute path cannot be DOS-style,
15021 # because $ac_f cannot contain `:'.
15022 test -f "$ac_f" ||
15023 case $ac_f in
15024 [\\/$]*) false;;
15025 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15026 esac ||
15027 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15028 esac
15029 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15030 as_fn_append ac_file_inputs " '$ac_f'"
15031 done
c6b750e1 15032
81ecdfbb
RW
15033 # Let's still pretend it is `configure' which instantiates (i.e., don't
15034 # use $as_me), people would be surprised to read:
15035 # /* config.h. Generated by config.status. */
15036 configure_input='Generated from '`
15037 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15038 `' by configure.'
15039 if test x"$ac_file" != x-; then
15040 configure_input="$ac_file. $configure_input"
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15042$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15043 fi
81ecdfbb
RW
15044 # Neutralize special characters interpreted by sed in replacement strings.
15045 case $configure_input in #(
15046 *\&* | *\|* | *\\* )
15047 ac_sed_conf_input=`$as_echo "$configure_input" |
15048 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15049 *) ac_sed_conf_input=$configure_input;;
15050 esac
cac3d6c4 15051
81ecdfbb
RW
15052 case $ac_tag in
15053 *:-:* | *:-) cat >"$tmp/stdin" \
15054 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15055 esac
15056 ;;
a0da8069 15057 esac
252b5132 15058
81ecdfbb 15059 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15060$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15061 X"$ac_file" : 'X\(//\)[^/]' \| \
15062 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15063 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15064$as_echo X"$ac_file" |
15065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15066 s//\1/
15067 q
15068 }
15069 /^X\(\/\/\)[^/].*/{
15070 s//\1/
15071 q
15072 }
15073 /^X\(\/\/\)$/{
15074 s//\1/
15075 q
15076 }
15077 /^X\(\/\).*/{
15078 s//\1/
15079 q
15080 }
15081 s/.*/./; q'`
15082 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15083 ac_builddir=.
252b5132 15084
81ecdfbb
RW
15085case "$ac_dir" in
15086.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15087*)
15088 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15089 # A ".." for each directory in $ac_dir_suffix.
15090 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15091 case $ac_top_builddir_sub in
15092 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15093 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15094 esac ;;
15095esac
15096ac_abs_top_builddir=$ac_pwd
15097ac_abs_builddir=$ac_pwd$ac_dir_suffix
15098# for backward compatibility:
15099ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15100
15101case $srcdir in
81ecdfbb 15102 .) # We are building in place.
c6b750e1 15103 ac_srcdir=.
81ecdfbb
RW
15104 ac_top_srcdir=$ac_top_builddir_sub
15105 ac_abs_top_srcdir=$ac_pwd ;;
15106 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15107 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15108 ac_top_srcdir=$srcdir
15109 ac_abs_top_srcdir=$srcdir ;;
15110 *) # Relative name.
15111 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15112 ac_top_srcdir=$ac_top_build_prefix$srcdir
15113 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15114esac
81ecdfbb 15115ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15116
252b5132 15117
81ecdfbb
RW
15118 case $ac_mode in
15119 :F)
15120 #
15121 # CONFIG_FILE
15122 #
c6b750e1
DJ
15123
15124 case $INSTALL in
15125 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15126 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15127 esac
81ecdfbb 15128_ACEOF
252b5132 15129
81ecdfbb
RW
15130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15131# If the template does not know about datarootdir, expand it.
15132# FIXME: This hack should be removed a few years after 2.60.
15133ac_datarootdir_hack=; ac_datarootdir_seen=
15134ac_sed_dataroot='
15135/datarootdir/ {
15136 p
15137 q
15138}
15139/@datadir@/p
15140/@docdir@/p
15141/@infodir@/p
15142/@localedir@/p
15143/@mandir@/p'
15144case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15145*datarootdir*) ac_datarootdir_seen=yes;;
15146*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15148$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15149_ACEOF
81ecdfbb
RW
15150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15151 ac_datarootdir_hack='
15152 s&@datadir@&$datadir&g
15153 s&@docdir@&$docdir&g
15154 s&@infodir@&$infodir&g
15155 s&@localedir@&$localedir&g
15156 s&@mandir@&$mandir&g
15157 s&\\\${datarootdir}&$datarootdir&g' ;;
15158esac
15159_ACEOF
15160
15161# Neutralize VPATH when `$srcdir' = `.'.
15162# Shell code in configure.ac might set extrasub.
15163# FIXME: do we really want to maintain this feature?
15164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15165ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15166$extrasub
15167_ACEOF
81ecdfbb 15168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15169:t
15170/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15171s|@configure_input@|$ac_sed_conf_input|;t t
15172s&@top_builddir@&$ac_top_builddir_sub&;t t
15173s&@top_build_prefix@&$ac_top_build_prefix&;t t
15174s&@srcdir@&$ac_srcdir&;t t
15175s&@abs_srcdir@&$ac_abs_srcdir&;t t
15176s&@top_srcdir@&$ac_top_srcdir&;t t
15177s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15178s&@builddir@&$ac_builddir&;t t
15179s&@abs_builddir@&$ac_abs_builddir&;t t
15180s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15181s&@INSTALL@&$ac_INSTALL&;t t
15182$ac_datarootdir_hack
15183"
15184eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15185if $ac_cs_awk_getline; then
15186 $AWK -f "$tmp/subs.awk"
15187else
15188 $AWK -f "$tmp/subs.awk" | $SHELL
15189fi >$tmp/out \
15190 || as_fn_error "could not create $ac_file" "$LINENO" 5
15191
15192test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15193 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15194 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15196which seems to be undefined. Please make sure it is defined." >&5
15197$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15198which seems to be undefined. Please make sure it is defined." >&2;}
15199
15200 rm -f "$tmp/stdin"
15201 case $ac_file in
15202 -) cat "$tmp/out" && rm -f "$tmp/out";;
15203 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15204 esac \
15205 || as_fn_error "could not create $ac_file" "$LINENO" 5
15206 ;;
c148b4cb 15207
c148b4cb 15208
c148b4cb 15209
81ecdfbb
RW
15210 esac
15211
06a51eac
RW
15212
15213 case $ac_file$ac_mode in
15214 "Makefile":F) sed "$extrasub_build" Makefile |
15215 sed "$extrasub_host" |
15216 sed "$extrasub_target" > mf$$
15217 mv -f mf$$ Makefile ;;
15218
15219 esac
81ecdfbb
RW
15220done # for ac_tag
15221
15222
15223as_fn_exit 0
c6b750e1 15224_ACEOF
c6b750e1
DJ
15225ac_clean_files=$ac_clean_files_save
15226
81ecdfbb
RW
15227test $ac_write_fail = 0 ||
15228 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15229
c6b750e1
DJ
15230
15231# configure is writing to config.log, and then calls config.status.
15232# config.status does its own redirection, appending to config.log.
15233# Unfortunately, on DOS this fails, as config.log is still kept open
15234# by configure, so config.status won't be able to write to it; its
15235# output is simply discarded. So we exec the FD to /dev/null,
15236# effectively closing config.log, so it can be properly (re)opened and
15237# appended to by config.status. When coming back to configure, we
15238# need to make the FD available again.
15239if test "$no_create" != yes; then
15240 ac_cs_success=:
15241 ac_config_status_args=
15242 test "$silent" = yes &&
15243 ac_config_status_args="$ac_config_status_args --quiet"
15244 exec 5>/dev/null
15245 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15246 exec 5>>config.log
15247 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15248 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15249 $ac_cs_success || as_fn_exit $?
15250fi
15251if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15253$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15254fi
c148b4cb 15255
This page took 1.532824 seconds and 4 git commands to generate.