Fix toplevel config.status for HP-UX sed.
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
c6b750e1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
c6b750e1 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
581GFORTRAN_FOR_TARGET
582GCJ_FOR_TARGET
583GCC_FOR_TARGET
584CXX_FOR_TARGET
585CC_FOR_TARGET
586OBJDUMP
587OBJCOPY
588WINDMC
589WINDRES
590STRIP
591RANLIB
592NM
593LIPO
594LD
595DLLTOOL
596AS
597AR
598RUNTEST
599EXPECT
600MAKEINFO
601FLEX
602LEX
603M4
604BISON
605YACC
606config_shell
607WINDRES_FOR_BUILD
608WINDMC_FOR_BUILD
609RANLIB_FOR_BUILD
610NM_FOR_BUILD
611LD_FOR_BUILD
612LDFLAGS_FOR_BUILD
613GFORTRAN_FOR_BUILD
614GCJ_FOR_BUILD
615DLLTOOL_FOR_BUILD
616CXX_FOR_BUILD
617CXXFLAGS_FOR_BUILD
618CFLAGS_FOR_BUILD
619CC_FOR_BUILD
620AS_FOR_BUILD
621AR_FOR_BUILD
622target_configargs
623configdirs
624host_configargs
625build_configdirs
626build_configargs
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
96655cc4 634BUILD_CONFIG
81ecdfbb
RW
635CXXFLAGS_FOR_TARGET
636CFLAGS_FOR_TARGET
637DEBUG_PREFIX_CFLAGS_FOR_TARGET
638SYSROOT_CFLAGS_FOR_TARGET
639stage1_languages
640clooginc
641clooglibs
642pplinc
643ppllibs
644poststage1_libs
645poststage1_ldflags
646stage1_libs
647stage1_ldflags
648extra_mpc_mpfr_configure_flags
649extra_mpc_gmp_configure_flags
650extra_mpfr_configure_flags
651gmpinc
652gmplibs
653do_compare
654GNATMAKE
655GNATBIND
656ac_ct_CXX
657CXXFLAGS
658CXX
659OBJEXT
660EXEEXT
661ac_ct_CC
662CPPFLAGS
663LDFLAGS
664CFLAGS
665CC
666target_subdir
667host_subdir
668build_subdir
669build_libsubdir
8e957354
PB
670AWK
671SED
81ecdfbb
RW
672LN_S
673LN
674INSTALL_DATA
675INSTALL_SCRIPT
676INSTALL_PROGRAM
677target_os
678target_vendor
679target_cpu
680target
681host_os
682host_vendor
683host_cpu
684host
685target_noncanonical
686host_noncanonical
687build_noncanonical
688build_os
689build_vendor
690build_cpu
691build
692TOPLEVEL_CONFIGURE_ARGUMENTS
693target_alias
694host_alias
695build_alias
696LIBS
697ECHO_T
698ECHO_N
699ECHO_C
700DEFS
701mandir
702localedir
703libdir
704psdir
705pdfdir
706dvidir
707htmldir
708infodir
709docdir
710oldincludedir
711includedir
712localstatedir
713sharedstatedir
714sysconfdir
715datadir
716datarootdir
717libexecdir
718sbindir
719bindir
720program_transform_name
721prefix
722exec_prefix
723PACKAGE_URL
724PACKAGE_BUGREPORT
725PACKAGE_STRING
726PACKAGE_VERSION
727PACKAGE_TARNAME
728PACKAGE_NAME
729PATH_SEPARATOR
730SHELL'
731ac_subst_files='serialization_dependencies
732host_makefile_frag
733target_makefile_frag
734alphaieee_frag
735ospace_frag'
736ac_user_opts='
737enable_option_checking
738with_build_libsubdir
739enable_gold
740enable_libada
741enable_libssp
742enable_build_with_cxx
743with_mpc
744with_mpc_include
745with_mpc_lib
746with_mpfr_dir
747with_mpfr
748with_mpfr_include
749with_mpfr_lib
750with_gmp_dir
751with_gmp
752with_gmp_include
753with_gmp_lib
754with_host_libstdcxx
755with_stage1_ldflags
756with_stage1_libs
757with_boot_ldflags
758with_boot_libs
759with_ppl
760with_ppl_include
761with_ppl_lib
762enable_ppl_version_check
763with_cloog
764with_cloog_include
765with_cloog_lib
766enable_cloog_version_check
767enable_stage1_languages
768enable_objc_gc
769with_build_sysroot
770with_debug_prefix_map
771enable_bootstrap
96655cc4 772with_build_config
81ecdfbb
RW
773enable_serial_configure
774with_build_time_tools
775enable_maintainer_mode
776enable_stage1_checking
777enable_werror
81ecdfbb
RW
778'
779 ac_precious_vars='build_alias
780host_alias
781target_alias
782CC
783CFLAGS
784LDFLAGS
785LIBS
786CPPFLAGS
787CXX
788CXXFLAGS
789CCC
790AR
791AS
792DLLTOOL
793LD
794LIPO
795NM
796RANLIB
797STRIP
798WINDRES
799WINDMC
800OBJCOPY
801OBJDUMP
802CC_FOR_TARGET
803CXX_FOR_TARGET
804GCC_FOR_TARGET
805GCJ_FOR_TARGET
806GFORTRAN_FOR_TARGET
807AR_FOR_TARGET
808AS_FOR_TARGET
809DLLTOOL_FOR_TARGET
810LD_FOR_TARGET
811LIPO_FOR_TARGET
812NM_FOR_TARGET
813OBJDUMP_FOR_TARGET
814RANLIB_FOR_TARGET
815STRIP_FOR_TARGET
816WINDRES_FOR_TARGET
817WINDMC_FOR_TARGET'
818
a0da8069
NN
819
820# Initialize some variables set by options.
c6b750e1
DJ
821ac_init_help=
822ac_init_version=false
81ecdfbb
RW
823ac_unrecognized_opts=
824ac_unrecognized_sep=
a0da8069
NN
825# The variables have the same names as the options, with
826# dashes changed to underlines.
c6b750e1 827cache_file=/dev/null
a0da8069 828exec_prefix=NONE
a0da8069 829no_create=
a0da8069
NN
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
a0da8069
NN
838verbose=
839x_includes=NONE
840x_libraries=NONE
c6b750e1
DJ
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 847# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
a0da8069
NN
853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
a0da8069
NN
856includedir='${prefix}/include'
857oldincludedir='/usr/include'
81ecdfbb
RW
858docdir='${datarootdir}/doc/${PACKAGE}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
252b5132 867
a0da8069 868ac_prev=
81ecdfbb 869ac_dashdash=
a0da8069
NN
870for ac_option
871do
a0da8069
NN
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
81ecdfbb 874 eval $ac_prev=\$ac_option
a0da8069
NN
875 ac_prev=
876 continue
877 fi
252b5132 878
81ecdfbb
RW
879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
a0da8069
NN
883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
81ecdfbb
RW
886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
a0da8069
NN
889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 893 bindir=$ac_optarg ;;
a0da8069
NN
894
895 -build | --build | --buil | --bui | --bu)
c6b750e1 896 ac_prev=build_alias ;;
a0da8069 897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 898 build_alias=$ac_optarg ;;
a0da8069
NN
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
a0da8069 909
81ecdfbb 910 -datadir | --datadir | --datadi | --datad)
a0da8069 911 ac_prev=datadir ;;
81ecdfbb 912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 913 datadir=$ac_optarg ;;
a0da8069 914
81ecdfbb
RW
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
a0da8069 922 -disable-* | --disable-*)
81ecdfbb 923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 924 # Reject names that are not valid shell variable names.
81ecdfbb
RW
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931"enable_$ac_useropt"
932"*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
a0da8069
NN
947
948 -enable-* | --enable-*)
81ecdfbb 949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 950 # Reject names that are not valid shell variable names.
81ecdfbb
RW
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957"enable_$ac_useropt"
958"*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
a0da8069 961 esac
81ecdfbb 962 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
c6b750e1 971 exec_prefix=$ac_optarg ;;
a0da8069
NN
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
c6b750e1
DJ
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
a0da8069
NN
983
984 -host | --host | --hos | --ho)
c6b750e1 985 ac_prev=host_alias ;;
a0da8069 986 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 987 host_alias=$ac_optarg ;;
a0da8069 988
81ecdfbb
RW
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
a0da8069
NN
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1000 includedir=$ac_optarg ;;
a0da8069
NN
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1005 infodir=$ac_optarg ;;
a0da8069
NN
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1010 libdir=$ac_optarg ;;
a0da8069
NN
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1017 libexecdir=$ac_optarg ;;
a0da8069 1018
81ecdfbb
RW
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
a0da8069 1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1025 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1029 localstatedir=$ac_optarg ;;
a0da8069
NN
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1034 mandir=$ac_optarg ;;
a0da8069
NN
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1041 | --no-cr | --no-c | -n)
a0da8069
NN
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1055 oldincludedir=$ac_optarg ;;
a0da8069
NN
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1060 prefix=$ac_optarg ;;
a0da8069
NN
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1067 program_prefix=$ac_optarg ;;
a0da8069
NN
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1074 program_suffix=$ac_optarg ;;
a0da8069
NN
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1091 program_transform_name=$ac_optarg ;;
a0da8069 1092
81ecdfbb
RW
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
a0da8069
NN
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
c6b750e1 1111 sbindir=$ac_optarg ;;
a0da8069
NN
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
c6b750e1 1122 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
c6b750e1 1127 site=$ac_optarg ;;
a0da8069
NN
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1132 srcdir=$ac_optarg ;;
a0da8069
NN
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1139 sysconfdir=$ac_optarg ;;
a0da8069
NN
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1142 ac_prev=target_alias ;;
a0da8069 1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1144 target_alias=$ac_optarg ;;
a0da8069
NN
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
c6b750e1
DJ
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
a0da8069
NN
1151
1152 -with-* | --with-*)
81ecdfbb 1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1154 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161"with_$ac_useropt"
1162"*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
a0da8069 1165 esac
81ecdfbb 1166 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1167
1168 -without-* | --without-*)
81ecdfbb 1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1170 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177"with_$ac_useropt"
1178"*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
a0da8069
NN
1183
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1187
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1193 x_includes=$ac_optarg ;;
a0da8069
NN
1194
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1200 x_libraries=$ac_optarg ;;
a0da8069 1201
81ecdfbb
RW
1202 -*) as_fn_error "unrecognized option: \`$ac_option'
1203Try \`$0 --help' for more information."
a0da8069
NN
1204 ;;
1205
c6b750e1
DJ
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1214 export $ac_envvar ;;
1215
a0da8069 1216 *)
c6b750e1 1217 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1221 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1222 ;;
1223
1224 esac
1225done
1226
1227if test -n "$ac_prev"; then
c6b750e1 1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1229 as_fn_error "missing argument to $ac_option"
a0da8069 1230fi
a0da8069 1231
81ecdfbb
RW
1232if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1237 esac
81ecdfbb 1238fi
a0da8069 1239
81ecdfbb
RW
1240# Check all directory arguments for consistency.
1241for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
a0da8069 1245do
81ecdfbb
RW
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
c6b750e1 1254 case $ac_val in
81ecdfbb
RW
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1257 esac
81ecdfbb 1258 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1259done
1260
c6b750e1
DJ
1261# There might be people who depend on the old broken behavior: `$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
376a0e54 1267
c6b750e1
DJ
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
81ecdfbb 1272 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1273 If a cross compiler is detected then cross compile mode will be used." >&2
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277fi
1278
1279ac_tool_prefix=
1280test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282test "$silent" = yes && exec 6>/dev/null
a0da8069 1283
a0da8069 1284
81ecdfbb
RW
1285ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286ac_ls_di=`ls -di .` &&
1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error "working directory cannot be determined"
1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error "pwd does not report name of working directory"
1291
1292
a0da8069
NN
1293# Find the source files, if location was not specified.
1294if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
81ecdfbb
RW
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302$as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
a0da8069 1320 srcdir=$ac_confdir
81ecdfbb 1321 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1322 srcdir=..
1323 fi
1324else
1325 ac_srcdir_defaulted=no
1326fi
81ecdfbb
RW
1327if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1330fi
1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1334 pwd)`
1335# When building in place, set srcdir=.
1336if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338fi
1339# Remove unnecessary trailing slashes from srcdir.
1340# Double slashes in file names in object file debugging info
1341# mess up M-x gdb in Emacs.
1342case $srcdir in
1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344esac
9cc8ae67
PB
1345ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1346
81ecdfbb
RW
1347for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352done
c6b750e1
DJ
1353
1354#
1355# Report the --help message.
1356#
1357if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361\`configure' configures this package to adapt to many kinds of systems.
1362
1363Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368Defaults for the options are specified in brackets.
1369
1370Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380
c6b750e1
DJ
1381Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1383 [$ac_default_prefix]
c6b750e1 1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1385 [PREFIX]
c6b750e1
DJ
1386
1387By default, \`make install' will install all the files in
1388\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390for instance \`--prefix=\$HOME'.
1391
1392For better control, use the options below.
1393
1394Fine tuning of the installation directories:
81ecdfbb
RW
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1414_ACEOF
1415
1416 cat <<\_ACEOF
1417
1418Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 --target=TARGET configure for building compilers for TARGET [HOST]
1427_ACEOF
a0da8069 1428fi
a0da8069 1429
c6b750e1
DJ
1430if test -n "$ac_init_help"; then
1431
1432 cat <<\_ACEOF
1433
1434Optional Features:
81ecdfbb 1435 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
93f9b408 1438 --enable-gold use gold instead of ld
521ec477
DD
1439 --enable-libada build libada directory
1440 --enable-libssp build libssp directory
e8a5fa9c 1441 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f
JM
1442 --disable-ppl-version-check disable check for PPL version
1443 --disable-cloog-version-check disable check for CLooG version
521ec477 1444 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 1445 stage1. Mostly useful for compiler development.
521ec477
DD
1446 --enable-objc-gc enable use of Boehm's garbage collector with the
1447 GNU Objective-C runtime
1448 --enable-bootstrap enable bootstrapping [yes if native build]
1449 --enable-serial-[{host,target,build}-]configure
1450 force sequential configuration of
c6b750e1 1451 sub-packages for the host, target or build
521ec477 1452 machine, or all sub-packages
c6b750e1
DJ
1453 --enable-maintainer-mode enable make rules and dependencies not useful
1454 (and sometimes confusing) to the casual installer
521ec477
DD
1455 --enable-stage1-checking[=all] choose additional checking for stage1
1456 of the compiler
c6b750e1
DJ
1457 --enable-werror enable -Werror in bootstrap stage2 and later
1458
1459Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8a5fa9c
RW
1463 --with-mpc=PATH specify prefix directory for installed MPC package.
1464 Equivalent to --with-mpc-include=PATH/include
1465 plus --with-mpc-lib=PATH/lib
1466 --with-mpc-include=PATH
1467 specify directory for installed MPC include files
1468 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1469 --with-mpfr-dir=PATH this option has been REMOVED
1470 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
1471 Equivalent to --with-mpfr-include=PATH/include
1472 plus --with-mpfr-lib=PATH/lib
1473 --with-mpfr-include=PATH
521ec477
DD
1474 specify directory for installed MPFR include files
1475 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1476 --with-gmp-dir=PATH this option has been REMOVED
1477 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
1478 Equivalent to --with-gmp-include=PATH/include
1479 plus --with-gmp-lib=PATH/lib
521ec477
DD
1480 --with-gmp-include=PATH specify directory for installed GMP include files
1481 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
1482 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1483 when linking with PPL
e8a5fa9c
RW
1484 --with-stage1-ldflags=FLAGS Linker flags for stage1
1485 -with-stage1-libs=LIBS Libraries for stage1
1486 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1487 --with-boot-libs=LIBS Libraries for stage2 and later
e28c595f
JM
1488 --with-ppl=PATH Specify prefix directory for the installed PPL package
1489 Equivalent to --with-ppl-include=PATH/include
1490 plus --with-ppl-lib=PATH/lib
1491 --with-ppl-include=PATH Specify directory for installed PPL include files
1492 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1493 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1494 Equivalent to --with-cloog-include=PATH/include
1495 plus --with-cloog-lib=PATH/lib
1496 --with-cloog-include=PATH Specify directory for installed CLooG include files
1497 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
521ec477 1498 --with-build-sysroot=SYSROOT
c6b750e1 1499 use sysroot as the system root during the build
8a6ee3ab
JM
1500 --with-debug-prefix-map='A=B C=D ...'
1501 map A to B, C to D ... in debug information
96655cc4
AO
1502--with-build-config='NAME NAME2...'
1503 Use config/NAME.mk build configuration
521ec477 1504 --with-build-time-tools=PATH
c6b750e1 1505 use given path to find target tools during the build
c6b750e1
DJ
1506
1507Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
81ecdfbb
RW
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1515 CXX C++ compiler command
1516 CXXFLAGS C++ compiler flags
9a819804
AO
1517 AR AR for the host
1518 AS AS for the host
1519 DLLTOOL DLLTOOL for the host
1520 LD LD for the host
1521 LIPO LIPO for the host
1522 NM NM for the host
1523 RANLIB RANLIB for the host
1524 STRIP STRIP for the host
1525 WINDRES WINDRES for the host
0c24b341 1526 WINDMC WINDMC for the host
9a819804
AO
1527 OBJCOPY OBJCOPY for the host
1528 OBJDUMP OBJDUMP for the host
1529 CC_FOR_TARGET
1530 CC for the target
1531 CXX_FOR_TARGET
1532 CXX for the target
1533 GCC_FOR_TARGET
1534 GCC for the target
1535 GCJ_FOR_TARGET
1536 GCJ for the target
1537 GFORTRAN_FOR_TARGET
1538 GFORTRAN for the target
1539 AR_FOR_TARGET
1540 AR for the target
1541 AS_FOR_TARGET
1542 AS for the target
1543 DLLTOOL_FOR_TARGET
1544 DLLTOOL for the target
1545 LD_FOR_TARGET
1546 LD for the target
1547 LIPO_FOR_TARGET
1548 LIPO for the target
1549 NM_FOR_TARGET
1550 NM for the target
1551 OBJDUMP_FOR_TARGET
1552 OBJDUMP for the target
1553 RANLIB_FOR_TARGET
1554 RANLIB for the target
1555 STRIP_FOR_TARGET
1556 STRIP for the target
1557 WINDRES_FOR_TARGET
1558 WINDRES for the target
0c24b341
NC
1559 WINDMC_FOR_TARGET
1560 WINDMC for the target
c6b750e1
DJ
1561
1562Use these variables to override the choices made by `configure' or to help
1563it to find libraries and programs with nonstandard names/locations.
1564
81ecdfbb 1565Report bugs to the package provider.
c6b750e1 1566_ACEOF
81ecdfbb 1567ac_status=$?
c6b750e1
DJ
1568fi
1569
1570if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
c6b750e1 1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1573 test -d "$ac_dir" ||
1574 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575 continue
c6b750e1
DJ
1576 ac_builddir=.
1577
81ecdfbb
RW
1578case "$ac_dir" in
1579.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580*)
1581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582 # A ".." for each directory in $ac_dir_suffix.
1583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584 case $ac_top_builddir_sub in
1585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 esac ;;
1588esac
1589ac_abs_top_builddir=$ac_pwd
1590ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591# for backward compatibility:
1592ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1593
1594case $srcdir in
81ecdfbb 1595 .) # We are building in place.
c6b750e1 1596 ac_srcdir=.
81ecdfbb
RW
1597 ac_top_srcdir=$ac_top_builddir_sub
1598 ac_abs_top_srcdir=$ac_pwd ;;
1599 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1600 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1601 ac_top_srcdir=$srcdir
1602 ac_abs_top_srcdir=$srcdir ;;
1603 *) # Relative name.
1604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605 ac_top_srcdir=$ac_top_build_prefix$srcdir
1606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1607esac
81ecdfbb
RW
1608ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609
1610 cd "$ac_dir" || { ac_status=$?; continue; }
1611 # Check for guested configure.
1612 if test -f "$ac_srcdir/configure.gnu"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615 elif test -f "$ac_srcdir/configure"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1618 else
81ecdfbb
RW
1619 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 fi || ac_status=$?
1621 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1622 done
1623fi
1624
81ecdfbb 1625test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1626if $ac_init_version; then
1627 cat <<\_ACEOF
81ecdfbb
RW
1628configure
1629generated by GNU Autoconf 2.64
c6b750e1 1630
81ecdfbb 1631Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1632This configure script is free software; the Free Software Foundation
1633gives unlimited permission to copy, distribute and modify it.
1634_ACEOF
81ecdfbb 1635 exit
c6b750e1 1636fi
81ecdfbb
RW
1637
1638## ------------------------ ##
1639## Autoconf initialization. ##
1640## ------------------------ ##
1641
1642# ac_fn_c_try_compile LINENO
1643# --------------------------
1644# Try to compile conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_c_try_compile ()
1646{
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1650case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1668 ac_retval=0
1669else
1670 $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674fi
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 return $ac_retval
1677
1678} # ac_fn_c_try_compile
1679
1680# ac_fn_cxx_try_compile LINENO
1681# ----------------------------
1682# Try to compile conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_cxx_try_compile ()
1684{
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext
1687 if { { ac_try="$ac_compile"
1688case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_compile") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_cxx_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest.$ac_objext; then :
1706 ac_retval=0
1707else
1708 $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712fi
1713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714 return $ac_retval
1715
1716} # ac_fn_cxx_try_compile
1717
1718# ac_fn_c_try_link LINENO
1719# -----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_link ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext conftest$ac_exeext
1725 if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest$ac_exeext && {
1744 test "$cross_compiling" = yes ||
1745 $as_test_x conftest$ac_exeext
1746 }; then :
1747 ac_retval=0
1748else
1749 $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=1
1753fi
1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756 # interfere with the next link command; also delete a directory that is
1757 # left behind by Apple's compiler. We do this before executing the actions.
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 return $ac_retval
1761
1762} # ac_fn_c_try_link
1763cat >config.log <<_ACEOF
c6b750e1
DJ
1764This file contains any messages produced by compilers while
1765running configure, to aid debugging if configure makes a mistake.
1766
1767It was created by $as_me, which was
81ecdfbb 1768generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1769
1770 $ $0 $@
1771
1772_ACEOF
81ecdfbb 1773exec 5>>config.log
c6b750e1
DJ
1774{
1775cat <<_ASUNAME
1776## --------- ##
1777## Platform. ##
1778## --------- ##
1779
1780hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1781uname -m = `(uname -m) 2>/dev/null || echo unknown`
1782uname -r = `(uname -r) 2>/dev/null || echo unknown`
1783uname -s = `(uname -s) 2>/dev/null || echo unknown`
1784uname -v = `(uname -v) 2>/dev/null || echo unknown`
1785
1786/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1787/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1788
1789/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1790/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1791/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1792/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1793/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1794/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1795/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1796
1797_ASUNAME
1798
1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800for as_dir in $PATH
1801do
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1804 $as_echo "PATH: $as_dir"
1805 done
1806IFS=$as_save_IFS
c6b750e1
DJ
1807
1808} >&5
1809
1810cat >&5 <<_ACEOF
1811
1812
1813## ----------- ##
1814## Core tests. ##
1815## ----------- ##
1816
1817_ACEOF
1818
1819
1820# Keep a trace of the command line.
1821# Strip out --no-create and --no-recursion so they do not pile up.
1822# Strip out --silent because we don't want to record it for future runs.
1823# Also quote any args containing shell meta-characters.
1824# Make two passes to allow for proper duplicate-argument suppression.
1825ac_configure_args=
1826ac_configure_args0=
1827ac_configure_args1=
c6b750e1
DJ
1828ac_must_keep_next=false
1829for ac_pass in 1 2
1830do
1831 for ac_arg
1832 do
1833 case $ac_arg in
1834 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1836 | -silent | --silent | --silen | --sile | --sil)
1837 continue ;;
81ecdfbb
RW
1838 *\'*)
1839 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1840 esac
1841 case $ac_pass in
81ecdfbb 1842 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1843 2)
81ecdfbb 1844 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1845 if test $ac_must_keep_next = true; then
1846 ac_must_keep_next=false # Got value, back to normal.
1847 else
1848 case $ac_arg in
1849 *=* | --config-cache | -C | -disable-* | --disable-* \
1850 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1851 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1852 | -with-* | --with-* | -without-* | --without-* | --x)
1853 case "$ac_configure_args0 " in
1854 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1855 esac
1856 ;;
1857 -* ) ac_must_keep_next=true ;;
1858 esac
1859 fi
81ecdfbb 1860 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1861 ;;
1862 esac
1863 done
1864done
81ecdfbb
RW
1865{ ac_configure_args0=; unset ac_configure_args0;}
1866{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1867
1868# When interrupted or exit'd, cleanup temporary files, and complete
1869# config.log. We remove comments because anyway the quotes in there
1870# would cause problems or look ugly.
81ecdfbb
RW
1871# WARNING: Use '\'' to represent an apostrophe within the trap.
1872# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1873trap 'exit_status=$?
1874 # Save into config.log some information that might help in debugging.
1875 {
1876 echo
1877
1878 cat <<\_ASBOX
1879## ---------------- ##
1880## Cache variables. ##
1881## ---------------- ##
1882_ASBOX
1883 echo
1884 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1885(
1886 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1887 eval ac_val=\$$ac_var
1888 case $ac_val in #(
1889 *${as_nl}*)
1890 case $ac_var in #(
1891 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1892$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1893 esac
1894 case $ac_var in #(
1895 _ | IFS | as_nl) ;; #(
1896 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1897 *) { eval $ac_var=; unset $ac_var;} ;;
1898 esac ;;
1899 esac
1900 done
c6b750e1 1901 (set) 2>&1 |
81ecdfbb
RW
1902 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1903 *${as_nl}ac_space=\ *)
c6b750e1 1904 sed -n \
81ecdfbb
RW
1905 "s/'\''/'\''\\\\'\'''\''/g;
1906 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1907 ;; #(
c6b750e1 1908 *)
81ecdfbb 1909 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1910 ;;
81ecdfbb
RW
1911 esac |
1912 sort
1913)
c6b750e1
DJ
1914 echo
1915
1916 cat <<\_ASBOX
1917## ----------------- ##
1918## Output variables. ##
1919## ----------------- ##
1920_ASBOX
1921 echo
1922 for ac_var in $ac_subst_vars
1923 do
81ecdfbb
RW
1924 eval ac_val=\$$ac_var
1925 case $ac_val in
1926 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1927 esac
1928 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1929 done | sort
1930 echo
1931
1932 if test -n "$ac_subst_files"; then
1933 cat <<\_ASBOX
81ecdfbb
RW
1934## ------------------- ##
1935## File substitutions. ##
1936## ------------------- ##
c6b750e1
DJ
1937_ASBOX
1938 echo
1939 for ac_var in $ac_subst_files
1940 do
81ecdfbb
RW
1941 eval ac_val=\$$ac_var
1942 case $ac_val in
1943 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1944 esac
1945 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1946 done | sort
1947 echo
1948 fi
1949
1950 if test -s confdefs.h; then
1951 cat <<\_ASBOX
1952## ----------- ##
1953## confdefs.h. ##
1954## ----------- ##
1955_ASBOX
1956 echo
81ecdfbb 1957 cat confdefs.h
c6b750e1
DJ
1958 echo
1959 fi
1960 test "$ac_signal" != 0 &&
81ecdfbb
RW
1961 $as_echo "$as_me: caught signal $ac_signal"
1962 $as_echo "$as_me: exit $exit_status"
c6b750e1 1963 } >&5
81ecdfbb
RW
1964 rm -f core *.core core.conftest.* &&
1965 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 1966 exit $exit_status
81ecdfbb 1967' 0
c6b750e1 1968for ac_signal in 1 2 13 15; do
81ecdfbb 1969 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
1970done
1971ac_signal=0
1972
1973# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1974rm -f -r conftest* confdefs.h
1975
1976$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
1977
1978# Predefined preprocessor variables.
1979
1980cat >>confdefs.h <<_ACEOF
1981#define PACKAGE_NAME "$PACKAGE_NAME"
1982_ACEOF
1983
c6b750e1
DJ
1984cat >>confdefs.h <<_ACEOF
1985#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1986_ACEOF
1987
c6b750e1
DJ
1988cat >>confdefs.h <<_ACEOF
1989#define PACKAGE_VERSION "$PACKAGE_VERSION"
1990_ACEOF
1991
c6b750e1
DJ
1992cat >>confdefs.h <<_ACEOF
1993#define PACKAGE_STRING "$PACKAGE_STRING"
1994_ACEOF
1995
c6b750e1
DJ
1996cat >>confdefs.h <<_ACEOF
1997#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1998_ACEOF
1999
81ecdfbb
RW
2000cat >>confdefs.h <<_ACEOF
2001#define PACKAGE_URL "$PACKAGE_URL"
2002_ACEOF
2003
c6b750e1
DJ
2004
2005# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2006# Prefer an explicitly selected file to automatically selected ones.
2007ac_site_file1=NONE
2008ac_site_file2=NONE
2009if test -n "$CONFIG_SITE"; then
2010 ac_site_file1=$CONFIG_SITE
2011elif test "x$prefix" != xNONE; then
2012 ac_site_file1=$prefix/share/config.site
2013 ac_site_file2=$prefix/etc/config.site
2014else
2015 ac_site_file1=$ac_default_prefix/share/config.site
2016 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2017fi
81ecdfbb
RW
2018for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2019do
2020 test "x$ac_site_file" = xNONE && continue
a0da8069 2021 if test -r "$ac_site_file"; then
81ecdfbb
RW
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2023$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2024 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2025 . "$ac_site_file"
2026 fi
2027done
2028
2029if test -r "$cache_file"; then
c6b750e1
DJ
2030 # Some versions of bash will fail to source /dev/null (special
2031 # files actually), so we avoid doing that.
2032 if test -f "$cache_file"; then
81ecdfbb
RW
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2034$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2035 case $cache_file in
81ecdfbb
RW
2036 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2037 *) . "./$cache_file";;
c6b750e1
DJ
2038 esac
2039 fi
a0da8069 2040else
81ecdfbb
RW
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2042$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2043 >$cache_file
2044fi
2045
2046# Check that the precious variables saved in the cache have kept the same
2047# value.
2048ac_cache_corrupted=false
81ecdfbb 2049for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2050 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2051 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2052 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2053 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2054 case $ac_old_set,$ac_new_set in
2055 set,)
81ecdfbb
RW
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2057$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2058 ac_cache_corrupted=: ;;
2059 ,set)
81ecdfbb
RW
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2061$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2062 ac_cache_corrupted=: ;;
2063 ,);;
2064 *)
2065 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2066 # differences in whitespace do not lead to failure.
2067 ac_old_val_w=`echo x $ac_old_val`
2068 ac_new_val_w=`echo x $ac_new_val`
2069 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2071$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2072 ac_cache_corrupted=:
2073 else
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2075$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2076 eval $ac_var=\$ac_old_val
2077 fi
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2079$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2081$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2082 fi;;
2083 esac
2084 # Pass precious variables to config.status.
2085 if test "$ac_new_set" = set; then
2086 case $ac_new_val in
81ecdfbb 2087 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2088 *) ac_arg=$ac_var=$ac_new_val ;;
2089 esac
2090 case " $ac_configure_args " in
2091 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2092 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2093 esac
2094 fi
2095done
2096if $ac_cache_corrupted; then
81ecdfbb
RW
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2100$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2101 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2102fi
81ecdfbb
RW
2103## -------------------- ##
2104## Main body of script. ##
2105## -------------------- ##
a0da8069
NN
2106
2107ac_ext=c
a0da8069 2108ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112
2113
2114
2115
c6b750e1
DJ
2116
2117
34a0f3cf 2118
c6b750e1 2119
5b553f7e
RW
2120
2121progname=$0
2122# if PWD already has a value, it is probably wrong.
2123if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2124
2125# Export original configure arguments for use by sub-configures.
2126# Quote arguments with shell meta charatcers.
2127TOPLEVEL_CONFIGURE_ARGUMENTS=
2128set -- "$progname" "$@"
2129for ac_arg
2130do
2131 case "$ac_arg" in
2132 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2133 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2134 # if the argument is of the form -foo=baz, quote the baz part only
2135 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2136 *) ;;
2137 esac
2138 # Add the quoted argument to the list.
2139 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2140done
2141if test "$silent" = yes; then
2142 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2143fi
2144# Remove the initial space we just introduced and, as these will be
2145# expanded by make, quote '$'.
2146TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2147
c6b750e1
DJ
2148
2149# Find the build, host, and target systems.
a0da8069 2150ac_aux_dir=
81ecdfbb
RW
2151for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2152 for ac_t in install-sh install.sh shtool; do
2153 if test -f "$ac_dir/$ac_t"; then
2154 ac_aux_dir=$ac_dir
2155 ac_install_sh="$ac_aux_dir/$ac_t -c"
2156 break 2
2157 fi
2158 done
a0da8069
NN
2159done
2160if test -z "$ac_aux_dir"; then
81ecdfbb 2161 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2162fi
81ecdfbb
RW
2163
2164# These three variables are undocumented and unsupported,
2165# and are intended to be withdrawn in a future Autoconf release.
2166# They can cause serious problems if a builder's source tree is in a directory
2167# whose full name contains unusual characters.
2168ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2169ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2170ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2171
a0da8069 2172
c6b750e1 2173# Make sure we can run config.sub.
81ecdfbb
RW
2174$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2175 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2176
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2178$as_echo_n "checking build system type... " >&6; }
2179if test "${ac_cv_build+set}" = set; then :
2180 $as_echo_n "(cached) " >&6
2181else
2182 ac_build_alias=$build_alias
2183test "x$ac_build_alias" = x &&
2184 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2185test "x$ac_build_alias" = x &&
2186 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2187ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2188 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2189
2190fi
2191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2192$as_echo "$ac_cv_build" >&6; }
2193case $ac_cv_build in
2194*-*-*) ;;
2195*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2196esac
c6b750e1 2197build=$ac_cv_build
81ecdfbb
RW
2198ac_save_IFS=$IFS; IFS='-'
2199set x $ac_cv_build
2200shift
2201build_cpu=$1
2202build_vendor=$2
2203shift; shift
2204# Remember, the first character of IFS is used to create $*,
2205# except with old shells:
2206build_os=$*
2207IFS=$ac_save_IFS
2208case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2209
a0da8069 2210
c6b750e1
DJ
2211 case ${build_alias} in
2212 "") build_noncanonical=${build} ;;
2213 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2214esac
2215
2216
cac3d6c4 2217
c6b750e1
DJ
2218 case ${host_alias} in
2219 "") host_noncanonical=${build_noncanonical} ;;
2220 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2221esac
2222
cac3d6c4 2223
c6b750e1
DJ
2224
2225 case ${target_alias} in
2226 "") target_noncanonical=${host_noncanonical} ;;
2227 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2228esac
2229
cac3d6c4 2230
c6b750e1
DJ
2231
2232
2233test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2234 test "$program_prefix$program_suffix$program_transform_name" = \
2235 NONENONEs,x,x, &&
c6b750e1 2236 program_transform_name=s,y,y,
cac3d6c4 2237
81ecdfbb
RW
2238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2239$as_echo_n "checking host system type... " >&6; }
2240if test "${ac_cv_host+set}" = set; then :
2241 $as_echo_n "(cached) " >&6
cac3d6c4 2242else
81ecdfbb
RW
2243 if test "x$host_alias" = x; then
2244 ac_cv_host=$ac_cv_build
2245else
2246 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2247 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2248fi
c6b750e1
DJ
2249
2250fi
81ecdfbb
RW
2251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2252$as_echo "$ac_cv_host" >&6; }
2253case $ac_cv_host in
2254*-*-*) ;;
2255*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2256esac
c6b750e1 2257host=$ac_cv_host
81ecdfbb
RW
2258ac_save_IFS=$IFS; IFS='-'
2259set x $ac_cv_host
2260shift
2261host_cpu=$1
2262host_vendor=$2
2263shift; shift
2264# Remember, the first character of IFS is used to create $*,
2265# except with old shells:
2266host_os=$*
2267IFS=$ac_save_IFS
2268case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2269
2270
81ecdfbb
RW
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2272$as_echo_n "checking target system type... " >&6; }
2273if test "${ac_cv_target+set}" = set; then :
2274 $as_echo_n "(cached) " >&6
c6b750e1 2275else
81ecdfbb
RW
2276 if test "x$target_alias" = x; then
2277 ac_cv_target=$ac_cv_host
2278else
2279 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2280 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2281fi
c6b750e1 2282
cac3d6c4 2283fi
81ecdfbb
RW
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2285$as_echo "$ac_cv_target" >&6; }
2286case $ac_cv_target in
2287*-*-*) ;;
2288*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2289esac
c6b750e1 2290target=$ac_cv_target
81ecdfbb
RW
2291ac_save_IFS=$IFS; IFS='-'
2292set x $ac_cv_target
2293shift
2294target_cpu=$1
2295target_vendor=$2
2296shift; shift
2297# Remember, the first character of IFS is used to create $*,
2298# except with old shells:
2299target_os=$*
2300IFS=$ac_save_IFS
2301case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2302
2303
2304# The aliases save the names the user supplied, while $host etc.
2305# will get canonicalized.
2306test -n "$target_alias" &&
2307 test "$program_prefix$program_suffix$program_transform_name" = \
2308 NONENONEs,x,x, &&
2309 program_prefix=${target_alias}-
81ecdfbb 2310
a0da8069 2311test "$program_prefix" != NONE &&
81ecdfbb 2312 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2313# Use a double $ so make ignores it.
2314test "$program_suffix" != NONE &&
81ecdfbb
RW
2315 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2316# Double any \ or $.
c6b750e1 2317# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2318ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2319program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2320
a0da8069
NN
2321
2322
e5c3f801
NN
2323# Get 'install' or 'install-sh' and its variants.
2324# Find a good install program. We prefer a C program (faster),
2325# so one script is as good as another. But avoid the broken or
2326# incompatible versions:
2327# SysV /etc/install, /usr/sbin/install
2328# SunOS /usr/etc/install
2329# IRIX /sbin/install
2330# AIX /bin/install
c6b750e1 2331# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2332# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2333# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2334# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2335# OS/2's system install, which has a completely different semantic
e5c3f801 2336# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2337# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2339$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2340if test -z "$INSTALL"; then
81ecdfbb
RW
2341if test "${ac_cv_path_install+set}" = set; then :
2342 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2343else
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2349 # Account for people who put trailing slashes in PATH elements.
2350case $as_dir/ in #((
2351 ./ | .// | /[cC]/* | \
c6b750e1 2352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2353 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2354 /usr/ucb/* ) ;;
2355 *)
2356 # OSF1 and SCO ODT 3.0 have their own names for install.
2357 # Don't use installbsd from OSF since it installs stuff as root
2358 # by default.
2359 for ac_prog in ginstall scoinst install; do
2360 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2361 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2362 if test $ac_prog = install &&
c6b750e1 2363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2364 # AIX install. It has an incompatible calling convention.
2365 :
c6b750e1
DJ
2366 elif test $ac_prog = install &&
2367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368 # program-specific install script used by HP pwplus--don't use.
2369 :
e5c3f801 2370 else
58c85be7
RW
2371 rm -rf conftest.one conftest.two conftest.dir
2372 echo one > conftest.one
2373 echo two > conftest.two
2374 mkdir conftest.dir
2375 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2376 test -s conftest.one && test -s conftest.two &&
2377 test -s conftest.dir/conftest.one &&
2378 test -s conftest.dir/conftest.two
2379 then
2380 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2381 break 3
2382 fi
e5c3f801
NN
2383 fi
2384 fi
2385 done
c6b750e1
DJ
2386 done
2387 ;;
2388esac
81ecdfbb
RW
2389
2390 done
2391IFS=$as_save_IFS
c6b750e1 2392
58c85be7 2393rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2394
2395fi
2396 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2397 INSTALL=$ac_cv_path_install
e5c3f801 2398 else
58c85be7
RW
2399 # As a last resort, use the slow shell script. Don't cache a
2400 # value for INSTALL within a source directory, because that will
e5c3f801 2401 # break other packages using the cache if that directory is
58c85be7 2402 # removed, or if the value is a relative name.
c6b750e1 2403 INSTALL=$ac_install_sh
e5c3f801
NN
2404 fi
2405fi
81ecdfbb
RW
2406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2407$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2408
2409# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2410# It thinks the first close brace ends the variable substitution.
2411test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2412
c6b750e1 2413test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2414
2415test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2416
81ecdfbb
RW
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2418$as_echo_n "checking whether ln works... " >&6; }
2419if test "${acx_cv_prog_LN+set}" = set; then :
2420 $as_echo_n "(cached) " >&6
656fdd47
PB
2421else
2422 rm -f conftestdata_t
2423echo >conftestdata_f
2424if ln conftestdata_f conftestdata_t 2>/dev/null
2425then
2426 acx_cv_prog_LN=ln
2427else
2428 acx_cv_prog_LN=no
2429fi
2430rm -f conftestdata_f conftestdata_t
2431
2432fi
2433if test $acx_cv_prog_LN = no; then
2434 LN="cp"
81ecdfbb
RW
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2436$as_echo "no, using $LN" >&6; }
656fdd47
PB
2437else
2438 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2440$as_echo "yes" >&6; }
656fdd47
PB
2441fi
2442
81ecdfbb
RW
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2444$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2445LN_S=$as_ln_s
2446if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2448$as_echo "yes" >&6; }
cac3d6c4 2449else
81ecdfbb
RW
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2451$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2452fi
2453
8e957354
PB
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2455$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2456if test "${ac_cv_path_SED+set}" = set; then :
2457 $as_echo_n "(cached) " >&6
2458else
2459 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2460 for ac_i in 1 2 3 4 5 6 7; do
2461 ac_script="$ac_script$as_nl$ac_script"
2462 done
2463 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2464 { ac_script=; unset ac_script;}
2465 if test -z "$SED"; then
2466 ac_path_SED_found=false
2467 # Loop through the user's path and test for each of PROGNAME-LIST
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_prog in sed gsed; do
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2476 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2477# Check for GNU ac_path_SED and select it if it is found.
2478 # Check for GNU $ac_path_SED
2479case `"$ac_path_SED" --version 2>&1` in
2480*GNU*)
2481 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2482*)
2483 ac_count=0
2484 $as_echo_n 0123456789 >"conftest.in"
2485 while :
2486 do
2487 cat "conftest.in" "conftest.in" >"conftest.tmp"
2488 mv "conftest.tmp" "conftest.in"
2489 cp "conftest.in" "conftest.nl"
2490 $as_echo '' >> "conftest.nl"
2491 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2492 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2493 as_fn_arith $ac_count + 1 && ac_count=$as_val
2494 if test $ac_count -gt ${ac_path_SED_max-0}; then
2495 # Best one so far, save it but keep looking for a better one
2496 ac_cv_path_SED="$ac_path_SED"
2497 ac_path_SED_max=$ac_count
2498 fi
2499 # 10*(2^10) chars as input seems more than enough
2500 test $ac_count -gt 10 && break
2501 done
2502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2503esac
2504
2505 $ac_path_SED_found && break 3
2506 done
2507 done
2508 done
2509IFS=$as_save_IFS
2510 if test -z "$ac_cv_path_SED"; then
2511 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2512 fi
2513else
2514 ac_cv_path_SED=$SED
2515fi
2516
2517fi
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2519$as_echo "$ac_cv_path_SED" >&6; }
2520 SED="$ac_cv_path_SED"
2521 rm -f conftest.sed
2522
2523for ac_prog in gawk mawk nawk awk
2524do
2525 # Extract the first word of "$ac_prog", so it can be a program name with args.
2526set dummy $ac_prog; ac_word=$2
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528$as_echo_n "checking for $ac_word... " >&6; }
2529if test "${ac_cv_prog_AWK+set}" = set; then :
2530 $as_echo_n "(cached) " >&6
2531else
2532 if test -n "$AWK"; then
2533 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_AWK="$ac_prog"
2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2545 fi
2546done
2547 done
2548IFS=$as_save_IFS
2549
2550fi
2551fi
2552AWK=$ac_cv_prog_AWK
2553if test -n "$AWK"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2555$as_echo "$AWK" >&6; }
2556else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558$as_echo "no" >&6; }
2559fi
2560
2561
2562 test -n "$AWK" && break
2563done
2564
e5c3f801 2565
252b5132 2566### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2567### If we are on Windows, search for the shell. This will permit people
2568### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2569### without also having to set CONFIG_SHELL. This code will work when
2570### using bash, which sets OSTYPE.
2571case "${OSTYPE}" in
2572*win32*)
a0da8069
NN
2573 if test x${CONFIG_SHELL} = x ; then
2574 if test ! -f /bin/sh ; then
2575 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2576 CONFIG_SHELL=${SHELL}
2577 export CONFIG_SHELL
2578 else
2579 for prog in sh sh.exe bash bash.exe; do
2580 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2581 for dir in $PATH; do
2582 test -z "$dir" && dir=.
2583 if test -f $dir/$prog; then
2584 CONFIG_SHELL=$dir/$prog
2585 export CONFIG_SHELL
2586 break
2587 fi
2588 done
2589 IFS="$save_ifs"
2590 test -n "${CONFIG_SHELL}" && break
2591 done
2592 fi
2593 fi
2594 fi
2595 ;;
2596esac
2597
2598config_shell=${CONFIG_SHELL-/bin/sh}
2599
a0da8069 2600moveifchange=${srcdir}/move-if-change
252b5132 2601
0fdbe983
DJ
2602srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2603
2604# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2605# a relative path.
2606if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2607 INSTALL="${srcpwd}/install-sh -c"
2608fi
2609
a0da8069
NN
2610# Set srcdir to "." if that's what it is.
2611# This is important for multilib support.
2612pwd=`${PWDCMD-pwd}`
a0da8069
NN
2613if test "${pwd}" = "${srcpwd}" ; then
2614 srcdir=.
252b5132
RH
2615fi
2616
a0da8069 2617topsrcdir=$srcpwd
252b5132 2618
a0da8069 2619extra_host_args=
afefada0 2620
a0da8069
NN
2621### To add a new directory to the tree, first choose whether it is a target
2622### or a host dependent tool. Then put it into the appropriate list
2623### (library or tools, host or target), doing a dependency sort.
252b5132 2624
c6b750e1 2625# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2626# configdirs, or target_configdirs; see the serialization section below.
252b5132 2627
c6b750e1
DJ
2628# Dependency sorting is only needed when *configuration* must be done in
2629# a particular order. In all cases a dependency should be specified in
a0da8069 2630# the Makefile, whether or not it's implicitly specified here.
252b5132 2631
a0da8069
NN
2632# Double entries in build_configdirs, configdirs, or target_configdirs may
2633# cause circular dependencies and break everything horribly.
252b5132 2634
6a9cf61e
PB
2635# these library is used by various programs built for the build
2636# environment
2637#
2638build_libs="build-libiberty"
2639
2640# these tools are built for the build environment
ee025550 2641build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2642
a0da8069
NN
2643# these libraries are used by various programs built for the host environment
2644#
e8a5fa9c 2645host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
a0da8069 2646
a0da8069
NN
2647# these tools are built for the host environment
2648# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2649# know that we are building the simulator.
2650# binutils, gas and ld appear in that order because it makes sense to run
2651# "make check" in that particular order.
93f9b408 2652# If --enable-gold is used, "gold" will replace "ld".
f9806fa5 2653host_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
2654
2655# libgcj represents the runtime libraries only used by gcj.
2656libgcj="target-libffi \
a0da8069
NN
2657 target-zlib \
2658 target-qthreads \
2659 target-libjava"
2660
2661# these libraries are built for the target environment, and are built after
2662# the host libraries and the host tools (which may be a cross compiler)
2663#
b1299c4e
DJ
2664target_libraries="target-libgcc \
2665 target-libiberty \
a0da8069
NN
2666 target-libgloss \
2667 target-newlib \
cff87f51 2668 target-libgomp \
b9459e83 2669 target-libstdc++-v3 \
4b1cb4fe 2670 target-libmudflap \
bb780410 2671 target-libssp \
4b1cb4fe 2672 target-libgfortran \
4f0ef2d8 2673 target-boehm-gc \
83326456 2674 ${libgcj} \
a2592b1b 2675 target-libobjc \
cff87f51 2676 target-libada"
a0da8069 2677
9c14acb8
NN
2678# these tools are built using the target libraries, and are intended to
2679# run only in the target environment
a0da8069 2680#
9c14acb8 2681# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2682# list belongs in this list. those programs are also very likely
2683# candidates for the "native_only" list which follows
2684#
a3dd767d 2685target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2686
a0da8069 2687################################################################################
252b5132 2688
a0da8069
NN
2689## All tools belong in one of the four categories, and are assigned above
2690## We assign ${configdirs} this way to remove all embedded newlines. This
2691## is important because configure will choke if they ever get through.
2692## ${configdirs} is directories we build using the host tools.
2693## ${target_configdirs} is directories we build using the target tools.
a0da8069 2694configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2695target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2696build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2697
9cc8ae67
PB
2698
2699
a0da8069 2700################################################################################
252b5132 2701
a0da8069 2702srcname="gnu development package"
252b5132 2703
a0da8069
NN
2704# This gets set non-empty for some net releases of packages.
2705appdirs=""
252b5132 2706
a0da8069
NN
2707# Define is_cross_compiler to save on calls to 'test'.
2708is_cross_compiler=
2709if test x"${host}" = x"${target}" ; then
2710 is_cross_compiler=no
252b5132 2711else
a0da8069 2712 is_cross_compiler=yes
c6b750e1 2713fi
252b5132 2714
9175bfc0 2715# Find the build and target subdir names.
dd12c3a8 2716
66a79c16
DJ
2717# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2718# have matching libraries, they should use host libraries: Makefile.tpl
2719# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2720# However, they still use the build modules, because the corresponding
2721# host modules (e.g. bison) are only built for the host when bootstrap
2722# finishes. So:
2723# - build_subdir is where we find build modules, and never changes.
2724# - build_libsubdir is where we find build libraries, and can be overridden.
2725
2726# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2727build_subdir="build-${build_noncanonical}"
c6b750e1 2728
81ecdfbb
RW
2729# Check whether --with-build-libsubdir was given.
2730if test "${with_build_libsubdir+set}" = set; then :
2731 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2732else
2733 build_libsubdir="$build_subdir"
81ecdfbb
RW
2734fi
2735
b00612cc
PB
2736# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2737if ( test $srcdir = . && test -d gcc ) \
2738 || test -d $srcdir/../host-${host_noncanonical}; then
2739 host_subdir="host-${host_noncanonical}"
2740else
2741 host_subdir=.
2742fi
dd12c3a8
NN
2743# No prefix.
2744target_subdir=${target_noncanonical}
c6b750e1 2745
252b5132 2746
a0da8069
NN
2747# Skipdirs are removed silently.
2748skipdirs=
2749# Noconfigdirs are removed loudly.
2750noconfigdirs=""
252b5132 2751
a0da8069
NN
2752use_gnu_ld=
2753# Make sure we don't let GNU ld be added if we didn't want it.
2754if test x$with_gnu_ld = xno ; then
2755 use_gnu_ld=no
93f9b408 2756 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2757fi
2758
a0da8069
NN
2759use_gnu_as=
2760# Make sure we don't let GNU as be added if we didn't want it.
2761if test x$with_gnu_as = xno ; then
2762 use_gnu_as=no
2763 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2764fi
2765
c6b750e1 2766# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2767# it's not even worth trying to configure, much less build, that tool.
252b5132 2768
a0da8069
NN
2769case ${with_x} in
2770 yes | "") ;; # the default value for this tree is that X11 is available
2771 no)
675c6968 2772 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2773 # We won't be able to build gdbtk without X.
c6b750e1 2774 enable_gdbtk=no
a0da8069
NN
2775 ;;
2776 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2777esac
252b5132 2778
a0da8069 2779# Some tools are only suitable for building in a "native" situation.
c6b750e1 2780# Remove these if host!=target.
701628f5 2781native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 2782
a0da8069
NN
2783# Similarly, some are only suitable for cross toolchains.
2784# Remove these if host=target.
2785cross_only="target-libgloss target-newlib target-opcodes"
2786
2787case $is_cross_compiler in
2788 no) skipdirs="${skipdirs} ${cross_only}" ;;
2789 yes) skipdirs="${skipdirs} ${native_only}" ;;
2790esac
252b5132 2791
a0da8069
NN
2792# If both --with-headers and --with-libs are specified, default to
2793# --without-newlib.
32be62b5
RS
2794if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2795 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2796 if test x"${with_newlib}" = x ; then
2797 with_newlib=no
2798 fi
252b5132
RH
2799fi
2800
a0da8069
NN
2801# Recognize --with-newlib/--without-newlib.
2802case ${with_newlib} in
2803 no) skipdirs="${skipdirs} target-newlib" ;;
2804 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2805esac
252b5132 2806
93f9b408
ILT
2807# Handle --enable-gold.
2808
81ecdfbb
RW
2809# Check whether --enable-gold was given.
2810if test "${enable_gold+set}" = set; then :
2811 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2812else
2813 ENABLE_GOLD=no
81ecdfbb
RW
2814fi
2815
93f9b408
ILT
2816if test "${ENABLE_GOLD}" = "yes"; then
2817 # Check for ELF target.
2818 is_elf=no
2819 case "${target}" in
2820 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2821 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8bcf2718 2822 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
93f9b408
ILT
2823 case "${target}" in
2824 *-*-linux*aout* | *-*-linux*oldld*)
2825 ;;
2826 *)
2827 is_elf=yes
2828 ;;
2829 esac
2830 esac
2831
2832 if test "$is_elf" = "yes"; then
2833 # Check for target supported by gold.
2834 case "${target}" in
4a657b0d 2835 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
93f9b408
ILT
2836 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2837 ;;
2838 esac
2839 fi
2840fi
2841
a0da8069 2842# Configure extra directories which are host specific
252b5132 2843
a0da8069
NN
2844case "${host}" in
2845 *-cygwin*)
2846 configdirs="$configdirs libtermcap" ;;
2847esac
252b5132 2848
59f7ec45
HPN
2849# A target can indicate whether a language isn't supported for some reason.
2850# Only spaces may be used in this macro; not newlines or tabs.
2851unsupported_languages=
2852
c6b750e1 2853# Remove more programs from consideration, based on the host or
a0da8069
NN
2854# target this usually means that a port of the program doesn't
2855# exist yet.
252b5132 2856
a0da8069
NN
2857case "${host}" in
2858 hppa*64*-*-*)
2859 noconfigdirs="$noconfigdirs byacc"
2860 ;;
ec11bdc6 2861 i[3456789]86-*-vsta)
675c6968 2862 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2863 ;;
ec11bdc6 2864 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2865 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2866 ;;
2d1e8239
NC
2867 x86_64-*-mingw*)
2868 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2869 ;;
ec11bdc6 2870 i[3456789]86-*-mingw32*)
675c6968 2871 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2872 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2873 ;;
ec11bdc6 2874 i[3456789]86-*-beos*)
675c6968 2875 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2876 ;;
a0da8069 2877 *-*-cygwin*)
a92834c8 2878 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2879 ;;
2880 *-*-netbsd*)
a92834c8 2881 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2882 ;;
2883 ppc*-*-pe)
675c6968 2884 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2885 ;;
2886 powerpc-*-beos*)
675c6968 2887 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2888 ;;
a0da8069 2889esac
252b5132 2890
4b1cb4fe 2891
81ecdfbb
RW
2892# Check whether --enable-libada was given.
2893if test "${enable_libada+set}" = set; then :
2894 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2895else
2896 ENABLE_LIBADA=yes
81ecdfbb
RW
2897fi
2898
a2592b1b 2899if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2900 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2901fi
2902
81ecdfbb
RW
2903# Check whether --enable-libssp was given.
2904if test "${enable_libssp+set}" = set; then :
2905 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
2906else
2907 ENABLE_LIBSSP=yes
81ecdfbb
RW
2908fi
2909
5f128533 2910
a0da8069
NN
2911# Save it here so that, even in case of --enable-libgcj, if the Java
2912# front-end isn't enabled, we still get libgcj disabled.
2913libgcj_saved=$libgcj
2914case $enable_libgcj in
2915yes)
2916 # If we reset it here, it won't get added to noconfigdirs in the
2917 # target-specific build rules, so it will be forcibly enabled
2918 # (unless the Java language itself isn't enabled).
2919 libgcj=
2920 ;;
2921no)
2922 # Make sure we get it printed in the list of not supported target libs.
2923 noconfigdirs="$noconfigdirs ${libgcj}"
2924 ;;
2925esac
252b5132 2926
4b1cb4fe 2927
a6df5a19
PB
2928# Disable libmudflap on some systems.
2929if test x$enable_libmudflap = x ; then
3e707e94 2930 case "${target}" in
29383458 2931 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 2932 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2933 ;;
2934 *-*-freebsd*)
2935 # Enable libmudflap by default in FreeBSD.
2936 ;;
2937 *)
2938 # Disable it by default everywhere else.
2939 noconfigdirs="$noconfigdirs target-libmudflap"
2940 ;;
2941 esac
a6df5a19 2942fi
4b1cb4fe 2943
a6df5a19
PB
2944# Disable libgomp on non POSIX hosted systems.
2945if test x$enable_libgomp = x ; then
b3ded179
PB
2946 # Enable libgomp by default on hosted POSIX systems.
2947 case "${target}" in
29383458 2948 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
2949 ;;
2950 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2951 ;;
64ce424c 2952 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2953 ;;
2954 *-*-darwin* | *-*-aix*)
2955 ;;
2956 *)
2957 noconfigdirs="$noconfigdirs target-libgomp"
2958 ;;
2959 esac
a6df5a19 2960fi
b3ded179 2961
691bb5a1
DD
2962# Default libgloss CPU subdirectory.
2963libgloss_dir="$target_cpu"
4b1cb4fe 2964
a0da8069
NN
2965case "${target}" in
2966 *-*-chorusos)
54d1c879 2967 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2968 ;;
24741ab2 2969 powerpc-*-darwin*)
9d39db92 2970 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2971 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 2972 ;;
85bd1942
TG
2973 i[3456789]86-*-darwin*)
2974 noconfigdirs="$noconfigdirs ld gprof"
2975 noconfigdirs="$noconfigdirs sim target-rda"
2976 ;;
e8a5fa9c 2977 x86_64-*-darwin[912]*)
652dec25
TG
2978 noconfigdirs="$noconfigdirs ld gas gprof"
2979 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2980 ;;
04d1ab34 2981 *-*-darwin*)
d320aacb 2982 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2983 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2984 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2985 ;;
a0da8069 2986 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2987 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2988 ;;
de0b4a87 2989 *-*-freebsd*)
4b1cb4fe
DD
2990 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2991 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2992 && test -f /usr/local/include/gmp.h; then
2993 with_gmp=/usr/local
2994 fi
2995
2996 # Skip some stuff that's unsupported on some FreeBSD configurations.
2997 case "${target}" in
2998 i*86-*-*) ;;
2999 alpha*-*-*) ;;
3000 *)
54d1c879 3001 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3002 ;;
3003 esac
3004 ;;
f8a495c8
NC
3005 *-*-kaos*)
3006 # Remove unsupported stuff on all kaOS configurations.
54d1c879 3007 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
3008 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3009 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3010 noconfigdirs="$noconfigdirs target-libgloss"
3011 ;;
a0da8069
NN
3012 *-*-netbsd*)
3013 # Skip some stuff on all NetBSD configurations.
3014 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3015
3016 # Skip some stuff that's unsupported on some NetBSD configurations.
3017 case "${target}" in
3018 i*86-*-netbsdelf*) ;;
5b474aa8 3019 arm*-*-netbsdelf*) ;;
a0da8069 3020 *)
54d1c879 3021 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3022 ;;
3023 esac
3024 ;;
2a3124ca 3025 *-*-netware*)
54d1c879 3026 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
3027 ;;
3028 *-*-rtems*)
54d1c879 3029 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3030 ;;
1587117a
EC
3031 # The tpf target doesn't support gdb yet.
3032 *-*-tpf*)
54d1c879 3033 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 3034 ;;
c1968181 3035 *-*-uclinux*)
54d1c879 3036 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3037 ;;
a0da8069 3038 *-*-vxworks*)
54d1c879 3039 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3040 ;;
3041 alpha*-dec-osf*)
3042 # ld works, but does not support shared libraries.
3043 # newlib is not 64 bit ready. I'm not sure about fileutils.
3044 # gas doesn't generate exception information.
3045 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3046 ;;
3047 alpha*-*-*vms*)
54d1c879 3048 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3049 ;;
3050 alpha*-*-linux*)
3051 # newlib is not 64 bit ready
3052 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3053 ;;
a0da8069
NN
3054 alpha*-*-*)
3055 # newlib is not 64 bit ready
54d1c879 3056 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3057 ;;
4a18bd6b 3058 am33_2.0-*-linux*)
54d1c879 3059 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3060 ;;
a0da8069 3061 sh-*-linux*)
54d1c879 3062 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3063 ;;
a0da8069 3064 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3065 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3066 noconfigdirs="$noconfigdirs target-examples"
3067 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 3068 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3069 noconfigdirs="$noconfigdirs expect dejagnu"
3070 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3071 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
3072 noconfigdirs="$noconfigdirs target-newlib"
3073 case "${host}" in
3074 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 3075 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
3076 ;;
3077 esac
691bb5a1 3078 libgloss_dir=wince
a0da8069
NN
3079 ;;
3080 arc-*-*)
54d1c879 3081 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3082 ;;
caeba88f 3083 arm-semi-aof )
caeba88f 3084 ;;
a0da8069 3085 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 3086 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3087 libgloss_dir=arm
a0da8069 3088 ;;
11b04d1f 3089 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 3090 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 3091 libgloss_dir=arm
a0da8069 3092 ;;
bd70a46f 3093 arm*-*-linux-gnueabi)
6d18b86b 3094 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
3095 case ${with_newlib} in
3096 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3097 esac
691bb5a1 3098 libgloss_dir=arm
bd70a46f 3099 ;;
df4a6958 3100 arm*-*-symbianelf*)
54d1c879 3101 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3102 libgloss_dir=arm
df4a6958 3103 ;;
a0da8069 3104 arm-*-pe*)
54d1c879 3105 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3106 ;;
a0da8069 3107 thumb-*-coff)
54d1c879 3108 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3109 ;;
3110 thumb-*-elf)
54d1c879 3111 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3112 ;;
a0da8069 3113 thumb-*-pe)
54d1c879 3114 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3115 ;;
3116 arm-*-riscix*)
54d1c879 3117 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3118 ;;
3119 avr-*-*)
266df637 3120 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3121 ;;
376a0e54 3122 bfin-*-*)
00d89675 3123 noconfigdirs="$noconfigdirs gdb"
3cf3372e 3124 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3125 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3126 fi
3127 ;;
a0da8069 3128 c4x-*-* | tic4x-*-*)
54d1c879 3129 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3130 ;;
3131 c54x*-*-* | tic54x-*-*)
54d1c879 3132 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3133 ;;
52310858
NC
3134 cr16-*-*)
3135 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3136 ;;
c7e66c6d 3137 cris-*-* | crisv32-*-*)
59f7ec45 3138 unsupported_languages="$unsupported_languages java"
c7e66c6d 3139 case "${target}" in
2faa2958 3140 *-*-aout)
096f7d00 3141 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3142 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3143 *-*-elf)
5e818318 3144 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 3145 *-*-linux*)
5e818318 3146 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3147 *)
096f7d00 3148 unsupported_languages="$unsupported_languages fortran"
54d1c879 3149 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3150 esac
691bb5a1 3151 libgloss_dir=cris
a0da8069 3152 ;;
3e707e94 3153 crx-*-*)
54d1c879 3154 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3155 ;;
a0da8069 3156 d10v-*-*)
54d1c879 3157 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3158 ;;
3159 d30v-*-*)
54d1c879 3160 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3161 ;;
691bb5a1
DD
3162 ep9312-*-elf | ep9312-*-coff)
3163 libgloss_dir=arm
3164 ;;
a0da8069 3165 fr30-*-elf*)
54d1c879 3166 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3167 ;;
3168 frv-*-*)
54d1c879 3169 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3170 ;;
20135e4c
NC
3171 moxie-*-*)
3172 noconfigdirs="$noconfigdirs ${libgcj}"
3173 noconfigdirs="$noconfigdirs gprof"
3174 ;;
a0da8069 3175 h8300*-*-*)
54d1c879 3176 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3177 ;;
3178 h8500-*-*)
54d1c879 3179 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3180 ;;
caeba88f 3181 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3182 ;;
a0da8069
NN
3183 hppa*64*-*-linux* | parisc*64*-*-linux*)
3184 # In this case, it's because the hppa64-linux target is for
3185 # the kernel only at this point and has no libc, and thus no
3186 # headers, crt*.o, etc., all of which are needed by these.
3187 noconfigdirs="$noconfigdirs target-zlib"
3188 ;;
5dcac624
DA
3189 parisc*-*-linux* | hppa*-*-linux*)
3190 ;;
a0da8069 3191 hppa*-*-*elf* | \
a0da8069
NN
3192 hppa*-*-lites* | \
3193 hppa*-*-openbsd* | \
3194 hppa*64*-*-*)
54d1c879 3195 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3196 ;;
3197 hppa*-hp-hpux11*)
3198 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3199 ;;
691bb5a1
DD
3200 hppa*-*-pro*)
3201 libgloss_dir=pa
3202 ;;
a0da8069
NN
3203 hppa*-*-*)
3204 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3205 # build on HP-UX 10.20.
54d1c879 3206 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3207 ;;
b07c2aad 3208 i960-*-*)
54d1c879 3209 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3210 ;;
a0da8069
NN
3211 ia64*-*-elf*)
3212 # No gdb support yet.
675c6968 3213 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3214 ;;
3215 ia64*-**-hpux*)
3216 # No gdb or ld support yet.
54d1c879 3217 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3218 ;;
19e99079
NC
3219 ia64*-*-*vms*)
3220 # No gdb or ld support yet.
3221 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3222 ;;
caeba88f 3223 i370-*-opened*)
caeba88f 3224 ;;
ec11bdc6 3225 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3226 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3227 libgloss_dir=i386
a0da8069 3228 ;;
ec11bdc6 3229 i[3456789]86-*-linux*)
a0da8069
NN
3230 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3231 # not build java stuff by default.
3232 case "${target}" in
3233 *-*-*libc1*)
54d1c879 3234 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3235 esac
3236
3237 # This section makes it possible to build newlib natively on linux.
3238 # If we are using a cross compiler then don't configure newlib.
3239 if test x${is_cross_compiler} != xno ; then
bba45b8b 3240 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3241 fi
3242 noconfigdirs="$noconfigdirs target-libgloss"
3243 # If we are not using a cross compiler, do configure newlib.
3244 # Note however, that newlib will only be configured in this situation
3245 # if the --with-newlib option has been given, because otherwise
3246 # 'target-newlib' will appear in skipdirs.
3247 ;;
ec11bdc6 3248 i[3456789]86-*-mingw32*)
45055374
CV
3249 target_configdirs="$target_configdirs target-winsup"
3250 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3251 ;;
2d1e8239
NC
3252 x86_64-*-mingw*)
3253 target_configdirs="$target_configdirs target-winsup"
3254 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3255 ;;
a0da8069
NN
3256 *-*-cygwin*)
3257 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3258 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3259 # always build newlib if winsup directory is present.
45055374 3260 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3261 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3262 elif test -d "$srcdir/newlib"; then
45055374 3263 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3264 fi
c6b750e1 3265 ;;
caeba88f
AL
3266 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3267 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3268 ;;
ec11bdc6 3269 i[3456789]86-*-pe)
54d1c879 3270 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3271 ;;
ec11bdc6 3272 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3273 # The linker does not yet know about weak symbols in COFF,
3274 # and is not configured to handle mixed ELF and COFF.
54d1c879 3275 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3276 ;;
ec11bdc6 3277 i[3456789]86-*-sco*)
54d1c879 3278 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3279 ;;
ec11bdc6 3280 i[3456789]86-*-solaris2*)
a0da8069
NN
3281 noconfigdirs="$noconfigdirs target-libgloss"
3282 ;;
ec11bdc6 3283 i[3456789]86-*-sysv4*)
54d1c879 3284 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3285 ;;
ec11bdc6 3286 i[3456789]86-*-beos*)
54d1c879 3287 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3288 ;;
b59bea8a 3289 i[3456789]86-*-rdos*)
2429c060
PB
3290 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3291 ;;
b07c2aad 3292 m32r-*-*)
54d1c879 3293 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3294 ;;
a0da8069 3295 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3296 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3297 libgloss_dir=m68hc11
a0da8069
NN
3298 ;;
3299 m68k-*-elf*)
54d1c879 3300 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3301 ;;
3302 m68k-*-coff*)
54d1c879 3303 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3304 ;;
691bb5a1
DD
3305 m68*-*-* | fido-*-*)
3306 libgloss_dir=m68k
3307 ;;
a0da8069
NN
3308 mcore-*-pe*)
3309 # The EPOC C++ environment does not support exceptions or rtti,
3310 # and so building libstdc++-v3 tends not to always work.
3311 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3312 ;;
3313 mmix-*-*)
59f7ec45 3314 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3315 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3316 ;;
3317 mn10200-*-*)
54d1c879 3318 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3319 ;;
3320 mn10300-*-*)
54d1c879 3321 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3322 ;;
4970f871 3323 mt-*-*)
cdb9b172
AH
3324 noconfigdirs="$noconfigdirs sim"
3325 ;;
a0da8069
NN
3326 powerpc-*-aix*)
3327 # copied from rs6000-*-* entry
e8a5fa9c 3328 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3329 ;;
3330 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3331 target_configdirs="$target_configdirs target-winsup"
54d1c879 3332 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3333 # always build newlib.
3334 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3335 ;;
3336 # This is temporary until we can link against shared libraries
3337 powerpcle-*-solaris*)
54d1c879 3338 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3339 libgloss_dir=rs6000
a0da8069
NN
3340 ;;
3341 powerpc-*-beos*)
54d1c879 3342 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3343 ;;
a0da8069 3344 powerpc-*-eabi)
54d1c879 3345 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3346 libgloss_dir=rs6000
caeba88f
AL
3347 ;;
3348 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3349 libgloss_dir=rs6000
a0da8069 3350 ;;
a0da8069 3351 rs6000-*-lynxos*)
54d1c879 3352 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3353 ;;
3354 rs6000-*-aix*)
e8a5fa9c 3355 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3356 ;;
3357 rs6000-*-*)
54d1c879 3358 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3359 ;;
3360 m68k-apollo-*)
54d1c879 3361 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3362 ;;
25a07265
NC
3363 microblaze*)
3364 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3365 ;;
5bd8be13
RS
3366 mips*-sde-elf*)
3367 skipdirs="$skipdirs target-libiberty"
3368 noconfigdirs="$noconfigdirs ${libgcj}"
3369 if test x$with_newlib = xyes; then
3370 noconfigdirs="$noconfigdirs gprof"
3371 fi
3372 libgloss_dir=mips
3373 ;;
a0da8069 3374 mips*-*-irix5*)
54d1c879 3375 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3376 ;;
3377 mips*-*-irix6*)
a0da8069
NN
3378 # Linking libjava exceeds command-line length limits on at least
3379 # IRIX 6.2, but not on IRIX 6.5.
3380 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3381 # <oldham@codesourcery.com>
54d1c879 3382 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3383 ;;
a0da8069 3384 mips*-*-bsd*)
54d1c879 3385 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3386 ;;
a0da8069
NN
3387 mips*-*-linux*)
3388 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3389 ;;
3390 mips*-*-*)
54d1c879 3391 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3392 libgloss_dir=mips
a0da8069
NN
3393 ;;
3394 romp-*-*)
54d1c879 3395 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3396 ;;
dbf85af7 3397 sh-*-* | sh64-*-*)
a0da8069 3398 case "${host}" in
ec11bdc6
DD
3399 i[3456789]86-*-vsta) ;; # don't add gprof back in
3400 i[3456789]86-*-go32*) ;; # don't add gprof back in
3401 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3402 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3403 esac
e8a5fa9c
RW
3404 case "${target}" in
3405 sh*-*-elf)
3406 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3407 *)
3408 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3409 esac
a0da8069 3410 ;;
691bb5a1
DD
3411 sparclet-*-aout* | sparc86x-*-*)
3412 libgloss_dir=sparc
3413 ;;
a0da8069 3414 sparc-*-elf*)
54d1c879 3415 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3416 ;;
3417 sparc64-*-elf*)
54d1c879 3418 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3419 libgloss_dir=sparc
a0da8069
NN
3420 ;;
3421 sparclite-*-*)
54d1c879 3422 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3423 libgloss_dir=sparc
a0da8069
NN
3424 ;;
3425 sparc-*-sunos4*)
54d1c879 3426 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3427 if test x${is_cross_compiler} != xno ; then
3428 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3429 else
3430 use_gnu_ld=no
3431 fi
3432 ;;
e3c770b1 3433 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3434 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3435 ;;
a0da8069
NN
3436 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3437 ;;
3438 v810-*-*)
54d1c879 3439 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
3440 ;;
3441 v850-*-*)
54d1c879 3442 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3443 ;;
3444 v850e-*-*)
54d1c879 3445 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3446 ;;
3447 v850ea-*-*)
54d1c879 3448 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3449 ;;
3450 vax-*-vms)
54d1c879 3451 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3452 ;;
3453 vax-*-*)
54d1c879 3454 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3455 ;;
8b66833e 3456 xtensa*-*-*)
54d1c879 3457 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3458 ;;
a0da8069 3459 ip2k-*-*)
54d1c879 3460 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3461 ;;
29383458 3462 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3463 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3464 ;;
3465 *-*-lynxos*)
54d1c879 3466 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3467 ;;
a0da8069 3468 *-*-*)
54d1c879 3469 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3470 ;;
3471esac
252b5132 3472
a0da8069
NN
3473# If we aren't building newlib, then don't build libgloss, since libgloss
3474# depends upon some newlib header files.
3475case "${noconfigdirs}" in
3476 *target-libgloss*) ;;
3477 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3478esac
3479
a0da8069
NN
3480# Work in distributions that contain no compiler tools, like Autoconf.
3481tentative_cc=""
3482host_makefile_frag=/dev/null
3483if test -d ${srcdir}/config ; then
3484case "${host}" in
3485 m68k-hp-hpux*)
3486 # Avoid "too much defining" errors from HPUX compiler.
3487 tentative_cc="cc -Wp,-H256000"
3488 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3489 # If it's HP/UX ar, this should be harmless.
3490 RANLIB="ar ts"
3491 ;;
3492 m68k-apollo-sysv*)
3493 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3494 ;;
3495 m68k-apollo-bsd*)
3496 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3497 # chokes on bfd, the compiler won't let you assign integers to enums, and
3498 # other problems. Defining CC to gcc is a questionable way to say "don't use
3499 # the apollo compiler" (the preferred version of GCC could be called cc,
3500 # or whatever), but I'm not sure leaving CC as cc is any better...
3501 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3502 # Used to have BISON=yacc.
3503 tentative_cc=gcc
3504 ;;
3505 m88k-dg-dgux*)
3506 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3507 ;;
3508 m88k-harris-cxux*)
3509 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3510 tentative_cc="cc -Xa"
3511 host_makefile_frag="config/mh-cxux"
3512 ;;
3513 m88k-motorola-sysv*)
3514 ;;
3515 mips*-dec-ultrix*)
3516 tentative_cc="cc -Wf,-XNg1000"
3517 host_makefile_frag="config/mh-decstation"
3518 ;;
3519 mips*-nec-sysv4*)
3520 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3521 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3522 host_makefile_frag="config/mh-necv4"
3523 ;;
3524 mips*-sgi-irix4*)
3525 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3526 # environment. Also bump switch table size so that cp-parse will
3527 # compile. Bump string length limit so linker builds.
3528 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3529 ;;
3530 mips*-*-sysv4*)
3531 host_makefile_frag="config/mh-sysv4"
3532 ;;
3533 mips*-*-sysv*)
3534 # This is for a MIPS running RISC/os 4.52C.
3535
3536 # This is needed for GDB, but needs to be in the top-level make because
3537 # if a library is compiled with the bsd headers and gets linked with the
3538 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3539 # a different size).
3540 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3541 # known except to select the sysv environment. Could we use /proc instead?
3542 # These "sysv environments" and "bsd environments" often end up being a pain.
3543 #
3544 # This is not part of CFLAGS because perhaps not all C compilers have this
3545 # option.
3546 tentative_cc="cc -systype sysv"
3547 ;;
3548 i370-ibm-opened*)
3549 tentative_cc="c89"
3550 ;;
ec11bdc6 3551 i[3456789]86-*-sysv5*)
a0da8069
NN
3552 host_makefile_frag="config/mh-sysv5"
3553 ;;
ec11bdc6 3554 i[3456789]86-*-dgux*)
a0da8069
NN
3555 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3556 host_makefile_frag="config/mh-dgux386"
3557 ;;
ec11bdc6 3558 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3559 # The MetaWare compiler will generate a copyright message unless you
3560 # turn it off by adding the -Hnocopyr flag.
3561 tentative_cc="cc -Hnocopyr"
3562 ;;
ec11bdc6 3563 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3564 # for an NCR 3000 (i486/SVR4) system.
3565 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3566 # This compiler not only emits obnoxious copyright messages every time
3567 # you run it, but it chokes and dies on a whole bunch of GNU source
3568 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3569 tentative_cc="/usr/ccs/ATT/cc"
3570 host_makefile_frag="config/mh-ncr3000"
3571 ;;
ec11bdc6 3572 i[3456789]86-*-sco3.2v5*)
a0da8069 3573 ;;
ec11bdc6 3574 i[3456789]86-*-sco*)
a0da8069
NN
3575 # The native C compiler botches some simple uses of const. Unfortunately,
3576 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3577 tentative_cc="cc -Dconst="
3578 host_makefile_frag="config/mh-sco"
3579 ;;
ec11bdc6 3580 i[3456789]86-*-udk*)
a0da8069
NN
3581 host_makefile_frag="config/mh-sysv5"
3582 ;;
ec11bdc6 3583 i[3456789]86-*-solaris2*)
a0da8069
NN
3584 host_makefile_frag="config/mh-sysv4"
3585 ;;
ec11bdc6 3586 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3587 host_makefile_frag="config/mh-djgpp"
3588 ;;
3589 *-cygwin*)
e33b51a6 3590
81ecdfbb
RW
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3592$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6
NC
3593echo a >cygwin-cat-check
3594if test `cat cygwin-cat-check` == a ; then
8ade07e9 3595 rm cygwin-cat-check
81ecdfbb
RW
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597$as_echo "yes" >&6; }
e33b51a6 3598else
8ade07e9 3599 rm cygwin-cat-check
81ecdfbb
RW
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601$as_echo "no" >&6; }
3602 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3603 Please either mount the build directory in binary mode or run the following
3604 commands before running any configure script:
3605set -o igncr
3606export SHELLOPTS
81ecdfbb 3607 " "$LINENO" 5
e33b51a6 3608fi
e33b51a6 3609
a0da8069
NN
3610 host_makefile_frag="config/mh-cygwin"
3611 ;;
8a1599ab 3612 *-mingw*)
84e7906e 3613 host_makefile_frag="config/mh-mingw"
2d1e8239 3614 ;;
a0da8069
NN
3615 *-interix*)
3616 host_makefile_frag="config/mh-interix"
3617 ;;
3618 vax-*-ultrix2*)
3619 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3620 tentative_cc=gcc
3621 ;;
3622 *-*-solaris2*)
3623 host_makefile_frag="config/mh-solaris"
3624 ;;
3625 m68k-sun-sunos*)
3626 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3627 # without overflowing the jump tables (-J says to use a 32 bit table)
3628 tentative_cc="cc -J"
3629 ;;
da888c87 3630 hppa*-hp-hpux10*)
a0da8069 3631 tentative_cc="cc -Wp,-H256000"
da888c87 3632 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3633 ;;
da888c87
PB
3634 hppa*-hp-hpux* | hppa*-*-hiux*)
3635 tentative_cc="cc -Wp,-H256000"
3636 host_makefile_frag="config/mh-pa"
3637 ;;
3638 hppa*-*)
3639 host_makefile_frag="config/mh-pa"
3640 ;;
3641 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3642 tentative_cc="cc -Wp,-H256000"
3643 ;;
3644 rs6000-*-lynxos*)
3645 # /bin/cc is less than useful for our purposes. Always use GCC
3646 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3647 host_makefile_frag="config/mh-lynxrs6k"
3648 ;;
0df3d27f
PB
3649 powerpc-*-darwin*)
3650 host_makefile_frag="config/mh-ppc-darwin"
3651 ;;
f6d183c0
PB
3652 powerpc-*-aix*)
3653 host_makefile_frag="config/mh-ppc-aix"
3654 ;;
3655 rs6000-*-aix*)
3656 host_makefile_frag="config/mh-ppc-aix"
3657 ;;
a0da8069
NN
3658 *-*-lynxos*)
3659 # /bin/cc is less than useful for our purposes. Always use GCC
3660 tentative_cc="/bin/gcc"
3661 ;;
3662 *-*-sysv4*)
3663 host_makefile_frag="config/mh-sysv4"
3664 ;;
fe69863c
DD
3665 # This is placed last to prevent interfering with the cases above.
3666 i[3456789]86-*-*)
3667 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3668 host_makefile_frag="config/mh-x86omitfp"
3669 ;;
a0da8069
NN
3670esac
3671fi
3672
9e07f89d
NN
3673# If we aren't going to be using gcc, see if we can extract a definition
3674# of CC from the fragment.
3675# Actually, use the 'pre-extracted' version above.
3676if test -z "${CC}" && test "${build}" = "${host}" ; then
3677 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3678 found=
3679 for dir in $PATH; do
3680 test -z "$dir" && dir=.
3681 if test -f $dir/gcc; then
3682 found=yes
3683 break
3684 fi
3685 done
3686 IFS="$save_ifs"
3687 if test -z "${found}" && test -n "${tentative_cc}" ; then
3688 CC=$tentative_cc
3689 fi
3690fi
3691
3692if test "${build}" != "${host}" ; then
1576798e
PB
3693 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3694 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3695 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3696 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3697 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3698 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3699 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3700 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3701 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3702 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3703 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3704 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3705else
3706 AR_FOR_BUILD="\$(AR)"
3707 AS_FOR_BUILD="\$(AS)"
512b7dfb 3708 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3709 CXX_FOR_BUILD="\$(CXX)"
3710 GCJ_FOR_BUILD="\$(GCJ)"
3711 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3712 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3713 LD_FOR_BUILD="\$(LD)"
3714 NM_FOR_BUILD="\$(NM)"
3715 RANLIB_FOR_BUILD="\$(RANLIB)"
3716 WINDRES_FOR_BUILD="\$(WINDRES)"
3717 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3718fi
3719
3720ac_ext=c
c6b750e1
DJ
3721ac_cpp='$CPP $CPPFLAGS'
3722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725if test -n "$ac_tool_prefix"; then
3726 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3727set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729$as_echo_n "checking for $ac_word... " >&6; }
3730if test "${ac_cv_prog_CC+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3732else
3733 if test -n "$CC"; then
3734 ac_cv_prog_CC="$CC" # Let the user override the test.
3735else
3736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737for as_dir in $PATH
3738do
3739 IFS=$as_save_IFS
3740 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3743 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3745 break 2
3746 fi
3747done
81ecdfbb
RW
3748 done
3749IFS=$as_save_IFS
c6b750e1
DJ
3750
3751fi
3752fi
3753CC=$ac_cv_prog_CC
3754if test -n "$CC"; then
81ecdfbb
RW
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3756$as_echo "$CC" >&6; }
c6b750e1 3757else
81ecdfbb
RW
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759$as_echo "no" >&6; }
c6b750e1
DJ
3760fi
3761
81ecdfbb 3762
c6b750e1
DJ
3763fi
3764if test -z "$ac_cv_prog_CC"; then
3765 ac_ct_CC=$CC
6a9cf61e 3766 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3767set dummy gcc; ac_word=$2
81ecdfbb
RW
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769$as_echo_n "checking for $ac_word... " >&6; }
3770if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3771 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3772else
3773 if test -n "$ac_ct_CC"; then
3774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3775else
3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH
3778do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3783 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3785 break 2
3786 fi
3787done
81ecdfbb
RW
3788 done
3789IFS=$as_save_IFS
c6b750e1
DJ
3790
3791fi
3792fi
3793ac_ct_CC=$ac_cv_prog_ac_ct_CC
3794if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3796$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3797else
81ecdfbb
RW
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799$as_echo "no" >&6; }
c6b750e1
DJ
3800fi
3801
81ecdfbb
RW
3802 if test "x$ac_ct_CC" = x; then
3803 CC=""
3804 else
3805 case $cross_compiling:$ac_tool_warned in
3806yes:)
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3809ac_tool_warned=yes ;;
3810esac
3811 CC=$ac_ct_CC
3812 fi
c6b750e1
DJ
3813else
3814 CC="$ac_cv_prog_CC"
3815fi
3816
3817if test -z "$CC"; then
81ecdfbb
RW
3818 if test -n "$ac_tool_prefix"; then
3819 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3820set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822$as_echo_n "checking for $ac_word... " >&6; }
3823if test "${ac_cv_prog_CC+set}" = set; then :
3824 $as_echo_n "(cached) " >&6
9e07f89d
NN
3825else
3826 if test -n "$CC"; then
3827 ac_cv_prog_CC="$CC" # Let the user override the test.
3828else
c6b750e1
DJ
3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3836 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3838 break 2
3839 fi
3840done
81ecdfbb
RW
3841 done
3842IFS=$as_save_IFS
c6b750e1 3843
9e07f89d
NN
3844fi
3845fi
c6b750e1 3846CC=$ac_cv_prog_CC
9e07f89d 3847if test -n "$CC"; then
81ecdfbb
RW
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3849$as_echo "$CC" >&6; }
c6b750e1 3850else
81ecdfbb
RW
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852$as_echo "no" >&6; }
c6b750e1
DJ
3853fi
3854
c6b750e1 3855
81ecdfbb 3856 fi
c6b750e1 3857fi
9e07f89d
NN
3858if test -z "$CC"; then
3859 # Extract the first word of "cc", so it can be a program name with args.
3860set dummy cc; ac_word=$2
81ecdfbb
RW
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862$as_echo_n "checking for $ac_word... " >&6; }
3863if test "${ac_cv_prog_CC+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
9e07f89d
NN
3865else
3866 if test -n "$CC"; then
3867 ac_cv_prog_CC="$CC" # Let the user override the test.
3868else
9e07f89d 3869 ac_prog_rejected=no
c6b750e1
DJ
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3878 ac_prog_rejected=yes
3879 continue
3880 fi
3881 ac_cv_prog_CC="cc"
81ecdfbb 3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3883 break 2
3884 fi
3885done
81ecdfbb
RW
3886 done
3887IFS=$as_save_IFS
c6b750e1 3888
9e07f89d
NN
3889if test $ac_prog_rejected = yes; then
3890 # We found a bogon in the path, so make sure we never use it.
3891 set dummy $ac_cv_prog_CC
3892 shift
c6b750e1 3893 if test $# != 0; then
9e07f89d
NN
3894 # We chose a different compiler from the bogus one.
3895 # However, it has the same basename, so the bogon will be chosen
3896 # first if we set CC to just the basename; use the full file name.
3897 shift
c6b750e1 3898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3899 fi
3900fi
3901fi
3902fi
c6b750e1 3903CC=$ac_cv_prog_CC
9e07f89d 3904if test -n "$CC"; then
81ecdfbb
RW
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3906$as_echo "$CC" >&6; }
9e07f89d 3907else
81ecdfbb
RW
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909$as_echo "no" >&6; }
9e07f89d
NN
3910fi
3911
81ecdfbb 3912
c6b750e1
DJ
3913fi
3914if test -z "$CC"; then
3915 if test -n "$ac_tool_prefix"; then
81ecdfbb 3916 for ac_prog in cl.exe
c6b750e1
DJ
3917 do
3918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3919set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921$as_echo_n "checking for $ac_word... " >&6; }
3922if test "${ac_cv_prog_CC+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
9e07f89d
NN
3924else
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC="$CC" # Let the user override the test.
3927else
c6b750e1
DJ
3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH
3930do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3935 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3937 break 2
376a0e54 3938 fi
c6b750e1 3939done
81ecdfbb
RW
3940 done
3941IFS=$as_save_IFS
cac3d6c4 3942
c6b750e1
DJ
3943fi
3944fi
3945CC=$ac_cv_prog_CC
3946if test -n "$CC"; then
81ecdfbb
RW
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3948$as_echo "$CC" >&6; }
cac3d6c4 3949else
81ecdfbb
RW
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951$as_echo "no" >&6; }
9e07f89d 3952fi
cac3d6c4 3953
81ecdfbb 3954
c6b750e1
DJ
3955 test -n "$CC" && break
3956 done
cac3d6c4 3957fi
c6b750e1
DJ
3958if test -z "$CC"; then
3959 ac_ct_CC=$CC
81ecdfbb 3960 for ac_prog in cl.exe
c6b750e1
DJ
3961do
3962 # Extract the first word of "$ac_prog", so it can be a program name with args.
3963set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965$as_echo_n "checking for $ac_word... " >&6; }
3966if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
cac3d6c4 3968else
c6b750e1
DJ
3969 if test -n "$ac_ct_CC"; then
3970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3971else
c6b750e1
DJ
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3979 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3981 break 2
3982 fi
3983done
81ecdfbb
RW
3984 done
3985IFS=$as_save_IFS
c6b750e1 3986
cac3d6c4
CM
3987fi
3988fi
c6b750e1
DJ
3989ac_ct_CC=$ac_cv_prog_ac_ct_CC
3990if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3992$as_echo "$ac_ct_CC" >&6; }
9e07f89d 3993else
81ecdfbb
RW
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995$as_echo "no" >&6; }
cac3d6c4 3996fi
376a0e54 3997
81ecdfbb 3998
c6b750e1
DJ
3999 test -n "$ac_ct_CC" && break
4000done
4001
81ecdfbb
RW
4002 if test "x$ac_ct_CC" = x; then
4003 CC=""
4004 else
4005 case $cross_compiling:$ac_tool_warned in
4006yes:)
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4009ac_tool_warned=yes ;;
4010esac
4011 CC=$ac_ct_CC
4012 fi
c6b750e1
DJ
4013fi
4014
4015fi
4016
4017
81ecdfbb
RW
4018test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020as_fn_error "no acceptable C compiler found in \$PATH
4021See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4022
4023# Provide some information about the compiler.
81ecdfbb
RW
4024$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4025set X $ac_compile
4026ac_compiler=$2
4027for ac_option in --version -v -V -qversion; do
4028 { { ac_try="$ac_compiler $ac_option >&5"
4029case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032esac
4033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034$as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4036 ac_status=$?
81ecdfbb
RW
4037 if test -s conftest.err; then
4038 sed '10a\
4039... rest of stderr output deleted ...
4040 10q' conftest.err >conftest.er1
4041 cat conftest.er1 >&5
4042 rm -f conftest.er1 conftest.err
4043 fi
4044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045 test $ac_status = 0; }
4046done
c6b750e1 4047
81ecdfbb 4048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4049/* end confdefs.h. */
4050
4051int
4052main ()
4053{
4054
4055 ;
4056 return 0;
4057}
4058_ACEOF
4059ac_clean_files_save=$ac_clean_files
81ecdfbb 4060ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4061# Try to create an executable without -o first, disregard a.out.
4062# It will help us diagnose broken compilers, and finding out an intuition
4063# of exeext.
81ecdfbb
RW
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4065$as_echo_n "checking for C compiler default output file name... " >&6; }
4066ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4067
4068# The possible output files:
4069ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4070
4071ac_rmfiles=
4072for ac_file in $ac_files
4073do
4074 case $ac_file in
4075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4076 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4077 esac
4078done
4079rm -f $ac_rmfiles
4080
4081if { { ac_try="$ac_link_default"
4082case "(($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_link_default") 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 :
4092 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4093# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4094# in a Makefile. We should not override ac_cv_exeext if it was cached,
4095# so that the user can short-circuit this test for compilers unknown to
4096# Autoconf.
4097for ac_file in $ac_files ''
c6b750e1
DJ
4098do
4099 test -f "$ac_file" || continue
4100 case $ac_file in
81ecdfbb 4101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4102 ;;
4103 [ab].out )
4104 # We found the default executable, but exeext='' is most
4105 # certainly right.
4106 break;;
4107 *.* )
81ecdfbb
RW
4108 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4109 then :; else
4110 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4111 fi
4112 # We set ac_cv_exeext here because the later test for it is not
4113 # safe: cross compilers may not add the suffix if given an `-o'
4114 # argument, so we may need to know it at that point already.
4115 # Even if this section looks crufty: it has the advantage of
4116 # actually working.
c6b750e1
DJ
4117 break;;
4118 * )
4119 break;;
4120 esac
4121done
81ecdfbb
RW
4122test "$ac_cv_exeext" = no && ac_cv_exeext=
4123
c6b750e1 4124else
81ecdfbb
RW
4125 ac_file=''
4126fi
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4128$as_echo "$ac_file" >&6; }
4129if test -z "$ac_file"; then :
4130 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
81ecdfbb
RW
4133{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4135{ as_fn_set_status 77
4136as_fn_error "C compiler cannot create executables
4137See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4138fi
c6b750e1 4139ac_exeext=$ac_cv_exeext
c6b750e1 4140
81ecdfbb 4141# Check that the compiler produces executables we can run. If not, either
c6b750e1 4142# the compiler is broken, or we cross compile.
81ecdfbb
RW
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4144$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4145# If not cross compiling, check that we can run a simple program.
4146if test "$cross_compiling" != yes; then
4147 if { ac_try='./$ac_file'
81ecdfbb
RW
4148 { { case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151esac
4152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4153$as_echo "$ac_try_echo"; } >&5
4154 (eval "$ac_try") 2>&5
c6b750e1 4155 ac_status=$?
81ecdfbb
RW
4156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4157 test $ac_status = 0; }; }; then
c6b750e1
DJ
4158 cross_compiling=no
4159 else
4160 if test "$cross_compiling" = maybe; then
4161 cross_compiling=yes
4162 else
81ecdfbb
RW
4163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4165as_fn_error "cannot run C compiled programs.
c6b750e1 4166If you meant to cross compile, use \`--host'.
81ecdfbb 4167See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4168 fi
4169 fi
4170fi
81ecdfbb
RW
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4172$as_echo "yes" >&6; }
c6b750e1 4173
81ecdfbb 4174rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4175ac_clean_files=$ac_clean_files_save
81ecdfbb 4176# Check that the compiler produces executables we can run. If not, either
c6b750e1 4177# the compiler is broken, or we cross compile.
81ecdfbb
RW
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4179$as_echo_n "checking whether we are cross compiling... " >&6; }
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4181$as_echo "$cross_compiling" >&6; }
4182
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4184$as_echo_n "checking for suffix of executables... " >&6; }
4185if { { ac_try="$ac_link"
4186case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
4190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4191$as_echo "$ac_try_echo"; } >&5
4192 (eval "$ac_link") 2>&5
c6b750e1 4193 ac_status=$?
81ecdfbb
RW
4194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4195 test $ac_status = 0; }; then :
c6b750e1
DJ
4196 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4197# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4198# work properly (i.e., refer to `conftest.exe'), while it won't with
4199# `rm'.
4200for ac_file in conftest.exe conftest conftest.*; do
4201 test -f "$ac_file" || continue
4202 case $ac_file in
81ecdfbb 4203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4204 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4205 break;;
4206 * ) break;;
4207 esac
4208done
4209else
81ecdfbb
RW
4210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4212as_fn_error "cannot compute suffix of executables: cannot compile and link
4213See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4214fi
c6b750e1 4215rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4217$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4218
4219rm -f conftest.$ac_ext
4220EXEEXT=$ac_cv_exeext
4221ac_exeext=$EXEEXT
81ecdfbb
RW
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4223$as_echo_n "checking for suffix of object files... " >&6; }
4224if test "${ac_cv_objext+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
c6b750e1 4226else
81ecdfbb 4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4228/* end confdefs.h. */
4229
4230int
4231main ()
4232{
4233
4234 ;
4235 return 0;
4236}
4237_ACEOF
4238rm -f conftest.o conftest.obj
81ecdfbb
RW
4239if { { ac_try="$ac_compile"
4240case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
4244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245$as_echo "$ac_try_echo"; } >&5
4246 (eval "$ac_compile") 2>&5
c6b750e1 4247 ac_status=$?
81ecdfbb
RW
4248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4249 test $ac_status = 0; }; then :
4250 for ac_file in conftest.o conftest.obj conftest.*; do
4251 test -f "$ac_file" || continue;
c6b750e1 4252 case $ac_file in
81ecdfbb 4253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4254 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4255 break;;
4256 esac
4257done
cac3d6c4 4258else
81ecdfbb 4259 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4260sed 's/^/| /' conftest.$ac_ext >&5
4261
81ecdfbb
RW
4262{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4264as_fn_error "cannot compute suffix of object files: cannot compile
4265See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4266fi
c6b750e1
DJ
4267rm -f conftest.$ac_cv_objext conftest.$ac_ext
4268fi
81ecdfbb
RW
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4270$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4271OBJEXT=$ac_cv_objext
4272ac_objext=$OBJEXT
81ecdfbb
RW
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4274$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4275if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4276 $as_echo_n "(cached) " >&6
c6b750e1 4277else
81ecdfbb 4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4279/* end confdefs.h. */
4280
4281int
4282main ()
4283{
4284#ifndef __GNUC__
4285 choke me
4286#endif
4287
4288 ;
4289 return 0;
4290}
4291_ACEOF
81ecdfbb 4292if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4293 ac_compiler_gnu=yes
4294else
81ecdfbb 4295 ac_compiler_gnu=no
c6b750e1 4296fi
81ecdfbb 4297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4298ac_cv_c_compiler_gnu=$ac_compiler_gnu
4299
4300fi
81ecdfbb
RW
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4302$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4303if test $ac_compiler_gnu = yes; then
4304 GCC=yes
4305else
4306 GCC=
4307fi
c6b750e1
DJ
4308ac_test_CFLAGS=${CFLAGS+set}
4309ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4311$as_echo_n "checking whether $CC accepts -g... " >&6; }
4312if test "${ac_cv_prog_cc_g+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4314else
4315 ac_save_c_werror_flag=$ac_c_werror_flag
4316 ac_c_werror_flag=yes
4317 ac_cv_prog_cc_g=no
4318 CFLAGS="-g"
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4320/* end confdefs.h. */
4321
4322int
4323main ()
4324{
4325
4326 ;
4327 return 0;
4328}
4329_ACEOF
81ecdfbb 4330if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4331 ac_cv_prog_cc_g=yes
4332else
81ecdfbb
RW
4333 CFLAGS=""
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335/* end confdefs.h. */
4336
4337int
4338main ()
4339{
4340
4341 ;
4342 return 0;
4343}
4344_ACEOF
4345if ac_fn_c_try_compile "$LINENO"; then :
4346
4347else
4348 ac_c_werror_flag=$ac_save_c_werror_flag
4349 CFLAGS="-g"
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351/* end confdefs.h. */
cac3d6c4 4352
81ecdfbb
RW
4353int
4354main ()
4355{
4356
4357 ;
4358 return 0;
4359}
4360_ACEOF
4361if ac_fn_c_try_compile "$LINENO"; then :
4362 ac_cv_prog_cc_g=yes
4363fi
4364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4365fi
81ecdfbb 4366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4367fi
81ecdfbb
RW
4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4370fi
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4372$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4373if test "$ac_test_CFLAGS" = set; then
c6b750e1 4374 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4375elif test $ac_cv_prog_cc_g = yes; then
4376 if test "$GCC" = yes; then
4377 CFLAGS="-g -O2"
4378 else
4379 CFLAGS="-g"
4380 fi
4381else
4382 if test "$GCC" = yes; then
4383 CFLAGS="-O2"
4384 else
4385 CFLAGS=
4386 fi
4387fi
81ecdfbb
RW
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4389$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4390if test "${ac_cv_prog_cc_c89+set}" = set; then :
4391 $as_echo_n "(cached) " >&6
c6b750e1 4392else
81ecdfbb 4393 ac_cv_prog_cc_c89=no
c6b750e1 4394ac_save_CC=$CC
81ecdfbb 4395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4396/* end confdefs.h. */
4397#include <stdarg.h>
4398#include <stdio.h>
4399#include <sys/types.h>
4400#include <sys/stat.h>
4401/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4402struct buf { int x; };
4403FILE * (*rcsopen) (struct buf *, struct stat *, int);
4404static char *e (p, i)
4405 char **p;
4406 int i;
4407{
4408 return p[i];
4409}
4410static char *f (char * (*g) (char **, int), char **p, ...)
4411{
4412 char *s;
4413 va_list v;
4414 va_start (v,p);
4415 s = g (p, va_arg (v,int));
4416 va_end (v);
4417 return s;
4418}
4419
4420/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4421 function prototypes and stuff, but not '\xHH' hex character constants.
4422 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4423 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4425 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4426 that's true only with -std. */
c6b750e1
DJ
4427int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4428
81ecdfbb
RW
4429/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4430 inside strings and character constants. */
4431#define FOO(x) 'x'
4432int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4433
c6b750e1
DJ
4434int test (int i, double x);
4435struct s1 {int (*f) (int a);};
4436struct s2 {int (*f) (double a);};
4437int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4438int argc;
4439char **argv;
4440int
4441main ()
4442{
4443return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4444 ;
4445 return 0;
4446}
4447_ACEOF
81ecdfbb
RW
4448for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4449 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4450do
4451 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4452 if ac_fn_c_try_compile "$LINENO"; then :
4453 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4454fi
81ecdfbb
RW
4455rm -f core conftest.err conftest.$ac_objext
4456 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4457done
81ecdfbb 4458rm -f conftest.$ac_ext
c6b750e1
DJ
4459CC=$ac_save_CC
4460
4461fi
81ecdfbb
RW
4462# AC_CACHE_VAL
4463case "x$ac_cv_prog_cc_c89" in
4464 x)
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4466$as_echo "none needed" >&6; } ;;
4467 xno)
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4469$as_echo "unsupported" >&6; } ;;
c6b750e1 4470 *)
81ecdfbb
RW
4471 CC="$CC $ac_cv_prog_cc_c89"
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4473$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4474esac
81ecdfbb 4475if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4476
c6b750e1
DJ
4477fi
4478
c6b750e1
DJ
4479ac_ext=c
4480ac_cpp='$CPP $CPPFLAGS'
4481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4484
81ecdfbb 4485ac_ext=cpp
18f6b6ee
PB
4486ac_cpp='$CXXCPP $CPPFLAGS'
4487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4490if test -z "$CXX"; then
4491 if test -n "$CCC"; then
4492 CXX=$CCC
4493 else
4494 if test -n "$ac_tool_prefix"; then
4495 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4496 do
4497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4498set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500$as_echo_n "checking for $ac_word... " >&6; }
4501if test "${ac_cv_prog_CXX+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4503else
4504 if test -n "$CXX"; then
4505 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4514 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4516 break 2
4517 fi
4518done
81ecdfbb
RW
4519 done
4520IFS=$as_save_IFS
512b7dfb 4521
18f6b6ee
PB
4522fi
4523fi
4524CXX=$ac_cv_prog_CXX
4525if test -n "$CXX"; then
81ecdfbb
RW
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4527$as_echo "$CXX" >&6; }
18f6b6ee 4528else
81ecdfbb
RW
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530$as_echo "no" >&6; }
18f6b6ee
PB
4531fi
4532
81ecdfbb 4533
18f6b6ee
PB
4534 test -n "$CXX" && break
4535 done
4536fi
4537if test -z "$CXX"; then
4538 ac_ct_CXX=$CXX
81ecdfbb 4539 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4540do
4541 # Extract the first word of "$ac_prog", so it can be a program name with args.
4542set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544$as_echo_n "checking for $ac_word... " >&6; }
4545if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4547else
4548 if test -n "$ac_ct_CXX"; then
4549 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4558 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4560 break 2
512b7dfb 4561 fi
18f6b6ee 4562done
81ecdfbb
RW
4563 done
4564IFS=$as_save_IFS
512b7dfb 4565
18f6b6ee
PB
4566fi
4567fi
4568ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4569if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4571$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4572else
81ecdfbb
RW
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574$as_echo "no" >&6; }
18f6b6ee
PB
4575fi
4576
81ecdfbb 4577
18f6b6ee
PB
4578 test -n "$ac_ct_CXX" && break
4579done
18f6b6ee 4580
81ecdfbb
RW
4581 if test "x$ac_ct_CXX" = x; then
4582 CXX="g++"
4583 else
4584 case $cross_compiling:$ac_tool_warned in
4585yes:)
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4588ac_tool_warned=yes ;;
4589esac
4590 CXX=$ac_ct_CXX
4591 fi
18f6b6ee
PB
4592fi
4593
81ecdfbb
RW
4594 fi
4595fi
18f6b6ee 4596# Provide some information about the compiler.
81ecdfbb
RW
4597$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4598set X $ac_compile
4599ac_compiler=$2
4600for ac_option in --version -v -V -qversion; do
4601 { { ac_try="$ac_compiler $ac_option >&5"
4602case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605esac
4606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607$as_echo "$ac_try_echo"; } >&5
4608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4609 ac_status=$?
81ecdfbb
RW
4610 if test -s conftest.err; then
4611 sed '10a\
4612... rest of stderr output deleted ...
4613 10q' conftest.err >conftest.er1
4614 cat conftest.er1 >&5
4615 rm -f conftest.er1 conftest.err
4616 fi
4617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618 test $ac_status = 0; }
4619done
18f6b6ee 4620
81ecdfbb
RW
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4622$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4623if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
18f6b6ee 4625else
81ecdfbb 4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4627/* end confdefs.h. */
4628
4629int
4630main ()
4631{
4632#ifndef __GNUC__
4633 choke me
4634#endif
4635
4636 ;
4637 return 0;
4638}
4639_ACEOF
81ecdfbb 4640if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4641 ac_compiler_gnu=yes
4642else
81ecdfbb 4643 ac_compiler_gnu=no
18f6b6ee 4644fi
81ecdfbb 4645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4646ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4647
4648fi
81ecdfbb
RW
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4650$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4651if test $ac_compiler_gnu = yes; then
4652 GXX=yes
4653else
4654 GXX=
4655fi
18f6b6ee
PB
4656ac_test_CXXFLAGS=${CXXFLAGS+set}
4657ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4659$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4660if test "${ac_cv_prog_cxx_g+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662else
4663 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4664 ac_cxx_werror_flag=yes
4665 ac_cv_prog_cxx_g=no
4666 CXXFLAGS="-g"
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4668/* end confdefs.h. */
4669
4670int
4671main ()
4672{
4673
4674 ;
4675 return 0;
4676}
4677_ACEOF
81ecdfbb 4678if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4679 ac_cv_prog_cxx_g=yes
4680else
81ecdfbb
RW
4681 CXXFLAGS=""
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4683/* end confdefs.h. */
81ecdfbb 4684
18f6b6ee
PB
4685int
4686main ()
4687{
81ecdfbb 4688
18f6b6ee
PB
4689 ;
4690 return 0;
4691}
4692_ACEOF
81ecdfbb 4693if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4694
81ecdfbb
RW
4695else
4696 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4697 CXXFLAGS="-g"
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4699/* end confdefs.h. */
81ecdfbb 4700
18f6b6ee
PB
4701int
4702main ()
4703{
81ecdfbb 4704
18f6b6ee
PB
4705 ;
4706 return 0;
4707}
4708_ACEOF
81ecdfbb
RW
4709if ac_fn_cxx_try_compile "$LINENO"; then :
4710 ac_cv_prog_cxx_g=yes
18f6b6ee 4711fi
81ecdfbb
RW
4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713fi
4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715fi
4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4718fi
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4720$as_echo "$ac_cv_prog_cxx_g" >&6; }
4721if test "$ac_test_CXXFLAGS" = set; then
4722 CXXFLAGS=$ac_save_CXXFLAGS
4723elif test $ac_cv_prog_cxx_g = yes; then
4724 if test "$GXX" = yes; then
4725 CXXFLAGS="-g -O2"
4726 else
4727 CXXFLAGS="-g"
4728 fi
4729else
4730 if test "$GXX" = yes; then
4731 CXXFLAGS="-O2"
4732 else
4733 CXXFLAGS=
4734 fi
18f6b6ee 4735fi
18f6b6ee
PB
4736ac_ext=c
4737ac_cpp='$CPP $CPPFLAGS'
4738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741
4742
4743# We must set the default linker to the linker used by gcc for the correct
4744# operation of libtool. If LD is not defined and we are using gcc, try to
4745# set the LD default to the ld used by gcc.
4746if test -z "$LD"; then
4747 if test "$GCC" = yes; then
4748 case $build in
4749 *-*-mingw*)
4750 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4751 *)
4752 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4753 esac
4754 case $gcc_prog_ld in
4755 # Accept absolute paths.
4756 [\\/]* | [A-Za-z]:[\\/]*)
4757 LD="$gcc_prog_ld" ;;
4758 esac
4759 fi
512b7dfb
PB
4760fi
4761
4762
4763
4764
c6b750e1 4765if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4766 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4767set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769$as_echo_n "checking for $ac_word... " >&6; }
4770if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
9e07f89d 4772else
512b7dfb
PB
4773 if test -n "$GNATBIND"; then
4774 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4775else
c6b750e1
DJ
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4783 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4785 break 2
4786 fi
4787done
81ecdfbb
RW
4788 done
4789IFS=$as_save_IFS
c6b750e1 4790
9e07f89d
NN
4791fi
4792fi
512b7dfb
PB
4793GNATBIND=$ac_cv_prog_GNATBIND
4794if test -n "$GNATBIND"; then
81ecdfbb
RW
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4796$as_echo "$GNATBIND" >&6; }
9e07f89d 4797else
81ecdfbb
RW
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799$as_echo "no" >&6; }
9e07f89d
NN
4800fi
4801
81ecdfbb 4802
c6b750e1 4803fi
512b7dfb
PB
4804if test -z "$ac_cv_prog_GNATBIND"; then
4805 ac_ct_GNATBIND=$GNATBIND
4806 # Extract the first word of "gnatbind", so it can be a program name with args.
4807set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809$as_echo_n "checking for $ac_word... " >&6; }
4810if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4811 $as_echo_n "(cached) " >&6
9e07f89d 4812else
512b7dfb
PB
4813 if test -n "$ac_ct_GNATBIND"; then
4814 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4815else
c6b750e1
DJ
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4823 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4825 break 2
4826 fi
4827done
81ecdfbb
RW
4828 done
4829IFS=$as_save_IFS
c6b750e1 4830
9e07f89d
NN
4831fi
4832fi
512b7dfb
PB
4833ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4834if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4836$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4837else
81ecdfbb
RW
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839$as_echo "no" >&6; }
9e07f89d
NN
4840fi
4841
81ecdfbb
RW
4842 if test "x$ac_ct_GNATBIND" = x; then
4843 GNATBIND="no"
4844 else
4845 case $cross_compiling:$ac_tool_warned in
4846yes:)
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4849ac_tool_warned=yes ;;
4850esac
4851 GNATBIND=$ac_ct_GNATBIND
4852 fi
24ff9987 4853else
512b7dfb 4854 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4855fi
4856
7df2cd5d 4857if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4858 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4859set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861$as_echo_n "checking for $ac_word... " >&6; }
4862if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
7df2cd5d 4864else
512b7dfb
PB
4865 if test -n "$GNATMAKE"; then
4866 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4867else
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4875 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4877 break 2
4878 fi
4879done
81ecdfbb
RW
4880 done
4881IFS=$as_save_IFS
7df2cd5d
PB
4882
4883fi
4884fi
512b7dfb
PB
4885GNATMAKE=$ac_cv_prog_GNATMAKE
4886if test -n "$GNATMAKE"; then
81ecdfbb
RW
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4888$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4889else
81ecdfbb
RW
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891$as_echo "no" >&6; }
7df2cd5d
PB
4892fi
4893
81ecdfbb 4894
7df2cd5d 4895fi
512b7dfb
PB
4896if test -z "$ac_cv_prog_GNATMAKE"; then
4897 ac_ct_GNATMAKE=$GNATMAKE
4898 # Extract the first word of "gnatmake", so it can be a program name with args.
4899set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901$as_echo_n "checking for $ac_word... " >&6; }
4902if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
7df2cd5d 4904else
512b7dfb
PB
4905 if test -n "$ac_ct_GNATMAKE"; then
4906 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4907else
4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4915 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4917 break 2
4918 fi
4919done
81ecdfbb
RW
4920 done
4921IFS=$as_save_IFS
7df2cd5d 4922
7df2cd5d
PB
4923fi
4924fi
512b7dfb
PB
4925ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4926if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4928$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4929else
81ecdfbb
RW
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931$as_echo "no" >&6; }
7df2cd5d
PB
4932fi
4933
81ecdfbb
RW
4934 if test "x$ac_ct_GNATMAKE" = x; then
4935 GNATMAKE="no"
4936 else
4937 case $cross_compiling:$ac_tool_warned in
4938yes:)
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4941ac_tool_warned=yes ;;
4942esac
4943 GNATMAKE=$ac_ct_GNATMAKE
4944 fi
7df2cd5d 4945else
512b7dfb 4946 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4947fi
4948
81ecdfbb
RW
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4950$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4951if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
9e07f89d
NN
4953else
4954 cat >conftest.adb <<EOF
4955procedure conftest is begin null; end conftest;
4956EOF
4957acx_cv_cc_gcc_supports_ada=no
4958# There is a bug in old released versions of GCC which causes the
4959# driver to exit successfully when the appropriate language module
4960# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4961# Therefore we must check for the error message as well as an
4962# unsuccessful exit.
b8908782
DD
4963# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4964# given a .adb file, but produce no object file. So we must check
4965# if an object file was really produced to guard against this.
9e07f89d 4966errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4967if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4968 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4969fi
4970rm -f conftest.*
4971fi
81ecdfbb
RW
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4973$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 4974
512b7dfb 4975if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4976 have_gnat=yes
4977else
4978 have_gnat=no
4979fi
4980
81ecdfbb
RW
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4982$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4983if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4984 $as_echo_n "(cached) " >&6
b8908782
DD
4985else
4986 echo abfoo >t1
4987 echo cdfoo >t2
4988 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4989 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4990 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4991 :
4992 else
4993 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4994 fi
4995 fi
b8908782
DD
4996 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4997 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4998 :
b8908782
DD
4999 else
5000 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5001 fi
5002 fi
5003 rm t1 t2
5004
5005fi
81ecdfbb
RW
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5007$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5008do_compare="$gcc_cv_prog_cmp_skip"
5009
5010
9e07f89d 5011
e8a5fa9c 5012# See if we are building gcc with C++.
81ecdfbb
RW
5013# Check whether --enable-build-with-cxx was given.
5014if test "${enable_build_with_cxx+set}" = set; then :
5015 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5016else
5017 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5018fi
5019
e8a5fa9c
RW
5020
5021# Check for GMP, MPFR and MPC
4b900473 5022gmplibs="-lmpfr -lgmp"
4b1cb4fe 5023gmpinc=
4b900473 5024have_gmp=no
e8a5fa9c
RW
5025mpclibs=-lmpc
5026mpcinc=
5027have_mpc=no
5028
5029# Specify a location for mpc
5030# check for this first so it ends up on the link line before mpfr.
5031
81ecdfbb
RW
5032# Check whether --with-mpc was given.
5033if test "${with_mpc+set}" = set; then :
5034 withval=$with_mpc;
5035fi
e8a5fa9c 5036
e8a5fa9c 5037
81ecdfbb
RW
5038# Check whether --with-mpc_include was given.
5039if test "${with_mpc_include+set}" = set; then :
5040 withval=$with_mpc_include;
5041fi
e8a5fa9c 5042
e8a5fa9c 5043
81ecdfbb
RW
5044# Check whether --with-mpc_lib was given.
5045if test "${with_mpc_lib+set}" = set; then :
5046 withval=$with_mpc_lib;
5047fi
e8a5fa9c 5048
e8a5fa9c
RW
5049
5050if test "x$with_mpc" != x; then
5051 mpclibs="-L$with_mpc/lib -lmpc"
5052 mpcinc="-I$with_mpc/include $mpcinc"
5053fi
5054if test "x$with_mpc_include" != x; then
5055 mpcinc="-I$with_mpc_include $mpcinc"
5056fi
5057if test "x$with_mpc_lib" != x; then
5058 mpclibs="-L$with_mpc_lib -lmpc"
5059fi
5060if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5061 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
5062 mpcinc='-I$$s/mpc/src '"$mpcinc"
5063 # Do not test the mpc version. Assume that it is sufficient, since
5064 # it is in the source tree, and the library has not been built yet
5065 # but it would be included on the link line in the version check below
5066 # hence making the test fail.
5067 have_mpc=yes
5068fi
4b900473 5069
11b04d1f
DD
5070# Specify a location for mpfr
5071# check for this first so it ends up on the link line before gmp.
c6b750e1 5072
81ecdfbb
RW
5073# Check whether --with-mpfr-dir was given.
5074if test "${with_mpfr_dir+set}" = set; then :
5075 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5076Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5077fi
5078
11b04d1f
DD
5079
5080
81ecdfbb
RW
5081# Check whether --with-mpfr was given.
5082if test "${with_mpfr+set}" = set; then :
5083 withval=$with_mpfr;
5084fi
c6b750e1 5085
11b04d1f 5086
81ecdfbb
RW
5087# Check whether --with-mpfr_include was given.
5088if test "${with_mpfr_include+set}" = set; then :
5089 withval=$with_mpfr_include;
5090fi
c6b750e1 5091
8a0d8a5c 5092
81ecdfbb
RW
5093# Check whether --with-mpfr_lib was given.
5094if test "${with_mpfr_lib+set}" = set; then :
5095 withval=$with_mpfr_lib;
5096fi
8a0d8a5c 5097
11b04d1f
DD
5098
5099if test "x$with_mpfr" != x; then
5100 gmplibs="-L$with_mpfr/lib $gmplibs"
5101 gmpinc="-I$with_mpfr/include"
5102fi
8a0d8a5c
PB
5103if test "x$with_mpfr_include" != x; then
5104 gmpinc="-I$with_mpfr_include"
5105fi
5106if test "x$with_mpfr_lib" != x; then
5107 gmplibs="-L$with_mpfr_lib $gmplibs"
5108fi
4b900473
PB
5109if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5110 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
5111 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
e8a5fa9c 5112 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
4b900473
PB
5113 # Do not test the mpfr version. Assume that it is sufficient, since
5114 # it is in the source tree, and the library has not been built yet
5115 # but it would be included on the link line in the version check below
5116 # hence making the test fail.
5117 have_gmp=yes
5118fi
11b04d1f 5119
4b1cb4fe 5120# Specify a location for gmp
c6b750e1 5121
81ecdfbb
RW
5122# Check whether --with-gmp-dir was given.
5123if test "${with_gmp_dir+set}" = set; then :
5124 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5125Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5126fi
5127
4b1cb4fe
DD
5128
5129
81ecdfbb
RW
5130# Check whether --with-gmp was given.
5131if test "${with_gmp+set}" = set; then :
5132 withval=$with_gmp;
5133fi
c6b750e1 5134
4b1cb4fe 5135
81ecdfbb
RW
5136# Check whether --with-gmp_include was given.
5137if test "${with_gmp_include+set}" = set; then :
5138 withval=$with_gmp_include;
5139fi
c6b750e1 5140
8a0d8a5c 5141
81ecdfbb
RW
5142# Check whether --with-gmp_lib was given.
5143if test "${with_gmp_lib+set}" = set; then :
5144 withval=$with_gmp_lib;
5145fi
8a0d8a5c
PB
5146
5147
4b1cb4fe 5148
11b04d1f
DD
5149if test "x$with_gmp" != x; then
5150 gmplibs="-L$with_gmp/lib $gmplibs"
5151 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5152fi
8a0d8a5c
PB
5153if test "x$with_gmp_include" != x; then
5154 gmpinc="-I$with_gmp_include $gmpinc"
5155fi
5156if test "x$with_gmp_lib" != x; then
5157 gmplibs="-L$with_gmp_lib $gmplibs"
5158fi
4b900473
PB
5159if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5160 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
5161 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
e8a5fa9c
RW
5162 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
5163 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5164 # Do not test the gmp version. Assume that it is sufficient, since
5165 # it is in the source tree, and the library has not been built yet
5166 # but it would be included on the link line in the version check below
5167 # hence making the test fail.
5168 have_gmp=yes
5169fi
4b1cb4fe 5170
ceb92e78 5171if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5172 have_gmp=yes
5173 saved_CFLAGS="$CFLAGS"
5174 CFLAGS="$CFLAGS $gmpinc"
5175 # Check GMP actually works
81ecdfbb
RW
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5
5177$as_echo_n "checking for correct version of gmp.h... " >&6; }
c6b750e1 5178
81ecdfbb 5179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5180/* end confdefs.h. */
4b1cb4fe 5181#include "gmp.h"
c6b750e1
DJ
5182int
5183main ()
5184{
4b1cb4fe 5185
ef699244 5186 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4b900473
PB
5187 choke me
5188 #endif
c6b750e1
DJ
5189
5190 ;
5191 return 0;
5192}
5193_ACEOF
81ecdfbb
RW
5194if ac_fn_c_try_compile "$LINENO"; then :
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196$as_echo "yes" >&6; }
c6b750e1 5197else
81ecdfbb
RW
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5200fi
81ecdfbb 5201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5202
e8a5fa9c 5203 # If we have GMP, check the MPFR version.
4b900473 5204 if test x"$have_gmp" = xyes; then
81ecdfbb
RW
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5
5206$as_echo_n "checking for correct version of mpfr.h... " >&6; }
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5208/* end confdefs.h. */
9b134994 5209#include <gmp.h>
4b900473 5210 #include <mpfr.h>
c6b750e1
DJ
5211int
5212main ()
5213{
9b134994 5214
ef699244 5215 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5216 choke me
5217 #endif
c6b750e1
DJ
5218
5219 ;
5220 return 0;
5221}
5222_ACEOF
81ecdfbb
RW
5223if ac_fn_c_try_compile "$LINENO"; then :
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5225/* end confdefs.h. */
4b1cb4fe 5226#include <gmp.h>
4b900473 5227 #include <mpfr.h>
c6b750e1
DJ
5228int
5229main ()
5230{
9dbaa842 5231
e28c595f 5232 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4b900473
PB
5233 choke me
5234 #endif
e8a5fa9c
RW
5235
5236 ;
5237 return 0;
5238}
5239_ACEOF
81ecdfbb
RW
5240if ac_fn_c_try_compile "$LINENO"; then :
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5242$as_echo "yes" >&6; }
e8a5fa9c 5243else
81ecdfbb
RW
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5245$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5246fi
81ecdfbb 5247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5248else
81ecdfbb
RW
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5251fi
81ecdfbb 5252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5253 fi
5254
5255 # Check for the MPC header version.
5256 if test x"$have_mpc" != xyes ; then
5257 CFLAGS="$CFLAGS $mpcinc"
81ecdfbb
RW
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5259$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5261/* end confdefs.h. */
5262#include <mpc.h>
5263int
5264main ()
5265{
5266
5267 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
5268 choke me
5269 #endif
5270
5271 ;
5272 return 0;
5273}
5274_ACEOF
81ecdfbb
RW
5275if ac_fn_c_try_compile "$LINENO"; then :
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5277$as_echo "yes" >&6; }; have_mpc=maybe
e8a5fa9c 5278else
81ecdfbb
RW
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
e8a5fa9c 5281fi
81ecdfbb 5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5283 fi
5284
5285 # Now check the MPFR library.
5286 if test x"$have_gmp" = xyes; then
5287 saved_LIBS="$LIBS"
5288 LIBS="$LIBS $gmplibs"
81ecdfbb
RW
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
5290$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5292/* end confdefs.h. */
5293#include <gmp.h>
5294 #include <mpfr.h>
5295int
5296main ()
5297{
5298
5299 mpfr_t n;
5300 mpfr_t x;
5301 int t;
5302 mpfr_init (n);
5303 mpfr_init (x);
5304 mpfr_atan2 (n, n, x, GMP_RNDN);
5305 mpfr_erfc (n, x, GMP_RNDN);
5306 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
5307
5308 ;
5309 return 0;
5310}
5311_ACEOF
81ecdfbb
RW
5312if ac_fn_c_try_link "$LINENO"; then :
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5314$as_echo "yes" >&6; }
c6b750e1 5315else
81ecdfbb
RW
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5318fi
81ecdfbb
RW
5319rm -f core conftest.err conftest.$ac_objext \
5320 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5321 LIBS="$saved_LIBS"
5322 fi
5323
5324 if test x"$have_mpc" = xmaybe; then
5325 saved_LIBS="$LIBS"
5326 LIBS="$LIBS $mpclibs $gmplibs"
81ecdfbb
RW
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc library" >&5
5328$as_echo_n "checking for the correct version of the mpc library... " >&6; }
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5330/* end confdefs.h. */
5331#include <mpc.h>
5332int
5333main ()
5334{
5335
5336 mpc_t n;
5337 mpc_init2 (n, 53);
5338 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5339 mpc_sin (n, n, MPC_RNDNN);
5340 mpc_cos (n, n, MPC_RNDNN);
5341 mpc_tan (n, n, MPC_RNDNN);
5342 mpc_sinh (n, n, MPC_RNDNN);
5343 mpc_cosh (n, n, MPC_RNDNN);
5344 mpc_tanh (n, n, MPC_RNDNN);
5345 mpc_exp (n, n, MPC_RNDNN);
5346 mpc_log (n, n, MPC_RNDNN);
5347 mpc_sqrt (n, n, MPC_RNDNN);
5348 mpc_proj (n, n, MPC_RNDNN);
5349 mpc_neg (n, n, MPC_RNDNN);
5350 mpc_sqr (n, n, MPC_RNDNN);
5351 mpc_clear (n);
5352
5353 ;
5354 return 0;
5355}
5356_ACEOF
81ecdfbb
RW
5357if ac_fn_c_try_link "$LINENO"; then :
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5359$as_echo "yes" >&6; }; have_mpc=yes
c6b750e1 5360else
81ecdfbb
RW
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
c6b750e1 5363fi
81ecdfbb
RW
5364rm -f core conftest.err conftest.$ac_objext \
5365 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c 5366 LIBS="$saved_LIBS"
4b900473 5367 fi
e8a5fa9c 5368
4b900473 5369 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5370
4b900473 5371 if test x$have_gmp != xyes; then
81ecdfbb 5372 as_fn_error "Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
9dbaa842
DD
5373Try the --with-gmp and/or --with-mpfr options to specify their locations.
5374Copies of these libraries' source code can be found at their respective
5375hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
5376See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5377If you obtained GMP and/or MPFR from a vendor distribution package, make
5378sure that you have installed both the libraries and the header files.
81ecdfbb 5379They may be located in separate packages." "$LINENO" 5
4b900473 5380 fi
9dbaa842
DD
5381fi
5382
e8a5fa9c
RW
5383if test x$have_mpc != xyes ; then
5384 mpcinc=
5385 mpclibs=
5386fi
5387
5388gmpinc="$mpcinc $gmpinc"
5389gmplibs="$mpclibs $gmplibs"
5390
5391# Flags needed for both GMP, MPFR and/or MPC.
5392
5393
5394
4b1cb4fe
DD
5395
5396
5397
29383458
JM
5398# Allow host libstdc++ to be specified for static linking with PPL.
5399
81ecdfbb
RW
5400# Check whether --with-host-libstdcxx was given.
5401if test "${with_host_libstdcxx+set}" = set; then :
5402 withval=$with_host_libstdcxx;
5403fi
29383458 5404
29383458
JM
5405
5406case $with_host_libstdcxx in
5407 no|yes)
81ecdfbb 5408 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5409 ;;
5410esac
e28c595f 5411
e8a5fa9c
RW
5412# Linker flags to use for stage1 or when not boostrapping.
5413
81ecdfbb
RW
5414# Check whether --with-stage1-ldflags was given.
5415if test "${with_stage1_ldflags+set}" = set; then :
5416 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5417 stage1_ldflags=
5418 else
5419 stage1_ldflags=$withval
5420 fi
5421else
5422 stage1_ldflags=
81ecdfbb
RW
5423fi
5424
e8a5fa9c
RW
5425
5426
5427# Libraries to use for stage1 or when not bootstrapping.
5428
81ecdfbb
RW
5429# Check whether --with-stage1-libs was given.
5430if test "${with_stage1_libs+set}" = set; then :
5431 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5432 stage1_libs=
5433 else
5434 stage1_libs=$withval
5435 fi
5436else
5437 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5438fi
5439
e8a5fa9c
RW
5440
5441
5442# Linker flags to use for stage2 and later builds.
5443
81ecdfbb
RW
5444# Check whether --with-boot-ldflags was given.
5445if test "${with_boot_ldflags+set}" = set; then :
5446 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5447 poststage1_ldflags=
5448 else
5449 poststage1_ldflags=$withval
5450 fi
5451else
5452 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5453 poststage1_ldflags=-static-libstdc++
5454 else
5455 poststage1_ldflags=
5456 fi
81ecdfbb
RW
5457fi
5458
e8a5fa9c
RW
5459
5460
5461# Libraries to use for stage2 and later builds. This defaults to the
5462# argument passed to --with-host-libstdcxx.
5463
81ecdfbb
RW
5464# Check whether --with-boot-libs was given.
5465if test "${with_boot_libs+set}" = set; then :
5466 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5467 poststage1_libs=
5468 else
5469 poststage1_libs=$withval
5470 fi
5471else
5472 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5473fi
5474
e8a5fa9c
RW
5475
5476
e28c595f
JM
5477# Check for PPL
5478ppl_major_version=0
5479ppl_minor_version=10
e8a5fa9c 5480ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5481pplinc=
5482
5483
81ecdfbb
RW
5484# Check whether --with-ppl was given.
5485if test "${with_ppl+set}" = set; then :
5486 withval=$with_ppl;
e8a5fa9c
RW
5487else
5488 with_ppl=no
81ecdfbb 5489fi
e28c595f 5490
e28c595f 5491
81ecdfbb
RW
5492# Check whether --with-ppl_include was given.
5493if test "${with_ppl_include+set}" = set; then :
5494 withval=$with_ppl_include;
5495fi
5496
e28c595f 5497
81ecdfbb
RW
5498# Check whether --with-ppl_lib was given.
5499if test "${with_ppl_lib+set}" = set; then :
5500 withval=$with_ppl_lib;
5501fi
e28c595f 5502
e28c595f 5503
29383458
JM
5504case $with_ppl in
5505 no)
5506 ppllibs=
5507 ;;
5508 *)
e8a5fa9c 5509 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458
JM
5510 pplinc="-I$with_ppl/include $pplinc"
5511 LIBS="$ppllibs $LIBS"
5512 ;;
5513esac
e28c595f
JM
5514if test "x$with_ppl_include" != x; then
5515 pplinc="-I$with_ppl_include $pplinc"
5516fi
5517if test "x$with_ppl_lib" != x; then
e8a5fa9c 5518 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5519 LIBS="$ppllibs $LIBS"
5520fi
5521if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
e8a5fa9c 5522 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
e28c595f
JM
5523 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5524 LIBS="$ppllibs $LIBS"
5525fi
5526
81ecdfbb
RW
5527# Check whether --enable-ppl-version-check was given.
5528if test "${enable_ppl_version_check+set}" = set; then :
5529 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5530else
5531 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5532fi
5533
e28c595f
JM
5534
5535if test "${ENABLE_PPL_CHECK}" = "yes"; then
5536 saved_CFLAGS="$CFLAGS"
5537 CFLAGS="$CFLAGS $pplinc $gmpinc"
81ecdfbb
RW
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5539$as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5541/* end confdefs.h. */
5542#include "ppl_c.h"
5543int
5544main ()
5545{
5546
5547 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5548 choke me
5549 #endif
5550
5551 ;
5552 return 0;
5553}
5554_ACEOF
81ecdfbb
RW
5555if ac_fn_c_try_compile "$LINENO"; then :
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557$as_echo "yes" >&6; }
e28c595f 5558else
81ecdfbb
RW
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560$as_echo "no" >&6; }; ppllibs= ; pplinc=
e28c595f 5561fi
81ecdfbb 5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5563 CFLAGS="$saved_CFLAGS"
5564fi
5565
5566# Flags needed for PPL
5567
5568
5569
5570
5571# Check for CLOOG
5572clooglibs=" -lcloog "
5573clooginc=" -DCLOOG_PPL_BACKEND "
5574
5575
81ecdfbb
RW
5576# Check whether --with-cloog was given.
5577if test "${with_cloog+set}" = set; then :
5578 withval=$with_cloog;
e8a5fa9c
RW
5579else
5580 with_cloog=no
81ecdfbb
RW
5581fi
5582
e28c595f 5583
81ecdfbb
RW
5584# Check whether --with-cloog_include was given.
5585if test "${with_cloog_include+set}" = set; then :
5586 withval=$with_cloog_include;
5587fi
e28c595f 5588
e28c595f 5589
81ecdfbb
RW
5590# Check whether --with-cloog_lib was given.
5591if test "${with_cloog_lib+set}" = set; then :
5592 withval=$with_cloog_lib;
5593fi
e28c595f 5594
e28c595f 5595
29383458
JM
5596case $with_cloog in
5597 no)
5598 clooglibs=
5599 clooginc=
5600 ;;
5601 *)
5602 clooglibs="-L$with_cloog/lib -lcloog"
5603 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5604 LIBS="$clooglibs $LIBS"
5605 ;;
5606esac
e28c595f
JM
5607if test "x$with_cloog_include" != x; then
5608 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5609fi
5610if test "x$with_cloog_lib" != x; then
5611 clooglibs="-L$with_cloog_lib -lcloog"
5612 LIBS="$clooglibs $LIBS"
5613fi
5614if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5615 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5616 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5617 LIBS="$clooglibs $LIBS"
5618fi
5619
81ecdfbb
RW
5620# Check whether --enable-cloog-version-check was given.
5621if test "${enable_cloog_version_check+set}" = set; then :
5622 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
e28c595f
JM
5623else
5624 ENABLE_CLOOG_CHECK=yes
81ecdfbb
RW
5625fi
5626
e28c595f
JM
5627
5628if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5629 saved_CFLAGS="$CFLAGS"
5630 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
81ecdfbb
RW
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
5632$as_echo_n "checking for correct version of CLooG... " >&6; }
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5634/* end confdefs.h. */
5635#include "cloog/cloog.h"
5636int
5637main ()
5638{
5639
5640 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5641 choke me
5642 #endif
5643
5644 ;
5645 return 0;
5646}
5647_ACEOF
81ecdfbb
RW
5648if ac_fn_c_try_compile "$LINENO"; then :
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650$as_echo "yes" >&6; }
e28c595f 5651else
81ecdfbb
RW
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }; clooglibs= ; clooginc=
e28c595f 5654fi
81ecdfbb 5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5656 CFLAGS="$saved_CFLAGS"
5657fi
5658
5659# Flags needed for CLOOG
5660
5661
5662
5663
947f426e 5664# By default, C is the only stage 1 language.
9b134994 5665stage1_languages=,c,
1d39f329 5666
e8a5fa9c
RW
5667# Target libraries that we bootstrap.
5668bootstrap_target_libs=,target-libgcc,
5669
9e07f89d
NN
5670# Figure out what language subdirectories are present.
5671# Look if the user specified --enable-languages="..."; if not, use
5672# the environment variable $LANGUAGES if defined. $LANGUAGES might
5673# go away some day.
5674# NB: embedded tabs in this IF block -- do not untabify
5675if test -d ${srcdir}/gcc; then
5676 if test x"${enable_languages+set}" != xset; then
5677 if test x"${LANGUAGES+set}" = xset; then
5678 enable_languages="${LANGUAGES}"
5679 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5680 else
5681 enable_languages=all
5682 fi
5683 else
5684 if test x"${enable_languages}" = x ||
5685 test x"${enable_languages}" = xyes;
5686 then
5687 echo configure.in: --enable-languages needs at least one language argument 1>&2
5688 exit 1
5689 fi
5690 fi
5691 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5692
096f7d00
DE
5693 # 'f95' is the old name for the 'fortran' language. We issue a warning
5694 # and make the substitution.
5695 case ,${enable_languages}, in
5696 *,f95,*)
5697 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5698 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5699 ;;
5700 esac
5701
9e07f89d
NN
5702 # First scan to see if an enabled language requires some other language.
5703 # We assume that a given config-lang.in will list all the language
5704 # front ends it requires, even if some are required indirectly.
5705 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5706 case ${lang_frag} in
5707 ..) ;;
5708 # The odd quoting in the next line works around
5709 # an apparent bug in bash 1.12 on linux.
5710 ${srcdir}/gcc/[*]/config-lang.in) ;;
5711 *)
5712 # From the config-lang.in, get $language, $lang_requires
5713 language=
5714 lang_requires=
5715 . ${lang_frag}
5716 for other in ${lang_requires} ; do
5717 case ,${enable_languages}, in
5718 *,$other,*) ;;
5719 *,all,*) ;;
5720 *,$language,*)
5721 echo " \`$other' language required by \`$language'; enabling" 1>&2
5722 enable_languages="${enable_languages},${other}"
5723 ;;
5724 esac
5725 done
5726 ;;
5727 esac
5728 done
5729
9b134994 5730 new_enable_languages=,c,
9e07f89d 5731 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 5732 potential_languages=,c,
9e07f89d
NN
5733
5734 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5735 case ${lang_frag} in
5736 ..) ;;
5737 # The odd quoting in the next line works around
5738 # an apparent bug in bash 1.12 on linux.
5739 ${srcdir}/gcc/[*]/config-lang.in) ;;
5740 *)
c6b750e1 5741 # From the config-lang.in, get $language, $target_libs,
1d39f329 5742 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
5743 language=
5744 target_libs=
5745 lang_dirs=
64ce424c 5746 subdir_requires=
9b134994
PB
5747 boot_language=no
5748 build_by_default=yes
9e07f89d 5749 . ${lang_frag}
9b134994
PB
5750 if test x${language} = x; then
5751 echo "${lang_frag} doesn't set \$language." 1>&2
5752 exit 1
5753 fi
5754
e8a5fa9c
RW
5755 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5756 boot_language=yes
5757 fi
5758
9b134994
PB
5759 case ,${enable_languages}, in
5760 *,${language},*)
9e07f89d
NN
5761 # Language was explicitly selected; include it.
5762 add_this_lang=yes
5763 ;;
9b134994
PB
5764 *,all,*)
5765 # 'all' was selected, select it if it is a default language
5766 add_this_lang=${build_by_default}
9e07f89d
NN
5767 ;;
5768 *)
5769 add_this_lang=no
5770 ;;
5771 esac
4b1cb4fe 5772
64ce424c 5773 # Disable languages that need other directories if these aren't available.
1f3f1bbf 5774 for i in $subdir_requires; do
3d3adb43 5775 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
5776 case ,${enable_languages}, in
5777 *,${language},*)
5778 # Specifically requested language; tell them.
81ecdfbb 5779 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
5780 ;;
5781 *)
5782 # Silently disable.
9b134994 5783 add_this_lang=unsupported
64ce424c
PB
5784 ;;
5785 esac
5786 done
5787
9b134994
PB
5788 # Disable Ada if no preexisting GNAT is available.
5789 case ,${enable_languages},:${language}:${have_gnat} in
5790 *,${language},*:ada:no)
5791 # Specifically requested language; tell them.
81ecdfbb 5792 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
5793 ;;
5794 *:ada:no)
5795 # Silently disable.
5796 add_this_lang=unsupported
5797 ;;
5798 esac
5799
59f7ec45
HPN
5800 # Disable a language that is unsupported by the target.
5801 case " $unsupported_languages " in
5802 *" $language "*)
9b134994 5803 add_this_lang=unsupported
59f7ec45
HPN
5804 ;;
5805 esac
5806
4b1cb4fe 5807 case $add_this_lang in
9b134994 5808 unsupported)
9e07f89d 5809 # Remove language-dependent dirs.
1d39f329
NN
5810 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5811 ;;
9b134994
PB
5812 no)
5813 # Remove language-dependent dirs; still show language as supported.
5814 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5815 potential_languages="${potential_languages}${language},"
5816 ;;
5817 yes)
5818 new_enable_languages="${new_enable_languages}${language},"
5819 potential_languages="${potential_languages}${language},"
1d39f329
NN
5820 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5821 case ${boot_language} in
5822 yes)
4fa63067 5823 # Add to (comma-separated) list of stage 1 languages.
9b134994 5824 stage1_languages="${stage1_languages}${language},"
e8a5fa9c
RW
5825 # We need to bootstrap any supporting libraries.
5826 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
5827 ;;
5828 esac
5829 ;;
9e07f89d
NN
5830 esac
5831 ;;
5832 esac
5833 done
5834
81ecdfbb
RW
5835 # Check whether --enable-stage1-languages was given.
5836if test "${enable_stage1_languages+set}" = set; then :
5837 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
5838 ,no,|,,)
5839 # Set it to something that will have no effect in the loop below
5840 enable_stage1_languages=c ;;
5841 ,yes,)
5842 enable_stage1_languages=`echo $new_enable_languages | \
5843 sed -e "s/^,//" -e "s/,$//" ` ;;
5844 *,all,*)
5845 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5846 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5847 esac
5848
5849 # Add "good" languages from enable_stage1_languages to stage1_languages,
5850 # while "bad" languages go in missing_languages. Leave no duplicates.
5851 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5852 case $potential_languages in
5853 *,$i,*)
5854 case $stage1_languages in
5855 *,$i,*) ;;
5856 *) stage1_languages="$stage1_languages$i," ;;
5857 esac ;;
5858 *)
5859 case $missing_languages in
5860 *,$i,*) ;;
5861 *) missing_languages="$missing_languages$i," ;;
5862 esac ;;
5863 esac
5864 done
81ecdfbb
RW
5865fi
5866
9b134994
PB
5867
5868 # Remove leading/trailing commas that were added for simplicity
5869 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 5870 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
5871 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5872 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5873
9e07f89d 5874 if test "x$missing_languages" != x; then
81ecdfbb 5875 as_fn_error "
27258dd4 5876The following requested languages could not be built: ${missing_languages}
81ecdfbb 5877Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 5878 fi
9e07f89d
NN
5879 if test "x$new_enable_languages" != "x$enable_languages"; then
5880 echo The following languages will be built: ${new_enable_languages}
9b134994 5881 enable_languages="$new_enable_languages"
9e07f89d 5882 fi
9b134994 5883
c6b750e1 5884
81ec575a 5885 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5886fi
5887
a6df5a19
PB
5888# Handle --disable-<component> generically.
5889for dir in $configdirs $build_configdirs $target_configdirs ; do
5890 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5891 varname=`echo $dirname | sed -e s/+/_/g`
5892 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5893 noconfigdirs="$noconfigdirs $dir"
5894 fi
5895done
5896
4f0ef2d8 5897# Check for Boehm's garbage collector
81ecdfbb
RW
5898# Check whether --enable-objc-gc was given.
5899if test "${enable_objc_gc+set}" = set; then :
5900 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 5901 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 5902 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
5903 ;;
5904esac
81ecdfbb
RW
5905fi
5906
4f0ef2d8
CD
5907
5908# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5909case ,${enable_languages},:${enable_objc_gc} in
5910 *,objc,*:yes)
4f0ef2d8
CD
5911 # Keep target-boehm-gc if requested for Objective-C.
5912 ;;
4f0ef2d8 5913 *)
d42c4017
DA
5914 # Otherwise remove target-boehm-gc depending on target-libjava.
5915 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5916 noconfigdirs="$noconfigdirs target-boehm-gc"
5917 fi
4f0ef2d8
CD
5918 ;;
5919esac
5920
caeba88f
AL
5921# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5922# $build_configdirs and $target_configdirs.
9e07f89d
NN
5923# If we have the source for $noconfigdirs entries, add them to $notsupp.
5924
5925notsupp=""
5926for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5927 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5928 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5929 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5930 if test -r $srcdir/$dirname/configure ; then
5931 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5932 true
5933 else
5934 notsupp="$notsupp $dir"
5935 fi
5936 fi
5937 fi
caeba88f
AL
5938 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5939 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5940 if test -r $srcdir/$dirname/configure ; then
5941 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5942 true
5943 else
5944 notsupp="$notsupp $dir"
5945 fi
5946 fi
5947 fi
9e07f89d
NN
5948 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5949 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5950 if test -r $srcdir/$dirname/configure ; then
5951 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5952 true
5953 else
5954 notsupp="$notsupp $dir"
5955 fi
5956 fi
5957 fi
5958done
5959
5960# Sometimes the tools are distributed with libiberty but with no other
5961# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5962# Don't let libgcc imply libiberty either.
9e07f89d 5963if test -n "${target_configdirs}" ; then
f86e35b8 5964 libgcc=
9e07f89d
NN
5965 others=
5966 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5967 if test "$i" = "libgcc"; then
5968 libgcc=target-libgcc
5969 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5970 if test -r $srcdir/$i/configure ; then
5971 others=yes;
5972 break;
5973 fi
5974 fi
5975 done
5976 if test -z "${others}" ; then
f86e35b8 5977 target_configdirs=$libgcc
9e07f89d
NN
5978 fi
5979fi
5980
5981# Quietly strip out all directories which aren't configurable in this tree.
5982# This relies on all configurable subdirectories being autoconfiscated, which
5983# is now the case.
6a9cf61e
PB
5984build_configdirs_all="$build_configdirs"
5985build_configdirs=
5986for i in ${build_configdirs_all} ; do
c6b750e1 5987 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5988 if test -f ${srcdir}/$j/configure ; then
5989 build_configdirs="${build_configdirs} $i"
5990 fi
5991done
5992
9e07f89d
NN
5993configdirs_all="$configdirs"
5994configdirs=
5995for i in ${configdirs_all} ; do
5996 if test -f ${srcdir}/$i/configure ; then
5997 configdirs="${configdirs} $i"
5998 fi
5999done
6a9cf61e 6000
9e07f89d
NN
6001target_configdirs_all="$target_configdirs"
6002target_configdirs=
6003for i in ${target_configdirs_all} ; do
c6b750e1 6004 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6005 if test -f ${srcdir}/$j/configure ; then
6006 target_configdirs="${target_configdirs} $i"
6007 fi
6008done
6009
6010# Produce a warning message for the subdirs we can't configure.
6011# This isn't especially interesting in the Cygnus tree, but in the individual
6012# FSF releases, it's important to let people know when their machine isn't
6013# supported by the one or two programs in a package.
6014
6015if test -n "${notsupp}" && test -z "${norecursion}" ; then
6016 # If $appdirs is non-empty, at least one of those directories must still
6017 # be configured, or we error out. (E.g., if the gas release supports a
6018 # specified target in some subdirs but not the gas subdir, we shouldn't
6019 # pretend that all is well.)
6020 if test -n "$appdirs" ; then
6021 for dir in $appdirs ; do
6022 if test -r $dir/Makefile.in ; then
6023 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6024 appdirs=""
6025 break
6026 fi
6a9cf61e 6027 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6028 appdirs=""
6029 break
6030 fi
6031 fi
6032 done
6033 if test -n "$appdirs" ; then
6034 echo "*** This configuration is not supported by this package." 1>&2
6035 exit 1
6036 fi
6037 fi
6038 # Okay, some application will build, or we don't care to check. Still
6039 # notify of subdirs not getting built.
6040 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6041 echo " ${notsupp}" 1>&2
6042 echo " (Any other directories should still work fine.)" 1>&2
6043fi
6044
6045case "$host" in
6046 *msdosdjgpp*)
6047 enable_gdbtk=no ;;
6048esac
6049
18f6b6ee
PB
6050# To find our prefix, in gcc_cv_tool_prefix.
6051
6052# The user is always right.
6053if test "${PATH_SEPARATOR+set}" != set; then
6054 echo "#! /bin/sh" >conf$$.sh
6055 echo "exit 0" >>conf$$.sh
6056 chmod +x conf$$.sh
6057 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6058 PATH_SEPARATOR=';'
6059 else
6060 PATH_SEPARATOR=:
6061 fi
6062 rm -f conf$$.sh
6063fi
6064
6065
6066
6067if test "x$exec_prefix" = xNONE; then
6068 if test "x$prefix" = xNONE; then
6069 gcc_cv_tool_prefix=$ac_default_prefix
6070 else
6071 gcc_cv_tool_prefix=$prefix
6072 fi
6073else
6074 gcc_cv_tool_prefix=$exec_prefix
6075fi
6076
6077# If there is no compiler in the tree, use the PATH only. In any
6078# case, if there is no compiler in the tree nobody should use
6079# AS_FOR_TARGET and LD_FOR_TARGET.
6080if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6081 gcc_version=`cat $srcdir/gcc/BASE-VER`
6082 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6083 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6084 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6085 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6086 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6087 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6088else
6089 gcc_cv_tool_dirs=
6090fi
6091
6092if test x$build = x$target && test -n "$md_exec_prefix"; then
6093 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6094fi
6095
6096
6097
9e07f89d
NN
6098copy_dirs=
6099
c6b750e1 6100
81ecdfbb
RW
6101# Check whether --with-build-sysroot was given.
6102if test "${with_build_sysroot+set}" = set; then :
6103 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6104 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6105 fi
6106else
6107 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6108fi
a19b6204
MM
6109
6110
8a6ee3ab 6111
81ecdfbb
RW
6112
6113# Check whether --with-debug-prefix-map was given.
6114if test "${with_debug_prefix_map+set}" = set; then :
6115 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6116 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6117 for debug_map in $withval; do
6118 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6119 done
6120 fi
6121else
6122 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6123fi
6124
8a6ee3ab
JM
6125
6126
7f6ef0c0
PB
6127# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6128# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6129# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6130# We want to ensure that TARGET libraries (which we know are built with
6131# gcc) are built with "-O2 -g", so include those options when setting
6132# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6133if test "x$CFLAGS_FOR_TARGET" = x; then
6134 CFLAGS_FOR_TARGET=$CFLAGS
6135 case " $CFLAGS " in
6136 *" -O2 "*) ;;
6137 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6138 esac
6139 case " $CFLAGS " in
6140 *" -g "* | *" -g3 "*) ;;
6141 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6142 esac
6143fi
6144
6145
6146if test "x$CXXFLAGS_FOR_TARGET" = x; then
6147 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6148 case " $CXXFLAGS " in
6149 *" -O2 "*) ;;
6150 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6151 esac
6152 case " $CXXFLAGS " in
6153 *" -g "* | *" -g3 "*) ;;
6154 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6155 esac
6156fi
6157
6158
9e07f89d
NN
6159# Handle --with-headers=XXX. If the value is not "yes", the contents of
6160# the named directory are copied to $(tooldir)/sys-include.
6161if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6162 if test x${is_cross_compiler} = xno ; then
6163 echo 1>&2 '***' --with-headers is only supported when cross compiling
6164 exit 1
6165 fi
6166 if test x"${with_headers}" != xyes ; then
18f6b6ee 6167 x=${gcc_cv_tool_prefix}
c6b750e1 6168 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6169 fi
6170fi
6171
6172# Handle --with-libs=XXX. If the value is not "yes", the contents of
6173# the name directories are copied to $(tooldir)/lib. Multiple directories
6174# are permitted.
6175if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6176 if test x${is_cross_compiler} = xno ; then
6177 echo 1>&2 '***' --with-libs is only supported when cross compiling
6178 exit 1
6179 fi
6180 if test x"${with_libs}" != xyes ; then
6181 # Copy the libraries in reverse order, so that files in the first named
6182 # library override files in subsequent libraries.
18f6b6ee 6183 x=${gcc_cv_tool_prefix}
9e07f89d 6184 for l in ${with_libs}; do
c6b750e1 6185 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6186 done
6187 fi
6188fi
6189
2429c060
PB
6190# Set with_gnu_as and with_gnu_ld as appropriate.
6191#
6192# This is done by determining whether or not the appropriate directory
6193# is available, and by checking whether or not specific configurations
6194# have requested that this magic not happen.
c6b750e1
DJ
6195#
6196# The command line options always override the explicit settings in
2429c060
PB
6197# configure.in, and the settings in configure.in override this magic.
6198#
c6b750e1 6199# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
6200# want to do that, then you should use the --without-gnu-as and
6201# --without-gnu-ld options for the configure script.
6202
6203if test x${use_gnu_as} = x &&
6204 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6205 with_gnu_as=yes
6206 extra_host_args="$extra_host_args --with-gnu-as"
6207fi
6208
6209if test x${use_gnu_ld} = x &&
93f9b408 6210 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6211 with_gnu_ld=yes
6212 extra_host_args="$extra_host_args --with-gnu-ld"
6213fi
6214
6215# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6216# can detect this case.
6217
6218if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6219 with_newlib=yes
6220 extra_host_args="$extra_host_args --with-newlib"
6221fi
6222
9e07f89d
NN
6223# Handle ${copy_dirs}
6224set fnord ${copy_dirs}
6225shift
6226while test $# != 0 ; do
6227 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6228 :
6229 else
6230 echo Copying $1 to $2
6231
6232 # Use the install script to create the directory and all required
6233 # parent directories.
6234 if test -d $2 ; then
6235 :
6236 else
6237 echo >config.temp
6238 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6239 fi
6240
6241 # Copy the directory, assuming we have tar.
6242 # FIXME: Should we use B in the second tar? Not all systems support it.
6243 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6244
6245 # It is the responsibility of the user to correctly adjust all
6246 # symlinks. If somebody can figure out how to handle them correctly
6247 # here, feel free to add the code.
6248
6249 echo $1 > $2/COPIED
6250 fi
6251 shift; shift
6252done
6253
2429c060
PB
6254# Determine a target-dependent exec_prefix that the installed
6255# gcc will search in. Keep this list sorted by triplet, with
6256# the *-*-osname triplets last.
6257md_exec_prefix=
6258case "${target}" in
6259 alpha*-*-*vms*)
6260 md_exec_prefix=/gnu/lib/gcc-lib
6261 ;;
521ec477 6262 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6263 md_exec_prefix=/dev/env/DJDIR/bin
6264 ;;
521ec477 6265 i[34567]86-*-sco3.2v5*)
2429c060
PB
6266 if test $with_gnu_as = yes; then
6267 md_exec_prefix=/usr/gnu/bin
6268 else
6269 md_exec_prefix=/usr/ccs/bin/elf
6270 fi
6271 ;;
6272
6273 mn10300-*-* | \
6274 powerpc-*-chorusos* | \
6275 powerpc*-*-eabi* | \
6276 powerpc*-*-sysv* | \
6277 powerpc*-*-kaos* | \
6278 s390x-ibm-tpf*)
6279 md_exec_prefix=/usr/ccs/bin
6280 ;;
6281 sparc64-*-elf*)
6282 ;;
6283 v850*-*-*)
6284 md_exec_prefix=/usr/ccs/bin
6285 ;;
8b66833e 6286 xtensa*-*-elf*)
2429c060
PB
6287 ;;
6288
6289 *-*-beos* | \
6290 *-*-elf* | \
6291 *-*-hpux* | \
6292 *-*-netware* | \
6293 *-*-nto-qnx* | \
6294 *-*-rtems* | \
6295 *-*-solaris2* | \
521ec477 6296 *-*-sysv[45]* | \
2429c060
PB
6297 *-*-vxworks* | \
6298 *-wrs-windiss)
6299 md_exec_prefix=/usr/ccs/bin
6300 ;;
6301esac
6302
a0da8069
NN
6303extra_arflags_for_target=
6304extra_nmflags_for_target=
6305extra_ranlibflags_for_target=
6306target_makefile_frag=/dev/null
6307case "${target}" in
4e206d7e
DB
6308 mep*-*-*)
6309 target_makefile_frag="config/mt-mep"
6310 ;;
77d7106f
AM
6311 spu-*-*)
6312 target_makefile_frag="config/mt-spu"
6313 ;;
429acdec
RS
6314 mips*-sde-elf*)
6315 target_makefile_frag="config/mt-sde"
6316 ;;
f3b1e08e
RS
6317 mipsisa*-*-elfoabi*)
6318 target_makefile_frag="config/mt-mips-elfoabi"
6319 ;;
e7c8859c
RS
6320 mips*-*-*linux* | mips*-*-gnu*)
6321 target_makefile_frag="config/mt-mips-gnu"
6322 ;;
2a3124ca 6323 *-*-netware*)
a0da8069
NN
6324 target_makefile_frag="config/mt-netware"
6325 ;;
29383458 6326 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6327 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6328 ;;
6329 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6330 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6331 # commands to handle both 32-bit and 64-bit objects. These flags are
6332 # harmless if we're using GNU nm or ar.
6333 extra_arflags_for_target=" -X32_64"
6334 extra_nmflags_for_target=" -B -X32_64"
6335 ;;
6336 *-*-darwin*)
6337 # ranlib from Darwin requires the -c flag to look at common symbols.
6338 extra_ranlibflags_for_target=" -c"
6339 ;;
6340 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6341 target_makefile_frag="config/mt-wince"
6342 ;;
6343esac
6344
6345alphaieee_frag=/dev/null
6346case $target in
6347 alpha*-*-*)
6348 # This just makes sure to use the -mieee option to build target libs.
6349 # This should probably be set individually by each library.
6350 alphaieee_frag="config/mt-alphaieee"
6351 ;;
6352esac
6353
6354# If --enable-target-optspace always use -Os instead of -O2 to build
6355# the target libraries, similarly if it is not specified, use -Os
6356# on selected platforms.
6357ospace_frag=/dev/null
6358case "${enable_target_optspace}:${target}" in
6359 yes:*)
6360 ospace_frag="config/mt-ospace"
6361 ;;
6362 :d30v-*)
6363 ospace_frag="config/mt-d30v"
6364 ;;
6365 :m32r-* | :d10v-* | :fr30-*)
6366 ospace_frag="config/mt-ospace"
6367 ;;
6368 no:* | :*)
6369 ;;
6370 *)
6371 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6372 ;;
6373esac
6374
a0da8069
NN
6375# Default to using --with-stabs for certain targets.
6376if test x${with_stabs} = x ; then
6377 case "${target}" in
e31d1ea3 6378 mips*-*-irix[56]*)
a0da8069
NN
6379 ;;
6380 mips*-*-* | alpha*-*-osf*)
6381 with_stabs=yes;
6382 extra_host_args="${extra_host_args} --with-stabs"
6383 ;;
6384 esac
6385fi
6386
6387# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6388# them automatically.
6389case "${host}" in
c6b750e1 6390 hppa*64*-*-hpux11*)
a0da8069
NN
6391 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6392 ;;
6393esac
6394
a0da8069
NN
6395# Some systems (e.g., one of the i386-aix systems the gas testers are
6396# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6397tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6398build_tooldir=${tooldir}
6399
a0da8069
NN
6400# Create a .gdbinit file which runs the one in srcdir
6401# and tells GDB to look there for source files.
6402
6403if test -r ${srcdir}/.gdbinit ; then
6404 case ${srcdir} in
6405 .) ;;
6406 *) cat > ./.gdbinit <<EOF
6407# ${NO_EDIT}
6408dir ${srcdir}
6409dir .
6410source ${srcdir}/.gdbinit
6411EOF
6412 ;;
6413 esac
6414fi
6415
a0da8069
NN
6416# Make sure that the compiler is able to generate an executable. If it
6417# can't, we are probably in trouble. We don't care whether we can run the
6418# executable--we might be using a cross compiler--we only care whether it
6419# can be created. At this point the main configure script has set CC.
6420we_are_ok=no
6421echo "int main () { return 0; }" > conftest.c
6422${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6423if test $? = 0 ; then
6424 if test -s conftest || test -s conftest.exe ; then
6425 we_are_ok=yes
6426 fi
c6b750e1 6427fi
a0da8069
NN
6428case $we_are_ok in
6429 no)
6430 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6431 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6432 rm -f conftest*
6433 exit 1
6434 ;;
6435esac
6436rm -f conftest*
6437
6438# The Solaris /usr/ucb/cc compiler does not appear to work.
6439case "${host}" in
6440 sparc-sun-solaris2*)
6441 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6442 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6443 could_use=
6444 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6445 if test -d /opt/cygnus/bin ; then
6446 if test "$could_use" = "" ; then
6447 could_use="/opt/cygnus/bin"
6448 else
6449 could_use="$could_use or /opt/cygnus/bin"
6450 fi
6451 fi
6452 if test "$could_use" = "" ; then
6453 echo "Warning: compilation may fail because you're using"
6454 echo "/usr/ucb/cc. You should change your PATH or CC "
6455 echo "variable and rerun configure."
6456 else
6457 echo "Warning: compilation may fail because you're using"
6458 echo "/usr/ucb/cc, when you should use the C compiler from"
6459 echo "$could_use. You should change your"
6460 echo "PATH or CC variable and rerun configure."
6461 fi
6462 fi
6463 ;;
6464esac
6465
3bbd2f8f 6466# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6467case "${host}" in
6468 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 6469 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6470 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6471 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6472esac
6473
3bbd2f8f 6474# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6475# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6476# built executables to PATH.
3bbd2f8f
AL
6477if test "$RPATH_ENVVAR" = PATH; then
6478 GCC_SHLIB_SUBDIR=/shlib
6479else
6480 GCC_SHLIB_SUBDIR=
6481fi
6482
a0da8069
NN
6483# Record target_configdirs and the configure arguments for target and
6484# build configuration in Makefile.
6485target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6486build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6487
a0da8069
NN
6488# Determine whether gdb needs tk/tcl or not.
6489# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6490# and in that case we want gdb to be built without tk. Ugh!
6491# In fact I believe gdb is the *only* package directly dependent on tk,
6492# so we should be able to put the 'maybe's in unconditionally and
6493# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6494# 100% sure that that's safe though.
c180f501 6495
675c6968 6496gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6497case "$enable_gdbtk" in
6498 no)
6499 GDB_TK="" ;;
c180f501
AC
6500 yes)
6501 GDB_TK="${gdb_tk}" ;;
a0da8069 6502 *)
c180f501
AC
6503 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6504 # distro. Eventually someone will fix this and move Insight, nee
6505 # gdbtk to a separate directory.
6506 if test -d ${srcdir}/gdb/gdbtk ; then
6507 GDB_TK="${gdb_tk}"
6508 else
6509 GDB_TK=""
6510 fi
6511 ;;
a0da8069 6512esac
907be67c
DJ
6513CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6514INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6515
6bd3dfaa 6516# Strip out unwanted targets.
dd12c3a8
NN
6517
6518# While at that, we remove Makefiles if we were started for recursive
6519# configuration, so that the top-level Makefile reconfigures them,
6520# like we used to do when configure itself was recursive.
dd12c3a8 6521
06a51eac
RW
6522# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6523# but now we're fixing up the Makefile ourselves with the additional
6524# commands passed to AC_CONFIG_FILES. Use separate variables
6525# extrasub-{build,host,target} not because there is any reason to split
6526# the substitutions up that way, but only to remain below the limit of
6527# 99 commands in a script, for HP-UX sed.
6528# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6529
81ecdfbb
RW
6530# Check whether --enable-bootstrap was given.
6531if test "${enable_bootstrap+set}" = set; then :
6532 enableval=$enable_bootstrap;
319cab08 6533else
9cb3fa6f 6534 enable_bootstrap=default
81ecdfbb
RW
6535fi
6536
319cab08 6537
9cb3fa6f
PB
6538# Issue errors and warnings for invalid/strange bootstrap combinations.
6539case "$configdirs" in
6540 *gcc*) have_compiler=yes ;;
6541 *) have_compiler=no ;;
6542esac
6543
6544case "$have_compiler:$host:$target:$enable_bootstrap" in
6545 *:*:*:no) ;;
6546
0aed8855 6547 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
6548 # and we are in a native configuration.
6549 yes:$build:$build:default)
0aed8855 6550 enable_bootstrap=yes ;;
9cb3fa6f
PB
6551
6552 *:*:*:default)
6553 enable_bootstrap=no ;;
6554
6555 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 6556 yes:$build:$build:yes)
9cb3fa6f
PB
6557 ;;
6558
6559 # Other configurations, but we have a compiler. Assume the user knows
6560 # what he's doing.
80911fe1 6561 yes:*:*:yes)
81ecdfbb
RW
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6563$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
6564 ;;
6565
6566 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 6567 no:*:*:yes)
81ecdfbb 6568 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
6569
6570 # Fail if wrong command line
6571 *)
81ecdfbb 6572 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
6573 ;;
6574esac
6575
6576# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 6577case $enable_bootstrap in
319cab08 6578 yes)
96655cc4
AO
6579 bootstrap_suffix=bootstrap
6580 BUILD_CONFIG=bootstrap-debug
6581 ;;
319cab08 6582 no)
96655cc4
AO
6583 bootstrap_suffix=no-bootstrap
6584 BUILD_CONFIG=
6585 ;;
319cab08
PB
6586esac
6587
96655cc4
AO
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6589$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6590
6591
6592# Check whether --with-build-config was given.
6593if test "${with_build_config+set}" = set; then :
6594 withval=$with_build_config; case $with_build_config in
6595 yes) with_build_config= ;;
6596 no) with_build_config= BUILD_CONFIG= ;;
6597 esac
6598fi
6599
6600
6601if test "x${with_build_config}" != x; then
6602 BUILD_CONFIG=$with_build_config
6603else
6604 case $BUILD_CONFIG in
6605 bootstrap-debug)
6606 if echo "int f (void) { return 0; }" > conftest.c &&
6607 ${CC} -c conftest.c &&
6608 mv conftest.o conftest.o.g0 &&
6609 ${CC} -c -g conftest.c &&
6610 mv conftest.o conftest.o.g &&
6611 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g; then
6612 :
6613 else
6614 BUILD_CONFIG=
6615 fi
6616 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6617 ;;
6618 esac
6619fi
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6621$as_echo "$BUILD_CONFIG" >&6; }
6622
6623
06a51eac 6624extrasub_build=
6a9cf61e 6625for module in ${build_configdirs} ; do
498d4a71
CF
6626 if test -z "${no_recursion}" \
6627 && test -f ${build_subdir}/${module}/Makefile; then
6628 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6629 rm -f ${build_subdir}/${module}/Makefile
6630 fi
06a51eac 6631 extrasub_build="$extrasub_build
498d4a71
CF
6632/^@if build-$module\$/d
6633/^@endif build-$module\$/d
6634/^@if build-$module-$bootstrap_suffix\$/d
6635/^@endif build-$module-$bootstrap_suffix\$/d"
6636done
06a51eac 6637extrasub_host=
498d4a71 6638for module in ${configdirs} ; do
80911fe1 6639 if test -z "${no_recursion}"; then
8cf39b1b 6640 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6641 if test -f ${file}; then
6642 echo 1>&2 "*** removing ${file} to force reconfigure"
6643 rm -f ${file}
6644 fi
6645 done
498d4a71 6646 fi
06a51eac 6647 extrasub_host="$extrasub_host
498d4a71
CF
6648/^@if $module\$/d
6649/^@endif $module\$/d
6650/^@if $module-$bootstrap_suffix\$/d
6651/^@endif $module-$bootstrap_suffix\$/d"
6652done
06a51eac 6653extrasub_target=
498d4a71
CF
6654for module in ${target_configdirs} ; do
6655 if test -z "${no_recursion}" \
6656 && test -f ${target_subdir}/${module}/Makefile; then
6657 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6658 rm -f ${target_subdir}/${module}/Makefile
6659 fi
e8a5fa9c
RW
6660
6661 # We only bootstrap target libraries listed in bootstrap_target_libs.
6662 case $bootstrap_target_libs in
6663 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6664 *) target_bootstrap_suffix=no-bootstrap ;;
6665 esac
6666
06a51eac 6667 extrasub_target="$extrasub_target
498d4a71
CF
6668/^@if target-$module\$/d
6669/^@endif target-$module\$/d
e8a5fa9c
RW
6670/^@if target-$module-$target_bootstrap_suffix\$/d
6671/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
6672done
6673
06a51eac
RW
6674# Do the final fixup along with target modules.
6675extrasub_target="$extrasub_target
6bd3dfaa 6676/^@if /,/^@endif /d"
a0da8069
NN
6677
6678# Create the serialization dependencies. This uses a temporary file.
6679
81ecdfbb
RW
6680# Check whether --enable-serial-configure was given.
6681if test "${enable_serial_configure+set}" = set; then :
6682 enableval=$enable_serial_configure;
6683fi
e6bfb94a
AO
6684
6685
1047cb91
DD
6686case ${enable_serial_configure} in
6687 yes)
6688 enable_serial_build_configure=yes
6689 enable_serial_host_configure=yes
6690 enable_serial_target_configure=yes
6691 ;;
6692esac
6693
a0da8069
NN
6694# These force 'configure's to be done one at a time, to avoid problems
6695# with contention over a shared config.cache.
6696rm -f serdep.tmp
e6bfb94a 6697echo '# serdep.tmp' > serdep.tmp
a0da8069 6698olditem=
1047cb91 6699test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6700for item in ${build_configdirs} ; do
6701 case ${olditem} in
6702 "") ;;
e6bfb94a 6703 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6704 esac
6705 olditem=${item}
6706done
6707olditem=
1047cb91 6708test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6709for item in ${configdirs} ; do
6710 case ${olditem} in
6711 "") ;;
e6bfb94a 6712 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6713 esac
6714 olditem=${item}
6715done
6716olditem=
1047cb91 6717test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6718for item in ${target_configdirs} ; do
6719 case ${olditem} in
6720 "") ;;
e6bfb94a 6721 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6722 esac
6723 olditem=${item}
6724done
6725serialization_dependencies=serdep.tmp
6726
6727
e6bfb94a 6728# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
6729# target, nonopt, and variable assignments. These are the ones we
6730# might not want to pass down to subconfigures. Also strip
6731# program-prefix, program-suffix, and program-transform-name, so that
6732# we can pass down a consistent program-transform-name.
6733baseargs=
6734keep_next=no
6735skip_next=no
6736eval "set -- $ac_configure_args"
18f6b6ee
PB
6737for ac_arg
6738do
c6b750e1
DJ
6739 if test X"$skip_next" = X"yes"; then
6740 skip_next=no
6741 continue
6742 fi
6743 if test X"$keep_next" = X"yes"; then
6744 case $ac_arg in
6745 *\'*)
6746 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6747 esac
6748 baseargs="$baseargs '$ac_arg'"
6749 keep_next=no
6750 continue
6751 fi
6752
6753 # Handle separated arguments. Based on the logic generated by
6754 # autoconf 2.59.
6755 case $ac_arg in
6756 *=* | --config-cache | -C | -disable-* | --disable-* \
6757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6759 | -with-* | --with-* | -without-* | --without-* | --x)
6760 separate_arg=no
6761 ;;
6762 -*)
6763 separate_arg=yes
6764 ;;
6765 *)
6766 separate_arg=no
6767 ;;
6768 esac
6769
6770 case "$ac_arg" in
6771 --no*)
6772 continue
6773 ;;
6774 --c* | \
6775 --sr* | \
6776 --ho* | \
6777 --bu* | \
6778 --t* | \
6779 --program-* | \
6780 -cache_file* | \
6781 -srcdir* | \
6782 -host* | \
6783 -build* | \
6784 -target* | \
6785 -program-prefix* | \
6786 -program-suffix* | \
6787 -program-transform-name* )
6788 skip_next=$separate_arg
6789 continue
6790 ;;
6791 -*)
6792 # An option. Add it.
6793 case $ac_arg in
6794 *\'*)
6795 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6796 esac
6797 baseargs="$baseargs '$ac_arg'"
6798 keep_next=$separate_arg
6799 ;;
6800 *)
6801 # Either a variable assignment, or a nonopt (triplet). Don't
6802 # pass it down; let the Makefile handle this.
6803 continue
6804 ;;
6805 esac
6806done
6807# Remove the initial space we just introduced and, as these will be
6808# expanded by make, quote '$'.
6809baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 6810
f27d4f92
DJ
6811# Add in --program-transform-name, after --program-prefix and
6812# --program-suffix have been applied to it. Autoconf has already
6813# doubled dollar signs and backslashes in program_transform_name; we want
6814# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 6815# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
6816# Also, because we want to override the logic in subdir configure scripts to
6817# choose program_transform_name, replace any s,x,x, with s,y,y,.
6818sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6819${program_transform_name}
6820EOF_SED
6821gcc_transform_name=`cat conftestsed.out`
6822rm -f conftestsed.out
6823baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
6824if test "$silent" = yes; then
6825 baseargs="$baseargs --silent"
6826fi
34a0f3cf 6827baseargs="$baseargs --disable-option-checking"
f27d4f92 6828
a0da8069
NN
6829# For the build-side libraries, we just need to pretend we're native,
6830# and not use the same cache file. Multilibs are neither needed nor
6831# desired.
4b900473 6832build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
6833
6834# For host modules, accept cache file option, or specification as blank.
6835case "${cache_file}" in
6836"") # empty
6837 cache_file_option="" ;;
6838/* | [A-Za-z]:[\\/]* ) # absolute path
6839 cache_file_option="--cache-file=${cache_file}" ;;
6840*) # relative path
6841 cache_file_option="--cache-file=../${cache_file}" ;;
6842esac
6843
82252c06
NN
6844# Host dirs don't like to share a cache file either, horribly enough.
6845# This seems to be due to autoconf 2.5x stupidity.
4b900473 6846host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
6847
6848target_configargs=${baseargs}
6849
6850# Passing a --with-cross-host argument lets the target libraries know
6851# whether they are being built with a cross-compiler or being built
6852# native. However, it would be better to use other mechanisms to make the
6853# sorts of decisions they want to make on this basis. Please consider
6854# this option to be deprecated. FIXME.
6855if test x${is_cross_compiler} = xyes ; then
c6b750e1 6856 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
6857fi
6858
6859# Default to --enable-multilib.
6860if test x${enable_multilib} = x ; then
6861 target_configargs="--enable-multilib ${target_configargs}"
6862fi
6863
6864# Pass --with-newlib if appropriate. Note that target_configdirs has
6865# changed from the earlier setting of with_newlib.
6866if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6867 target_configargs="--with-newlib ${target_configargs}"
6868fi
6869
95036d20
NN
6870# Different target subdirs use different values of certain variables
6871# (notably CXX). Worse, multilibs use *lots* of different values.
6872# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6873# it doesn't automatically accept command-line overrides of them.
6874# This means it's not safe for target subdirs to share a cache file,
6875# which is disgusting, but there you have it. Hopefully this can be
6876# fixed in future. It's still worthwhile to use a cache file for each
6877# directory. I think.
6878
ae380b45
MS
6879# Pass the appropriate --build, --host, --target and --cache-file arguments.
6880# We need to pass --target, as newer autoconf's requires consistency
6881# for target_alias and gcc doesn't manage it consistently.
4b900473 6882target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 6883
a0da8069
NN
6884FLAGS_FOR_TARGET=
6885case " $target_configdirs " in
6886 *" newlib "*)
6887 case " $target_configargs " in
6888 *" --with-newlib "*)
6889 case "$target" in
6890 *-cygwin*)
564b43e5 6891 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
a0da8069
NN
6892 esac
6893
6894 # If we're not building GCC, don't discard standard headers.
6895 if test -d ${srcdir}/gcc; then
6896 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6897
6898 if test "${build}" != "${host}"; then
6899 # On Canadian crosses, CC_FOR_TARGET will have already been set
6900 # by `configure', so we won't have an opportunity to add -Bgcc/
6901 # to it. This is right: we don't want to search that directory
6902 # for binaries, but we want the header files in there, so add
6903 # them explicitly.
b00612cc 6904 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
6905
6906 # Someone might think of using the pre-installed headers on
6907 # Canadian crosses, in case the installed compiler is not fully
6908 # compatible with the compiler being built. In this case, it
6909 # would be better to flag an error than risking having
6910 # incompatible object files being constructed. We can't
6911 # guarantee that an error will be flagged, but let's hope the
6912 # compiler will do it, when presented with incompatible header
6913 # files.
6914 fi
6915 fi
6916
6917 case "${target}-${is_cross_compiler}" in
ec11bdc6 6918 i[3456789]86-*-linux*-no)
a0da8069
NN
6919 # Here host == target, so we don't need to build gcc,
6920 # so we don't want to discard standard headers.
6921 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6922 ;;
6923 *)
6924 # If we're building newlib, use its generic headers last, but search
6925 # for any libc-related directories first (so make it the last -B
6926 # switch).
6927 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
6928
6929 # If we're building libgloss, find the startup file, simulator library
6930 # and linker script.
6931 case " $target_configdirs " in
6932 *" libgloss "*)
6933 # Look for startup file, simulator library and maybe linker script.
6934 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6935 # Look for libnosys.a in case the target needs it.
6936 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6937 # Most targets have the linker script in the source directory.
6938 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6939 ;;
6940 esac
a0da8069
NN
6941 ;;
6942 esac
6943 ;;
6944 esac
6945 ;;
6946esac
45055374
CV
6947case "$target" in
6948*-mingw*)
6949 # Can't be handled as Cygwin above since Mingw does not use newlib.
6950 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' ;;
6951esac
a0da8069 6952
5fbad20a
DD
6953# Allow the user to override the flags for
6954# our build compiler if desired.
c66487f8
NC
6955if test x"${build}" = x"${host}" ; then
6956 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6957 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6958 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6959fi
5fbad20a 6960
a0da8069
NN
6961# On Canadian crosses, we'll be searching the right directories for
6962# the previously-installed cross compiler, so don't bother to add
6963# flags for directories within the install tree of the compiler
6964# being built; programs in there won't even run.
6965if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6966 # Search for pre-installed headers if nothing else fits.
bba45b8b 6967 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
6968fi
6969
6970if test "x${use_gnu_ld}" = x &&
6971 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6972 # Arrange for us to find uninstalled linker scripts.
b00612cc 6973 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6974fi
6975
a481dbb7
DD
6976# Search for other target-specific linker scripts and such.
6977case "${target}" in
4e206d7e
DB
6978 mep*)
6979 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6980 ;;
6981esac
6982
a0da8069 6983# Makefile fragments.
3e707e94
PB
6984for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6985do
6986 eval fragval=\$$frag
6987 if test $fragval != /dev/null; then
6988 eval $frag=${srcdir}/$fragval
6989 fi
6990done
a0da8069
NN
6991
6992
6993
6994
6995
6996# Miscellanea: directories, flags, etc.
6997
6998
6999
7000
7001
7002
7003
3bbd2f8f 7004
6a9cf61e 7005# Build module lists & subconfigure args.
a0da8069
NN
7006
7007
7008
be01d343
PB
7009# Host module lists & subconfigure args.
7010
7011
7012
7013# Target module lists & subconfigure args.
7014
7015
7016
7017# Build tools.
7018
7019
7020
1576798e
PB
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
be01d343
PB
7035# Generate default definitions for YACC, M4, LEX and other programs that run
7036# on the build machine. These are used if the Makefile can't locate these
7037# programs in objdir.
7038MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7039
7040for ac_prog in 'bison -y' byacc yacc
7041do
c6b750e1 7042 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7043set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045$as_echo_n "checking for $ac_word... " >&6; }
7046if test "${ac_cv_prog_YACC+set}" = set; then :
7047 $as_echo_n "(cached) " >&6
be01d343
PB
7048else
7049 if test -n "$YACC"; then
7050 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7051else
c6b750e1
DJ
7052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7059 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7061 break 2
7062 fi
7063done
81ecdfbb
RW
7064 done
7065IFS=$as_save_IFS
c6b750e1 7066
be01d343
PB
7067fi
7068fi
c6b750e1 7069YACC=$ac_cv_prog_YACC
be01d343 7070if test -n "$YACC"; then
81ecdfbb
RW
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7072$as_echo "$YACC" >&6; }
be01d343 7073else
81ecdfbb
RW
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075$as_echo "no" >&6; }
be01d343
PB
7076fi
7077
81ecdfbb 7078
c6b750e1 7079 test -n "$YACC" && break
be01d343
PB
7080done
7081test -n "$YACC" || YACC="$MISSING bison -y"
7082
7083case " $build_configdirs " in
7084 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7085 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7086esac
7087
7088for ac_prog in bison
7089do
c6b750e1 7090 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7091set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093$as_echo_n "checking for $ac_word... " >&6; }
7094if test "${ac_cv_prog_BISON+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
be01d343
PB
7096else
7097 if test -n "$BISON"; then
7098 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7099else
c6b750e1
DJ
7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7107 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7109 break 2
7110 fi
7111done
81ecdfbb
RW
7112 done
7113IFS=$as_save_IFS
c6b750e1 7114
be01d343
PB
7115fi
7116fi
c6b750e1 7117BISON=$ac_cv_prog_BISON
be01d343 7118if test -n "$BISON"; then
81ecdfbb
RW
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7120$as_echo "$BISON" >&6; }
be01d343 7121else
81ecdfbb
RW
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123$as_echo "no" >&6; }
be01d343
PB
7124fi
7125
81ecdfbb 7126
c6b750e1 7127 test -n "$BISON" && break
be01d343
PB
7128done
7129test -n "$BISON" || BISON="$MISSING bison"
7130
7131case " $build_configdirs " in
7132 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7133esac
7134
7135for ac_prog in gm4 gnum4 m4
7136do
c6b750e1 7137 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7138set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140$as_echo_n "checking for $ac_word... " >&6; }
7141if test "${ac_cv_prog_M4+set}" = set; then :
7142 $as_echo_n "(cached) " >&6
be01d343
PB
7143else
7144 if test -n "$M4"; then
7145 ac_cv_prog_M4="$M4" # Let the user override the test.
7146else
c6b750e1
DJ
7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7154 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7156 break 2
7157 fi
7158done
81ecdfbb
RW
7159 done
7160IFS=$as_save_IFS
c6b750e1 7161
be01d343
PB
7162fi
7163fi
c6b750e1 7164M4=$ac_cv_prog_M4
be01d343 7165if test -n "$M4"; then
81ecdfbb
RW
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7167$as_echo "$M4" >&6; }
be01d343 7168else
81ecdfbb
RW
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170$as_echo "no" >&6; }
be01d343
PB
7171fi
7172
81ecdfbb 7173
c6b750e1 7174 test -n "$M4" && break
be01d343
PB
7175done
7176test -n "$M4" || M4="$MISSING m4"
7177
7178case " $build_configdirs " in
7179 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7180esac
7181
7182for ac_prog in flex lex
7183do
c6b750e1 7184 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7185set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187$as_echo_n "checking for $ac_word... " >&6; }
7188if test "${ac_cv_prog_LEX+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
be01d343
PB
7190else
7191 if test -n "$LEX"; then
7192 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7193else
c6b750e1
DJ
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7201 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7203 break 2
7204 fi
7205done
81ecdfbb
RW
7206 done
7207IFS=$as_save_IFS
c6b750e1 7208
be01d343
PB
7209fi
7210fi
c6b750e1 7211LEX=$ac_cv_prog_LEX
be01d343 7212if test -n "$LEX"; then
81ecdfbb
RW
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7214$as_echo "$LEX" >&6; }
be01d343 7215else
81ecdfbb
RW
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217$as_echo "no" >&6; }
be01d343
PB
7218fi
7219
81ecdfbb 7220
c6b750e1 7221 test -n "$LEX" && break
be01d343
PB
7222done
7223test -n "$LEX" || LEX="$MISSING flex"
7224
7225case " $build_configdirs " in
7226 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7227 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7228esac
7229
7230for ac_prog in flex
7231do
c6b750e1 7232 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7233set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235$as_echo_n "checking for $ac_word... " >&6; }
7236if test "${ac_cv_prog_FLEX+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
be01d343
PB
7238else
7239 if test -n "$FLEX"; then
7240 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7241else
c6b750e1
DJ
7242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243for as_dir in $PATH
7244do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7249 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7251 break 2
7252 fi
7253done
81ecdfbb
RW
7254 done
7255IFS=$as_save_IFS
c6b750e1 7256
be01d343
PB
7257fi
7258fi
c6b750e1 7259FLEX=$ac_cv_prog_FLEX
be01d343 7260if test -n "$FLEX"; then
81ecdfbb
RW
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7262$as_echo "$FLEX" >&6; }
be01d343 7263else
81ecdfbb
RW
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265$as_echo "no" >&6; }
be01d343
PB
7266fi
7267
81ecdfbb 7268
c6b750e1 7269 test -n "$FLEX" && break
be01d343
PB
7270done
7271test -n "$FLEX" || FLEX="$MISSING flex"
7272
7273case " $build_configdirs " in
7274 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7275esac
7276
7277for ac_prog in makeinfo
7278do
c6b750e1 7279 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7280set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7282$as_echo_n "checking for $ac_word... " >&6; }
7283if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7284 $as_echo_n "(cached) " >&6
be01d343
PB
7285else
7286 if test -n "$MAKEINFO"; then
7287 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7288else
c6b750e1
DJ
7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7296 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7298 break 2
7299 fi
7300done
81ecdfbb
RW
7301 done
7302IFS=$as_save_IFS
c6b750e1 7303
be01d343
PB
7304fi
7305fi
c6b750e1 7306MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7307if test -n "$MAKEINFO"; then
81ecdfbb
RW
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7309$as_echo "$MAKEINFO" >&6; }
be01d343 7310else
81ecdfbb
RW
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312$as_echo "no" >&6; }
be01d343
PB
7313fi
7314
81ecdfbb 7315
c6b750e1 7316 test -n "$MAKEINFO" && break
be01d343
PB
7317done
7318test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7319
7320case " $build_configdirs " in
7321 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7322 *)
7323
10ad8ef3 7324 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7325 # higher, else we use the "missing" dummy.
7326 if ${MAKEINFO} --version \
10ad8ef3 7327 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7328 :
7329 else
7330 MAKEINFO="$MISSING makeinfo"
7331 fi
7332 ;;
7333
7334esac
a0da8069 7335
be01d343 7336# FIXME: expect and dejagnu may become build tools?
a0da8069 7337
be01d343
PB
7338for ac_prog in expect
7339do
c6b750e1 7340 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7341set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if test "${ac_cv_prog_EXPECT+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
be01d343
PB
7346else
7347 if test -n "$EXPECT"; then
7348 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7349else
c6b750e1
DJ
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7357 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7359 break 2
7360 fi
7361done
81ecdfbb
RW
7362 done
7363IFS=$as_save_IFS
c6b750e1 7364
be01d343
PB
7365fi
7366fi
c6b750e1 7367EXPECT=$ac_cv_prog_EXPECT
be01d343 7368if test -n "$EXPECT"; then
81ecdfbb
RW
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7370$as_echo "$EXPECT" >&6; }
be01d343 7371else
81ecdfbb
RW
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
be01d343 7374fi
a0da8069 7375
81ecdfbb 7376
c6b750e1 7377 test -n "$EXPECT" && break
be01d343
PB
7378done
7379test -n "$EXPECT" || EXPECT="expect"
a0da8069 7380
be01d343
PB
7381case " $configdirs " in
7382 *" expect "*)
7383 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7384 ;;
7385esac
a0da8069 7386
be01d343
PB
7387for ac_prog in runtest
7388do
c6b750e1 7389 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7390set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392$as_echo_n "checking for $ac_word... " >&6; }
7393if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7394 $as_echo_n "(cached) " >&6
be01d343
PB
7395else
7396 if test -n "$RUNTEST"; then
7397 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7398else
c6b750e1
DJ
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7406 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7408 break 2
7409 fi
7410done
81ecdfbb
RW
7411 done
7412IFS=$as_save_IFS
c6b750e1 7413
be01d343
PB
7414fi
7415fi
c6b750e1 7416RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7417if test -n "$RUNTEST"; then
81ecdfbb
RW
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7419$as_echo "$RUNTEST" >&6; }
be01d343 7420else
81ecdfbb
RW
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422$as_echo "no" >&6; }
be01d343 7423fi
a0da8069 7424
81ecdfbb 7425
c6b750e1 7426 test -n "$RUNTEST" && break
be01d343
PB
7427done
7428test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7429
be01d343
PB
7430case " $configdirs " in
7431 *" dejagnu "*)
6b89cc21 7432 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7433 ;;
7434esac
a0da8069
NN
7435
7436
a0da8069 7437# Host tools.
859789af
AC
7438ncn_tool_prefix=
7439test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7440ncn_target_tool_prefix=
7441test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7442
9a819804
AO
7443
7444
7445if test -n "$AR"; then
7446 ac_cv_prog_AR=$AR
7447elif test -n "$ac_cv_prog_AR"; then
7448 AR=$ac_cv_prog_AR
7449fi
7450
7451if test -n "$ac_cv_prog_AR"; then
7452 for ncn_progname in ar; do
7453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7454set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456$as_echo_n "checking for $ac_word... " >&6; }
7457if test "${ac_cv_prog_AR+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
9a819804
AO
7459else
7460 if test -n "$AR"; then
7461 ac_cv_prog_AR="$AR" # Let the user override the test.
7462else
7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464for as_dir in $PATH
7465do
7466 IFS=$as_save_IFS
7467 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7470 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7472 break 2
7473 fi
7474done
81ecdfbb
RW
7475 done
7476IFS=$as_save_IFS
9a819804
AO
7477
7478fi
7479fi
7480AR=$ac_cv_prog_AR
7481if test -n "$AR"; then
81ecdfbb
RW
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7483$as_echo "$AR" >&6; }
9a819804 7484else
81ecdfbb
RW
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486$as_echo "no" >&6; }
9a819804
AO
7487fi
7488
81ecdfbb 7489
9a819804
AO
7490 done
7491fi
7492
7493for ncn_progname in ar; do
05cbd757
PB
7494 if test -n "$ncn_tool_prefix"; then
7495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7496set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498$as_echo_n "checking for $ac_word... " >&6; }
7499if test "${ac_cv_prog_AR+set}" = set; then :
7500 $as_echo_n "(cached) " >&6
859789af
AC
7501else
7502 if test -n "$AR"; then
7503 ac_cv_prog_AR="$AR" # Let the user override the test.
7504else
c6b750e1
DJ
7505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7512 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7514 break 2
7515 fi
7516done
81ecdfbb
RW
7517 done
7518IFS=$as_save_IFS
c6b750e1 7519
859789af
AC
7520fi
7521fi
c6b750e1 7522AR=$ac_cv_prog_AR
859789af 7523if test -n "$AR"; then
81ecdfbb
RW
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7525$as_echo "$AR" >&6; }
859789af 7526else
81ecdfbb
RW
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528$as_echo "no" >&6; }
859789af
AC
7529fi
7530
81ecdfbb 7531
05cbd757
PB
7532 fi
7533 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7535set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537$as_echo_n "checking for $ac_word... " >&6; }
7538if test "${ac_cv_prog_AR+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
859789af 7540else
05cbd757
PB
7541 if test -n "$AR"; then
7542 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7543else
c6b750e1
DJ
7544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545for as_dir in $PATH
7546do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7551 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7553 break 2
7554 fi
7555done
81ecdfbb
RW
7556 done
7557IFS=$as_save_IFS
c6b750e1 7558
859789af
AC
7559fi
7560fi
c6b750e1 7561AR=$ac_cv_prog_AR
05cbd757 7562if test -n "$AR"; then
81ecdfbb
RW
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7564$as_echo "$AR" >&6; }
859789af 7565else
81ecdfbb
RW
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567$as_echo "no" >&6; }
859789af 7568fi
c6b750e1 7569
81ecdfbb 7570
05cbd757
PB
7571 fi
7572 test -n "$ac_cv_prog_AR" && break
7573done
7574
7575if test -z "$ac_cv_prog_AR" ; then
7576 set dummy ar
7577 if test $build = $host ; then
7578 AR="$2"
859789af 7579 else
05cbd757 7580 AR="${ncn_tool_prefix}$2"
859789af 7581 fi
859789af
AC
7582fi
7583
9a819804
AO
7584
7585
7586if test -n "$AS"; then
7587 ac_cv_prog_AS=$AS
7588elif test -n "$ac_cv_prog_AS"; then
7589 AS=$ac_cv_prog_AS
7590fi
7591
7592if test -n "$ac_cv_prog_AS"; then
7593 for ncn_progname in as; do
7594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7595set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597$as_echo_n "checking for $ac_word... " >&6; }
7598if test "${ac_cv_prog_AS+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
9a819804
AO
7600else
7601 if test -n "$AS"; then
7602 ac_cv_prog_AS="$AS" # Let the user override the test.
7603else
7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7611 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7613 break 2
7614 fi
7615done
81ecdfbb
RW
7616 done
7617IFS=$as_save_IFS
9a819804
AO
7618
7619fi
7620fi
7621AS=$ac_cv_prog_AS
7622if test -n "$AS"; then
81ecdfbb
RW
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7624$as_echo "$AS" >&6; }
9a819804 7625else
81ecdfbb
RW
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627$as_echo "no" >&6; }
9a819804
AO
7628fi
7629
81ecdfbb 7630
9a819804
AO
7631 done
7632fi
7633
7634for ncn_progname in as; do
05cbd757
PB
7635 if test -n "$ncn_tool_prefix"; then
7636 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7637set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639$as_echo_n "checking for $ac_word... " >&6; }
7640if test "${ac_cv_prog_AS+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
859789af
AC
7642else
7643 if test -n "$AS"; then
7644 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
7645else
7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7653 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7655 break 2
7656 fi
7657done
81ecdfbb
RW
7658 done
7659IFS=$as_save_IFS
c6b750e1 7660
859789af
AC
7661fi
7662fi
c6b750e1 7663AS=$ac_cv_prog_AS
859789af 7664if test -n "$AS"; then
81ecdfbb
RW
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7666$as_echo "$AS" >&6; }
859789af 7667else
81ecdfbb
RW
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669$as_echo "no" >&6; }
859789af
AC
7670fi
7671
81ecdfbb 7672
05cbd757
PB
7673 fi
7674 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7676set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678$as_echo_n "checking for $ac_word... " >&6; }
7679if test "${ac_cv_prog_AS+set}" = set; then :
7680 $as_echo_n "(cached) " >&6
859789af 7681else
05cbd757
PB
7682 if test -n "$AS"; then
7683 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 7684else
c6b750e1
DJ
7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686for as_dir in $PATH
7687do
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7692 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7694 break 2
7695 fi
7696done
81ecdfbb
RW
7697 done
7698IFS=$as_save_IFS
c6b750e1 7699
859789af
AC
7700fi
7701fi
c6b750e1 7702AS=$ac_cv_prog_AS
05cbd757 7703if test -n "$AS"; then
81ecdfbb
RW
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7705$as_echo "$AS" >&6; }
859789af 7706else
81ecdfbb
RW
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708$as_echo "no" >&6; }
859789af 7709fi
c6b750e1 7710
81ecdfbb 7711
05cbd757
PB
7712 fi
7713 test -n "$ac_cv_prog_AS" && break
7714done
7715
7716if test -z "$ac_cv_prog_AS" ; then
7717 set dummy as
7718 if test $build = $host ; then
7719 AS="$2"
859789af 7720 else
05cbd757 7721 AS="${ncn_tool_prefix}$2"
859789af 7722 fi
859789af
AC
7723fi
7724
9a819804
AO
7725
7726
7727if test -n "$DLLTOOL"; then
7728 ac_cv_prog_DLLTOOL=$DLLTOOL
7729elif test -n "$ac_cv_prog_DLLTOOL"; then
7730 DLLTOOL=$ac_cv_prog_DLLTOOL
7731fi
7732
7733if test -n "$ac_cv_prog_DLLTOOL"; then
7734 for ncn_progname in dlltool; do
7735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7736set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738$as_echo_n "checking for $ac_word... " >&6; }
7739if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
9a819804
AO
7741else
7742 if test -n "$DLLTOOL"; then
7743 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7744else
7745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746for as_dir in $PATH
7747do
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7752 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7754 break 2
7755 fi
7756done
81ecdfbb
RW
7757 done
7758IFS=$as_save_IFS
9a819804
AO
7759
7760fi
7761fi
7762DLLTOOL=$ac_cv_prog_DLLTOOL
7763if test -n "$DLLTOOL"; then
81ecdfbb
RW
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7765$as_echo "$DLLTOOL" >&6; }
9a819804 7766else
81ecdfbb
RW
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768$as_echo "no" >&6; }
9a819804
AO
7769fi
7770
81ecdfbb 7771
9a819804
AO
7772 done
7773fi
7774
7775for ncn_progname in dlltool; do
05cbd757
PB
7776 if test -n "$ncn_tool_prefix"; then
7777 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7778set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780$as_echo_n "checking for $ac_word... " >&6; }
7781if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7782 $as_echo_n "(cached) " >&6
859789af
AC
7783else
7784 if test -n "$DLLTOOL"; then
7785 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7786else
c6b750e1
DJ
7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7794 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7796 break 2
7797 fi
7798done
81ecdfbb
RW
7799 done
7800IFS=$as_save_IFS
c6b750e1 7801
859789af
AC
7802fi
7803fi
c6b750e1 7804DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 7805if test -n "$DLLTOOL"; then
81ecdfbb
RW
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7807$as_echo "$DLLTOOL" >&6; }
859789af 7808else
81ecdfbb
RW
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810$as_echo "no" >&6; }
859789af
AC
7811fi
7812
81ecdfbb 7813
05cbd757
PB
7814 fi
7815 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7817set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819$as_echo_n "checking for $ac_word... " >&6; }
7820if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
859789af 7822else
05cbd757
PB
7823 if test -n "$DLLTOOL"; then
7824 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 7825else
c6b750e1
DJ
7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7833 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7835 break 2
7836 fi
7837done
81ecdfbb
RW
7838 done
7839IFS=$as_save_IFS
c6b750e1 7840
859789af
AC
7841fi
7842fi
c6b750e1 7843DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 7844if test -n "$DLLTOOL"; then
81ecdfbb
RW
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7846$as_echo "$DLLTOOL" >&6; }
859789af 7847else
81ecdfbb
RW
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }
859789af 7850fi
c6b750e1 7851
81ecdfbb 7852
05cbd757
PB
7853 fi
7854 test -n "$ac_cv_prog_DLLTOOL" && break
7855done
7856
7857if test -z "$ac_cv_prog_DLLTOOL" ; then
7858 set dummy dlltool
7859 if test $build = $host ; then
7860 DLLTOOL="$2"
859789af 7861 else
05cbd757 7862 DLLTOOL="${ncn_tool_prefix}$2"
859789af 7863 fi
859789af
AC
7864fi
7865
9a819804
AO
7866
7867
7868if test -n "$LD"; then
7869 ac_cv_prog_LD=$LD
7870elif test -n "$ac_cv_prog_LD"; then
7871 LD=$ac_cv_prog_LD
7872fi
7873
7874if test -n "$ac_cv_prog_LD"; then
7875 for ncn_progname in ld; do
7876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7877set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879$as_echo_n "checking for $ac_word... " >&6; }
7880if test "${ac_cv_prog_LD+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
9a819804
AO
7882else
7883 if test -n "$LD"; then
7884 ac_cv_prog_LD="$LD" # Let the user override the test.
7885else
7886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887for as_dir in $PATH
7888do
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7893 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7895 break 2
7896 fi
7897done
81ecdfbb
RW
7898 done
7899IFS=$as_save_IFS
9a819804
AO
7900
7901fi
7902fi
7903LD=$ac_cv_prog_LD
7904if test -n "$LD"; then
81ecdfbb
RW
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7906$as_echo "$LD" >&6; }
9a819804 7907else
81ecdfbb
RW
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909$as_echo "no" >&6; }
9a819804
AO
7910fi
7911
81ecdfbb 7912
9a819804
AO
7913 done
7914fi
7915
7916for ncn_progname in ld; do
05cbd757
PB
7917 if test -n "$ncn_tool_prefix"; then
7918 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7919set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921$as_echo_n "checking for $ac_word... " >&6; }
7922if test "${ac_cv_prog_LD+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
859789af
AC
7924else
7925 if test -n "$LD"; then
7926 ac_cv_prog_LD="$LD" # Let the user override the test.
7927else
c6b750e1
DJ
7928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929for as_dir in $PATH
7930do
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7935 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7937 break 2
7938 fi
7939done
81ecdfbb
RW
7940 done
7941IFS=$as_save_IFS
c6b750e1 7942
859789af
AC
7943fi
7944fi
c6b750e1 7945LD=$ac_cv_prog_LD
859789af 7946if test -n "$LD"; then
81ecdfbb
RW
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7948$as_echo "$LD" >&6; }
859789af 7949else
81ecdfbb
RW
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951$as_echo "no" >&6; }
859789af
AC
7952fi
7953
81ecdfbb 7954
05cbd757
PB
7955 fi
7956 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7958set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960$as_echo_n "checking for $ac_word... " >&6; }
7961if test "${ac_cv_prog_LD+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
859789af 7963else
05cbd757
PB
7964 if test -n "$LD"; then
7965 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 7966else
c6b750e1
DJ
7967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968for as_dir in $PATH
7969do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7974 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7976 break 2
7977 fi
7978done
81ecdfbb
RW
7979 done
7980IFS=$as_save_IFS
c6b750e1 7981
859789af
AC
7982fi
7983fi
c6b750e1 7984LD=$ac_cv_prog_LD
05cbd757 7985if test -n "$LD"; then
81ecdfbb
RW
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7987$as_echo "$LD" >&6; }
859789af 7988else
81ecdfbb
RW
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990$as_echo "no" >&6; }
859789af 7991fi
c6b750e1 7992
81ecdfbb 7993
05cbd757
PB
7994 fi
7995 test -n "$ac_cv_prog_LD" && break
7996done
7997
7998if test -z "$ac_cv_prog_LD" ; then
7999 set dummy ld
8000 if test $build = $host ; then
8001 LD="$2"
859789af 8002 else
05cbd757 8003 LD="${ncn_tool_prefix}$2"
859789af 8004 fi
859789af
AC
8005fi
8006
9a819804
AO
8007
8008
8009if test -n "$LIPO"; then
8010 ac_cv_prog_LIPO=$LIPO
8011elif test -n "$ac_cv_prog_LIPO"; then
8012 LIPO=$ac_cv_prog_LIPO
8013fi
8014
8015if test -n "$ac_cv_prog_LIPO"; then
8016 for ncn_progname in lipo; do
8017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8018set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020$as_echo_n "checking for $ac_word... " >&6; }
8021if test "${ac_cv_prog_LIPO+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
9a819804
AO
8023else
8024 if test -n "$LIPO"; then
8025 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8026else
8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8034 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8036 break 2
8037 fi
8038done
81ecdfbb
RW
8039 done
8040IFS=$as_save_IFS
9a819804
AO
8041
8042fi
8043fi
8044LIPO=$ac_cv_prog_LIPO
8045if test -n "$LIPO"; then
81ecdfbb
RW
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8047$as_echo "$LIPO" >&6; }
9a819804 8048else
81ecdfbb
RW
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050$as_echo "no" >&6; }
9a819804
AO
8051fi
8052
81ecdfbb 8053
9a819804
AO
8054 done
8055fi
8056
8057for ncn_progname in lipo; do
be01d343
PB
8058 if test -n "$ncn_tool_prefix"; then
8059 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8060set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062$as_echo_n "checking for $ac_word... " >&6; }
8063if test "${ac_cv_prog_LIPO+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
be01d343
PB
8065else
8066 if test -n "$LIPO"; then
8067 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8068else
c6b750e1
DJ
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8076 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8078 break 2
8079 fi
8080done
81ecdfbb
RW
8081 done
8082IFS=$as_save_IFS
c6b750e1 8083
be01d343
PB
8084fi
8085fi
c6b750e1 8086LIPO=$ac_cv_prog_LIPO
be01d343 8087if test -n "$LIPO"; then
81ecdfbb
RW
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8089$as_echo "$LIPO" >&6; }
be01d343 8090else
81ecdfbb
RW
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092$as_echo "no" >&6; }
be01d343
PB
8093fi
8094
81ecdfbb 8095
be01d343
PB
8096 fi
8097 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8099set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101$as_echo_n "checking for $ac_word... " >&6; }
8102if test "${ac_cv_prog_LIPO+set}" = set; then :
8103 $as_echo_n "(cached) " >&6
be01d343
PB
8104else
8105 if test -n "$LIPO"; then
8106 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8107else
c6b750e1
DJ
8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8115 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8117 break 2
8118 fi
8119done
81ecdfbb
RW
8120 done
8121IFS=$as_save_IFS
c6b750e1 8122
be01d343
PB
8123fi
8124fi
c6b750e1 8125LIPO=$ac_cv_prog_LIPO
be01d343 8126if test -n "$LIPO"; then
81ecdfbb
RW
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8128$as_echo "$LIPO" >&6; }
be01d343 8129else
81ecdfbb
RW
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131$as_echo "no" >&6; }
be01d343 8132fi
c6b750e1 8133
81ecdfbb 8134
be01d343
PB
8135 fi
8136 test -n "$ac_cv_prog_LIPO" && break
8137done
8138
8139if test -z "$ac_cv_prog_LIPO" ; then
8140 set dummy lipo
8141 if test $build = $host ; then
8142 LIPO="$2"
8143 else
8144 LIPO="${ncn_tool_prefix}$2"
8145 fi
8146fi
8147
9a819804
AO
8148
8149
8150if test -n "$NM"; then
8151 ac_cv_prog_NM=$NM
8152elif test -n "$ac_cv_prog_NM"; then
8153 NM=$ac_cv_prog_NM
8154fi
8155
8156if test -n "$ac_cv_prog_NM"; then
8157 for ncn_progname in nm; do
8158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8159set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161$as_echo_n "checking for $ac_word... " >&6; }
8162if test "${ac_cv_prog_NM+set}" = set; then :
8163 $as_echo_n "(cached) " >&6
859789af
AC
8164else
8165 if test -n "$NM"; then
8166 ac_cv_prog_NM="$NM" # Let the user override the test.
8167else
c6b750e1
DJ
8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8175 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8177 break 2
8178 fi
8179done
81ecdfbb
RW
8180 done
8181IFS=$as_save_IFS
c6b750e1 8182
859789af
AC
8183fi
8184fi
c6b750e1 8185NM=$ac_cv_prog_NM
859789af 8186if test -n "$NM"; then
81ecdfbb
RW
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8188$as_echo "$NM" >&6; }
859789af 8189else
81ecdfbb
RW
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191$as_echo "no" >&6; }
859789af
AC
8192fi
8193
81ecdfbb 8194
9a819804
AO
8195 done
8196fi
8197
8198for ncn_progname in nm; do
8199 if test -n "$ncn_tool_prefix"; then
8200 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8201set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203$as_echo_n "checking for $ac_word... " >&6; }
8204if test "${ac_cv_prog_NM+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
859789af 8206else
05cbd757
PB
8207 if test -n "$NM"; then
8208 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8209else
c6b750e1
DJ
8210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211for as_dir in $PATH
8212do
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8217 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8219 break 2
8220 fi
8221done
81ecdfbb
RW
8222 done
8223IFS=$as_save_IFS
c6b750e1 8224
859789af
AC
8225fi
8226fi
c6b750e1 8227NM=$ac_cv_prog_NM
05cbd757 8228if test -n "$NM"; then
81ecdfbb
RW
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8230$as_echo "$NM" >&6; }
859789af 8231else
81ecdfbb
RW
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233$as_echo "no" >&6; }
859789af 8234fi
c6b750e1 8235
81ecdfbb 8236
05cbd757 8237 fi
9a819804
AO
8238 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8240set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242$as_echo_n "checking for $ac_word... " >&6; }
8243if test "${ac_cv_prog_NM+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
9a819804
AO
8245else
8246 if test -n "$NM"; then
8247 ac_cv_prog_NM="$NM" # Let the user override the test.
8248else
8249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250for as_dir in $PATH
8251do
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8256 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8258 break 2
8259 fi
8260done
81ecdfbb
RW
8261 done
8262IFS=$as_save_IFS
9a819804
AO
8263
8264fi
8265fi
8266NM=$ac_cv_prog_NM
8267if test -n "$NM"; then
81ecdfbb
RW
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8269$as_echo "$NM" >&6; }
9a819804 8270else
81ecdfbb
RW
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272$as_echo "no" >&6; }
9a819804
AO
8273fi
8274
81ecdfbb 8275
9a819804
AO
8276 fi
8277 test -n "$ac_cv_prog_NM" && break
8278done
8279
8280if test -z "$ac_cv_prog_NM" ; then
8281 set dummy nm
8282 if test $build = $host ; then
8283 NM="$2"
8284 else
8285 NM="${ncn_tool_prefix}$2"
8286 fi
8287fi
8288
8289
8290
8291if test -n "$RANLIB"; then
8292 ac_cv_prog_RANLIB=$RANLIB
8293elif test -n "$ac_cv_prog_RANLIB"; then
8294 RANLIB=$ac_cv_prog_RANLIB
8295fi
8296
8297if test -n "$ac_cv_prog_RANLIB"; then
8298 for ncn_progname in ranlib; do
8299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8300set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302$as_echo_n "checking for $ac_word... " >&6; }
8303if test "${ac_cv_prog_RANLIB+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
9a819804
AO
8305else
8306 if test -n "$RANLIB"; then
8307 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8308else
8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8316 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8318 break 2
8319 fi
8320done
81ecdfbb
RW
8321 done
8322IFS=$as_save_IFS
9a819804
AO
8323
8324fi
8325fi
8326RANLIB=$ac_cv_prog_RANLIB
8327if test -n "$RANLIB"; then
81ecdfbb
RW
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8329$as_echo "$RANLIB" >&6; }
9a819804 8330else
81ecdfbb
RW
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332$as_echo "no" >&6; }
9a819804
AO
8333fi
8334
81ecdfbb 8335
9a819804
AO
8336 done
8337fi
859789af 8338
9a819804 8339for ncn_progname in ranlib; do
05cbd757
PB
8340 if test -n "$ncn_tool_prefix"; then
8341 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8342set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344$as_echo_n "checking for $ac_word... " >&6; }
8345if test "${ac_cv_prog_RANLIB+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
859789af
AC
8347else
8348 if test -n "$RANLIB"; then
8349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8350else
c6b750e1
DJ
8351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352for as_dir in $PATH
8353do
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8358 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8360 break 2
8361 fi
8362done
81ecdfbb
RW
8363 done
8364IFS=$as_save_IFS
c6b750e1 8365
859789af
AC
8366fi
8367fi
c6b750e1 8368RANLIB=$ac_cv_prog_RANLIB
859789af 8369if test -n "$RANLIB"; then
81ecdfbb
RW
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8371$as_echo "$RANLIB" >&6; }
859789af 8372else
81ecdfbb
RW
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374$as_echo "no" >&6; }
859789af
AC
8375fi
8376
81ecdfbb 8377
05cbd757
PB
8378 fi
8379 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8381set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383$as_echo_n "checking for $ac_word... " >&6; }
8384if test "${ac_cv_prog_RANLIB+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
859789af 8386else
05cbd757
PB
8387 if test -n "$RANLIB"; then
8388 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8389else
c6b750e1
DJ
8390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391for as_dir in $PATH
8392do
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8397 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8399 break 2
8400 fi
8401done
81ecdfbb
RW
8402 done
8403IFS=$as_save_IFS
c6b750e1 8404
859789af
AC
8405fi
8406fi
c6b750e1 8407RANLIB=$ac_cv_prog_RANLIB
05cbd757 8408if test -n "$RANLIB"; then
81ecdfbb
RW
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8410$as_echo "$RANLIB" >&6; }
859789af 8411else
81ecdfbb
RW
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413$as_echo "no" >&6; }
859789af 8414fi
c6b750e1 8415
81ecdfbb 8416
859789af 8417 fi
05cbd757
PB
8418 test -n "$ac_cv_prog_RANLIB" && break
8419done
8420
8421if test -z "$ac_cv_prog_RANLIB" ; then
8422 RANLIB=":"
859789af
AC
8423fi
8424
9a819804
AO
8425
8426
8427if test -n "$STRIP"; then
8428 ac_cv_prog_STRIP=$STRIP
8429elif test -n "$ac_cv_prog_STRIP"; then
8430 STRIP=$ac_cv_prog_STRIP
8431fi
8432
8433if test -n "$ac_cv_prog_STRIP"; then
8434 for ncn_progname in strip; do
8435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8436set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438$as_echo_n "checking for $ac_word... " >&6; }
8439if test "${ac_cv_prog_STRIP+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
9a819804
AO
8441else
8442 if test -n "$STRIP"; then
8443 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8444else
8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446for as_dir in $PATH
8447do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8452 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8454 break 2
8455 fi
8456done
81ecdfbb
RW
8457 done
8458IFS=$as_save_IFS
9a819804
AO
8459
8460fi
8461fi
8462STRIP=$ac_cv_prog_STRIP
8463if test -n "$STRIP"; then
81ecdfbb
RW
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8465$as_echo "$STRIP" >&6; }
9a819804 8466else
81ecdfbb
RW
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }
9a819804
AO
8469fi
8470
81ecdfbb 8471
9a819804
AO
8472 done
8473fi
8474
8475for ncn_progname in strip; do
be01d343
PB
8476 if test -n "$ncn_tool_prefix"; then
8477 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8478set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480$as_echo_n "checking for $ac_word... " >&6; }
8481if test "${ac_cv_prog_STRIP+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
be01d343
PB
8483else
8484 if test -n "$STRIP"; then
8485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8486else
c6b750e1
DJ
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8494 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8496 break 2
8497 fi
8498done
81ecdfbb
RW
8499 done
8500IFS=$as_save_IFS
c6b750e1 8501
be01d343
PB
8502fi
8503fi
c6b750e1 8504STRIP=$ac_cv_prog_STRIP
be01d343 8505if test -n "$STRIP"; then
81ecdfbb
RW
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8507$as_echo "$STRIP" >&6; }
be01d343 8508else
81ecdfbb
RW
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510$as_echo "no" >&6; }
be01d343
PB
8511fi
8512
81ecdfbb 8513
be01d343
PB
8514 fi
8515 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8517set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519$as_echo_n "checking for $ac_word... " >&6; }
8520if test "${ac_cv_prog_STRIP+set}" = set; then :
8521 $as_echo_n "(cached) " >&6
be01d343
PB
8522else
8523 if test -n "$STRIP"; then
8524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8525else
c6b750e1
DJ
8526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527for as_dir in $PATH
8528do
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8533 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8535 break 2
8536 fi
8537done
81ecdfbb
RW
8538 done
8539IFS=$as_save_IFS
c6b750e1 8540
be01d343
PB
8541fi
8542fi
c6b750e1 8543STRIP=$ac_cv_prog_STRIP
be01d343 8544if test -n "$STRIP"; then
81ecdfbb
RW
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8546$as_echo "$STRIP" >&6; }
be01d343 8547else
81ecdfbb
RW
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549$as_echo "no" >&6; }
be01d343 8550fi
c6b750e1 8551
81ecdfbb 8552
be01d343
PB
8553 fi
8554 test -n "$ac_cv_prog_STRIP" && break
8555done
8556
8557if test -z "$ac_cv_prog_STRIP" ; then
8558 STRIP=":"
8559fi
8560
9a819804
AO
8561
8562
8563if test -n "$WINDRES"; then
8564 ac_cv_prog_WINDRES=$WINDRES
8565elif test -n "$ac_cv_prog_WINDRES"; then
8566 WINDRES=$ac_cv_prog_WINDRES
8567fi
8568
8569if test -n "$ac_cv_prog_WINDRES"; then
8570 for ncn_progname in windres; do
8571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8572set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574$as_echo_n "checking for $ac_word... " >&6; }
8575if test "${ac_cv_prog_WINDRES+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
9a819804
AO
8577else
8578 if test -n "$WINDRES"; then
8579 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8580else
8581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582for as_dir in $PATH
8583do
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8588 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8590 break 2
8591 fi
8592done
81ecdfbb
RW
8593 done
8594IFS=$as_save_IFS
9a819804
AO
8595
8596fi
8597fi
8598WINDRES=$ac_cv_prog_WINDRES
8599if test -n "$WINDRES"; then
81ecdfbb
RW
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8601$as_echo "$WINDRES" >&6; }
9a819804 8602else
81ecdfbb
RW
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604$as_echo "no" >&6; }
9a819804
AO
8605fi
8606
81ecdfbb 8607
9a819804
AO
8608 done
8609fi
8610
8611for ncn_progname in windres; do
05cbd757
PB
8612 if test -n "$ncn_tool_prefix"; then
8613 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8614set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616$as_echo_n "checking for $ac_word... " >&6; }
8617if test "${ac_cv_prog_WINDRES+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
859789af
AC
8619else
8620 if test -n "$WINDRES"; then
8621 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8622else
c6b750e1
DJ
8623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624for as_dir in $PATH
8625do
8626 IFS=$as_save_IFS
8627 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8628 for ac_exec_ext in '' $ac_executable_extensions; do
8629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8630 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8632 break 2
8633 fi
8634done
81ecdfbb
RW
8635 done
8636IFS=$as_save_IFS
c6b750e1 8637
859789af
AC
8638fi
8639fi
c6b750e1 8640WINDRES=$ac_cv_prog_WINDRES
859789af 8641if test -n "$WINDRES"; then
81ecdfbb
RW
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8643$as_echo "$WINDRES" >&6; }
859789af 8644else
81ecdfbb
RW
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646$as_echo "no" >&6; }
859789af
AC
8647fi
8648
81ecdfbb 8649
05cbd757
PB
8650 fi
8651 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8653set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655$as_echo_n "checking for $ac_word... " >&6; }
8656if test "${ac_cv_prog_WINDRES+set}" = set; then :
8657 $as_echo_n "(cached) " >&6
859789af 8658else
05cbd757
PB
8659 if test -n "$WINDRES"; then
8660 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 8661else
c6b750e1
DJ
8662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663for as_dir in $PATH
8664do
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8669 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8671 break 2
8672 fi
8673done
81ecdfbb
RW
8674 done
8675IFS=$as_save_IFS
c6b750e1 8676
859789af
AC
8677fi
8678fi
c6b750e1 8679WINDRES=$ac_cv_prog_WINDRES
05cbd757 8680if test -n "$WINDRES"; then
81ecdfbb
RW
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8682$as_echo "$WINDRES" >&6; }
859789af 8683else
81ecdfbb
RW
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685$as_echo "no" >&6; }
859789af 8686fi
c6b750e1 8687
81ecdfbb 8688
05cbd757
PB
8689 fi
8690 test -n "$ac_cv_prog_WINDRES" && break
8691done
8692
8693if test -z "$ac_cv_prog_WINDRES" ; then
8694 set dummy windres
8695 if test $build = $host ; then
8696 WINDRES="$2"
859789af 8697 else
05cbd757 8698 WINDRES="${ncn_tool_prefix}$2"
859789af 8699 fi
859789af
AC
8700fi
8701
9a819804
AO
8702
8703
0c24b341
NC
8704if test -n "$WINDMC"; then
8705 ac_cv_prog_WINDMC=$WINDMC
8706elif test -n "$ac_cv_prog_WINDMC"; then
8707 WINDMC=$ac_cv_prog_WINDMC
8708fi
8709
8710if test -n "$ac_cv_prog_WINDMC"; then
8711 for ncn_progname in windmc; do
8712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8713set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715$as_echo_n "checking for $ac_word... " >&6; }
8716if test "${ac_cv_prog_WINDMC+set}" = set; then :
8717 $as_echo_n "(cached) " >&6
0c24b341
NC
8718else
8719 if test -n "$WINDMC"; then
8720 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8721else
8722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723for as_dir in $PATH
8724do
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8729 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8731 break 2
8732 fi
8733done
81ecdfbb
RW
8734 done
8735IFS=$as_save_IFS
0c24b341
NC
8736
8737fi
8738fi
8739WINDMC=$ac_cv_prog_WINDMC
8740if test -n "$WINDMC"; then
81ecdfbb
RW
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8742$as_echo "$WINDMC" >&6; }
0c24b341 8743else
81ecdfbb
RW
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745$as_echo "no" >&6; }
0c24b341
NC
8746fi
8747
81ecdfbb 8748
0c24b341
NC
8749 done
8750fi
8751
8752for ncn_progname in windmc; do
8753 if test -n "$ncn_tool_prefix"; then
8754 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8755set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757$as_echo_n "checking for $ac_word... " >&6; }
8758if test "${ac_cv_prog_WINDMC+set}" = set; then :
8759 $as_echo_n "(cached) " >&6
0c24b341
NC
8760else
8761 if test -n "$WINDMC"; then
8762 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8763else
8764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765for as_dir in $PATH
8766do
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8771 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8773 break 2
8774 fi
8775done
81ecdfbb
RW
8776 done
8777IFS=$as_save_IFS
0c24b341
NC
8778
8779fi
8780fi
8781WINDMC=$ac_cv_prog_WINDMC
8782if test -n "$WINDMC"; then
81ecdfbb
RW
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8784$as_echo "$WINDMC" >&6; }
0c24b341 8785else
81ecdfbb
RW
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787$as_echo "no" >&6; }
0c24b341
NC
8788fi
8789
81ecdfbb 8790
0c24b341
NC
8791 fi
8792 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8794set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796$as_echo_n "checking for $ac_word... " >&6; }
8797if test "${ac_cv_prog_WINDMC+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
0c24b341
NC
8799else
8800 if test -n "$WINDMC"; then
8801 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8802else
8803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804for as_dir in $PATH
8805do
8806 IFS=$as_save_IFS
8807 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8810 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8812 break 2
8813 fi
8814done
81ecdfbb
RW
8815 done
8816IFS=$as_save_IFS
0c24b341
NC
8817
8818fi
8819fi
8820WINDMC=$ac_cv_prog_WINDMC
8821if test -n "$WINDMC"; then
81ecdfbb
RW
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8823$as_echo "$WINDMC" >&6; }
0c24b341 8824else
81ecdfbb
RW
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826$as_echo "no" >&6; }
0c24b341
NC
8827fi
8828
81ecdfbb 8829
0c24b341
NC
8830 fi
8831 test -n "$ac_cv_prog_WINDMC" && break
8832done
8833
8834if test -z "$ac_cv_prog_WINDMC" ; then
8835 set dummy windmc
8836 if test $build = $host ; then
8837 WINDMC="$2"
8838 else
8839 WINDMC="${ncn_tool_prefix}$2"
8840 fi
8841fi
8842
8843
8844
9a819804
AO
8845if test -n "$OBJCOPY"; then
8846 ac_cv_prog_OBJCOPY=$OBJCOPY
8847elif test -n "$ac_cv_prog_OBJCOPY"; then
8848 OBJCOPY=$ac_cv_prog_OBJCOPY
8849fi
8850
8851if test -n "$ac_cv_prog_OBJCOPY"; then
8852 for ncn_progname in objcopy; do
8853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8854set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856$as_echo_n "checking for $ac_word... " >&6; }
8857if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
9a819804
AO
8859else
8860 if test -n "$OBJCOPY"; then
8861 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8862else
8863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864for as_dir in $PATH
8865do
8866 IFS=$as_save_IFS
8867 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8870 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 8871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8872 break 2
8873 fi
8874done
81ecdfbb
RW
8875 done
8876IFS=$as_save_IFS
9a819804
AO
8877
8878fi
8879fi
8880OBJCOPY=$ac_cv_prog_OBJCOPY
8881if test -n "$OBJCOPY"; then
81ecdfbb
RW
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8883$as_echo "$OBJCOPY" >&6; }
9a819804 8884else
81ecdfbb
RW
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886$as_echo "no" >&6; }
9a819804
AO
8887fi
8888
81ecdfbb 8889
9a819804
AO
8890 done
8891fi
8892
8893for ncn_progname in objcopy; do
05cbd757
PB
8894 if test -n "$ncn_tool_prefix"; then
8895 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8896set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898$as_echo_n "checking for $ac_word... " >&6; }
8899if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
859789af
AC
8901else
8902 if test -n "$OBJCOPY"; then
8903 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8904else
c6b750e1
DJ
8905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906for as_dir in $PATH
8907do
8908 IFS=$as_save_IFS
8909 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8910 for ac_exec_ext in '' $ac_executable_extensions; do
8911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8912 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8914 break 2
8915 fi
8916done
81ecdfbb
RW
8917 done
8918IFS=$as_save_IFS
c6b750e1 8919
859789af
AC
8920fi
8921fi
c6b750e1 8922OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 8923if test -n "$OBJCOPY"; then
81ecdfbb
RW
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8925$as_echo "$OBJCOPY" >&6; }
859789af 8926else
81ecdfbb
RW
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928$as_echo "no" >&6; }
859789af
AC
8929fi
8930
81ecdfbb 8931
05cbd757
PB
8932 fi
8933 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8935set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937$as_echo_n "checking for $ac_word... " >&6; }
8938if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8939 $as_echo_n "(cached) " >&6
859789af 8940else
05cbd757
PB
8941 if test -n "$OBJCOPY"; then
8942 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 8943else
c6b750e1
DJ
8944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945for as_dir in $PATH
8946do
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8951 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8953 break 2
8954 fi
8955done
81ecdfbb
RW
8956 done
8957IFS=$as_save_IFS
c6b750e1 8958
859789af
AC
8959fi
8960fi
c6b750e1 8961OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 8962if test -n "$OBJCOPY"; then
81ecdfbb
RW
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8964$as_echo "$OBJCOPY" >&6; }
859789af 8965else
81ecdfbb
RW
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967$as_echo "no" >&6; }
859789af 8968fi
c6b750e1 8969
81ecdfbb 8970
05cbd757
PB
8971 fi
8972 test -n "$ac_cv_prog_OBJCOPY" && break
8973done
8974
8975if test -z "$ac_cv_prog_OBJCOPY" ; then
8976 set dummy objcopy
8977 if test $build = $host ; then
8978 OBJCOPY="$2"
859789af 8979 else
05cbd757 8980 OBJCOPY="${ncn_tool_prefix}$2"
859789af 8981 fi
859789af
AC
8982fi
8983
9a819804
AO
8984
8985
8986if test -n "$OBJDUMP"; then
8987 ac_cv_prog_OBJDUMP=$OBJDUMP
8988elif test -n "$ac_cv_prog_OBJDUMP"; then
8989 OBJDUMP=$ac_cv_prog_OBJDUMP
8990fi
8991
8992if test -n "$ac_cv_prog_OBJDUMP"; then
8993 for ncn_progname in objdump; do
8994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8995set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997$as_echo_n "checking for $ac_word... " >&6; }
8998if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9a819804
AO
9000else
9001 if test -n "$OBJDUMP"; then
9002 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9003else
9004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005for as_dir in $PATH
9006do
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9011 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9013 break 2
9014 fi
9015done
81ecdfbb
RW
9016 done
9017IFS=$as_save_IFS
9a819804
AO
9018
9019fi
9020fi
9021OBJDUMP=$ac_cv_prog_OBJDUMP
9022if test -n "$OBJDUMP"; then
81ecdfbb
RW
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9024$as_echo "$OBJDUMP" >&6; }
9a819804 9025else
81ecdfbb
RW
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027$as_echo "no" >&6; }
9a819804
AO
9028fi
9029
81ecdfbb 9030
9a819804
AO
9031 done
9032fi
9033
9034for ncn_progname in objdump; do
05cbd757
PB
9035 if test -n "$ncn_tool_prefix"; then
9036 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9037set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039$as_echo_n "checking for $ac_word... " >&6; }
9040if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
859789af
AC
9042else
9043 if test -n "$OBJDUMP"; then
9044 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9045else
c6b750e1
DJ
9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047for as_dir in $PATH
9048do
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9053 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9055 break 2
9056 fi
9057done
81ecdfbb
RW
9058 done
9059IFS=$as_save_IFS
c6b750e1 9060
859789af
AC
9061fi
9062fi
c6b750e1 9063OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9064if test -n "$OBJDUMP"; then
81ecdfbb
RW
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9066$as_echo "$OBJDUMP" >&6; }
859789af 9067else
81ecdfbb
RW
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069$as_echo "no" >&6; }
859789af
AC
9070fi
9071
81ecdfbb 9072
05cbd757
PB
9073 fi
9074 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9076set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078$as_echo_n "checking for $ac_word... " >&6; }
9079if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
859789af 9081else
05cbd757
PB
9082 if test -n "$OBJDUMP"; then
9083 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9084else
c6b750e1
DJ
9085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9092 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9094 break 2
9095 fi
9096done
81ecdfbb
RW
9097 done
9098IFS=$as_save_IFS
c6b750e1 9099
859789af
AC
9100fi
9101fi
c6b750e1 9102OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9103if test -n "$OBJDUMP"; then
81ecdfbb
RW
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9105$as_echo "$OBJDUMP" >&6; }
859789af 9106else
81ecdfbb
RW
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108$as_echo "no" >&6; }
859789af 9109fi
c6b750e1 9110
81ecdfbb 9111
05cbd757
PB
9112 fi
9113 test -n "$ac_cv_prog_OBJDUMP" && break
9114done
9115
9116if test -z "$ac_cv_prog_OBJDUMP" ; then
9117 set dummy objdump
9118 if test $build = $host ; then
9119 OBJDUMP="$2"
859789af 9120 else
05cbd757 9121 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9122 fi
859789af
AC
9123fi
9124
a0da8069
NN
9125
9126
9127
9128
9129
be01d343 9130# Target tools.
c6b750e1 9131
81ecdfbb
RW
9132# Check whether --with-build-time-tools was given.
9133if test "${with_build_time_tools+set}" = set; then :
9134 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9135 x/*) ;;
9136 *)
9137 with_build_time_tools=
81ecdfbb
RW
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9139$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9140 ;;
9141 esac
859789af 9142else
2429c060 9143 with_build_time_tools=
81ecdfbb
RW
9144fi
9145
859789af 9146
9a819804
AO
9147
9148
9149if test -n "$CC_FOR_TARGET"; then
9150 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9151elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9152 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9153fi
9154
9155if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9156 for ncn_progname in cc gcc; do
9157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9158set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9160$as_echo_n "checking for $ac_word... " >&6; }
9161if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9a819804
AO
9163else
9164 if test -n "$CC_FOR_TARGET"; then
9165 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9166else
9167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168for as_dir in $PATH
9169do
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9174 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9176 break 2
9177 fi
9178done
81ecdfbb
RW
9179 done
9180IFS=$as_save_IFS
9a819804
AO
9181
9182fi
9183fi
9184CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9185if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9187$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9188else
81ecdfbb
RW
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9190$as_echo "no" >&6; }
9a819804
AO
9191fi
9192
81ecdfbb 9193
9a819804
AO
9194 done
9195fi
9196
9197if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9198 for ncn_progname in cc gcc; do
81ecdfbb
RW
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9200$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9201 if test -x $with_build_time_tools/${ncn_progname}; then
9202 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9204$as_echo "yes" >&6; }
cac3d6c4 9205 break
2429c060 9206 else
81ecdfbb
RW
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9208$as_echo "no" >&6; }
cac3d6c4
CM
9209 fi
9210 done
55db4b87
PB
9211fi
9212
2429c060
PB
9213if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9214 for ncn_progname in cc gcc; do
9215 if test -n "$ncn_target_tool_prefix"; then
9216 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9217set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219$as_echo_n "checking for $ac_word... " >&6; }
9220if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
55db4b87
PB
9222else
9223 if test -n "$CC_FOR_TARGET"; then
9224 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9225else
c6b750e1
DJ
9226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227for as_dir in $PATH
9228do
9229 IFS=$as_save_IFS
9230 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9231 for ac_exec_ext in '' $ac_executable_extensions; do
9232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9233 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9235 break 2
9236 fi
9237done
81ecdfbb
RW
9238 done
9239IFS=$as_save_IFS
c6b750e1 9240
55db4b87
PB
9241fi
9242fi
c6b750e1 9243CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9244if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9246$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9247else
81ecdfbb
RW
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249$as_echo "no" >&6; }
55db4b87
PB
9250fi
9251
81ecdfbb 9252
2429c060
PB
9253 fi
9254 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9256set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9258$as_echo_n "checking for $ac_word... " >&6; }
9259if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
55db4b87 9261else
05cbd757
PB
9262 if test -n "$CC_FOR_TARGET"; then
9263 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9264else
c6b750e1
DJ
9265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266for as_dir in $PATH
9267do
9268 IFS=$as_save_IFS
9269 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9272 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9274 break 2
9275 fi
9276done
81ecdfbb
RW
9277 done
9278IFS=$as_save_IFS
c6b750e1 9279
55db4b87
PB
9280fi
9281fi
c6b750e1 9282CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9283if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9285$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9286else
81ecdfbb
RW
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288$as_echo "no" >&6; }
55db4b87 9289fi
c6b750e1 9290
81ecdfbb 9291
2429c060
PB
9292 fi
9293 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9294 done
9295fi
c6b750e1 9296
05cbd757
PB
9297if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9298 set dummy cc gcc
9299 if test $build = $target ; then
9300 CC_FOR_TARGET="$2"
55db4b87 9301 else
05cbd757 9302 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9303 fi
d3f5afc4
MS
9304else
9305 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9306fi
9307
9a819804
AO
9308
9309
9310if test -n "$CXX_FOR_TARGET"; then
9311 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9312elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9313 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9314fi
9315
9316if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9317 for ncn_progname in c++ g++ cxx gxx; do
9318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9319set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321$as_echo_n "checking for $ac_word... " >&6; }
9322if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
9a819804
AO
9324else
9325 if test -n "$CXX_FOR_TARGET"; then
9326 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9327else
9328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329for as_dir in $PATH
9330do
9331 IFS=$as_save_IFS
9332 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9335 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9337 break 2
9338 fi
9339done
81ecdfbb
RW
9340 done
9341IFS=$as_save_IFS
9a819804
AO
9342
9343fi
9344fi
9345CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9346if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9348$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9349else
81ecdfbb
RW
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351$as_echo "no" >&6; }
9a819804
AO
9352fi
9353
81ecdfbb 9354
9a819804
AO
9355 done
9356fi
9357
9358if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9359 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9361$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9362 if test -x $with_build_time_tools/${ncn_progname}; then
9363 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9365$as_echo "yes" >&6; }
2429c060
PB
9366 break
9367 else
81ecdfbb
RW
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369$as_echo "no" >&6; }
2429c060
PB
9370 fi
9371 done
9372fi
9373
9374if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9375 for ncn_progname in c++ g++ cxx gxx; do
9376 if test -n "$ncn_target_tool_prefix"; then
9377 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9378set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380$as_echo_n "checking for $ac_word... " >&6; }
9381if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
55db4b87
PB
9383else
9384 if test -n "$CXX_FOR_TARGET"; then
9385 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9386else
c6b750e1
DJ
9387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388for as_dir in $PATH
9389do
9390 IFS=$as_save_IFS
9391 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9392 for ac_exec_ext in '' $ac_executable_extensions; do
9393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9394 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9396 break 2
9397 fi
9398done
81ecdfbb
RW
9399 done
9400IFS=$as_save_IFS
c6b750e1 9401
55db4b87
PB
9402fi
9403fi
c6b750e1 9404CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9405if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9407$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9408else
81ecdfbb
RW
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410$as_echo "no" >&6; }
55db4b87
PB
9411fi
9412
81ecdfbb 9413
2429c060
PB
9414 fi
9415 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9417set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419$as_echo_n "checking for $ac_word... " >&6; }
9420if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
55db4b87 9422else
05cbd757
PB
9423 if test -n "$CXX_FOR_TARGET"; then
9424 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9425else
c6b750e1
DJ
9426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427for as_dir in $PATH
9428do
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9433 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9435 break 2
9436 fi
9437done
81ecdfbb
RW
9438 done
9439IFS=$as_save_IFS
c6b750e1 9440
55db4b87
PB
9441fi
9442fi
c6b750e1 9443CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9444if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9446$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9447else
81ecdfbb
RW
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449$as_echo "no" >&6; }
55db4b87 9450fi
c6b750e1 9451
81ecdfbb 9452
2429c060
PB
9453 fi
9454 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9455 done
9456fi
c6b750e1 9457
05cbd757
PB
9458if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9459 set dummy c++ g++ cxx gxx
9460 if test $build = $target ; then
9461 CXX_FOR_TARGET="$2"
55db4b87 9462 else
05cbd757 9463 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9464 fi
d3f5afc4
MS
9465else
9466 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9467fi
9468
9a819804
AO
9469
9470
9471if test -n "$GCC_FOR_TARGET"; then
9472 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9473elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9474 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9475fi
9476
9477if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9478 for ncn_progname in gcc; do
9479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9480set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482$as_echo_n "checking for $ac_word... " >&6; }
9483if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9a819804
AO
9485else
9486 if test -n "$GCC_FOR_TARGET"; then
9487 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9488else
9489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490for as_dir in $PATH
9491do
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9494 for ac_exec_ext in '' $ac_executable_extensions; do
9495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9496 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9498 break 2
9499 fi
9500done
81ecdfbb
RW
9501 done
9502IFS=$as_save_IFS
9a819804
AO
9503
9504fi
9505fi
9506GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9507if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9509$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 9510else
81ecdfbb
RW
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9512$as_echo "no" >&6; }
9a819804
AO
9513fi
9514
81ecdfbb 9515
9a819804
AO
9516 done
9517fi
9518
9519if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9520 for ncn_progname in gcc; do
81ecdfbb
RW
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9522$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9523 if test -x $with_build_time_tools/${ncn_progname}; then
9524 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9526$as_echo "yes" >&6; }
2429c060
PB
9527 break
9528 else
81ecdfbb
RW
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530$as_echo "no" >&6; }
2429c060
PB
9531 fi
9532 done
9533fi
9534
9535if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9536 for ncn_progname in gcc; do
9537 if test -n "$ncn_target_tool_prefix"; then
9538 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9539set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9541$as_echo_n "checking for $ac_word... " >&6; }
9542if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9543 $as_echo_n "(cached) " >&6
859789af 9544else
2429c060
PB
9545 if test -n "$GCC_FOR_TARGET"; then
9546 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9547else
c6b750e1
DJ
9548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549for as_dir in $PATH
9550do
9551 IFS=$as_save_IFS
9552 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9553 for ac_exec_ext in '' $ac_executable_extensions; do
9554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9555 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9557 break 2
9558 fi
9559done
81ecdfbb
RW
9560 done
9561IFS=$as_save_IFS
c6b750e1 9562
55db4b87
PB
9563fi
9564fi
c6b750e1 9565GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 9566if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9568$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 9569else
81ecdfbb
RW
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9571$as_echo "no" >&6; }
55db4b87
PB
9572fi
9573
81ecdfbb 9574
2429c060
PB
9575 fi
9576 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9578set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9580$as_echo_n "checking for $ac_word... " >&6; }
9581if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9582 $as_echo_n "(cached) " >&6
55db4b87 9583else
05cbd757
PB
9584 if test -n "$GCC_FOR_TARGET"; then
9585 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9586else
c6b750e1
DJ
9587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588for as_dir in $PATH
9589do
9590 IFS=$as_save_IFS
9591 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9592 for ac_exec_ext in '' $ac_executable_extensions; do
9593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9594 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9596 break 2
9597 fi
9598done
81ecdfbb
RW
9599 done
9600IFS=$as_save_IFS
c6b750e1 9601
55db4b87
PB
9602fi
9603fi
c6b750e1 9604GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 9605if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9607$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 9608else
81ecdfbb
RW
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610$as_echo "no" >&6; }
55db4b87 9611fi
c6b750e1 9612
81ecdfbb 9613
2429c060
PB
9614 fi
9615 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9616 done
9617fi
c6b750e1 9618
05cbd757
PB
9619if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9620 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
9621else
9622 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
9623fi
9624
9a819804
AO
9625
9626
9627if test -n "$GCJ_FOR_TARGET"; then
9628 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9629elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9630 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9631fi
9632
9633if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9634 for ncn_progname in gcj; do
9635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9636set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638$as_echo_n "checking for $ac_word... " >&6; }
9639if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9640 $as_echo_n "(cached) " >&6
9a819804
AO
9641else
9642 if test -n "$GCJ_FOR_TARGET"; then
9643 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9644else
9645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646for as_dir in $PATH
9647do
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9652 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9654 break 2
9655 fi
9656done
81ecdfbb
RW
9657 done
9658IFS=$as_save_IFS
9a819804
AO
9659
9660fi
9661fi
9662GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9663if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9665$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9666else
81ecdfbb
RW
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668$as_echo "no" >&6; }
9a819804
AO
9669fi
9670
81ecdfbb 9671
9a819804
AO
9672 done
9673fi
9674
9675if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9676 for ncn_progname in gcj; do
81ecdfbb
RW
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9678$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9679 if test -x $with_build_time_tools/${ncn_progname}; then
9680 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9682$as_echo "yes" >&6; }
2429c060
PB
9683 break
9684 else
81ecdfbb
RW
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686$as_echo "no" >&6; }
2429c060
PB
9687 fi
9688 done
9689fi
9690
9691if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9692 for ncn_progname in gcj; do
9693 if test -n "$ncn_target_tool_prefix"; then
9694 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9695set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9697$as_echo_n "checking for $ac_word... " >&6; }
9698if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9699 $as_echo_n "(cached) " >&6
55db4b87
PB
9700else
9701 if test -n "$GCJ_FOR_TARGET"; then
9702 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9703else
c6b750e1
DJ
9704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705for as_dir in $PATH
9706do
9707 IFS=$as_save_IFS
9708 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9709 for ac_exec_ext in '' $ac_executable_extensions; do
9710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9711 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9713 break 2
9714 fi
9715done
81ecdfbb
RW
9716 done
9717IFS=$as_save_IFS
c6b750e1 9718
55db4b87
PB
9719fi
9720fi
9a819804
AO
9721GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9722if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9724$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9725else
81ecdfbb
RW
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9727$as_echo "no" >&6; }
9a819804
AO
9728fi
9729
81ecdfbb 9730
9a819804
AO
9731 fi
9732 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9734set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9736$as_echo_n "checking for $ac_word... " >&6; }
9737if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9738 $as_echo_n "(cached) " >&6
9a819804
AO
9739else
9740 if test -n "$GCJ_FOR_TARGET"; then
9741 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9742else
9743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744for as_dir in $PATH
9745do
9746 IFS=$as_save_IFS
9747 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9748 for ac_exec_ext in '' $ac_executable_extensions; do
9749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9750 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 9751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9752 break 2
9753 fi
9754done
81ecdfbb
RW
9755 done
9756IFS=$as_save_IFS
9a819804
AO
9757
9758fi
9759fi
9760GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9761if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9763$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9764else
81ecdfbb
RW
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766$as_echo "no" >&6; }
9a819804
AO
9767fi
9768
81ecdfbb 9769
9a819804
AO
9770 fi
9771 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9772 done
9773fi
9774
9775if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9776 set dummy gcj
9777 if test $build = $target ; then
9778 GCJ_FOR_TARGET="$2"
9779 else
9780 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9781 fi
d3f5afc4
MS
9782else
9783 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
9784fi
9785
9786
9787
9788if test -n "$GFORTRAN_FOR_TARGET"; then
9789 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9790elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9791 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
9792fi
9793
9a819804
AO
9794if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9795 for ncn_progname in gfortran; do
9796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9797set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9799$as_echo_n "checking for $ac_word... " >&6; }
9800if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
55db4b87 9802else
9a819804
AO
9803 if test -n "$GFORTRAN_FOR_TARGET"; then
9804 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 9805else
c6b750e1
DJ
9806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807for as_dir in $PATH
9808do
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9813 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 9814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9815 break 2
9816 fi
9817done
81ecdfbb
RW
9818 done
9819IFS=$as_save_IFS
c6b750e1 9820
55db4b87
PB
9821fi
9822fi
9a819804
AO
9823GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9824if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9826$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 9827else
81ecdfbb
RW
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829$as_echo "no" >&6; }
55db4b87 9830fi
c6b750e1 9831
81ecdfbb 9832
2429c060
PB
9833 done
9834fi
c6b750e1 9835
9a819804 9836if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9837 for ncn_progname in gfortran; do
81ecdfbb
RW
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9839$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9840 if test -x $with_build_time_tools/${ncn_progname}; then
9841 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9843$as_echo "yes" >&6; }
2429c060
PB
9844 break
9845 else
81ecdfbb
RW
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847$as_echo "no" >&6; }
2429c060
PB
9848 fi
9849 done
9850fi
9851
9852if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9853 for ncn_progname in gfortran; do
9854 if test -n "$ncn_target_tool_prefix"; then
9855 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9856set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858$as_echo_n "checking for $ac_word... " >&6; }
9859if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9860 $as_echo_n "(cached) " >&6
55db4b87
PB
9861else
9862 if test -n "$GFORTRAN_FOR_TARGET"; then
9863 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9864else
c6b750e1
DJ
9865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866for as_dir in $PATH
9867do
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9870 for ac_exec_ext in '' $ac_executable_extensions; do
9871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9872 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9874 break 2
9875 fi
9876done
81ecdfbb
RW
9877 done
9878IFS=$as_save_IFS
c6b750e1 9879
55db4b87
PB
9880fi
9881fi
c6b750e1 9882GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 9883if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9885$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 9886else
81ecdfbb
RW
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888$as_echo "no" >&6; }
55db4b87
PB
9889fi
9890
81ecdfbb 9891
2429c060
PB
9892 fi
9893 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9895set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9897$as_echo_n "checking for $ac_word... " >&6; }
9898if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9899 $as_echo_n "(cached) " >&6
55db4b87 9900else
05cbd757 9901 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9902 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9903else
9904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905for as_dir in $PATH
9906do
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9909 for ac_exec_ext in '' $ac_executable_extensions; do
9910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9911 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 9912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9913 break 2
9914 fi
9915done
81ecdfbb
RW
9916 done
9917IFS=$as_save_IFS
c6b750e1 9918
55db4b87
PB
9919fi
9920fi
c6b750e1 9921GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 9922if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9924$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 9925else
81ecdfbb
RW
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927$as_echo "no" >&6; }
55db4b87 9928fi
c6b750e1 9929
81ecdfbb 9930
2429c060
PB
9931 fi
9932 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9933 done
9934fi
c6b750e1 9935
05cbd757
PB
9936if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9937 set dummy gfortran
9938 if test $build = $target ; then
9939 GFORTRAN_FOR_TARGET="$2"
55db4b87 9940 else
05cbd757 9941 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9942 fi
d3f5afc4
MS
9943else
9944 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
9945fi
9946
2429c060
PB
9947
9948
2429c060
PB
9949cat > conftest.c << \EOF
9950#ifdef __GNUC__
9951 gcc_yay;
9952#endif
9953EOF
9954if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9955 have_gcc_for_target=yes
859789af 9956else
2429c060
PB
9957 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9958 have_gcc_for_target=no
859789af 9959fi
2429c060
PB
9960rm conftest.c
9961
9962
9963
859789af 9964
2429c060
PB
9965if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9966 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
9968$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9969 if test -x $with_build_time_tools/ar; then
9970 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9971 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
9973$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 9974 else
81ecdfbb
RW
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976$as_echo "no" >&6; }
3a35eeb3 9977 fi
2429c060
PB
9978 elif test $build != $host && test $have_gcc_for_target = yes; then
9979 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
9980 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9981 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 9982 fi
2429c060 9983fi
c6b750e1 9984if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9985 # Extract the first word of "ar", so it can be a program name with args.
9986set dummy ar; ac_word=$2
81ecdfbb
RW
9987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988$as_echo_n "checking for $ac_word... " >&6; }
9989if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
859789af 9991else
c6b750e1
DJ
9992 case $AR_FOR_TARGET in
9993 [\\/]* | ?:[\\/]*)
2429c060
PB
9994 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9995 ;;
2429c060 9996 *)
c6b750e1
DJ
9997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998for as_dir in $gcc_cv_tool_dirs
9999do
10000 IFS=$as_save_IFS
10001 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10002 for ac_exec_ext in '' $ac_executable_extensions; do
10003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10004 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10006 break 2
10007 fi
10008done
81ecdfbb
RW
10009 done
10010IFS=$as_save_IFS
c6b750e1 10011
2429c060
PB
10012 ;;
10013esac
859789af 10014fi
c6b750e1 10015AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10016if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10018$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10019else
81ecdfbb
RW
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021$as_echo "no" >&6; }
859789af 10022fi
05cbd757 10023
81ecdfbb 10024
2429c060
PB
10025fi
10026if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10027
10028
10029if test -n "$AR_FOR_TARGET"; then
10030 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10031elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10032 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10033fi
10034
10035if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10036 for ncn_progname in ar; do
10037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10038set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040$as_echo_n "checking for $ac_word... " >&6; }
10041if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
9a819804
AO
10043else
10044 if test -n "$AR_FOR_TARGET"; then
10045 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10046else
10047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048for as_dir in $PATH
10049do
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10054 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10056 break 2
10057 fi
10058done
81ecdfbb
RW
10059 done
10060IFS=$as_save_IFS
9a819804
AO
10061
10062fi
10063fi
10064AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10065if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10067$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10068else
81ecdfbb
RW
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070$as_echo "no" >&6; }
9a819804
AO
10071fi
10072
81ecdfbb 10073
9a819804
AO
10074 done
10075fi
10076
10077if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10078 for ncn_progname in ar; do
81ecdfbb
RW
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10080$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10081 if test -x $with_build_time_tools/${ncn_progname}; then
10082 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10084$as_echo "yes" >&6; }
2429c060
PB
10085 break
10086 else
81ecdfbb
RW
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088$as_echo "no" >&6; }
2429c060
PB
10089 fi
10090 done
859789af
AC
10091fi
10092
2429c060
PB
10093if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10094 for ncn_progname in ar; do
10095 if test -n "$ncn_target_tool_prefix"; then
10096 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10097set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099$as_echo_n "checking for $ac_word... " >&6; }
10100if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10101 $as_echo_n "(cached) " >&6
7e0f7140 10102else
2429c060
PB
10103 if test -n "$AR_FOR_TARGET"; then
10104 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10105else
c6b750e1
DJ
10106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107for as_dir in $PATH
10108do
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10113 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10115 break 2
10116 fi
10117done
81ecdfbb
RW
10118 done
10119IFS=$as_save_IFS
c6b750e1 10120
7e0f7140
GK
10121fi
10122fi
c6b750e1 10123AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10124if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10126$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10127else
81ecdfbb
RW
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129$as_echo "no" >&6; }
7e0f7140
GK
10130fi
10131
81ecdfbb 10132
2429c060
PB
10133 fi
10134 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10136set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138$as_echo_n "checking for $ac_word... " >&6; }
10139if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10140 $as_echo_n "(cached) " >&6
7e0f7140 10141else
2429c060
PB
10142 if test -n "$AR_FOR_TARGET"; then
10143 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10144else
c6b750e1
DJ
10145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146for as_dir in $PATH
10147do
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10152 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10154 break 2
10155 fi
10156done
81ecdfbb
RW
10157 done
10158IFS=$as_save_IFS
c6b750e1 10159
7e0f7140
GK
10160fi
10161fi
c6b750e1 10162AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10163if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10165$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10166else
81ecdfbb
RW
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168$as_echo "no" >&6; }
7e0f7140 10169fi
c6b750e1 10170
81ecdfbb 10171
2429c060
PB
10172 fi
10173 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10174 done
10175fi
c6b750e1 10176
2429c060
PB
10177if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10178 set dummy ar
7e0f7140 10179 if test $build = $target ; then
2429c060 10180 AR_FOR_TARGET="$2"
7e0f7140 10181 else
2429c060 10182 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10183 fi
d3f5afc4
MS
10184else
10185 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10186fi
10187
3a35eeb3
PB
10188else
10189 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10190fi
10191
10192
10193
10194
10195if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10196 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10198$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10199 if test -x $with_build_time_tools/as; then
10200 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10201 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10203$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10204 else
81ecdfbb
RW
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206$as_echo "no" >&6; }
3a35eeb3 10207 fi
2429c060
PB
10208 elif test $build != $host && test $have_gcc_for_target = yes; then
10209 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10210 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10211 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10212 fi
10213fi
c6b750e1 10214if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10215 # Extract the first word of "as", so it can be a program name with args.
10216set dummy as; ac_word=$2
81ecdfbb
RW
10217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10218$as_echo_n "checking for $ac_word... " >&6; }
10219if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10220 $as_echo_n "(cached) " >&6
2429c060 10221else
c6b750e1
DJ
10222 case $AS_FOR_TARGET in
10223 [\\/]* | ?:[\\/]*)
2429c060
PB
10224 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10225 ;;
2429c060 10226 *)
c6b750e1
DJ
10227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228for as_dir in $gcc_cv_tool_dirs
10229do
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10234 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10236 break 2
10237 fi
10238done
81ecdfbb
RW
10239 done
10240IFS=$as_save_IFS
c6b750e1 10241
2429c060
PB
10242 ;;
10243esac
10244fi
c6b750e1 10245AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10246if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10248$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10249else
81ecdfbb
RW
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10251$as_echo "no" >&6; }
2429c060
PB
10252fi
10253
81ecdfbb 10254
2429c060
PB
10255fi
10256if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10257
10258
10259if test -n "$AS_FOR_TARGET"; then
10260 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10261elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10262 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10263fi
10264
10265if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10266 for ncn_progname in as; do
10267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10268set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10270$as_echo_n "checking for $ac_word... " >&6; }
10271if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
9a819804
AO
10273else
10274 if test -n "$AS_FOR_TARGET"; then
10275 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10276else
10277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278for as_dir in $PATH
10279do
10280 IFS=$as_save_IFS
10281 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10282 for ac_exec_ext in '' $ac_executable_extensions; do
10283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10284 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10286 break 2
10287 fi
10288done
81ecdfbb
RW
10289 done
10290IFS=$as_save_IFS
9a819804
AO
10291
10292fi
10293fi
10294AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10295if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10297$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10298else
81ecdfbb
RW
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300$as_echo "no" >&6; }
9a819804
AO
10301fi
10302
81ecdfbb 10303
9a819804
AO
10304 done
10305fi
10306
10307if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10308 for ncn_progname in as; do
81ecdfbb
RW
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10310$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10311 if test -x $with_build_time_tools/${ncn_progname}; then
10312 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10314$as_echo "yes" >&6; }
2429c060
PB
10315 break
10316 else
81ecdfbb
RW
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318$as_echo "no" >&6; }
2429c060
PB
10319 fi
10320 done
10321fi
10322
10323if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10324 for ncn_progname in as; do
10325 if test -n "$ncn_target_tool_prefix"; then
10326 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10327set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329$as_echo_n "checking for $ac_word... " >&6; }
10330if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10331 $as_echo_n "(cached) " >&6
2429c060
PB
10332else
10333 if test -n "$AS_FOR_TARGET"; then
10334 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10335else
c6b750e1
DJ
10336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337for as_dir in $PATH
10338do
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10343 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10345 break 2
10346 fi
10347done
81ecdfbb
RW
10348 done
10349IFS=$as_save_IFS
c6b750e1 10350
2429c060
PB
10351fi
10352fi
c6b750e1 10353AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10354if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10356$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10357else
81ecdfbb
RW
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359$as_echo "no" >&6; }
2429c060
PB
10360fi
10361
81ecdfbb 10362
2429c060
PB
10363 fi
10364 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10366set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10368$as_echo_n "checking for $ac_word... " >&6; }
10369if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10370 $as_echo_n "(cached) " >&6
2429c060
PB
10371else
10372 if test -n "$AS_FOR_TARGET"; then
10373 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10374else
c6b750e1
DJ
10375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376for as_dir in $PATH
10377do
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10382 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10384 break 2
10385 fi
10386done
81ecdfbb
RW
10387 done
10388IFS=$as_save_IFS
c6b750e1 10389
2429c060
PB
10390fi
10391fi
c6b750e1 10392AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10393if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10395$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10396else
81ecdfbb
RW
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398$as_echo "no" >&6; }
2429c060 10399fi
c6b750e1 10400
81ecdfbb 10401
2429c060
PB
10402 fi
10403 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10404 done
10405fi
c6b750e1 10406
2429c060
PB
10407if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10408 set dummy as
10409 if test $build = $target ; then
10410 AS_FOR_TARGET="$2"
10411 else
10412 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10413 fi
d3f5afc4
MS
10414else
10415 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
10416fi
10417
3a35eeb3
PB
10418else
10419 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
10420fi
10421
10422
10423
10424
10425if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10426 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10428$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10429 if test -x $with_build_time_tools/dlltool; then
10430 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10431 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10433$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 10434 else
81ecdfbb
RW
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436$as_echo "no" >&6; }
3a35eeb3 10437 fi
2429c060
PB
10438 elif test $build != $host && test $have_gcc_for_target = yes; then
10439 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
10440 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10441 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
10442 fi
10443fi
c6b750e1 10444if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10445 # Extract the first word of "dlltool", so it can be a program name with args.
10446set dummy dlltool; ac_word=$2
81ecdfbb
RW
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448$as_echo_n "checking for $ac_word... " >&6; }
10449if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10450 $as_echo_n "(cached) " >&6
2429c060 10451else
c6b750e1
DJ
10452 case $DLLTOOL_FOR_TARGET in
10453 [\\/]* | ?:[\\/]*)
2429c060
PB
10454 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10455 ;;
2429c060 10456 *)
c6b750e1
DJ
10457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10458for as_dir in $gcc_cv_tool_dirs
10459do
10460 IFS=$as_save_IFS
10461 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10462 for ac_exec_ext in '' $ac_executable_extensions; do
10463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10464 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10466 break 2
10467 fi
10468done
81ecdfbb
RW
10469 done
10470IFS=$as_save_IFS
c6b750e1 10471
2429c060
PB
10472 ;;
10473esac
10474fi
c6b750e1 10475DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 10476if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10478$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10479else
81ecdfbb
RW
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481$as_echo "no" >&6; }
2429c060
PB
10482fi
10483
81ecdfbb 10484
2429c060
PB
10485fi
10486if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
10487
10488
10489if test -n "$DLLTOOL_FOR_TARGET"; then
10490 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10491elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10492 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10493fi
10494
10495if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10496 for ncn_progname in dlltool; do
10497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10498set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10500$as_echo_n "checking for $ac_word... " >&6; }
10501if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10502 $as_echo_n "(cached) " >&6
9a819804
AO
10503else
10504 if test -n "$DLLTOOL_FOR_TARGET"; then
10505 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10506else
10507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508for as_dir in $PATH
10509do
10510 IFS=$as_save_IFS
10511 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10514 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 10515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10516 break 2
10517 fi
10518done
81ecdfbb
RW
10519 done
10520IFS=$as_save_IFS
9a819804
AO
10521
10522fi
10523fi
10524DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10525if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10527$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 10528else
81ecdfbb
RW
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530$as_echo "no" >&6; }
9a819804
AO
10531fi
10532
81ecdfbb 10533
9a819804
AO
10534 done
10535fi
10536
10537if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10538 for ncn_progname in dlltool; do
81ecdfbb
RW
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10540$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10541 if test -x $with_build_time_tools/${ncn_progname}; then
10542 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10544$as_echo "yes" >&6; }
2429c060
PB
10545 break
10546 else
81ecdfbb
RW
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548$as_echo "no" >&6; }
2429c060
PB
10549 fi
10550 done
10551fi
10552
10553if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10554 for ncn_progname in dlltool; do
10555 if test -n "$ncn_target_tool_prefix"; then
10556 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10557set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559$as_echo_n "checking for $ac_word... " >&6; }
10560if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10561 $as_echo_n "(cached) " >&6
2429c060
PB
10562else
10563 if test -n "$DLLTOOL_FOR_TARGET"; then
10564 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10565else
c6b750e1
DJ
10566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567for as_dir in $PATH
10568do
10569 IFS=$as_save_IFS
10570 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10571 for ac_exec_ext in '' $ac_executable_extensions; do
10572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10573 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10575 break 2
10576 fi
10577done
81ecdfbb
RW
10578 done
10579IFS=$as_save_IFS
c6b750e1 10580
2429c060
PB
10581fi
10582fi
c6b750e1 10583DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10584if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10586$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10587else
81ecdfbb
RW
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589$as_echo "no" >&6; }
2429c060
PB
10590fi
10591
81ecdfbb 10592
2429c060
PB
10593 fi
10594 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10596set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598$as_echo_n "checking for $ac_word... " >&6; }
10599if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10600 $as_echo_n "(cached) " >&6
2429c060
PB
10601else
10602 if test -n "$DLLTOOL_FOR_TARGET"; then
10603 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10604else
c6b750e1
DJ
10605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606for as_dir in $PATH
10607do
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10610 for ac_exec_ext in '' $ac_executable_extensions; do
10611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10612 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 10613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10614 break 2
10615 fi
10616done
81ecdfbb
RW
10617 done
10618IFS=$as_save_IFS
c6b750e1 10619
2429c060
PB
10620fi
10621fi
c6b750e1 10622DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10623if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10625$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10626else
81ecdfbb
RW
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628$as_echo "no" >&6; }
2429c060 10629fi
c6b750e1 10630
81ecdfbb 10631
2429c060
PB
10632 fi
10633 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10634 done
10635fi
c6b750e1 10636
2429c060
PB
10637if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10638 set dummy dlltool
10639 if test $build = $target ; then
10640 DLLTOOL_FOR_TARGET="$2"
10641 else
10642 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10643 fi
d3f5afc4
MS
10644else
10645 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
10646fi
10647
3a35eeb3
PB
10648else
10649 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
10650fi
10651
10652
10653
10654
10655if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10656 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10658$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10659 if test -x $with_build_time_tools/ld; then
10660 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10661 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10663$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 10664 else
81ecdfbb
RW
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666$as_echo "no" >&6; }
3a35eeb3 10667 fi
2429c060
PB
10668 elif test $build != $host && test $have_gcc_for_target = yes; then
10669 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
10670 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10671 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
10672 fi
10673fi
c6b750e1 10674if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10675 # Extract the first word of "ld", so it can be a program name with args.
10676set dummy ld; ac_word=$2
81ecdfbb
RW
10677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678$as_echo_n "checking for $ac_word... " >&6; }
10679if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10680 $as_echo_n "(cached) " >&6
2429c060 10681else
c6b750e1
DJ
10682 case $LD_FOR_TARGET in
10683 [\\/]* | ?:[\\/]*)
2429c060
PB
10684 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10685 ;;
2429c060 10686 *)
c6b750e1
DJ
10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688for as_dir in $gcc_cv_tool_dirs
10689do
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10694 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10696 break 2
10697 fi
10698done
81ecdfbb
RW
10699 done
10700IFS=$as_save_IFS
c6b750e1 10701
2429c060
PB
10702 ;;
10703esac
10704fi
c6b750e1 10705LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 10706if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10708$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10709else
81ecdfbb
RW
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711$as_echo "no" >&6; }
2429c060
PB
10712fi
10713
81ecdfbb 10714
2429c060
PB
10715fi
10716if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
10717
10718
10719if test -n "$LD_FOR_TARGET"; then
10720 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10721elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10722 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10723fi
10724
10725if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10726 for ncn_progname in ld; do
10727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10728set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10730$as_echo_n "checking for $ac_word... " >&6; }
10731if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10732 $as_echo_n "(cached) " >&6
9a819804
AO
10733else
10734 if test -n "$LD_FOR_TARGET"; then
10735 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10736else
10737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738for as_dir in $PATH
10739do
10740 IFS=$as_save_IFS
10741 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10744 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10746 break 2
10747 fi
10748done
81ecdfbb
RW
10749 done
10750IFS=$as_save_IFS
9a819804
AO
10751
10752fi
10753fi
10754LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10755if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10757$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 10758else
81ecdfbb
RW
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760$as_echo "no" >&6; }
9a819804
AO
10761fi
10762
81ecdfbb 10763
9a819804
AO
10764 done
10765fi
10766
10767if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10768 for ncn_progname in ld; do
81ecdfbb
RW
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10770$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10771 if test -x $with_build_time_tools/${ncn_progname}; then
10772 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10774$as_echo "yes" >&6; }
2429c060
PB
10775 break
10776 else
81ecdfbb
RW
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778$as_echo "no" >&6; }
2429c060
PB
10779 fi
10780 done
10781fi
10782
10783if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10784 for ncn_progname in ld; do
10785 if test -n "$ncn_target_tool_prefix"; then
10786 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10787set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10789$as_echo_n "checking for $ac_word... " >&6; }
10790if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10791 $as_echo_n "(cached) " >&6
2429c060
PB
10792else
10793 if test -n "$LD_FOR_TARGET"; then
10794 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10795else
c6b750e1
DJ
10796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797for as_dir in $PATH
10798do
10799 IFS=$as_save_IFS
10800 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10801 for ac_exec_ext in '' $ac_executable_extensions; do
10802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10803 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10805 break 2
10806 fi
10807done
81ecdfbb
RW
10808 done
10809IFS=$as_save_IFS
c6b750e1 10810
2429c060
PB
10811fi
10812fi
c6b750e1 10813LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10814if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10816$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10817else
81ecdfbb
RW
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819$as_echo "no" >&6; }
2429c060
PB
10820fi
10821
81ecdfbb 10822
2429c060
PB
10823 fi
10824 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10826set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828$as_echo_n "checking for $ac_word... " >&6; }
10829if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10830 $as_echo_n "(cached) " >&6
2429c060
PB
10831else
10832 if test -n "$LD_FOR_TARGET"; then
10833 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10834else
c6b750e1
DJ
10835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836for as_dir in $PATH
10837do
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10842 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10844 break 2
10845 fi
10846done
81ecdfbb
RW
10847 done
10848IFS=$as_save_IFS
c6b750e1 10849
2429c060
PB
10850fi
10851fi
c6b750e1 10852LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10853if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10855$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10856else
81ecdfbb
RW
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858$as_echo "no" >&6; }
2429c060 10859fi
c6b750e1 10860
81ecdfbb 10861
2429c060
PB
10862 fi
10863 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10864 done
10865fi
c6b750e1 10866
2429c060
PB
10867if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10868 set dummy ld
10869 if test $build = $target ; then
10870 LD_FOR_TARGET="$2"
10871 else
10872 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10873 fi
d3f5afc4
MS
10874else
10875 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
10876fi
10877
3a35eeb3
PB
10878else
10879 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
10880fi
10881
10882
10883
10884
10885if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10886 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
10888$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10889 if test -x $with_build_time_tools/lipo; then
10890 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10891 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10893$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 10894 else
81ecdfbb
RW
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896$as_echo "no" >&6; }
3a35eeb3 10897 fi
2429c060
PB
10898 elif test $build != $host && test $have_gcc_for_target = yes; then
10899 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
10900 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10901 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
10902 fi
10903fi
9a819804
AO
10904if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10905 # Extract the first word of "lipo", so it can be a program name with args.
10906set dummy lipo; ac_word=$2
81ecdfbb
RW
10907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10908$as_echo_n "checking for $ac_word... " >&6; }
10909if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
9a819804
AO
10911else
10912 case $LIPO_FOR_TARGET in
10913 [\\/]* | ?:[\\/]*)
10914 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10915 ;;
10916 *)
10917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10918for as_dir in $gcc_cv_tool_dirs
10919do
10920 IFS=$as_save_IFS
10921 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10922 for ac_exec_ext in '' $ac_executable_extensions; do
10923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10924 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10926 break 2
10927 fi
10928done
81ecdfbb
RW
10929 done
10930IFS=$as_save_IFS
9a819804
AO
10931
10932 ;;
10933esac
10934fi
10935LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 10936if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10938$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 10939else
81ecdfbb
RW
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941$as_echo "no" >&6; }
9a819804
AO
10942fi
10943
81ecdfbb 10944
9a819804
AO
10945fi
10946if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10947
10948
10949if test -n "$LIPO_FOR_TARGET"; then
10950 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10951elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10952 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10953fi
10954
10955if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10956 for ncn_progname in lipo; do
10957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10958set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10960$as_echo_n "checking for $ac_word... " >&6; }
10961if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10962 $as_echo_n "(cached) " >&6
2429c060 10963else
9a819804
AO
10964 if test -n "$LIPO_FOR_TARGET"; then
10965 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10966else
10967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968for as_dir in $PATH
c6b750e1
DJ
10969do
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10974 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 10975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10976 break 2
10977 fi
10978done
81ecdfbb
RW
10979 done
10980IFS=$as_save_IFS
c6b750e1 10981
2429c060 10982fi
9a819804
AO
10983fi
10984LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10985if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10987$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 10988else
81ecdfbb
RW
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990$as_echo "no" >&6; }
2429c060
PB
10991fi
10992
81ecdfbb 10993
9a819804 10994 done
2429c060 10995fi
9a819804
AO
10996
10997if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10998 for ncn_progname in lipo; do
81ecdfbb
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11000$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11001 if test -x $with_build_time_tools/${ncn_progname}; then
11002 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11004$as_echo "yes" >&6; }
2429c060
PB
11005 break
11006 else
81ecdfbb
RW
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008$as_echo "no" >&6; }
2429c060
PB
11009 fi
11010 done
11011fi
11012
11013if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11014 for ncn_progname in lipo; do
11015 if test -n "$ncn_target_tool_prefix"; then
11016 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11017set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019$as_echo_n "checking for $ac_word... " >&6; }
11020if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
2429c060
PB
11022else
11023 if test -n "$LIPO_FOR_TARGET"; then
11024 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11025else
c6b750e1
DJ
11026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027for as_dir in $PATH
11028do
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11033 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11035 break 2
11036 fi
11037done
81ecdfbb
RW
11038 done
11039IFS=$as_save_IFS
c6b750e1 11040
2429c060
PB
11041fi
11042fi
c6b750e1 11043LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11044if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11046$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11047else
81ecdfbb
RW
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049$as_echo "no" >&6; }
2429c060
PB
11050fi
11051
81ecdfbb 11052
2429c060
PB
11053 fi
11054 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11056set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11058$as_echo_n "checking for $ac_word... " >&6; }
11059if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11060 $as_echo_n "(cached) " >&6
2429c060
PB
11061else
11062 if test -n "$LIPO_FOR_TARGET"; then
11063 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11064else
c6b750e1
DJ
11065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066for as_dir in $PATH
11067do
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11072 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11074 break 2
11075 fi
11076done
81ecdfbb
RW
11077 done
11078IFS=$as_save_IFS
c6b750e1 11079
2429c060
PB
11080fi
11081fi
c6b750e1 11082LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11083if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11085$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11086else
81ecdfbb
RW
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088$as_echo "no" >&6; }
2429c060 11089fi
c6b750e1 11090
81ecdfbb 11091
2429c060
PB
11092 fi
11093 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11094 done
11095fi
c6b750e1 11096
2429c060
PB
11097if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11098 set dummy lipo
11099 if test $build = $target ; then
11100 LIPO_FOR_TARGET="$2"
11101 else
11102 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11103 fi
d3f5afc4
MS
11104else
11105 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11106fi
11107
3a35eeb3
PB
11108else
11109 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11110fi
11111
11112
11113
11114
11115if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11116 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11118$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11119 if test -x $with_build_time_tools/nm; then
11120 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11121 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11123$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11124 else
81ecdfbb
RW
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126$as_echo "no" >&6; }
3a35eeb3 11127 fi
2429c060
PB
11128 elif test $build != $host && test $have_gcc_for_target = yes; then
11129 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11130 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11131 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11132 fi
11133fi
c6b750e1 11134if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11135 # Extract the first word of "nm", so it can be a program name with args.
11136set dummy nm; ac_word=$2
81ecdfbb
RW
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138$as_echo_n "checking for $ac_word... " >&6; }
11139if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
2429c060 11141else
c6b750e1
DJ
11142 case $NM_FOR_TARGET in
11143 [\\/]* | ?:[\\/]*)
2429c060
PB
11144 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11145 ;;
2429c060 11146 *)
c6b750e1
DJ
11147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148for as_dir in $gcc_cv_tool_dirs
11149do
11150 IFS=$as_save_IFS
11151 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11154 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11156 break 2
11157 fi
11158done
81ecdfbb
RW
11159 done
11160IFS=$as_save_IFS
c6b750e1 11161
2429c060
PB
11162 ;;
11163esac
11164fi
c6b750e1 11165NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11166if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11168$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11169else
81ecdfbb
RW
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171$as_echo "no" >&6; }
2429c060
PB
11172fi
11173
81ecdfbb 11174
2429c060
PB
11175fi
11176if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11177
11178
11179if test -n "$NM_FOR_TARGET"; then
11180 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11181elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11182 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11183fi
11184
11185if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11186 for ncn_progname in nm; do
11187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11188set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190$as_echo_n "checking for $ac_word... " >&6; }
11191if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11192 $as_echo_n "(cached) " >&6
9a819804
AO
11193else
11194 if test -n "$NM_FOR_TARGET"; then
11195 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11196else
11197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198for as_dir in $PATH
11199do
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11204 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11206 break 2
11207 fi
11208done
81ecdfbb
RW
11209 done
11210IFS=$as_save_IFS
9a819804
AO
11211
11212fi
11213fi
11214NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11215if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11217$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11218else
81ecdfbb
RW
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220$as_echo "no" >&6; }
9a819804
AO
11221fi
11222
81ecdfbb 11223
9a819804
AO
11224 done
11225fi
11226
11227if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11228 for ncn_progname in nm; do
81ecdfbb
RW
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11230$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11231 if test -x $with_build_time_tools/${ncn_progname}; then
11232 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11234$as_echo "yes" >&6; }
2429c060
PB
11235 break
11236 else
81ecdfbb
RW
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238$as_echo "no" >&6; }
2429c060
PB
11239 fi
11240 done
11241fi
11242
11243if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11244 for ncn_progname in nm; do
11245 if test -n "$ncn_target_tool_prefix"; then
11246 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11247set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249$as_echo_n "checking for $ac_word... " >&6; }
11250if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11251 $as_echo_n "(cached) " >&6
859789af 11252else
55db4b87
PB
11253 if test -n "$NM_FOR_TARGET"; then
11254 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11255else
c6b750e1
DJ
11256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257for as_dir in $PATH
11258do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11263 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11265 break 2
11266 fi
11267done
81ecdfbb
RW
11268 done
11269IFS=$as_save_IFS
c6b750e1 11270
859789af
AC
11271fi
11272fi
c6b750e1 11273NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11274if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11276$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11277else
81ecdfbb
RW
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279$as_echo "no" >&6; }
859789af
AC
11280fi
11281
81ecdfbb 11282
2429c060
PB
11283 fi
11284 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11286set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288$as_echo_n "checking for $ac_word... " >&6; }
11289if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11290 $as_echo_n "(cached) " >&6
859789af 11291else
05cbd757
PB
11292 if test -n "$NM_FOR_TARGET"; then
11293 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11294else
c6b750e1
DJ
11295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296for as_dir in $PATH
11297do
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11302 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11304 break 2
11305 fi
11306done
81ecdfbb
RW
11307 done
11308IFS=$as_save_IFS
c6b750e1 11309
859789af
AC
11310fi
11311fi
c6b750e1 11312NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11313if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11315$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11316else
81ecdfbb
RW
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318$as_echo "no" >&6; }
859789af 11319fi
c6b750e1 11320
81ecdfbb 11321
2429c060
PB
11322 fi
11323 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11324 done
11325fi
c6b750e1 11326
05cbd757
PB
11327if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11328 set dummy nm
11329 if test $build = $target ; then
11330 NM_FOR_TARGET="$2"
859789af 11331 else
05cbd757 11332 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11333 fi
d3f5afc4
MS
11334else
11335 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11336fi
11337
3a35eeb3
PB
11338else
11339 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11340fi
11341
11342
11343
11344
11345if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11346 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11348$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11349 if test -x $with_build_time_tools/objdump; then
11350 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11351 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11353$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 11354 else
81ecdfbb
RW
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356$as_echo "no" >&6; }
3a35eeb3 11357 fi
2429c060
PB
11358 elif test $build != $host && test $have_gcc_for_target = yes; then
11359 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
11360 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11361 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
11362 fi
11363fi
c6b750e1 11364if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11365 # Extract the first word of "objdump", so it can be a program name with args.
11366set dummy objdump; ac_word=$2
81ecdfbb
RW
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11368$as_echo_n "checking for $ac_word... " >&6; }
11369if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
2429c060 11371else
c6b750e1
DJ
11372 case $OBJDUMP_FOR_TARGET in
11373 [\\/]* | ?:[\\/]*)
2429c060
PB
11374 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11375 ;;
2429c060 11376 *)
c6b750e1
DJ
11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378for as_dir in $gcc_cv_tool_dirs
11379do
11380 IFS=$as_save_IFS
11381 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11382 for ac_exec_ext in '' $ac_executable_extensions; do
11383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11384 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11386 break 2
11387 fi
11388done
81ecdfbb
RW
11389 done
11390IFS=$as_save_IFS
c6b750e1 11391
2429c060
PB
11392 ;;
11393esac
11394fi
c6b750e1 11395OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 11396if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11398$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 11399else
81ecdfbb
RW
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401$as_echo "no" >&6; }
2429c060
PB
11402fi
11403
81ecdfbb 11404
2429c060
PB
11405fi
11406if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
11407
11408
11409if test -n "$OBJDUMP_FOR_TARGET"; then
11410 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11411elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11412 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11413fi
11414
11415if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11416 for ncn_progname in objdump; do
11417 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11418set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11420$as_echo_n "checking for $ac_word... " >&6; }
11421if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
9a819804
AO
11423else
11424 if test -n "$OBJDUMP_FOR_TARGET"; then
11425 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11426else
11427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428for as_dir in $PATH
11429do
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11432 for ac_exec_ext in '' $ac_executable_extensions; do
11433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11434 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11436 break 2
11437 fi
11438done
81ecdfbb
RW
11439 done
11440IFS=$as_save_IFS
9a819804
AO
11441
11442fi
11443fi
11444OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11445if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11447$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 11448else
81ecdfbb
RW
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450$as_echo "no" >&6; }
9a819804
AO
11451fi
11452
81ecdfbb 11453
9a819804
AO
11454 done
11455fi
11456
11457if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11458 for ncn_progname in objdump; do
81ecdfbb
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11460$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11461 if test -x $with_build_time_tools/${ncn_progname}; then
11462 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11464$as_echo "yes" >&6; }
2429c060
PB
11465 break
11466 else
81ecdfbb
RW
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468$as_echo "no" >&6; }
2429c060
PB
11469 fi
11470 done
11471fi
11472
11473if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11474 for ncn_progname in objdump; do
11475 if test -n "$ncn_target_tool_prefix"; then
11476 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11477set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479$as_echo_n "checking for $ac_word... " >&6; }
11480if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11481 $as_echo_n "(cached) " >&6
5ae72758
DJ
11482else
11483 if test -n "$OBJDUMP_FOR_TARGET"; then
11484 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11485else
c6b750e1
DJ
11486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487for as_dir in $PATH
11488do
11489 IFS=$as_save_IFS
11490 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11493 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11495 break 2
11496 fi
11497done
81ecdfbb
RW
11498 done
11499IFS=$as_save_IFS
c6b750e1 11500
5ae72758
DJ
11501fi
11502fi
c6b750e1 11503OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11504if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11506$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 11507else
81ecdfbb
RW
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509$as_echo "no" >&6; }
5ae72758
DJ
11510fi
11511
81ecdfbb 11512
2429c060
PB
11513 fi
11514 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 11516set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518$as_echo_n "checking for $ac_word... " >&6; }
11519if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
5ae72758
DJ
11521else
11522 if test -n "$OBJDUMP_FOR_TARGET"; then
11523 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11524else
c6b750e1
DJ
11525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526for as_dir in $PATH
11527do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11532 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11534 break 2
11535 fi
11536done
81ecdfbb
RW
11537 done
11538IFS=$as_save_IFS
c6b750e1 11539
5ae72758
DJ
11540fi
11541fi
c6b750e1 11542OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11543if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11545$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 11546else
81ecdfbb
RW
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548$as_echo "no" >&6; }
5ae72758 11549fi
c6b750e1 11550
81ecdfbb 11551
2429c060
PB
11552 fi
11553 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11554 done
11555fi
c6b750e1 11556
5ae72758
DJ
11557if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11558 set dummy objdump
11559 if test $build = $target ; then
11560 OBJDUMP_FOR_TARGET="$2"
11561 else
11562 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11563 fi
d3f5afc4
MS
11564else
11565 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
11566fi
11567
3a35eeb3
PB
11568else
11569 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
11570fi
11571
11572
11573
11574
11575if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11576 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11578$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11579 if test -x $with_build_time_tools/ranlib; then
11580 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11581 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11583$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 11584 else
81ecdfbb
RW
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
3a35eeb3 11587 fi
2429c060
PB
11588 elif test $build != $host && test $have_gcc_for_target = yes; then
11589 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
11590 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11591 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
11592 fi
11593fi
c6b750e1 11594if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11595 # Extract the first word of "ranlib", so it can be a program name with args.
11596set dummy ranlib; ac_word=$2
81ecdfbb
RW
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598$as_echo_n "checking for $ac_word... " >&6; }
11599if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11600 $as_echo_n "(cached) " >&6
2429c060 11601else
c6b750e1
DJ
11602 case $RANLIB_FOR_TARGET in
11603 [\\/]* | ?:[\\/]*)
2429c060
PB
11604 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11605 ;;
2429c060 11606 *)
c6b750e1
DJ
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608for as_dir in $gcc_cv_tool_dirs
11609do
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11614 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11616 break 2
11617 fi
11618done
81ecdfbb
RW
11619 done
11620IFS=$as_save_IFS
c6b750e1 11621
2429c060
PB
11622 ;;
11623esac
11624fi
c6b750e1 11625RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 11626if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11628$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 11629else
81ecdfbb
RW
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631$as_echo "no" >&6; }
2429c060
PB
11632fi
11633
81ecdfbb 11634
2429c060
PB
11635fi
11636if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
11637
11638
11639if test -n "$RANLIB_FOR_TARGET"; then
11640 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11641elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11642 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11643fi
11644
11645if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11646 for ncn_progname in ranlib; do
11647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11648set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650$as_echo_n "checking for $ac_word... " >&6; }
11651if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
9a819804
AO
11653else
11654 if test -n "$RANLIB_FOR_TARGET"; then
11655 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11656else
11657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658for as_dir in $PATH
11659do
11660 IFS=$as_save_IFS
11661 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11664 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 11665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11666 break 2
11667 fi
11668done
81ecdfbb
RW
11669 done
11670IFS=$as_save_IFS
9a819804
AO
11671
11672fi
11673fi
11674RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11675if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11677$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 11678else
81ecdfbb
RW
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680$as_echo "no" >&6; }
9a819804
AO
11681fi
11682
81ecdfbb 11683
9a819804
AO
11684 done
11685fi
11686
11687if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11688 for ncn_progname in ranlib; do
81ecdfbb
RW
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11690$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11691 if test -x $with_build_time_tools/${ncn_progname}; then
11692 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11694$as_echo "yes" >&6; }
2429c060
PB
11695 break
11696 else
81ecdfbb
RW
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698$as_echo "no" >&6; }
2429c060
PB
11699 fi
11700 done
11701fi
11702
11703if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11704 for ncn_progname in ranlib; do
11705 if test -n "$ncn_target_tool_prefix"; then
11706 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 11707set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709$as_echo_n "checking for $ac_word... " >&6; }
11710if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
859789af 11712else
55db4b87
PB
11713 if test -n "$RANLIB_FOR_TARGET"; then
11714 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11715else
c6b750e1
DJ
11716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717for as_dir in $PATH
11718do
11719 IFS=$as_save_IFS
11720 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11723 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11725 break 2
11726 fi
11727done
81ecdfbb
RW
11728 done
11729IFS=$as_save_IFS
c6b750e1 11730
859789af
AC
11731fi
11732fi
c6b750e1 11733RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 11734if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11736$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 11737else
81ecdfbb
RW
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739$as_echo "no" >&6; }
859789af
AC
11740fi
11741
81ecdfbb 11742
2429c060
PB
11743 fi
11744 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11746set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748$as_echo_n "checking for $ac_word... " >&6; }
11749if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11750 $as_echo_n "(cached) " >&6
859789af 11751else
05cbd757
PB
11752 if test -n "$RANLIB_FOR_TARGET"; then
11753 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11754else
c6b750e1
DJ
11755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756for as_dir in $PATH
11757do
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11762 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11764 break 2
11765 fi
11766done
81ecdfbb
RW
11767 done
11768IFS=$as_save_IFS
c6b750e1 11769
859789af
AC
11770fi
11771fi
c6b750e1 11772RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 11773if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11775$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 11776else
81ecdfbb
RW
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778$as_echo "no" >&6; }
859789af 11779fi
c6b750e1 11780
81ecdfbb 11781
2429c060
PB
11782 fi
11783 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11784 done
11785fi
c6b750e1 11786
2429c060
PB
11787if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11788 set dummy ranlib
11789 if test $build = $target ; then
11790 RANLIB_FOR_TARGET="$2"
11791 else
11792 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11793 fi
d3f5afc4
MS
11794else
11795 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 11796fi
05cbd757 11797
3a35eeb3
PB
11798else
11799 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
11800fi
11801
2429c060
PB
11802
11803
11804
11805if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11806 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
11808$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11809 if test -x $with_build_time_tools/strip; then
11810 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11811 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11813$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 11814 else
81ecdfbb
RW
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816$as_echo "no" >&6; }
3a35eeb3 11817 fi
2429c060
PB
11818 elif test $build != $host && test $have_gcc_for_target = yes; then
11819 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
11820 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11821 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
11822 fi
11823fi
c6b750e1 11824if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11825 # Extract the first word of "strip", so it can be a program name with args.
11826set dummy strip; ac_word=$2
81ecdfbb
RW
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11828$as_echo_n "checking for $ac_word... " >&6; }
11829if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
11830 $as_echo_n "(cached) " >&6
2429c060 11831else
c6b750e1
DJ
11832 case $STRIP_FOR_TARGET in
11833 [\\/]* | ?:[\\/]*)
2429c060
PB
11834 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11835 ;;
2429c060 11836 *)
c6b750e1
DJ
11837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11838for as_dir in $gcc_cv_tool_dirs
11839do
11840 IFS=$as_save_IFS
11841 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11842 for ac_exec_ext in '' $ac_executable_extensions; do
11843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11844 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11846 break 2
11847 fi
11848done
81ecdfbb
RW
11849 done
11850IFS=$as_save_IFS
c6b750e1 11851
2429c060
PB
11852 ;;
11853esac
11854fi
c6b750e1 11855STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 11856if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11858$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 11859else
81ecdfbb
RW
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861$as_echo "no" >&6; }
2429c060
PB
11862fi
11863
81ecdfbb 11864
2429c060
PB
11865fi
11866if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
11867
11868
11869if test -n "$STRIP_FOR_TARGET"; then
11870 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11871elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11872 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11873fi
11874
11875if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11876 for ncn_progname in strip; do
11877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11878set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880$as_echo_n "checking for $ac_word... " >&6; }
11881if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
9a819804
AO
11883else
11884 if test -n "$STRIP_FOR_TARGET"; then
11885 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11886else
11887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888for as_dir in $PATH
11889do
11890 IFS=$as_save_IFS
11891 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11892 for ac_exec_ext in '' $ac_executable_extensions; do
11893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11894 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11896 break 2
11897 fi
11898done
81ecdfbb
RW
11899 done
11900IFS=$as_save_IFS
9a819804
AO
11901
11902fi
11903fi
11904STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11905if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11907$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 11908else
81ecdfbb
RW
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910$as_echo "no" >&6; }
9a819804
AO
11911fi
11912
81ecdfbb 11913
9a819804
AO
11914 done
11915fi
11916
11917if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11918 for ncn_progname in strip; do
81ecdfbb
RW
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11920$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11921 if test -x $with_build_time_tools/${ncn_progname}; then
11922 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11924$as_echo "yes" >&6; }
2429c060
PB
11925 break
11926 else
81ecdfbb
RW
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928$as_echo "no" >&6; }
2429c060
PB
11929 fi
11930 done
11931fi
11932
11933if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11934 for ncn_progname in strip; do
11935 if test -n "$ncn_target_tool_prefix"; then
11936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11937set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939$as_echo_n "checking for $ac_word... " >&6; }
11940if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
7e0f7140
GK
11942else
11943 if test -n "$STRIP_FOR_TARGET"; then
11944 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
11945else
11946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947for as_dir in $PATH
11948do
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11953 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11955 break 2
11956 fi
11957done
81ecdfbb
RW
11958 done
11959IFS=$as_save_IFS
c6b750e1 11960
7e0f7140
GK
11961fi
11962fi
c6b750e1 11963STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11964if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11966$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 11967else
81ecdfbb
RW
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969$as_echo "no" >&6; }
7e0f7140
GK
11970fi
11971
81ecdfbb 11972
2429c060
PB
11973 fi
11974 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11976set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11978$as_echo_n "checking for $ac_word... " >&6; }
11979if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
7e0f7140
GK
11981else
11982 if test -n "$STRIP_FOR_TARGET"; then
11983 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11984else
c6b750e1
DJ
11985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986for as_dir in $PATH
11987do
11988 IFS=$as_save_IFS
11989 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11992 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11994 break 2
11995 fi
11996done
81ecdfbb
RW
11997 done
11998IFS=$as_save_IFS
c6b750e1 11999
7e0f7140
GK
12000fi
12001fi
c6b750e1 12002STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12003if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12005$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12006else
81ecdfbb
RW
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008$as_echo "no" >&6; }
7e0f7140 12009fi
c6b750e1 12010
81ecdfbb 12011
2429c060
PB
12012 fi
12013 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12014 done
12015fi
c6b750e1 12016
7e0f7140
GK
12017if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12018 set dummy strip
12019 if test $build = $target ; then
12020 STRIP_FOR_TARGET="$2"
12021 else
12022 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12023 fi
d3f5afc4
MS
12024else
12025 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12026fi
12027
3a35eeb3
PB
12028else
12029 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12030fi
12031
12032
12033
12034
12035if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12036 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12038$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12039 if test -x $with_build_time_tools/windres; then
12040 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12041 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12043$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12044 else
81ecdfbb
RW
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
3a35eeb3 12047 fi
2429c060
PB
12048 elif test $build != $host && test $have_gcc_for_target = yes; then
12049 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12050 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12051 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12052 fi
12053fi
c6b750e1 12054if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12055 # Extract the first word of "windres", so it can be a program name with args.
12056set dummy windres; ac_word=$2
81ecdfbb
RW
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058$as_echo_n "checking for $ac_word... " >&6; }
12059if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12060 $as_echo_n "(cached) " >&6
2429c060 12061else
c6b750e1
DJ
12062 case $WINDRES_FOR_TARGET in
12063 [\\/]* | ?:[\\/]*)
2429c060
PB
12064 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12065 ;;
2429c060 12066 *)
c6b750e1
DJ
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068for as_dir in $gcc_cv_tool_dirs
12069do
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12072 for ac_exec_ext in '' $ac_executable_extensions; do
12073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12074 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12076 break 2
12077 fi
12078done
81ecdfbb
RW
12079 done
12080IFS=$as_save_IFS
c6b750e1 12081
2429c060
PB
12082 ;;
12083esac
12084fi
c6b750e1 12085WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12086if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12088$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12089else
81ecdfbb
RW
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091$as_echo "no" >&6; }
2429c060
PB
12092fi
12093
81ecdfbb 12094
2429c060
PB
12095fi
12096if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12097
12098
12099if test -n "$WINDRES_FOR_TARGET"; then
12100 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12101elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12102 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12103fi
12104
12105if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12106 for ncn_progname in windres; do
12107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12108set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12110$as_echo_n "checking for $ac_word... " >&6; }
12111if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12112 $as_echo_n "(cached) " >&6
9a819804
AO
12113else
12114 if test -n "$WINDRES_FOR_TARGET"; then
12115 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12116else
12117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12118for as_dir in $PATH
12119do
12120 IFS=$as_save_IFS
12121 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12122 for ac_exec_ext in '' $ac_executable_extensions; do
12123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12124 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12126 break 2
12127 fi
12128done
81ecdfbb
RW
12129 done
12130IFS=$as_save_IFS
9a819804
AO
12131
12132fi
12133fi
12134WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12135if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12137$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12138else
81ecdfbb
RW
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140$as_echo "no" >&6; }
9a819804
AO
12141fi
12142
81ecdfbb 12143
9a819804
AO
12144 done
12145fi
12146
12147if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12148 for ncn_progname in windres; do
81ecdfbb
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12150$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12151 if test -x $with_build_time_tools/${ncn_progname}; then
12152 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12154$as_echo "yes" >&6; }
2429c060
PB
12155 break
12156 else
81ecdfbb
RW
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158$as_echo "no" >&6; }
2429c060
PB
12159 fi
12160 done
12161fi
12162
12163if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12164 for ncn_progname in windres; do
12165 if test -n "$ncn_target_tool_prefix"; then
12166 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12167set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169$as_echo_n "checking for $ac_word... " >&6; }
12170if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12171 $as_echo_n "(cached) " >&6
859789af 12172else
55db4b87
PB
12173 if test -n "$WINDRES_FOR_TARGET"; then
12174 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12175else
c6b750e1
DJ
12176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177for as_dir in $PATH
12178do
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12183 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12185 break 2
12186 fi
12187done
81ecdfbb
RW
12188 done
12189IFS=$as_save_IFS
c6b750e1 12190
859789af
AC
12191fi
12192fi
c6b750e1 12193WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12194if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12196$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12197else
81ecdfbb
RW
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199$as_echo "no" >&6; }
859789af
AC
12200fi
12201
81ecdfbb 12202
2429c060
PB
12203 fi
12204 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12206set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208$as_echo_n "checking for $ac_word... " >&6; }
12209if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
859789af 12211else
05cbd757
PB
12212 if test -n "$WINDRES_FOR_TARGET"; then
12213 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12214else
c6b750e1
DJ
12215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216for as_dir in $PATH
12217do
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12222 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12224 break 2
12225 fi
12226done
81ecdfbb
RW
12227 done
12228IFS=$as_save_IFS
c6b750e1 12229
859789af
AC
12230fi
12231fi
c6b750e1 12232WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12233if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12235$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12236else
81ecdfbb
RW
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238$as_echo "no" >&6; }
859789af 12239fi
c6b750e1 12240
81ecdfbb 12241
2429c060
PB
12242 fi
12243 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12244 done
12245fi
c6b750e1 12246
05cbd757
PB
12247if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12248 set dummy windres
12249 if test $build = $target ; then
12250 WINDRES_FOR_TARGET="$2"
859789af 12251 else
05cbd757 12252 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12253 fi
d3f5afc4
MS
12254else
12255 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12256fi
12257
3a35eeb3
PB
12258else
12259 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12260fi
12261
852e5f18 12262
0c24b341
NC
12263
12264
12265if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12266 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12268$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12269 if test -x $with_build_time_tools/windmc; then
12270 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12271 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12273$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12274 else
81ecdfbb
RW
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276$as_echo "no" >&6; }
0c24b341
NC
12277 fi
12278 elif test $build != $host && test $have_gcc_for_target = yes; then
12279 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12280 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12281 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12282 fi
12283fi
12284if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12285 # Extract the first word of "windmc", so it can be a program name with args.
12286set dummy windmc; ac_word=$2
81ecdfbb
RW
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288$as_echo_n "checking for $ac_word... " >&6; }
12289if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12290 $as_echo_n "(cached) " >&6
0c24b341
NC
12291else
12292 case $WINDMC_FOR_TARGET in
12293 [\\/]* | ?:[\\/]*)
12294 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12295 ;;
12296 *)
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298for as_dir in $gcc_cv_tool_dirs
12299do
12300 IFS=$as_save_IFS
12301 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12302 for ac_exec_ext in '' $ac_executable_extensions; do
12303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12304 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12306 break 2
12307 fi
12308done
81ecdfbb
RW
12309 done
12310IFS=$as_save_IFS
0c24b341
NC
12311
12312 ;;
12313esac
12314fi
12315WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12316if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12318$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12319else
81ecdfbb
RW
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321$as_echo "no" >&6; }
0c24b341
NC
12322fi
12323
81ecdfbb 12324
0c24b341
NC
12325fi
12326if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12327
12328
12329if test -n "$WINDMC_FOR_TARGET"; then
12330 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12331elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12332 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12333fi
12334
12335if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12336 for ncn_progname in windmc; do
12337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12338set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340$as_echo_n "checking for $ac_word... " >&6; }
12341if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
0c24b341
NC
12343else
12344 if test -n "$WINDMC_FOR_TARGET"; then
12345 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12346else
12347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348for as_dir in $PATH
12349do
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12354 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12356 break 2
12357 fi
12358done
81ecdfbb
RW
12359 done
12360IFS=$as_save_IFS
0c24b341
NC
12361
12362fi
12363fi
12364WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12365if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12367$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12368else
81ecdfbb
RW
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370$as_echo "no" >&6; }
0c24b341
NC
12371fi
12372
81ecdfbb 12373
0c24b341
NC
12374 done
12375fi
12376
12377if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12378 for ncn_progname in windmc; do
81ecdfbb
RW
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12380$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
12381 if test -x $with_build_time_tools/${ncn_progname}; then
12382 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12384$as_echo "yes" >&6; }
0c24b341
NC
12385 break
12386 else
81ecdfbb
RW
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388$as_echo "no" >&6; }
0c24b341
NC
12389 fi
12390 done
12391fi
12392
12393if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12394 for ncn_progname in windmc; do
12395 if test -n "$ncn_target_tool_prefix"; then
12396 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12397set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12399$as_echo_n "checking for $ac_word... " >&6; }
12400if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12401 $as_echo_n "(cached) " >&6
0c24b341
NC
12402else
12403 if test -n "$WINDMC_FOR_TARGET"; then
12404 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12405else
12406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407for as_dir in $PATH
12408do
12409 IFS=$as_save_IFS
12410 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12411 for ac_exec_ext in '' $ac_executable_extensions; do
12412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12413 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12415 break 2
12416 fi
12417done
81ecdfbb
RW
12418 done
12419IFS=$as_save_IFS
0c24b341
NC
12420
12421fi
12422fi
12423WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12424if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12426$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12427else
81ecdfbb
RW
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429$as_echo "no" >&6; }
0c24b341
NC
12430fi
12431
81ecdfbb 12432
0c24b341
NC
12433 fi
12434 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12436set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438$as_echo_n "checking for $ac_word... " >&6; }
12439if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12440 $as_echo_n "(cached) " >&6
0c24b341
NC
12441else
12442 if test -n "$WINDMC_FOR_TARGET"; then
12443 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12444else
12445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446for as_dir in $PATH
12447do
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12452 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12454 break 2
12455 fi
12456done
81ecdfbb
RW
12457 done
12458IFS=$as_save_IFS
0c24b341
NC
12459
12460fi
12461fi
12462WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12463if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12465$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12466else
81ecdfbb
RW
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468$as_echo "no" >&6; }
0c24b341
NC
12469fi
12470
81ecdfbb 12471
0c24b341
NC
12472 fi
12473 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12474 done
12475fi
12476
12477if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12478 set dummy windmc
12479 if test $build = $target ; then
12480 WINDMC_FOR_TARGET="$2"
12481 else
12482 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12483 fi
12484else
12485 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12486fi
12487
12488else
12489 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12490fi
12491
12492
be01d343
PB
12493RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12494
81ecdfbb
RW
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12496$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 12497if test "x${build}" != "x${host}" ; then
2429c060
PB
12498 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12499 # We already found the complete path
b8025f34 12500 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12502$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12503 else
12504 # Canadian cross, just use what we found
81ecdfbb
RW
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12506$as_echo "pre-installed" >&6; }
2429c060 12507 fi
be01d343
PB
12508else
12509 ok=yes
12510 case " ${configdirs} " in
12511 *" binutils "*) ;;
12512 *) ok=no ;;
12513 esac
c6b750e1 12514
be01d343
PB
12515 if test $ok = yes; then
12516 # An in-tree tool is available and we can use it
12517 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12519$as_echo "just compiled" >&6; }
2429c060
PB
12520 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12521 # We already found the complete path
b8025f34 12522 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12524$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12525 elif test "x$target" = "x$host"; then
12526 # We can use an host tool
12527 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12529$as_echo "host tool" >&6; }
be01d343
PB
12530 else
12531 # We need a cross tool
81ecdfbb
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12533$as_echo "pre-installed" >&6; }
be01d343
PB
12534 fi
12535fi
4b900473 12536
81ecdfbb
RW
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12538$as_echo_n "checking where to find the target as... " >&6; }
be01d343 12539if test "x${build}" != "x${host}" ; then
2429c060
PB
12540 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12541 # We already found the complete path
b8025f34 12542 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12544$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12545 else
12546 # Canadian cross, just use what we found
81ecdfbb
RW
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12548$as_echo "pre-installed" >&6; }
2429c060 12549 fi
be01d343
PB
12550else
12551 ok=yes
12552 case " ${configdirs} " in
12553 *" gas "*) ;;
12554 *) ok=no ;;
12555 esac
c6b750e1 12556
be01d343
PB
12557 if test $ok = yes; then
12558 # An in-tree tool is available and we can use it
12559 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12561$as_echo "just compiled" >&6; }
2429c060
PB
12562 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12563 # We already found the complete path
b8025f34 12564 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12566$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12567 elif test "x$target" = "x$host"; then
12568 # We can use an host tool
12569 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12571$as_echo "host tool" >&6; }
be01d343
PB
12572 else
12573 # We need a cross tool
81ecdfbb
RW
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12575$as_echo "pre-installed" >&6; }
be01d343
PB
12576 fi
12577fi
4b900473 12578
81ecdfbb
RW
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12580$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 12581if test "x${build}" != "x${host}" ; then
2429c060
PB
12582 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12583 # We already found the complete path
b8025f34 12584 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12586$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12587 else
12588 # Canadian cross, just use what we found
81ecdfbb
RW
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12590$as_echo "pre-installed" >&6; }
2429c060 12591 fi
be01d343
PB
12592else
12593 ok=yes
12594 case " ${configdirs} " in
12595 *" gcc "*) ;;
12596 *) ok=no ;;
12597 esac
c6b750e1 12598
be01d343
PB
12599 if test $ok = yes; then
12600 # An in-tree tool is available and we can use it
12601 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12603$as_echo "just compiled" >&6; }
2429c060
PB
12604 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12605 # We already found the complete path
b8025f34 12606 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12608$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12609 elif test "x$target" = "x$host"; then
12610 # We can use an host tool
12611 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12613$as_echo "host tool" >&6; }
be01d343
PB
12614 else
12615 # We need a cross tool
81ecdfbb
RW
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12617$as_echo "pre-installed" >&6; }
be01d343
PB
12618 fi
12619fi
4b900473 12620
81ecdfbb
RW
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12622$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 12623if test "x${build}" != "x${host}" ; then
2429c060
PB
12624 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12625 # We already found the complete path
b8025f34 12626 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12628$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12629 else
12630 # Canadian cross, just use what we found
81ecdfbb
RW
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12632$as_echo "pre-installed" >&6; }
2429c060 12633 fi
be01d343
PB
12634else
12635 ok=yes
12636 case " ${configdirs} " in
12637 *" gcc "*) ;;
12638 *) ok=no ;;
12639 esac
12640 case ,${enable_languages}, in
12641 *,c++,*) ;;
12642 *) ok=no ;;
12643 esac
12644 if test $ok = yes; then
12645 # An in-tree tool is available and we can use it
12646 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12648$as_echo "just compiled" >&6; }
2429c060
PB
12649 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12650 # We already found the complete path
b8025f34 12651 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12653$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12654 elif test "x$target" = "x$host"; then
12655 # We can use an host tool
12656 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12658$as_echo "host tool" >&6; }
be01d343
PB
12659 else
12660 # We need a cross tool
81ecdfbb
RW
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12662$as_echo "pre-installed" >&6; }
be01d343
PB
12663 fi
12664fi
4b900473 12665
81ecdfbb
RW
12666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12667$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 12668if test "x${build}" != "x${host}" ; then
2429c060
PB
12669 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12670 # We already found the complete path
b8025f34 12671 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12673$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12674 else
12675 # Canadian cross, just use what we found
81ecdfbb
RW
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12677$as_echo "pre-installed" >&6; }
2429c060 12678 fi
be01d343
PB
12679else
12680 ok=yes
12681 case " ${configdirs} " in
12682 *" gcc "*) ;;
12683 *) ok=no ;;
12684 esac
12685 case ,${enable_languages}, in
12686 *,c++,*) ;;
12687 *) ok=no ;;
12688 esac
12689 if test $ok = yes; then
12690 # An in-tree tool is available and we can use it
12691 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
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12693$as_echo "just compiled" >&6; }
2429c060
PB
12694 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12695 # We already found the complete path
b8025f34 12696 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12698$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12699 elif test "x$target" = "x$host"; then
12700 # We can use an host tool
12701 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12703$as_echo "host tool" >&6; }
be01d343
PB
12704 else
12705 # We need a cross tool
81ecdfbb
RW
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12707$as_echo "pre-installed" >&6; }
be01d343
PB
12708 fi
12709fi
4b900473 12710
81ecdfbb
RW
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12712$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 12713if test "x${build}" != "x${host}" ; then
2429c060
PB
12714 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12715 # We already found the complete path
b8025f34 12716 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12718$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12719 else
12720 # Canadian cross, just use what we found
81ecdfbb
RW
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12722$as_echo "pre-installed" >&6; }
2429c060 12723 fi
be01d343
PB
12724else
12725 ok=yes
12726 case " ${configdirs} " in
12727 *" binutils "*) ;;
12728 *) ok=no ;;
12729 esac
c6b750e1 12730
be01d343
PB
12731 if test $ok = yes; then
12732 # An in-tree tool is available and we can use it
12733 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12735$as_echo "just compiled" >&6; }
2429c060
PB
12736 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12737 # We already found the complete path
b8025f34 12738 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12740$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12741 elif test "x$target" = "x$host"; then
12742 # We can use an host tool
12743 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12745$as_echo "host tool" >&6; }
be01d343
PB
12746 else
12747 # We need a cross tool
81ecdfbb
RW
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12749$as_echo "pre-installed" >&6; }
be01d343
PB
12750 fi
12751fi
4b900473 12752
81ecdfbb
RW
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12754$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 12755if test "x${build}" != "x${host}" ; then
2429c060
PB
12756 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12757 # We already found the complete path
b8025f34 12758 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12760$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12761 else
12762 # Canadian cross, just use what we found
81ecdfbb
RW
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12764$as_echo "pre-installed" >&6; }
2429c060 12765 fi
be01d343
PB
12766else
12767 ok=yes
12768 case " ${configdirs} " in
12769 *" gcc "*) ;;
12770 *) ok=no ;;
12771 esac
c6b750e1 12772
be01d343
PB
12773 if test $ok = yes; then
12774 # An in-tree tool is available and we can use it
12775 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12777$as_echo "just compiled" >&6; }
2429c060
PB
12778 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12779 # We already found the complete path
b8025f34 12780 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12782$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12783 elif test "x$target" = "x$host"; then
12784 # We can use an host tool
12785 GCC_FOR_TARGET='$()'
81ecdfbb
RW
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12787$as_echo "host tool" >&6; }
be01d343
PB
12788 else
12789 # We need a cross tool
81ecdfbb
RW
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12791$as_echo "pre-installed" >&6; }
be01d343
PB
12792 fi
12793fi
4b900473 12794
81ecdfbb
RW
12795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
12796$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 12797if test "x${build}" != "x${host}" ; then
2429c060
PB
12798 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12799 # We already found the complete path
b8025f34 12800 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12802$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12803 else
12804 # Canadian cross, just use what we found
81ecdfbb
RW
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12806$as_echo "pre-installed" >&6; }
2429c060 12807 fi
be01d343
PB
12808else
12809 ok=yes
12810 case " ${configdirs} " in
12811 *" gcc "*) ;;
12812 *) ok=no ;;
12813 esac
12814 case ,${enable_languages}, in
12815 *,java,*) ;;
12816 *) ok=no ;;
12817 esac
12818 if test $ok = yes; then
12819 # An in-tree tool is available and we can use it
12820 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12822$as_echo "just compiled" >&6; }
2429c060
PB
12823 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12824 # We already found the complete path
b8025f34 12825 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12827$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12828 elif test "x$target" = "x$host"; then
12829 # We can use an host tool
12830 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12832$as_echo "host tool" >&6; }
be01d343
PB
12833 else
12834 # We need a cross tool
81ecdfbb
RW
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12836$as_echo "pre-installed" >&6; }
be01d343
PB
12837 fi
12838fi
4b900473 12839
81ecdfbb
RW
12840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
12841$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 12842if test "x${build}" != "x${host}" ; then
2429c060
PB
12843 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12844 # We already found the complete path
b8025f34 12845 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12847$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12848 else
12849 # Canadian cross, just use what we found
81ecdfbb
RW
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12851$as_echo "pre-installed" >&6; }
2429c060 12852 fi
be01d343
PB
12853else
12854 ok=yes
12855 case " ${configdirs} " in
12856 *" gcc "*) ;;
12857 *) ok=no ;;
12858 esac
12859 case ,${enable_languages}, in
12860 *,fortran,*) ;;
12861 *) ok=no ;;
12862 esac
12863 if test $ok = yes; then
12864 # An in-tree tool is available and we can use it
12865 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12867$as_echo "just compiled" >&6; }
2429c060
PB
12868 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12869 # We already found the complete path
b8025f34 12870 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12872$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12873 elif test "x$target" = "x$host"; then
12874 # We can use an host tool
12875 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12877$as_echo "host tool" >&6; }
be01d343
PB
12878 else
12879 # We need a cross tool
81ecdfbb
RW
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12881$as_echo "pre-installed" >&6; }
be01d343
PB
12882 fi
12883fi
4b900473 12884
81ecdfbb
RW
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
12886$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 12887if test "x${build}" != "x${host}" ; then
2429c060
PB
12888 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12889 # We already found the complete path
b8025f34 12890 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12892$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12893 else
12894 # Canadian cross, just use what we found
81ecdfbb
RW
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12896$as_echo "pre-installed" >&6; }
2429c060 12897 fi
be01d343
PB
12898else
12899 ok=yes
12900 case " ${configdirs} " in
12901 *" ld "*) ;;
12902 *) ok=no ;;
12903 esac
c6b750e1 12904
be01d343
PB
12905 if test $ok = yes; then
12906 # An in-tree tool is available and we can use it
12907 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12909$as_echo "just compiled" >&6; }
2429c060
PB
12910 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12911 # We already found the complete path
b8025f34 12912 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12914$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12915 elif test "x$target" = "x$host"; then
12916 # We can use an host tool
12917 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12919$as_echo "host tool" >&6; }
be01d343
PB
12920 else
12921 # We need a cross tool
81ecdfbb
RW
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12923$as_echo "pre-installed" >&6; }
be01d343
PB
12924 fi
12925fi
4b900473 12926
81ecdfbb
RW
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
12928$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 12929if test "x${build}" != "x${host}" ; then
2429c060
PB
12930 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12931 # We already found the complete path
b8025f34 12932 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12934$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12935 else
12936 # Canadian cross, just use what we found
81ecdfbb
RW
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12938$as_echo "pre-installed" >&6; }
2429c060 12939 fi
be01d343 12940else
2429c060
PB
12941 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12942 # We already found the complete path
b8025f34 12943 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12945$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 12946 elif test "x$target" = "x$host"; then
be01d343
PB
12947 # We can use an host tool
12948 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12950$as_echo "host tool" >&6; }
be01d343
PB
12951 else
12952 # We need a cross tool
81ecdfbb
RW
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12954$as_echo "pre-installed" >&6; }
be01d343
PB
12955 fi
12956fi
4b900473 12957
81ecdfbb
RW
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
12959$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 12960if test "x${build}" != "x${host}" ; then
2429c060
PB
12961 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12962 # We already found the complete path
b8025f34 12963 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12965$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12966 else
12967 # Canadian cross, just use what we found
81ecdfbb
RW
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12969$as_echo "pre-installed" >&6; }
2429c060 12970 fi
be01d343
PB
12971else
12972 ok=yes
12973 case " ${configdirs} " in
12974 *" binutils "*) ;;
12975 *) ok=no ;;
12976 esac
c6b750e1 12977
be01d343
PB
12978 if test $ok = yes; then
12979 # An in-tree tool is available and we can use it
12980 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12982$as_echo "just compiled" >&6; }
2429c060
PB
12983 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12984 # We already found the complete path
b8025f34 12985 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12987$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12988 elif test "x$target" = "x$host"; then
12989 # We can use an host tool
12990 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12992$as_echo "host tool" >&6; }
be01d343
PB
12993 else
12994 # We need a cross tool
81ecdfbb
RW
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12996$as_echo "pre-installed" >&6; }
be01d343
PB
12997 fi
12998fi
4b900473 12999
81ecdfbb
RW
13000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13001$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13002if test "x${build}" != "x${host}" ; then
2429c060
PB
13003 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13004 # We already found the complete path
b8025f34 13005 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13007$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13008 else
13009 # Canadian cross, just use what we found
81ecdfbb
RW
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13011$as_echo "pre-installed" >&6; }
2429c060 13012 fi
be01d343
PB
13013else
13014 ok=yes
13015 case " ${configdirs} " in
13016 *" binutils "*) ;;
13017 *) ok=no ;;
13018 esac
c6b750e1 13019
be01d343
PB
13020 if test $ok = yes; then
13021 # An in-tree tool is available and we can use it
13022 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13024$as_echo "just compiled" >&6; }
2429c060
PB
13025 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13026 # We already found the complete path
b8025f34 13027 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13029$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13030 elif test "x$target" = "x$host"; then
13031 # We can use an host tool
13032 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13034$as_echo "host tool" >&6; }
be01d343
PB
13035 else
13036 # We need a cross tool
81ecdfbb
RW
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13038$as_echo "pre-installed" >&6; }
be01d343
PB
13039 fi
13040fi
4b900473 13041
81ecdfbb
RW
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13043$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13044if test "x${build}" != "x${host}" ; then
2429c060
PB
13045 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13046 # We already found the complete path
b8025f34 13047 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13049$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13050 else
13051 # Canadian cross, just use what we found
81ecdfbb
RW
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13053$as_echo "pre-installed" >&6; }
2429c060 13054 fi
be01d343
PB
13055else
13056 ok=yes
13057 case " ${configdirs} " in
13058 *" binutils "*) ;;
13059 *) ok=no ;;
13060 esac
c6b750e1 13061
be01d343
PB
13062 if test $ok = yes; then
13063 # An in-tree tool is available and we can use it
13064 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13066$as_echo "just compiled" >&6; }
2429c060
PB
13067 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13068 # We already found the complete path
b8025f34 13069 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13071$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13072 elif test "x$target" = "x$host"; then
13073 # We can use an host tool
13074 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13076$as_echo "host tool" >&6; }
be01d343
PB
13077 else
13078 # We need a cross tool
81ecdfbb
RW
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13080$as_echo "pre-installed" >&6; }
be01d343
PB
13081 fi
13082fi
4b900473 13083
81ecdfbb
RW
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13085$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13086if test "x${build}" != "x${host}" ; then
2429c060
PB
13087 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13088 # We already found the complete path
b8025f34 13089 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13091$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13092 else
13093 # Canadian cross, just use what we found
81ecdfbb
RW
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13095$as_echo "pre-installed" >&6; }
2429c060 13096 fi
be01d343
PB
13097else
13098 ok=yes
13099 case " ${configdirs} " in
13100 *" binutils "*) ;;
13101 *) ok=no ;;
13102 esac
c6b750e1 13103
be01d343
PB
13104 if test $ok = yes; then
13105 # An in-tree tool is available and we can use it
13106 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
81ecdfbb
RW
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13108$as_echo "just compiled" >&6; }
2429c060
PB
13109 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13110 # We already found the complete path
b8025f34 13111 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13113$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13114 elif test "x$target" = "x$host"; then
13115 # We can use an host tool
13116 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13118$as_echo "host tool" >&6; }
be01d343
PB
13119 else
13120 # We need a cross tool
81ecdfbb
RW
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13122$as_echo "pre-installed" >&6; }
be01d343
PB
13123 fi
13124fi
4b900473 13125
81ecdfbb
RW
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13127$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13128if test "x${build}" != "x${host}" ; then
2429c060
PB
13129 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13130 # We already found the complete path
b8025f34 13131 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13133$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13134 else
13135 # Canadian cross, just use what we found
81ecdfbb
RW
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13137$as_echo "pre-installed" >&6; }
2429c060 13138 fi
be01d343
PB
13139else
13140 ok=yes
13141 case " ${configdirs} " in
13142 *" binutils "*) ;;
13143 *) ok=no ;;
13144 esac
c6b750e1 13145
be01d343
PB
13146 if test $ok = yes; then
13147 # An in-tree tool is available and we can use it
13148 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13150$as_echo "just compiled" >&6; }
2429c060
PB
13151 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13152 # We already found the complete path
b8025f34 13153 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13155$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13156 elif test "x$target" = "x$host"; then
13157 # We can use an host tool
13158 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13160$as_echo "host tool" >&6; }
be01d343
PB
13161 else
13162 # We need a cross tool
81ecdfbb
RW
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13164$as_echo "pre-installed" >&6; }
be01d343 13165 fi
a0da8069 13166fi
54752a6b 13167
81ecdfbb
RW
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13169$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13170if test "x${build}" != "x${host}" ; then
13171 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13172 # We already found the complete path
13173 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13175$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13176 else
13177 # Canadian cross, just use what we found
81ecdfbb
RW
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13179$as_echo "pre-installed" >&6; }
0c24b341
NC
13180 fi
13181else
13182 ok=yes
13183 case " ${configdirs} " in
13184 *" binutils "*) ;;
13185 *) ok=no ;;
13186 esac
13187
13188 if test $ok = yes; then
13189 # An in-tree tool is available and we can use it
13190 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13192$as_echo "just compiled" >&6; }
0c24b341
NC
13193 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13194 # We already found the complete path
13195 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13197$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13198 elif test "x$target" = "x$host"; then
13199 # We can use an host tool
13200 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13202$as_echo "host tool" >&6; }
0c24b341
NC
13203 else
13204 # We need a cross tool
81ecdfbb
RW
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13206$as_echo "pre-installed" >&6; }
0c24b341
NC
13207 fi
13208fi
13209
54752a6b
NN
13210
13211
be01d343 13212
4b900473 13213
a0da8069
NN
13214# Certain tools may need extra flags.
13215AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13216RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13217NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13218
be01d343
PB
13219# When building target libraries, except in a Canadian cross, we use
13220# the same toolchain as the compiler we just built.
13221COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13222COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13223COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13224if test $host = $build; then
13225 case " $configdirs " in
13226 *" gcc "*)
13227 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13228 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13229 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13230 ;;
13231 esac
13232fi
13233
13234
13235
13236
13237
81ecdfbb
RW
13238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13239$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13240# Check whether --enable-maintainer-mode was given.
13241if test "${enable_maintainer_mode+set}" = set; then :
13242 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13243else
13244 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13245fi
13246
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13248$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13249
13250
13251if test "$USE_MAINTAINER_MODE" = yes; then
13252 MAINTAINER_MODE_TRUE=
13253 MAINTAINER_MODE_FALSE='#'
13254else
13255 MAINTAINER_MODE_TRUE='#'
13256 MAINTAINER_MODE_FALSE=
c6b750e1 13257fi
3d5e36ae
AO
13258MAINT=$MAINTAINER_MODE_TRUE
13259
1d39f329
NN
13260# ---------------------
13261# GCC bootstrap support
13262# ---------------------
13263
13264# Stage specific cflags for build.
13265stage1_cflags="-g"
13266case $build in
13267 vax-*-*)
13268 case ${GCC} in
13269 yes) stage1_cflags="-g -Wa,-J" ;;
13270 *) stage1_cflags="-g -J" ;;
13271 esac ;;
1d39f329
NN
13272esac
13273
1d89b610 13274# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 13275if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
13276 saved_CFLAGS="$CFLAGS"
13277
13278 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13279 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13281$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
13283/* end confdefs.h. */
13284
2038f525
PB
13285#if (__GNUC__ < 3) \
13286 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13287 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13288#error http://gcc.gnu.org/PR29382
13289#endif
13290
c6b750e1
DJ
13291int
13292main ()
13293{
13294
13295 ;
13296 return 0;
13297}
13298_ACEOF
81ecdfbb
RW
13299if ac_fn_c_try_compile "$LINENO"; then :
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13301$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 13302else
81ecdfbb
RW
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304$as_echo "no" >&6; }
c6b750e1 13305fi
81ecdfbb 13306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
13307
13308 CFLAGS="$saved_CFLAGS"
13309fi
13310
13311
1d39f329 13312
8a0d8a5c 13313# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
13314# Check whether --enable-stage1-checking was given.
13315if test "${enable_stage1_checking+set}" = set; then :
13316 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 13317else
5566c1fa 13318 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 13319 stage1_checking=--enable-checking=yes,types
8a0d8a5c 13320else
5566c1fa 13321 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 13322fi
81ecdfbb 13323fi
8a0d8a5c
PB
13324
13325
c6b750e1 13326
81ecdfbb
RW
13327# Enable -Werror in bootstrap stage2 and later.
13328# Check whether --enable-werror was given.
13329if test "${enable_werror+set}" = set; then :
13330 enableval=$enable_werror;
1d39f329 13331else
a0323144 13332 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 13333 enable_werror=yes
79fcd0ec
PB
13334else
13335 enable_werror=no
13336fi
81ecdfbb
RW
13337fi
13338
1a6f2dc7
NN
13339case ${enable_werror} in
13340 yes) stage2_werror_flag="--enable-werror-always" ;;
13341 *) stage2_werror_flag="" ;;
1d39f329
NN
13342esac
13343
13344
e8a5fa9c
RW
13345# Specify what files to not compare during bootstrap.
13346
13347compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13348case "$target" in
13349 hppa*64*-*-hpux*) ;;
13350 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13351esac
13352
13353
81ecdfbb
RW
13354ac_config_files="$ac_config_files Makefile"
13355
c6b750e1 13356cat >confcache <<\_ACEOF
a0da8069
NN
13357# This file is a shell script that caches the results of configure
13358# tests run on this system so they can be shared between configure
c6b750e1
DJ
13359# scripts and configure runs, see configure's option --config-cache.
13360# It is not useful on other systems. If it contains results you don't
13361# want to keep, you may remove or edit it.
a0da8069 13362#
c6b750e1
DJ
13363# config.status only pays attention to the cache file if you give it
13364# the --recheck option to rerun configure.
a0da8069 13365#
c6b750e1
DJ
13366# `ac_cv_env_foo' variables (set or unset) will be overridden when
13367# loading this file, other *unset* `ac_cv_foo' will be assigned the
13368# following values.
13369
13370_ACEOF
13371
a0da8069
NN
13372# The following way of writing the cache mishandles newlines in values,
13373# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13374# So, we kill variables containing newlines.
a0da8069
NN
13375# Ultrix sh set writes to stderr and can't be redirected directly,
13376# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13377(
13378 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13379 eval ac_val=\$$ac_var
13380 case $ac_val in #(
13381 *${as_nl}*)
13382 case $ac_var in #(
13383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13384$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13385 esac
13386 case $ac_var in #(
13387 _ | IFS | as_nl) ;; #(
13388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13389 *) { eval $ac_var=; unset $ac_var;} ;;
13390 esac ;;
13391 esac
13392 done
13393
c6b750e1 13394 (set) 2>&1 |
81ecdfbb
RW
13395 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13396 *${as_nl}ac_space=\ *)
13397 # `set' does not quote correctly, so add quotes: double-quote
13398 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
13399 sed -n \
13400 "s/'/'\\\\''/g;
13401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13402 ;; #(
c6b750e1
DJ
13403 *)
13404 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 13406 ;;
81ecdfbb
RW
13407 esac |
13408 sort
13409) |
c6b750e1 13410 sed '
81ecdfbb 13411 /^ac_cv_env_/b end
c6b750e1 13412 t clear
81ecdfbb 13413 :clear
c6b750e1
DJ
13414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13415 t end
81ecdfbb
RW
13416 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13417 :end' >>confcache
13418if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13419 if test -w "$cache_file"; then
13420 test "x$cache_file" != "x/dev/null" &&
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13422$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 13423 cat confcache >$cache_file
a0da8069 13424 else
81ecdfbb
RW
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13426$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 13427 fi
852e5f18 13428fi
a0da8069 13429rm -f confcache
852e5f18 13430
a0da8069
NN
13431test "x$prefix" = xNONE && prefix=$ac_default_prefix
13432# Let make expand exec_prefix.
13433test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 13434
a0da8069
NN
13435# Transform confdefs.h into DEFS.
13436# Protect against shell expansion while executing Makefile rules.
13437# Protect against Makefile macro expansion.
c6b750e1
DJ
13438#
13439# If the first sed substitution is executed (which looks for macros that
81ecdfbb 13440# take arguments), then branch to the quote section. Otherwise,
c6b750e1 13441# look for a macro that doesn't take arguments.
81ecdfbb
RW
13442ac_script='
13443:mline
13444/\\$/{
13445 N
13446 s,\\\n,,
13447 b mline
13448}
c6b750e1 13449t clear
81ecdfbb
RW
13450:clear
13451s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 13452t quote
81ecdfbb 13453s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 13454t quote
81ecdfbb
RW
13455b any
13456:quote
13457s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13458s/\[/\\&/g
13459s/\]/\\&/g
13460s/\$/$$/g
13461H
13462:any
13463${
13464 g
13465 s/^\n//
13466 s/\n/ /g
13467 p
13468}
13469'
13470DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
13471
13472
13473ac_libobjs=
13474ac_ltlibobjs=
13475for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13476 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13477 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13478 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13480 # will be set to the directory where LIBOBJS objects are built.
13481 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13482 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
13483done
13484LIBOBJS=$ac_libobjs
852e5f18 13485
c6b750e1 13486LTLIBOBJS=$ac_ltlibobjs
376a0e54 13487
cac3d6c4 13488
c6b750e1
DJ
13489
13490: ${CONFIG_STATUS=./config.status}
81ecdfbb 13491ac_write_fail=0
c6b750e1
DJ
13492ac_clean_files_save=$ac_clean_files
13493ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13495$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13496as_write_fail=0
13497cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
13498#! $SHELL
13499# Generated by $as_me.
a0da8069 13500# Run this file to recreate the current configuration.
a0da8069 13501# Compiler output produced by configure, useful for debugging
c6b750e1 13502# configure, is in config.log if it exists.
376a0e54 13503
c6b750e1
DJ
13504debug=false
13505ac_cs_recheck=false
13506ac_cs_silent=false
c6b750e1 13507
81ecdfbb
RW
13508SHELL=\${CONFIG_SHELL-$SHELL}
13509export SHELL
13510_ASEOF
13511cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13512## -------------------- ##
13513## M4sh Initialization. ##
13514## -------------------- ##
13515
13516# Be more Bourne compatible
13517DUALCASE=1; export DUALCASE # for MKS sh
13518if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
13519 emulate sh
13520 NULLCMD=:
81ecdfbb 13521 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
13522 # is contrary to our usage. Disable this feature.
13523 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
13524 setopt NO_GLOB_SUBST
13525else
13526 case `(set -o) 2>/dev/null` in #(
13527 *posix*) :
13528 set -o posix ;; #(
13529 *) :
13530 ;;
13531esac
c6b750e1 13532fi
c6b750e1 13533
81ecdfbb
RW
13534
13535as_nl='
13536'
13537export as_nl
13538# Printing a long string crashes Solaris 7 /usr/bin/printf.
13539as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13540as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13541as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13542# Prefer a ksh shell builtin over an external printf program on Solaris,
13543# but without wasting forks for bash or zsh.
13544if test -z "$BASH_VERSION$ZSH_VERSION" \
13545 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13546 as_echo='print -r --'
13547 as_echo_n='print -rn --'
13548elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13549 as_echo='printf %s\n'
13550 as_echo_n='printf %s'
13551else
13552 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13553 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13554 as_echo_n='/usr/ucb/echo -n'
13555 else
13556 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13557 as_echo_n_body='eval
13558 arg=$1;
13559 case $arg in #(
13560 *"$as_nl"*)
13561 expr "X$arg" : "X\\(.*\\)$as_nl";
13562 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13563 esac;
13564 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13565 '
13566 export as_echo_n_body
13567 as_echo_n='sh -c $as_echo_n_body as_echo'
13568 fi
13569 export as_echo_body
13570 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
13571fi
13572
81ecdfbb
RW
13573# The user is always right.
13574if test "${PATH_SEPARATOR+set}" != set; then
13575 PATH_SEPARATOR=:
13576 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13577 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13578 PATH_SEPARATOR=';'
13579 }
13580fi
13581
13582
13583# IFS
13584# We need space, tab and new line, in precisely that order. Quoting is
13585# there to prevent editors from complaining about space-tab.
13586# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13587# splitting by setting IFS to empty value.)
13588IFS=" "" $as_nl"
13589
13590# Find who we are. Look in the path if we contain no directory separator.
13591case $0 in #((
13592 *[\\/]* ) as_myself=$0 ;;
13593 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594for as_dir in $PATH
13595do
13596 IFS=$as_save_IFS
13597 test -z "$as_dir" && as_dir=.
13598 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13599 done
13600IFS=$as_save_IFS
13601
13602 ;;
13603esac
13604# We did not find ourselves, most probably we were run as `sh COMMAND'
13605# in which case we are not to be found in the path.
13606if test "x$as_myself" = x; then
13607 as_myself=$0
13608fi
13609if test ! -f "$as_myself"; then
13610 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13611 exit 1
13612fi
c6b750e1 13613
81ecdfbb
RW
13614# Unset variables that we do not need and which cause bugs (e.g. in
13615# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13616# suppresses any "Segmentation fault" message there. '((' could
13617# trigger a bug in pdksh 5.2.14.
13618for as_var in BASH_ENV ENV MAIL MAILPATH
13619do eval test x\${$as_var+set} = xset \
13620 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13621done
c6b750e1
DJ
13622PS1='$ '
13623PS2='> '
13624PS4='+ '
13625
13626# NLS nuisances.
81ecdfbb
RW
13627LC_ALL=C
13628export LC_ALL
13629LANGUAGE=C
13630export LANGUAGE
13631
13632# CDPATH.
13633(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13634
13635
13636# as_fn_error ERROR [LINENO LOG_FD]
13637# ---------------------------------
13638# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13639# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13640# script with status $?, using 1 if that was 0.
13641as_fn_error ()
13642{
13643 as_status=$?; test $as_status -eq 0 && as_status=1
13644 if test "$3"; then
13645 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13646 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 13647 fi
81ecdfbb
RW
13648 $as_echo "$as_me: error: $1" >&2
13649 as_fn_exit $as_status
13650} # as_fn_error
13651
13652
13653# as_fn_set_status STATUS
13654# -----------------------
13655# Set $? to STATUS, without forking.
13656as_fn_set_status ()
13657{
13658 return $1
13659} # as_fn_set_status
13660
13661# as_fn_exit STATUS
13662# -----------------
13663# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13664as_fn_exit ()
13665{
13666 set +e
13667 as_fn_set_status $1
13668 exit $1
13669} # as_fn_exit
13670
13671# as_fn_unset VAR
13672# ---------------
13673# Portably unset VAR.
13674as_fn_unset ()
13675{
13676 { eval $1=; unset $1;}
13677}
13678as_unset=as_fn_unset
13679# as_fn_append VAR VALUE
13680# ----------------------
13681# Append the text in VALUE to the end of the definition contained in VAR. Take
13682# advantage of any shell optimizations that allow amortized linear growth over
13683# repeated appends, instead of the typical quadratic growth present in naive
13684# implementations.
13685if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13686 eval 'as_fn_append ()
13687 {
13688 eval $1+=\$2
13689 }'
13690else
13691 as_fn_append ()
13692 {
13693 eval $1=\$$1\$2
13694 }
13695fi # as_fn_append
13696
13697# as_fn_arith ARG...
13698# ------------------
13699# Perform arithmetic evaluation on the ARGs, and store the result in the
13700# global $as_val. Take advantage of shells that can avoid forks. The arguments
13701# must be portable across $(()) and expr.
13702if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13703 eval 'as_fn_arith ()
13704 {
13705 as_val=$(( $* ))
13706 }'
13707else
13708 as_fn_arith ()
13709 {
13710 as_val=`expr "$@" || test $? -eq 1`
13711 }
13712fi # as_fn_arith
13713
c6b750e1 13714
81ecdfbb
RW
13715if expr a : '\(a\)' >/dev/null 2>&1 &&
13716 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
13717 as_expr=expr
13718else
13719 as_expr=false
13720fi
13721
81ecdfbb 13722if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
13723 as_basename=basename
13724else
13725 as_basename=false
13726fi
13727
81ecdfbb
RW
13728if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13729 as_dirname=dirname
13730else
13731 as_dirname=false
13732fi
c6b750e1 13733
81ecdfbb 13734as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
13735$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13736 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
13737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13738$as_echo X/"$0" |
13739 sed '/^.*\/\([^/][^/]*\)\/*$/{
13740 s//\1/
13741 q
13742 }
13743 /^X\/\(\/\/\)$/{
13744 s//\1/
13745 q
13746 }
13747 /^X\/\(\/\).*/{
13748 s//\1/
13749 q
13750 }
13751 s/.*/./; q'`
c6b750e1 13752
c6b750e1
DJ
13753# Avoid depending upon Character Ranges.
13754as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13755as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13756as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13757as_cr_digits='0123456789'
13758as_cr_alnum=$as_cr_Letters$as_cr_digits
13759
81ecdfbb
RW
13760ECHO_C= ECHO_N= ECHO_T=
13761case `echo -n x` in #(((((
13762-n*)
13763 case `echo 'xy\c'` in
13764 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13765 xy) ECHO_C='\c';;
13766 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13767 ECHO_T=' ';;
13768 esac;;
13769*)
13770 ECHO_N='-n';;
c6b750e1
DJ
13771esac
13772
81ecdfbb
RW
13773rm -f conf$$ conf$$.exe conf$$.file
13774if test -d conf$$.dir; then
13775 rm -f conf$$.dir/conf$$.file
c6b750e1 13776else
81ecdfbb
RW
13777 rm -f conf$$.dir
13778 mkdir conf$$.dir 2>/dev/null
c6b750e1 13779fi
81ecdfbb
RW
13780if (echo >conf$$.file) 2>/dev/null; then
13781 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 13782 as_ln_s='ln -s'
81ecdfbb
RW
13783 # ... but there are two gotchas:
13784 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13785 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13786 # In both cases, we have to default to `cp -p'.
13787 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13788 as_ln_s='cp -p'
13789 elif ln conf$$.file conf$$ 2>/dev/null; then
13790 as_ln_s=ln
13791 else
13792 as_ln_s='cp -p'
c6b750e1 13793 fi
c6b750e1
DJ
13794else
13795 as_ln_s='cp -p'
13796fi
81ecdfbb
RW
13797rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13798rmdir conf$$.dir 2>/dev/null
13799
13800
13801# as_fn_mkdir_p
13802# -------------
13803# Create "$as_dir" as a directory, including parents if necessary.
13804as_fn_mkdir_p ()
13805{
13806
13807 case $as_dir in #(
13808 -*) as_dir=./$as_dir;;
13809 esac
13810 test -d "$as_dir" || eval $as_mkdir_p || {
13811 as_dirs=
13812 while :; do
13813 case $as_dir in #(
13814 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13815 *) as_qdir=$as_dir;;
13816 esac
13817 as_dirs="'$as_qdir' $as_dirs"
13818 as_dir=`$as_dirname -- "$as_dir" ||
13819$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13820 X"$as_dir" : 'X\(//\)[^/]' \| \
13821 X"$as_dir" : 'X\(//\)$' \| \
13822 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13823$as_echo X"$as_dir" |
13824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13825 s//\1/
13826 q
13827 }
13828 /^X\(\/\/\)[^/].*/{
13829 s//\1/
13830 q
13831 }
13832 /^X\(\/\/\)$/{
13833 s//\1/
13834 q
13835 }
13836 /^X\(\/\).*/{
13837 s//\1/
13838 q
13839 }
13840 s/.*/./; q'`
13841 test -d "$as_dir" && break
13842 done
13843 test -z "$as_dirs" || eval "mkdir $as_dirs"
13844 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13845
c6b750e1 13846
81ecdfbb 13847} # as_fn_mkdir_p
c6b750e1 13848if mkdir -p . 2>/dev/null; then
81ecdfbb 13849 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
13850else
13851 test -d ./-p && rmdir ./-p
13852 as_mkdir_p=false
13853fi
13854
81ecdfbb
RW
13855if test -x / >/dev/null 2>&1; then
13856 as_test_x='test -x'
13857else
13858 if ls -dL / >/dev/null 2>&1; then
13859 as_ls_L_option=L
13860 else
13861 as_ls_L_option=
13862 fi
13863 as_test_x='
13864 eval sh -c '\''
13865 if test -d "$1"; then
13866 test -d "$1/.";
13867 else
13868 case $1 in #(
13869 -*)set "./$1";;
13870 esac;
13871 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13872 ???[sx]*):;;*)false;;esac;fi
13873 '\'' sh
13874 '
13875fi
13876as_executable_p=$as_test_x
c6b750e1
DJ
13877
13878# Sed expression to map a string onto a valid CPP name.
13879as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13880
13881# Sed expression to map a string onto a valid variable name.
13882as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13883
13884
c6b750e1 13885exec 6>&1
81ecdfbb
RW
13886## ----------------------------------- ##
13887## Main body of $CONFIG_STATUS script. ##
13888## ----------------------------------- ##
13889_ASEOF
13890test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13891
13892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13893# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 13894# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
13895# values after options handling.
13896ac_log="
c6b750e1 13897This file was extended by $as_me, which was
81ecdfbb 13898generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
13899
13900 CONFIG_FILES = $CONFIG_FILES
13901 CONFIG_HEADERS = $CONFIG_HEADERS
13902 CONFIG_LINKS = $CONFIG_LINKS
13903 CONFIG_COMMANDS = $CONFIG_COMMANDS
13904 $ $0 $@
13905
81ecdfbb
RW
13906on `(hostname || uname -n) 2>/dev/null | sed 1q`
13907"
13908
c6b750e1
DJ
13909_ACEOF
13910
81ecdfbb
RW
13911case $ac_config_files in *"
13912"*) set x $ac_config_files; shift; ac_config_files=$*;;
13913esac
c6b750e1 13914
c6b750e1 13915
c6b750e1 13916
81ecdfbb
RW
13917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13918# Files that config.status was made for.
13919config_files="$ac_config_files"
c6b750e1 13920
81ecdfbb 13921_ACEOF
c6b750e1 13922
81ecdfbb 13923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 13924ac_cs_usage="\
81ecdfbb
RW
13925\`$as_me' instantiates files and other configuration actions
13926from templates according to the current configuration. Unless the files
13927and actions are specified as TAGs, all are instantiated by default.
c6b750e1 13928
81ecdfbb 13929Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
13930
13931 -h, --help print this help, then exit
81ecdfbb
RW
13932 -V, --version print version number and configuration settings, then exit
13933 -q, --quiet, --silent
13934 do not print progress messages
c6b750e1
DJ
13935 -d, --debug don't remove temporary files
13936 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13937 --file=FILE[:TEMPLATE]
13938 instantiate the configuration file FILE
c6b750e1
DJ
13939
13940Configuration files:
13941$config_files
13942
81ecdfbb 13943Report bugs to the package provider."
c6b750e1 13944
81ecdfbb
RW
13945_ACEOF
13946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
13947ac_cs_version="\\
13948config.status
81ecdfbb
RW
13949configured by $0, generated by GNU Autoconf 2.64,
13950 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 13951
81ecdfbb 13952Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
13953This config.status script is free software; the Free Software Foundation
13954gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13955
13956ac_pwd='$ac_pwd'
13957srcdir='$srcdir'
13958INSTALL='$INSTALL'
8e957354 13959AWK='$AWK'
81ecdfbb 13960test -n "\$AWK" || AWK=awk
c6b750e1
DJ
13961_ACEOF
13962
81ecdfbb
RW
13963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13964# The default lists apply if the user does not specify any file.
c6b750e1
DJ
13965ac_need_defaults=:
13966while test $# != 0
a0da8069 13967do
c6b750e1
DJ
13968 case $1 in
13969 --*=*)
81ecdfbb
RW
13970 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13971 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
13972 ac_shift=:
13973 ;;
81ecdfbb 13974 *)
c6b750e1
DJ
13975 ac_option=$1
13976 ac_optarg=$2
13977 ac_shift=shift
13978 ;;
c6b750e1
DJ
13979 esac
13980
13981 case $ac_option in
13982 # Handling of the options.
a0da8069 13983 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 13984 ac_cs_recheck=: ;;
81ecdfbb
RW
13985 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13986 $as_echo "$ac_cs_version"; exit ;;
13987 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
13988 debug=: ;;
13989 --file | --fil | --fi | --f )
13990 $ac_shift
81ecdfbb
RW
13991 case $ac_optarg in
13992 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13993 esac
13994 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 13995 ac_need_defaults=false;;
81ecdfbb
RW
13996 --he | --h | --help | --hel | -h )
13997 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
13998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13999 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14000 ac_cs_silent=: ;;
14001
14002 # This is an error.
81ecdfbb
RW
14003 -*) as_fn_error "unrecognized option: \`$1'
14004Try \`$0 --help' for more information." ;;
c6b750e1 14005
81ecdfbb
RW
14006 *) as_fn_append ac_config_targets " $1"
14007 ac_need_defaults=false ;;
c6b750e1 14008
376a0e54 14009 esac
c6b750e1 14010 shift
376a0e54
CM
14011done
14012
c6b750e1 14013ac_configure_extra_args=
376a0e54 14014
c6b750e1
DJ
14015if $ac_cs_silent; then
14016 exec 6>/dev/null
14017 ac_configure_extra_args="$ac_configure_extra_args --silent"
14018fi
376a0e54 14019
c6b750e1 14020_ACEOF
81ecdfbb 14021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14022if \$ac_cs_recheck; then
81ecdfbb
RW
14023 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14024 shift
14025 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14026 CONFIG_SHELL='$SHELL'
14027 export CONFIG_SHELL
14028 exec "\$@"
c6b750e1
DJ
14029fi
14030
14031_ACEOF
81ecdfbb
RW
14032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14033exec 5>>config.log
14034{
14035 echo
14036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14037## Running $as_me. ##
14038_ASBOX
14039 $as_echo "$ac_log"
14040} >&5
c6b750e1 14041
81ecdfbb
RW
14042_ACEOF
14043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14044#
14045# INIT-COMMANDS
14046#
14047extrasub_build="$extrasub_build"
14048 extrasub_host="$extrasub_host"
14049 extrasub_target="$extrasub_target"
14050
81ecdfbb 14051_ACEOF
c6b750e1 14052
81ecdfbb 14053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14054
81ecdfbb 14055# Handling of arguments.
c6b750e1
DJ
14056for ac_config_target in $ac_config_targets
14057do
81ecdfbb
RW
14058 case $ac_config_target in
14059 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14060
14061 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14062 esac
14063done
14064
81ecdfbb 14065
c6b750e1
DJ
14066# If the user did not use the arguments to specify the items to instantiate,
14067# then the envvar interface is used. Set only those that are not.
14068# We use the long form for the default assignment because of an extremely
14069# bizarre bug on SunOS 4.1.3.
14070if $ac_need_defaults; then
14071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14072fi
14073
14074# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14075# simply because there is no reason against having it here, and in addition,
c6b750e1 14076# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14077# Hook for its removal unless debugging.
14078# Note that there is a small window in which the directory will not be cleaned:
14079# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14080$debug ||
14081{
81ecdfbb
RW
14082 tmp=
14083 trap 'exit_status=$?
14084 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14085' 0
14086 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14087}
c6b750e1
DJ
14088# Create a (secure) tmp directory for tmp files.
14089
14090{
81ecdfbb 14091 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14092 test -n "$tmp" && test -d "$tmp"
14093} ||
14094{
81ecdfbb
RW
14095 tmp=./conf$$-$RANDOM
14096 (umask 077 && mkdir "$tmp")
14097} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14098
14099# Set up the scripts for CONFIG_FILES section.
14100# No need to generate them if there are no CONFIG_FILES.
14101# This happens for instance with `./config.status config.h'.
14102if test -n "$CONFIG_FILES"; then
14103
14104if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14105 ac_cs_awk_getline=:
14106 ac_cs_awk_pipe_init=
14107 ac_cs_awk_read_file='
14108 while ((getline aline < (F[key])) > 0)
14109 print(aline)
14110 close(F[key])'
14111 ac_cs_awk_pipe_fini=
14112else
14113 ac_cs_awk_getline=false
14114 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14115 ac_cs_awk_read_file='
14116 print "|#_!!_#|"
14117 print "cat " F[key] " &&"
14118 '$ac_cs_awk_pipe_init
14119 # The final `:' finishes the AND list.
14120 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14121fi
14122ac_cr=`echo X | tr X '\015'`
14123# On cygwin, bash can eat \r inside `` if the user requested igncr.
14124# But we know of no other shell where ac_cr would be empty at this
14125# point, so we can use a bashism as a fallback.
14126if test "x$ac_cr" = x; then
14127 eval ac_cr=\$\'\\r\'
14128fi
14129ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14130if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14131 ac_cs_awk_cr='\r'
14132else
14133 ac_cs_awk_cr=$ac_cr
14134fi
14135
14136echo 'BEGIN {' >"$tmp/subs1.awk" &&
14137_ACEOF
14138
14139# Create commands to substitute file output variables.
c6b750e1 14140{
81ecdfbb
RW
14141 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14142 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14143 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14144 echo "_ACAWK" &&
14145 echo "_ACEOF"
14146} >conf$$files.sh &&
14147. ./conf$$files.sh ||
14148 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14149rm -f conf$$files.sh
c6b750e1 14150
81ecdfbb
RW
14151{
14152 echo "cat >conf$$subs.awk <<_ACEOF" &&
14153 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14154 echo "_ACEOF"
14155} >conf$$subs.sh ||
14156 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14157ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14158ac_delim='%!_!# '
14159for ac_last_try in false false false false false :; do
14160 . ./conf$$subs.sh ||
14161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14162
14163 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14164 if test $ac_delim_n = $ac_delim_num; then
14165 break
14166 elif $ac_last_try; then
14167 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14168 else
14169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14170 fi
14171done
14172rm -f conf$$subs.sh
14173
14174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14175cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14176_ACEOF
81ecdfbb
RW
14177sed -n '
14178h
14179s/^/S["/; s/!.*/"]=/
14180p
14181g
14182s/^[^!]*!//
14183:repl
14184t repl
14185s/'"$ac_delim"'$//
14186t delim
14187:nl
14188h
14189s/\(.\{148\}\).*/\1/
14190t more1
14191s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14192p
14193n
14194b repl
14195:more1
14196s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14197p
14198g
14199s/.\{148\}//
14200t nl
14201:delim
14202h
14203s/\(.\{148\}\).*/\1/
14204t more2
14205s/["\\]/\\&/g; s/^/"/; s/$/"/
14206p
14207b
14208:more2
14209s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14210p
14211g
14212s/.\{148\}//
14213t delim
14214' <conf$$subs.awk | sed '
14215/^[^""]/{
14216 N
14217 s/\n//
14218}
14219' >>$CONFIG_STATUS || ac_write_fail=1
14220rm -f conf$$subs.awk
14221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14222_ACAWK
14223cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14224 for (key in S) S_is_set[key] = 1
14225 FS = "\a"
14226 \$ac_cs_awk_pipe_init
14227}
14228{
14229 line = $ 0
14230 nfields = split(line, field, "@")
14231 substed = 0
14232 len = length(field[1])
14233 for (i = 2; i < nfields; i++) {
14234 key = field[i]
14235 keylen = length(key)
14236 if (S_is_set[key]) {
14237 value = S[key]
14238 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14239 len += length(value) + length(field[++i])
14240 substed = 1
14241 } else
14242 len += 1 + keylen
14243 }
14244 if (nfields == 3 && !substed) {
14245 key = field[2]
14246 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14247 \$ac_cs_awk_read_file
14248 next
14249 }
14250 }
14251 print line
14252}
14253\$ac_cs_awk_pipe_fini
14254_ACAWK
14255_ACEOF
14256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14257if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14258 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14259else
14260 cat
14261fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14262 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14263_ACEOF
14264
14265# VPATH may cause trouble with some makes, so we remove $(srcdir),
14266# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14267# trailing colons and then remove the whole line if VPATH becomes empty
14268# (actually we leave an empty line to preserve line numbers).
14269if test "x$srcdir" = x.; then
14270 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14271s/:*\$(srcdir):*/:/
14272s/:*\${srcdir}:*/:/
14273s/:*@srcdir@:*/:/
14274s/^\([^=]*=[ ]*\):*/\1/
14275s/:*$//
14276s/^[^=]*=[ ]*$//
14277}'
14278fi
c6b750e1 14279
81ecdfbb
RW
14280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14281fi # test -n "$CONFIG_FILES"
c6b750e1 14282
c6b750e1 14283
81ecdfbb
RW
14284eval set X " :F $CONFIG_FILES "
14285shift
14286for ac_tag
14287do
14288 case $ac_tag in
14289 :[FHLC]) ac_mode=$ac_tag; continue;;
14290 esac
14291 case $ac_mode$ac_tag in
14292 :[FHL]*:*);;
14293 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14294 :[FH]-) ac_tag=-:-;;
14295 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14296 esac
14297 ac_save_IFS=$IFS
14298 IFS=:
14299 set x $ac_tag
14300 IFS=$ac_save_IFS
14301 shift
14302 ac_file=$1
14303 shift
252b5132 14304
81ecdfbb
RW
14305 case $ac_mode in
14306 :L) ac_source=$1;;
14307 :[FH])
14308 ac_file_inputs=
14309 for ac_f
14310 do
14311 case $ac_f in
14312 -) ac_f="$tmp/stdin";;
14313 *) # Look for the file first in the build tree, then in the source tree
14314 # (if the path is not absolute). The absolute path cannot be DOS-style,
14315 # because $ac_f cannot contain `:'.
14316 test -f "$ac_f" ||
14317 case $ac_f in
14318 [\\/$]*) false;;
14319 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14320 esac ||
14321 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14322 esac
14323 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14324 as_fn_append ac_file_inputs " '$ac_f'"
14325 done
c6b750e1 14326
81ecdfbb
RW
14327 # Let's still pretend it is `configure' which instantiates (i.e., don't
14328 # use $as_me), people would be surprised to read:
14329 # /* config.h. Generated by config.status. */
14330 configure_input='Generated from '`
14331 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14332 `' by configure.'
14333 if test x"$ac_file" != x-; then
14334 configure_input="$ac_file. $configure_input"
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14336$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 14337 fi
81ecdfbb
RW
14338 # Neutralize special characters interpreted by sed in replacement strings.
14339 case $configure_input in #(
14340 *\&* | *\|* | *\\* )
14341 ac_sed_conf_input=`$as_echo "$configure_input" |
14342 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14343 *) ac_sed_conf_input=$configure_input;;
14344 esac
cac3d6c4 14345
81ecdfbb
RW
14346 case $ac_tag in
14347 *:-:* | *:-) cat >"$tmp/stdin" \
14348 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14349 esac
14350 ;;
a0da8069 14351 esac
252b5132 14352
81ecdfbb 14353 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
14354$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14355 X"$ac_file" : 'X\(//\)[^/]' \| \
14356 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
14357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14358$as_echo X"$ac_file" |
14359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14360 s//\1/
14361 q
14362 }
14363 /^X\(\/\/\)[^/].*/{
14364 s//\1/
14365 q
14366 }
14367 /^X\(\/\/\)$/{
14368 s//\1/
14369 q
14370 }
14371 /^X\(\/\).*/{
14372 s//\1/
14373 q
14374 }
14375 s/.*/./; q'`
14376 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 14377 ac_builddir=.
252b5132 14378
81ecdfbb
RW
14379case "$ac_dir" in
14380.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14381*)
14382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14383 # A ".." for each directory in $ac_dir_suffix.
14384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14385 case $ac_top_builddir_sub in
14386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14388 esac ;;
14389esac
14390ac_abs_top_builddir=$ac_pwd
14391ac_abs_builddir=$ac_pwd$ac_dir_suffix
14392# for backward compatibility:
14393ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
14394
14395case $srcdir in
81ecdfbb 14396 .) # We are building in place.
c6b750e1 14397 ac_srcdir=.
81ecdfbb
RW
14398 ac_top_srcdir=$ac_top_builddir_sub
14399 ac_abs_top_srcdir=$ac_pwd ;;
14400 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 14401 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
14402 ac_top_srcdir=$srcdir
14403 ac_abs_top_srcdir=$srcdir ;;
14404 *) # Relative name.
14405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14406 ac_top_srcdir=$ac_top_build_prefix$srcdir
14407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 14408esac
81ecdfbb 14409ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 14410
252b5132 14411
81ecdfbb
RW
14412 case $ac_mode in
14413 :F)
14414 #
14415 # CONFIG_FILE
14416 #
c6b750e1
DJ
14417
14418 case $INSTALL in
14419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 14420 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 14421 esac
81ecdfbb 14422_ACEOF
252b5132 14423
81ecdfbb
RW
14424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14425# If the template does not know about datarootdir, expand it.
14426# FIXME: This hack should be removed a few years after 2.60.
14427ac_datarootdir_hack=; ac_datarootdir_seen=
14428ac_sed_dataroot='
14429/datarootdir/ {
14430 p
14431 q
14432}
14433/@datadir@/p
14434/@docdir@/p
14435/@infodir@/p
14436/@localedir@/p
14437/@mandir@/p'
14438case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14439*datarootdir*) ac_datarootdir_seen=yes;;
14440*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14442$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 14443_ACEOF
81ecdfbb
RW
14444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14445 ac_datarootdir_hack='
14446 s&@datadir@&$datadir&g
14447 s&@docdir@&$docdir&g
14448 s&@infodir@&$infodir&g
14449 s&@localedir@&$localedir&g
14450 s&@mandir@&$mandir&g
14451 s&\\\${datarootdir}&$datarootdir&g' ;;
14452esac
14453_ACEOF
14454
14455# Neutralize VPATH when `$srcdir' = `.'.
14456# Shell code in configure.ac might set extrasub.
14457# FIXME: do we really want to maintain this feature?
14458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14459ac_sed_extra="$ac_vpsub
c6b750e1
DJ
14460$extrasub
14461_ACEOF
81ecdfbb 14462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
14463:t
14464/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
14465s|@configure_input@|$ac_sed_conf_input|;t t
14466s&@top_builddir@&$ac_top_builddir_sub&;t t
14467s&@top_build_prefix@&$ac_top_build_prefix&;t t
14468s&@srcdir@&$ac_srcdir&;t t
14469s&@abs_srcdir@&$ac_abs_srcdir&;t t
14470s&@top_srcdir@&$ac_top_srcdir&;t t
14471s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14472s&@builddir@&$ac_builddir&;t t
14473s&@abs_builddir@&$ac_abs_builddir&;t t
14474s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14475s&@INSTALL@&$ac_INSTALL&;t t
14476$ac_datarootdir_hack
14477"
14478eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14479if $ac_cs_awk_getline; then
14480 $AWK -f "$tmp/subs.awk"
14481else
14482 $AWK -f "$tmp/subs.awk" | $SHELL
14483fi >$tmp/out \
14484 || as_fn_error "could not create $ac_file" "$LINENO" 5
14485
14486test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14487 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14488 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14490which seems to be undefined. Please make sure it is defined." >&5
14491$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14492which seems to be undefined. Please make sure it is defined." >&2;}
14493
14494 rm -f "$tmp/stdin"
14495 case $ac_file in
14496 -) cat "$tmp/out" && rm -f "$tmp/out";;
14497 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14498 esac \
14499 || as_fn_error "could not create $ac_file" "$LINENO" 5
14500 ;;
c148b4cb 14501
c148b4cb 14502
c148b4cb 14503
81ecdfbb
RW
14504 esac
14505
06a51eac
RW
14506
14507 case $ac_file$ac_mode in
14508 "Makefile":F) sed "$extrasub_build" Makefile |
14509 sed "$extrasub_host" |
14510 sed "$extrasub_target" > mf$$
14511 mv -f mf$$ Makefile ;;
14512
14513 esac
81ecdfbb
RW
14514done # for ac_tag
14515
14516
14517as_fn_exit 0
c6b750e1 14518_ACEOF
c6b750e1
DJ
14519ac_clean_files=$ac_clean_files_save
14520
81ecdfbb
RW
14521test $ac_write_fail = 0 ||
14522 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14523
c6b750e1
DJ
14524
14525# configure is writing to config.log, and then calls config.status.
14526# config.status does its own redirection, appending to config.log.
14527# Unfortunately, on DOS this fails, as config.log is still kept open
14528# by configure, so config.status won't be able to write to it; its
14529# output is simply discarded. So we exec the FD to /dev/null,
14530# effectively closing config.log, so it can be properly (re)opened and
14531# appended to by config.status. When coming back to configure, we
14532# need to make the FD available again.
14533if test "$no_create" != yes; then
14534 ac_cs_success=:
14535 ac_config_status_args=
14536 test "$silent" = yes &&
14537 ac_config_status_args="$ac_config_status_args --quiet"
14538 exec 5>/dev/null
14539 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14540 exec 5>>config.log
14541 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14542 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14543 $ac_cs_success || as_fn_exit $?
14544fi
14545if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14547$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 14548fi
c148b4cb 14549
This page took 1.520234 seconds and 4 git commands to generate.