Sync config with GCC
[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
b121d7d4 573READELF_FOR_TARGET
81ecdfbb
RW
574RANLIB_FOR_TARGET
575OBJDUMP_FOR_TARGET
576NM_FOR_TARGET
577LIPO_FOR_TARGET
578LD_FOR_TARGET
579DLLTOOL_FOR_TARGET
580AS_FOR_TARGET
581AR_FOR_TARGET
e552509b 582GOC_FOR_TARGET
81ecdfbb
RW
583GFORTRAN_FOR_TARGET
584GCJ_FOR_TARGET
585GCC_FOR_TARGET
586CXX_FOR_TARGET
587CC_FOR_TARGET
b121d7d4 588READELF
81ecdfbb
RW
589OBJDUMP
590OBJCOPY
591WINDMC
592WINDRES
593STRIP
594RANLIB
595NM
596LIPO
597LD
598DLLTOOL
599AS
600AR
601RUNTEST
602EXPECT
603MAKEINFO
604FLEX
605LEX
606M4
607BISON
608YACC
81ecdfbb
RW
609WINDRES_FOR_BUILD
610WINDMC_FOR_BUILD
611RANLIB_FOR_BUILD
612NM_FOR_BUILD
613LD_FOR_BUILD
614LDFLAGS_FOR_BUILD
e552509b 615GOC_FOR_BUILD
81ecdfbb
RW
616GFORTRAN_FOR_BUILD
617GCJ_FOR_BUILD
618DLLTOOL_FOR_BUILD
619CXX_FOR_BUILD
620CXXFLAGS_FOR_BUILD
621CFLAGS_FOR_BUILD
622CC_FOR_BUILD
623AS_FOR_BUILD
624AR_FOR_BUILD
911e63d0 625target_configdirs
81ecdfbb 626configdirs
81ecdfbb 627build_configdirs
81ecdfbb
RW
628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
4074d5f2
RW
635target_configargs
636host_configargs
637build_configargs
96655cc4 638BUILD_CONFIG
91c1f14c 639LDFLAGS_FOR_TARGET
81ecdfbb
RW
640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
644stage1_languages
700d40ca 645extra_host_libiberty_configure_flags
81ecdfbb
RW
646clooginc
647clooglibs
7ec59b9e
L
648islinc
649isllibs
81ecdfbb 650poststage1_ldflags
143754cd 651poststage1_libs
81ecdfbb
RW
652stage1_libs
653stage1_ldflags
7ec59b9e 654extra_isl_gmp_configure_flags
81ecdfbb
RW
655extra_mpc_mpfr_configure_flags
656extra_mpc_gmp_configure_flags
657extra_mpfr_configure_flags
658gmpinc
659gmplibs
660do_compare
661GNATMAKE
662GNATBIND
663ac_ct_CXX
664CXXFLAGS
665CXX
666OBJEXT
667EXEEXT
668ac_ct_CC
669CPPFLAGS
670LDFLAGS
671CFLAGS
672CC
ffdd6afc 673EXTRA_CONFIGARGS_LIBJAVA
81ecdfbb
RW
674target_subdir
675host_subdir
676build_subdir
677build_libsubdir
8e957354
PB
678AWK
679SED
81ecdfbb
RW
680LN_S
681LN
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693target_noncanonical
694host_noncanonical
695build_noncanonical
696build_os
697build_vendor
698build_cpu
699build
700TOPLEVEL_CONFIGURE_ARGUMENTS
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files='serialization_dependencies
740host_makefile_frag
741target_makefile_frag
742alphaieee_frag
743ospace_frag'
744ac_user_opts='
745enable_option_checking
746with_build_libsubdir
747enable_gold
c7791212 748enable_ld
89a1e9c3
PB
749enable_libquadmath
750enable_libquadmath_support
81ecdfbb
RW
751enable_libada
752enable_libssp
ffdd6afc
ILT
753enable_static_libjava
754enable_bootstrap
81ecdfbb
RW
755with_mpc
756with_mpc_include
757with_mpc_lib
758with_mpfr_dir
759with_mpfr
760with_mpfr_include
761with_mpfr_lib
762with_gmp_dir
763with_gmp
764with_gmp_include
765with_gmp_lib
766with_host_libstdcxx
767with_stage1_ldflags
768with_stage1_libs
81ecdfbb 769with_boot_libs
143754cd 770with_boot_ldflags
7ec59b9e
L
771with_isl
772with_isl_include
773with_isl_lib
774enable_isl_version_check
81ecdfbb
RW
775with_cloog
776with_cloog_include
777with_cloog_lib
778enable_cloog_version_check
700d40ca 779enable_lto
81ecdfbb
RW
780enable_stage1_languages
781enable_objc_gc
782with_build_sysroot
783with_debug_prefix_map
96655cc4 784with_build_config
81ecdfbb
RW
785enable_serial_configure
786with_build_time_tools
787enable_maintainer_mode
788enable_stage1_checking
789enable_werror
81ecdfbb
RW
790'
791 ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
799CXX
800CXXFLAGS
801CCC
4074d5f2
RW
802build_configargs
803host_configargs
804target_configargs
81ecdfbb
RW
805AR
806AS
807DLLTOOL
808LD
809LIPO
810NM
811RANLIB
812STRIP
813WINDRES
814WINDMC
815OBJCOPY
816OBJDUMP
b121d7d4 817READELF
81ecdfbb
RW
818CC_FOR_TARGET
819CXX_FOR_TARGET
820GCC_FOR_TARGET
821GCJ_FOR_TARGET
822GFORTRAN_FOR_TARGET
e552509b 823GOC_FOR_TARGET
81ecdfbb
RW
824AR_FOR_TARGET
825AS_FOR_TARGET
826DLLTOOL_FOR_TARGET
827LD_FOR_TARGET
828LIPO_FOR_TARGET
829NM_FOR_TARGET
830OBJDUMP_FOR_TARGET
831RANLIB_FOR_TARGET
b121d7d4 832READELF_FOR_TARGET
81ecdfbb
RW
833STRIP_FOR_TARGET
834WINDRES_FOR_TARGET
835WINDMC_FOR_TARGET'
836
a0da8069
NN
837
838# Initialize some variables set by options.
c6b750e1
DJ
839ac_init_help=
840ac_init_version=false
81ecdfbb
RW
841ac_unrecognized_opts=
842ac_unrecognized_sep=
a0da8069
NN
843# The variables have the same names as the options, with
844# dashes changed to underlines.
c6b750e1 845cache_file=/dev/null
a0da8069 846exec_prefix=NONE
a0da8069 847no_create=
a0da8069
NN
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
a0da8069
NN
856verbose=
857x_includes=NONE
858x_libraries=NONE
c6b750e1
DJ
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 865# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
a0da8069
NN
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
a0da8069
NN
874includedir='${prefix}/include'
875oldincludedir='/usr/include'
81ecdfbb
RW
876docdir='${datarootdir}/doc/${PACKAGE}'
877infodir='${datarootdir}/info'
878htmldir='${docdir}'
879dvidir='${docdir}'
880pdfdir='${docdir}'
881psdir='${docdir}'
882libdir='${exec_prefix}/lib'
883localedir='${datarootdir}/locale'
884mandir='${datarootdir}/man'
252b5132 885
a0da8069 886ac_prev=
81ecdfbb 887ac_dashdash=
a0da8069
NN
888for ac_option
889do
a0da8069
NN
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
81ecdfbb 892 eval $ac_prev=\$ac_option
a0da8069
NN
893 ac_prev=
894 continue
895 fi
252b5132 896
81ecdfbb
RW
897 case $ac_option in
898 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *) ac_optarg=yes ;;
900 esac
a0da8069
NN
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
81ecdfbb
RW
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
a0da8069
NN
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 911 bindir=$ac_optarg ;;
a0da8069
NN
912
913 -build | --build | --buil | --bui | --bu)
c6b750e1 914 ac_prev=build_alias ;;
a0da8069 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 916 build_alias=$ac_optarg ;;
a0da8069
NN
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
a0da8069 927
81ecdfbb 928 -datadir | --datadir | --datadi | --datad)
a0da8069 929 ac_prev=datadir ;;
81ecdfbb 930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 931 datadir=$ac_optarg ;;
a0da8069 932
81ecdfbb
RW
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
a0da8069 940 -disable-* | --disable-*)
81ecdfbb 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 942 # Reject names that are not valid shell variable names.
81ecdfbb
RW
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
a0da8069
NN
965
966 -enable-* | --enable-*)
81ecdfbb 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 968 # Reject names that are not valid shell variable names.
81ecdfbb
RW
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975"enable_$ac_useropt"
976"*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
a0da8069 979 esac
81ecdfbb 980 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
c6b750e1 989 exec_prefix=$ac_optarg ;;
a0da8069
NN
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
c6b750e1
DJ
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
a0da8069
NN
1001
1002 -host | --host | --hos | --ho)
c6b750e1 1003 ac_prev=host_alias ;;
a0da8069 1004 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1005 host_alias=$ac_optarg ;;
a0da8069 1006
81ecdfbb
RW
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
a0da8069
NN
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1018 includedir=$ac_optarg ;;
a0da8069
NN
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1023 infodir=$ac_optarg ;;
a0da8069
NN
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1028 libdir=$ac_optarg ;;
a0da8069
NN
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1035 libexecdir=$ac_optarg ;;
a0da8069 1036
81ecdfbb
RW
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
a0da8069 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1043 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1047 localstatedir=$ac_optarg ;;
a0da8069
NN
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1052 mandir=$ac_optarg ;;
a0da8069
NN
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1059 | --no-cr | --no-c | -n)
a0da8069
NN
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1073 oldincludedir=$ac_optarg ;;
a0da8069
NN
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1078 prefix=$ac_optarg ;;
a0da8069
NN
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1085 program_prefix=$ac_optarg ;;
a0da8069
NN
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1092 program_suffix=$ac_optarg ;;
a0da8069
NN
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1109 program_transform_name=$ac_optarg ;;
a0da8069 1110
81ecdfbb
RW
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
a0da8069
NN
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
c6b750e1 1129 sbindir=$ac_optarg ;;
a0da8069
NN
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
c6b750e1 1140 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
c6b750e1 1145 site=$ac_optarg ;;
a0da8069
NN
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1150 srcdir=$ac_optarg ;;
a0da8069
NN
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1157 sysconfdir=$ac_optarg ;;
a0da8069
NN
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1160 ac_prev=target_alias ;;
a0da8069 1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1162 target_alias=$ac_optarg ;;
a0da8069
NN
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
c6b750e1
DJ
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
a0da8069
NN
1169
1170 -with-* | --with-*)
81ecdfbb 1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1172 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
a0da8069 1183 esac
81ecdfbb 1184 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1185
1186 -without-* | --without-*)
81ecdfbb 1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1188 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195"with_$ac_useropt"
1196"*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
a0da8069
NN
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1211 x_includes=$ac_optarg ;;
a0da8069
NN
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1218 x_libraries=$ac_optarg ;;
a0da8069 1219
81ecdfbb
RW
1220 -*) as_fn_error "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information."
a0da8069
NN
1222 ;;
1223
c6b750e1
DJ
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1232 export $ac_envvar ;;
1233
a0da8069 1234 *)
c6b750e1 1235 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1239 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1240 ;;
1241
1242 esac
1243done
1244
1245if test -n "$ac_prev"; then
c6b750e1 1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1247 as_fn_error "missing argument to $ac_option"
a0da8069 1248fi
a0da8069 1249
81ecdfbb
RW
1250if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1255 esac
81ecdfbb 1256fi
a0da8069 1257
81ecdfbb
RW
1258# Check all directory arguments for consistency.
1259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
a0da8069 1263do
81ecdfbb
RW
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
c6b750e1 1272 case $ac_val in
81ecdfbb
RW
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1275 esac
81ecdfbb 1276 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1277done
1278
c6b750e1
DJ
1279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
1281# FIXME: To remove some day.
1282build=$build_alias
1283host=$host_alias
1284target=$target_alias
376a0e54 1285
c6b750e1
DJ
1286# FIXME: To remove some day.
1287if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
81ecdfbb 1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295fi
1296
1297ac_tool_prefix=
1298test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300test "$silent" = yes && exec 6>/dev/null
a0da8069 1301
a0da8069 1302
81ecdfbb
RW
1303ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304ac_ls_di=`ls -di .` &&
1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error "working directory cannot be determined"
1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error "pwd does not report name of working directory"
1309
1310
a0da8069
NN
1311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
81ecdfbb
RW
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320$as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
a0da8069 1338 srcdir=$ac_confdir
81ecdfbb 1339 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1340 srcdir=..
1341 fi
1342else
1343 ac_srcdir_defaulted=no
1344fi
81ecdfbb
RW
1345if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1348fi
1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1352 pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
6d0cd39e
AM
1363case $srcdir in
1364 *" "*)
1365 as_fn_error "path to source, $srcdir, contains spaces"
1366 ;;
1367esac
9cc8ae67
PB
1368ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1369
81ecdfbb
RW
1370for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375done
c6b750e1
DJ
1376
1377#
1378# Report the --help message.
1379#
1380if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1383 cat <<_ACEOF
1384\`configure' configures this package to adapt to many kinds of systems.
1385
1386Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389VAR=VALUE. See below for descriptions of some of the useful variables.
1390
1391Defaults for the options are specified in brackets.
1392
1393Configuration:
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403
c6b750e1
DJ
1404Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1406 [$ac_default_prefix]
c6b750e1 1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1408 [PREFIX]
c6b750e1
DJ
1409
1410By default, \`make install' will install all the files in
1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413for instance \`--prefix=\$HOME'.
1414
1415For better control, use the options below.
1416
1417Fine tuning of the installation directories:
81ecdfbb
RW
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1437_ACEOF
1438
1439 cat <<\_ACEOF
1440
1441Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445
1446System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1450_ACEOF
a0da8069 1451fi
a0da8069 1452
c6b750e1
DJ
1453if test -n "$ac_init_help"; then
1454
1455 cat <<\_ACEOF
1456
1457Optional Features:
81ecdfbb 1458 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1461 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1462 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1463 --disable-libquadmath do not build libquadmath directory
1464 --disable-libquadmath-support
1465 disable libquadmath support for Fortran
521ec477
DD
1466 --enable-libada build libada directory
1467 --enable-libssp build libssp directory
ffdd6afc
ILT
1468 --enable-static-libjava[=ARG]
1469 build static libjava [default=no]
1470 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e
L
1471 --disable-isl-version-check
1472 disable check for ISL version
e552509b
ILT
1473 --disable-cloog-version-check
1474 disable check for CLooG version
700d40ca 1475 --enable-lto enable link time optimization support
7837304f
AS
1476 --enable-stage1-languages[=all]
1477 choose additional languages to build during stage1.
1478 Mostly useful for compiler development
1479 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1480 Objective-C runtime
521ec477 1481 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1482 force sequential configuration of sub-packages for
1483 the host, target or build machine, or all
1484 sub-packages
1485 --enable-maintainer-mode
1486 enable make rules and dependencies not useful (and
1487 sometimes confusing) to the casual installer
1488 --enable-stage1-checking[=all]
1489 choose additional checking for stage1 of the
1490 compiler
c6b750e1
DJ
1491 --enable-werror enable -Werror in bootstrap stage2 and later
1492
1493Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1497 --with-mpc=PATH specify prefix directory for installed MPC package.
1498 Equivalent to --with-mpc-include=PATH/include plus
1499 --with-mpc-lib=PATH/lib
1500 --with-mpc-include=PATH specify directory for installed MPC include files
1501 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1502 --with-mpfr-dir=PATH this option has been REMOVED
1503 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1504 Equivalent to --with-mpfr-include=PATH/include plus
1505 --with-mpfr-lib=PATH/lib
c6b750e1 1506 --with-mpfr-include=PATH
521ec477
DD
1507 specify directory for installed MPFR include files
1508 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1509 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1510 --with-gmp=PATH specify prefix directory for the installed GMP
1511 package. Equivalent to
1512 --with-gmp-include=PATH/include plus
1513 --with-gmp-lib=PATH/lib
521ec477
DD
1514 --with-gmp-include=PATH specify directory for installed GMP include files
1515 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1516 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1517 linking with PPL
1518 --with-stage1-ldflags=FLAGS
1519 linker flags for stage1
1520 --with-stage1-libs=LIBS libraries for stage1
1521 --with-boot-libs=LIBS libraries for stage2 and later
1522 --with-boot-ldflags=FLAGS
1523 linker flags for stage2 and later
7ec59b9e 1524 --with-isl=PATH Specify prefix directory for the installed ISL
7837304f 1525 package. Equivalent to
7ec59b9e
L
1526 --with-isl-include=PATH/include plus
1527 --with-isl-lib=PATH/lib
1528 --with-isl-include=PATH Specify directory for installed ISL include files
1529 --with-isl-lib=PATH Specify the directory for the installed ISL library
e552509b
ILT
1530 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1531 package. Equivalent to
1532 --with-cloog-include=PATH/include plus
1533 --with-cloog-lib=PATH/lib
1534 --with-cloog-include=PATH
1535 Specify directory for installed CLooG include files
1536 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1537 library
521ec477 1538 --with-build-sysroot=SYSROOT
c6b750e1 1539 use sysroot as the system root during the build
8a6ee3ab 1540 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1541 map A to B, C to D ... in debug information
1542 --with-build-config='NAME NAME2...'
1543 use config/NAME.mk build configuration
521ec477 1544 --with-build-time-tools=PATH
c6b750e1 1545 use given path to find target tools during the build
c6b750e1
DJ
1546
1547Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
81ecdfbb
RW
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1555 CXX C++ compiler command
1556 CXXFLAGS C++ compiler flags
4074d5f2
RW
1557 build_configargs
1558 additional configure arguments for build directories
1559 host_configargs
1560 additional configure arguments for host directories
1561 target_configargs
1562 additional configure arguments for target directories
9a819804
AO
1563 AR AR for the host
1564 AS AS for the host
1565 DLLTOOL DLLTOOL for the host
1566 LD LD for the host
1567 LIPO LIPO for the host
1568 NM NM for the host
1569 RANLIB RANLIB for the host
1570 STRIP STRIP for the host
1571 WINDRES WINDRES for the host
0c24b341 1572 WINDMC WINDMC for the host
9a819804
AO
1573 OBJCOPY OBJCOPY for the host
1574 OBJDUMP OBJDUMP for the host
b121d7d4 1575 READELF READELF for the host
9a819804
AO
1576 CC_FOR_TARGET
1577 CC for the target
1578 CXX_FOR_TARGET
1579 CXX for the target
1580 GCC_FOR_TARGET
1581 GCC for the target
1582 GCJ_FOR_TARGET
1583 GCJ for the target
1584 GFORTRAN_FOR_TARGET
1585 GFORTRAN for the target
e552509b
ILT
1586 GOC_FOR_TARGET
1587 GOC for the target
9a819804
AO
1588 AR_FOR_TARGET
1589 AR for the target
1590 AS_FOR_TARGET
1591 AS for the target
1592 DLLTOOL_FOR_TARGET
1593 DLLTOOL for the target
1594 LD_FOR_TARGET
1595 LD for the target
1596 LIPO_FOR_TARGET
1597 LIPO for the target
1598 NM_FOR_TARGET
1599 NM for the target
1600 OBJDUMP_FOR_TARGET
1601 OBJDUMP for the target
1602 RANLIB_FOR_TARGET
1603 RANLIB for the target
b121d7d4
DD
1604 READELF_FOR_TARGET
1605 READELF for the target
9a819804
AO
1606 STRIP_FOR_TARGET
1607 STRIP for the target
1608 WINDRES_FOR_TARGET
1609 WINDRES for the target
0c24b341
NC
1610 WINDMC_FOR_TARGET
1611 WINDMC for the target
c6b750e1
DJ
1612
1613Use these variables to override the choices made by `configure' or to help
1614it to find libraries and programs with nonstandard names/locations.
1615
81ecdfbb 1616Report bugs to the package provider.
c6b750e1 1617_ACEOF
81ecdfbb 1618ac_status=$?
c6b750e1
DJ
1619fi
1620
1621if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
c6b750e1 1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
c6b750e1
DJ
1627 ac_builddir=.
1628
81ecdfbb
RW
1629case "$ac_dir" in
1630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631*)
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639esac
1640ac_abs_top_builddir=$ac_pwd
1641ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642# for backward compatibility:
1643ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1644
1645case $srcdir in
81ecdfbb 1646 .) # We are building in place.
c6b750e1 1647 ac_srcdir=.
81ecdfbb
RW
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1651 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1658esac
81ecdfbb
RW
1659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1669 else
81ecdfbb
RW
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1673 done
1674fi
1675
81ecdfbb 1676test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1677if $ac_init_version; then
1678 cat <<\_ACEOF
81ecdfbb
RW
1679configure
1680generated by GNU Autoconf 2.64
c6b750e1 1681
81ecdfbb 1682Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1683This configure script is free software; the Free Software Foundation
1684gives unlimited permission to copy, distribute and modify it.
1685_ACEOF
81ecdfbb 1686 exit
c6b750e1 1687fi
81ecdfbb
RW
1688
1689## ------------------------ ##
1690## Autoconf initialization. ##
1691## ------------------------ ##
1692
1693# ac_fn_c_try_compile LINENO
1694# --------------------------
1695# Try to compile conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_compile ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1728
1729} # ac_fn_c_try_compile
1730
1731# ac_fn_cxx_try_compile LINENO
1732# ----------------------------
1733# Try to compile conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_cxx_try_compile ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_cxx_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1757 ac_retval=0
1758else
1759 $as_echo "$as_me: failed program was:" >&5
1760sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763fi
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 return $ac_retval
1766
1767} # ac_fn_cxx_try_compile
1768
1769# ac_fn_c_try_link LINENO
1770# -----------------------
1771# Try to link conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_link ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest$ac_exeext
1776 if { { ac_try="$ac_link"
1777case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest$ac_exeext && {
1795 test "$cross_compiling" = yes ||
1796 $as_test_x conftest$ac_exeext
1797 }; then :
1798 ac_retval=0
1799else
1800 $as_echo "$as_me: failed program was:" >&5
1801sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804fi
1805 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807 # interfere with the next link command; also delete a directory that is
1808 # left behind by Apple's compiler. We do this before executing the actions.
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 return $ac_retval
1812
1813} # ac_fn_c_try_link
7ec59b9e
L
1814
1815# ac_fn_c_try_run LINENO
1816# ----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818# that executables *can* be run.
1819ac_fn_c_try_run ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1830 ac_status=$?
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=$ac_status
1850fi
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 return $ac_retval
1854
1855} # ac_fn_c_try_run
81ecdfbb 1856cat >config.log <<_ACEOF
c6b750e1
DJ
1857This file contains any messages produced by compilers while
1858running configure, to aid debugging if configure makes a mistake.
1859
1860It was created by $as_me, which was
81ecdfbb 1861generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1862
1863 $ $0 $@
1864
1865_ACEOF
81ecdfbb 1866exec 5>>config.log
c6b750e1
DJ
1867{
1868cat <<_ASUNAME
1869## --------- ##
1870## Platform. ##
1871## --------- ##
1872
1873hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1874uname -m = `(uname -m) 2>/dev/null || echo unknown`
1875uname -r = `(uname -r) 2>/dev/null || echo unknown`
1876uname -s = `(uname -s) 2>/dev/null || echo unknown`
1877uname -v = `(uname -v) 2>/dev/null || echo unknown`
1878
1879/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1880/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1881
1882/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1883/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1884/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1885/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1886/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1887/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1888/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1889
1890_ASUNAME
1891
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1897 $as_echo "PATH: $as_dir"
1898 done
1899IFS=$as_save_IFS
c6b750e1
DJ
1900
1901} >&5
1902
1903cat >&5 <<_ACEOF
1904
1905
1906## ----------- ##
1907## Core tests. ##
1908## ----------- ##
1909
1910_ACEOF
1911
1912
1913# Keep a trace of the command line.
1914# Strip out --no-create and --no-recursion so they do not pile up.
1915# Strip out --silent because we don't want to record it for future runs.
1916# Also quote any args containing shell meta-characters.
1917# Make two passes to allow for proper duplicate-argument suppression.
1918ac_configure_args=
1919ac_configure_args0=
1920ac_configure_args1=
c6b750e1
DJ
1921ac_must_keep_next=false
1922for ac_pass in 1 2
1923do
1924 for ac_arg
1925 do
1926 case $ac_arg in
1927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1929 | -silent | --silent | --silen | --sile | --sil)
1930 continue ;;
81ecdfbb
RW
1931 *\'*)
1932 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1933 esac
1934 case $ac_pass in
81ecdfbb 1935 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1936 2)
81ecdfbb 1937 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1938 if test $ac_must_keep_next = true; then
1939 ac_must_keep_next=false # Got value, back to normal.
1940 else
1941 case $ac_arg in
1942 *=* | --config-cache | -C | -disable-* | --disable-* \
1943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1945 | -with-* | --with-* | -without-* | --without-* | --x)
1946 case "$ac_configure_args0 " in
1947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1948 esac
1949 ;;
1950 -* ) ac_must_keep_next=true ;;
1951 esac
1952 fi
81ecdfbb 1953 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1954 ;;
1955 esac
1956 done
1957done
81ecdfbb
RW
1958{ ac_configure_args0=; unset ac_configure_args0;}
1959{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1960
1961# When interrupted or exit'd, cleanup temporary files, and complete
1962# config.log. We remove comments because anyway the quotes in there
1963# would cause problems or look ugly.
81ecdfbb
RW
1964# WARNING: Use '\'' to represent an apostrophe within the trap.
1965# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1966trap 'exit_status=$?
1967 # Save into config.log some information that might help in debugging.
1968 {
1969 echo
1970
1971 cat <<\_ASBOX
1972## ---------------- ##
1973## Cache variables. ##
1974## ---------------- ##
1975_ASBOX
1976 echo
1977 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1978(
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1981 case $ac_val in #(
1982 *${as_nl}*)
1983 case $ac_var in #(
1984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1986 esac
1987 case $ac_var in #(
1988 _ | IFS | as_nl) ;; #(
1989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990 *) { eval $ac_var=; unset $ac_var;} ;;
1991 esac ;;
1992 esac
1993 done
c6b750e1 1994 (set) 2>&1 |
81ecdfbb
RW
1995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996 *${as_nl}ac_space=\ *)
c6b750e1 1997 sed -n \
81ecdfbb
RW
1998 "s/'\''/'\''\\\\'\'''\''/g;
1999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2000 ;; #(
c6b750e1 2001 *)
81ecdfbb 2002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2003 ;;
81ecdfbb
RW
2004 esac |
2005 sort
2006)
c6b750e1
DJ
2007 echo
2008
2009 cat <<\_ASBOX
2010## ----------------- ##
2011## Output variables. ##
2012## ----------------- ##
2013_ASBOX
2014 echo
2015 for ac_var in $ac_subst_vars
2016 do
81ecdfbb
RW
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2022 done | sort
2023 echo
2024
2025 if test -n "$ac_subst_files"; then
2026 cat <<\_ASBOX
81ecdfbb
RW
2027## ------------------- ##
2028## File substitutions. ##
2029## ------------------- ##
c6b750e1
DJ
2030_ASBOX
2031 echo
2032 for ac_var in $ac_subst_files
2033 do
81ecdfbb
RW
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 esac
2038 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2039 done | sort
2040 echo
2041 fi
2042
2043 if test -s confdefs.h; then
2044 cat <<\_ASBOX
2045## ----------- ##
2046## confdefs.h. ##
2047## ----------- ##
2048_ASBOX
2049 echo
81ecdfbb 2050 cat confdefs.h
c6b750e1
DJ
2051 echo
2052 fi
2053 test "$ac_signal" != 0 &&
81ecdfbb
RW
2054 $as_echo "$as_me: caught signal $ac_signal"
2055 $as_echo "$as_me: exit $exit_status"
c6b750e1 2056 } >&5
81ecdfbb
RW
2057 rm -f core *.core core.conftest.* &&
2058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2059 exit $exit_status
81ecdfbb 2060' 0
c6b750e1 2061for ac_signal in 1 2 13 15; do
81ecdfbb 2062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2063done
2064ac_signal=0
2065
2066# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2067rm -f -r conftest* confdefs.h
2068
2069$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2070
2071# Predefined preprocessor variables.
2072
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_NAME "$PACKAGE_NAME"
2075_ACEOF
2076
c6b750e1
DJ
2077cat >>confdefs.h <<_ACEOF
2078#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2079_ACEOF
2080
c6b750e1
DJ
2081cat >>confdefs.h <<_ACEOF
2082#define PACKAGE_VERSION "$PACKAGE_VERSION"
2083_ACEOF
2084
c6b750e1
DJ
2085cat >>confdefs.h <<_ACEOF
2086#define PACKAGE_STRING "$PACKAGE_STRING"
2087_ACEOF
2088
c6b750e1
DJ
2089cat >>confdefs.h <<_ACEOF
2090#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2091_ACEOF
2092
81ecdfbb
RW
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_URL "$PACKAGE_URL"
2095_ACEOF
2096
c6b750e1
DJ
2097
2098# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2099# Prefer an explicitly selected file to automatically selected ones.
2100ac_site_file1=NONE
2101ac_site_file2=NONE
2102if test -n "$CONFIG_SITE"; then
2103 ac_site_file1=$CONFIG_SITE
2104elif test "x$prefix" != xNONE; then
2105 ac_site_file1=$prefix/share/config.site
2106 ac_site_file2=$prefix/etc/config.site
2107else
2108 ac_site_file1=$ac_default_prefix/share/config.site
2109 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2110fi
81ecdfbb
RW
2111for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2112do
2113 test "x$ac_site_file" = xNONE && continue
a0da8069 2114 if test -r "$ac_site_file"; then
81ecdfbb
RW
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2117 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2118 . "$ac_site_file"
2119 fi
2120done
2121
2122if test -r "$cache_file"; then
c6b750e1
DJ
2123 # Some versions of bash will fail to source /dev/null (special
2124 # files actually), so we avoid doing that.
2125 if test -f "$cache_file"; then
81ecdfbb
RW
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2128 case $cache_file in
81ecdfbb
RW
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
c6b750e1
DJ
2131 esac
2132 fi
a0da8069 2133else
81ecdfbb
RW
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2136 >$cache_file
2137fi
2138
2139# Check that the precious variables saved in the cache have kept the same
2140# value.
2141ac_cache_corrupted=false
81ecdfbb 2142for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2144 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2145 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2146 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2147 case $ac_old_set,$ac_new_set in
2148 set,)
81ecdfbb
RW
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2150$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2151 ac_cache_corrupted=: ;;
2152 ,set)
81ecdfbb
RW
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2154$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2155 ac_cache_corrupted=: ;;
2156 ,);;
2157 *)
2158 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2159 # differences in whitespace do not lead to failure.
2160 ac_old_val_w=`echo x $ac_old_val`
2161 ac_new_val_w=`echo x $ac_new_val`
2162 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2164$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2165 ac_cache_corrupted=:
2166 else
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2168$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2169 eval $ac_var=\$ac_old_val
2170 fi
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2172$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2174$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2175 fi;;
2176 esac
2177 # Pass precious variables to config.status.
2178 if test "$ac_new_set" = set; then
2179 case $ac_new_val in
81ecdfbb 2180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2181 *) ac_arg=$ac_var=$ac_new_val ;;
2182 esac
2183 case " $ac_configure_args " in
2184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2185 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2186 esac
2187 fi
2188done
2189if $ac_cache_corrupted; then
81ecdfbb
RW
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2193$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2194 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2195fi
81ecdfbb
RW
2196## -------------------- ##
2197## Main body of script. ##
2198## -------------------- ##
a0da8069
NN
2199
2200ac_ext=c
a0da8069 2201ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2204ac_compiler_gnu=$ac_cv_c_compiler_gnu
2205
2206
2207
2208
c6b750e1
DJ
2209
2210
34a0f3cf 2211
c6b750e1 2212
5b553f7e
RW
2213
2214progname=$0
2215# if PWD already has a value, it is probably wrong.
2216if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2217
2218# Export original configure arguments for use by sub-configures.
2219# Quote arguments with shell meta charatcers.
2220TOPLEVEL_CONFIGURE_ARGUMENTS=
2221set -- "$progname" "$@"
2222for ac_arg
2223do
2224 case "$ac_arg" in
2225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2227 # if the argument is of the form -foo=baz, quote the baz part only
2228 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2229 *) ;;
2230 esac
2231 # Add the quoted argument to the list.
2232 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2233done
2234if test "$silent" = yes; then
2235 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2236fi
2237# Remove the initial space we just introduced and, as these will be
2238# expanded by make, quote '$'.
2239TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2240
c6b750e1
DJ
2241
2242# Find the build, host, and target systems.
a0da8069 2243ac_aux_dir=
81ecdfbb
RW
2244for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2245 for ac_t in install-sh install.sh shtool; do
2246 if test -f "$ac_dir/$ac_t"; then
2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/$ac_t -c"
2249 break 2
2250 fi
2251 done
a0da8069
NN
2252done
2253if test -z "$ac_aux_dir"; then
81ecdfbb 2254 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2255fi
81ecdfbb
RW
2256
2257# These three variables are undocumented and unsupported,
2258# and are intended to be withdrawn in a future Autoconf release.
2259# They can cause serious problems if a builder's source tree is in a directory
2260# whose full name contains unusual characters.
2261ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2262ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2263ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2264
a0da8069 2265
c6b750e1 2266# Make sure we can run config.sub.
81ecdfbb
RW
2267$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2268 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2269
2270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2271$as_echo_n "checking build system type... " >&6; }
2272if test "${ac_cv_build+set}" = set; then :
2273 $as_echo_n "(cached) " >&6
2274else
2275 ac_build_alias=$build_alias
2276test "x$ac_build_alias" = x &&
2277 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2278test "x$ac_build_alias" = x &&
2279 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2280ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2281 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2282
2283fi
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2285$as_echo "$ac_cv_build" >&6; }
2286case $ac_cv_build in
2287*-*-*) ;;
2288*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2289esac
c6b750e1 2290build=$ac_cv_build
81ecdfbb
RW
2291ac_save_IFS=$IFS; IFS='-'
2292set x $ac_cv_build
2293shift
2294build_cpu=$1
2295build_vendor=$2
2296shift; shift
2297# Remember, the first character of IFS is used to create $*,
2298# except with old shells:
2299build_os=$*
2300IFS=$ac_save_IFS
2301case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2302
a0da8069 2303
c6b750e1
DJ
2304 case ${build_alias} in
2305 "") build_noncanonical=${build} ;;
2306 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2307esac
2308
2309
cac3d6c4 2310
c6b750e1
DJ
2311 case ${host_alias} in
2312 "") host_noncanonical=${build_noncanonical} ;;
2313 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2314esac
2315
cac3d6c4 2316
c6b750e1
DJ
2317
2318 case ${target_alias} in
2319 "") target_noncanonical=${host_noncanonical} ;;
2320 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2321esac
2322
cac3d6c4 2323
c6b750e1
DJ
2324
2325
2326test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2327 test "$program_prefix$program_suffix$program_transform_name" = \
2328 NONENONEs,x,x, &&
c6b750e1 2329 program_transform_name=s,y,y,
cac3d6c4 2330
81ecdfbb
RW
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2332$as_echo_n "checking host system type... " >&6; }
2333if test "${ac_cv_host+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
cac3d6c4 2335else
81ecdfbb
RW
2336 if test "x$host_alias" = x; then
2337 ac_cv_host=$ac_cv_build
2338else
2339 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2341fi
c6b750e1
DJ
2342
2343fi
81ecdfbb
RW
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2345$as_echo "$ac_cv_host" >&6; }
2346case $ac_cv_host in
2347*-*-*) ;;
2348*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2349esac
c6b750e1 2350host=$ac_cv_host
81ecdfbb
RW
2351ac_save_IFS=$IFS; IFS='-'
2352set x $ac_cv_host
2353shift
2354host_cpu=$1
2355host_vendor=$2
2356shift; shift
2357# Remember, the first character of IFS is used to create $*,
2358# except with old shells:
2359host_os=$*
2360IFS=$ac_save_IFS
2361case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2362
2363
81ecdfbb
RW
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2365$as_echo_n "checking target system type... " >&6; }
2366if test "${ac_cv_target+set}" = set; then :
2367 $as_echo_n "(cached) " >&6
c6b750e1 2368else
81ecdfbb
RW
2369 if test "x$target_alias" = x; then
2370 ac_cv_target=$ac_cv_host
2371else
2372 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2373 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2374fi
c6b750e1 2375
cac3d6c4 2376fi
81ecdfbb
RW
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2378$as_echo "$ac_cv_target" >&6; }
2379case $ac_cv_target in
2380*-*-*) ;;
2381*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2382esac
c6b750e1 2383target=$ac_cv_target
81ecdfbb
RW
2384ac_save_IFS=$IFS; IFS='-'
2385set x $ac_cv_target
2386shift
2387target_cpu=$1
2388target_vendor=$2
2389shift; shift
2390# Remember, the first character of IFS is used to create $*,
2391# except with old shells:
2392target_os=$*
2393IFS=$ac_save_IFS
2394case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2395
2396
2397# The aliases save the names the user supplied, while $host etc.
2398# will get canonicalized.
2399test -n "$target_alias" &&
2400 test "$program_prefix$program_suffix$program_transform_name" = \
2401 NONENONEs,x,x, &&
2402 program_prefix=${target_alias}-
81ecdfbb 2403
a0da8069 2404test "$program_prefix" != NONE &&
81ecdfbb 2405 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2406# Use a double $ so make ignores it.
2407test "$program_suffix" != NONE &&
81ecdfbb
RW
2408 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2409# Double any \ or $.
c6b750e1 2410# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2411ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2412program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2413
a0da8069
NN
2414
2415
e5c3f801
NN
2416# Get 'install' or 'install-sh' and its variants.
2417# Find a good install program. We prefer a C program (faster),
2418# so one script is as good as another. But avoid the broken or
2419# incompatible versions:
2420# SysV /etc/install, /usr/sbin/install
2421# SunOS /usr/etc/install
2422# IRIX /sbin/install
2423# AIX /bin/install
c6b750e1 2424# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2425# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2428# OS/2's system install, which has a completely different semantic
e5c3f801 2429# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2430# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2433if test -z "$INSTALL"; then
81ecdfbb
RW
2434if test "${ac_cv_path_install+set}" = set; then :
2435 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2436else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2442 # Account for people who put trailing slashes in PATH elements.
2443case $as_dir/ in #((
2444 ./ | .// | /[cC]/* | \
c6b750e1 2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2447 /usr/ucb/* ) ;;
2448 *)
2449 # OSF1 and SCO ODT 3.0 have their own names for install.
2450 # Don't use installbsd from OSF since it installs stuff as root
2451 # by default.
2452 for ac_prog in ginstall scoinst install; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2454 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2455 if test $ac_prog = install &&
c6b750e1 2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2457 # AIX install. It has an incompatible calling convention.
2458 :
c6b750e1
DJ
2459 elif test $ac_prog = install &&
2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # program-specific install script used by HP pwplus--don't use.
2462 :
e5c3f801 2463 else
58c85be7
RW
2464 rm -rf conftest.one conftest.two conftest.dir
2465 echo one > conftest.one
2466 echo two > conftest.two
2467 mkdir conftest.dir
2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469 test -s conftest.one && test -s conftest.two &&
2470 test -s conftest.dir/conftest.one &&
2471 test -s conftest.dir/conftest.two
2472 then
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474 break 3
2475 fi
e5c3f801
NN
2476 fi
2477 fi
2478 done
c6b750e1
DJ
2479 done
2480 ;;
2481esac
81ecdfbb
RW
2482
2483 done
2484IFS=$as_save_IFS
c6b750e1 2485
58c85be7 2486rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2487
2488fi
2489 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2490 INSTALL=$ac_cv_path_install
e5c3f801 2491 else
58c85be7
RW
2492 # As a last resort, use the slow shell script. Don't cache a
2493 # value for INSTALL within a source directory, because that will
e5c3f801 2494 # break other packages using the cache if that directory is
58c85be7 2495 # removed, or if the value is a relative name.
c6b750e1 2496 INSTALL=$ac_install_sh
e5c3f801
NN
2497 fi
2498fi
81ecdfbb
RW
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2501
2502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503# It thinks the first close brace ends the variable substitution.
2504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
c6b750e1 2506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2507
2508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
81ecdfbb
RW
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2511$as_echo_n "checking whether ln works... " >&6; }
2512if test "${acx_cv_prog_LN+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
656fdd47
PB
2514else
2515 rm -f conftestdata_t
2516echo >conftestdata_f
2517if ln conftestdata_f conftestdata_t 2>/dev/null
2518then
2519 acx_cv_prog_LN=ln
2520else
2521 acx_cv_prog_LN=no
2522fi
2523rm -f conftestdata_f conftestdata_t
2524
2525fi
2526if test $acx_cv_prog_LN = no; then
2527 LN="cp"
81ecdfbb
RW
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2529$as_echo "no, using $LN" >&6; }
656fdd47
PB
2530else
2531 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533$as_echo "yes" >&6; }
656fdd47
PB
2534fi
2535
81ecdfbb
RW
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2537$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2538LN_S=$as_ln_s
2539if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2541$as_echo "yes" >&6; }
cac3d6c4 2542else
81ecdfbb
RW
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2544$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2545fi
2546
8e957354
PB
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2548$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2549if test "${ac_cv_path_SED+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551else
2552 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2553 for ac_i in 1 2 3 4 5 6 7; do
2554 ac_script="$ac_script$as_nl$ac_script"
2555 done
2556 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2557 { ac_script=; unset ac_script;}
2558 if test -z "$SED"; then
2559 ac_path_SED_found=false
2560 # Loop through the user's path and test for each of PROGNAME-LIST
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_prog in sed gsed; do
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2569 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2570# Check for GNU ac_path_SED and select it if it is found.
2571 # Check for GNU $ac_path_SED
2572case `"$ac_path_SED" --version 2>&1` in
2573*GNU*)
2574 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2575*)
2576 ac_count=0
2577 $as_echo_n 0123456789 >"conftest.in"
2578 while :
2579 do
2580 cat "conftest.in" "conftest.in" >"conftest.tmp"
2581 mv "conftest.tmp" "conftest.in"
2582 cp "conftest.in" "conftest.nl"
2583 $as_echo '' >> "conftest.nl"
2584 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2586 as_fn_arith $ac_count + 1 && ac_count=$as_val
2587 if test $ac_count -gt ${ac_path_SED_max-0}; then
2588 # Best one so far, save it but keep looking for a better one
2589 ac_cv_path_SED="$ac_path_SED"
2590 ac_path_SED_max=$ac_count
2591 fi
2592 # 10*(2^10) chars as input seems more than enough
2593 test $ac_count -gt 10 && break
2594 done
2595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2596esac
2597
2598 $ac_path_SED_found && break 3
2599 done
2600 done
2601 done
2602IFS=$as_save_IFS
2603 if test -z "$ac_cv_path_SED"; then
2604 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2605 fi
2606else
2607 ac_cv_path_SED=$SED
2608fi
2609
2610fi
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2612$as_echo "$ac_cv_path_SED" >&6; }
2613 SED="$ac_cv_path_SED"
2614 rm -f conftest.sed
2615
2616for ac_prog in gawk mawk nawk awk
2617do
2618 # Extract the first word of "$ac_prog", so it can be a program name with args.
2619set dummy $ac_prog; ac_word=$2
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
2622if test "${ac_cv_prog_AWK+set}" = set; then :
2623 $as_echo_n "(cached) " >&6
2624else
2625 if test -n "$AWK"; then
2626 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_AWK="$ac_prog"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639done
2640 done
2641IFS=$as_save_IFS
2642
2643fi
2644fi
2645AWK=$ac_cv_prog_AWK
2646if test -n "$AWK"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2648$as_echo "$AWK" >&6; }
2649else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651$as_echo "no" >&6; }
2652fi
2653
2654
2655 test -n "$AWK" && break
2656done
2657
e5c3f801 2658
0fdbe983
DJ
2659srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2660
2661# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2662# a relative path.
2663if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2664 INSTALL="${srcpwd}/install-sh -c"
2665fi
2666
a0da8069
NN
2667# Set srcdir to "." if that's what it is.
2668# This is important for multilib support.
2669pwd=`${PWDCMD-pwd}`
a0da8069
NN
2670if test "${pwd}" = "${srcpwd}" ; then
2671 srcdir=.
252b5132
RH
2672fi
2673
a0da8069 2674topsrcdir=$srcpwd
252b5132 2675
a0da8069 2676extra_host_args=
afefada0 2677
a0da8069
NN
2678### To add a new directory to the tree, first choose whether it is a target
2679### or a host dependent tool. Then put it into the appropriate list
2680### (library or tools, host or target), doing a dependency sort.
252b5132 2681
c6b750e1 2682# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2683# configdirs, or target_configdirs; see the serialization section below.
252b5132 2684
c6b750e1
DJ
2685# Dependency sorting is only needed when *configuration* must be done in
2686# a particular order. In all cases a dependency should be specified in
a0da8069 2687# the Makefile, whether or not it's implicitly specified here.
252b5132 2688
a0da8069
NN
2689# Double entries in build_configdirs, configdirs, or target_configdirs may
2690# cause circular dependencies and break everything horribly.
252b5132 2691
6a9cf61e
PB
2692# these library is used by various programs built for the build
2693# environment
2694#
2695build_libs="build-libiberty"
2696
2697# these tools are built for the build environment
a90ef4bf 2698build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2699
a0da8069
NN
2700# these libraries are used by various programs built for the host environment
2701#
2bf680c4 2702host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
a0da8069 2703
a0da8069
NN
2704# these tools are built for the host environment
2705# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2706# know that we are building the simulator.
2707# binutils, gas and ld appear in that order because it makes sense to run
2708# "make check" in that particular order.
e6de499b 2709# If --enable-gold is used, "gold" may replace "ld".
a90ef4bf 2710host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
a0da8069
NN
2711
2712# libgcj represents the runtime libraries only used by gcj.
2713libgcj="target-libffi \
a0da8069 2714 target-zlib \
a0da8069
NN
2715 target-libjava"
2716
2717# these libraries are built for the target environment, and are built after
2718# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2719# Note that libiberty is not a target library.
b1299c4e 2720target_libraries="target-libgcc \
2bf680c4 2721 target-libbacktrace \
a0da8069
NN
2722 target-libgloss \
2723 target-newlib \
cff87f51 2724 target-libgomp \
7ec59b9e 2725 target-libatomic \
d32e2926 2726 target-libitm \
b9459e83 2727 target-libstdc++-v3 \
4b1cb4fe 2728 target-libmudflap \
bb780410 2729 target-libssp \
e552509b 2730 target-libquadmath \
4b1cb4fe 2731 target-libgfortran \
4f0ef2d8 2732 target-boehm-gc \
83326456 2733 ${libgcj} \
a2592b1b 2734 target-libobjc \
e552509b
ILT
2735 target-libada \
2736 target-libgo"
a0da8069 2737
9c14acb8
NN
2738# these tools are built using the target libraries, and are intended to
2739# run only in the target environment
a0da8069 2740#
9c14acb8 2741# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2742# list belongs in this list.
a0da8069 2743#
a90ef4bf 2744target_tools="target-rda"
252b5132 2745
a0da8069 2746################################################################################
252b5132 2747
a0da8069
NN
2748## All tools belong in one of the four categories, and are assigned above
2749## We assign ${configdirs} this way to remove all embedded newlines. This
2750## is important because configure will choke if they ever get through.
2751## ${configdirs} is directories we build using the host tools.
2752## ${target_configdirs} is directories we build using the target tools.
a0da8069 2753configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2754target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2755build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2756
9cc8ae67
PB
2757
2758
a0da8069 2759################################################################################
252b5132 2760
a0da8069 2761srcname="gnu development package"
252b5132 2762
a0da8069
NN
2763# This gets set non-empty for some net releases of packages.
2764appdirs=""
252b5132 2765
a0da8069
NN
2766# Define is_cross_compiler to save on calls to 'test'.
2767is_cross_compiler=
2768if test x"${host}" = x"${target}" ; then
2769 is_cross_compiler=no
252b5132 2770else
a0da8069 2771 is_cross_compiler=yes
c6b750e1 2772fi
252b5132 2773
9175bfc0 2774# Find the build and target subdir names.
dd12c3a8 2775
66a79c16
DJ
2776# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2777# have matching libraries, they should use host libraries: Makefile.tpl
2778# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2779# However, they still use the build modules, because the corresponding
2780# host modules (e.g. bison) are only built for the host when bootstrap
2781# finishes. So:
2782# - build_subdir is where we find build modules, and never changes.
2783# - build_libsubdir is where we find build libraries, and can be overridden.
2784
2785# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2786build_subdir="build-${build_noncanonical}"
c6b750e1 2787
81ecdfbb
RW
2788# Check whether --with-build-libsubdir was given.
2789if test "${with_build_libsubdir+set}" = set; then :
2790 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2791else
2792 build_libsubdir="$build_subdir"
81ecdfbb
RW
2793fi
2794
b00612cc
PB
2795# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2796if ( test $srcdir = . && test -d gcc ) \
2797 || test -d $srcdir/../host-${host_noncanonical}; then
2798 host_subdir="host-${host_noncanonical}"
2799else
2800 host_subdir=.
2801fi
dd12c3a8
NN
2802# No prefix.
2803target_subdir=${target_noncanonical}
c6b750e1 2804
2fd0b40b
RW
2805# Be sure to cover against remnants of an in-tree build.
2806if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2807 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2808Use a pristine source tree when building in a separate tree" "$LINENO" 5
2809fi
252b5132 2810
a0da8069
NN
2811# Skipdirs are removed silently.
2812skipdirs=
2813# Noconfigdirs are removed loudly.
2814noconfigdirs=""
252b5132 2815
a0da8069
NN
2816use_gnu_ld=
2817# Make sure we don't let GNU ld be added if we didn't want it.
2818if test x$with_gnu_ld = xno ; then
2819 use_gnu_ld=no
93f9b408 2820 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2821fi
2822
a0da8069
NN
2823use_gnu_as=
2824# Make sure we don't let GNU as be added if we didn't want it.
2825if test x$with_gnu_as = xno ; then
2826 use_gnu_as=no
2827 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2828fi
2829
700d40ca
ILT
2830use_included_zlib=
2831# Make sure we don't let ZLIB be added if we didn't want it.
2832if test x$with_system_zlib = xyes ; then
2833 use_included_zlib=no
2834 noconfigdirs="$noconfigdirs zlib"
2835fi
2836
c6b750e1 2837# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2838# it's not even worth trying to configure, much less build, that tool.
252b5132 2839
a0da8069
NN
2840case ${with_x} in
2841 yes | "") ;; # the default value for this tree is that X11 is available
2842 no)
675c6968 2843 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2844 # We won't be able to build gdbtk without X.
c6b750e1 2845 enable_gdbtk=no
a0da8069
NN
2846 ;;
2847 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2848esac
252b5132 2849
0377a422 2850# Some are only suitable for cross toolchains.
a0da8069
NN
2851# Remove these if host=target.
2852cross_only="target-libgloss target-newlib target-opcodes"
2853
2854case $is_cross_compiler in
2855 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2856esac
252b5132 2857
a0da8069
NN
2858# If both --with-headers and --with-libs are specified, default to
2859# --without-newlib.
32be62b5
RS
2860if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2861 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2862 if test x"${with_newlib}" = x ; then
2863 with_newlib=no
2864 fi
252b5132
RH
2865fi
2866
a0da8069
NN
2867# Recognize --with-newlib/--without-newlib.
2868case ${with_newlib} in
2869 no) skipdirs="${skipdirs} target-newlib" ;;
2870 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2871esac
252b5132 2872
c7791212
NC
2873# Handle --enable-gold, --enable-ld.
2874# --disable-gold [--enable-ld]
2875# Build only ld. Default option.
d3b50760
L
2876# --enable-gold [--enable-ld]
2877# Build both gold and ld. Install gold as "ld.gold", install ld
2878# as "ld.bfd" and "ld".
2879# --enable-gold=default [--enable-ld]
c7791212
NC
2880# Build both gold and ld. Install gold as "ld.gold" and "ld",
2881# install ld as "ld.bfd".
2882# --enable-gold[=default] --disable-ld
2883# Build only gold, which is then installed as both "ld.gold" and "ld".
2884# --enable-gold --enable-ld=default
d3b50760
L
2885# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2886# and ld.bfd).
c7791212
NC
2887# In other words, ld is default
2888# --enable-gold=default --enable-ld=default
2889# Error.
2890
2891default_ld=
81ecdfbb
RW
2892# Check whether --enable-gold was given.
2893if test "${enable_gold+set}" = set; then :
2894 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2895else
2896 ENABLE_GOLD=no
81ecdfbb
RW
2897fi
2898
c7791212
NC
2899case "${ENABLE_GOLD}" in
2900 yes|default)
e6de499b
NC
2901 # Check for ELF target.
2902 is_elf=no
2903 case "${target}" in
2904 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2905 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2906 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
7ec59b9e 2907 | *-*-solaris2* | *-*-nto*)
e6de499b
NC
2908 case "${target}" in
2909 *-*-linux*aout* | *-*-linux*oldld*)
2910 ;;
2911 *)
2912 is_elf=yes
2913 ;;
2914 esac
2915 esac
2916
2917 if test "$is_elf" = "yes"; then
2918 # Check for target supported by gold.
93f9b408 2919 case "${target}" in
5c0b3823 2920 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
c7791212
NC
2921 configdirs="$configdirs gold"
2922 if test x${ENABLE_GOLD} = xdefault; then
2923 default_ld=gold
2924 fi
e6de499b 2925 ENABLE_GOLD=yes
93f9b408
ILT
2926 ;;
2927 esac
e6de499b
NC
2928 fi
2929 ;;
2930 no)
2931 ;;
2932 *)
2933 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2934 ;;
c7791212
NC
2935esac
2936
2937# Check whether --enable-ld was given.
2938if test "${enable_ld+set}" = set; then :
2939 enableval=$enable_ld; ENABLE_LD=$enableval
2940else
2941 ENABLE_LD=yes
2942fi
2943
2944
2945case "${ENABLE_LD}" in
2946 default)
d3b50760 2947 if test x${default_ld} != x; then
c7791212
NC
2948 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2949 fi
2950 ;;
2951 yes)
2952 ;;
2953 no)
2954 if test x${ENABLE_GOLD} != xyes; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2956$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2957 fi
2958 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2959 ;;
2960 *)
2961 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2962 ;;
2963esac
93f9b408 2964
a0da8069 2965# Configure extra directories which are host specific
252b5132 2966
a0da8069
NN
2967case "${host}" in
2968 *-cygwin*)
2969 configdirs="$configdirs libtermcap" ;;
2970esac
252b5132 2971
59f7ec45
HPN
2972# A target can indicate whether a language isn't supported for some reason.
2973# Only spaces may be used in this macro; not newlines or tabs.
2974unsupported_languages=
2975
c6b750e1 2976# Remove more programs from consideration, based on the host or
a0da8069
NN
2977# target this usually means that a port of the program doesn't
2978# exist yet.
252b5132 2979
a0da8069 2980case "${host}" in
3516a403 2981 i[3456789]86-*-msdosdjgpp*)
6a608608 2982 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 2983 ;;
a0da8069 2984esac
252b5132 2985
4b1cb4fe 2986
89a1e9c3
PB
2987# Check whether --enable-libquadmath was given.
2988if test "${enable_libquadmath+set}" = set; then :
2989 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2990else
2991 ENABLE_LIBQUADMATH=yes
2992fi
2993
2994if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2995 noconfigdirs="$noconfigdirs target-libquadmath"
2996fi
2997
2998
2999# Check whether --enable-libquadmath-support was given.
3000if test "${enable_libquadmath_support+set}" = set; then :
3001 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3002else
3003 ENABLE_LIBQUADMATH_SUPPORT=yes
3004fi
3005
3006enable_libquadmath_support=
3007if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3008 enable_libquadmath_support=no
3009fi
3010
3011
81ecdfbb
RW
3012# Check whether --enable-libada was given.
3013if test "${enable_libada+set}" = set; then :
3014 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3015else
3016 ENABLE_LIBADA=yes
81ecdfbb
RW
3017fi
3018
a2592b1b 3019if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3020 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3021fi
3022
81ecdfbb
RW
3023# Check whether --enable-libssp was given.
3024if test "${enable_libssp+set}" = set; then :
3025 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3026else
3027 ENABLE_LIBSSP=yes
81ecdfbb
RW
3028fi
3029
5f128533 3030
a0da8069
NN
3031# Save it here so that, even in case of --enable-libgcj, if the Java
3032# front-end isn't enabled, we still get libgcj disabled.
3033libgcj_saved=$libgcj
3034case $enable_libgcj in
3035yes)
3036 # If we reset it here, it won't get added to noconfigdirs in the
3037 # target-specific build rules, so it will be forcibly enabled
3038 # (unless the Java language itself isn't enabled).
3039 libgcj=
3040 ;;
3041no)
3042 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3043 # Don't disable libffi, though, other languages use it.
3044 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3045 # Clear libgcj_saved so that even if java is enabled libffi won't be
3046 # built.
3047 libgcj_saved=
a0da8069
NN
3048 ;;
3049esac
252b5132 3050
ffdd6afc
ILT
3051# Check whether --enable-static-libjava was given.
3052if test "${enable_static_libjava+set}" = set; then :
3053 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3054else
3055 ENABLE_STATIC_LIBJAVA=no
3056fi
3057
3058enable_static_libjava=
3059if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3060 enable_static_libjava=yes
3061fi
3062
3063if test x$enable_static_libjava != xyes ; then
3064 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3065fi
3066
4b1cb4fe 3067
a6df5a19
PB
3068# Disable libmudflap on some systems.
3069if test x$enable_libmudflap = x ; then
3e707e94 3070 case "${target}" in
29383458 3071 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3072 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3073 ;;
3074 *-*-freebsd*)
3075 # Enable libmudflap by default in FreeBSD.
3076 ;;
3077 *)
3078 # Disable it by default everywhere else.
3079 noconfigdirs="$noconfigdirs target-libmudflap"
3080 ;;
3081 esac
a6df5a19 3082fi
4b1cb4fe 3083
a6df5a19
PB
3084# Disable libgomp on non POSIX hosted systems.
3085if test x$enable_libgomp = x ; then
b3ded179
PB
3086 # Enable libgomp by default on hosted POSIX systems.
3087 case "${target}" in
29383458 3088 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3089 ;;
5b806d27 3090 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3091 ;;
2479f722 3092 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3093 ;;
3094 *-*-darwin* | *-*-aix*)
3095 ;;
3096 *)
3097 noconfigdirs="$noconfigdirs target-libgomp"
3098 ;;
3099 esac
a6df5a19 3100fi
b3ded179 3101
7ec59b9e
L
3102# Disable libatomic on unsupported systems.
3103if test -d ${srcdir}/libatomic; then
3104 if test x$enable_libatomic = x; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3106$as_echo_n "checking for libatomic support... " >&6; }
3107 if (srcdir=${srcdir}/libatomic; \
3108 . ${srcdir}/configure.tgt; \
3109 test -n "$UNSUPPORTED")
3110 then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112$as_echo "no" >&6; }
3113 noconfigdirs="$noconfigdirs target-libatomic"
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3116$as_echo "yes" >&6; }
3117 fi
3118 fi
3119fi
3120
d32e2926
RH
3121# Disable libitm on unsupported systems.
3122if test -d ${srcdir}/libitm; then
3123 if test x$enable_libitm = x; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3125$as_echo_n "checking for libitm support... " >&6; }
3126 if (srcdir=${srcdir}/libitm; \
3127 . ${srcdir}/configure.tgt; \
3128 test -n "$UNSUPPORTED")
3129 then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131$as_echo "no" >&6; }
3132 noconfigdirs="$noconfigdirs target-libitm"
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135$as_echo "yes" >&6; }
3136 fi
3137 fi
3138fi
3139
1488e230
DE
3140# Disable libquadmath for some systems.
3141case "${target}" in
3142 # libquadmath is unused on AIX and libquadmath build process use of
3143 # LD_LIBRARY_PATH can break AIX bootstrap.
3144 powerpc-*-aix* | rs6000-*-aix*)
3145 noconfigdirs="$noconfigdirs target-libquadmath"
3146 ;;
3147esac
3148
065a5627
JM
3149# Disable libssp for some systems.
3150case "${target}" in
3151 avr-*-*)
c5f5c3c2 3152 # No hosted I/O support.
065a5627
JM
3153 noconfigdirs="$noconfigdirs target-libssp"
3154 ;;
3155 powerpc-*-aix* | rs6000-*-aix*)
3156 noconfigdirs="$noconfigdirs target-libssp"
3157 ;;
99c513f6 3158 rl78-*-*)
202e2356
NC
3159 # libssp uses a misaligned load to trigger a fault, but the RL78
3160 # doesn't fault for those - instead, it gives a build-time error
3161 # for explicit misaligned loads.
99c513f6
DD
3162 noconfigdirs="$noconfigdirs target-libssp"
3163 ;;
065a5627
JM
3164esac
3165
065a5627
JM
3166# Disable libstdc++-v3 for some systems.
3167case "${target}" in
3168 *-*-vxworks*)
3169 # VxWorks uses the Dinkumware C++ library.
3170 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3171 ;;
3172 arm*-wince-pe*)
3173 # the C++ libraries don't build on top of CE's C libraries
3174 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3175 ;;
3176 avr-*-*)
3177 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3178 ;;
3179esac
3180
3181# Disable Fortran for some systems.
3182case "${target}" in
3183 mmix-*-*)
3184 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3185 unsupported_languages="$unsupported_languages fortran"
3186 ;;
3187esac
3188
0827f9a6 3189# Disable Java if libffi is not supported.
9863d716 3190case "${target}" in
0827f9a6
JM
3191 alpha*-*-*)
3192 ;;
3193 arm*-*-*)
3194 ;;
3195 cris-*-*)
3196 ;;
3197 frv-*-*)
3198 ;;
3199 hppa*-*-linux*)
3200 ;;
3201 hppa*-*-hpux*)
3202 ;;
3203 i?86-*-*)
3204 ;;
3205 ia64*-*-*)
3206 ;;
3207 m32r*-*-*)
3208 ;;
3209 m68k-*-*)
3210 ;;
2479f722 3211 mips*-*-rtems*)
0827f9a6
JM
3212 ;;
3213 mips*-*-linux*)
3214 ;;
3215 powerpc*-*-linux*)
3216 ;;
3217 powerpc-*-darwin*)
3218 ;;
3219 powerpc-*-aix* | rs6000-*-aix*)
3220 ;;
3221 powerpc-*-freebsd*)
3222 ;;
3223 powerpc64-*-freebsd*)
3224 ;;
3225 powerpc*-*-rtems*)
9863d716 3226 ;;
0827f9a6
JM
3227 s390-*-* | s390x-*-*)
3228 ;;
3229 sh-*-* | sh[34]*-*-*)
3230 ;;
3231 sh64-*-* | sh5*-*-*)
3232 ;;
3233 sparc*-*-*)
3234 ;;
3235 x86_64-*-*)
3236 ;;
3237 *-*-*)
3238 unsupported_languages="$unsupported_languages java"
3239 ;;
3240esac
3241
3242# Disable Java, libgcj or related libraries for some systems.
3243case "${target}" in
9863d716
JM
3244 powerpc-*-darwin*)
3245 ;;
3246 i[3456789]86-*-darwin*)
3247 ;;
3248 x86_64-*-darwin[912]*)
3249 ;;
3250 *-*-darwin*)
3251 noconfigdirs="$noconfigdirs ${libgcj}"
3252 ;;
9863d716
JM
3253 *-*-netware*)
3254 noconfigdirs="$noconfigdirs ${libgcj}"
3255 ;;
3256 *-*-rtems*)
3257 noconfigdirs="$noconfigdirs ${libgcj}"
3258 ;;
3259 *-*-tpf*)
3260 noconfigdirs="$noconfigdirs ${libgcj}"
3261 ;;
3262 *-*-uclinux*)
3263 noconfigdirs="$noconfigdirs ${libgcj}"
3264 ;;
3265 *-*-vxworks*)
3266 noconfigdirs="$noconfigdirs ${libgcj}"
3267 ;;
9863d716
JM
3268 alpha*-*-*vms*)
3269 noconfigdirs="$noconfigdirs ${libgcj}"
3270 ;;
0827f9a6 3271 arm-wince-pe)
9863d716
JM
3272 noconfigdirs="$noconfigdirs ${libgcj}"
3273 ;;
9863d716
JM
3274 arm*-*-symbianelf*)
3275 noconfigdirs="$noconfigdirs ${libgcj}"
3276 ;;
9863d716 3277 bfin-*-*)
9863d716
JM
3278 noconfigdirs="$noconfigdirs target-boehm-gc"
3279 ;;
9863d716
JM
3280 cris-*-* | crisv32-*-*)
3281 unsupported_languages="$unsupported_languages java"
3282 case "${target}" in
3283 *-*-linux*)
3284 ;;
3285 *) # See PR46792 regarding target-libffi.
3286 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3287 esac
3288 ;;
9863d716
JM
3289 hppa*64*-*-linux*)
3290 # In this case, it's because the hppa64-linux target is for
3291 # the kernel only at this point and has no libc, and thus no
3292 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3293 unsupported_languages="$unsupported_languages java"
9863d716 3294 ;;
82ae827f 3295 hppa*64*-*-hpux*)
9863d716
JM
3296 noconfigdirs="$noconfigdirs ${libgcj}"
3297 ;;
3298 hppa*-hp-hpux11*)
3299 ;;
82ae827f 3300 hppa*-*-hpux*)
9863d716
JM
3301 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3302 # build on HP-UX 10.20.
3303 noconfigdirs="$noconfigdirs ${libgcj}"
3304 ;;
9863d716
JM
3305 ia64*-*-*vms*)
3306 noconfigdirs="$noconfigdirs ${libgcj}"
3307 ;;
9863d716
JM
3308 i[3456789]86-w64-mingw*)
3309 noconfigdirs="$noconfigdirs ${libgcj}"
3310 ;;
3311 i[3456789]86-*-mingw*)
3312 noconfigdirs="$noconfigdirs ${libgcj}"
3313 ;;
3314 x86_64-*-mingw*)
3315 noconfigdirs="$noconfigdirs ${libgcj}"
3316 ;;
9863d716
JM
3317 mmix-*-*)
3318 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3319 ;;
3320 powerpc-*-aix*)
3321 # copied from rs6000-*-* entry
3322 noconfigdirs="$noconfigdirs ${libgcj}"
3323 ;;
9863d716
JM
3324 rs6000-*-aix*)
3325 noconfigdirs="$noconfigdirs ${libgcj}"
3326 ;;
9863d716
JM
3327 *-*-lynxos*)
3328 noconfigdirs="$noconfigdirs ${libgcj}"
3329 ;;
9863d716
JM
3330esac
3331
691bb5a1
DD
3332# Default libgloss CPU subdirectory.
3333libgloss_dir="$target_cpu"
4b1cb4fe 3334
ff46fb8f
JM
3335case "${target}" in
3336 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3337 libgloss_dir=wince
3338 ;;
3339 arm*-*-*)
3340 libgloss_dir=arm
3341 ;;
3342 cris-*-* | crisv32-*-*)
3343 libgloss_dir=cris
3344 ;;
3345 hppa*-*-*)
3346 libgloss_dir=pa
3347 ;;
3348 i[3456789]86-*-*)
3349 libgloss_dir=i386
3350 ;;
3351 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3352 libgloss_dir=m68hc11
3353 ;;
3354 m68*-*-* | fido-*-*)
3355 libgloss_dir=m68k
3356 ;;
3357 mips*-*-*)
3358 libgloss_dir=mips
3359 ;;
3360 powerpc*-*-*)
3361 libgloss_dir=rs6000
3362 ;;
3363 sparc*-*-*)
3364 libgloss_dir=sparc
3365 ;;
3366esac
3367
c7e4b184 3368# Disable newlib and libgloss for various target OSes.
a0da8069 3369case "${target}" in
c7e4b184
JM
3370 alpha*-dec-osf*)
3371 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3372 ;;
3373 i[3456789]86-*-linux*)
3374 # This section makes it possible to build newlib natively on linux.
3375 # If we are using a cross compiler then don't configure newlib.
3376 if test x${is_cross_compiler} != xno ; then
3377 noconfigdirs="$noconfigdirs target-newlib"
3378 fi
3379 noconfigdirs="$noconfigdirs target-libgloss"
3380 # If we are not using a cross compiler, do configure newlib.
3381 # Note however, that newlib will only be configured in this situation
3382 # if the --with-newlib option has been given, because otherwise
3383 # 'target-newlib' will appear in skipdirs.
3384 ;;
3385 i[3456789]86-*-rdos*)
3386 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3387 ;;
3388 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3389 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3390 ;;
3391 sparc-*-sunos4*)
3392 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3393 ;;
3394 *-*-aix*)
3395 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3396 ;;
3397 *-*-beos*)
3398 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3399 ;;
a0da8069 3400 *-*-chorusos)
b2f14e4a 3401 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3402 ;;
c7e4b184
JM
3403 *-*-dragonfly*)
3404 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3405 ;;
3406 *-*-freebsd*)
3407 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3408 ;;
3409 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3410 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3411 ;;
3412 *-*-lynxos*)
3413 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3414 ;;
3415 *-*-mingw*)
3416 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3417 ;;
3418 *-*-netbsd*)
3419 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3420 ;;
3421 *-*-netware*)
3422 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3423 ;;
3424 *-*-tpf*)
3425 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3426 ;;
3427 *-*-uclinux*)
3428 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3429 ;;
3430 *-*-vxworks*)
3431 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3432 ;;
3433esac
3434
3435case "${target}" in
3436 *-*-chorusos)
3437 ;;
24741ab2 3438 powerpc-*-darwin*)
9d39db92 3439 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3440 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3441 ;;
85bd1942
TG
3442 i[3456789]86-*-darwin*)
3443 noconfigdirs="$noconfigdirs ld gprof"
3444 noconfigdirs="$noconfigdirs sim target-rda"
3445 ;;
e8a5fa9c 3446 x86_64-*-darwin[912]*)
652dec25
TG
3447 noconfigdirs="$noconfigdirs ld gas gprof"
3448 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3449 ;;
04d1ab34 3450 *-*-darwin*)
d320aacb 3451 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3452 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3453 ;;
5b806d27 3454 *-*-dragonfly*)
5b806d27 3455 ;;
de0b4a87 3456 *-*-freebsd*)
4b1cb4fe
DD
3457 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3458 && test -f /usr/local/include/gmp.h; then
3459 with_gmp=/usr/local
3460 fi
4b1cb4fe 3461 ;;
f8a495c8
NC
3462 *-*-kaos*)
3463 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3464 noconfigdirs="$noconfigdirs target-libgloss"
3465 ;;
a0da8069 3466 *-*-netbsd*)
a0da8069 3467 ;;
2a3124ca 3468 *-*-netware*)
a0da8069
NN
3469 ;;
3470 *-*-rtems*)
9863d716 3471 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3472 ;;
1587117a
EC
3473 # The tpf target doesn't support gdb yet.
3474 *-*-tpf*)
c7e4b184 3475 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3476 ;;
c1968181 3477 *-*-uclinux*)
c7e4b184 3478 noconfigdirs="$noconfigdirs target-rda"
c1968181 3479 ;;
a0da8069 3480 *-*-vxworks*)
a0da8069
NN
3481 ;;
3482 alpha*-dec-osf*)
3483 # ld works, but does not support shared libraries.
a0da8069 3484 # gas doesn't generate exception information.
c7e4b184 3485 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3486 ;;
3487 alpha*-*-*vms*)
9863d716 3488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3489 ;;
a0da8069
NN
3490 alpha*-*-*)
3491 # newlib is not 64 bit ready
9863d716 3492 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3493 ;;
a0da8069 3494 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3495 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3496 ;;
3497 arc-*-*)
782cb41f 3498 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3499 ;;
a0da8069 3500 arm-*-pe*)
9863d716 3501 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3502 ;;
a0da8069 3503 arm-*-riscix*)
b2f14e4a 3504 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3505 ;;
a0da8069 3506 c4x-*-* | tic4x-*-*)
b2f14e4a 3507 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3508 ;;
b2f14e4a
JM
3509 tic54x-*-*)
3510 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3511 ;;
a0da8069 3512 d10v-*-*)
b2f14e4a 3513 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3514 ;;
3515 d30v-*-*)
b2f14e4a 3516 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3517 ;;
3518 fr30-*-elf*)
9863d716 3519 noconfigdirs="$noconfigdirs gdb"
a0da8069 3520 ;;
20135e4c 3521 moxie-*-*)
20135e4c
NC
3522 noconfigdirs="$noconfigdirs gprof"
3523 ;;
a0da8069 3524 h8300*-*-*)
9863d716 3525 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3526 ;;
3527 h8500-*-*)
b2f14e4a 3528 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3529 ;;
caeba88f 3530 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3531 ;;
93cc359e 3532 hppa*64*-*-linux*)
a0da8069 3533 ;;
f0ff0f90 3534 hppa*-*-linux*)
5dcac624 3535 ;;
a0da8069 3536 hppa*-*-*elf* | \
a0da8069
NN
3537 hppa*-*-lites* | \
3538 hppa*-*-openbsd* | \
3539 hppa*64*-*-*)
4f0ef2d8
CD
3540 ;;
3541 hppa*-hp-hpux11*)
0377a422 3542 noconfigdirs="$noconfigdirs ld"
a0da8069 3543 ;;
691bb5a1 3544 hppa*-*-pro*)
691bb5a1 3545 ;;
a0da8069 3546 hppa*-*-*)
9863d716 3547 noconfigdirs="$noconfigdirs ld"
a0da8069 3548 ;;
b07c2aad 3549 i960-*-*)
b2f14e4a 3550 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3551 ;;
a0da8069
NN
3552 ia64*-*-elf*)
3553 # No gdb support yet.
0377a422 3554 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3555 ;;
3556 ia64*-**-hpux*)
92c9a463 3557 # No ld support yet.
9863d716 3558 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3559 ;;
19e99079 3560 ia64*-*-*vms*)
7ec59b9e
L
3561 # No ld support yet.
3562 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3563 ;;
1f53ca9a 3564 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3565 ;;
3566 i[3456789]86-*-mingw*)
45055374 3567 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3568 ;;
a0da8069
NN
3569 *-*-cygwin*)
3570 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3571 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3572 # always build newlib if winsup directory is present.
45055374 3573 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3574 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3575 elif test -d "$srcdir/newlib"; then
45055374 3576 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3577 fi
c6b750e1 3578 ;;
ec11bdc6 3579 i[3456789]86-*-pe)
782cb41f 3580 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3581 ;;
ec11bdc6 3582 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3583 # The linker does not yet know about weak symbols in COFF,
3584 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3585 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3586 ;;
ec11bdc6 3587 i[3456789]86-*-sco*)
b2f14e4a 3588 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3589 ;;
cff32a7c 3590 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3591 noconfigdirs="$noconfigdirs target-libgloss"
3592 ;;
ec11bdc6 3593 i[3456789]86-*-sysv4*)
b2f14e4a 3594 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3595 ;;
ec11bdc6 3596 i[3456789]86-*-beos*)
c7e4b184 3597 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3598 ;;
b59bea8a 3599 i[3456789]86-*-rdos*)
c7e4b184 3600 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3601 ;;
a0da8069 3602 mmix-*-*)
9863d716 3603 noconfigdirs="$noconfigdirs gdb"
a0da8069 3604 ;;
4970f871 3605 mt-*-*)
cdb9b172
AH
3606 noconfigdirs="$noconfigdirs sim"
3607 ;;
a0da8069
NN
3608 powerpc-*-aix*)
3609 # copied from rs6000-*-* entry
c7e4b184 3610 noconfigdirs="$noconfigdirs gprof"
a0da8069 3611 ;;
93cc359e 3612 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3613 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3614 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3615 # always build newlib.
3616 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3617 ;;
3618 # This is temporary until we can link against shared libraries
3619 powerpcle-*-solaris*)
b2f14e4a 3620 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3621 ;;
3622 powerpc-*-beos*)
c7e4b184 3623 noconfigdirs="$noconfigdirs gdb"
a0da8069 3624 ;;
a0da8069 3625 rs6000-*-lynxos*)
c7e4b184 3626 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3627 ;;
3628 rs6000-*-aix*)
c7e4b184 3629 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3630 ;;
3631 rs6000-*-*)
9863d716 3632 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3633 ;;
3634 m68k-apollo-*)
b2f14e4a 3635 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3636 ;;
25a07265 3637 microblaze*)
9863d716 3638 noconfigdirs="$noconfigdirs gprof"
25a07265 3639 ;;
d09bbf00 3640 mips*-sde-elf* | mips*-mti-elf*)
5bd8be13
RS
3641 if test x$with_newlib = xyes; then
3642 noconfigdirs="$noconfigdirs gprof"
3643 fi
5bd8be13 3644 ;;
a0da8069 3645 mips*-*-irix5*)
b2f14e4a 3646 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3647 ;;
3648 mips*-*-irix6*)
9863d716 3649 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3650 ;;
a0da8069 3651 mips*-*-bsd*)
b2f14e4a 3652 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3653 ;;
a0da8069 3654 mips*-*-linux*)
a0da8069
NN
3655 ;;
3656 mips*-*-*)
9863d716 3657 noconfigdirs="$noconfigdirs gprof"
a0da8069 3658 ;;
dbf85af7 3659 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3660 case "${target}" in
3661 sh*-*-elf)
9863d716 3662 ;;
e8a5fa9c 3663 *)
9863d716 3664 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3665 esac
a0da8069 3666 ;;
a0da8069 3667 sparc-*-sunos4*)
c7e4b184 3668 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3669 use_gnu_ld=no
3670 fi
3671 ;;
619a3713 3672 tic6x-*-*)
40ae9136 3673 noconfigdirs="$noconfigdirs sim"
619a3713 3674 ;;
eb4b2452
NC
3675 tilepro-*-* | tilegx-*-*)
3676 noconfigdirs="$noconfigdirs sim"
3677 ;;
a0da8069 3678 v810-*-*)
b2f14e4a 3679 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3680 ;;
3681 vax-*-*)
9863d716 3682 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3683 ;;
a0da8069 3684esac
252b5132 3685
a0da8069
NN
3686# If we aren't building newlib, then don't build libgloss, since libgloss
3687# depends upon some newlib header files.
3688case "${noconfigdirs}" in
3689 *target-libgloss*) ;;
3690 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3691esac
3692
a0da8069 3693# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3694host_makefile_frag=/dev/null
3695if test -d ${srcdir}/config ; then
3696case "${host}" in
ec11bdc6 3697 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3698 host_makefile_frag="config/mh-djgpp"
3699 ;;
3700 *-cygwin*)
e33b51a6 3701
81ecdfbb
RW
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3703$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3704echo a >cygwin-cat-check
1f53ca9a 3705if test `cat cygwin-cat-check` = a ; then
8ade07e9 3706 rm cygwin-cat-check
81ecdfbb
RW
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708$as_echo "yes" >&6; }
e33b51a6 3709else
8ade07e9 3710 rm cygwin-cat-check
81ecdfbb
RW
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712$as_echo "no" >&6; }
3713 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3714 Please either mount the build directory in binary mode or run the following
3715 commands before running any configure script:
3716set -o igncr
3717export SHELLOPTS
81ecdfbb 3718 " "$LINENO" 5
e33b51a6 3719fi
e33b51a6 3720
a0da8069
NN
3721 host_makefile_frag="config/mh-cygwin"
3722 ;;
8a1599ab 3723 *-mingw*)
84e7906e 3724 host_makefile_frag="config/mh-mingw"
2d1e8239 3725 ;;
da888c87 3726 hppa*-hp-hpux10*)
da888c87 3727 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3728 ;;
3516a403 3729 hppa*-hp-hpux*)
da888c87
PB
3730 host_makefile_frag="config/mh-pa"
3731 ;;
3732 hppa*-*)
3733 host_makefile_frag="config/mh-pa"
3734 ;;
e552509b
ILT
3735 *-*-darwin*)
3736 host_makefile_frag="config/mh-darwin"
0df3d27f 3737 ;;
f6d183c0
PB
3738 powerpc-*-aix*)
3739 host_makefile_frag="config/mh-ppc-aix"
3740 ;;
3741 rs6000-*-aix*)
3742 host_makefile_frag="config/mh-ppc-aix"
3743 ;;
a0da8069
NN
3744esac
3745fi
3746
9e07f89d 3747if test "${build}" != "${host}" ; then
1576798e
PB
3748 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3749 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3750 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3751 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3752 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3753 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3754 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3755 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3756 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3757 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3758 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3759 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3760 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3761else
3762 AR_FOR_BUILD="\$(AR)"
3763 AS_FOR_BUILD="\$(AS)"
512b7dfb 3764 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3765 CXX_FOR_BUILD="\$(CXX)"
3766 GCJ_FOR_BUILD="\$(GCJ)"
3767 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3768 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3769 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3770 LD_FOR_BUILD="\$(LD)"
3771 NM_FOR_BUILD="\$(NM)"
3772 RANLIB_FOR_BUILD="\$(RANLIB)"
3773 WINDRES_FOR_BUILD="\$(WINDRES)"
3774 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3775fi
3776
3777ac_ext=c
c6b750e1
DJ
3778ac_cpp='$CPP $CPPFLAGS'
3779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782if test -n "$ac_tool_prefix"; then
3783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3784set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786$as_echo_n "checking for $ac_word... " >&6; }
3787if test "${ac_cv_prog_CC+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3789else
3790 if test -n "$CC"; then
3791 ac_cv_prog_CC="$CC" # Let the user override the test.
3792else
3793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH
3795do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3802 break 2
3803 fi
3804done
81ecdfbb
RW
3805 done
3806IFS=$as_save_IFS
c6b750e1
DJ
3807
3808fi
3809fi
3810CC=$ac_cv_prog_CC
3811if test -n "$CC"; then
81ecdfbb
RW
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813$as_echo "$CC" >&6; }
c6b750e1 3814else
81ecdfbb
RW
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816$as_echo "no" >&6; }
c6b750e1
DJ
3817fi
3818
81ecdfbb 3819
c6b750e1
DJ
3820fi
3821if test -z "$ac_cv_prog_CC"; then
3822 ac_ct_CC=$CC
6a9cf61e 3823 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3824set dummy gcc; ac_word=$2
81ecdfbb
RW
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826$as_echo_n "checking for $ac_word... " >&6; }
3827if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3829else
3830 if test -n "$ac_ct_CC"; then
3831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3832else
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3840 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3842 break 2
3843 fi
3844done
81ecdfbb
RW
3845 done
3846IFS=$as_save_IFS
c6b750e1
DJ
3847
3848fi
3849fi
3850ac_ct_CC=$ac_cv_prog_ac_ct_CC
3851if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3853$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3854else
81ecdfbb
RW
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856$as_echo "no" >&6; }
c6b750e1
DJ
3857fi
3858
81ecdfbb
RW
3859 if test "x$ac_ct_CC" = x; then
3860 CC=""
3861 else
3862 case $cross_compiling:$ac_tool_warned in
3863yes:)
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3866ac_tool_warned=yes ;;
3867esac
3868 CC=$ac_ct_CC
3869 fi
c6b750e1
DJ
3870else
3871 CC="$ac_cv_prog_CC"
3872fi
3873
3874if test -z "$CC"; then
81ecdfbb
RW
3875 if test -n "$ac_tool_prefix"; then
3876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3877set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879$as_echo_n "checking for $ac_word... " >&6; }
3880if test "${ac_cv_prog_CC+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
9e07f89d
NN
3882else
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3885else
c6b750e1
DJ
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3893 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3895 break 2
3896 fi
3897done
81ecdfbb
RW
3898 done
3899IFS=$as_save_IFS
c6b750e1 3900
9e07f89d
NN
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; }
c6b750e1 3907else
81ecdfbb
RW
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909$as_echo "no" >&6; }
c6b750e1
DJ
3910fi
3911
c6b750e1 3912
81ecdfbb 3913 fi
c6b750e1 3914fi
9e07f89d
NN
3915if test -z "$CC"; then
3916 # Extract the first word of "cc", so it can be a program name with args.
3917set dummy cc; ac_word=$2
81ecdfbb
RW
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919$as_echo_n "checking for $ac_word... " >&6; }
3920if test "${ac_cv_prog_CC+set}" = set; then :
3921 $as_echo_n "(cached) " >&6
9e07f89d
NN
3922else
3923 if test -n "$CC"; then
3924 ac_cv_prog_CC="$CC" # Let the user override the test.
3925else
9e07f89d 3926 ac_prog_rejected=no
c6b750e1
DJ
3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH
3929do
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3935 ac_prog_rejected=yes
3936 continue
3937 fi
3938 ac_cv_prog_CC="cc"
81ecdfbb 3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3940 break 2
3941 fi
3942done
81ecdfbb
RW
3943 done
3944IFS=$as_save_IFS
c6b750e1 3945
9e07f89d
NN
3946if test $ac_prog_rejected = yes; then
3947 # We found a bogon in the path, so make sure we never use it.
3948 set dummy $ac_cv_prog_CC
3949 shift
c6b750e1 3950 if test $# != 0; then
9e07f89d
NN
3951 # We chose a different compiler from the bogus one.
3952 # However, it has the same basename, so the bogon will be chosen
3953 # first if we set CC to just the basename; use the full file name.
3954 shift
c6b750e1 3955 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3956 fi
3957fi
3958fi
3959fi
c6b750e1 3960CC=$ac_cv_prog_CC
9e07f89d 3961if test -n "$CC"; then
81ecdfbb
RW
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3963$as_echo "$CC" >&6; }
9e07f89d 3964else
81ecdfbb
RW
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966$as_echo "no" >&6; }
9e07f89d
NN
3967fi
3968
81ecdfbb 3969
c6b750e1
DJ
3970fi
3971if test -z "$CC"; then
3972 if test -n "$ac_tool_prefix"; then
81ecdfbb 3973 for ac_prog in cl.exe
c6b750e1
DJ
3974 do
3975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3976set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978$as_echo_n "checking for $ac_word... " >&6; }
3979if test "${ac_cv_prog_CC+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
9e07f89d
NN
3981else
3982 if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3984else
c6b750e1
DJ
3985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH
3987do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3994 break 2
376a0e54 3995 fi
c6b750e1 3996done
81ecdfbb
RW
3997 done
3998IFS=$as_save_IFS
cac3d6c4 3999
c6b750e1
DJ
4000fi
4001fi
4002CC=$ac_cv_prog_CC
4003if test -n "$CC"; then
81ecdfbb
RW
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4005$as_echo "$CC" >&6; }
cac3d6c4 4006else
81ecdfbb
RW
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008$as_echo "no" >&6; }
9e07f89d 4009fi
cac3d6c4 4010
81ecdfbb 4011
c6b750e1
DJ
4012 test -n "$CC" && break
4013 done
cac3d6c4 4014fi
c6b750e1
DJ
4015if test -z "$CC"; then
4016 ac_ct_CC=$CC
81ecdfbb 4017 for ac_prog in cl.exe
c6b750e1
DJ
4018do
4019 # Extract the first word of "$ac_prog", so it can be a program name with args.
4020set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022$as_echo_n "checking for $ac_word... " >&6; }
4023if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
cac3d6c4 4025else
c6b750e1
DJ
4026 if test -n "$ac_ct_CC"; then
4027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4028else
c6b750e1
DJ
4029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030for as_dir in $PATH
4031do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4036 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4038 break 2
4039 fi
4040done
81ecdfbb
RW
4041 done
4042IFS=$as_save_IFS
c6b750e1 4043
cac3d6c4
CM
4044fi
4045fi
c6b750e1
DJ
4046ac_ct_CC=$ac_cv_prog_ac_ct_CC
4047if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4049$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4050else
81ecdfbb
RW
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052$as_echo "no" >&6; }
cac3d6c4 4053fi
376a0e54 4054
81ecdfbb 4055
c6b750e1
DJ
4056 test -n "$ac_ct_CC" && break
4057done
4058
81ecdfbb
RW
4059 if test "x$ac_ct_CC" = x; then
4060 CC=""
4061 else
4062 case $cross_compiling:$ac_tool_warned in
4063yes:)
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4066ac_tool_warned=yes ;;
4067esac
4068 CC=$ac_ct_CC
4069 fi
c6b750e1
DJ
4070fi
4071
4072fi
4073
4074
81ecdfbb
RW
4075test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077as_fn_error "no acceptable C compiler found in \$PATH
4078See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4079
4080# Provide some information about the compiler.
81ecdfbb
RW
4081$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4082set X $ac_compile
4083ac_compiler=$2
4084for ac_option in --version -v -V -qversion; do
4085 { { ac_try="$ac_compiler $ac_option >&5"
4086case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089esac
4090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091$as_echo "$ac_try_echo"; } >&5
4092 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4093 ac_status=$?
81ecdfbb
RW
4094 if test -s conftest.err; then
4095 sed '10a\
4096... rest of stderr output deleted ...
4097 10q' conftest.err >conftest.er1
4098 cat conftest.er1 >&5
4099 rm -f conftest.er1 conftest.err
4100 fi
4101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 test $ac_status = 0; }
4103done
c6b750e1 4104
81ecdfbb 4105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4106/* end confdefs.h. */
4107
4108int
4109main ()
4110{
4111
4112 ;
4113 return 0;
4114}
4115_ACEOF
4116ac_clean_files_save=$ac_clean_files
81ecdfbb 4117ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4118# Try to create an executable without -o first, disregard a.out.
4119# It will help us diagnose broken compilers, and finding out an intuition
4120# of exeext.
81ecdfbb
RW
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4122$as_echo_n "checking for C compiler default output file name... " >&6; }
4123ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4124
4125# The possible output files:
4126ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4127
4128ac_rmfiles=
4129for ac_file in $ac_files
4130do
4131 case $ac_file in
4132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4133 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4134 esac
4135done
4136rm -f $ac_rmfiles
4137
4138if { { ac_try="$ac_link_default"
4139case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4142esac
4143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144$as_echo "$ac_try_echo"; } >&5
4145 (eval "$ac_link_default") 2>&5
c6b750e1 4146 ac_status=$?
81ecdfbb
RW
4147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148 test $ac_status = 0; }; then :
4149 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4150# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4151# in a Makefile. We should not override ac_cv_exeext if it was cached,
4152# so that the user can short-circuit this test for compilers unknown to
4153# Autoconf.
4154for ac_file in $ac_files ''
c6b750e1
DJ
4155do
4156 test -f "$ac_file" || continue
4157 case $ac_file in
81ecdfbb 4158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4159 ;;
4160 [ab].out )
4161 # We found the default executable, but exeext='' is most
4162 # certainly right.
4163 break;;
4164 *.* )
81ecdfbb
RW
4165 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4166 then :; else
4167 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4168 fi
4169 # We set ac_cv_exeext here because the later test for it is not
4170 # safe: cross compilers may not add the suffix if given an `-o'
4171 # argument, so we may need to know it at that point already.
4172 # Even if this section looks crufty: it has the advantage of
4173 # actually working.
c6b750e1
DJ
4174 break;;
4175 * )
4176 break;;
4177 esac
4178done
81ecdfbb
RW
4179test "$ac_cv_exeext" = no && ac_cv_exeext=
4180
c6b750e1 4181else
81ecdfbb
RW
4182 ac_file=''
4183fi
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4185$as_echo "$ac_file" >&6; }
4186if test -z "$ac_file"; then :
4187 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4188sed 's/^/| /' conftest.$ac_ext >&5
4189
81ecdfbb
RW
4190{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192{ as_fn_set_status 77
4193as_fn_error "C compiler cannot create executables
4194See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4195fi
c6b750e1 4196ac_exeext=$ac_cv_exeext
c6b750e1 4197
81ecdfbb 4198# Check that the compiler produces executables we can run. If not, either
c6b750e1 4199# the compiler is broken, or we cross compile.
81ecdfbb
RW
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4201$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4202# If not cross compiling, check that we can run a simple program.
4203if test "$cross_compiling" != yes; then
4204 if { ac_try='./$ac_file'
81ecdfbb
RW
4205 { { case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208esac
4209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4210$as_echo "$ac_try_echo"; } >&5
4211 (eval "$ac_try") 2>&5
c6b750e1 4212 ac_status=$?
81ecdfbb
RW
4213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214 test $ac_status = 0; }; }; then
c6b750e1
DJ
4215 cross_compiling=no
4216 else
4217 if test "$cross_compiling" = maybe; then
4218 cross_compiling=yes
4219 else
81ecdfbb
RW
4220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4222as_fn_error "cannot run C compiled programs.
c6b750e1 4223If you meant to cross compile, use \`--host'.
81ecdfbb 4224See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4225 fi
4226 fi
4227fi
81ecdfbb
RW
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4229$as_echo "yes" >&6; }
c6b750e1 4230
81ecdfbb 4231rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4232ac_clean_files=$ac_clean_files_save
81ecdfbb 4233# Check that the compiler produces executables we can run. If not, either
c6b750e1 4234# the compiler is broken, or we cross compile.
81ecdfbb
RW
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4236$as_echo_n "checking whether we are cross compiling... " >&6; }
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4238$as_echo "$cross_compiling" >&6; }
4239
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4241$as_echo_n "checking for suffix of executables... " >&6; }
4242if { { ac_try="$ac_link"
4243case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246esac
4247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4248$as_echo "$ac_try_echo"; } >&5
4249 (eval "$ac_link") 2>&5
c6b750e1 4250 ac_status=$?
81ecdfbb
RW
4251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4252 test $ac_status = 0; }; then :
c6b750e1
DJ
4253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4254# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4255# work properly (i.e., refer to `conftest.exe'), while it won't with
4256# `rm'.
4257for ac_file in conftest.exe conftest conftest.*; do
4258 test -f "$ac_file" || continue
4259 case $ac_file in
81ecdfbb 4260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4261 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4262 break;;
4263 * ) break;;
4264 esac
4265done
4266else
81ecdfbb
RW
4267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269as_fn_error "cannot compute suffix of executables: cannot compile and link
4270See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4271fi
c6b750e1 4272rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4274$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4275
4276rm -f conftest.$ac_ext
4277EXEEXT=$ac_cv_exeext
4278ac_exeext=$EXEEXT
81ecdfbb
RW
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4280$as_echo_n "checking for suffix of object files... " >&6; }
4281if test "${ac_cv_objext+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
c6b750e1 4283else
81ecdfbb 4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4285/* end confdefs.h. */
4286
4287int
4288main ()
4289{
4290
4291 ;
4292 return 0;
4293}
4294_ACEOF
4295rm -f conftest.o conftest.obj
81ecdfbb
RW
4296if { { ac_try="$ac_compile"
4297case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300esac
4301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302$as_echo "$ac_try_echo"; } >&5
4303 (eval "$ac_compile") 2>&5
c6b750e1 4304 ac_status=$?
81ecdfbb
RW
4305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306 test $ac_status = 0; }; then :
4307 for ac_file in conftest.o conftest.obj conftest.*; do
4308 test -f "$ac_file" || continue;
c6b750e1 4309 case $ac_file in
81ecdfbb 4310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4312 break;;
4313 esac
4314done
cac3d6c4 4315else
81ecdfbb 4316 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4317sed 's/^/| /' conftest.$ac_ext >&5
4318
81ecdfbb
RW
4319{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321as_fn_error "cannot compute suffix of object files: cannot compile
4322See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4323fi
c6b750e1
DJ
4324rm -f conftest.$ac_cv_objext conftest.$ac_ext
4325fi
81ecdfbb
RW
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4327$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4328OBJEXT=$ac_cv_objext
4329ac_objext=$OBJEXT
81ecdfbb
RW
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4332if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
c6b750e1 4334else
81ecdfbb 4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4336/* end confdefs.h. */
4337
4338int
4339main ()
4340{
4341#ifndef __GNUC__
4342 choke me
4343#endif
4344
4345 ;
4346 return 0;
4347}
4348_ACEOF
81ecdfbb 4349if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4350 ac_compiler_gnu=yes
4351else
81ecdfbb 4352 ac_compiler_gnu=no
c6b750e1 4353fi
81ecdfbb 4354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4355ac_cv_c_compiler_gnu=$ac_compiler_gnu
4356
4357fi
81ecdfbb
RW
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4359$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4360if test $ac_compiler_gnu = yes; then
4361 GCC=yes
4362else
4363 GCC=
4364fi
c6b750e1
DJ
4365ac_test_CFLAGS=${CFLAGS+set}
4366ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4368$as_echo_n "checking whether $CC accepts -g... " >&6; }
4369if test "${ac_cv_prog_cc_g+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4371else
4372 ac_save_c_werror_flag=$ac_c_werror_flag
4373 ac_c_werror_flag=yes
4374 ac_cv_prog_cc_g=no
4375 CFLAGS="-g"
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4377/* end confdefs.h. */
4378
4379int
4380main ()
4381{
4382
4383 ;
4384 return 0;
4385}
4386_ACEOF
81ecdfbb 4387if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4388 ac_cv_prog_cc_g=yes
4389else
81ecdfbb
RW
4390 CFLAGS=""
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392/* end confdefs.h. */
4393
4394int
4395main ()
4396{
4397
4398 ;
4399 return 0;
4400}
4401_ACEOF
4402if ac_fn_c_try_compile "$LINENO"; then :
4403
4404else
4405 ac_c_werror_flag=$ac_save_c_werror_flag
4406 CFLAGS="-g"
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408/* end confdefs.h. */
cac3d6c4 4409
81ecdfbb
RW
4410int
4411main ()
4412{
4413
4414 ;
4415 return 0;
4416}
4417_ACEOF
4418if ac_fn_c_try_compile "$LINENO"; then :
4419 ac_cv_prog_cc_g=yes
4420fi
4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4422fi
81ecdfbb 4423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4424fi
81ecdfbb
RW
4425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 ac_c_werror_flag=$ac_save_c_werror_flag
4427fi
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4429$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4430if test "$ac_test_CFLAGS" = set; then
c6b750e1 4431 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4432elif test $ac_cv_prog_cc_g = yes; then
4433 if test "$GCC" = yes; then
4434 CFLAGS="-g -O2"
4435 else
4436 CFLAGS="-g"
4437 fi
4438else
4439 if test "$GCC" = yes; then
4440 CFLAGS="-O2"
4441 else
4442 CFLAGS=
4443 fi
4444fi
81ecdfbb
RW
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4446$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4447if test "${ac_cv_prog_cc_c89+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
c6b750e1 4449else
81ecdfbb 4450 ac_cv_prog_cc_c89=no
c6b750e1 4451ac_save_CC=$CC
81ecdfbb 4452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4453/* end confdefs.h. */
4454#include <stdarg.h>
4455#include <stdio.h>
4456#include <sys/types.h>
4457#include <sys/stat.h>
4458/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4459struct buf { int x; };
4460FILE * (*rcsopen) (struct buf *, struct stat *, int);
4461static char *e (p, i)
4462 char **p;
4463 int i;
4464{
4465 return p[i];
4466}
4467static char *f (char * (*g) (char **, int), char **p, ...)
4468{
4469 char *s;
4470 va_list v;
4471 va_start (v,p);
4472 s = g (p, va_arg (v,int));
4473 va_end (v);
4474 return s;
4475}
4476
4477/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4478 function prototypes and stuff, but not '\xHH' hex character constants.
4479 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4480 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4482 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4483 that's true only with -std. */
c6b750e1
DJ
4484int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4485
81ecdfbb
RW
4486/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4487 inside strings and character constants. */
4488#define FOO(x) 'x'
4489int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4490
c6b750e1
DJ
4491int test (int i, double x);
4492struct s1 {int (*f) (int a);};
4493struct s2 {int (*f) (double a);};
4494int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4495int argc;
4496char **argv;
4497int
4498main ()
4499{
4500return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4501 ;
4502 return 0;
4503}
4504_ACEOF
81ecdfbb
RW
4505for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4507do
4508 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4509 if ac_fn_c_try_compile "$LINENO"; then :
4510 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4511fi
81ecdfbb
RW
4512rm -f core conftest.err conftest.$ac_objext
4513 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4514done
81ecdfbb 4515rm -f conftest.$ac_ext
c6b750e1
DJ
4516CC=$ac_save_CC
4517
4518fi
81ecdfbb
RW
4519# AC_CACHE_VAL
4520case "x$ac_cv_prog_cc_c89" in
4521 x)
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4523$as_echo "none needed" >&6; } ;;
4524 xno)
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4526$as_echo "unsupported" >&6; } ;;
c6b750e1 4527 *)
81ecdfbb
RW
4528 CC="$CC $ac_cv_prog_cc_c89"
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4530$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4531esac
81ecdfbb 4532if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4533
c6b750e1
DJ
4534fi
4535
c6b750e1
DJ
4536ac_ext=c
4537ac_cpp='$CPP $CPPFLAGS'
4538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4541
81ecdfbb 4542ac_ext=cpp
18f6b6ee
PB
4543ac_cpp='$CXXCPP $CPPFLAGS'
4544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4547if test -z "$CXX"; then
4548 if test -n "$CCC"; then
4549 CXX=$CCC
4550 else
4551 if test -n "$ac_tool_prefix"; then
4552 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4553 do
4554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4555set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557$as_echo_n "checking for $ac_word... " >&6; }
4558if test "${ac_cv_prog_CXX+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4560else
4561 if test -n "$CXX"; then
4562 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4563else
4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4571 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4573 break 2
4574 fi
4575done
81ecdfbb
RW
4576 done
4577IFS=$as_save_IFS
512b7dfb 4578
18f6b6ee
PB
4579fi
4580fi
4581CXX=$ac_cv_prog_CXX
4582if test -n "$CXX"; then
81ecdfbb
RW
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4584$as_echo "$CXX" >&6; }
18f6b6ee 4585else
81ecdfbb
RW
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587$as_echo "no" >&6; }
18f6b6ee
PB
4588fi
4589
81ecdfbb 4590
18f6b6ee
PB
4591 test -n "$CXX" && break
4592 done
4593fi
4594if test -z "$CXX"; then
4595 ac_ct_CXX=$CXX
81ecdfbb 4596 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4597do
4598 # Extract the first word of "$ac_prog", so it can be a program name with args.
4599set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601$as_echo_n "checking for $ac_word... " >&6; }
4602if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4604else
4605 if test -n "$ac_ct_CXX"; then
4606 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4607else
4608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
4610do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4615 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4617 break 2
512b7dfb 4618 fi
18f6b6ee 4619done
81ecdfbb
RW
4620 done
4621IFS=$as_save_IFS
512b7dfb 4622
18f6b6ee
PB
4623fi
4624fi
4625ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4626if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4628$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4629else
81ecdfbb
RW
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631$as_echo "no" >&6; }
18f6b6ee
PB
4632fi
4633
81ecdfbb 4634
18f6b6ee
PB
4635 test -n "$ac_ct_CXX" && break
4636done
18f6b6ee 4637
81ecdfbb
RW
4638 if test "x$ac_ct_CXX" = x; then
4639 CXX="g++"
4640 else
4641 case $cross_compiling:$ac_tool_warned in
4642yes:)
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4645ac_tool_warned=yes ;;
4646esac
4647 CXX=$ac_ct_CXX
4648 fi
18f6b6ee
PB
4649fi
4650
81ecdfbb
RW
4651 fi
4652fi
18f6b6ee 4653# Provide some information about the compiler.
81ecdfbb
RW
4654$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4655set X $ac_compile
4656ac_compiler=$2
4657for ac_option in --version -v -V -qversion; do
4658 { { ac_try="$ac_compiler $ac_option >&5"
4659case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4662esac
4663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4664$as_echo "$ac_try_echo"; } >&5
4665 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4666 ac_status=$?
81ecdfbb
RW
4667 if test -s conftest.err; then
4668 sed '10a\
4669... rest of stderr output deleted ...
4670 10q' conftest.err >conftest.er1
4671 cat conftest.er1 >&5
4672 rm -f conftest.er1 conftest.err
4673 fi
4674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675 test $ac_status = 0; }
4676done
18f6b6ee 4677
81ecdfbb
RW
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4679$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4680if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
18f6b6ee 4682else
81ecdfbb 4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4684/* end confdefs.h. */
4685
4686int
4687main ()
4688{
4689#ifndef __GNUC__
4690 choke me
4691#endif
4692
4693 ;
4694 return 0;
4695}
4696_ACEOF
81ecdfbb 4697if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4698 ac_compiler_gnu=yes
4699else
81ecdfbb 4700 ac_compiler_gnu=no
18f6b6ee 4701fi
81ecdfbb 4702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4703ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4704
4705fi
81ecdfbb
RW
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4707$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4708if test $ac_compiler_gnu = yes; then
4709 GXX=yes
4710else
4711 GXX=
4712fi
18f6b6ee
PB
4713ac_test_CXXFLAGS=${CXXFLAGS+set}
4714ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4716$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4717if test "${ac_cv_prog_cxx_g+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4719else
4720 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4721 ac_cxx_werror_flag=yes
4722 ac_cv_prog_cxx_g=no
4723 CXXFLAGS="-g"
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4725/* end confdefs.h. */
4726
4727int
4728main ()
4729{
4730
4731 ;
4732 return 0;
4733}
4734_ACEOF
81ecdfbb 4735if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4736 ac_cv_prog_cxx_g=yes
4737else
81ecdfbb
RW
4738 CXXFLAGS=""
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4740/* end confdefs.h. */
81ecdfbb 4741
18f6b6ee
PB
4742int
4743main ()
4744{
81ecdfbb 4745
18f6b6ee
PB
4746 ;
4747 return 0;
4748}
4749_ACEOF
81ecdfbb 4750if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4751
81ecdfbb
RW
4752else
4753 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4754 CXXFLAGS="-g"
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4756/* end confdefs.h. */
81ecdfbb 4757
18f6b6ee
PB
4758int
4759main ()
4760{
81ecdfbb 4761
18f6b6ee
PB
4762 ;
4763 return 0;
4764}
4765_ACEOF
81ecdfbb
RW
4766if ac_fn_cxx_try_compile "$LINENO"; then :
4767 ac_cv_prog_cxx_g=yes
18f6b6ee 4768fi
81ecdfbb
RW
4769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770fi
4771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772fi
4773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4775fi
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4777$as_echo "$ac_cv_prog_cxx_g" >&6; }
4778if test "$ac_test_CXXFLAGS" = set; then
4779 CXXFLAGS=$ac_save_CXXFLAGS
4780elif test $ac_cv_prog_cxx_g = yes; then
4781 if test "$GXX" = yes; then
4782 CXXFLAGS="-g -O2"
4783 else
4784 CXXFLAGS="-g"
4785 fi
4786else
4787 if test "$GXX" = yes; then
4788 CXXFLAGS="-O2"
4789 else
4790 CXXFLAGS=
4791 fi
18f6b6ee 4792fi
18f6b6ee
PB
4793ac_ext=c
4794ac_cpp='$CPP $CPPFLAGS'
4795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798
4799
4800# We must set the default linker to the linker used by gcc for the correct
4801# operation of libtool. If LD is not defined and we are using gcc, try to
4802# set the LD default to the ld used by gcc.
4803if test -z "$LD"; then
4804 if test "$GCC" = yes; then
4805 case $build in
4806 *-*-mingw*)
4807 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4808 *)
4809 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4810 esac
4811 case $gcc_prog_ld in
4812 # Accept absolute paths.
4813 [\\/]* | [A-Za-z]:[\\/]*)
4814 LD="$gcc_prog_ld" ;;
4815 esac
4816 fi
512b7dfb
PB
4817fi
4818
4819
4820
4821
c6b750e1 4822if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4823 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4824set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826$as_echo_n "checking for $ac_word... " >&6; }
4827if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
9e07f89d 4829else
512b7dfb
PB
4830 if test -n "$GNATBIND"; then
4831 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4832else
c6b750e1
DJ
4833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4840 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4842 break 2
4843 fi
4844done
81ecdfbb
RW
4845 done
4846IFS=$as_save_IFS
c6b750e1 4847
9e07f89d
NN
4848fi
4849fi
512b7dfb
PB
4850GNATBIND=$ac_cv_prog_GNATBIND
4851if test -n "$GNATBIND"; then
81ecdfbb
RW
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4853$as_echo "$GNATBIND" >&6; }
9e07f89d 4854else
81ecdfbb
RW
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856$as_echo "no" >&6; }
9e07f89d
NN
4857fi
4858
81ecdfbb 4859
c6b750e1 4860fi
512b7dfb
PB
4861if test -z "$ac_cv_prog_GNATBIND"; then
4862 ac_ct_GNATBIND=$GNATBIND
4863 # Extract the first word of "gnatbind", so it can be a program name with args.
4864set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866$as_echo_n "checking for $ac_word... " >&6; }
4867if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
9e07f89d 4869else
512b7dfb
PB
4870 if test -n "$ac_ct_GNATBIND"; then
4871 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4872else
c6b750e1
DJ
4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4880 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4882 break 2
4883 fi
4884done
81ecdfbb
RW
4885 done
4886IFS=$as_save_IFS
c6b750e1 4887
9e07f89d
NN
4888fi
4889fi
512b7dfb
PB
4890ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4891if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4893$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4894else
81ecdfbb
RW
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896$as_echo "no" >&6; }
9e07f89d
NN
4897fi
4898
81ecdfbb
RW
4899 if test "x$ac_ct_GNATBIND" = x; then
4900 GNATBIND="no"
4901 else
4902 case $cross_compiling:$ac_tool_warned in
4903yes:)
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906ac_tool_warned=yes ;;
4907esac
4908 GNATBIND=$ac_ct_GNATBIND
4909 fi
24ff9987 4910else
512b7dfb 4911 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4912fi
4913
7df2cd5d 4914if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4915 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4916set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918$as_echo_n "checking for $ac_word... " >&6; }
4919if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
7df2cd5d 4921else
512b7dfb
PB
4922 if test -n "$GNATMAKE"; then
4923 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4924else
4925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926for as_dir in $PATH
4927do
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4932 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4934 break 2
4935 fi
4936done
81ecdfbb
RW
4937 done
4938IFS=$as_save_IFS
7df2cd5d
PB
4939
4940fi
4941fi
512b7dfb
PB
4942GNATMAKE=$ac_cv_prog_GNATMAKE
4943if test -n "$GNATMAKE"; then
81ecdfbb
RW
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4945$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4946else
81ecdfbb
RW
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948$as_echo "no" >&6; }
7df2cd5d
PB
4949fi
4950
81ecdfbb 4951
7df2cd5d 4952fi
512b7dfb
PB
4953if test -z "$ac_cv_prog_GNATMAKE"; then
4954 ac_ct_GNATMAKE=$GNATMAKE
4955 # Extract the first word of "gnatmake", so it can be a program name with args.
4956set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958$as_echo_n "checking for $ac_word... " >&6; }
4959if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
7df2cd5d 4961else
512b7dfb
PB
4962 if test -n "$ac_ct_GNATMAKE"; then
4963 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4964else
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4972 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4974 break 2
4975 fi
4976done
81ecdfbb
RW
4977 done
4978IFS=$as_save_IFS
7df2cd5d 4979
7df2cd5d
PB
4980fi
4981fi
512b7dfb
PB
4982ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4983if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4985$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4986else
81ecdfbb
RW
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988$as_echo "no" >&6; }
7df2cd5d
PB
4989fi
4990
81ecdfbb
RW
4991 if test "x$ac_ct_GNATMAKE" = x; then
4992 GNATMAKE="no"
4993 else
4994 case $cross_compiling:$ac_tool_warned in
4995yes:)
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4998ac_tool_warned=yes ;;
4999esac
5000 GNATMAKE=$ac_ct_GNATMAKE
5001 fi
7df2cd5d 5002else
512b7dfb 5003 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5004fi
5005
81ecdfbb
RW
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5007$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5008if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
9e07f89d
NN
5010else
5011 cat >conftest.adb <<EOF
5012procedure conftest is begin null; end conftest;
5013EOF
5014acx_cv_cc_gcc_supports_ada=no
5015# There is a bug in old released versions of GCC which causes the
5016# driver to exit successfully when the appropriate language module
5017# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5018# Therefore we must check for the error message as well as an
5019# unsuccessful exit.
b8908782
DD
5020# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5021# given a .adb file, but produce no object file. So we must check
5022# if an object file was really produced to guard against this.
9e07f89d 5023errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5024if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5025 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5026fi
5027rm -f conftest.*
5028fi
81ecdfbb
RW
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5030$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5031
64b986c0 5032if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5033 have_gnat=yes
5034else
5035 have_gnat=no
5036fi
5037
81ecdfbb
RW
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5039$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5040if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
b8908782
DD
5042else
5043 echo abfoo >t1
5044 echo cdfoo >t2
5045 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5046 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5047 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5048 :
5049 else
5050 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5051 fi
5052 fi
b8908782
DD
5053 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5054 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5055 :
b8908782
DD
5056 else
5057 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5058 fi
5059 fi
5060 rm t1 t2
5061
5062fi
81ecdfbb
RW
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5064$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5065do_compare="$gcc_cv_prog_cmp_skip"
5066
5067
9e07f89d 5068
ffdd6afc
ILT
5069# Check whether --enable-bootstrap was given.
5070if test "${enable_bootstrap+set}" = set; then :
5071 enableval=$enable_bootstrap;
5072else
5073 enable_bootstrap=default
5074fi
5075
5076
5077# Issue errors and warnings for invalid/strange bootstrap combinations.
5078if test -r $srcdir/gcc/configure; then
5079 have_compiler=yes
5080else
5081 have_compiler=no
5082fi
5083
5084case "$have_compiler:$host:$target:$enable_bootstrap" in
5085 *:*:*:no) ;;
5086
5087 # Default behavior. Enable bootstrap if we have a compiler
5088 # and we are in a native configuration.
5089 yes:$build:$build:default)
5090 enable_bootstrap=yes ;;
5091
5092 *:*:*:default)
5093 enable_bootstrap=no ;;
5094
5095 # We have a compiler and we are in a native configuration, bootstrap is ok
5096 yes:$build:$build:yes)
5097 ;;
5098
5099 # Other configurations, but we have a compiler. Assume the user knows
5100 # what he's doing.
5101 yes:*:*:yes)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5103$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5104 ;;
5105
5106 # No compiler: if they passed --enable-bootstrap explicitly, fail
5107 no:*:*:yes)
5108 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5109
5110 # Fail if wrong command line
5111 *)
5112 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5113 ;;
5114esac
5115
d5f2ee2e
KG
5116# Used for setting $lt_cv_objdir
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5118$as_echo_n "checking for objdir... " >&6; }
5119if test "${lt_cv_objdir+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5121else
5122 rm -f .libs 2>/dev/null
5123mkdir .libs 2>/dev/null
5124if test -d .libs; then
5125 lt_cv_objdir=.libs
5126else
5127 # MS-DOS does not allow filenames that begin with a dot.
5128 lt_cv_objdir=_libs
5129fi
5130rmdir .libs 2>/dev/null
5131fi
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5133$as_echo "$lt_cv_objdir" >&6; }
5134objdir=$lt_cv_objdir
5135
5136
5137
5138
5139
5140cat >>confdefs.h <<_ACEOF
5141#define LT_OBJDIR "$lt_cv_objdir/"
5142_ACEOF
5143
5144
5145
e8a5fa9c 5146# Check for GMP, MPFR and MPC
d9b76ff9 5147gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5148gmpinc=
4b900473 5149have_gmp=no
e8a5fa9c
RW
5150
5151# Specify a location for mpc
5152# check for this first so it ends up on the link line before mpfr.
5153
81ecdfbb
RW
5154# Check whether --with-mpc was given.
5155if test "${with_mpc+set}" = set; then :
5156 withval=$with_mpc;
5157fi
e8a5fa9c 5158
e8a5fa9c 5159
e552509b 5160# Check whether --with-mpc-include was given.
81ecdfbb
RW
5161if test "${with_mpc_include+set}" = set; then :
5162 withval=$with_mpc_include;
5163fi
e8a5fa9c 5164
e8a5fa9c 5165
e552509b 5166# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5167if test "${with_mpc_lib+set}" = set; then :
5168 withval=$with_mpc_lib;
5169fi
e8a5fa9c 5170
e8a5fa9c
RW
5171
5172if test "x$with_mpc" != x; then
d9b76ff9
KG
5173 gmplibs="-L$with_mpc/lib $gmplibs"
5174 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5175fi
5176if test "x$with_mpc_include" != x; then
d9b76ff9 5177 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5178fi
5179if test "x$with_mpc_lib" != x; then
d9b76ff9 5180 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5181fi
5182if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5183 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5184 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5185 # Do not test the mpc version. Assume that it is sufficient, since
5186 # it is in the source tree, and the library has not been built yet
5187 # but it would be included on the link line in the version check below
5188 # hence making the test fail.
d9b76ff9 5189 have_gmp=yes
e8a5fa9c 5190fi
4b900473 5191
11b04d1f
DD
5192# Specify a location for mpfr
5193# check for this first so it ends up on the link line before gmp.
c6b750e1 5194
81ecdfbb
RW
5195# Check whether --with-mpfr-dir was given.
5196if test "${with_mpfr_dir+set}" = set; then :
5197 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5198Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5199fi
5200
11b04d1f
DD
5201
5202
81ecdfbb
RW
5203# Check whether --with-mpfr was given.
5204if test "${with_mpfr+set}" = set; then :
5205 withval=$with_mpfr;
5206fi
c6b750e1 5207
11b04d1f 5208
e552509b 5209# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5210if test "${with_mpfr_include+set}" = set; then :
5211 withval=$with_mpfr_include;
5212fi
c6b750e1 5213
8a0d8a5c 5214
e552509b 5215# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5216if test "${with_mpfr_lib+set}" = set; then :
5217 withval=$with_mpfr_lib;
5218fi
8a0d8a5c 5219
11b04d1f
DD
5220
5221if test "x$with_mpfr" != x; then
5222 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5223 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5224fi
8a0d8a5c 5225if test "x$with_mpfr_include" != x; then
d9b76ff9 5226 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5227fi
5228if test "x$with_mpfr_lib" != x; then
5229 gmplibs="-L$with_mpfr_lib $gmplibs"
5230fi
4b900473 5231if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5232 # MPFR v3.1.0 moved the sources into a src sub-directory.
5233 if test -d ${srcdir}/mpfr/src; then
5234 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5235 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5236 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5237 else
5238 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5239 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5240 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5241 fi
4b900473
PB
5242 # Do not test the mpfr version. Assume that it is sufficient, since
5243 # it is in the source tree, and the library has not been built yet
5244 # but it would be included on the link line in the version check below
5245 # hence making the test fail.
5246 have_gmp=yes
5247fi
11b04d1f 5248
4b1cb4fe 5249# Specify a location for gmp
c6b750e1 5250
81ecdfbb
RW
5251# Check whether --with-gmp-dir was given.
5252if test "${with_gmp_dir+set}" = set; then :
5253 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5254Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5255fi
5256
4b1cb4fe
DD
5257
5258
81ecdfbb
RW
5259# Check whether --with-gmp was given.
5260if test "${with_gmp+set}" = set; then :
5261 withval=$with_gmp;
5262fi
c6b750e1 5263
4b1cb4fe 5264
e552509b 5265# Check whether --with-gmp-include was given.
81ecdfbb
RW
5266if test "${with_gmp_include+set}" = set; then :
5267 withval=$with_gmp_include;
5268fi
c6b750e1 5269
8a0d8a5c 5270
e552509b 5271# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5272if test "${with_gmp_lib+set}" = set; then :
5273 withval=$with_gmp_lib;
5274fi
8a0d8a5c
PB
5275
5276
4b1cb4fe 5277
11b04d1f
DD
5278if test "x$with_gmp" != x; then
5279 gmplibs="-L$with_gmp/lib $gmplibs"
5280 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5281fi
8a0d8a5c
PB
5282if test "x$with_gmp_include" != x; then
5283 gmpinc="-I$with_gmp_include $gmpinc"
5284fi
5285if test "x$with_gmp_lib" != x; then
5286 gmplibs="-L$with_gmp_lib $gmplibs"
5287fi
4b900473 5288if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5289 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5290 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5291 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5292 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5293 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5294 # Do not test the gmp version. Assume that it is sufficient, since
5295 # it is in the source tree, and the library has not been built yet
5296 # but it would be included on the link line in the version check below
5297 # hence making the test fail.
5298 have_gmp=yes
5299fi
4b1cb4fe 5300
ceb92e78 5301if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5302 have_gmp=yes
5303 saved_CFLAGS="$CFLAGS"
5304 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5305 # Check for the recommended and required versions of GMP.
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5307$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5308
5309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5310/* end confdefs.h. */
5311#include "gmp.h"
5312int
5313main ()
5314{
5315
5316 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5317 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5318 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5319 choke me
5320 #endif
5321
5322 ;
5323 return 0;
5324}
5325_ACEOF
5326if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5328/* end confdefs.h. */
a6b5846e 5329#include <gmp.h>
c6b750e1
DJ
5330int
5331main ()
5332{
4b1cb4fe 5333
a6b5846e
KG
5334 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5335 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5336 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5337 choke me
5338 #endif
c6b750e1
DJ
5339
5340 ;
5341 return 0;
5342}
5343_ACEOF
81ecdfbb
RW
5344if ac_fn_c_try_compile "$LINENO"; then :
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5346$as_echo "yes" >&6; }
a6b5846e
KG
5347else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5349$as_echo "buggy but acceptable" >&6; }
5350fi
5351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5352else
81ecdfbb
RW
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5355fi
81ecdfbb 5356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5357
e8a5fa9c 5358 # If we have GMP, check the MPFR version.
4b900473 5359 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5360 # Check for the recommended and required versions of MPFR.
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5362$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5364/* end confdefs.h. */
9b134994 5365#include <gmp.h>
4b900473 5366 #include <mpfr.h>
c6b750e1
DJ
5367int
5368main ()
5369{
9b134994 5370
7ec59b9e 5371 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5372 choke me
5373 #endif
c6b750e1
DJ
5374
5375 ;
5376 return 0;
5377}
5378_ACEOF
81ecdfbb
RW
5379if ac_fn_c_try_compile "$LINENO"; then :
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5381/* end confdefs.h. */
4b1cb4fe 5382#include <gmp.h>
4b900473 5383 #include <mpfr.h>
c6b750e1
DJ
5384int
5385main ()
5386{
9dbaa842 5387
a6b5846e 5388 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5389 choke me
5390 #endif
e8a5fa9c
RW
5391
5392 ;
5393 return 0;
5394}
5395_ACEOF
81ecdfbb
RW
5396if ac_fn_c_try_compile "$LINENO"; then :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5398$as_echo "yes" >&6; }
e8a5fa9c 5399else
81ecdfbb
RW
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5401$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5402fi
81ecdfbb 5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5404else
81ecdfbb
RW
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5407fi
81ecdfbb 5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5409 fi
5410
5411 # Check for the MPC header version.
d9b76ff9 5412 if test x"$have_gmp" = xyes ; then
a6b5846e 5413 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5415$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5417/* end confdefs.h. */
5418#include <mpc.h>
5419int
5420main ()
5421{
5422
a6b5846e
KG
5423 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5424 choke me
5425 #endif
5426
5427 ;
5428 return 0;
5429}
5430_ACEOF
5431if ac_fn_c_try_compile "$LINENO"; then :
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h. */
5434#include <mpc.h>
5435int
5436main ()
5437{
5438
5439 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5440 choke me
5441 #endif
5442
5443 ;
5444 return 0;
5445}
5446_ACEOF
81ecdfbb
RW
5447if ac_fn_c_try_compile "$LINENO"; then :
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5449$as_echo "yes" >&6; }
a6b5846e
KG
5450else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5452$as_echo "buggy but acceptable" >&6; }
5453fi
5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5455else
81ecdfbb 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5457$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5458fi
81ecdfbb 5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5460 fi
5461
5462 # Now check the MPFR library.
5463 if test x"$have_gmp" = xyes; then
5464 saved_LIBS="$LIBS"
5465 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5467$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5469/* end confdefs.h. */
d9b76ff9 5470#include <mpc.h>
e8a5fa9c
RW
5471int
5472main ()
5473{
5474
5475 mpfr_t n;
5476 mpfr_t x;
d9b76ff9 5477 mpc_t c;
e8a5fa9c
RW
5478 int t;
5479 mpfr_init (n);
5480 mpfr_init (x);
5481 mpfr_atan2 (n, n, x, GMP_RNDN);
5482 mpfr_erfc (n, x, GMP_RNDN);
5483 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5484 mpfr_clear(n);
5485 mpfr_clear(x);
5486 mpc_init2 (c, 53);
5487 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5488 mpc_cosh (c, c, MPC_RNDNN);
5489 mpc_pow (c, c, c, MPC_RNDNN);
5490 mpc_acosh (c, c, MPC_RNDNN);
5491 mpc_clear (c);
c6b750e1
DJ
5492
5493 ;
5494 return 0;
5495}
5496_ACEOF
81ecdfbb
RW
5497if ac_fn_c_try_link "$LINENO"; then :
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5499$as_echo "yes" >&6; }
c6b750e1 5500else
81ecdfbb
RW
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5503fi
81ecdfbb
RW
5504rm -f core conftest.err conftest.$ac_objext \
5505 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5506 LIBS="$saved_LIBS"
5507 fi
5508
4b900473 5509 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5510
a6b5846e
KG
5511# The library versions listed in the error message below should match
5512# the HARD-minimums enforced above.
4b900473 5513 if test x$have_gmp != xyes; then
7ec59b9e 5514 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5515Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5516their locations. Source code for these libraries can be found at
5517their respective hosting sites as well as at
5518ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5519http://gcc.gnu.org/install/prerequisites.html for additional info. If
5520you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5521make sure that you have installed both the libraries and the header
5522files. They may be located in separate packages." "$LINENO" 5
4b900473 5523 fi
9dbaa842
DD
5524fi
5525
e8a5fa9c
RW
5526# Flags needed for both GMP, MPFR and/or MPC.
5527
5528
5529
4b1cb4fe
DD
5530
5531
5532
7ec59b9e 5533
29383458
JM
5534# Allow host libstdc++ to be specified for static linking with PPL.
5535
81ecdfbb
RW
5536# Check whether --with-host-libstdcxx was given.
5537if test "${with_host_libstdcxx+set}" = set; then :
5538 withval=$with_host_libstdcxx;
5539fi
29383458 5540
29383458
JM
5541
5542case $with_host_libstdcxx in
5543 no|yes)
81ecdfbb 5544 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5545 ;;
5546esac
e28c595f 5547
e8a5fa9c
RW
5548# Linker flags to use for stage1 or when not boostrapping.
5549
81ecdfbb
RW
5550# Check whether --with-stage1-ldflags was given.
5551if test "${with_stage1_ldflags+set}" = set; then :
5552 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5553 stage1_ldflags=
5554 else
5555 stage1_ldflags=$withval
5556 fi
5557else
5558 stage1_ldflags=
81ecdfbb
RW
5559fi
5560
e8a5fa9c
RW
5561
5562
5563# Libraries to use for stage1 or when not bootstrapping.
5564
81ecdfbb
RW
5565# Check whether --with-stage1-libs was given.
5566if test "${with_stage1_libs+set}" = set; then :
5567 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5568 stage1_libs=
5569 else
5570 stage1_libs=$withval
5571 fi
5572else
5573 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5574fi
5575
e8a5fa9c
RW
5576
5577
e8a5fa9c
RW
5578# Libraries to use for stage2 and later builds. This defaults to the
5579# argument passed to --with-host-libstdcxx.
5580
81ecdfbb
RW
5581# Check whether --with-boot-libs was given.
5582if test "${with_boot_libs+set}" = set; then :
5583 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5584 poststage1_libs=
5585 else
5586 poststage1_libs=$withval
5587 fi
5588else
5589 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5590fi
5591
e8a5fa9c
RW
5592
5593
143754cd
NC
5594# Linker flags to use for stage2 and later builds.
5595
5596# Check whether --with-boot-ldflags was given.
5597if test "${with_boot_ldflags+set}" = set; then :
5598 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5599 poststage1_ldflags=
5600 else
5601 poststage1_ldflags=$withval
5602 fi
5603else
5604 poststage1_ldflags=
4f11b223
ILT
5605 # In stages 2 and 3, default to linking libstdc++ and libgcc
5606 # statically. But if the user explicitly specified the libraries to
5607 # use, trust that they are doing what they want.
5608 if test "$poststage1_libs" = ""; then
143754cd
NC
5609 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5610 fi
5611fi
5612
5613
5614
7ec59b9e 5615# Check for ISL
e28c595f
JM
5616
5617
7ec59b9e
L
5618# Check whether --with-isl was given.
5619if test "${with_isl+set}" = set; then :
5620 withval=$with_isl;
81ecdfbb 5621fi
e28c595f 5622
e28c595f 5623
7ec59b9e
L
5624# Check whether --with-isl-include was given.
5625if test "${with_isl_include+set}" = set; then :
5626 withval=$with_isl_include;
81ecdfbb
RW
5627fi
5628
e28c595f 5629
7ec59b9e
L
5630# Check whether --with-isl-lib was given.
5631if test "${with_isl_lib+set}" = set; then :
5632 withval=$with_isl_lib;
81ecdfbb 5633fi
e28c595f 5634
e28c595f 5635
7ec59b9e
L
5636 # Check whether --enable-isl-version-check was given.
5637if test "${enable_isl_version_check+set}" = set; then :
5638 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5639else
5640 ENABLE_ISL_CHECK=yes
b123da99
SP
5641fi
5642
5643
7ec59b9e
L
5644 # Initialize isllibs and islinc.
5645 case $with_isl in
5646 no)
5647 isllibs=
5648 islinc=
5649 ;;
5650 "" | yes)
5651 ;;
5652 *)
5653 isllibs="-L$with_isl/lib"
5654 islinc="-I$with_isl/include"
5655 ;;
5656 esac
5657 if test "x${with_isl_include}" != x ; then
5658 islinc="-I$with_isl_include"
5659 fi
5660 if test "x${with_isl_lib}" != x; then
5661 isllibs="-L$with_isl_lib"
5662 fi
5663 if test "x${islinc}" = x && test "x${isllibs}" = x \
5664 && test -d ${srcdir}/isl; then
5665 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5666 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5667 ENABLE_ISL_CHECK=no
5668 fi
b123da99 5669
7ec59b9e 5670 isllibs="${isllibs} -lisl"
b123da99 5671
b123da99 5672
e28c595f 5673
7ec59b9e
L
5674
5675
5676if test "x$with_isl" != "xno"; then
5677
5678 if test "${ENABLE_ISL_CHECK}" = yes ; then
5679 _isl_saved_CFLAGS=$CFLAGS
5680 _isl_saved_LDFLAGS=$LDFLAGS
5681 _isl_saved_LIBS=$LIBS
5682
5683 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5684 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5685 LIBS="${_isl_saved_LIBS} -lisl"
5686 echo $CFLAGS
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5689$as_echo_n "checking for version 0.10 of ISL... " >&6; }
5690if test "${gcc_cv_isl+set}" = set; then :
b123da99
SP
5691 $as_echo_n "(cached) " >&6
5692else
7ec59b9e
L
5693 if test "$cross_compiling" = yes; then :
5694 gcc_cv_isl=yes
5695else
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b123da99 5697/* end confdefs.h. */
7ec59b9e
L
5698#include <isl/version.h>
5699 #include <string.h>
b123da99
SP
5700int
5701main ()
5702{
7ec59b9e
L
5703if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5704 return 1;
5705
b123da99
SP
5706 ;
5707 return 0;
5708}
5709_ACEOF
7ec59b9e
L
5710if ac_fn_c_try_run "$LINENO"; then :
5711 gcc_cv_isl=yes
e28c595f 5712else
7ec59b9e 5713 gcc_cv_isl=no
b123da99 5714fi
7ec59b9e
L
5715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5716 conftest.$ac_objext conftest.beam conftest.$ac_ext
b123da99 5717fi
7ec59b9e 5718
81ecdfbb 5719fi
7ec59b9e
L
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5721$as_echo "$gcc_cv_isl" >&6; }
81ecdfbb 5722
7ec59b9e
L
5723 CFLAGS=$_isl_saved_CFLAGS
5724 LDFLAGS=$_isl_saved_LDFLAGS
5725 LIBS=$_isl_saved_LIBS
b123da99 5726 fi
e28c595f 5727
b123da99 5728
e28c595f 5729
e28c595f 5730
7ec59b9e
L
5731
5732
5733
5734 if test "x${with_isl}" = xno; then
5735 graphite_requested=no
5736 elif test "x${with_isl}" != x \
5737 || test "x${with_isl_include}" != x \
5738 || test "x${with_isl_lib}" != x ; then
5739 graphite_requested=yes
5740 else
5741 graphite_requested=no
b123da99 5742 fi
e28c595f 5743
e28c595f
JM
5744
5745
7ec59b9e
L
5746 if test "${gcc_cv_isl}" = no ; then
5747 isllibs=
5748 islinc=
5749 fi
e28c595f 5750
7ec59b9e
L
5751 if test "${graphite_requested}" = yes \
5752 && test "x${isllibs}" = x \
5753 && test "x${islinc}" = x ; then
e28c595f 5754
7ec59b9e
L
5755 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5756 fi
e552509b 5757
e28c595f 5758
7ec59b9e
L
5759fi
5760
5761# Check for CLOOG
5762
e28c595f 5763
81ecdfbb
RW
5764# Check whether --with-cloog was given.
5765if test "${with_cloog+set}" = set; then :
5766 withval=$with_cloog;
81ecdfbb
RW
5767fi
5768
e28c595f 5769
e552509b 5770# Check whether --with-cloog-include was given.
81ecdfbb
RW
5771if test "${with_cloog_include+set}" = set; then :
5772 withval=$with_cloog_include;
5773fi
e28c595f 5774
e28c595f 5775
e552509b 5776# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5777if test "${with_cloog_lib+set}" = set; then :
5778 withval=$with_cloog_lib;
5779fi
e28c595f 5780
e28c595f 5781
e552509b
ILT
5782 # Check whether --enable-cloog-version-check was given.
5783if test "${enable_cloog_version_check+set}" = set; then :
5784 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5785else
5786 ENABLE_CLOOG_CHECK=yes
5787fi
5788
5789
5790 # Initialize clooglibs and clooginc.
5791 case $with_cloog in
5792 no)
5793 clooglibs=
5794 clooginc=
5795 ;;
5796 "" | yes)
5797 ;;
5798 *)
5799 clooglibs="-L$with_cloog/lib"
5800 clooginc="-I$with_cloog/include"
5801 ;;
5802 esac
5803 if test "x${with_cloog_include}" != x ; then
5804 clooginc="-I$with_cloog_include"
5805 fi
5806 if test "x${with_cloog_lib}" != x; then
5807 clooglibs="-L$with_cloog_lib"
5808 fi
7ec59b9e
L
5809 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5810 && test -d ${srcdir}/cloog; then
5811 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5812 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
8d8eef9a
RW
5813 fi
5814
7ec59b9e
L
5815 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5816 clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
8d8eef9a 5817
e552509b 5818
81ecdfbb 5819
e28c595f 5820
e552509b 5821
7ec59b9e
L
5822if test "x$isllibs" = x && test "x$islinc" = x; then
5823 clooglibs=
5824 clooginc=
5825elif test "x$with_cloog" != "xno"; then
e552509b
ILT
5826
5827
5828
5829 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5830 _cloog_saved_CFLAGS=$CFLAGS
5831 _cloog_saved_LDFLAGS=$LDFLAGS
5832
7ec59b9e
L
5833 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5834 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
e552509b 5835
7ec59b9e
L
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5837$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5838if test "${gcc_cv_cloog+set}" = set; then :
e552509b
ILT
5839 $as_echo_n "(cached) " >&6
5840else
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h. */
7ec59b9e 5843#include "cloog/version.h"
e552509b
ILT
5844int
5845main ()
5846{
5847#if CLOOG_VERSION_MAJOR != 0 \
7ec59b9e
L
5848 || CLOOG_VERSION_MINOR != 17 \
5849 || CLOOG_VERSION_REVISION < 0
e552509b
ILT
5850 choke me
5851 #endif
5852 ;
5853 return 0;
5854}
5855_ACEOF
5856if ac_fn_c_try_compile "$LINENO"; then :
7ec59b9e 5857 gcc_cv_cloog=yes
e552509b 5858else
7ec59b9e 5859 gcc_cv_cloog=no
e552509b
ILT
5860fi
5861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862fi
7ec59b9e
L
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5864$as_echo "$gcc_cv_cloog" >&6; }
e552509b
ILT
5865
5866 CFLAGS=$_cloog_saved_CFLAGS
5867 LDFLAGS=$_cloog_saved_LDFLAGS
5868 fi
5869
5870
5871
e28c595f 5872
e28c595f
JM
5873
5874
5875
8d8eef9a
RW
5876 if test "x${with_cloog}" = xno; then
5877 graphite_requested=no
5878 elif test "x${with_cloog}" != x \
e552509b
ILT
5879 || test "x${with_cloog_include}" != x \
5880 || test "x${with_cloog_lib}" != x ; then
5881 graphite_requested=yes
5882 else
5883 graphite_requested=no
5884 fi
5885
5886
5887
7ec59b9e 5888 if test "${gcc_cv_cloog}" = no ; then
e552509b
ILT
5889 clooglibs=
5890 clooginc=
5891 fi
5892
5893 if test "${graphite_requested}" = yes \
5894 && test "x${clooglibs}" = x \
5895 && test "x${clooginc}" = x ; then
5896
8d8eef9a 5897 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
5898 fi
5899
5900
5901fi
5902
7ec59b9e
L
5903# If either the ISL or the CLooG check failed, disable builds of in-tree
5904# variants of both
5905if test "x$clooglibs" = x && test "x$clooginc" = x; then
5906 noconfigdirs="$noconfigdirs cloog isl"
5907fi
5908
700d40ca
ILT
5909# Check for LTO support.
5910# Check whether --enable-lto was given.
5911if test "${enable_lto+set}" = set; then :
5912 enableval=$enable_lto; enable_lto=$enableval
5913else
5914 enable_lto=yes; default_enable_lto=yes
5915fi
5916
5917
143754cd 5918
e49e5c92
DK
5919
5920
5921target_elf=no
5922case $target in
5923 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 5924 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 5925 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
5926 target_elf=no
5927 ;;
5928 *)
5929 target_elf=yes
5930 ;;
5931esac
5932
5933if test $target_elf = yes; then :
74cea91b
DK
5934 # ELF platforms build the lto-plugin always.
5935 build_lto_plugin=yes
e49e5c92 5936
e49e5c92
DK
5937else
5938 if test x"$default_enable_lto" = x"yes" ; then
29821356 5939 case $target in
899b04ef 5940 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 5941 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
5942 *) enable_lto=no ;;
5943 esac
e49e5c92 5944 else
29821356
RW
5945 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5946 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
5947 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5948 # warn during gcc/ subconfigure; unless you're bootstrapping with
5949 # -flto it won't be needed until after installation anyway.
5950 case $target in
a8eb3f0a 5951 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
5952 *) if test x"$enable_lto" = x"yes"; then
5953 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5954 fi
5955 ;;
5956 esac
5957 fi
a8eb3f0a 5958 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 5959 # Build it unless LTO was explicitly disabled.
a8eb3f0a 5960 case $target in
74cea91b 5961 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
5962 *) ;;
5963 esac
74cea91b 5964
e49e5c92
DK
5965fi
5966
700d40ca 5967
e28c595f 5968
7ec59b9e 5969# By default, C and C++ are the only stage 1 languages.
9b134994 5970stage1_languages=,c,
1d39f329 5971
e8a5fa9c 5972# Target libraries that we bootstrap.
2aa2364a 5973bootstrap_target_libs=,target-libgcc,
e8a5fa9c 5974
9e07f89d
NN
5975# Figure out what language subdirectories are present.
5976# Look if the user specified --enable-languages="..."; if not, use
5977# the environment variable $LANGUAGES if defined. $LANGUAGES might
5978# go away some day.
5979# NB: embedded tabs in this IF block -- do not untabify
5980if test -d ${srcdir}/gcc; then
5981 if test x"${enable_languages+set}" != xset; then
5982 if test x"${LANGUAGES+set}" = xset; then
5983 enable_languages="${LANGUAGES}"
5984 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5985 else
5986 enable_languages=all
5987 fi
5988 else
5989 if test x"${enable_languages}" = x ||
5990 test x"${enable_languages}" = xyes;
5991 then
5992 echo configure.in: --enable-languages needs at least one language argument 1>&2
5993 exit 1
5994 fi
5995 fi
5996 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5997
096f7d00
DE
5998 # 'f95' is the old name for the 'fortran' language. We issue a warning
5999 # and make the substitution.
6000 case ,${enable_languages}, in
6001 *,f95,*)
6002 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6003 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6004 ;;
6005 esac
6006
7ec59b9e
L
6007 # If bootstrapping, C++ must be enabled.
6008 case ",$enable_languages,:$enable_bootstrap" in
6009 *,c++,*:*) ;;
6010 *:yes)
ffdd6afc
ILT
6011 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6012 enable_languages="${enable_languages},c++"
6013 else
7ec59b9e 6014 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6015 fi
6016 ;;
6017 esac
6018
9e07f89d
NN
6019 # First scan to see if an enabled language requires some other language.
6020 # We assume that a given config-lang.in will list all the language
6021 # front ends it requires, even if some are required indirectly.
6022 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6023 case ${lang_frag} in
6024 ..) ;;
6025 # The odd quoting in the next line works around
6026 # an apparent bug in bash 1.12 on linux.
6027 ${srcdir}/gcc/[*]/config-lang.in) ;;
6028 *)
e552509b
ILT
6029 # From the config-lang.in, get $language, $lang_requires, and
6030 # $lang_requires_boot_languages.
9e07f89d
NN
6031 language=
6032 lang_requires=
e552509b 6033 lang_requires_boot_languages=
9e07f89d 6034 . ${lang_frag}
e552509b 6035 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6036 case ,${enable_languages}, in
6037 *,$other,*) ;;
6038 *,all,*) ;;
6039 *,$language,*)
6040 echo " \`$other' language required by \`$language'; enabling" 1>&2
6041 enable_languages="${enable_languages},${other}"
6042 ;;
6043 esac
6044 done
e552509b
ILT
6045 for other in ${lang_requires_boot_languages} ; do
6046 if test "$other" != "c"; then
6047 case ,${enable_stage1_languages}, in
6048 *,$other,*) ;;
6049 *,all,*) ;;
6050 *)
6051 case ,${enable_languages}, in
6052 *,$language,*)
6053 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6054 enable_stage1_languages="$enable_stage1_languages,${other}"
6055 ;;
6056 esac
6057 ;;
6058 esac
6059 fi
6060 done
9e07f89d
NN
6061 ;;
6062 esac
6063 done
6064
9b134994 6065 new_enable_languages=,c,
700d40ca
ILT
6066
6067 # If LTO is enabled, add the LTO front end.
6068 extra_host_libiberty_configure_flags=
6069 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6070 case ,${enable_languages}, in
6071 *,lto,*) ;;
6072 *) enable_languages="${enable_languages},lto" ;;
6073 esac
a8eb3f0a 6074 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6075 configdirs="$configdirs lto-plugin"
6076 extra_host_libiberty_configure_flags=--enable-shared
6077 fi
6078 fi
6079
6080
9e07f89d 6081 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6082 potential_languages=,c,
9e07f89d 6083
9e1a94f4
ILT
6084 enabled_target_libs=
6085 disabled_target_libs=
6086
9e07f89d
NN
6087 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6088 case ${lang_frag} in
6089 ..) ;;
6090 # The odd quoting in the next line works around
6091 # an apparent bug in bash 1.12 on linux.
6092 ${srcdir}/gcc/[*]/config-lang.in) ;;
6093 *)
c6b750e1 6094 # From the config-lang.in, get $language, $target_libs,
1d39f329 6095 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6096 language=
6097 target_libs=
6098 lang_dirs=
64ce424c 6099 subdir_requires=
9b134994
PB
6100 boot_language=no
6101 build_by_default=yes
9e07f89d 6102 . ${lang_frag}
9b134994
PB
6103 if test x${language} = x; then
6104 echo "${lang_frag} doesn't set \$language." 1>&2
6105 exit 1
6106 fi
6107
ffdd6afc 6108 if test "$language" = "c++"; then
7ec59b9e 6109 boot_language=yes
e8a5fa9c
RW
6110 fi
6111
9b134994
PB
6112 case ,${enable_languages}, in
6113 *,${language},*)
7ec59b9e
L
6114 # Language was explicitly selected; include it
6115 # unless it is C, which is enabled by default.
6116 if test "$language" != "c"; then
6117 add_this_lang=yes
6118 fi
9e07f89d 6119 ;;
9b134994
PB
6120 *,all,*)
6121 # 'all' was selected, select it if it is a default language
6122 add_this_lang=${build_by_default}
9e07f89d
NN
6123 ;;
6124 *)
6125 add_this_lang=no
6126 ;;
6127 esac
4b1cb4fe 6128
64ce424c 6129 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6130 for i in $subdir_requires; do
3d3adb43 6131 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6132 case ,${enable_languages}, in
6133 *,${language},*)
6134 # Specifically requested language; tell them.
81ecdfbb 6135 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6136 ;;
6137 *)
6138 # Silently disable.
9b134994 6139 add_this_lang=unsupported
64ce424c
PB
6140 ;;
6141 esac
6142 done
6143
9b134994
PB
6144 # Disable Ada if no preexisting GNAT is available.
6145 case ,${enable_languages},:${language}:${have_gnat} in
6146 *,${language},*:ada:no)
6147 # Specifically requested language; tell them.
81ecdfbb 6148 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6149 ;;
6150 *:ada:no)
6151 # Silently disable.
6152 add_this_lang=unsupported
6153 ;;
6154 esac
6155
59f7ec45
HPN
6156 # Disable a language that is unsupported by the target.
6157 case " $unsupported_languages " in
6158 *" $language "*)
9b134994 6159 add_this_lang=unsupported
59f7ec45
HPN
6160 ;;
6161 esac
6162
4b1cb4fe 6163 case $add_this_lang in
9b134994 6164 unsupported)
9e07f89d 6165 # Remove language-dependent dirs.
9e1a94f4
ILT
6166 disabled_target_libs="$disabled_target_libs $target_libs"
6167 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6168 ;;
9b134994
PB
6169 no)
6170 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6171 disabled_target_libs="$disabled_target_libs $target_libs"
6172 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6173 potential_languages="${potential_languages}${language},"
6174 ;;
6175 yes)
6176 new_enable_languages="${new_enable_languages}${language},"
6177 potential_languages="${potential_languages}${language},"
1d39f329 6178 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6179 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6180 case "${boot_language}:,$enable_stage1_languages," in
6181 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6182 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6183 case ",$stage1_languages," in
6184 *,$language,* | ,yes, | ,all,) ;;
6185 *) stage1_languages="${stage1_languages}${language}," ;;
6186 esac
e8a5fa9c
RW
6187 # We need to bootstrap any supporting libraries.
6188 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6189 ;;
6190 esac
6191 ;;
9e07f89d
NN
6192 esac
6193 ;;
6194 esac
6195 done
6196
9e1a94f4
ILT
6197 # Add target libraries which are only needed for disabled languages
6198 # to noconfigdirs.
6199 if test -n "$disabled_target_libs"; then
6200 for dir in $disabled_target_libs; do
6201 case " $enabled_target_libs " in
6202 *" ${dir} "*) ;;
6203 *) noconfigdirs="$noconfigdirs $dir" ;;
6204 esac
6205 done
6206 fi
6207
81ecdfbb
RW
6208 # Check whether --enable-stage1-languages was given.
6209if test "${enable_stage1_languages+set}" = set; then :
6210 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6211 ,no,|,,)
6212 # Set it to something that will have no effect in the loop below
6213 enable_stage1_languages=c ;;
6214 ,yes,)
6215 enable_stage1_languages=`echo $new_enable_languages | \
6216 sed -e "s/^,//" -e "s/,$//" ` ;;
6217 *,all,*)
6218 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6219 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6220 esac
6221
6222 # Add "good" languages from enable_stage1_languages to stage1_languages,
6223 # while "bad" languages go in missing_languages. Leave no duplicates.
6224 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6225 case $potential_languages in
6226 *,$i,*)
6227 case $stage1_languages in
6228 *,$i,*) ;;
6229 *) stage1_languages="$stage1_languages$i," ;;
6230 esac ;;
6231 *)
6232 case $missing_languages in
6233 *,$i,*) ;;
6234 *) missing_languages="$missing_languages$i," ;;
6235 esac ;;
6236 esac
6237 done
81ecdfbb
RW
6238fi
6239
9b134994
PB
6240
6241 # Remove leading/trailing commas that were added for simplicity
6242 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6243 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6244 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6245 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6246
9e07f89d 6247 if test "x$missing_languages" != x; then
81ecdfbb 6248 as_fn_error "
27258dd4 6249The following requested languages could not be built: ${missing_languages}
81ecdfbb 6250Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6251 fi
9e07f89d
NN
6252 if test "x$new_enable_languages" != "x$enable_languages"; then
6253 echo The following languages will be built: ${new_enable_languages}
9b134994 6254 enable_languages="$new_enable_languages"
9e07f89d 6255 fi
9b134994 6256
c6b750e1 6257
81ec575a 6258 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6259fi
6260
a6df5a19
PB
6261# Handle --disable-<component> generically.
6262for dir in $configdirs $build_configdirs $target_configdirs ; do
6263 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6264 varname=`echo $dirname | sed -e s/+/_/g`
6265 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6266 noconfigdirs="$noconfigdirs $dir"
6267 fi
6268done
6269
4f0ef2d8 6270# Check for Boehm's garbage collector
81ecdfbb
RW
6271# Check whether --enable-objc-gc was given.
6272if test "${enable_objc_gc+set}" = set; then :
6273 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6274 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6275 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6276 ;;
6277esac
81ecdfbb
RW
6278fi
6279
4f0ef2d8
CD
6280
6281# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6282case ,${enable_languages},:${enable_objc_gc} in
6283 *,objc,*:yes)
4f0ef2d8
CD
6284 # Keep target-boehm-gc if requested for Objective-C.
6285 ;;
4f0ef2d8 6286 *)
d42c4017
DA
6287 # Otherwise remove target-boehm-gc depending on target-libjava.
6288 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6289 noconfigdirs="$noconfigdirs target-boehm-gc"
6290 fi
4f0ef2d8
CD
6291 ;;
6292esac
6293
7ec59b9e
L
6294# Disable libitm if we're not building C++
6295case ,${enable_languages}, in
6296 *,c++,*) ;;
6297 *)
6298 noconfigdirs="$noconfigdirs target-libitm"
6299 ;;
6300esac
6301
caeba88f
AL
6302# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6303# $build_configdirs and $target_configdirs.
9e07f89d
NN
6304# If we have the source for $noconfigdirs entries, add them to $notsupp.
6305
6306notsupp=""
6307for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6308 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6309 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6310 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6311 if test -r $srcdir/$dirname/configure ; then
6312 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6313 true
6314 else
6315 notsupp="$notsupp $dir"
6316 fi
6317 fi
6318 fi
caeba88f
AL
6319 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6320 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6321 if test -r $srcdir/$dirname/configure ; then
6322 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6323 true
6324 else
6325 notsupp="$notsupp $dir"
6326 fi
6327 fi
6328 fi
9e07f89d
NN
6329 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6330 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6331 if test -r $srcdir/$dirname/configure ; then
6332 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6333 true
6334 else
6335 notsupp="$notsupp $dir"
6336 fi
6337 fi
6338 fi
6339done
6340
9e07f89d
NN
6341# Quietly strip out all directories which aren't configurable in this tree.
6342# This relies on all configurable subdirectories being autoconfiscated, which
6343# is now the case.
6a9cf61e
PB
6344build_configdirs_all="$build_configdirs"
6345build_configdirs=
6346for i in ${build_configdirs_all} ; do
c6b750e1 6347 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6348 if test -f ${srcdir}/$j/configure ; then
6349 build_configdirs="${build_configdirs} $i"
6350 fi
6351done
6352
9e07f89d
NN
6353configdirs_all="$configdirs"
6354configdirs=
6355for i in ${configdirs_all} ; do
6356 if test -f ${srcdir}/$i/configure ; then
6357 configdirs="${configdirs} $i"
6358 fi
6359done
6a9cf61e 6360
9e07f89d
NN
6361target_configdirs_all="$target_configdirs"
6362target_configdirs=
6363for i in ${target_configdirs_all} ; do
c6b750e1 6364 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6365 if test -f ${srcdir}/$j/configure ; then
6366 target_configdirs="${target_configdirs} $i"
6367 fi
6368done
6369
6370# Produce a warning message for the subdirs we can't configure.
6371# This isn't especially interesting in the Cygnus tree, but in the individual
6372# FSF releases, it's important to let people know when their machine isn't
6373# supported by the one or two programs in a package.
6374
6375if test -n "${notsupp}" && test -z "${norecursion}" ; then
6376 # If $appdirs is non-empty, at least one of those directories must still
6377 # be configured, or we error out. (E.g., if the gas release supports a
6378 # specified target in some subdirs but not the gas subdir, we shouldn't
6379 # pretend that all is well.)
6380 if test -n "$appdirs" ; then
6381 for dir in $appdirs ; do
6382 if test -r $dir/Makefile.in ; then
6383 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6384 appdirs=""
6385 break
6386 fi
6a9cf61e 6387 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6388 appdirs=""
6389 break
6390 fi
6391 fi
6392 done
6393 if test -n "$appdirs" ; then
6394 echo "*** This configuration is not supported by this package." 1>&2
6395 exit 1
6396 fi
6397 fi
6398 # Okay, some application will build, or we don't care to check. Still
6399 # notify of subdirs not getting built.
6400 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6401 echo " ${notsupp}" 1>&2
6402 echo " (Any other directories should still work fine.)" 1>&2
6403fi
6404
6405case "$host" in
6406 *msdosdjgpp*)
6407 enable_gdbtk=no ;;
6408esac
6409
18f6b6ee
PB
6410# To find our prefix, in gcc_cv_tool_prefix.
6411
6412# The user is always right.
6413if test "${PATH_SEPARATOR+set}" != set; then
6414 echo "#! /bin/sh" >conf$$.sh
6415 echo "exit 0" >>conf$$.sh
6416 chmod +x conf$$.sh
6417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6418 PATH_SEPARATOR=';'
6419 else
6420 PATH_SEPARATOR=:
6421 fi
6422 rm -f conf$$.sh
6423fi
6424
6425
6426
6427if test "x$exec_prefix" = xNONE; then
6428 if test "x$prefix" = xNONE; then
6429 gcc_cv_tool_prefix=$ac_default_prefix
6430 else
6431 gcc_cv_tool_prefix=$prefix
6432 fi
6433else
6434 gcc_cv_tool_prefix=$exec_prefix
6435fi
6436
6437# If there is no compiler in the tree, use the PATH only. In any
6438# case, if there is no compiler in the tree nobody should use
6439# AS_FOR_TARGET and LD_FOR_TARGET.
6440if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6441 gcc_version=`cat $srcdir/gcc/BASE-VER`
6442 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6443 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6444 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6445 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6446 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6447 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6448else
6449 gcc_cv_tool_dirs=
6450fi
6451
6452if test x$build = x$target && test -n "$md_exec_prefix"; then
6453 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6454fi
6455
6456
6457
9e07f89d
NN
6458copy_dirs=
6459
c6b750e1 6460
81ecdfbb
RW
6461# Check whether --with-build-sysroot was given.
6462if test "${with_build_sysroot+set}" = set; then :
6463 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6464 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6465 fi
6466else
6467 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6468fi
a19b6204
MM
6469
6470
8a6ee3ab 6471
81ecdfbb
RW
6472
6473# Check whether --with-debug-prefix-map was given.
6474if test "${with_debug_prefix_map+set}" = set; then :
6475 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6476 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6477 for debug_map in $withval; do
6478 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6479 done
6480 fi
6481else
6482 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6483fi
6484
8a6ee3ab
JM
6485
6486
7f6ef0c0
PB
6487# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6488# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6489# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6490# We want to ensure that TARGET libraries (which we know are built with
6491# gcc) are built with "-O2 -g", so include those options when setting
6492# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6493if test "x$CFLAGS_FOR_TARGET" = x; then
6494 CFLAGS_FOR_TARGET=$CFLAGS
6495 case " $CFLAGS " in
6496 *" -O2 "*) ;;
68f107fa 6497 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6498 esac
6499 case " $CFLAGS " in
6500 *" -g "* | *" -g3 "*) ;;
68f107fa 6501 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6502 esac
6503fi
6504
6505
6506if test "x$CXXFLAGS_FOR_TARGET" = x; then
6507 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6508 case " $CXXFLAGS " in
6509 *" -O2 "*) ;;
68f107fa 6510 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6511 esac
6512 case " $CXXFLAGS " in
6513 *" -g "* | *" -g3 "*) ;;
68f107fa 6514 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6515 esac
6516fi
6517
6518
91c1f14c
DK
6519
6520
9e07f89d
NN
6521# Handle --with-headers=XXX. If the value is not "yes", the contents of
6522# the named directory are copied to $(tooldir)/sys-include.
6523if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6524 if test x${is_cross_compiler} = xno ; then
6525 echo 1>&2 '***' --with-headers is only supported when cross compiling
6526 exit 1
6527 fi
6528 if test x"${with_headers}" != xyes ; then
18f6b6ee 6529 x=${gcc_cv_tool_prefix}
c6b750e1 6530 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6531 fi
6532fi
6533
6534# Handle --with-libs=XXX. If the value is not "yes", the contents of
6535# the name directories are copied to $(tooldir)/lib. Multiple directories
6536# are permitted.
6537if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6538 if test x${is_cross_compiler} = xno ; then
6539 echo 1>&2 '***' --with-libs is only supported when cross compiling
6540 exit 1
6541 fi
6542 if test x"${with_libs}" != xyes ; then
6543 # Copy the libraries in reverse order, so that files in the first named
6544 # library override files in subsequent libraries.
18f6b6ee 6545 x=${gcc_cv_tool_prefix}
9e07f89d 6546 for l in ${with_libs}; do
c6b750e1 6547 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6548 done
6549 fi
6550fi
6551
700d40ca 6552# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6553#
6554# This is done by determining whether or not the appropriate directory
6555# is available, and by checking whether or not specific configurations
6556# have requested that this magic not happen.
c6b750e1
DJ
6557#
6558# The command line options always override the explicit settings in
2429c060
PB
6559# configure.in, and the settings in configure.in override this magic.
6560#
c6b750e1 6561# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6562# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6563# --without-gnu-ld options for the configure script. Similarly, if
6564# the default is to use the included zlib and you don't want to do that,
6565# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6566
6567if test x${use_gnu_as} = x &&
6568 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6569 with_gnu_as=yes
6570 extra_host_args="$extra_host_args --with-gnu-as"
6571fi
6572
6573if test x${use_gnu_ld} = x &&
93f9b408 6574 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6575 with_gnu_ld=yes
6576 extra_host_args="$extra_host_args --with-gnu-ld"
6577fi
6578
700d40ca
ILT
6579if test x${use_included_zlib} = x &&
6580 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6581 :
6582else
6583 with_system_zlib=yes
6584 extra_host_args="$extra_host_args --with-system-zlib"
6585fi
6586
2429c060
PB
6587# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6588# can detect this case.
6589
6590if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6591 with_newlib=yes
6592 extra_host_args="$extra_host_args --with-newlib"
6593fi
6594
9e07f89d
NN
6595# Handle ${copy_dirs}
6596set fnord ${copy_dirs}
6597shift
6598while test $# != 0 ; do
6599 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6600 :
6601 else
6602 echo Copying $1 to $2
6603
6604 # Use the install script to create the directory and all required
6605 # parent directories.
6606 if test -d $2 ; then
6607 :
6608 else
6609 echo >config.temp
6610 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6611 fi
6612
6613 # Copy the directory, assuming we have tar.
6614 # FIXME: Should we use B in the second tar? Not all systems support it.
6615 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6616
6617 # It is the responsibility of the user to correctly adjust all
6618 # symlinks. If somebody can figure out how to handle them correctly
6619 # here, feel free to add the code.
6620
6621 echo $1 > $2/COPIED
6622 fi
6623 shift; shift
6624done
6625
2429c060
PB
6626# Determine a target-dependent exec_prefix that the installed
6627# gcc will search in. Keep this list sorted by triplet, with
6628# the *-*-osname triplets last.
6629md_exec_prefix=
6630case "${target}" in
521ec477 6631 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6632 md_exec_prefix=/dev/env/DJDIR/bin
6633 ;;
2429c060 6634 *-*-hpux* | \
2429c060 6635 *-*-nto-qnx* | \
1f111696 6636 *-*-solaris2*)
2429c060
PB
6637 md_exec_prefix=/usr/ccs/bin
6638 ;;
6639esac
6640
a0da8069
NN
6641extra_arflags_for_target=
6642extra_nmflags_for_target=
6643extra_ranlibflags_for_target=
6644target_makefile_frag=/dev/null
6645case "${target}" in
77d7106f
AM
6646 spu-*-*)
6647 target_makefile_frag="config/mt-spu"
6648 ;;
d09bbf00 6649 mips*-sde-elf* | mips*-mti-elf*)
429acdec
RS
6650 target_makefile_frag="config/mt-sde"
6651 ;;
f3b1e08e
RS
6652 mipsisa*-*-elfoabi*)
6653 target_makefile_frag="config/mt-mips-elfoabi"
6654 ;;
e7c8859c
RS
6655 mips*-*-*linux* | mips*-*-gnu*)
6656 target_makefile_frag="config/mt-mips-gnu"
6657 ;;
29383458 6658 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6659 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6660 ;;
6661 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6662 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6663 # commands to handle both 32-bit and 64-bit objects. These flags are
6664 # harmless if we're using GNU nm or ar.
6665 extra_arflags_for_target=" -X32_64"
6666 extra_nmflags_for_target=" -B -X32_64"
6667 ;;
a0da8069
NN
6668esac
6669
6670alphaieee_frag=/dev/null
6671case $target in
6672 alpha*-*-*)
6673 # This just makes sure to use the -mieee option to build target libs.
6674 # This should probably be set individually by each library.
6675 alphaieee_frag="config/mt-alphaieee"
6676 ;;
6677esac
6678
6679# If --enable-target-optspace always use -Os instead of -O2 to build
6680# the target libraries, similarly if it is not specified, use -Os
6681# on selected platforms.
6682ospace_frag=/dev/null
6683case "${enable_target_optspace}:${target}" in
6684 yes:*)
6685 ospace_frag="config/mt-ospace"
6686 ;;
6687 :d30v-*)
6688 ospace_frag="config/mt-d30v"
6689 ;;
6690 :m32r-* | :d10v-* | :fr30-*)
6691 ospace_frag="config/mt-ospace"
6692 ;;
6693 no:* | :*)
6694 ;;
6695 *)
6696 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6697 ;;
6698esac
6699
a0da8069
NN
6700# Some systems (e.g., one of the i386-aix systems the gas testers are
6701# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6702tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6703build_tooldir=${tooldir}
6704
a0da8069
NN
6705# Create a .gdbinit file which runs the one in srcdir
6706# and tells GDB to look there for source files.
6707
6708if test -r ${srcdir}/.gdbinit ; then
6709 case ${srcdir} in
6710 .) ;;
6711 *) cat > ./.gdbinit <<EOF
6712# ${NO_EDIT}
6713dir ${srcdir}
6714dir .
6715source ${srcdir}/.gdbinit
6716EOF
6717 ;;
6718 esac
6719fi
6720
a0da8069
NN
6721# Make sure that the compiler is able to generate an executable. If it
6722# can't, we are probably in trouble. We don't care whether we can run the
6723# executable--we might be using a cross compiler--we only care whether it
6724# can be created. At this point the main configure script has set CC.
6725we_are_ok=no
6726echo "int main () { return 0; }" > conftest.c
6727${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6728if test $? = 0 ; then
6729 if test -s conftest || test -s conftest.exe ; then
6730 we_are_ok=yes
6731 fi
c6b750e1 6732fi
a0da8069
NN
6733case $we_are_ok in
6734 no)
6735 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6736 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6737 rm -f conftest*
6738 exit 1
6739 ;;
6740esac
6741rm -f conftest*
6742
3bbd2f8f 6743# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6744case "${host}" in
6745 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6746 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6747 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6748 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6749esac
6750
3bbd2f8f 6751# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6752# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6753# built executables to PATH.
3bbd2f8f
AL
6754if test "$RPATH_ENVVAR" = PATH; then
6755 GCC_SHLIB_SUBDIR=/shlib
6756else
6757 GCC_SHLIB_SUBDIR=
6758fi
6759
a0da8069
NN
6760# Record target_configdirs and the configure arguments for target and
6761# build configuration in Makefile.
6762target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6763build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6764
2aa2364a
JR
6765# If we are building libgomp, bootstrap it.
6766if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6767 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6768fi
6769
a0da8069
NN
6770# Determine whether gdb needs tk/tcl or not.
6771# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6772# and in that case we want gdb to be built without tk. Ugh!
6773# In fact I believe gdb is the *only* package directly dependent on tk,
6774# so we should be able to put the 'maybe's in unconditionally and
6775# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6776# 100% sure that that's safe though.
c180f501 6777
675c6968 6778gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6779case "$enable_gdbtk" in
6780 no)
6781 GDB_TK="" ;;
c180f501
AC
6782 yes)
6783 GDB_TK="${gdb_tk}" ;;
a0da8069 6784 *)
c180f501
AC
6785 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6786 # distro. Eventually someone will fix this and move Insight, nee
6787 # gdbtk to a separate directory.
6788 if test -d ${srcdir}/gdb/gdbtk ; then
6789 GDB_TK="${gdb_tk}"
6790 else
6791 GDB_TK=""
6792 fi
6793 ;;
a0da8069 6794esac
907be67c
DJ
6795CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6796INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6797
6bd3dfaa 6798# Strip out unwanted targets.
dd12c3a8
NN
6799
6800# While at that, we remove Makefiles if we were started for recursive
6801# configuration, so that the top-level Makefile reconfigures them,
6802# like we used to do when configure itself was recursive.
dd12c3a8 6803
06a51eac
RW
6804# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6805# but now we're fixing up the Makefile ourselves with the additional
6806# commands passed to AC_CONFIG_FILES. Use separate variables
6807# extrasub-{build,host,target} not because there is any reason to split
6808# the substitutions up that way, but only to remain below the limit of
6809# 99 commands in a script, for HP-UX sed.
6810# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6811
16b1ad29
RW
6812case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6813 yes:yes:*\ gold\ *:*,c++,*) ;;
6814 yes:yes:*\ gold\ *:*)
6815 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6816 ;;
6817esac
6818
9cb3fa6f 6819# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 6820case $enable_bootstrap in
319cab08 6821 yes)
96655cc4
AO
6822 bootstrap_suffix=bootstrap
6823 BUILD_CONFIG=bootstrap-debug
6824 ;;
319cab08 6825 no)
96655cc4
AO
6826 bootstrap_suffix=no-bootstrap
6827 BUILD_CONFIG=
6828 ;;
319cab08
PB
6829esac
6830
96655cc4
AO
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6832$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6833
6834
6835# Check whether --with-build-config was given.
6836if test "${with_build_config+set}" = set; then :
6837 withval=$with_build_config; case $with_build_config in
6838 yes) with_build_config= ;;
6839 no) with_build_config= BUILD_CONFIG= ;;
6840 esac
6841fi
6842
6843
6844if test "x${with_build_config}" != x; then
6845 BUILD_CONFIG=$with_build_config
6846else
6847 case $BUILD_CONFIG in
6848 bootstrap-debug)
6849 if echo "int f (void) { return 0; }" > conftest.c &&
6850 ${CC} -c conftest.c &&
6851 mv conftest.o conftest.o.g0 &&
6852 ${CC} -c -g conftest.c &&
6853 mv conftest.o conftest.o.g &&
a009f2e7 6854 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
6855 :
6856 else
6857 BUILD_CONFIG=
6858 fi
6859 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6860 ;;
6861 esac
6862fi
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6864$as_echo "$BUILD_CONFIG" >&6; }
6865
6866
06a51eac 6867extrasub_build=
6a9cf61e 6868for module in ${build_configdirs} ; do
498d4a71
CF
6869 if test -z "${no_recursion}" \
6870 && test -f ${build_subdir}/${module}/Makefile; then
6871 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6872 rm -f ${build_subdir}/${module}/Makefile
6873 fi
06a51eac 6874 extrasub_build="$extrasub_build
498d4a71
CF
6875/^@if build-$module\$/d
6876/^@endif build-$module\$/d
6877/^@if build-$module-$bootstrap_suffix\$/d
6878/^@endif build-$module-$bootstrap_suffix\$/d"
6879done
06a51eac 6880extrasub_host=
498d4a71 6881for module in ${configdirs} ; do
80911fe1 6882 if test -z "${no_recursion}"; then
8cf39b1b 6883 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6884 if test -f ${file}; then
6885 echo 1>&2 "*** removing ${file} to force reconfigure"
6886 rm -f ${file}
6887 fi
6888 done
498d4a71 6889 fi
06a51eac 6890 extrasub_host="$extrasub_host
498d4a71
CF
6891/^@if $module\$/d
6892/^@endif $module\$/d
6893/^@if $module-$bootstrap_suffix\$/d
6894/^@endif $module-$bootstrap_suffix\$/d"
6895done
06a51eac 6896extrasub_target=
498d4a71
CF
6897for module in ${target_configdirs} ; do
6898 if test -z "${no_recursion}" \
6899 && test -f ${target_subdir}/${module}/Makefile; then
6900 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6901 rm -f ${target_subdir}/${module}/Makefile
6902 fi
e8a5fa9c
RW
6903
6904 # We only bootstrap target libraries listed in bootstrap_target_libs.
6905 case $bootstrap_target_libs in
6906 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6907 *) target_bootstrap_suffix=no-bootstrap ;;
6908 esac
6909
06a51eac 6910 extrasub_target="$extrasub_target
498d4a71
CF
6911/^@if target-$module\$/d
6912/^@endif target-$module\$/d
e8a5fa9c
RW
6913/^@if target-$module-$target_bootstrap_suffix\$/d
6914/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
6915done
6916
06a51eac
RW
6917# Do the final fixup along with target modules.
6918extrasub_target="$extrasub_target
6bd3dfaa 6919/^@if /,/^@endif /d"
a0da8069
NN
6920
6921# Create the serialization dependencies. This uses a temporary file.
6922
81ecdfbb
RW
6923# Check whether --enable-serial-configure was given.
6924if test "${enable_serial_configure+set}" = set; then :
6925 enableval=$enable_serial_configure;
6926fi
e6bfb94a
AO
6927
6928
1047cb91
DD
6929case ${enable_serial_configure} in
6930 yes)
6931 enable_serial_build_configure=yes
6932 enable_serial_host_configure=yes
6933 enable_serial_target_configure=yes
6934 ;;
6935esac
6936
a0da8069
NN
6937# These force 'configure's to be done one at a time, to avoid problems
6938# with contention over a shared config.cache.
6939rm -f serdep.tmp
e6bfb94a 6940echo '# serdep.tmp' > serdep.tmp
a0da8069 6941olditem=
1047cb91 6942test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6943for item in ${build_configdirs} ; do
6944 case ${olditem} in
6945 "") ;;
e6bfb94a 6946 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6947 esac
6948 olditem=${item}
6949done
6950olditem=
1047cb91 6951test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6952for item in ${configdirs} ; do
6953 case ${olditem} in
6954 "") ;;
e6bfb94a 6955 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6956 esac
6957 olditem=${item}
6958done
6959olditem=
1047cb91 6960test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6961for item in ${target_configdirs} ; do
6962 case ${olditem} in
6963 "") ;;
e6bfb94a 6964 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6965 esac
6966 olditem=${item}
6967done
6968serialization_dependencies=serdep.tmp
6969
6970
e6bfb94a 6971# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 6972# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
6973# might not want to pass down to subconfigures. The exception being
6974# --cache-file=/dev/null, which is used to turn off the use of cache
6975# files altogether, and which should be passed on to subconfigures.
6976# Also strip program-prefix, program-suffix, and program-transform-name,
6977# so that we can pass down a consistent program-transform-name.
c6b750e1 6978baseargs=
65b4571a 6979tbaseargs=
c6b750e1
DJ
6980keep_next=no
6981skip_next=no
6982eval "set -- $ac_configure_args"
18f6b6ee
PB
6983for ac_arg
6984do
c6b750e1
DJ
6985 if test X"$skip_next" = X"yes"; then
6986 skip_next=no
6987 continue
6988 fi
6989 if test X"$keep_next" = X"yes"; then
6990 case $ac_arg in
6991 *\'*)
6992 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6993 esac
6994 baseargs="$baseargs '$ac_arg'"
65b4571a 6995 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
6996 keep_next=no
6997 continue
6998 fi
6999
7000 # Handle separated arguments. Based on the logic generated by
7001 # autoconf 2.59.
7002 case $ac_arg in
7003 *=* | --config-cache | -C | -disable-* | --disable-* \
7004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7006 | -with-* | --with-* | -without-* | --without-* | --x)
7007 separate_arg=no
7008 ;;
7009 -*)
7010 separate_arg=yes
7011 ;;
7012 *)
7013 separate_arg=no
7014 ;;
7015 esac
7016
65b4571a
AO
7017 skip_targ=no
7018 case $ac_arg in
7019
7020 --with-* | --without-*)
7021 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7022
7023 case $libopt in
7024 *[-_]include)
7025 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7026 ;;
7027 *[-_]lib)
7028 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7029 ;;
7030 *)
7031 lib=$libopt
7032 ;;
7033 esac
7034
7035
7036 case $lib in
7ec59b9e 7037 mpc | mpfr | gmp | cloog)
65b4571a
AO
7038 # If we're processing --with-$lib, --with-$lib-include or
7039 # --with-$lib-lib, for one of the libs above, and target is
7040 # different from host, don't pass the current argument to any
7041 # target library's configure.
7042 if test x$is_cross_compiler = xyes; then
7043 skip_targ=yes
7044 fi
7045 ;;
7046 esac
7047 ;;
7048 esac
7049
c6b750e1 7050 case "$ac_arg" in
30167e0a
NC
7051 --cache-file=/dev/null | \
7052 -cache-file=/dev/null )
7053 # Handled here to avoid the test to skip args below.
7054 baseargs="$baseargs '$ac_arg'"
65b4571a 7055 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7056 # Assert: $separate_arg should always be no.
7057 keep_next=$separate_arg
7058 ;;
c6b750e1
DJ
7059 --no*)
7060 continue
7061 ;;
7062 --c* | \
7063 --sr* | \
7064 --ho* | \
7065 --bu* | \
7066 --t* | \
7067 --program-* | \
7068 -cache_file* | \
7069 -srcdir* | \
7070 -host* | \
7071 -build* | \
7072 -target* | \
7073 -program-prefix* | \
7074 -program-suffix* | \
7075 -program-transform-name* )
7076 skip_next=$separate_arg
7077 continue
7078 ;;
7079 -*)
7080 # An option. Add it.
7081 case $ac_arg in
7082 *\'*)
7083 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7084 esac
7085 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7086 if test X"$skip_targ" = Xno; then
7087 tbaseargs="$tbaseargs '$ac_arg'"
7088 fi
c6b750e1
DJ
7089 keep_next=$separate_arg
7090 ;;
7091 *)
7092 # Either a variable assignment, or a nonopt (triplet). Don't
7093 # pass it down; let the Makefile handle this.
7094 continue
7095 ;;
7096 esac
7097done
7098# Remove the initial space we just introduced and, as these will be
7099# expanded by make, quote '$'.
7100baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7101
f27d4f92
DJ
7102# Add in --program-transform-name, after --program-prefix and
7103# --program-suffix have been applied to it. Autoconf has already
7104# doubled dollar signs and backslashes in program_transform_name; we want
7105# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7106# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7107# Also, because we want to override the logic in subdir configure scripts to
7108# choose program_transform_name, replace any s,x,x, with s,y,y,.
7109sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7110${program_transform_name}
7111EOF_SED
7112gcc_transform_name=`cat conftestsed.out`
7113rm -f conftestsed.out
7114baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7115tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7116if test "$silent" = yes; then
7117 baseargs="$baseargs --silent"
65b4571a 7118 tbaseargs="$tbaseargs --silent"
2444379b 7119fi
34a0f3cf 7120baseargs="$baseargs --disable-option-checking"
65b4571a 7121tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7122
4074d5f2
RW
7123# Record and document user additions to sub configure arguments.
7124
7125
7126
7127
a0da8069
NN
7128# For the build-side libraries, we just need to pretend we're native,
7129# and not use the same cache file. Multilibs are neither needed nor
7130# desired.
4074d5f2 7131build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7132
7133# For host modules, accept cache file option, or specification as blank.
7134case "${cache_file}" in
7135"") # empty
7136 cache_file_option="" ;;
7137/* | [A-Za-z]:[\\/]* ) # absolute path
7138 cache_file_option="--cache-file=${cache_file}" ;;
7139*) # relative path
7140 cache_file_option="--cache-file=../${cache_file}" ;;
7141esac
7142
82252c06
NN
7143# Host dirs don't like to share a cache file either, horribly enough.
7144# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7145host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7146
65b4571a 7147target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7148
7149# Passing a --with-cross-host argument lets the target libraries know
7150# whether they are being built with a cross-compiler or being built
7151# native. However, it would be better to use other mechanisms to make the
7152# sorts of decisions they want to make on this basis. Please consider
7153# this option to be deprecated. FIXME.
7154if test x${is_cross_compiler} = xyes ; then
c6b750e1 7155 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7156fi
7157
938d2b74
RW
7158# Default to --enable-multilib.
7159if test x${enable_multilib} = x ; then
a0da8069 7160 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7161fi
a0da8069
NN
7162
7163# Pass --with-newlib if appropriate. Note that target_configdirs has
7164# changed from the earlier setting of with_newlib.
7165if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7166 target_configargs="--with-newlib ${target_configargs}"
7167fi
7168
95036d20
NN
7169# Different target subdirs use different values of certain variables
7170# (notably CXX). Worse, multilibs use *lots* of different values.
7171# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7172# it doesn't automatically accept command-line overrides of them.
7173# This means it's not safe for target subdirs to share a cache file,
7174# which is disgusting, but there you have it. Hopefully this can be
7175# fixed in future. It's still worthwhile to use a cache file for each
7176# directory. I think.
7177
ae380b45
MS
7178# Pass the appropriate --build, --host, --target and --cache-file arguments.
7179# We need to pass --target, as newer autoconf's requires consistency
7180# for target_alias and gcc doesn't manage it consistently.
4b900473 7181target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7182
a0da8069
NN
7183FLAGS_FOR_TARGET=
7184case " $target_configdirs " in
7185 *" newlib "*)
7186 case " $target_configargs " in
7187 *" --with-newlib "*)
7188 case "$target" in
1f53ca9a
AO
7189 *-cygwin*)
7190 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'
7191 ;;
a0da8069
NN
7192 esac
7193
7194 # If we're not building GCC, don't discard standard headers.
7195 if test -d ${srcdir}/gcc; then
7196 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7197
7198 if test "${build}" != "${host}"; then
7199 # On Canadian crosses, CC_FOR_TARGET will have already been set
7200 # by `configure', so we won't have an opportunity to add -Bgcc/
7201 # to it. This is right: we don't want to search that directory
7202 # for binaries, but we want the header files in there, so add
7203 # them explicitly.
e552509b 7204 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7205
7206 # Someone might think of using the pre-installed headers on
7207 # Canadian crosses, in case the installed compiler is not fully
7208 # compatible with the compiler being built. In this case, it
7209 # would be better to flag an error than risking having
7210 # incompatible object files being constructed. We can't
7211 # guarantee that an error will be flagged, but let's hope the
7212 # compiler will do it, when presented with incompatible header
7213 # files.
7214 fi
7215 fi
7216
7217 case "${target}-${is_cross_compiler}" in
ec11bdc6 7218 i[3456789]86-*-linux*-no)
a0da8069
NN
7219 # Here host == target, so we don't need to build gcc,
7220 # so we don't want to discard standard headers.
7221 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7222 ;;
7223 *)
7224 # If we're building newlib, use its generic headers last, but search
7225 # for any libc-related directories first (so make it the last -B
7226 # switch).
7227 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
7228
7229 # If we're building libgloss, find the startup file, simulator library
7230 # and linker script.
7231 case " $target_configdirs " in
7232 *" libgloss "*)
7233 # Look for startup file, simulator library and maybe linker script.
7234 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7235 # Look for libnosys.a in case the target needs it.
7236 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7237 # Most targets have the linker script in the source directory.
7238 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7239 ;;
7240 esac
a0da8069
NN
7241 ;;
7242 esac
7243 ;;
7244 esac
7245 ;;
7246esac
1f53ca9a 7247
45055374 7248case "$target" in
1f53ca9a
AO
7249 x86_64-*mingw* | *-w64-mingw*)
7250 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7251 # however, use a symlink named 'mingw' in ${prefix} .
7252 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7253 ;;
7254 *-mingw*)
7255 # MinGW can't be handled as Cygwin above since it does not use newlib.
7256 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'
7257 ;;
45055374 7258esac
a0da8069 7259
5fbad20a
DD
7260# Allow the user to override the flags for
7261# our build compiler if desired.
c66487f8
NC
7262if test x"${build}" = x"${host}" ; then
7263 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7264 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7265 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7266fi
5fbad20a 7267
a0da8069
NN
7268# On Canadian crosses, we'll be searching the right directories for
7269# the previously-installed cross compiler, so don't bother to add
7270# flags for directories within the install tree of the compiler
7271# being built; programs in there won't even run.
7272if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7273 # Search for pre-installed headers if nothing else fits.
bba45b8b 7274 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
7275fi
7276
7277if test "x${use_gnu_ld}" = x &&
7278 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7279 # Arrange for us to find uninstalled linker scripts.
b00612cc 7280 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7281fi
7282
a481dbb7
DD
7283# Search for other target-specific linker scripts and such.
7284case "${target}" in
4e206d7e
DB
7285 mep*)
7286 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7287 ;;
7288esac
7289
a0da8069 7290# Makefile fragments.
3e707e94
PB
7291for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7292do
7293 eval fragval=\$$frag
7294 if test $fragval != /dev/null; then
7295 eval $frag=${srcdir}/$fragval
7296 fi
7297done
a0da8069
NN
7298
7299
7300
7301
7302
7303# Miscellanea: directories, flags, etc.
7304
7305
7306
7307
7308
7309
7310
3bbd2f8f 7311
6a9cf61e 7312# Build module lists & subconfigure args.
a0da8069
NN
7313
7314
7315
be01d343
PB
7316# Host module lists & subconfigure args.
7317
7318
7319
911e63d0 7320
be01d343
PB
7321# Target module lists & subconfigure args.
7322
7323
7324
7325# Build tools.
7326
7327
7328
1576798e
PB
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
be01d343
PB
7343# Generate default definitions for YACC, M4, LEX and other programs that run
7344# on the build machine. These are used if the Makefile can't locate these
7345# programs in objdir.
7346MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7347
7348for ac_prog in 'bison -y' byacc yacc
7349do
c6b750e1 7350 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7351set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353$as_echo_n "checking for $ac_word... " >&6; }
7354if test "${ac_cv_prog_YACC+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
be01d343
PB
7356else
7357 if test -n "$YACC"; then
7358 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7359else
c6b750e1
DJ
7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7367 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7369 break 2
7370 fi
7371done
81ecdfbb
RW
7372 done
7373IFS=$as_save_IFS
c6b750e1 7374
be01d343
PB
7375fi
7376fi
c6b750e1 7377YACC=$ac_cv_prog_YACC
be01d343 7378if test -n "$YACC"; then
81ecdfbb
RW
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7380$as_echo "$YACC" >&6; }
be01d343 7381else
81ecdfbb
RW
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383$as_echo "no" >&6; }
be01d343
PB
7384fi
7385
81ecdfbb 7386
c6b750e1 7387 test -n "$YACC" && break
be01d343
PB
7388done
7389test -n "$YACC" || YACC="$MISSING bison -y"
7390
7391case " $build_configdirs " in
7392 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7393esac
7394
7395for ac_prog in bison
7396do
c6b750e1 7397 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7398set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400$as_echo_n "checking for $ac_word... " >&6; }
7401if test "${ac_cv_prog_BISON+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
be01d343
PB
7403else
7404 if test -n "$BISON"; then
7405 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7406else
c6b750e1
DJ
7407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408for as_dir in $PATH
7409do
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7414 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7416 break 2
7417 fi
7418done
81ecdfbb
RW
7419 done
7420IFS=$as_save_IFS
c6b750e1 7421
be01d343
PB
7422fi
7423fi
c6b750e1 7424BISON=$ac_cv_prog_BISON
be01d343 7425if test -n "$BISON"; then
81ecdfbb
RW
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7427$as_echo "$BISON" >&6; }
be01d343 7428else
81ecdfbb
RW
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430$as_echo "no" >&6; }
be01d343
PB
7431fi
7432
81ecdfbb 7433
c6b750e1 7434 test -n "$BISON" && break
be01d343
PB
7435done
7436test -n "$BISON" || BISON="$MISSING bison"
7437
7438case " $build_configdirs " in
7439 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7440esac
7441
7442for ac_prog in gm4 gnum4 m4
7443do
c6b750e1 7444 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7445set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447$as_echo_n "checking for $ac_word... " >&6; }
7448if test "${ac_cv_prog_M4+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
be01d343
PB
7450else
7451 if test -n "$M4"; then
7452 ac_cv_prog_M4="$M4" # Let the user override the test.
7453else
c6b750e1
DJ
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7461 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7463 break 2
7464 fi
7465done
81ecdfbb
RW
7466 done
7467IFS=$as_save_IFS
c6b750e1 7468
be01d343
PB
7469fi
7470fi
c6b750e1 7471M4=$ac_cv_prog_M4
be01d343 7472if test -n "$M4"; then
81ecdfbb
RW
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7474$as_echo "$M4" >&6; }
be01d343 7475else
81ecdfbb
RW
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477$as_echo "no" >&6; }
be01d343
PB
7478fi
7479
81ecdfbb 7480
c6b750e1 7481 test -n "$M4" && break
be01d343
PB
7482done
7483test -n "$M4" || M4="$MISSING m4"
7484
7485case " $build_configdirs " in
7486 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7487esac
7488
7489for ac_prog in flex lex
7490do
c6b750e1 7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7492set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494$as_echo_n "checking for $ac_word... " >&6; }
7495if test "${ac_cv_prog_LEX+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
be01d343
PB
7497else
7498 if test -n "$LEX"; then
7499 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7500else
c6b750e1
DJ
7501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502for as_dir in $PATH
7503do
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7508 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7510 break 2
7511 fi
7512done
81ecdfbb
RW
7513 done
7514IFS=$as_save_IFS
c6b750e1 7515
be01d343
PB
7516fi
7517fi
c6b750e1 7518LEX=$ac_cv_prog_LEX
be01d343 7519if test -n "$LEX"; then
81ecdfbb
RW
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7521$as_echo "$LEX" >&6; }
be01d343 7522else
81ecdfbb
RW
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524$as_echo "no" >&6; }
be01d343
PB
7525fi
7526
81ecdfbb 7527
c6b750e1 7528 test -n "$LEX" && break
be01d343
PB
7529done
7530test -n "$LEX" || LEX="$MISSING flex"
7531
7532case " $build_configdirs " in
7533 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7534 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7535esac
7536
7537for ac_prog in flex
7538do
c6b750e1 7539 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7540set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542$as_echo_n "checking for $ac_word... " >&6; }
7543if test "${ac_cv_prog_FLEX+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
be01d343
PB
7545else
7546 if test -n "$FLEX"; then
7547 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7548else
c6b750e1
DJ
7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550for as_dir in $PATH
7551do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7556 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7558 break 2
7559 fi
7560done
81ecdfbb
RW
7561 done
7562IFS=$as_save_IFS
c6b750e1 7563
be01d343
PB
7564fi
7565fi
c6b750e1 7566FLEX=$ac_cv_prog_FLEX
be01d343 7567if test -n "$FLEX"; then
81ecdfbb
RW
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7569$as_echo "$FLEX" >&6; }
be01d343 7570else
81ecdfbb
RW
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
be01d343
PB
7573fi
7574
81ecdfbb 7575
c6b750e1 7576 test -n "$FLEX" && break
be01d343
PB
7577done
7578test -n "$FLEX" || FLEX="$MISSING flex"
7579
7580case " $build_configdirs " in
7581 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7582esac
7583
7584for ac_prog in makeinfo
7585do
c6b750e1 7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7587set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589$as_echo_n "checking for $ac_word... " >&6; }
7590if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
be01d343
PB
7592else
7593 if test -n "$MAKEINFO"; then
7594 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7595else
c6b750e1
DJ
7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7603 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7605 break 2
7606 fi
7607done
81ecdfbb
RW
7608 done
7609IFS=$as_save_IFS
c6b750e1 7610
be01d343
PB
7611fi
7612fi
c6b750e1 7613MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7614if test -n "$MAKEINFO"; then
81ecdfbb
RW
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7616$as_echo "$MAKEINFO" >&6; }
be01d343 7617else
81ecdfbb
RW
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619$as_echo "no" >&6; }
be01d343
PB
7620fi
7621
81ecdfbb 7622
c6b750e1 7623 test -n "$MAKEINFO" && break
be01d343
PB
7624done
7625test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7626
7627case " $build_configdirs " in
7628 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7629 *)
7630
10ad8ef3 7631 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7632 # higher, else we use the "missing" dummy.
7633 if ${MAKEINFO} --version \
10ad8ef3 7634 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7635 :
7636 else
7637 MAKEINFO="$MISSING makeinfo"
7638 fi
7639 ;;
7640
7641esac
a0da8069 7642
be01d343 7643# FIXME: expect and dejagnu may become build tools?
a0da8069 7644
be01d343
PB
7645for ac_prog in expect
7646do
c6b750e1 7647 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7648set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650$as_echo_n "checking for $ac_word... " >&6; }
7651if test "${ac_cv_prog_EXPECT+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
be01d343
PB
7653else
7654 if test -n "$EXPECT"; then
7655 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7656else
c6b750e1
DJ
7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7664 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7666 break 2
7667 fi
7668done
81ecdfbb
RW
7669 done
7670IFS=$as_save_IFS
c6b750e1 7671
be01d343
PB
7672fi
7673fi
c6b750e1 7674EXPECT=$ac_cv_prog_EXPECT
be01d343 7675if test -n "$EXPECT"; then
81ecdfbb
RW
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7677$as_echo "$EXPECT" >&6; }
be01d343 7678else
81ecdfbb
RW
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680$as_echo "no" >&6; }
be01d343 7681fi
a0da8069 7682
81ecdfbb 7683
c6b750e1 7684 test -n "$EXPECT" && break
be01d343
PB
7685done
7686test -n "$EXPECT" || EXPECT="expect"
a0da8069 7687
be01d343
PB
7688case " $configdirs " in
7689 *" expect "*)
7690 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7691 ;;
7692esac
a0da8069 7693
be01d343
PB
7694for ac_prog in runtest
7695do
c6b750e1 7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7697set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699$as_echo_n "checking for $ac_word... " >&6; }
7700if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
be01d343
PB
7702else
7703 if test -n "$RUNTEST"; then
7704 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7705else
c6b750e1
DJ
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7713 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7715 break 2
7716 fi
7717done
81ecdfbb
RW
7718 done
7719IFS=$as_save_IFS
c6b750e1 7720
be01d343
PB
7721fi
7722fi
c6b750e1 7723RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7724if test -n "$RUNTEST"; then
81ecdfbb
RW
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7726$as_echo "$RUNTEST" >&6; }
be01d343 7727else
81ecdfbb
RW
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729$as_echo "no" >&6; }
be01d343 7730fi
a0da8069 7731
81ecdfbb 7732
c6b750e1 7733 test -n "$RUNTEST" && break
be01d343
PB
7734done
7735test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7736
be01d343
PB
7737case " $configdirs " in
7738 *" dejagnu "*)
6b89cc21 7739 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7740 ;;
7741esac
a0da8069
NN
7742
7743
a0da8069 7744# Host tools.
859789af
AC
7745ncn_tool_prefix=
7746test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7747ncn_target_tool_prefix=
7748test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7749
9a819804
AO
7750
7751
7752if test -n "$AR"; then
7753 ac_cv_prog_AR=$AR
7754elif test -n "$ac_cv_prog_AR"; then
7755 AR=$ac_cv_prog_AR
7756fi
7757
7758if test -n "$ac_cv_prog_AR"; then
7759 for ncn_progname in ar; do
7760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7761set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763$as_echo_n "checking for $ac_word... " >&6; }
7764if test "${ac_cv_prog_AR+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
9a819804
AO
7766else
7767 if test -n "$AR"; then
7768 ac_cv_prog_AR="$AR" # Let the user override the test.
7769else
7770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7777 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7779 break 2
7780 fi
7781done
81ecdfbb
RW
7782 done
7783IFS=$as_save_IFS
9a819804
AO
7784
7785fi
7786fi
7787AR=$ac_cv_prog_AR
7788if test -n "$AR"; then
81ecdfbb
RW
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7790$as_echo "$AR" >&6; }
9a819804 7791else
81ecdfbb
RW
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793$as_echo "no" >&6; }
9a819804
AO
7794fi
7795
81ecdfbb 7796
9a819804
AO
7797 done
7798fi
7799
7800for ncn_progname in ar; do
05cbd757
PB
7801 if test -n "$ncn_tool_prefix"; then
7802 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7803set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805$as_echo_n "checking for $ac_word... " >&6; }
7806if test "${ac_cv_prog_AR+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
859789af
AC
7808else
7809 if test -n "$AR"; then
7810 ac_cv_prog_AR="$AR" # Let the user override the test.
7811else
c6b750e1
DJ
7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7819 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7821 break 2
7822 fi
7823done
81ecdfbb
RW
7824 done
7825IFS=$as_save_IFS
c6b750e1 7826
859789af
AC
7827fi
7828fi
c6b750e1 7829AR=$ac_cv_prog_AR
859789af 7830if test -n "$AR"; then
81ecdfbb
RW
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7832$as_echo "$AR" >&6; }
859789af 7833else
81ecdfbb
RW
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835$as_echo "no" >&6; }
859789af
AC
7836fi
7837
81ecdfbb 7838
05cbd757
PB
7839 fi
7840 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7842set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
7845if test "${ac_cv_prog_AR+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
859789af 7847else
05cbd757
PB
7848 if test -n "$AR"; then
7849 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7850else
c6b750e1
DJ
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7858 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7860 break 2
7861 fi
7862done
81ecdfbb
RW
7863 done
7864IFS=$as_save_IFS
c6b750e1 7865
859789af
AC
7866fi
7867fi
c6b750e1 7868AR=$ac_cv_prog_AR
05cbd757 7869if test -n "$AR"; then
81ecdfbb
RW
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7871$as_echo "$AR" >&6; }
859789af 7872else
81ecdfbb
RW
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
859789af 7875fi
c6b750e1 7876
81ecdfbb 7877
05cbd757
PB
7878 fi
7879 test -n "$ac_cv_prog_AR" && break
7880done
7881
7882if test -z "$ac_cv_prog_AR" ; then
7883 set dummy ar
7884 if test $build = $host ; then
7885 AR="$2"
859789af 7886 else
05cbd757 7887 AR="${ncn_tool_prefix}$2"
859789af 7888 fi
859789af
AC
7889fi
7890
9a819804
AO
7891
7892
7893if test -n "$AS"; then
7894 ac_cv_prog_AS=$AS
7895elif test -n "$ac_cv_prog_AS"; then
7896 AS=$ac_cv_prog_AS
7897fi
7898
7899if test -n "$ac_cv_prog_AS"; then
7900 for ncn_progname in as; do
7901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7902set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904$as_echo_n "checking for $ac_word... " >&6; }
7905if test "${ac_cv_prog_AS+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
9a819804
AO
7907else
7908 if test -n "$AS"; then
7909 ac_cv_prog_AS="$AS" # Let the user override the test.
7910else
7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912for as_dir in $PATH
7913do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7918 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7920 break 2
7921 fi
7922done
81ecdfbb
RW
7923 done
7924IFS=$as_save_IFS
9a819804
AO
7925
7926fi
7927fi
7928AS=$ac_cv_prog_AS
7929if test -n "$AS"; then
81ecdfbb
RW
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7931$as_echo "$AS" >&6; }
9a819804 7932else
81ecdfbb
RW
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934$as_echo "no" >&6; }
9a819804
AO
7935fi
7936
81ecdfbb 7937
9a819804
AO
7938 done
7939fi
7940
7941for ncn_progname in as; do
05cbd757
PB
7942 if test -n "$ncn_tool_prefix"; then
7943 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7944set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946$as_echo_n "checking for $ac_word... " >&6; }
7947if test "${ac_cv_prog_AS+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
859789af
AC
7949else
7950 if test -n "$AS"; then
7951 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
7952else
7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7960 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7962 break 2
7963 fi
7964done
81ecdfbb
RW
7965 done
7966IFS=$as_save_IFS
c6b750e1 7967
859789af
AC
7968fi
7969fi
c6b750e1 7970AS=$ac_cv_prog_AS
859789af 7971if test -n "$AS"; then
81ecdfbb
RW
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7973$as_echo "$AS" >&6; }
859789af 7974else
81ecdfbb
RW
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976$as_echo "no" >&6; }
859789af
AC
7977fi
7978
81ecdfbb 7979
05cbd757
PB
7980 fi
7981 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7983set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985$as_echo_n "checking for $ac_word... " >&6; }
7986if test "${ac_cv_prog_AS+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
859789af 7988else
05cbd757
PB
7989 if test -n "$AS"; then
7990 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 7991else
c6b750e1
DJ
7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993for as_dir in $PATH
7994do
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7999 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8001 break 2
8002 fi
8003done
81ecdfbb
RW
8004 done
8005IFS=$as_save_IFS
c6b750e1 8006
859789af
AC
8007fi
8008fi
c6b750e1 8009AS=$ac_cv_prog_AS
05cbd757 8010if test -n "$AS"; then
81ecdfbb
RW
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8012$as_echo "$AS" >&6; }
859789af 8013else
81ecdfbb
RW
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015$as_echo "no" >&6; }
859789af 8016fi
c6b750e1 8017
81ecdfbb 8018
05cbd757
PB
8019 fi
8020 test -n "$ac_cv_prog_AS" && break
8021done
8022
8023if test -z "$ac_cv_prog_AS" ; then
8024 set dummy as
8025 if test $build = $host ; then
8026 AS="$2"
859789af 8027 else
05cbd757 8028 AS="${ncn_tool_prefix}$2"
859789af 8029 fi
859789af
AC
8030fi
8031
9a819804
AO
8032
8033
8034if test -n "$DLLTOOL"; then
8035 ac_cv_prog_DLLTOOL=$DLLTOOL
8036elif test -n "$ac_cv_prog_DLLTOOL"; then
8037 DLLTOOL=$ac_cv_prog_DLLTOOL
8038fi
8039
8040if test -n "$ac_cv_prog_DLLTOOL"; then
8041 for ncn_progname in dlltool; do
8042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8043set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045$as_echo_n "checking for $ac_word... " >&6; }
8046if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8047 $as_echo_n "(cached) " >&6
9a819804
AO
8048else
8049 if test -n "$DLLTOOL"; then
8050 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8051else
8052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053for as_dir in $PATH
8054do
8055 IFS=$as_save_IFS
8056 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8059 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8061 break 2
8062 fi
8063done
81ecdfbb
RW
8064 done
8065IFS=$as_save_IFS
9a819804
AO
8066
8067fi
8068fi
8069DLLTOOL=$ac_cv_prog_DLLTOOL
8070if test -n "$DLLTOOL"; then
81ecdfbb
RW
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8072$as_echo "$DLLTOOL" >&6; }
9a819804 8073else
81ecdfbb
RW
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075$as_echo "no" >&6; }
9a819804
AO
8076fi
8077
81ecdfbb 8078
9a819804
AO
8079 done
8080fi
8081
8082for ncn_progname in dlltool; do
05cbd757
PB
8083 if test -n "$ncn_tool_prefix"; then
8084 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8085set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087$as_echo_n "checking for $ac_word... " >&6; }
8088if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
859789af
AC
8090else
8091 if test -n "$DLLTOOL"; then
8092 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8093else
c6b750e1
DJ
8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095for as_dir in $PATH
8096do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8101 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8103 break 2
8104 fi
8105done
81ecdfbb
RW
8106 done
8107IFS=$as_save_IFS
c6b750e1 8108
859789af
AC
8109fi
8110fi
c6b750e1 8111DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8112if test -n "$DLLTOOL"; then
81ecdfbb
RW
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8114$as_echo "$DLLTOOL" >&6; }
859789af 8115else
81ecdfbb
RW
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117$as_echo "no" >&6; }
859789af
AC
8118fi
8119
81ecdfbb 8120
05cbd757
PB
8121 fi
8122 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8124set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126$as_echo_n "checking for $ac_word... " >&6; }
8127if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
859789af 8129else
05cbd757
PB
8130 if test -n "$DLLTOOL"; then
8131 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8132else
c6b750e1
DJ
8133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134for as_dir in $PATH
8135do
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8140 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8142 break 2
8143 fi
8144done
81ecdfbb
RW
8145 done
8146IFS=$as_save_IFS
c6b750e1 8147
859789af
AC
8148fi
8149fi
c6b750e1 8150DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8151if test -n "$DLLTOOL"; then
81ecdfbb
RW
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8153$as_echo "$DLLTOOL" >&6; }
859789af 8154else
81ecdfbb
RW
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156$as_echo "no" >&6; }
859789af 8157fi
c6b750e1 8158
81ecdfbb 8159
05cbd757
PB
8160 fi
8161 test -n "$ac_cv_prog_DLLTOOL" && break
8162done
8163
8164if test -z "$ac_cv_prog_DLLTOOL" ; then
8165 set dummy dlltool
8166 if test $build = $host ; then
8167 DLLTOOL="$2"
859789af 8168 else
05cbd757 8169 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8170 fi
859789af
AC
8171fi
8172
9a819804
AO
8173
8174
8175if test -n "$LD"; then
8176 ac_cv_prog_LD=$LD
8177elif test -n "$ac_cv_prog_LD"; then
8178 LD=$ac_cv_prog_LD
8179fi
8180
8181if test -n "$ac_cv_prog_LD"; then
8182 for ncn_progname in ld; do
8183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8184set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186$as_echo_n "checking for $ac_word... " >&6; }
8187if test "${ac_cv_prog_LD+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
9a819804
AO
8189else
8190 if test -n "$LD"; then
8191 ac_cv_prog_LD="$LD" # Let the user override the test.
8192else
8193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH
8195do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8200 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8202 break 2
8203 fi
8204done
81ecdfbb
RW
8205 done
8206IFS=$as_save_IFS
9a819804
AO
8207
8208fi
8209fi
8210LD=$ac_cv_prog_LD
8211if test -n "$LD"; then
81ecdfbb
RW
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8213$as_echo "$LD" >&6; }
9a819804 8214else
81ecdfbb
RW
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216$as_echo "no" >&6; }
9a819804
AO
8217fi
8218
81ecdfbb 8219
9a819804
AO
8220 done
8221fi
8222
8223for ncn_progname in ld; do
05cbd757
PB
8224 if test -n "$ncn_tool_prefix"; then
8225 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8226set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228$as_echo_n "checking for $ac_word... " >&6; }
8229if test "${ac_cv_prog_LD+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
859789af
AC
8231else
8232 if test -n "$LD"; then
8233 ac_cv_prog_LD="$LD" # Let the user override the test.
8234else
c6b750e1
DJ
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8242 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8244 break 2
8245 fi
8246done
81ecdfbb
RW
8247 done
8248IFS=$as_save_IFS
c6b750e1 8249
859789af
AC
8250fi
8251fi
c6b750e1 8252LD=$ac_cv_prog_LD
859789af 8253if test -n "$LD"; then
81ecdfbb
RW
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8255$as_echo "$LD" >&6; }
859789af 8256else
81ecdfbb
RW
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258$as_echo "no" >&6; }
859789af
AC
8259fi
8260
81ecdfbb 8261
05cbd757
PB
8262 fi
8263 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8265set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
8268if test "${ac_cv_prog_LD+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
859789af 8270else
05cbd757
PB
8271 if test -n "$LD"; then
8272 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8273else
c6b750e1
DJ
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8281 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8283 break 2
8284 fi
8285done
81ecdfbb
RW
8286 done
8287IFS=$as_save_IFS
c6b750e1 8288
859789af
AC
8289fi
8290fi
c6b750e1 8291LD=$ac_cv_prog_LD
05cbd757 8292if test -n "$LD"; then
81ecdfbb
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8294$as_echo "$LD" >&6; }
859789af 8295else
81ecdfbb
RW
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
859789af 8298fi
c6b750e1 8299
81ecdfbb 8300
05cbd757
PB
8301 fi
8302 test -n "$ac_cv_prog_LD" && break
8303done
8304
8305if test -z "$ac_cv_prog_LD" ; then
8306 set dummy ld
8307 if test $build = $host ; then
8308 LD="$2"
859789af 8309 else
05cbd757 8310 LD="${ncn_tool_prefix}$2"
859789af 8311 fi
859789af
AC
8312fi
8313
9a819804
AO
8314
8315
8316if test -n "$LIPO"; then
8317 ac_cv_prog_LIPO=$LIPO
8318elif test -n "$ac_cv_prog_LIPO"; then
8319 LIPO=$ac_cv_prog_LIPO
8320fi
8321
8322if test -n "$ac_cv_prog_LIPO"; then
8323 for ncn_progname in lipo; do
8324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8325set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327$as_echo_n "checking for $ac_word... " >&6; }
8328if test "${ac_cv_prog_LIPO+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
9a819804
AO
8330else
8331 if test -n "$LIPO"; then
8332 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8333else
8334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335for as_dir in $PATH
8336do
8337 IFS=$as_save_IFS
8338 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8341 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8343 break 2
8344 fi
8345done
81ecdfbb
RW
8346 done
8347IFS=$as_save_IFS
9a819804
AO
8348
8349fi
8350fi
8351LIPO=$ac_cv_prog_LIPO
8352if test -n "$LIPO"; then
81ecdfbb
RW
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8354$as_echo "$LIPO" >&6; }
9a819804 8355else
81ecdfbb
RW
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357$as_echo "no" >&6; }
9a819804
AO
8358fi
8359
81ecdfbb 8360
9a819804
AO
8361 done
8362fi
8363
8364for ncn_progname in lipo; do
be01d343
PB
8365 if test -n "$ncn_tool_prefix"; then
8366 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8367set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369$as_echo_n "checking for $ac_word... " >&6; }
8370if test "${ac_cv_prog_LIPO+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
be01d343
PB
8372else
8373 if test -n "$LIPO"; then
8374 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8375else
c6b750e1
DJ
8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8383 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8385 break 2
8386 fi
8387done
81ecdfbb
RW
8388 done
8389IFS=$as_save_IFS
c6b750e1 8390
be01d343
PB
8391fi
8392fi
c6b750e1 8393LIPO=$ac_cv_prog_LIPO
be01d343 8394if test -n "$LIPO"; then
81ecdfbb
RW
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8396$as_echo "$LIPO" >&6; }
be01d343 8397else
81ecdfbb
RW
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399$as_echo "no" >&6; }
be01d343
PB
8400fi
8401
81ecdfbb 8402
be01d343
PB
8403 fi
8404 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408$as_echo_n "checking for $ac_word... " >&6; }
8409if test "${ac_cv_prog_LIPO+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
be01d343
PB
8411else
8412 if test -n "$LIPO"; then
8413 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8414else
c6b750e1
DJ
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8422 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8424 break 2
8425 fi
8426done
81ecdfbb
RW
8427 done
8428IFS=$as_save_IFS
c6b750e1 8429
be01d343
PB
8430fi
8431fi
c6b750e1 8432LIPO=$ac_cv_prog_LIPO
be01d343 8433if test -n "$LIPO"; then
81ecdfbb
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8435$as_echo "$LIPO" >&6; }
be01d343 8436else
81ecdfbb
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
be01d343 8439fi
c6b750e1 8440
81ecdfbb 8441
be01d343
PB
8442 fi
8443 test -n "$ac_cv_prog_LIPO" && break
8444done
8445
8446if test -z "$ac_cv_prog_LIPO" ; then
8447 set dummy lipo
8448 if test $build = $host ; then
8449 LIPO="$2"
8450 else
8451 LIPO="${ncn_tool_prefix}$2"
8452 fi
8453fi
8454
9a819804
AO
8455
8456
8457if test -n "$NM"; then
8458 ac_cv_prog_NM=$NM
8459elif test -n "$ac_cv_prog_NM"; then
8460 NM=$ac_cv_prog_NM
8461fi
8462
8463if test -n "$ac_cv_prog_NM"; then
8464 for ncn_progname in nm; do
8465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8466set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468$as_echo_n "checking for $ac_word... " >&6; }
8469if test "${ac_cv_prog_NM+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
859789af
AC
8471else
8472 if test -n "$NM"; then
8473 ac_cv_prog_NM="$NM" # Let the user override the test.
8474else
c6b750e1
DJ
8475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476for as_dir in $PATH
8477do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8482 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8484 break 2
8485 fi
8486done
81ecdfbb
RW
8487 done
8488IFS=$as_save_IFS
c6b750e1 8489
859789af
AC
8490fi
8491fi
c6b750e1 8492NM=$ac_cv_prog_NM
859789af 8493if test -n "$NM"; then
81ecdfbb
RW
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8495$as_echo "$NM" >&6; }
859789af 8496else
81ecdfbb
RW
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498$as_echo "no" >&6; }
859789af
AC
8499fi
8500
81ecdfbb 8501
9a819804
AO
8502 done
8503fi
8504
8505for ncn_progname in nm; do
8506 if test -n "$ncn_tool_prefix"; then
8507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8508set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510$as_echo_n "checking for $ac_word... " >&6; }
8511if test "${ac_cv_prog_NM+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
859789af 8513else
05cbd757
PB
8514 if test -n "$NM"; then
8515 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8516else
c6b750e1
DJ
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8524 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8526 break 2
8527 fi
8528done
81ecdfbb
RW
8529 done
8530IFS=$as_save_IFS
c6b750e1 8531
859789af
AC
8532fi
8533fi
c6b750e1 8534NM=$ac_cv_prog_NM
05cbd757 8535if test -n "$NM"; then
81ecdfbb
RW
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8537$as_echo "$NM" >&6; }
859789af 8538else
81ecdfbb
RW
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
859789af 8541fi
c6b750e1 8542
81ecdfbb 8543
05cbd757 8544 fi
9a819804
AO
8545 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8547set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549$as_echo_n "checking for $ac_word... " >&6; }
8550if test "${ac_cv_prog_NM+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
9a819804
AO
8552else
8553 if test -n "$NM"; then
8554 ac_cv_prog_NM="$NM" # Let the user override the test.
8555else
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8563 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8565 break 2
8566 fi
8567done
81ecdfbb
RW
8568 done
8569IFS=$as_save_IFS
9a819804
AO
8570
8571fi
8572fi
8573NM=$ac_cv_prog_NM
8574if test -n "$NM"; then
81ecdfbb
RW
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8576$as_echo "$NM" >&6; }
9a819804 8577else
81ecdfbb
RW
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579$as_echo "no" >&6; }
9a819804
AO
8580fi
8581
81ecdfbb 8582
9a819804
AO
8583 fi
8584 test -n "$ac_cv_prog_NM" && break
8585done
8586
8587if test -z "$ac_cv_prog_NM" ; then
8588 set dummy nm
8589 if test $build = $host ; then
8590 NM="$2"
8591 else
8592 NM="${ncn_tool_prefix}$2"
8593 fi
8594fi
8595
8596
8597
8598if test -n "$RANLIB"; then
8599 ac_cv_prog_RANLIB=$RANLIB
8600elif test -n "$ac_cv_prog_RANLIB"; then
8601 RANLIB=$ac_cv_prog_RANLIB
8602fi
8603
8604if test -n "$ac_cv_prog_RANLIB"; then
8605 for ncn_progname in ranlib; do
8606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8607set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
8610if test "${ac_cv_prog_RANLIB+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
9a819804
AO
8612else
8613 if test -n "$RANLIB"; then
8614 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8615else
8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8623 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8625 break 2
8626 fi
8627done
81ecdfbb
RW
8628 done
8629IFS=$as_save_IFS
9a819804
AO
8630
8631fi
8632fi
8633RANLIB=$ac_cv_prog_RANLIB
8634if test -n "$RANLIB"; then
81ecdfbb
RW
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8636$as_echo "$RANLIB" >&6; }
9a819804 8637else
81ecdfbb
RW
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639$as_echo "no" >&6; }
9a819804
AO
8640fi
8641
81ecdfbb 8642
9a819804
AO
8643 done
8644fi
859789af 8645
9a819804 8646for ncn_progname in ranlib; do
05cbd757
PB
8647 if test -n "$ncn_tool_prefix"; then
8648 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8649set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651$as_echo_n "checking for $ac_word... " >&6; }
8652if test "${ac_cv_prog_RANLIB+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
859789af
AC
8654else
8655 if test -n "$RANLIB"; then
8656 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8657else
c6b750e1
DJ
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8665 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8667 break 2
8668 fi
8669done
81ecdfbb
RW
8670 done
8671IFS=$as_save_IFS
c6b750e1 8672
859789af
AC
8673fi
8674fi
c6b750e1 8675RANLIB=$ac_cv_prog_RANLIB
859789af 8676if test -n "$RANLIB"; then
81ecdfbb
RW
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8678$as_echo "$RANLIB" >&6; }
859789af 8679else
81ecdfbb
RW
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681$as_echo "no" >&6; }
859789af
AC
8682fi
8683
81ecdfbb 8684
05cbd757
PB
8685 fi
8686 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8688set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690$as_echo_n "checking for $ac_word... " >&6; }
8691if test "${ac_cv_prog_RANLIB+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
859789af 8693else
05cbd757
PB
8694 if test -n "$RANLIB"; then
8695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8696else
c6b750e1
DJ
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8704 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8706 break 2
8707 fi
8708done
81ecdfbb
RW
8709 done
8710IFS=$as_save_IFS
c6b750e1 8711
859789af
AC
8712fi
8713fi
c6b750e1 8714RANLIB=$ac_cv_prog_RANLIB
05cbd757 8715if test -n "$RANLIB"; then
81ecdfbb
RW
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8717$as_echo "$RANLIB" >&6; }
859789af 8718else
81ecdfbb
RW
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720$as_echo "no" >&6; }
859789af 8721fi
c6b750e1 8722
81ecdfbb 8723
859789af 8724 fi
05cbd757
PB
8725 test -n "$ac_cv_prog_RANLIB" && break
8726done
8727
8728if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8729 RANLIB="true"
859789af
AC
8730fi
8731
9a819804
AO
8732
8733
8734if test -n "$STRIP"; then
8735 ac_cv_prog_STRIP=$STRIP
8736elif test -n "$ac_cv_prog_STRIP"; then
8737 STRIP=$ac_cv_prog_STRIP
8738fi
8739
8740if test -n "$ac_cv_prog_STRIP"; then
8741 for ncn_progname in strip; do
8742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8743set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745$as_echo_n "checking for $ac_word... " >&6; }
8746if test "${ac_cv_prog_STRIP+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
9a819804
AO
8748else
8749 if test -n "$STRIP"; then
8750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8751else
8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8759 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8761 break 2
8762 fi
8763done
81ecdfbb
RW
8764 done
8765IFS=$as_save_IFS
9a819804
AO
8766
8767fi
8768fi
8769STRIP=$ac_cv_prog_STRIP
8770if test -n "$STRIP"; then
81ecdfbb
RW
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8772$as_echo "$STRIP" >&6; }
9a819804 8773else
81ecdfbb
RW
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775$as_echo "no" >&6; }
9a819804
AO
8776fi
8777
81ecdfbb 8778
9a819804
AO
8779 done
8780fi
8781
8782for ncn_progname in strip; do
be01d343
PB
8783 if test -n "$ncn_tool_prefix"; then
8784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8785set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787$as_echo_n "checking for $ac_word... " >&6; }
8788if test "${ac_cv_prog_STRIP+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
be01d343
PB
8790else
8791 if test -n "$STRIP"; then
8792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8793else
c6b750e1
DJ
8794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795for as_dir in $PATH
8796do
8797 IFS=$as_save_IFS
8798 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8799 for ac_exec_ext in '' $ac_executable_extensions; do
8800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8801 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8803 break 2
8804 fi
8805done
81ecdfbb
RW
8806 done
8807IFS=$as_save_IFS
c6b750e1 8808
be01d343
PB
8809fi
8810fi
c6b750e1 8811STRIP=$ac_cv_prog_STRIP
be01d343 8812if test -n "$STRIP"; then
81ecdfbb
RW
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8814$as_echo "$STRIP" >&6; }
be01d343 8815else
81ecdfbb
RW
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817$as_echo "no" >&6; }
be01d343
PB
8818fi
8819
81ecdfbb 8820
be01d343
PB
8821 fi
8822 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8824set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826$as_echo_n "checking for $ac_word... " >&6; }
8827if test "${ac_cv_prog_STRIP+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
be01d343
PB
8829else
8830 if test -n "$STRIP"; then
8831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8832else
c6b750e1
DJ
8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834for as_dir in $PATH
8835do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8840 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8842 break 2
8843 fi
8844done
81ecdfbb
RW
8845 done
8846IFS=$as_save_IFS
c6b750e1 8847
be01d343
PB
8848fi
8849fi
c6b750e1 8850STRIP=$ac_cv_prog_STRIP
be01d343 8851if test -n "$STRIP"; then
81ecdfbb
RW
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8853$as_echo "$STRIP" >&6; }
be01d343 8854else
81ecdfbb
RW
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856$as_echo "no" >&6; }
be01d343 8857fi
c6b750e1 8858
81ecdfbb 8859
be01d343
PB
8860 fi
8861 test -n "$ac_cv_prog_STRIP" && break
8862done
8863
8864if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 8865 STRIP="true"
be01d343
PB
8866fi
8867
9a819804
AO
8868
8869
8870if test -n "$WINDRES"; then
8871 ac_cv_prog_WINDRES=$WINDRES
8872elif test -n "$ac_cv_prog_WINDRES"; then
8873 WINDRES=$ac_cv_prog_WINDRES
8874fi
8875
8876if test -n "$ac_cv_prog_WINDRES"; then
8877 for ncn_progname in windres; do
8878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8879set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881$as_echo_n "checking for $ac_word... " >&6; }
8882if test "${ac_cv_prog_WINDRES+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
9a819804
AO
8884else
8885 if test -n "$WINDRES"; then
8886 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8887else
8888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889for as_dir in $PATH
8890do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8895 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8897 break 2
8898 fi
8899done
81ecdfbb
RW
8900 done
8901IFS=$as_save_IFS
9a819804
AO
8902
8903fi
8904fi
8905WINDRES=$ac_cv_prog_WINDRES
8906if test -n "$WINDRES"; then
81ecdfbb
RW
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8908$as_echo "$WINDRES" >&6; }
9a819804 8909else
81ecdfbb
RW
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
9a819804
AO
8912fi
8913
81ecdfbb 8914
9a819804
AO
8915 done
8916fi
8917
8918for ncn_progname in windres; do
05cbd757
PB
8919 if test -n "$ncn_tool_prefix"; then
8920 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8921set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923$as_echo_n "checking for $ac_word... " >&6; }
8924if test "${ac_cv_prog_WINDRES+set}" = set; then :
8925 $as_echo_n "(cached) " >&6
859789af
AC
8926else
8927 if test -n "$WINDRES"; then
8928 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8929else
c6b750e1
DJ
8930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931for as_dir in $PATH
8932do
8933 IFS=$as_save_IFS
8934 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8937 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8939 break 2
8940 fi
8941done
81ecdfbb
RW
8942 done
8943IFS=$as_save_IFS
c6b750e1 8944
859789af
AC
8945fi
8946fi
c6b750e1 8947WINDRES=$ac_cv_prog_WINDRES
859789af 8948if test -n "$WINDRES"; then
81ecdfbb
RW
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8950$as_echo "$WINDRES" >&6; }
859789af 8951else
81ecdfbb
RW
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
859789af
AC
8954fi
8955
81ecdfbb 8956
05cbd757
PB
8957 fi
8958 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8960set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962$as_echo_n "checking for $ac_word... " >&6; }
8963if test "${ac_cv_prog_WINDRES+set}" = set; then :
8964 $as_echo_n "(cached) " >&6
859789af 8965else
05cbd757
PB
8966 if test -n "$WINDRES"; then
8967 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 8968else
c6b750e1
DJ
8969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970for as_dir in $PATH
8971do
8972 IFS=$as_save_IFS
8973 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8974 for ac_exec_ext in '' $ac_executable_extensions; do
8975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8976 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8978 break 2
8979 fi
8980done
81ecdfbb
RW
8981 done
8982IFS=$as_save_IFS
c6b750e1 8983
859789af
AC
8984fi
8985fi
c6b750e1 8986WINDRES=$ac_cv_prog_WINDRES
05cbd757 8987if test -n "$WINDRES"; then
81ecdfbb
RW
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8989$as_echo "$WINDRES" >&6; }
859789af 8990else
81ecdfbb
RW
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992$as_echo "no" >&6; }
859789af 8993fi
c6b750e1 8994
81ecdfbb 8995
05cbd757
PB
8996 fi
8997 test -n "$ac_cv_prog_WINDRES" && break
8998done
8999
9000if test -z "$ac_cv_prog_WINDRES" ; then
9001 set dummy windres
9002 if test $build = $host ; then
9003 WINDRES="$2"
859789af 9004 else
05cbd757 9005 WINDRES="${ncn_tool_prefix}$2"
859789af 9006 fi
859789af
AC
9007fi
9008
9a819804
AO
9009
9010
0c24b341
NC
9011if test -n "$WINDMC"; then
9012 ac_cv_prog_WINDMC=$WINDMC
9013elif test -n "$ac_cv_prog_WINDMC"; then
9014 WINDMC=$ac_cv_prog_WINDMC
9015fi
9016
9017if test -n "$ac_cv_prog_WINDMC"; then
9018 for ncn_progname in windmc; do
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022$as_echo_n "checking for $ac_word... " >&6; }
9023if test "${ac_cv_prog_WINDMC+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
0c24b341
NC
9025else
9026 if test -n "$WINDMC"; then
9027 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9028else
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9036 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9038 break 2
9039 fi
9040done
81ecdfbb
RW
9041 done
9042IFS=$as_save_IFS
0c24b341
NC
9043
9044fi
9045fi
9046WINDMC=$ac_cv_prog_WINDMC
9047if test -n "$WINDMC"; then
81ecdfbb
RW
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9049$as_echo "$WINDMC" >&6; }
0c24b341 9050else
81ecdfbb
RW
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
0c24b341
NC
9053fi
9054
81ecdfbb 9055
0c24b341
NC
9056 done
9057fi
9058
9059for ncn_progname in windmc; do
9060 if test -n "$ncn_tool_prefix"; then
9061 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9062set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064$as_echo_n "checking for $ac_word... " >&6; }
9065if test "${ac_cv_prog_WINDMC+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
0c24b341
NC
9067else
9068 if test -n "$WINDMC"; then
9069 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9070else
9071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072for as_dir in $PATH
9073do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9078 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9080 break 2
9081 fi
9082done
81ecdfbb
RW
9083 done
9084IFS=$as_save_IFS
0c24b341
NC
9085
9086fi
9087fi
9088WINDMC=$ac_cv_prog_WINDMC
9089if test -n "$WINDMC"; then
81ecdfbb
RW
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9091$as_echo "$WINDMC" >&6; }
0c24b341 9092else
81ecdfbb
RW
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094$as_echo "no" >&6; }
0c24b341
NC
9095fi
9096
81ecdfbb 9097
0c24b341
NC
9098 fi
9099 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103$as_echo_n "checking for $ac_word... " >&6; }
9104if test "${ac_cv_prog_WINDMC+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
0c24b341
NC
9106else
9107 if test -n "$WINDMC"; then
9108 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9109else
9110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $PATH
9112do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9117 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9119 break 2
9120 fi
9121done
81ecdfbb
RW
9122 done
9123IFS=$as_save_IFS
0c24b341
NC
9124
9125fi
9126fi
9127WINDMC=$ac_cv_prog_WINDMC
9128if test -n "$WINDMC"; then
81ecdfbb
RW
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9130$as_echo "$WINDMC" >&6; }
0c24b341 9131else
81ecdfbb
RW
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133$as_echo "no" >&6; }
0c24b341
NC
9134fi
9135
81ecdfbb 9136
0c24b341
NC
9137 fi
9138 test -n "$ac_cv_prog_WINDMC" && break
9139done
9140
9141if test -z "$ac_cv_prog_WINDMC" ; then
9142 set dummy windmc
9143 if test $build = $host ; then
9144 WINDMC="$2"
9145 else
9146 WINDMC="${ncn_tool_prefix}$2"
9147 fi
9148fi
9149
9150
9151
9a819804
AO
9152if test -n "$OBJCOPY"; then
9153 ac_cv_prog_OBJCOPY=$OBJCOPY
9154elif test -n "$ac_cv_prog_OBJCOPY"; then
9155 OBJCOPY=$ac_cv_prog_OBJCOPY
9156fi
9157
9158if test -n "$ac_cv_prog_OBJCOPY"; then
9159 for ncn_progname in objcopy; do
9160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9161set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163$as_echo_n "checking for $ac_word... " >&6; }
9164if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9165 $as_echo_n "(cached) " >&6
9a819804
AO
9166else
9167 if test -n "$OBJCOPY"; then
9168 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9169else
9170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171for as_dir in $PATH
9172do
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9175 for ac_exec_ext in '' $ac_executable_extensions; do
9176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9177 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9179 break 2
9180 fi
9181done
81ecdfbb
RW
9182 done
9183IFS=$as_save_IFS
9a819804
AO
9184
9185fi
9186fi
9187OBJCOPY=$ac_cv_prog_OBJCOPY
9188if test -n "$OBJCOPY"; then
81ecdfbb
RW
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9190$as_echo "$OBJCOPY" >&6; }
9a819804 9191else
81ecdfbb
RW
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193$as_echo "no" >&6; }
9a819804
AO
9194fi
9195
81ecdfbb 9196
9a819804
AO
9197 done
9198fi
9199
9200for ncn_progname in objcopy; do
05cbd757
PB
9201 if test -n "$ncn_tool_prefix"; then
9202 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9203set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9205$as_echo_n "checking for $ac_word... " >&6; }
9206if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9207 $as_echo_n "(cached) " >&6
859789af
AC
9208else
9209 if test -n "$OBJCOPY"; then
9210 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9211else
c6b750e1
DJ
9212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213for as_dir in $PATH
9214do
9215 IFS=$as_save_IFS
9216 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9217 for ac_exec_ext in '' $ac_executable_extensions; do
9218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9219 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9221 break 2
9222 fi
9223done
81ecdfbb
RW
9224 done
9225IFS=$as_save_IFS
c6b750e1 9226
859789af
AC
9227fi
9228fi
c6b750e1 9229OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9230if test -n "$OBJCOPY"; then
81ecdfbb
RW
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9232$as_echo "$OBJCOPY" >&6; }
859789af 9233else
81ecdfbb
RW
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235$as_echo "no" >&6; }
859789af
AC
9236fi
9237
81ecdfbb 9238
05cbd757
PB
9239 fi
9240 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9242set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244$as_echo_n "checking for $ac_word... " >&6; }
9245if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9246 $as_echo_n "(cached) " >&6
859789af 9247else
05cbd757
PB
9248 if test -n "$OBJCOPY"; then
9249 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9250else
c6b750e1
DJ
9251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252for as_dir in $PATH
9253do
9254 IFS=$as_save_IFS
9255 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9258 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9260 break 2
9261 fi
9262done
81ecdfbb
RW
9263 done
9264IFS=$as_save_IFS
c6b750e1 9265
859789af
AC
9266fi
9267fi
c6b750e1 9268OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9269if test -n "$OBJCOPY"; then
81ecdfbb
RW
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9271$as_echo "$OBJCOPY" >&6; }
859789af 9272else
81ecdfbb
RW
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274$as_echo "no" >&6; }
859789af 9275fi
c6b750e1 9276
81ecdfbb 9277
05cbd757
PB
9278 fi
9279 test -n "$ac_cv_prog_OBJCOPY" && break
9280done
9281
9282if test -z "$ac_cv_prog_OBJCOPY" ; then
9283 set dummy objcopy
9284 if test $build = $host ; then
9285 OBJCOPY="$2"
859789af 9286 else
05cbd757 9287 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9288 fi
859789af
AC
9289fi
9290
9a819804
AO
9291
9292
9293if test -n "$OBJDUMP"; then
9294 ac_cv_prog_OBJDUMP=$OBJDUMP
9295elif test -n "$ac_cv_prog_OBJDUMP"; then
9296 OBJDUMP=$ac_cv_prog_OBJDUMP
9297fi
9298
9299if test -n "$ac_cv_prog_OBJDUMP"; then
9300 for ncn_progname in objdump; do
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304$as_echo_n "checking for $ac_word... " >&6; }
9305if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9a819804
AO
9307else
9308 if test -n "$OBJDUMP"; then
9309 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9310else
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314 IFS=$as_save_IFS
9315 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9318 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9320 break 2
9321 fi
9322done
81ecdfbb
RW
9323 done
9324IFS=$as_save_IFS
9a819804
AO
9325
9326fi
9327fi
9328OBJDUMP=$ac_cv_prog_OBJDUMP
9329if test -n "$OBJDUMP"; then
81ecdfbb
RW
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9331$as_echo "$OBJDUMP" >&6; }
9a819804 9332else
81ecdfbb
RW
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334$as_echo "no" >&6; }
9a819804
AO
9335fi
9336
81ecdfbb 9337
9a819804
AO
9338 done
9339fi
9340
9341for ncn_progname in objdump; do
05cbd757
PB
9342 if test -n "$ncn_tool_prefix"; then
9343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9344set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346$as_echo_n "checking for $ac_word... " >&6; }
9347if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9348 $as_echo_n "(cached) " >&6
859789af
AC
9349else
9350 if test -n "$OBJDUMP"; then
9351 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9352else
c6b750e1
DJ
9353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354for as_dir in $PATH
9355do
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9360 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9362 break 2
9363 fi
9364done
81ecdfbb
RW
9365 done
9366IFS=$as_save_IFS
c6b750e1 9367
859789af
AC
9368fi
9369fi
c6b750e1 9370OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9371if test -n "$OBJDUMP"; then
81ecdfbb
RW
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9373$as_echo "$OBJDUMP" >&6; }
859789af 9374else
81ecdfbb
RW
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376$as_echo "no" >&6; }
859789af
AC
9377fi
9378
81ecdfbb 9379
05cbd757
PB
9380 fi
9381 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9383set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385$as_echo_n "checking for $ac_word... " >&6; }
9386if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9387 $as_echo_n "(cached) " >&6
859789af 9388else
05cbd757
PB
9389 if test -n "$OBJDUMP"; then
9390 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9391else
c6b750e1
DJ
9392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $PATH
9394do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9399 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9401 break 2
9402 fi
9403done
81ecdfbb
RW
9404 done
9405IFS=$as_save_IFS
c6b750e1 9406
859789af
AC
9407fi
9408fi
c6b750e1 9409OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9410if test -n "$OBJDUMP"; then
81ecdfbb
RW
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9412$as_echo "$OBJDUMP" >&6; }
859789af 9413else
81ecdfbb
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415$as_echo "no" >&6; }
859789af 9416fi
c6b750e1 9417
81ecdfbb 9418
05cbd757
PB
9419 fi
9420 test -n "$ac_cv_prog_OBJDUMP" && break
9421done
9422
9423if test -z "$ac_cv_prog_OBJDUMP" ; then
9424 set dummy objdump
9425 if test $build = $host ; then
9426 OBJDUMP="$2"
859789af 9427 else
05cbd757 9428 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9429 fi
859789af
AC
9430fi
9431
a0da8069
NN
9432
9433
b121d7d4
DD
9434if test -n "$READELF"; then
9435 ac_cv_prog_READELF=$READELF
9436elif test -n "$ac_cv_prog_READELF"; then
9437 READELF=$ac_cv_prog_READELF
9438fi
9439
9440if test -n "$ac_cv_prog_READELF"; then
9441 for ncn_progname in readelf; do
9442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443set dummy ${ncn_progname}; ac_word=$2
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445$as_echo_n "checking for $ac_word... " >&6; }
9446if test "${ac_cv_prog_READELF+set}" = set; then :
9447 $as_echo_n "(cached) " >&6
9448else
9449 if test -n "$READELF"; then
9450 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9451else
9452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453for as_dir in $PATH
9454do
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9459 ac_cv_prog_READELF="${ncn_progname}"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 break 2
9462 fi
9463done
9464 done
9465IFS=$as_save_IFS
9466
9467fi
9468fi
9469READELF=$ac_cv_prog_READELF
9470if test -n "$READELF"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9472$as_echo "$READELF" >&6; }
9473else
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475$as_echo "no" >&6; }
9476fi
9477
9478
9479 done
9480fi
9481
9482for ncn_progname in readelf; do
9483 if test -n "$ncn_tool_prefix"; then
9484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9487$as_echo_n "checking for $ac_word... " >&6; }
9488if test "${ac_cv_prog_READELF+set}" = set; then :
9489 $as_echo_n "(cached) " >&6
9490else
9491 if test -n "$READELF"; then
9492 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9493else
9494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495for as_dir in $PATH
9496do
9497 IFS=$as_save_IFS
9498 test -z "$as_dir" && as_dir=.
9499 for ac_exec_ext in '' $ac_executable_extensions; do
9500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9501 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9503 break 2
9504 fi
9505done
9506 done
9507IFS=$as_save_IFS
9508
9509fi
9510fi
9511READELF=$ac_cv_prog_READELF
9512if test -n "$READELF"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9514$as_echo "$READELF" >&6; }
9515else
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517$as_echo "no" >&6; }
9518fi
9519
9520
9521 fi
9522 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9524set dummy ${ncn_progname}; ac_word=$2
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526$as_echo_n "checking for $ac_word... " >&6; }
9527if test "${ac_cv_prog_READELF+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
9529else
9530 if test -n "$READELF"; then
9531 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9532else
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9540 ac_cv_prog_READELF="${ncn_progname}"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 break 2
9543 fi
9544done
9545 done
9546IFS=$as_save_IFS
9547
9548fi
9549fi
9550READELF=$ac_cv_prog_READELF
9551if test -n "$READELF"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9553$as_echo "$READELF" >&6; }
9554else
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556$as_echo "no" >&6; }
9557fi
9558
9559
9560 fi
9561 test -n "$ac_cv_prog_READELF" && break
9562done
9563
9564if test -z "$ac_cv_prog_READELF" ; then
9565 set dummy readelf
9566 if test $build = $host ; then
9567 READELF="$2"
9568 else
9569 READELF="${ncn_tool_prefix}$2"
9570 fi
9571fi
9572
9573
9574
a0da8069
NN
9575
9576
9577
be01d343 9578# Target tools.
c6b750e1 9579
81ecdfbb
RW
9580# Check whether --with-build-time-tools was given.
9581if test "${with_build_time_tools+set}" = set; then :
9582 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9583 x/*) ;;
9584 *)
9585 with_build_time_tools=
81ecdfbb
RW
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9587$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9588 ;;
9589 esac
859789af 9590else
2429c060 9591 with_build_time_tools=
81ecdfbb
RW
9592fi
9593
859789af 9594
9a819804
AO
9595
9596
9597if test -n "$CC_FOR_TARGET"; then
9598 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9599elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9600 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9601fi
9602
9603if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9604 for ncn_progname in cc gcc; do
9605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9606set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9608$as_echo_n "checking for $ac_word... " >&6; }
9609if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9610 $as_echo_n "(cached) " >&6
9a819804
AO
9611else
9612 if test -n "$CC_FOR_TARGET"; then
9613 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9614else
9615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9616for as_dir in $PATH
9617do
9618 IFS=$as_save_IFS
9619 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9620 for ac_exec_ext in '' $ac_executable_extensions; do
9621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9622 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9624 break 2
9625 fi
9626done
81ecdfbb
RW
9627 done
9628IFS=$as_save_IFS
9a819804
AO
9629
9630fi
9631fi
9632CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9633if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9635$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9636else
81ecdfbb
RW
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638$as_echo "no" >&6; }
9a819804
AO
9639fi
9640
81ecdfbb 9641
9a819804
AO
9642 done
9643fi
9644
9645if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9646 for ncn_progname in cc gcc; do
81ecdfbb
RW
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9648$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9649 if test -x $with_build_time_tools/${ncn_progname}; then
9650 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9652$as_echo "yes" >&6; }
cac3d6c4 9653 break
2429c060 9654 else
81ecdfbb
RW
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656$as_echo "no" >&6; }
cac3d6c4
CM
9657 fi
9658 done
55db4b87
PB
9659fi
9660
2429c060
PB
9661if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9662 for ncn_progname in cc gcc; do
9663 if test -n "$ncn_target_tool_prefix"; then
9664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9665set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667$as_echo_n "checking for $ac_word... " >&6; }
9668if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
55db4b87
PB
9670else
9671 if test -n "$CC_FOR_TARGET"; then
9672 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9673else
c6b750e1
DJ
9674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675for as_dir in $PATH
9676do
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9681 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9683 break 2
9684 fi
9685done
81ecdfbb
RW
9686 done
9687IFS=$as_save_IFS
c6b750e1 9688
55db4b87
PB
9689fi
9690fi
c6b750e1 9691CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9692if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9694$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9695else
81ecdfbb
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697$as_echo "no" >&6; }
55db4b87
PB
9698fi
9699
81ecdfbb 9700
2429c060
PB
9701 fi
9702 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9704set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706$as_echo_n "checking for $ac_word... " >&6; }
9707if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
55db4b87 9709else
05cbd757
PB
9710 if test -n "$CC_FOR_TARGET"; then
9711 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9712else
c6b750e1
DJ
9713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714for as_dir in $PATH
9715do
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9720 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9722 break 2
9723 fi
9724done
81ecdfbb
RW
9725 done
9726IFS=$as_save_IFS
c6b750e1 9727
55db4b87
PB
9728fi
9729fi
c6b750e1 9730CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9731if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9733$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9734else
81ecdfbb
RW
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736$as_echo "no" >&6; }
55db4b87 9737fi
c6b750e1 9738
81ecdfbb 9739
2429c060
PB
9740 fi
9741 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9742 done
9743fi
c6b750e1 9744
05cbd757
PB
9745if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9746 set dummy cc gcc
9747 if test $build = $target ; then
9748 CC_FOR_TARGET="$2"
55db4b87 9749 else
05cbd757 9750 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9751 fi
d3f5afc4
MS
9752else
9753 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9754fi
9755
9a819804
AO
9756
9757
9758if test -n "$CXX_FOR_TARGET"; then
9759 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9760elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9761 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9762fi
9763
9764if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9765 for ncn_progname in c++ g++ cxx gxx; do
9766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9767set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769$as_echo_n "checking for $ac_word... " >&6; }
9770if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9a819804
AO
9772else
9773 if test -n "$CXX_FOR_TARGET"; then
9774 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9775else
9776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777for as_dir in $PATH
9778do
9779 IFS=$as_save_IFS
9780 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9781 for ac_exec_ext in '' $ac_executable_extensions; do
9782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9783 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9785 break 2
9786 fi
9787done
81ecdfbb
RW
9788 done
9789IFS=$as_save_IFS
9a819804
AO
9790
9791fi
9792fi
9793CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9794if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9796$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9797else
81ecdfbb
RW
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799$as_echo "no" >&6; }
9a819804
AO
9800fi
9801
81ecdfbb 9802
9a819804
AO
9803 done
9804fi
9805
9806if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9807 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9809$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9810 if test -x $with_build_time_tools/${ncn_progname}; then
9811 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9813$as_echo "yes" >&6; }
2429c060
PB
9814 break
9815 else
81ecdfbb
RW
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9817$as_echo "no" >&6; }
2429c060
PB
9818 fi
9819 done
9820fi
9821
9822if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9823 for ncn_progname in c++ g++ cxx gxx; do
9824 if test -n "$ncn_target_tool_prefix"; then
9825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9826set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9828$as_echo_n "checking for $ac_word... " >&6; }
9829if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9830 $as_echo_n "(cached) " >&6
55db4b87
PB
9831else
9832 if test -n "$CXX_FOR_TARGET"; then
9833 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9834else
c6b750e1
DJ
9835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836for as_dir in $PATH
9837do
9838 IFS=$as_save_IFS
9839 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9842 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9844 break 2
9845 fi
9846done
81ecdfbb
RW
9847 done
9848IFS=$as_save_IFS
c6b750e1 9849
55db4b87
PB
9850fi
9851fi
c6b750e1 9852CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9853if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9855$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9856else
81ecdfbb
RW
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9858$as_echo "no" >&6; }
55db4b87
PB
9859fi
9860
81ecdfbb 9861
2429c060
PB
9862 fi
9863 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9865set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867$as_echo_n "checking for $ac_word... " >&6; }
9868if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9869 $as_echo_n "(cached) " >&6
55db4b87 9870else
05cbd757
PB
9871 if test -n "$CXX_FOR_TARGET"; then
9872 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9873else
c6b750e1
DJ
9874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875for as_dir in $PATH
9876do
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9881 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9883 break 2
9884 fi
9885done
81ecdfbb
RW
9886 done
9887IFS=$as_save_IFS
c6b750e1 9888
55db4b87
PB
9889fi
9890fi
c6b750e1 9891CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9892if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9894$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9895else
81ecdfbb
RW
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897$as_echo "no" >&6; }
55db4b87 9898fi
c6b750e1 9899
81ecdfbb 9900
2429c060
PB
9901 fi
9902 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9903 done
9904fi
c6b750e1 9905
05cbd757
PB
9906if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9907 set dummy c++ g++ cxx gxx
9908 if test $build = $target ; then
9909 CXX_FOR_TARGET="$2"
55db4b87 9910 else
05cbd757 9911 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9912 fi
d3f5afc4
MS
9913else
9914 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9915fi
9916
9a819804
AO
9917
9918
9919if test -n "$GCC_FOR_TARGET"; then
9920 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9921elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9922 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9923fi
9924
9925if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9926 for ncn_progname in gcc; do
9927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9928set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930$as_echo_n "checking for $ac_word... " >&6; }
9931if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9932 $as_echo_n "(cached) " >&6
9a819804
AO
9933else
9934 if test -n "$GCC_FOR_TARGET"; then
9935 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9936else
9937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938for as_dir in $PATH
9939do
9940 IFS=$as_save_IFS
9941 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9942 for ac_exec_ext in '' $ac_executable_extensions; do
9943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9944 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9946 break 2
9947 fi
9948done
81ecdfbb
RW
9949 done
9950IFS=$as_save_IFS
9a819804
AO
9951
9952fi
9953fi
9954GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9955if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9957$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 9958else
81ecdfbb
RW
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960$as_echo "no" >&6; }
9a819804
AO
9961fi
9962
81ecdfbb 9963
9a819804
AO
9964 done
9965fi
9966
9967if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9968 for ncn_progname in gcc; do
81ecdfbb
RW
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9970$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9971 if test -x $with_build_time_tools/${ncn_progname}; then
9972 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9974$as_echo "yes" >&6; }
2429c060
PB
9975 break
9976 else
81ecdfbb
RW
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978$as_echo "no" >&6; }
2429c060
PB
9979 fi
9980 done
9981fi
9982
9983if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9984 for ncn_progname in gcc; do
9985 if test -n "$ncn_target_tool_prefix"; then
9986 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9987set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9989$as_echo_n "checking for $ac_word... " >&6; }
9990if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9991 $as_echo_n "(cached) " >&6
859789af 9992else
2429c060
PB
9993 if test -n "$GCC_FOR_TARGET"; then
9994 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9995else
c6b750e1
DJ
9996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9997for as_dir in $PATH
9998do
9999 IFS=$as_save_IFS
10000 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10001 for ac_exec_ext in '' $ac_executable_extensions; do
10002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10003 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10005 break 2
10006 fi
10007done
81ecdfbb
RW
10008 done
10009IFS=$as_save_IFS
c6b750e1 10010
55db4b87
PB
10011fi
10012fi
c6b750e1 10013GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10014if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10016$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10017else
81ecdfbb
RW
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019$as_echo "no" >&6; }
55db4b87
PB
10020fi
10021
81ecdfbb 10022
2429c060
PB
10023 fi
10024 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10026set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028$as_echo_n "checking for $ac_word... " >&6; }
10029if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10030 $as_echo_n "(cached) " >&6
55db4b87 10031else
05cbd757
PB
10032 if test -n "$GCC_FOR_TARGET"; then
10033 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10034else
c6b750e1
DJ
10035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036for as_dir in $PATH
10037do
10038 IFS=$as_save_IFS
10039 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10042 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10044 break 2
10045 fi
10046done
81ecdfbb
RW
10047 done
10048IFS=$as_save_IFS
c6b750e1 10049
55db4b87
PB
10050fi
10051fi
c6b750e1 10052GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10053if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10055$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10056else
81ecdfbb
RW
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058$as_echo "no" >&6; }
55db4b87 10059fi
c6b750e1 10060
81ecdfbb 10061
2429c060
PB
10062 fi
10063 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10064 done
10065fi
c6b750e1 10066
05cbd757
PB
10067if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10068 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10069else
10070 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10071fi
10072
9a819804
AO
10073
10074
10075if test -n "$GCJ_FOR_TARGET"; then
10076 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10077elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10078 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10079fi
10080
10081if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10082 for ncn_progname in gcj; do
10083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10084set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086$as_echo_n "checking for $ac_word... " >&6; }
10087if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10088 $as_echo_n "(cached) " >&6
9a819804
AO
10089else
10090 if test -n "$GCJ_FOR_TARGET"; then
10091 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10092else
10093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094for as_dir in $PATH
10095do
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10100 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10102 break 2
10103 fi
10104done
81ecdfbb
RW
10105 done
10106IFS=$as_save_IFS
9a819804
AO
10107
10108fi
10109fi
10110GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10111if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10113$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10114else
81ecdfbb
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116$as_echo "no" >&6; }
9a819804
AO
10117fi
10118
81ecdfbb 10119
9a819804
AO
10120 done
10121fi
10122
10123if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10124 for ncn_progname in gcj; do
81ecdfbb
RW
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10126$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10127 if test -x $with_build_time_tools/${ncn_progname}; then
10128 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10130$as_echo "yes" >&6; }
2429c060
PB
10131 break
10132 else
81ecdfbb
RW
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134$as_echo "no" >&6; }
2429c060
PB
10135 fi
10136 done
10137fi
10138
10139if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10140 for ncn_progname in gcj; do
10141 if test -n "$ncn_target_tool_prefix"; then
10142 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10143set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145$as_echo_n "checking for $ac_word... " >&6; }
10146if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10147 $as_echo_n "(cached) " >&6
55db4b87
PB
10148else
10149 if test -n "$GCJ_FOR_TARGET"; then
10150 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10151else
c6b750e1
DJ
10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10159 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10161 break 2
10162 fi
10163done
81ecdfbb
RW
10164 done
10165IFS=$as_save_IFS
c6b750e1 10166
55db4b87
PB
10167fi
10168fi
9a819804
AO
10169GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10170if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10172$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10173else
81ecdfbb
RW
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175$as_echo "no" >&6; }
9a819804
AO
10176fi
10177
81ecdfbb 10178
9a819804
AO
10179 fi
10180 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10182set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184$as_echo_n "checking for $ac_word... " >&6; }
10185if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10186 $as_echo_n "(cached) " >&6
9a819804
AO
10187else
10188 if test -n "$GCJ_FOR_TARGET"; then
10189 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10190else
10191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192for as_dir in $PATH
10193do
10194 IFS=$as_save_IFS
10195 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10198 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10200 break 2
10201 fi
10202done
81ecdfbb
RW
10203 done
10204IFS=$as_save_IFS
9a819804
AO
10205
10206fi
10207fi
10208GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10209if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10211$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10212else
81ecdfbb
RW
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10214$as_echo "no" >&6; }
9a819804
AO
10215fi
10216
81ecdfbb 10217
9a819804
AO
10218 fi
10219 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10220 done
10221fi
10222
10223if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10224 set dummy gcj
10225 if test $build = $target ; then
10226 GCJ_FOR_TARGET="$2"
10227 else
10228 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10229 fi
d3f5afc4
MS
10230else
10231 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10232fi
10233
10234
10235
10236if test -n "$GFORTRAN_FOR_TARGET"; then
10237 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10238elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10239 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10240fi
10241
9a819804
AO
10242if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10243 for ncn_progname in gfortran; do
10244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10245set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247$as_echo_n "checking for $ac_word... " >&6; }
10248if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
55db4b87 10250else
9a819804
AO
10251 if test -n "$GFORTRAN_FOR_TARGET"; then
10252 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10253else
c6b750e1
DJ
10254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255for as_dir in $PATH
10256do
10257 IFS=$as_save_IFS
10258 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10261 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10263 break 2
10264 fi
10265done
81ecdfbb
RW
10266 done
10267IFS=$as_save_IFS
c6b750e1 10268
55db4b87
PB
10269fi
10270fi
9a819804
AO
10271GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10272if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10274$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10275else
81ecdfbb
RW
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277$as_echo "no" >&6; }
55db4b87 10278fi
c6b750e1 10279
81ecdfbb 10280
2429c060
PB
10281 done
10282fi
c6b750e1 10283
9a819804 10284if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10285 for ncn_progname in gfortran; do
81ecdfbb
RW
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10287$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10288 if test -x $with_build_time_tools/${ncn_progname}; then
10289 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10291$as_echo "yes" >&6; }
2429c060
PB
10292 break
10293 else
81ecdfbb
RW
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295$as_echo "no" >&6; }
2429c060
PB
10296 fi
10297 done
10298fi
10299
10300if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10301 for ncn_progname in gfortran; do
10302 if test -n "$ncn_target_tool_prefix"; then
10303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10304set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306$as_echo_n "checking for $ac_word... " >&6; }
10307if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10308 $as_echo_n "(cached) " >&6
55db4b87
PB
10309else
10310 if test -n "$GFORTRAN_FOR_TARGET"; then
10311 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10312else
c6b750e1
DJ
10313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314for as_dir in $PATH
10315do
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10320 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10322 break 2
10323 fi
10324done
81ecdfbb
RW
10325 done
10326IFS=$as_save_IFS
c6b750e1 10327
55db4b87
PB
10328fi
10329fi
c6b750e1 10330GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10331if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10333$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10334else
81ecdfbb
RW
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336$as_echo "no" >&6; }
55db4b87
PB
10337fi
10338
81ecdfbb 10339
2429c060
PB
10340 fi
10341 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10343set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345$as_echo_n "checking for $ac_word... " >&6; }
10346if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10347 $as_echo_n "(cached) " >&6
55db4b87 10348else
05cbd757 10349 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10350 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10351else
10352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353for as_dir in $PATH
10354do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10359 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10361 break 2
10362 fi
10363done
81ecdfbb
RW
10364 done
10365IFS=$as_save_IFS
c6b750e1 10366
55db4b87
PB
10367fi
10368fi
c6b750e1 10369GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10370if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10372$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10373else
81ecdfbb
RW
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375$as_echo "no" >&6; }
55db4b87 10376fi
c6b750e1 10377
81ecdfbb 10378
2429c060
PB
10379 fi
10380 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10381 done
10382fi
c6b750e1 10383
05cbd757
PB
10384if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10385 set dummy gfortran
10386 if test $build = $target ; then
10387 GFORTRAN_FOR_TARGET="$2"
55db4b87 10388 else
05cbd757 10389 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10390 fi
d3f5afc4
MS
10391else
10392 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10393fi
10394
2429c060
PB
10395
10396
e552509b
ILT
10397if test -n "$GOC_FOR_TARGET"; then
10398 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10399elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10400 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10401fi
10402
10403if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10404 for ncn_progname in gccgo; do
10405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10406set dummy ${ncn_progname}; ac_word=$2
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10408$as_echo_n "checking for $ac_word... " >&6; }
10409if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10410 $as_echo_n "(cached) " >&6
10411else
10412 if test -n "$GOC_FOR_TARGET"; then
10413 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10414else
10415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416for as_dir in $PATH
10417do
10418 IFS=$as_save_IFS
10419 test -z "$as_dir" && as_dir=.
10420 for ac_exec_ext in '' $ac_executable_extensions; do
10421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10422 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10424 break 2
10425 fi
10426done
10427 done
10428IFS=$as_save_IFS
10429
10430fi
10431fi
10432GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10433if test -n "$GOC_FOR_TARGET"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10435$as_echo "$GOC_FOR_TARGET" >&6; }
10436else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438$as_echo "no" >&6; }
10439fi
10440
10441
10442 done
10443fi
10444
10445if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10446 for ncn_progname in gccgo; do
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10448$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10449 if test -x $with_build_time_tools/${ncn_progname}; then
10450 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10452$as_echo "yes" >&6; }
10453 break
10454 else
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456$as_echo "no" >&6; }
10457 fi
10458 done
10459fi
10460
10461if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10462 for ncn_progname in gccgo; do
10463 if test -n "$ncn_target_tool_prefix"; then
10464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10465set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467$as_echo_n "checking for $ac_word... " >&6; }
10468if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10469 $as_echo_n "(cached) " >&6
10470else
10471 if test -n "$GOC_FOR_TARGET"; then
10472 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10473else
10474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475for as_dir in $PATH
10476do
10477 IFS=$as_save_IFS
10478 test -z "$as_dir" && as_dir=.
10479 for ac_exec_ext in '' $ac_executable_extensions; do
10480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10481 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 break 2
10484 fi
10485done
10486 done
10487IFS=$as_save_IFS
10488
10489fi
10490fi
10491GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10492if test -n "$GOC_FOR_TARGET"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10494$as_echo "$GOC_FOR_TARGET" >&6; }
10495else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497$as_echo "no" >&6; }
10498fi
10499
10500
10501 fi
10502 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10504set dummy ${ncn_progname}; ac_word=$2
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506$as_echo_n "checking for $ac_word... " >&6; }
10507if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10508 $as_echo_n "(cached) " >&6
10509else
10510 if test -n "$GOC_FOR_TARGET"; then
10511 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10512else
10513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514for as_dir in $PATH
10515do
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10520 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 break 2
10523 fi
10524done
10525 done
10526IFS=$as_save_IFS
10527
10528fi
10529fi
10530GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10531if test -n "$GOC_FOR_TARGET"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10533$as_echo "$GOC_FOR_TARGET" >&6; }
10534else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536$as_echo "no" >&6; }
10537fi
10538
10539
10540 fi
10541 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10542 done
10543fi
10544
10545if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10546 set dummy gccgo
10547 if test $build = $target ; then
10548 GOC_FOR_TARGET="$2"
10549 else
10550 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10551 fi
10552else
10553 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10554fi
10555
10556
10557
2429c060
PB
10558cat > conftest.c << \EOF
10559#ifdef __GNUC__
10560 gcc_yay;
10561#endif
10562EOF
10563if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10564 have_gcc_for_target=yes
859789af 10565else
2429c060
PB
10566 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10567 have_gcc_for_target=no
859789af 10568fi
2429c060
PB
10569rm conftest.c
10570
10571
10572
859789af 10573
2429c060
PB
10574if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10575 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10577$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10578 if test -x $with_build_time_tools/ar; then
10579 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10580 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10582$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10583 else
81ecdfbb
RW
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585$as_echo "no" >&6; }
3a35eeb3 10586 fi
2429c060
PB
10587 elif test $build != $host && test $have_gcc_for_target = yes; then
10588 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10589 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10590 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10591 fi
2429c060 10592fi
c6b750e1 10593if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10594 # Extract the first word of "ar", so it can be a program name with args.
10595set dummy ar; ac_word=$2
81ecdfbb
RW
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597$as_echo_n "checking for $ac_word... " >&6; }
10598if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10599 $as_echo_n "(cached) " >&6
859789af 10600else
c6b750e1
DJ
10601 case $AR_FOR_TARGET in
10602 [\\/]* | ?:[\\/]*)
2429c060
PB
10603 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10604 ;;
2429c060 10605 *)
c6b750e1
DJ
10606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10607for as_dir in $gcc_cv_tool_dirs
10608do
10609 IFS=$as_save_IFS
10610 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10611 for ac_exec_ext in '' $ac_executable_extensions; do
10612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10613 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10615 break 2
10616 fi
10617done
81ecdfbb
RW
10618 done
10619IFS=$as_save_IFS
c6b750e1 10620
2429c060
PB
10621 ;;
10622esac
859789af 10623fi
c6b750e1 10624AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10625if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10627$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10628else
81ecdfbb
RW
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630$as_echo "no" >&6; }
859789af 10631fi
05cbd757 10632
81ecdfbb 10633
2429c060
PB
10634fi
10635if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10636
10637
10638if test -n "$AR_FOR_TARGET"; then
10639 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10640elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10641 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10642fi
10643
10644if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10645 for ncn_progname in ar; do
10646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10647set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649$as_echo_n "checking for $ac_word... " >&6; }
10650if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
9a819804
AO
10652else
10653 if test -n "$AR_FOR_TARGET"; then
10654 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10655else
10656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657for as_dir in $PATH
10658do
10659 IFS=$as_save_IFS
10660 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10661 for ac_exec_ext in '' $ac_executable_extensions; do
10662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10663 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10665 break 2
10666 fi
10667done
81ecdfbb
RW
10668 done
10669IFS=$as_save_IFS
9a819804
AO
10670
10671fi
10672fi
10673AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10674if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10676$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10677else
81ecdfbb
RW
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679$as_echo "no" >&6; }
9a819804
AO
10680fi
10681
81ecdfbb 10682
9a819804
AO
10683 done
10684fi
10685
10686if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10687 for ncn_progname in ar; do
81ecdfbb
RW
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10689$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10690 if test -x $with_build_time_tools/${ncn_progname}; then
10691 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10693$as_echo "yes" >&6; }
2429c060
PB
10694 break
10695 else
81ecdfbb
RW
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697$as_echo "no" >&6; }
2429c060
PB
10698 fi
10699 done
859789af
AC
10700fi
10701
2429c060
PB
10702if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10703 for ncn_progname in ar; do
10704 if test -n "$ncn_target_tool_prefix"; then
10705 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10706set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708$as_echo_n "checking for $ac_word... " >&6; }
10709if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
7e0f7140 10711else
2429c060
PB
10712 if test -n "$AR_FOR_TARGET"; then
10713 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10714else
c6b750e1
DJ
10715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716for as_dir in $PATH
10717do
10718 IFS=$as_save_IFS
10719 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10722 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10724 break 2
10725 fi
10726done
81ecdfbb
RW
10727 done
10728IFS=$as_save_IFS
c6b750e1 10729
7e0f7140
GK
10730fi
10731fi
c6b750e1 10732AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10733if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10735$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10736else
81ecdfbb
RW
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738$as_echo "no" >&6; }
7e0f7140
GK
10739fi
10740
81ecdfbb 10741
2429c060
PB
10742 fi
10743 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10745set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747$as_echo_n "checking for $ac_word... " >&6; }
10748if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
7e0f7140 10750else
2429c060
PB
10751 if test -n "$AR_FOR_TARGET"; then
10752 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10753else
c6b750e1
DJ
10754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755for as_dir in $PATH
10756do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10761 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10763 break 2
10764 fi
10765done
81ecdfbb
RW
10766 done
10767IFS=$as_save_IFS
c6b750e1 10768
7e0f7140
GK
10769fi
10770fi
c6b750e1 10771AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10772if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10774$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10775else
81ecdfbb
RW
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777$as_echo "no" >&6; }
7e0f7140 10778fi
c6b750e1 10779
81ecdfbb 10780
2429c060
PB
10781 fi
10782 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10783 done
10784fi
c6b750e1 10785
2429c060
PB
10786if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10787 set dummy ar
7e0f7140 10788 if test $build = $target ; then
2429c060 10789 AR_FOR_TARGET="$2"
7e0f7140 10790 else
2429c060 10791 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10792 fi
d3f5afc4
MS
10793else
10794 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10795fi
10796
3a35eeb3
PB
10797else
10798 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10799fi
10800
10801
10802
10803
10804if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10805 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10807$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10808 if test -x $with_build_time_tools/as; then
10809 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10810 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10812$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10813 else
81ecdfbb
RW
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815$as_echo "no" >&6; }
3a35eeb3 10816 fi
2429c060
PB
10817 elif test $build != $host && test $have_gcc_for_target = yes; then
10818 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10819 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10820 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10821 fi
10822fi
c6b750e1 10823if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10824 # Extract the first word of "as", so it can be a program name with args.
10825set dummy as; ac_word=$2
81ecdfbb
RW
10826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10827$as_echo_n "checking for $ac_word... " >&6; }
10828if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
2429c060 10830else
c6b750e1
DJ
10831 case $AS_FOR_TARGET in
10832 [\\/]* | ?:[\\/]*)
2429c060
PB
10833 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10834 ;;
2429c060 10835 *)
c6b750e1
DJ
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837for as_dir in $gcc_cv_tool_dirs
10838do
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10843 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10845 break 2
10846 fi
10847done
81ecdfbb
RW
10848 done
10849IFS=$as_save_IFS
c6b750e1 10850
2429c060
PB
10851 ;;
10852esac
10853fi
c6b750e1 10854AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10855if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10857$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10858else
81ecdfbb
RW
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860$as_echo "no" >&6; }
2429c060
PB
10861fi
10862
81ecdfbb 10863
2429c060
PB
10864fi
10865if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10866
10867
10868if test -n "$AS_FOR_TARGET"; then
10869 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10870elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10871 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10872fi
10873
10874if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10875 for ncn_progname in as; do
10876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10877set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879$as_echo_n "checking for $ac_word... " >&6; }
10880if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
9a819804
AO
10882else
10883 if test -n "$AS_FOR_TARGET"; then
10884 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10885else
10886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887for as_dir in $PATH
10888do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10893 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10895 break 2
10896 fi
10897done
81ecdfbb
RW
10898 done
10899IFS=$as_save_IFS
9a819804
AO
10900
10901fi
10902fi
10903AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10904if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10906$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10907else
81ecdfbb
RW
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; }
9a819804
AO
10910fi
10911
81ecdfbb 10912
9a819804
AO
10913 done
10914fi
10915
10916if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10917 for ncn_progname in as; do
81ecdfbb
RW
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10919$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10920 if test -x $with_build_time_tools/${ncn_progname}; then
10921 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10923$as_echo "yes" >&6; }
2429c060
PB
10924 break
10925 else
81ecdfbb
RW
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927$as_echo "no" >&6; }
2429c060
PB
10928 fi
10929 done
10930fi
10931
10932if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10933 for ncn_progname in as; do
10934 if test -n "$ncn_target_tool_prefix"; then
10935 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10936set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938$as_echo_n "checking for $ac_word... " >&6; }
10939if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
2429c060
PB
10941else
10942 if test -n "$AS_FOR_TARGET"; then
10943 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10944else
c6b750e1
DJ
10945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946for as_dir in $PATH
10947do
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10952 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10954 break 2
10955 fi
10956done
81ecdfbb
RW
10957 done
10958IFS=$as_save_IFS
c6b750e1 10959
2429c060
PB
10960fi
10961fi
c6b750e1 10962AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10963if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10965$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10966else
81ecdfbb
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968$as_echo "no" >&6; }
2429c060
PB
10969fi
10970
81ecdfbb 10971
2429c060
PB
10972 fi
10973 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10975set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977$as_echo_n "checking for $ac_word... " >&6; }
10978if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10979 $as_echo_n "(cached) " >&6
2429c060
PB
10980else
10981 if test -n "$AS_FOR_TARGET"; then
10982 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10983else
c6b750e1
DJ
10984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985for as_dir in $PATH
10986do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10991 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10993 break 2
10994 fi
10995done
81ecdfbb
RW
10996 done
10997IFS=$as_save_IFS
c6b750e1 10998
2429c060
PB
10999fi
11000fi
c6b750e1 11001AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11002if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11004$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11005else
81ecdfbb
RW
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007$as_echo "no" >&6; }
2429c060 11008fi
c6b750e1 11009
81ecdfbb 11010
2429c060
PB
11011 fi
11012 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11013 done
11014fi
c6b750e1 11015
2429c060
PB
11016if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11017 set dummy as
11018 if test $build = $target ; then
11019 AS_FOR_TARGET="$2"
11020 else
11021 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11022 fi
d3f5afc4
MS
11023else
11024 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11025fi
11026
3a35eeb3
PB
11027else
11028 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11029fi
11030
11031
11032
11033
11034if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11035 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11037$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11038 if test -x $with_build_time_tools/dlltool; then
11039 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11040 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11042$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11043 else
81ecdfbb
RW
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045$as_echo "no" >&6; }
3a35eeb3 11046 fi
2429c060
PB
11047 elif test $build != $host && test $have_gcc_for_target = yes; then
11048 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11049 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11050 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11051 fi
11052fi
c6b750e1 11053if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11054 # Extract the first word of "dlltool", so it can be a program name with args.
11055set dummy dlltool; ac_word=$2
81ecdfbb
RW
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057$as_echo_n "checking for $ac_word... " >&6; }
11058if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11059 $as_echo_n "(cached) " >&6
2429c060 11060else
c6b750e1
DJ
11061 case $DLLTOOL_FOR_TARGET in
11062 [\\/]* | ?:[\\/]*)
2429c060
PB
11063 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11064 ;;
2429c060 11065 *)
c6b750e1
DJ
11066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067for as_dir in $gcc_cv_tool_dirs
11068do
11069 IFS=$as_save_IFS
11070 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11071 for ac_exec_ext in '' $ac_executable_extensions; do
11072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11073 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11075 break 2
11076 fi
11077done
81ecdfbb
RW
11078 done
11079IFS=$as_save_IFS
c6b750e1 11080
2429c060
PB
11081 ;;
11082esac
11083fi
c6b750e1 11084DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11085if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11087$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11088else
81ecdfbb
RW
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090$as_echo "no" >&6; }
2429c060
PB
11091fi
11092
81ecdfbb 11093
2429c060
PB
11094fi
11095if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11096
11097
11098if test -n "$DLLTOOL_FOR_TARGET"; then
11099 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11100elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11101 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11102fi
11103
11104if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11105 for ncn_progname in dlltool; do
11106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11107set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109$as_echo_n "checking for $ac_word... " >&6; }
11110if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
9a819804
AO
11112else
11113 if test -n "$DLLTOOL_FOR_TARGET"; then
11114 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11115else
11116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117for as_dir in $PATH
11118do
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11123 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11125 break 2
11126 fi
11127done
81ecdfbb
RW
11128 done
11129IFS=$as_save_IFS
9a819804
AO
11130
11131fi
11132fi
11133DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11134if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11136$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11137else
81ecdfbb
RW
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139$as_echo "no" >&6; }
9a819804
AO
11140fi
11141
81ecdfbb 11142
9a819804
AO
11143 done
11144fi
11145
11146if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11147 for ncn_progname in dlltool; do
81ecdfbb
RW
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11149$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11150 if test -x $with_build_time_tools/${ncn_progname}; then
11151 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11153$as_echo "yes" >&6; }
2429c060
PB
11154 break
11155 else
81ecdfbb
RW
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157$as_echo "no" >&6; }
2429c060
PB
11158 fi
11159 done
11160fi
11161
11162if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11163 for ncn_progname in dlltool; do
11164 if test -n "$ncn_target_tool_prefix"; then
11165 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11166set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168$as_echo_n "checking for $ac_word... " >&6; }
11169if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
2429c060
PB
11171else
11172 if test -n "$DLLTOOL_FOR_TARGET"; then
11173 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11174else
c6b750e1
DJ
11175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176for as_dir in $PATH
11177do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11182 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11184 break 2
11185 fi
11186done
81ecdfbb
RW
11187 done
11188IFS=$as_save_IFS
c6b750e1 11189
2429c060
PB
11190fi
11191fi
c6b750e1 11192DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11193if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11195$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11196else
81ecdfbb
RW
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198$as_echo "no" >&6; }
2429c060
PB
11199fi
11200
81ecdfbb 11201
2429c060
PB
11202 fi
11203 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11205set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207$as_echo_n "checking for $ac_word... " >&6; }
11208if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
2429c060
PB
11210else
11211 if test -n "$DLLTOOL_FOR_TARGET"; then
11212 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11213else
c6b750e1
DJ
11214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215for as_dir in $PATH
11216do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11221 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11223 break 2
11224 fi
11225done
81ecdfbb
RW
11226 done
11227IFS=$as_save_IFS
c6b750e1 11228
2429c060
PB
11229fi
11230fi
c6b750e1 11231DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11232if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11234$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11235else
81ecdfbb
RW
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237$as_echo "no" >&6; }
2429c060 11238fi
c6b750e1 11239
81ecdfbb 11240
2429c060
PB
11241 fi
11242 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11243 done
11244fi
c6b750e1 11245
2429c060
PB
11246if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11247 set dummy dlltool
11248 if test $build = $target ; then
11249 DLLTOOL_FOR_TARGET="$2"
11250 else
11251 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11252 fi
d3f5afc4
MS
11253else
11254 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11255fi
11256
3a35eeb3
PB
11257else
11258 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11259fi
11260
11261
11262
11263
11264if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11265 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11267$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11268 if test -x $with_build_time_tools/ld; then
11269 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11270 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11272$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11273 else
81ecdfbb
RW
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275$as_echo "no" >&6; }
3a35eeb3 11276 fi
2429c060
PB
11277 elif test $build != $host && test $have_gcc_for_target = yes; then
11278 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11279 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11280 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11281 fi
11282fi
c6b750e1 11283if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11284 # Extract the first word of "ld", so it can be a program name with args.
11285set dummy ld; ac_word=$2
81ecdfbb
RW
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287$as_echo_n "checking for $ac_word... " >&6; }
11288if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11289 $as_echo_n "(cached) " >&6
2429c060 11290else
c6b750e1
DJ
11291 case $LD_FOR_TARGET in
11292 [\\/]* | ?:[\\/]*)
2429c060
PB
11293 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11294 ;;
2429c060 11295 *)
c6b750e1
DJ
11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $gcc_cv_tool_dirs
11298do
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11303 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11305 break 2
11306 fi
11307done
81ecdfbb
RW
11308 done
11309IFS=$as_save_IFS
c6b750e1 11310
2429c060
PB
11311 ;;
11312esac
11313fi
c6b750e1 11314LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11315if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11317$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11318else
81ecdfbb
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320$as_echo "no" >&6; }
2429c060
PB
11321fi
11322
81ecdfbb 11323
2429c060
PB
11324fi
11325if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11326
11327
11328if test -n "$LD_FOR_TARGET"; then
11329 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11330elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11331 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11332fi
11333
11334if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11335 for ncn_progname in ld; do
11336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11337set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11339$as_echo_n "checking for $ac_word... " >&6; }
11340if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
9a819804
AO
11342else
11343 if test -n "$LD_FOR_TARGET"; then
11344 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11345else
11346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347for as_dir in $PATH
11348do
11349 IFS=$as_save_IFS
11350 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11353 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11355 break 2
11356 fi
11357done
81ecdfbb
RW
11358 done
11359IFS=$as_save_IFS
9a819804
AO
11360
11361fi
11362fi
11363LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11364if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11366$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11367else
81ecdfbb
RW
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369$as_echo "no" >&6; }
9a819804
AO
11370fi
11371
81ecdfbb 11372
9a819804
AO
11373 done
11374fi
11375
11376if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11377 for ncn_progname in ld; do
81ecdfbb
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11379$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11380 if test -x $with_build_time_tools/${ncn_progname}; then
11381 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11383$as_echo "yes" >&6; }
2429c060
PB
11384 break
11385 else
81ecdfbb
RW
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387$as_echo "no" >&6; }
2429c060
PB
11388 fi
11389 done
11390fi
11391
11392if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11393 for ncn_progname in ld; do
11394 if test -n "$ncn_target_tool_prefix"; then
11395 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11396set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
11399if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
2429c060
PB
11401else
11402 if test -n "$LD_FOR_TARGET"; then
11403 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11404else
c6b750e1
DJ
11405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
11407do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11412 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11414 break 2
11415 fi
11416done
81ecdfbb
RW
11417 done
11418IFS=$as_save_IFS
c6b750e1 11419
2429c060
PB
11420fi
11421fi
c6b750e1 11422LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11423if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11425$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11426else
81ecdfbb
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428$as_echo "no" >&6; }
2429c060
PB
11429fi
11430
81ecdfbb 11431
2429c060
PB
11432 fi
11433 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11435set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437$as_echo_n "checking for $ac_word... " >&6; }
11438if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11439 $as_echo_n "(cached) " >&6
2429c060
PB
11440else
11441 if test -n "$LD_FOR_TARGET"; then
11442 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11443else
c6b750e1
DJ
11444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445for as_dir in $PATH
11446do
11447 IFS=$as_save_IFS
11448 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11451 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11453 break 2
11454 fi
11455done
81ecdfbb
RW
11456 done
11457IFS=$as_save_IFS
c6b750e1 11458
2429c060
PB
11459fi
11460fi
c6b750e1 11461LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11462if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11464$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11465else
81ecdfbb
RW
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467$as_echo "no" >&6; }
2429c060 11468fi
c6b750e1 11469
81ecdfbb 11470
2429c060
PB
11471 fi
11472 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11473 done
11474fi
c6b750e1 11475
2429c060
PB
11476if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11477 set dummy ld
11478 if test $build = $target ; then
11479 LD_FOR_TARGET="$2"
11480 else
11481 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11482 fi
d3f5afc4
MS
11483else
11484 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11485fi
11486
3a35eeb3
PB
11487else
11488 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11489fi
11490
11491
11492
11493
11494if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11495 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11497$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11498 if test -x $with_build_time_tools/lipo; then
11499 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11500 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11502$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11503 else
81ecdfbb
RW
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505$as_echo "no" >&6; }
3a35eeb3 11506 fi
2429c060
PB
11507 elif test $build != $host && test $have_gcc_for_target = yes; then
11508 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11509 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11510 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11511 fi
11512fi
9a819804
AO
11513if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11514 # Extract the first word of "lipo", so it can be a program name with args.
11515set dummy lipo; ac_word=$2
81ecdfbb
RW
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517$as_echo_n "checking for $ac_word... " >&6; }
11518if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
9a819804
AO
11520else
11521 case $LIPO_FOR_TARGET in
11522 [\\/]* | ?:[\\/]*)
11523 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11524 ;;
11525 *)
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527for as_dir in $gcc_cv_tool_dirs
11528do
11529 IFS=$as_save_IFS
11530 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11533 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11535 break 2
11536 fi
11537done
81ecdfbb
RW
11538 done
11539IFS=$as_save_IFS
9a819804
AO
11540
11541 ;;
11542esac
11543fi
11544LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11545if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11547$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11548else
81ecdfbb
RW
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; }
9a819804
AO
11551fi
11552
81ecdfbb 11553
9a819804
AO
11554fi
11555if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11556
11557
11558if test -n "$LIPO_FOR_TARGET"; then
11559 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11560elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11561 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11562fi
11563
11564if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11565 for ncn_progname in lipo; do
11566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11567set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569$as_echo_n "checking for $ac_word... " >&6; }
11570if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
2429c060 11572else
9a819804
AO
11573 if test -n "$LIPO_FOR_TARGET"; then
11574 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11575else
11576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577for as_dir in $PATH
c6b750e1
DJ
11578do
11579 IFS=$as_save_IFS
11580 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11583 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11585 break 2
11586 fi
11587done
81ecdfbb
RW
11588 done
11589IFS=$as_save_IFS
c6b750e1 11590
2429c060 11591fi
9a819804
AO
11592fi
11593LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11594if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11596$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11597else
81ecdfbb
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599$as_echo "no" >&6; }
2429c060
PB
11600fi
11601
81ecdfbb 11602
9a819804 11603 done
2429c060 11604fi
9a819804
AO
11605
11606if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11607 for ncn_progname in lipo; do
81ecdfbb
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11609$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11610 if test -x $with_build_time_tools/${ncn_progname}; then
11611 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11613$as_echo "yes" >&6; }
2429c060
PB
11614 break
11615 else
81ecdfbb
RW
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617$as_echo "no" >&6; }
2429c060
PB
11618 fi
11619 done
11620fi
11621
11622if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11623 for ncn_progname in lipo; do
11624 if test -n "$ncn_target_tool_prefix"; then
11625 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11626set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628$as_echo_n "checking for $ac_word... " >&6; }
11629if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
2429c060
PB
11631else
11632 if test -n "$LIPO_FOR_TARGET"; then
11633 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11634else
c6b750e1
DJ
11635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636for as_dir in $PATH
11637do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11642 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11644 break 2
11645 fi
11646done
81ecdfbb
RW
11647 done
11648IFS=$as_save_IFS
c6b750e1 11649
2429c060
PB
11650fi
11651fi
c6b750e1 11652LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11653if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11655$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11656else
81ecdfbb
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658$as_echo "no" >&6; }
2429c060
PB
11659fi
11660
81ecdfbb 11661
2429c060
PB
11662 fi
11663 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11665set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667$as_echo_n "checking for $ac_word... " >&6; }
11668if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
2429c060
PB
11670else
11671 if test -n "$LIPO_FOR_TARGET"; then
11672 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11673else
c6b750e1
DJ
11674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675for as_dir in $PATH
11676do
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11681 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11683 break 2
11684 fi
11685done
81ecdfbb
RW
11686 done
11687IFS=$as_save_IFS
c6b750e1 11688
2429c060
PB
11689fi
11690fi
c6b750e1 11691LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11692if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11694$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11695else
81ecdfbb
RW
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697$as_echo "no" >&6; }
2429c060 11698fi
c6b750e1 11699
81ecdfbb 11700
2429c060
PB
11701 fi
11702 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11703 done
11704fi
c6b750e1 11705
2429c060
PB
11706if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11707 set dummy lipo
11708 if test $build = $target ; then
11709 LIPO_FOR_TARGET="$2"
11710 else
11711 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11712 fi
d3f5afc4
MS
11713else
11714 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11715fi
11716
3a35eeb3
PB
11717else
11718 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11719fi
11720
11721
11722
11723
11724if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11725 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11727$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11728 if test -x $with_build_time_tools/nm; then
11729 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11730 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11732$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11733 else
81ecdfbb
RW
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735$as_echo "no" >&6; }
3a35eeb3 11736 fi
2429c060
PB
11737 elif test $build != $host && test $have_gcc_for_target = yes; then
11738 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11739 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11740 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11741 fi
11742fi
c6b750e1 11743if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11744 # Extract the first word of "nm", so it can be a program name with args.
11745set dummy nm; ac_word=$2
81ecdfbb
RW
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747$as_echo_n "checking for $ac_word... " >&6; }
11748if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
2429c060 11750else
c6b750e1
DJ
11751 case $NM_FOR_TARGET in
11752 [\\/]* | ?:[\\/]*)
2429c060
PB
11753 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11754 ;;
2429c060 11755 *)
c6b750e1
DJ
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757for as_dir in $gcc_cv_tool_dirs
11758do
11759 IFS=$as_save_IFS
11760 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11763 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11765 break 2
11766 fi
11767done
81ecdfbb
RW
11768 done
11769IFS=$as_save_IFS
c6b750e1 11770
2429c060
PB
11771 ;;
11772esac
11773fi
c6b750e1 11774NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11775if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11777$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11778else
81ecdfbb
RW
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780$as_echo "no" >&6; }
2429c060
PB
11781fi
11782
81ecdfbb 11783
2429c060
PB
11784fi
11785if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11786
11787
11788if test -n "$NM_FOR_TARGET"; then
11789 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11790elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11791 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11792fi
11793
11794if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11795 for ncn_progname in nm; do
11796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11797set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799$as_echo_n "checking for $ac_word... " >&6; }
11800if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11801 $as_echo_n "(cached) " >&6
9a819804
AO
11802else
11803 if test -n "$NM_FOR_TARGET"; then
11804 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11805else
11806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807for as_dir in $PATH
11808do
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11813 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11815 break 2
11816 fi
11817done
81ecdfbb
RW
11818 done
11819IFS=$as_save_IFS
9a819804
AO
11820
11821fi
11822fi
11823NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11824if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11826$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11827else
81ecdfbb
RW
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829$as_echo "no" >&6; }
9a819804
AO
11830fi
11831
81ecdfbb 11832
9a819804
AO
11833 done
11834fi
11835
11836if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11837 for ncn_progname in nm; do
81ecdfbb
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11839$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11840 if test -x $with_build_time_tools/${ncn_progname}; then
11841 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11843$as_echo "yes" >&6; }
2429c060
PB
11844 break
11845 else
81ecdfbb
RW
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847$as_echo "no" >&6; }
2429c060
PB
11848 fi
11849 done
11850fi
11851
11852if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11853 for ncn_progname in nm; do
11854 if test -n "$ncn_target_tool_prefix"; then
11855 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11856set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
11859if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
859789af 11861else
55db4b87
PB
11862 if test -n "$NM_FOR_TARGET"; then
11863 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11864else
c6b750e1
DJ
11865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11872 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11874 break 2
11875 fi
11876done
81ecdfbb
RW
11877 done
11878IFS=$as_save_IFS
c6b750e1 11879
859789af
AC
11880fi
11881fi
c6b750e1 11882NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11883if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11885$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11886else
81ecdfbb
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888$as_echo "no" >&6; }
859789af
AC
11889fi
11890
81ecdfbb 11891
2429c060
PB
11892 fi
11893 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11895set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897$as_echo_n "checking for $ac_word... " >&6; }
11898if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
859789af 11900else
05cbd757
PB
11901 if test -n "$NM_FOR_TARGET"; then
11902 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11903else
c6b750e1
DJ
11904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905for as_dir in $PATH
11906do
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11911 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11913 break 2
11914 fi
11915done
81ecdfbb
RW
11916 done
11917IFS=$as_save_IFS
c6b750e1 11918
859789af
AC
11919fi
11920fi
c6b750e1 11921NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11922if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11924$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11925else
81ecdfbb
RW
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927$as_echo "no" >&6; }
859789af 11928fi
c6b750e1 11929
81ecdfbb 11930
2429c060
PB
11931 fi
11932 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11933 done
11934fi
c6b750e1 11935
05cbd757
PB
11936if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11937 set dummy nm
11938 if test $build = $target ; then
11939 NM_FOR_TARGET="$2"
859789af 11940 else
05cbd757 11941 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11942 fi
d3f5afc4
MS
11943else
11944 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11945fi
11946
3a35eeb3
PB
11947else
11948 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11949fi
11950
11951
11952
11953
11954if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11955 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11957$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11958 if test -x $with_build_time_tools/objdump; then
11959 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11960 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11962$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 11963 else
81ecdfbb
RW
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965$as_echo "no" >&6; }
3a35eeb3 11966 fi
2429c060
PB
11967 elif test $build != $host && test $have_gcc_for_target = yes; then
11968 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
11969 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11970 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
11971 fi
11972fi
c6b750e1 11973if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11974 # Extract the first word of "objdump", so it can be a program name with args.
11975set dummy objdump; ac_word=$2
81ecdfbb
RW
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11977$as_echo_n "checking for $ac_word... " >&6; }
11978if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11979 $as_echo_n "(cached) " >&6
2429c060 11980else
c6b750e1
DJ
11981 case $OBJDUMP_FOR_TARGET in
11982 [\\/]* | ?:[\\/]*)
2429c060
PB
11983 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11984 ;;
2429c060 11985 *)
c6b750e1
DJ
11986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987for as_dir in $gcc_cv_tool_dirs
11988do
11989 IFS=$as_save_IFS
11990 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11991 for ac_exec_ext in '' $ac_executable_extensions; do
11992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11993 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11995 break 2
11996 fi
11997done
81ecdfbb
RW
11998 done
11999IFS=$as_save_IFS
c6b750e1 12000
2429c060
PB
12001 ;;
12002esac
12003fi
c6b750e1 12004OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12005if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12007$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12008else
81ecdfbb
RW
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010$as_echo "no" >&6; }
2429c060
PB
12011fi
12012
81ecdfbb 12013
2429c060
PB
12014fi
12015if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12016
12017
12018if test -n "$OBJDUMP_FOR_TARGET"; then
12019 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12020elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12021 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12022fi
12023
12024if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12025 for ncn_progname in objdump; do
12026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12027set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029$as_echo_n "checking for $ac_word... " >&6; }
12030if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12031 $as_echo_n "(cached) " >&6
9a819804
AO
12032else
12033 if test -n "$OBJDUMP_FOR_TARGET"; then
12034 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12035else
12036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037for as_dir in $PATH
12038do
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12041 for ac_exec_ext in '' $ac_executable_extensions; do
12042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12043 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12045 break 2
12046 fi
12047done
81ecdfbb
RW
12048 done
12049IFS=$as_save_IFS
9a819804
AO
12050
12051fi
12052fi
12053OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12054if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12056$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12057else
81ecdfbb
RW
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059$as_echo "no" >&6; }
9a819804
AO
12060fi
12061
81ecdfbb 12062
9a819804
AO
12063 done
12064fi
12065
12066if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12067 for ncn_progname in objdump; do
81ecdfbb
RW
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12069$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12070 if test -x $with_build_time_tools/${ncn_progname}; then
12071 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12073$as_echo "yes" >&6; }
2429c060
PB
12074 break
12075 else
81ecdfbb
RW
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077$as_echo "no" >&6; }
2429c060
PB
12078 fi
12079 done
12080fi
12081
12082if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12083 for ncn_progname in objdump; do
12084 if test -n "$ncn_target_tool_prefix"; then
12085 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12086set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
12089if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
5ae72758
DJ
12091else
12092 if test -n "$OBJDUMP_FOR_TARGET"; then
12093 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12094else
c6b750e1
DJ
12095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $PATH
12097do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12102 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12104 break 2
12105 fi
12106done
81ecdfbb
RW
12107 done
12108IFS=$as_save_IFS
c6b750e1 12109
5ae72758
DJ
12110fi
12111fi
c6b750e1 12112OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12113if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12115$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12116else
81ecdfbb
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118$as_echo "no" >&6; }
5ae72758
DJ
12119fi
12120
81ecdfbb 12121
2429c060
PB
12122 fi
12123 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12125set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127$as_echo_n "checking for $ac_word... " >&6; }
12128if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
5ae72758
DJ
12130else
12131 if test -n "$OBJDUMP_FOR_TARGET"; then
12132 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12133else
c6b750e1
DJ
12134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135for as_dir in $PATH
12136do
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12141 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12143 break 2
12144 fi
12145done
81ecdfbb
RW
12146 done
12147IFS=$as_save_IFS
c6b750e1 12148
5ae72758
DJ
12149fi
12150fi
c6b750e1 12151OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12152if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12154$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12155else
81ecdfbb
RW
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157$as_echo "no" >&6; }
5ae72758 12158fi
c6b750e1 12159
81ecdfbb 12160
2429c060
PB
12161 fi
12162 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12163 done
12164fi
c6b750e1 12165
5ae72758
DJ
12166if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12167 set dummy objdump
12168 if test $build = $target ; then
12169 OBJDUMP_FOR_TARGET="$2"
12170 else
12171 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12172 fi
d3f5afc4
MS
12173else
12174 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12175fi
12176
3a35eeb3
PB
12177else
12178 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12179fi
12180
12181
12182
12183
12184if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12185 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12187$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12188 if test -x $with_build_time_tools/ranlib; then
12189 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12190 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12192$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12193 else
81ecdfbb
RW
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195$as_echo "no" >&6; }
3a35eeb3 12196 fi
2429c060
PB
12197 elif test $build != $host && test $have_gcc_for_target = yes; then
12198 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12199 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12200 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12201 fi
12202fi
c6b750e1 12203if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12204 # Extract the first word of "ranlib", so it can be a program name with args.
12205set dummy ranlib; ac_word=$2
81ecdfbb
RW
12206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207$as_echo_n "checking for $ac_word... " >&6; }
12208if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
2429c060 12210else
c6b750e1
DJ
12211 case $RANLIB_FOR_TARGET in
12212 [\\/]* | ?:[\\/]*)
2429c060
PB
12213 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12214 ;;
2429c060 12215 *)
c6b750e1
DJ
12216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217for as_dir in $gcc_cv_tool_dirs
12218do
12219 IFS=$as_save_IFS
12220 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12223 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12225 break 2
12226 fi
12227done
81ecdfbb
RW
12228 done
12229IFS=$as_save_IFS
c6b750e1 12230
2429c060
PB
12231 ;;
12232esac
12233fi
c6b750e1 12234RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12235if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12237$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12238else
81ecdfbb
RW
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240$as_echo "no" >&6; }
2429c060
PB
12241fi
12242
81ecdfbb 12243
2429c060
PB
12244fi
12245if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12246
12247
12248if test -n "$RANLIB_FOR_TARGET"; then
12249 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12250elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12251 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12252fi
12253
12254if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12255 for ncn_progname in ranlib; do
12256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12257set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259$as_echo_n "checking for $ac_word... " >&6; }
12260if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12261 $as_echo_n "(cached) " >&6
9a819804
AO
12262else
12263 if test -n "$RANLIB_FOR_TARGET"; then
12264 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12265else
12266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267for as_dir in $PATH
12268do
12269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12271 for ac_exec_ext in '' $ac_executable_extensions; do
12272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12273 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12275 break 2
12276 fi
12277done
81ecdfbb
RW
12278 done
12279IFS=$as_save_IFS
9a819804
AO
12280
12281fi
12282fi
12283RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12284if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12286$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12287else
81ecdfbb
RW
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
9a819804
AO
12290fi
12291
81ecdfbb 12292
9a819804
AO
12293 done
12294fi
12295
12296if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12297 for ncn_progname in ranlib; do
81ecdfbb
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12299$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12300 if test -x $with_build_time_tools/${ncn_progname}; then
12301 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12303$as_echo "yes" >&6; }
2429c060
PB
12304 break
12305 else
81ecdfbb
RW
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307$as_echo "no" >&6; }
2429c060
PB
12308 fi
12309 done
12310fi
12311
12312if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12313 for ncn_progname in ranlib; do
12314 if test -n "$ncn_target_tool_prefix"; then
12315 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12316set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
12319if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
859789af 12321else
55db4b87
PB
12322 if test -n "$RANLIB_FOR_TARGET"; then
12323 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12324else
c6b750e1
DJ
12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $PATH
12327do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12332 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12334 break 2
12335 fi
12336done
81ecdfbb
RW
12337 done
12338IFS=$as_save_IFS
c6b750e1 12339
859789af
AC
12340fi
12341fi
c6b750e1 12342RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12343if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12345$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12346else
81ecdfbb
RW
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348$as_echo "no" >&6; }
859789af
AC
12349fi
12350
81ecdfbb 12351
2429c060
PB
12352 fi
12353 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12355set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357$as_echo_n "checking for $ac_word... " >&6; }
12358if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
859789af 12360else
05cbd757
PB
12361 if test -n "$RANLIB_FOR_TARGET"; then
12362 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12363else
c6b750e1
DJ
12364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365for as_dir in $PATH
12366do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12371 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12373 break 2
12374 fi
12375done
81ecdfbb
RW
12376 done
12377IFS=$as_save_IFS
c6b750e1 12378
859789af
AC
12379fi
12380fi
c6b750e1 12381RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12382if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12384$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12385else
81ecdfbb
RW
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
859789af 12388fi
c6b750e1 12389
81ecdfbb 12390
2429c060
PB
12391 fi
12392 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12393 done
12394fi
c6b750e1 12395
2429c060
PB
12396if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12397 set dummy ranlib
12398 if test $build = $target ; then
12399 RANLIB_FOR_TARGET="$2"
12400 else
12401 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12402 fi
d3f5afc4
MS
12403else
12404 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12405fi
05cbd757 12406
3a35eeb3
PB
12407else
12408 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12409fi
12410
2429c060
PB
12411
12412
12413
b121d7d4
DD
12414if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12415 if test -n "$with_build_time_tools"; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12417$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12418 if test -x $with_build_time_tools/readelf; then
12419 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12420 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12422$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425$as_echo "no" >&6; }
12426 fi
12427 elif test $build != $host && test $have_gcc_for_target = yes; then
12428 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12429 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12430 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12431 fi
12432fi
12433if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12434 # Extract the first word of "readelf", so it can be a program name with args.
12435set dummy readelf; ac_word=$2
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437$as_echo_n "checking for $ac_word... " >&6; }
12438if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12439 $as_echo_n "(cached) " >&6
12440else
12441 case $READELF_FOR_TARGET in
12442 [\\/]* | ?:[\\/]*)
12443 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12444 ;;
12445 *)
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447for as_dir in $gcc_cv_tool_dirs
12448do
12449 IFS=$as_save_IFS
12450 test -z "$as_dir" && as_dir=.
12451 for ac_exec_ext in '' $ac_executable_extensions; do
12452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12453 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12455 break 2
12456 fi
12457done
12458 done
12459IFS=$as_save_IFS
12460
12461 ;;
12462esac
12463fi
12464READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12465if test -n "$READELF_FOR_TARGET"; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12467$as_echo "$READELF_FOR_TARGET" >&6; }
12468else
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470$as_echo "no" >&6; }
12471fi
12472
12473
12474fi
12475if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12476
12477
12478if test -n "$READELF_FOR_TARGET"; then
12479 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12480elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12481 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12482fi
12483
12484if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12485 for ncn_progname in readelf; do
12486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12487set dummy ${ncn_progname}; ac_word=$2
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12489$as_echo_n "checking for $ac_word... " >&6; }
12490if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12491 $as_echo_n "(cached) " >&6
12492else
12493 if test -n "$READELF_FOR_TARGET"; then
12494 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12495else
12496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12497for as_dir in $PATH
12498do
12499 IFS=$as_save_IFS
12500 test -z "$as_dir" && as_dir=.
12501 for ac_exec_ext in '' $ac_executable_extensions; do
12502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12503 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12505 break 2
12506 fi
12507done
12508 done
12509IFS=$as_save_IFS
12510
12511fi
12512fi
12513READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12514if test -n "$READELF_FOR_TARGET"; then
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12516$as_echo "$READELF_FOR_TARGET" >&6; }
12517else
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519$as_echo "no" >&6; }
12520fi
12521
12522
12523 done
12524fi
12525
12526if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12527 for ncn_progname in readelf; do
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12529$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12530 if test -x $with_build_time_tools/${ncn_progname}; then
12531 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12533$as_echo "yes" >&6; }
12534 break
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537$as_echo "no" >&6; }
12538 fi
12539 done
12540fi
12541
12542if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12543 for ncn_progname in readelf; do
12544 if test -n "$ncn_target_tool_prefix"; then
12545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12546set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
12549if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
12551else
12552 if test -n "$READELF_FOR_TARGET"; then
12553 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12554else
12555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556for as_dir in $PATH
12557do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12562 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12565 fi
12566done
12567 done
12568IFS=$as_save_IFS
12569
12570fi
12571fi
12572READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12573if test -n "$READELF_FOR_TARGET"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12575$as_echo "$READELF_FOR_TARGET" >&6; }
12576else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578$as_echo "no" >&6; }
12579fi
12580
12581
12582 fi
12583 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12585set dummy ${ncn_progname}; ac_word=$2
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587$as_echo_n "checking for $ac_word... " >&6; }
12588if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12589 $as_echo_n "(cached) " >&6
12590else
12591 if test -n "$READELF_FOR_TARGET"; then
12592 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12593else
12594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595for as_dir in $PATH
12596do
12597 IFS=$as_save_IFS
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12601 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 break 2
12604 fi
12605done
12606 done
12607IFS=$as_save_IFS
12608
12609fi
12610fi
12611READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12612if test -n "$READELF_FOR_TARGET"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12614$as_echo "$READELF_FOR_TARGET" >&6; }
12615else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617$as_echo "no" >&6; }
12618fi
12619
12620
12621 fi
12622 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12623 done
12624fi
12625
12626if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12627 set dummy readelf
12628 if test $build = $target ; then
12629 READELF_FOR_TARGET="$2"
12630 else
12631 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12632 fi
12633else
12634 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12635fi
12636
12637else
12638 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12639fi
12640
12641
12642
12643
2429c060
PB
12644if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12645 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12647$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12648 if test -x $with_build_time_tools/strip; then
12649 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12650 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12652$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12653 else
81ecdfbb
RW
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655$as_echo "no" >&6; }
3a35eeb3 12656 fi
2429c060
PB
12657 elif test $build != $host && test $have_gcc_for_target = yes; then
12658 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12659 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12660 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12661 fi
12662fi
c6b750e1 12663if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12664 # Extract the first word of "strip", so it can be a program name with args.
12665set dummy strip; ac_word=$2
81ecdfbb
RW
12666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667$as_echo_n "checking for $ac_word... " >&6; }
12668if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
2429c060 12670else
c6b750e1
DJ
12671 case $STRIP_FOR_TARGET in
12672 [\\/]* | ?:[\\/]*)
2429c060
PB
12673 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12674 ;;
2429c060 12675 *)
c6b750e1
DJ
12676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677for as_dir in $gcc_cv_tool_dirs
12678do
12679 IFS=$as_save_IFS
12680 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12681 for ac_exec_ext in '' $ac_executable_extensions; do
12682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12683 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12685 break 2
12686 fi
12687done
81ecdfbb
RW
12688 done
12689IFS=$as_save_IFS
c6b750e1 12690
2429c060
PB
12691 ;;
12692esac
12693fi
c6b750e1 12694STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12695if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12697$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12698else
81ecdfbb
RW
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700$as_echo "no" >&6; }
2429c060
PB
12701fi
12702
81ecdfbb 12703
2429c060
PB
12704fi
12705if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12706
12707
12708if test -n "$STRIP_FOR_TARGET"; then
12709 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12710elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12711 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12712fi
12713
12714if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12715 for ncn_progname in strip; do
12716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12717set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719$as_echo_n "checking for $ac_word... " >&6; }
12720if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
9a819804
AO
12722else
12723 if test -n "$STRIP_FOR_TARGET"; then
12724 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12725else
12726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727for as_dir in $PATH
12728do
12729 IFS=$as_save_IFS
12730 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12733 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12735 break 2
12736 fi
12737done
81ecdfbb
RW
12738 done
12739IFS=$as_save_IFS
9a819804
AO
12740
12741fi
12742fi
12743STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12744if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12746$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12747else
81ecdfbb
RW
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749$as_echo "no" >&6; }
9a819804
AO
12750fi
12751
81ecdfbb 12752
9a819804
AO
12753 done
12754fi
12755
12756if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12757 for ncn_progname in strip; do
81ecdfbb
RW
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12759$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12760 if test -x $with_build_time_tools/${ncn_progname}; then
12761 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12763$as_echo "yes" >&6; }
2429c060
PB
12764 break
12765 else
81ecdfbb
RW
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767$as_echo "no" >&6; }
2429c060
PB
12768 fi
12769 done
12770fi
12771
12772if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12773 for ncn_progname in strip; do
12774 if test -n "$ncn_target_tool_prefix"; then
12775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12776set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
12779if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
7e0f7140
GK
12781else
12782 if test -n "$STRIP_FOR_TARGET"; then
12783 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12784else
12785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786for as_dir in $PATH
12787do
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12792 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12794 break 2
12795 fi
12796done
81ecdfbb
RW
12797 done
12798IFS=$as_save_IFS
c6b750e1 12799
7e0f7140
GK
12800fi
12801fi
c6b750e1 12802STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12803if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12805$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12806else
81ecdfbb
RW
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808$as_echo "no" >&6; }
7e0f7140
GK
12809fi
12810
81ecdfbb 12811
2429c060
PB
12812 fi
12813 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12815set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817$as_echo_n "checking for $ac_word... " >&6; }
12818if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
7e0f7140
GK
12820else
12821 if test -n "$STRIP_FOR_TARGET"; then
12822 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12823else
c6b750e1
DJ
12824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825for as_dir in $PATH
12826do
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12829 for ac_exec_ext in '' $ac_executable_extensions; do
12830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12831 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12833 break 2
12834 fi
12835done
81ecdfbb
RW
12836 done
12837IFS=$as_save_IFS
c6b750e1 12838
7e0f7140
GK
12839fi
12840fi
c6b750e1 12841STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12842if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12844$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12845else
81ecdfbb
RW
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847$as_echo "no" >&6; }
7e0f7140 12848fi
c6b750e1 12849
81ecdfbb 12850
2429c060
PB
12851 fi
12852 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12853 done
12854fi
c6b750e1 12855
7e0f7140
GK
12856if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12857 set dummy strip
12858 if test $build = $target ; then
12859 STRIP_FOR_TARGET="$2"
12860 else
12861 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12862 fi
d3f5afc4
MS
12863else
12864 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12865fi
12866
3a35eeb3
PB
12867else
12868 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12869fi
12870
12871
12872
12873
12874if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12875 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12877$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12878 if test -x $with_build_time_tools/windres; then
12879 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12880 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12882$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12883 else
81ecdfbb
RW
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885$as_echo "no" >&6; }
3a35eeb3 12886 fi
2429c060
PB
12887 elif test $build != $host && test $have_gcc_for_target = yes; then
12888 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12889 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12890 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12891 fi
12892fi
c6b750e1 12893if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12894 # Extract the first word of "windres", so it can be a program name with args.
12895set dummy windres; ac_word=$2
81ecdfbb
RW
12896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897$as_echo_n "checking for $ac_word... " >&6; }
12898if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
2429c060 12900else
c6b750e1
DJ
12901 case $WINDRES_FOR_TARGET in
12902 [\\/]* | ?:[\\/]*)
2429c060
PB
12903 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12904 ;;
2429c060 12905 *)
c6b750e1
DJ
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907for as_dir in $gcc_cv_tool_dirs
12908do
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12913 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12915 break 2
12916 fi
12917done
81ecdfbb
RW
12918 done
12919IFS=$as_save_IFS
c6b750e1 12920
2429c060
PB
12921 ;;
12922esac
12923fi
c6b750e1 12924WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12925if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12927$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12928else
81ecdfbb
RW
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930$as_echo "no" >&6; }
2429c060
PB
12931fi
12932
81ecdfbb 12933
2429c060
PB
12934fi
12935if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12936
12937
12938if test -n "$WINDRES_FOR_TARGET"; then
12939 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12940elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12941 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12942fi
12943
12944if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12945 for ncn_progname in windres; do
12946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12947set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949$as_echo_n "checking for $ac_word... " >&6; }
12950if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12951 $as_echo_n "(cached) " >&6
9a819804
AO
12952else
12953 if test -n "$WINDRES_FOR_TARGET"; then
12954 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12955else
12956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957for as_dir in $PATH
12958do
12959 IFS=$as_save_IFS
12960 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12961 for ac_exec_ext in '' $ac_executable_extensions; do
12962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12963 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12965 break 2
12966 fi
12967done
81ecdfbb
RW
12968 done
12969IFS=$as_save_IFS
9a819804
AO
12970
12971fi
12972fi
12973WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12974if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12976$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12977else
81ecdfbb
RW
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979$as_echo "no" >&6; }
9a819804
AO
12980fi
12981
81ecdfbb 12982
9a819804
AO
12983 done
12984fi
12985
12986if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12987 for ncn_progname in windres; do
81ecdfbb
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12989$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12990 if test -x $with_build_time_tools/${ncn_progname}; then
12991 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12993$as_echo "yes" >&6; }
2429c060
PB
12994 break
12995 else
81ecdfbb
RW
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997$as_echo "no" >&6; }
2429c060
PB
12998 fi
12999 done
13000fi
13001
13002if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13003 for ncn_progname in windres; do
13004 if test -n "$ncn_target_tool_prefix"; then
13005 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13006set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008$as_echo_n "checking for $ac_word... " >&6; }
13009if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
859789af 13011else
55db4b87
PB
13012 if test -n "$WINDRES_FOR_TARGET"; then
13013 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13014else
c6b750e1
DJ
13015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016for as_dir in $PATH
13017do
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13022 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13024 break 2
13025 fi
13026done
81ecdfbb
RW
13027 done
13028IFS=$as_save_IFS
c6b750e1 13029
859789af
AC
13030fi
13031fi
c6b750e1 13032WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13033if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13035$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13036else
81ecdfbb
RW
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038$as_echo "no" >&6; }
859789af
AC
13039fi
13040
81ecdfbb 13041
2429c060
PB
13042 fi
13043 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13045set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047$as_echo_n "checking for $ac_word... " >&6; }
13048if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
859789af 13050else
05cbd757
PB
13051 if test -n "$WINDRES_FOR_TARGET"; then
13052 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13053else
c6b750e1
DJ
13054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055for as_dir in $PATH
13056do
13057 IFS=$as_save_IFS
13058 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13061 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13063 break 2
13064 fi
13065done
81ecdfbb
RW
13066 done
13067IFS=$as_save_IFS
c6b750e1 13068
859789af
AC
13069fi
13070fi
c6b750e1 13071WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13072if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13074$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13075else
81ecdfbb
RW
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077$as_echo "no" >&6; }
859789af 13078fi
c6b750e1 13079
81ecdfbb 13080
2429c060
PB
13081 fi
13082 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13083 done
13084fi
c6b750e1 13085
05cbd757
PB
13086if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13087 set dummy windres
13088 if test $build = $target ; then
13089 WINDRES_FOR_TARGET="$2"
859789af 13090 else
05cbd757 13091 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13092 fi
d3f5afc4
MS
13093else
13094 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13095fi
13096
3a35eeb3
PB
13097else
13098 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13099fi
13100
852e5f18 13101
0c24b341
NC
13102
13103
13104if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13105 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13107$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13108 if test -x $with_build_time_tools/windmc; then
13109 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13110 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13112$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13113 else
81ecdfbb
RW
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115$as_echo "no" >&6; }
0c24b341
NC
13116 fi
13117 elif test $build != $host && test $have_gcc_for_target = yes; then
13118 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13119 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13120 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13121 fi
13122fi
13123if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13124 # Extract the first word of "windmc", so it can be a program name with args.
13125set dummy windmc; ac_word=$2
81ecdfbb
RW
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127$as_echo_n "checking for $ac_word... " >&6; }
13128if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13129 $as_echo_n "(cached) " >&6
0c24b341
NC
13130else
13131 case $WINDMC_FOR_TARGET in
13132 [\\/]* | ?:[\\/]*)
13133 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13134 ;;
13135 *)
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137for as_dir in $gcc_cv_tool_dirs
13138do
13139 IFS=$as_save_IFS
13140 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13141 for ac_exec_ext in '' $ac_executable_extensions; do
13142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13143 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13145 break 2
13146 fi
13147done
81ecdfbb
RW
13148 done
13149IFS=$as_save_IFS
0c24b341
NC
13150
13151 ;;
13152esac
13153fi
13154WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13155if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13157$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13158else
81ecdfbb
RW
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160$as_echo "no" >&6; }
0c24b341
NC
13161fi
13162
81ecdfbb 13163
0c24b341
NC
13164fi
13165if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13166
13167
13168if test -n "$WINDMC_FOR_TARGET"; then
13169 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13170elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13171 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13172fi
13173
13174if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13175 for ncn_progname in windmc; do
13176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13177set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179$as_echo_n "checking for $ac_word... " >&6; }
13180if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13181 $as_echo_n "(cached) " >&6
0c24b341
NC
13182else
13183 if test -n "$WINDMC_FOR_TARGET"; then
13184 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13185else
13186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187for as_dir in $PATH
13188do
13189 IFS=$as_save_IFS
13190 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13191 for ac_exec_ext in '' $ac_executable_extensions; do
13192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13193 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13195 break 2
13196 fi
13197done
81ecdfbb
RW
13198 done
13199IFS=$as_save_IFS
0c24b341
NC
13200
13201fi
13202fi
13203WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13204if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13206$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13207else
81ecdfbb
RW
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209$as_echo "no" >&6; }
0c24b341
NC
13210fi
13211
81ecdfbb 13212
0c24b341
NC
13213 done
13214fi
13215
13216if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13217 for ncn_progname in windmc; do
81ecdfbb
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13219$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13220 if test -x $with_build_time_tools/${ncn_progname}; then
13221 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13223$as_echo "yes" >&6; }
0c24b341
NC
13224 break
13225 else
81ecdfbb
RW
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227$as_echo "no" >&6; }
0c24b341
NC
13228 fi
13229 done
13230fi
13231
13232if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13233 for ncn_progname in windmc; do
13234 if test -n "$ncn_target_tool_prefix"; then
13235 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13236set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238$as_echo_n "checking for $ac_word... " >&6; }
13239if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13240 $as_echo_n "(cached) " >&6
0c24b341
NC
13241else
13242 if test -n "$WINDMC_FOR_TARGET"; then
13243 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13244else
13245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246for as_dir in $PATH
13247do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13252 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13254 break 2
13255 fi
13256done
81ecdfbb
RW
13257 done
13258IFS=$as_save_IFS
0c24b341
NC
13259
13260fi
13261fi
13262WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13263if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13265$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13266else
81ecdfbb
RW
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268$as_echo "no" >&6; }
0c24b341
NC
13269fi
13270
81ecdfbb 13271
0c24b341
NC
13272 fi
13273 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13275set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277$as_echo_n "checking for $ac_word... " >&6; }
13278if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13279 $as_echo_n "(cached) " >&6
0c24b341
NC
13280else
13281 if test -n "$WINDMC_FOR_TARGET"; then
13282 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13283else
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13291 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13293 break 2
13294 fi
13295done
81ecdfbb
RW
13296 done
13297IFS=$as_save_IFS
0c24b341
NC
13298
13299fi
13300fi
13301WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13302if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13304$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13305else
81ecdfbb
RW
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307$as_echo "no" >&6; }
0c24b341
NC
13308fi
13309
81ecdfbb 13310
0c24b341
NC
13311 fi
13312 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13313 done
13314fi
13315
13316if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13317 set dummy windmc
13318 if test $build = $target ; then
13319 WINDMC_FOR_TARGET="$2"
13320 else
13321 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13322 fi
13323else
13324 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13325fi
13326
13327else
13328 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13329fi
13330
13331
be01d343
PB
13332RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13333
81ecdfbb
RW
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13335$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13336if test "x${build}" != "x${host}" ; then
2429c060
PB
13337 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13338 # We already found the complete path
b8025f34 13339 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13341$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13342 else
13343 # Canadian cross, just use what we found
81ecdfbb
RW
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13345$as_echo "pre-installed" >&6; }
2429c060 13346 fi
be01d343
PB
13347else
13348 ok=yes
13349 case " ${configdirs} " in
13350 *" binutils "*) ;;
13351 *) ok=no ;;
13352 esac
c6b750e1 13353
be01d343
PB
13354 if test $ok = yes; then
13355 # An in-tree tool is available and we can use it
13356 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13358$as_echo "just compiled" >&6; }
2429c060
PB
13359 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13360 # We already found the complete path
b8025f34 13361 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13363$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13364 elif test "x$target" = "x$host"; then
13365 # We can use an host tool
13366 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13368$as_echo "host tool" >&6; }
be01d343
PB
13369 else
13370 # We need a cross tool
81ecdfbb
RW
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13372$as_echo "pre-installed" >&6; }
be01d343
PB
13373 fi
13374fi
4b900473 13375
81ecdfbb
RW
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13377$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13378if test "x${build}" != "x${host}" ; then
2429c060
PB
13379 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13380 # We already found the complete path
b8025f34 13381 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13383$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13384 else
13385 # Canadian cross, just use what we found
81ecdfbb
RW
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13387$as_echo "pre-installed" >&6; }
2429c060 13388 fi
be01d343
PB
13389else
13390 ok=yes
13391 case " ${configdirs} " in
13392 *" gas "*) ;;
13393 *) ok=no ;;
13394 esac
c6b750e1 13395
be01d343
PB
13396 if test $ok = yes; then
13397 # An in-tree tool is available and we can use it
13398 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13400$as_echo "just compiled" >&6; }
2429c060
PB
13401 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13402 # We already found the complete path
b8025f34 13403 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13405$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13406 elif test "x$target" = "x$host"; then
13407 # We can use an host tool
13408 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13410$as_echo "host tool" >&6; }
be01d343
PB
13411 else
13412 # We need a cross tool
81ecdfbb
RW
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13414$as_echo "pre-installed" >&6; }
be01d343
PB
13415 fi
13416fi
4b900473 13417
81ecdfbb
RW
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13419$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13420if test "x${build}" != "x${host}" ; then
2429c060
PB
13421 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13422 # We already found the complete path
b8025f34 13423 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13425$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13426 else
13427 # Canadian cross, just use what we found
81ecdfbb
RW
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13429$as_echo "pre-installed" >&6; }
2429c060 13430 fi
be01d343
PB
13431else
13432 ok=yes
13433 case " ${configdirs} " in
13434 *" gcc "*) ;;
13435 *) ok=no ;;
13436 esac
c6b750e1 13437
be01d343
PB
13438 if test $ok = yes; then
13439 # An in-tree tool is available and we can use it
13440 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13442$as_echo "just compiled" >&6; }
2429c060
PB
13443 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13444 # We already found the complete path
b8025f34 13445 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13447$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13448 elif test "x$target" = "x$host"; then
13449 # We can use an host tool
13450 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13452$as_echo "host tool" >&6; }
be01d343
PB
13453 else
13454 # We need a cross tool
81ecdfbb
RW
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13456$as_echo "pre-installed" >&6; }
be01d343
PB
13457 fi
13458fi
4b900473 13459
81ecdfbb
RW
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13461$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13462if test "x${build}" != "x${host}" ; then
2429c060
PB
13463 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13464 # We already found the complete path
b8025f34 13465 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13467$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13468 else
13469 # Canadian cross, just use what we found
81ecdfbb
RW
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13471$as_echo "pre-installed" >&6; }
2429c060 13472 fi
be01d343
PB
13473else
13474 ok=yes
13475 case " ${configdirs} " in
13476 *" gcc "*) ;;
13477 *) ok=no ;;
13478 esac
13479 case ,${enable_languages}, in
13480 *,c++,*) ;;
13481 *) ok=no ;;
13482 esac
13483 if test $ok = yes; then
13484 # An in-tree tool is available and we can use it
87cda2cf 13485 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13487$as_echo "just compiled" >&6; }
2429c060
PB
13488 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13489 # We already found the complete path
b8025f34 13490 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13492$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13493 elif test "x$target" = "x$host"; then
13494 # We can use an host tool
13495 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13497$as_echo "host tool" >&6; }
be01d343
PB
13498 else
13499 # We need a cross tool
81ecdfbb
RW
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13501$as_echo "pre-installed" >&6; }
be01d343
PB
13502 fi
13503fi
4b900473 13504
81ecdfbb
RW
13505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13506$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13507if test "x${build}" != "x${host}" ; then
2429c060
PB
13508 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13509 # We already found the complete path
b8025f34 13510 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13512$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13513 else
13514 # Canadian cross, just use what we found
81ecdfbb
RW
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13516$as_echo "pre-installed" >&6; }
2429c060 13517 fi
be01d343
PB
13518else
13519 ok=yes
13520 case " ${configdirs} " in
13521 *" gcc "*) ;;
13522 *) ok=no ;;
13523 esac
13524 case ,${enable_languages}, in
13525 *,c++,*) ;;
13526 *) ok=no ;;
13527 esac
13528 if test $ok = yes; then
13529 # An in-tree tool is available and we can use it
13530 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
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13532$as_echo "just compiled" >&6; }
2429c060
PB
13533 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13534 # We already found the complete path
b8025f34 13535 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13537$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13538 elif test "x$target" = "x$host"; then
13539 # We can use an host tool
13540 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13542$as_echo "host tool" >&6; }
be01d343
PB
13543 else
13544 # We need a cross tool
81ecdfbb
RW
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13546$as_echo "pre-installed" >&6; }
be01d343
PB
13547 fi
13548fi
4b900473 13549
81ecdfbb
RW
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13551$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13552if test "x${build}" != "x${host}" ; then
2429c060
PB
13553 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13554 # We already found the complete path
b8025f34 13555 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13557$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13558 else
13559 # Canadian cross, just use what we found
81ecdfbb
RW
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13561$as_echo "pre-installed" >&6; }
2429c060 13562 fi
be01d343
PB
13563else
13564 ok=yes
13565 case " ${configdirs} " in
13566 *" binutils "*) ;;
13567 *) ok=no ;;
13568 esac
c6b750e1 13569
be01d343
PB
13570 if test $ok = yes; then
13571 # An in-tree tool is available and we can use it
13572 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13574$as_echo "just compiled" >&6; }
2429c060
PB
13575 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13576 # We already found the complete path
b8025f34 13577 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13579$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13580 elif test "x$target" = "x$host"; then
13581 # We can use an host tool
13582 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13584$as_echo "host tool" >&6; }
be01d343
PB
13585 else
13586 # We need a cross tool
81ecdfbb
RW
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13588$as_echo "pre-installed" >&6; }
be01d343
PB
13589 fi
13590fi
4b900473 13591
81ecdfbb
RW
13592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13593$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13594if test "x${build}" != "x${host}" ; then
2429c060
PB
13595 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13596 # We already found the complete path
b8025f34 13597 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13599$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13600 else
13601 # Canadian cross, just use what we found
81ecdfbb
RW
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13603$as_echo "pre-installed" >&6; }
2429c060 13604 fi
be01d343
PB
13605else
13606 ok=yes
13607 case " ${configdirs} " in
13608 *" gcc "*) ;;
13609 *) ok=no ;;
13610 esac
c6b750e1 13611
be01d343
PB
13612 if test $ok = yes; then
13613 # An in-tree tool is available and we can use it
13614 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13616$as_echo "just compiled" >&6; }
2429c060
PB
13617 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13618 # We already found the complete path
b8025f34 13619 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13621$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13622 elif test "x$target" = "x$host"; then
13623 # We can use an host tool
13624 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13626$as_echo "host tool" >&6; }
be01d343
PB
13627 else
13628 # We need a cross tool
81ecdfbb
RW
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13630$as_echo "pre-installed" >&6; }
be01d343
PB
13631 fi
13632fi
4b900473 13633
81ecdfbb
RW
13634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13635$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13636if test "x${build}" != "x${host}" ; then
2429c060
PB
13637 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13638 # We already found the complete path
b8025f34 13639 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13641$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13642 else
13643 # Canadian cross, just use what we found
81ecdfbb
RW
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13645$as_echo "pre-installed" >&6; }
2429c060 13646 fi
be01d343
PB
13647else
13648 ok=yes
13649 case " ${configdirs} " in
13650 *" gcc "*) ;;
13651 *) ok=no ;;
13652 esac
13653 case ,${enable_languages}, in
13654 *,java,*) ;;
13655 *) ok=no ;;
13656 esac
13657 if test $ok = yes; then
13658 # An in-tree tool is available and we can use it
13659 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13661$as_echo "just compiled" >&6; }
2429c060
PB
13662 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13663 # We already found the complete path
b8025f34 13664 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13666$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13667 elif test "x$target" = "x$host"; then
13668 # We can use an host tool
13669 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13671$as_echo "host tool" >&6; }
be01d343
PB
13672 else
13673 # We need a cross tool
81ecdfbb
RW
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13675$as_echo "pre-installed" >&6; }
be01d343
PB
13676 fi
13677fi
4b900473 13678
81ecdfbb
RW
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13680$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13681if test "x${build}" != "x${host}" ; then
2429c060
PB
13682 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13683 # We already found the complete path
b8025f34 13684 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13686$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13687 else
13688 # Canadian cross, just use what we found
81ecdfbb
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13690$as_echo "pre-installed" >&6; }
2429c060 13691 fi
be01d343
PB
13692else
13693 ok=yes
13694 case " ${configdirs} " in
13695 *" gcc "*) ;;
13696 *) ok=no ;;
13697 esac
13698 case ,${enable_languages}, in
13699 *,fortran,*) ;;
13700 *) ok=no ;;
13701 esac
13702 if test $ok = yes; then
13703 # An in-tree tool is available and we can use it
13704 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13706$as_echo "just compiled" >&6; }
2429c060
PB
13707 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13708 # We already found the complete path
b8025f34 13709 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13711$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13712 elif test "x$target" = "x$host"; then
13713 # We can use an host tool
13714 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13716$as_echo "host tool" >&6; }
be01d343
PB
13717 else
13718 # We need a cross tool
81ecdfbb
RW
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13720$as_echo "pre-installed" >&6; }
be01d343
PB
13721 fi
13722fi
4b900473 13723
e552509b
ILT
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13725$as_echo_n "checking where to find the target gccgo... " >&6; }
13726if test "x${build}" != "x${host}" ; then
13727 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13728 # We already found the complete path
13729 ac_dir=`dirname $GOC_FOR_TARGET`
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13731$as_echo "pre-installed in $ac_dir" >&6; }
13732 else
13733 # Canadian cross, just use what we found
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13735$as_echo "pre-installed" >&6; }
13736 fi
13737else
13738 ok=yes
13739 case " ${configdirs} " in
13740 *" gcc "*) ;;
13741 *) ok=no ;;
13742 esac
13743 case ,${enable_languages}, in
13744 *,go,*) ;;
13745 *) ok=no ;;
13746 esac
13747 if test $ok = yes; then
13748 # An in-tree tool is available and we can use it
13749 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13751$as_echo "just compiled" >&6; }
13752 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13753 # We already found the complete path
13754 ac_dir=`dirname $GOC_FOR_TARGET`
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13756$as_echo "pre-installed in $ac_dir" >&6; }
13757 elif test "x$target" = "x$host"; then
13758 # We can use an host tool
13759 GOC_FOR_TARGET='$(GOC)'
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13761$as_echo "host tool" >&6; }
13762 else
13763 # We need a cross tool
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13765$as_echo "pre-installed" >&6; }
13766 fi
13767fi
13768
81ecdfbb
RW
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13770$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13771if test "x${build}" != "x${host}" ; then
2429c060
PB
13772 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13773 # We already found the complete path
b8025f34 13774 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13776$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13777 else
13778 # Canadian cross, just use what we found
81ecdfbb
RW
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13780$as_echo "pre-installed" >&6; }
2429c060 13781 fi
be01d343
PB
13782else
13783 ok=yes
13784 case " ${configdirs} " in
13785 *" ld "*) ;;
13786 *) ok=no ;;
13787 esac
c6b750e1 13788
be01d343
PB
13789 if test $ok = yes; then
13790 # An in-tree tool is available and we can use it
13791 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13793$as_echo "just compiled" >&6; }
2429c060
PB
13794 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13795 # We already found the complete path
b8025f34 13796 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13799 elif test "x$target" = "x$host"; then
13800 # We can use an host tool
13801 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13803$as_echo "host tool" >&6; }
be01d343
PB
13804 else
13805 # We need a cross tool
81ecdfbb
RW
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13807$as_echo "pre-installed" >&6; }
be01d343
PB
13808 fi
13809fi
4b900473 13810
81ecdfbb
RW
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13812$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13813if test "x${build}" != "x${host}" ; then
2429c060
PB
13814 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13815 # We already found the complete path
b8025f34 13816 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13818$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13819 else
13820 # Canadian cross, just use what we found
81ecdfbb
RW
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13822$as_echo "pre-installed" >&6; }
2429c060 13823 fi
be01d343 13824else
2429c060
PB
13825 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13826 # We already found the complete path
b8025f34 13827 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13829$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13830 elif test "x$target" = "x$host"; then
be01d343
PB
13831 # We can use an host tool
13832 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13834$as_echo "host tool" >&6; }
be01d343
PB
13835 else
13836 # We need a cross tool
81ecdfbb
RW
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13838$as_echo "pre-installed" >&6; }
be01d343
PB
13839 fi
13840fi
4b900473 13841
81ecdfbb
RW
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13843$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13844if test "x${build}" != "x${host}" ; then
2429c060
PB
13845 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13846 # We already found the complete path
b8025f34 13847 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13849$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13850 else
13851 # Canadian cross, just use what we found
81ecdfbb
RW
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13853$as_echo "pre-installed" >&6; }
2429c060 13854 fi
be01d343
PB
13855else
13856 ok=yes
13857 case " ${configdirs} " in
13858 *" binutils "*) ;;
13859 *) ok=no ;;
13860 esac
c6b750e1 13861
be01d343
PB
13862 if test $ok = yes; then
13863 # An in-tree tool is available and we can use it
13864 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13866$as_echo "just compiled" >&6; }
2429c060
PB
13867 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13868 # We already found the complete path
b8025f34 13869 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13871$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13872 elif test "x$target" = "x$host"; then
13873 # We can use an host tool
13874 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13876$as_echo "host tool" >&6; }
be01d343
PB
13877 else
13878 # We need a cross tool
81ecdfbb
RW
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13880$as_echo "pre-installed" >&6; }
be01d343
PB
13881 fi
13882fi
4b900473 13883
81ecdfbb
RW
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13885$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13886if test "x${build}" != "x${host}" ; then
2429c060
PB
13887 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13888 # We already found the complete path
b8025f34 13889 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13891$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13892 else
13893 # Canadian cross, just use what we found
81ecdfbb
RW
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13895$as_echo "pre-installed" >&6; }
2429c060 13896 fi
be01d343
PB
13897else
13898 ok=yes
13899 case " ${configdirs} " in
13900 *" binutils "*) ;;
13901 *) ok=no ;;
13902 esac
c6b750e1 13903
be01d343
PB
13904 if test $ok = yes; then
13905 # An in-tree tool is available and we can use it
13906 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13908$as_echo "just compiled" >&6; }
2429c060
PB
13909 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13910 # We already found the complete path
b8025f34 13911 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13913$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13914 elif test "x$target" = "x$host"; then
13915 # We can use an host tool
13916 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13918$as_echo "host tool" >&6; }
be01d343
PB
13919 else
13920 # We need a cross tool
81ecdfbb
RW
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13922$as_echo "pre-installed" >&6; }
be01d343
PB
13923 fi
13924fi
4b900473 13925
81ecdfbb
RW
13926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13927$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13928if test "x${build}" != "x${host}" ; then
2429c060
PB
13929 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13930 # We already found the complete path
b8025f34 13931 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13933$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13934 else
13935 # Canadian cross, just use what we found
81ecdfbb
RW
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13937$as_echo "pre-installed" >&6; }
2429c060 13938 fi
be01d343
PB
13939else
13940 ok=yes
13941 case " ${configdirs} " in
13942 *" binutils "*) ;;
13943 *) ok=no ;;
13944 esac
c6b750e1 13945
be01d343
PB
13946 if test $ok = yes; then
13947 # An in-tree tool is available and we can use it
13948 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13950$as_echo "just compiled" >&6; }
2429c060
PB
13951 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13952 # We already found the complete path
b8025f34 13953 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13955$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13956 elif test "x$target" = "x$host"; then
13957 # We can use an host tool
13958 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13960$as_echo "host tool" >&6; }
be01d343
PB
13961 else
13962 # We need a cross tool
81ecdfbb
RW
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13964$as_echo "pre-installed" >&6; }
be01d343
PB
13965 fi
13966fi
4b900473 13967
b121d7d4
DD
13968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13969$as_echo_n "checking where to find the target readelf... " >&6; }
13970if test "x${build}" != "x${host}" ; then
13971 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13972 # We already found the complete path
13973 ac_dir=`dirname $READELF_FOR_TARGET`
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13975$as_echo "pre-installed in $ac_dir" >&6; }
13976 else
13977 # Canadian cross, just use what we found
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13979$as_echo "pre-installed" >&6; }
13980 fi
13981else
13982 ok=yes
13983 case " ${configdirs} " in
13984 *" binutils "*) ;;
13985 *) ok=no ;;
13986 esac
13987
13988 if test $ok = yes; then
13989 # An in-tree tool is available and we can use it
13990 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13992$as_echo "just compiled" >&6; }
13993 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13994 # We already found the complete path
13995 ac_dir=`dirname $READELF_FOR_TARGET`
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13997$as_echo "pre-installed in $ac_dir" >&6; }
13998 elif test "x$target" = "x$host"; then
13999 # We can use an host tool
14000 READELF_FOR_TARGET='$(READELF)'
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14002$as_echo "host tool" >&6; }
14003 else
14004 # We need a cross tool
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006$as_echo "pre-installed" >&6; }
14007 fi
14008fi
14009
81ecdfbb
RW
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14011$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14012if test "x${build}" != "x${host}" ; then
2429c060
PB
14013 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14014 # We already found the complete path
b8025f34 14015 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14017$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14018 else
14019 # Canadian cross, just use what we found
81ecdfbb
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021$as_echo "pre-installed" >&6; }
2429c060 14022 fi
be01d343
PB
14023else
14024 ok=yes
14025 case " ${configdirs} " in
14026 *" binutils "*) ;;
14027 *) ok=no ;;
14028 esac
c6b750e1 14029
be01d343
PB
14030 if test $ok = yes; then
14031 # An in-tree tool is available and we can use it
9b980aa1 14032 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14034$as_echo "just compiled" >&6; }
2429c060
PB
14035 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14036 # We already found the complete path
b8025f34 14037 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14039$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14040 elif test "x$target" = "x$host"; then
14041 # We can use an host tool
14042 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14044$as_echo "host tool" >&6; }
be01d343
PB
14045 else
14046 # We need a cross tool
81ecdfbb
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048$as_echo "pre-installed" >&6; }
be01d343
PB
14049 fi
14050fi
4b900473 14051
81ecdfbb
RW
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14053$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14054if test "x${build}" != "x${host}" ; then
2429c060
PB
14055 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14056 # We already found the complete path
b8025f34 14057 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14059$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14060 else
14061 # Canadian cross, just use what we found
81ecdfbb
RW
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063$as_echo "pre-installed" >&6; }
2429c060 14064 fi
be01d343
PB
14065else
14066 ok=yes
14067 case " ${configdirs} " in
14068 *" binutils "*) ;;
14069 *) ok=no ;;
14070 esac
c6b750e1 14071
be01d343
PB
14072 if test $ok = yes; then
14073 # An in-tree tool is available and we can use it
14074 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14076$as_echo "just compiled" >&6; }
2429c060
PB
14077 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
b8025f34 14079 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14082 elif test "x$target" = "x$host"; then
14083 # We can use an host tool
14084 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14086$as_echo "host tool" >&6; }
be01d343
PB
14087 else
14088 # We need a cross tool
81ecdfbb
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090$as_echo "pre-installed" >&6; }
be01d343 14091 fi
a0da8069 14092fi
54752a6b 14093
81ecdfbb
RW
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14095$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14096if test "x${build}" != "x${host}" ; then
14097 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14098 # We already found the complete path
14099 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14102 else
14103 # Canadian cross, just use what we found
81ecdfbb
RW
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105$as_echo "pre-installed" >&6; }
0c24b341
NC
14106 fi
14107else
14108 ok=yes
14109 case " ${configdirs} " in
14110 *" binutils "*) ;;
14111 *) ok=no ;;
14112 esac
14113
14114 if test $ok = yes; then
14115 # An in-tree tool is available and we can use it
14116 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14118$as_echo "just compiled" >&6; }
0c24b341
NC
14119 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
14121 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14124 elif test "x$target" = "x$host"; then
14125 # We can use an host tool
14126 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128$as_echo "host tool" >&6; }
0c24b341
NC
14129 else
14130 # We need a cross tool
81ecdfbb
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132$as_echo "pre-installed" >&6; }
0c24b341
NC
14133 fi
14134fi
14135
54752a6b
NN
14136
14137
be01d343 14138
4b900473 14139
a0da8069
NN
14140# Certain tools may need extra flags.
14141AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14142RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14143NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14144
be01d343
PB
14145# When building target libraries, except in a Canadian cross, we use
14146# the same toolchain as the compiler we just built.
14147COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14148COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14149COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14150if test $host = $build; then
14151 case " $configdirs " in
14152 *" gcc "*)
14153 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14154 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14155 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14156 ;;
14157 esac
14158fi
14159
14160
14161
14162
14163
81ecdfbb
RW
14164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14165$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14166# Check whether --enable-maintainer-mode was given.
14167if test "${enable_maintainer_mode+set}" = set; then :
14168 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14169else
14170 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14171fi
14172
14173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14174$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14175
14176
14177if test "$USE_MAINTAINER_MODE" = yes; then
14178 MAINTAINER_MODE_TRUE=
14179 MAINTAINER_MODE_FALSE='#'
14180else
14181 MAINTAINER_MODE_TRUE='#'
14182 MAINTAINER_MODE_FALSE=
c6b750e1 14183fi
3d5e36ae
AO
14184MAINT=$MAINTAINER_MODE_TRUE
14185
1d39f329
NN
14186# ---------------------
14187# GCC bootstrap support
14188# ---------------------
14189
14190# Stage specific cflags for build.
14191stage1_cflags="-g"
14192case $build in
14193 vax-*-*)
14194 case ${GCC} in
14195 yes) stage1_cflags="-g -Wa,-J" ;;
14196 *) stage1_cflags="-g -J" ;;
14197 esac ;;
1d39f329
NN
14198esac
14199
1d89b610 14200
1d39f329 14201
8a0d8a5c 14202# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14203# Check whether --enable-stage1-checking was given.
14204if test "${enable_stage1_checking+set}" = set; then :
14205 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14206else
5566c1fa 14207 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14208 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14209else
5566c1fa 14210 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14211fi
81ecdfbb 14212fi
8a0d8a5c
PB
14213
14214
c6b750e1 14215
81ecdfbb
RW
14216# Enable -Werror in bootstrap stage2 and later.
14217# Check whether --enable-werror was given.
14218if test "${enable_werror+set}" = set; then :
14219 enableval=$enable_werror;
1d39f329 14220else
a0323144 14221 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14222 enable_werror=yes
79fcd0ec
PB
14223else
14224 enable_werror=no
14225fi
81ecdfbb
RW
14226fi
14227
1a6f2dc7
NN
14228case ${enable_werror} in
14229 yes) stage2_werror_flag="--enable-werror-always" ;;
14230 *) stage2_werror_flag="" ;;
1d39f329
NN
14231esac
14232
14233
e8a5fa9c
RW
14234# Specify what files to not compare during bootstrap.
14235
14236compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14237case "$target" in
14238 hppa*64*-*-hpux*) ;;
14239 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14240 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14241esac
14242
14243
81ecdfbb
RW
14244ac_config_files="$ac_config_files Makefile"
14245
c6b750e1 14246cat >confcache <<\_ACEOF
a0da8069
NN
14247# This file is a shell script that caches the results of configure
14248# tests run on this system so they can be shared between configure
c6b750e1
DJ
14249# scripts and configure runs, see configure's option --config-cache.
14250# It is not useful on other systems. If it contains results you don't
14251# want to keep, you may remove or edit it.
a0da8069 14252#
c6b750e1
DJ
14253# config.status only pays attention to the cache file if you give it
14254# the --recheck option to rerun configure.
a0da8069 14255#
c6b750e1
DJ
14256# `ac_cv_env_foo' variables (set or unset) will be overridden when
14257# loading this file, other *unset* `ac_cv_foo' will be assigned the
14258# following values.
14259
14260_ACEOF
14261
a0da8069
NN
14262# The following way of writing the cache mishandles newlines in values,
14263# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14264# So, we kill variables containing newlines.
a0da8069
NN
14265# Ultrix sh set writes to stderr and can't be redirected directly,
14266# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14267(
14268 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14269 eval ac_val=\$$ac_var
14270 case $ac_val in #(
14271 *${as_nl}*)
14272 case $ac_var in #(
14273 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14274$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14275 esac
14276 case $ac_var in #(
14277 _ | IFS | as_nl) ;; #(
14278 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14279 *) { eval $ac_var=; unset $ac_var;} ;;
14280 esac ;;
14281 esac
14282 done
14283
c6b750e1 14284 (set) 2>&1 |
81ecdfbb
RW
14285 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14286 *${as_nl}ac_space=\ *)
14287 # `set' does not quote correctly, so add quotes: double-quote
14288 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14289 sed -n \
14290 "s/'/'\\\\''/g;
14291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14292 ;; #(
c6b750e1
DJ
14293 *)
14294 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14295 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14296 ;;
81ecdfbb
RW
14297 esac |
14298 sort
14299) |
c6b750e1 14300 sed '
81ecdfbb 14301 /^ac_cv_env_/b end
c6b750e1 14302 t clear
81ecdfbb 14303 :clear
c6b750e1
DJ
14304 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14305 t end
81ecdfbb
RW
14306 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14307 :end' >>confcache
14308if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14309 if test -w "$cache_file"; then
14310 test "x$cache_file" != "x/dev/null" &&
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14312$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14313 cat confcache >$cache_file
a0da8069 14314 else
81ecdfbb
RW
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14316$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14317 fi
852e5f18 14318fi
a0da8069 14319rm -f confcache
852e5f18 14320
a0da8069
NN
14321test "x$prefix" = xNONE && prefix=$ac_default_prefix
14322# Let make expand exec_prefix.
14323test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14324
a0da8069
NN
14325# Transform confdefs.h into DEFS.
14326# Protect against shell expansion while executing Makefile rules.
14327# Protect against Makefile macro expansion.
c6b750e1
DJ
14328#
14329# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14330# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14331# look for a macro that doesn't take arguments.
81ecdfbb
RW
14332ac_script='
14333:mline
14334/\\$/{
14335 N
14336 s,\\\n,,
14337 b mline
14338}
c6b750e1 14339t clear
81ecdfbb
RW
14340:clear
14341s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14342t quote
81ecdfbb 14343s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14344t quote
81ecdfbb
RW
14345b any
14346:quote
14347s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14348s/\[/\\&/g
14349s/\]/\\&/g
14350s/\$/$$/g
14351H
14352:any
14353${
14354 g
14355 s/^\n//
14356 s/\n/ /g
14357 p
14358}
14359'
14360DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14361
14362
14363ac_libobjs=
14364ac_ltlibobjs=
14365for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14366 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14367 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14368 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14369 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14370 # will be set to the directory where LIBOBJS objects are built.
14371 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14372 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14373done
14374LIBOBJS=$ac_libobjs
852e5f18 14375
c6b750e1 14376LTLIBOBJS=$ac_ltlibobjs
376a0e54 14377
cac3d6c4 14378
c6b750e1
DJ
14379
14380: ${CONFIG_STATUS=./config.status}
81ecdfbb 14381ac_write_fail=0
c6b750e1
DJ
14382ac_clean_files_save=$ac_clean_files
14383ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14384{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14385$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14386as_write_fail=0
14387cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14388#! $SHELL
14389# Generated by $as_me.
a0da8069 14390# Run this file to recreate the current configuration.
a0da8069 14391# Compiler output produced by configure, useful for debugging
c6b750e1 14392# configure, is in config.log if it exists.
376a0e54 14393
c6b750e1
DJ
14394debug=false
14395ac_cs_recheck=false
14396ac_cs_silent=false
c6b750e1 14397
81ecdfbb
RW
14398SHELL=\${CONFIG_SHELL-$SHELL}
14399export SHELL
14400_ASEOF
14401cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14402## -------------------- ##
14403## M4sh Initialization. ##
14404## -------------------- ##
14405
14406# Be more Bourne compatible
14407DUALCASE=1; export DUALCASE # for MKS sh
14408if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14409 emulate sh
14410 NULLCMD=:
81ecdfbb 14411 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14412 # is contrary to our usage. Disable this feature.
14413 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14414 setopt NO_GLOB_SUBST
14415else
14416 case `(set -o) 2>/dev/null` in #(
14417 *posix*) :
14418 set -o posix ;; #(
14419 *) :
14420 ;;
14421esac
c6b750e1 14422fi
c6b750e1 14423
81ecdfbb
RW
14424
14425as_nl='
14426'
14427export as_nl
14428# Printing a long string crashes Solaris 7 /usr/bin/printf.
14429as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14430as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14431as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14432# Prefer a ksh shell builtin over an external printf program on Solaris,
14433# but without wasting forks for bash or zsh.
14434if test -z "$BASH_VERSION$ZSH_VERSION" \
14435 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14436 as_echo='print -r --'
14437 as_echo_n='print -rn --'
14438elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14439 as_echo='printf %s\n'
14440 as_echo_n='printf %s'
14441else
14442 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14443 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14444 as_echo_n='/usr/ucb/echo -n'
14445 else
14446 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14447 as_echo_n_body='eval
14448 arg=$1;
14449 case $arg in #(
14450 *"$as_nl"*)
14451 expr "X$arg" : "X\\(.*\\)$as_nl";
14452 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14453 esac;
14454 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14455 '
14456 export as_echo_n_body
14457 as_echo_n='sh -c $as_echo_n_body as_echo'
14458 fi
14459 export as_echo_body
14460 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14461fi
14462
81ecdfbb
RW
14463# The user is always right.
14464if test "${PATH_SEPARATOR+set}" != set; then
14465 PATH_SEPARATOR=:
14466 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14467 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14468 PATH_SEPARATOR=';'
14469 }
14470fi
14471
14472
14473# IFS
14474# We need space, tab and new line, in precisely that order. Quoting is
14475# there to prevent editors from complaining about space-tab.
14476# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14477# splitting by setting IFS to empty value.)
14478IFS=" "" $as_nl"
14479
14480# Find who we are. Look in the path if we contain no directory separator.
14481case $0 in #((
14482 *[\\/]* ) as_myself=$0 ;;
14483 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484for as_dir in $PATH
14485do
14486 IFS=$as_save_IFS
14487 test -z "$as_dir" && as_dir=.
14488 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14489 done
14490IFS=$as_save_IFS
14491
14492 ;;
14493esac
14494# We did not find ourselves, most probably we were run as `sh COMMAND'
14495# in which case we are not to be found in the path.
14496if test "x$as_myself" = x; then
14497 as_myself=$0
14498fi
14499if test ! -f "$as_myself"; then
14500 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14501 exit 1
14502fi
c6b750e1 14503
81ecdfbb
RW
14504# Unset variables that we do not need and which cause bugs (e.g. in
14505# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14506# suppresses any "Segmentation fault" message there. '((' could
14507# trigger a bug in pdksh 5.2.14.
14508for as_var in BASH_ENV ENV MAIL MAILPATH
14509do eval test x\${$as_var+set} = xset \
14510 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14511done
c6b750e1
DJ
14512PS1='$ '
14513PS2='> '
14514PS4='+ '
14515
14516# NLS nuisances.
81ecdfbb
RW
14517LC_ALL=C
14518export LC_ALL
14519LANGUAGE=C
14520export LANGUAGE
14521
14522# CDPATH.
14523(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14524
14525
14526# as_fn_error ERROR [LINENO LOG_FD]
14527# ---------------------------------
14528# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14529# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14530# script with status $?, using 1 if that was 0.
14531as_fn_error ()
14532{
14533 as_status=$?; test $as_status -eq 0 && as_status=1
14534 if test "$3"; then
14535 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14536 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14537 fi
81ecdfbb
RW
14538 $as_echo "$as_me: error: $1" >&2
14539 as_fn_exit $as_status
14540} # as_fn_error
14541
14542
14543# as_fn_set_status STATUS
14544# -----------------------
14545# Set $? to STATUS, without forking.
14546as_fn_set_status ()
14547{
14548 return $1
14549} # as_fn_set_status
14550
14551# as_fn_exit STATUS
14552# -----------------
14553# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14554as_fn_exit ()
14555{
14556 set +e
14557 as_fn_set_status $1
14558 exit $1
14559} # as_fn_exit
14560
14561# as_fn_unset VAR
14562# ---------------
14563# Portably unset VAR.
14564as_fn_unset ()
14565{
14566 { eval $1=; unset $1;}
14567}
14568as_unset=as_fn_unset
14569# as_fn_append VAR VALUE
14570# ----------------------
14571# Append the text in VALUE to the end of the definition contained in VAR. Take
14572# advantage of any shell optimizations that allow amortized linear growth over
14573# repeated appends, instead of the typical quadratic growth present in naive
14574# implementations.
14575if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14576 eval 'as_fn_append ()
14577 {
14578 eval $1+=\$2
14579 }'
14580else
14581 as_fn_append ()
14582 {
14583 eval $1=\$$1\$2
14584 }
14585fi # as_fn_append
14586
14587# as_fn_arith ARG...
14588# ------------------
14589# Perform arithmetic evaluation on the ARGs, and store the result in the
14590# global $as_val. Take advantage of shells that can avoid forks. The arguments
14591# must be portable across $(()) and expr.
14592if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14593 eval 'as_fn_arith ()
14594 {
14595 as_val=$(( $* ))
14596 }'
14597else
14598 as_fn_arith ()
14599 {
14600 as_val=`expr "$@" || test $? -eq 1`
14601 }
14602fi # as_fn_arith
14603
c6b750e1 14604
81ecdfbb
RW
14605if expr a : '\(a\)' >/dev/null 2>&1 &&
14606 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14607 as_expr=expr
14608else
14609 as_expr=false
14610fi
14611
81ecdfbb 14612if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14613 as_basename=basename
14614else
14615 as_basename=false
14616fi
14617
81ecdfbb
RW
14618if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14619 as_dirname=dirname
14620else
14621 as_dirname=false
14622fi
c6b750e1 14623
81ecdfbb 14624as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14625$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14626 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14628$as_echo X/"$0" |
14629 sed '/^.*\/\([^/][^/]*\)\/*$/{
14630 s//\1/
14631 q
14632 }
14633 /^X\/\(\/\/\)$/{
14634 s//\1/
14635 q
14636 }
14637 /^X\/\(\/\).*/{
14638 s//\1/
14639 q
14640 }
14641 s/.*/./; q'`
c6b750e1 14642
c6b750e1
DJ
14643# Avoid depending upon Character Ranges.
14644as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14645as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14646as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14647as_cr_digits='0123456789'
14648as_cr_alnum=$as_cr_Letters$as_cr_digits
14649
81ecdfbb
RW
14650ECHO_C= ECHO_N= ECHO_T=
14651case `echo -n x` in #(((((
14652-n*)
14653 case `echo 'xy\c'` in
14654 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14655 xy) ECHO_C='\c';;
14656 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14657 ECHO_T=' ';;
14658 esac;;
14659*)
14660 ECHO_N='-n';;
c6b750e1
DJ
14661esac
14662
81ecdfbb
RW
14663rm -f conf$$ conf$$.exe conf$$.file
14664if test -d conf$$.dir; then
14665 rm -f conf$$.dir/conf$$.file
c6b750e1 14666else
81ecdfbb
RW
14667 rm -f conf$$.dir
14668 mkdir conf$$.dir 2>/dev/null
c6b750e1 14669fi
81ecdfbb
RW
14670if (echo >conf$$.file) 2>/dev/null; then
14671 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14672 as_ln_s='ln -s'
81ecdfbb
RW
14673 # ... but there are two gotchas:
14674 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14675 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14676 # In both cases, we have to default to `cp -p'.
14677 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14678 as_ln_s='cp -p'
14679 elif ln conf$$.file conf$$ 2>/dev/null; then
14680 as_ln_s=ln
14681 else
14682 as_ln_s='cp -p'
c6b750e1 14683 fi
c6b750e1
DJ
14684else
14685 as_ln_s='cp -p'
14686fi
81ecdfbb
RW
14687rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14688rmdir conf$$.dir 2>/dev/null
14689
14690
14691# as_fn_mkdir_p
14692# -------------
14693# Create "$as_dir" as a directory, including parents if necessary.
14694as_fn_mkdir_p ()
14695{
14696
14697 case $as_dir in #(
14698 -*) as_dir=./$as_dir;;
14699 esac
14700 test -d "$as_dir" || eval $as_mkdir_p || {
14701 as_dirs=
14702 while :; do
14703 case $as_dir in #(
14704 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14705 *) as_qdir=$as_dir;;
14706 esac
14707 as_dirs="'$as_qdir' $as_dirs"
14708 as_dir=`$as_dirname -- "$as_dir" ||
14709$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14710 X"$as_dir" : 'X\(//\)[^/]' \| \
14711 X"$as_dir" : 'X\(//\)$' \| \
14712 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14713$as_echo X"$as_dir" |
14714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14715 s//\1/
14716 q
14717 }
14718 /^X\(\/\/\)[^/].*/{
14719 s//\1/
14720 q
14721 }
14722 /^X\(\/\/\)$/{
14723 s//\1/
14724 q
14725 }
14726 /^X\(\/\).*/{
14727 s//\1/
14728 q
14729 }
14730 s/.*/./; q'`
14731 test -d "$as_dir" && break
14732 done
14733 test -z "$as_dirs" || eval "mkdir $as_dirs"
14734 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14735
c6b750e1 14736
81ecdfbb 14737} # as_fn_mkdir_p
c6b750e1 14738if mkdir -p . 2>/dev/null; then
81ecdfbb 14739 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14740else
14741 test -d ./-p && rmdir ./-p
14742 as_mkdir_p=false
14743fi
14744
81ecdfbb
RW
14745if test -x / >/dev/null 2>&1; then
14746 as_test_x='test -x'
14747else
14748 if ls -dL / >/dev/null 2>&1; then
14749 as_ls_L_option=L
14750 else
14751 as_ls_L_option=
14752 fi
14753 as_test_x='
14754 eval sh -c '\''
14755 if test -d "$1"; then
14756 test -d "$1/.";
14757 else
14758 case $1 in #(
14759 -*)set "./$1";;
14760 esac;
14761 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14762 ???[sx]*):;;*)false;;esac;fi
14763 '\'' sh
14764 '
14765fi
14766as_executable_p=$as_test_x
c6b750e1
DJ
14767
14768# Sed expression to map a string onto a valid CPP name.
14769as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14770
14771# Sed expression to map a string onto a valid variable name.
14772as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14773
14774
c6b750e1 14775exec 6>&1
81ecdfbb
RW
14776## ----------------------------------- ##
14777## Main body of $CONFIG_STATUS script. ##
14778## ----------------------------------- ##
14779_ASEOF
14780test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14781
14782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14783# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14784# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14785# values after options handling.
14786ac_log="
c6b750e1 14787This file was extended by $as_me, which was
81ecdfbb 14788generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14789
14790 CONFIG_FILES = $CONFIG_FILES
14791 CONFIG_HEADERS = $CONFIG_HEADERS
14792 CONFIG_LINKS = $CONFIG_LINKS
14793 CONFIG_COMMANDS = $CONFIG_COMMANDS
14794 $ $0 $@
14795
81ecdfbb
RW
14796on `(hostname || uname -n) 2>/dev/null | sed 1q`
14797"
14798
c6b750e1
DJ
14799_ACEOF
14800
81ecdfbb
RW
14801case $ac_config_files in *"
14802"*) set x $ac_config_files; shift; ac_config_files=$*;;
14803esac
c6b750e1 14804
c6b750e1 14805
c6b750e1 14806
81ecdfbb
RW
14807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14808# Files that config.status was made for.
14809config_files="$ac_config_files"
c6b750e1 14810
81ecdfbb 14811_ACEOF
c6b750e1 14812
81ecdfbb 14813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14814ac_cs_usage="\
81ecdfbb
RW
14815\`$as_me' instantiates files and other configuration actions
14816from templates according to the current configuration. Unless the files
14817and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14818
81ecdfbb 14819Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14820
14821 -h, --help print this help, then exit
81ecdfbb
RW
14822 -V, --version print version number and configuration settings, then exit
14823 -q, --quiet, --silent
14824 do not print progress messages
c6b750e1
DJ
14825 -d, --debug don't remove temporary files
14826 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14827 --file=FILE[:TEMPLATE]
14828 instantiate the configuration file FILE
c6b750e1
DJ
14829
14830Configuration files:
14831$config_files
14832
81ecdfbb 14833Report bugs to the package provider."
c6b750e1 14834
81ecdfbb
RW
14835_ACEOF
14836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14837ac_cs_version="\\
14838config.status
81ecdfbb
RW
14839configured by $0, generated by GNU Autoconf 2.64,
14840 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14841
81ecdfbb 14842Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14843This config.status script is free software; the Free Software Foundation
14844gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14845
14846ac_pwd='$ac_pwd'
14847srcdir='$srcdir'
14848INSTALL='$INSTALL'
8e957354 14849AWK='$AWK'
81ecdfbb 14850test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14851_ACEOF
14852
81ecdfbb
RW
14853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14854# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14855ac_need_defaults=:
14856while test $# != 0
a0da8069 14857do
c6b750e1
DJ
14858 case $1 in
14859 --*=*)
81ecdfbb
RW
14860 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14861 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14862 ac_shift=:
14863 ;;
81ecdfbb 14864 *)
c6b750e1
DJ
14865 ac_option=$1
14866 ac_optarg=$2
14867 ac_shift=shift
14868 ;;
c6b750e1
DJ
14869 esac
14870
14871 case $ac_option in
14872 # Handling of the options.
a0da8069 14873 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14874 ac_cs_recheck=: ;;
81ecdfbb
RW
14875 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14876 $as_echo "$ac_cs_version"; exit ;;
14877 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14878 debug=: ;;
14879 --file | --fil | --fi | --f )
14880 $ac_shift
81ecdfbb
RW
14881 case $ac_optarg in
14882 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14883 esac
14884 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14885 ac_need_defaults=false;;
81ecdfbb
RW
14886 --he | --h | --help | --hel | -h )
14887 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14889 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14890 ac_cs_silent=: ;;
14891
14892 # This is an error.
81ecdfbb
RW
14893 -*) as_fn_error "unrecognized option: \`$1'
14894Try \`$0 --help' for more information." ;;
c6b750e1 14895
81ecdfbb
RW
14896 *) as_fn_append ac_config_targets " $1"
14897 ac_need_defaults=false ;;
c6b750e1 14898
376a0e54 14899 esac
c6b750e1 14900 shift
376a0e54
CM
14901done
14902
c6b750e1 14903ac_configure_extra_args=
376a0e54 14904
c6b750e1
DJ
14905if $ac_cs_silent; then
14906 exec 6>/dev/null
14907 ac_configure_extra_args="$ac_configure_extra_args --silent"
14908fi
376a0e54 14909
c6b750e1 14910_ACEOF
81ecdfbb 14911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14912if \$ac_cs_recheck; then
81ecdfbb
RW
14913 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14914 shift
14915 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14916 CONFIG_SHELL='$SHELL'
14917 export CONFIG_SHELL
14918 exec "\$@"
c6b750e1
DJ
14919fi
14920
14921_ACEOF
81ecdfbb
RW
14922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14923exec 5>>config.log
14924{
14925 echo
14926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14927## Running $as_me. ##
14928_ASBOX
14929 $as_echo "$ac_log"
14930} >&5
c6b750e1 14931
81ecdfbb
RW
14932_ACEOF
14933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14934#
14935# INIT-COMMANDS
14936#
14937extrasub_build="$extrasub_build"
14938 extrasub_host="$extrasub_host"
14939 extrasub_target="$extrasub_target"
14940
81ecdfbb 14941_ACEOF
c6b750e1 14942
81ecdfbb 14943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14944
81ecdfbb 14945# Handling of arguments.
c6b750e1
DJ
14946for ac_config_target in $ac_config_targets
14947do
81ecdfbb
RW
14948 case $ac_config_target in
14949 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14950
14951 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14952 esac
14953done
14954
81ecdfbb 14955
c6b750e1
DJ
14956# If the user did not use the arguments to specify the items to instantiate,
14957# then the envvar interface is used. Set only those that are not.
14958# We use the long form for the default assignment because of an extremely
14959# bizarre bug on SunOS 4.1.3.
14960if $ac_need_defaults; then
14961 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14962fi
14963
14964# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14965# simply because there is no reason against having it here, and in addition,
c6b750e1 14966# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14967# Hook for its removal unless debugging.
14968# Note that there is a small window in which the directory will not be cleaned:
14969# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14970$debug ||
14971{
81ecdfbb
RW
14972 tmp=
14973 trap 'exit_status=$?
14974 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14975' 0
14976 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14977}
c6b750e1
DJ
14978# Create a (secure) tmp directory for tmp files.
14979
14980{
81ecdfbb 14981 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14982 test -n "$tmp" && test -d "$tmp"
14983} ||
14984{
81ecdfbb
RW
14985 tmp=./conf$$-$RANDOM
14986 (umask 077 && mkdir "$tmp")
14987} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14988
14989# Set up the scripts for CONFIG_FILES section.
14990# No need to generate them if there are no CONFIG_FILES.
14991# This happens for instance with `./config.status config.h'.
14992if test -n "$CONFIG_FILES"; then
14993
14994if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14995 ac_cs_awk_getline=:
14996 ac_cs_awk_pipe_init=
14997 ac_cs_awk_read_file='
14998 while ((getline aline < (F[key])) > 0)
14999 print(aline)
15000 close(F[key])'
15001 ac_cs_awk_pipe_fini=
15002else
15003 ac_cs_awk_getline=false
15004 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15005 ac_cs_awk_read_file='
15006 print "|#_!!_#|"
15007 print "cat " F[key] " &&"
15008 '$ac_cs_awk_pipe_init
15009 # The final `:' finishes the AND list.
15010 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15011fi
15012ac_cr=`echo X | tr X '\015'`
15013# On cygwin, bash can eat \r inside `` if the user requested igncr.
15014# But we know of no other shell where ac_cr would be empty at this
15015# point, so we can use a bashism as a fallback.
15016if test "x$ac_cr" = x; then
15017 eval ac_cr=\$\'\\r\'
15018fi
15019ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15020if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15021 ac_cs_awk_cr='\r'
15022else
15023 ac_cs_awk_cr=$ac_cr
15024fi
15025
15026echo 'BEGIN {' >"$tmp/subs1.awk" &&
15027_ACEOF
15028
15029# Create commands to substitute file output variables.
c6b750e1 15030{
81ecdfbb
RW
15031 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15032 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15033 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15034 echo "_ACAWK" &&
15035 echo "_ACEOF"
15036} >conf$$files.sh &&
15037. ./conf$$files.sh ||
15038 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15039rm -f conf$$files.sh
c6b750e1 15040
81ecdfbb
RW
15041{
15042 echo "cat >conf$$subs.awk <<_ACEOF" &&
15043 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15044 echo "_ACEOF"
15045} >conf$$subs.sh ||
15046 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15047ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15048ac_delim='%!_!# '
15049for ac_last_try in false false false false false :; do
15050 . ./conf$$subs.sh ||
15051 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15052
15053 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15054 if test $ac_delim_n = $ac_delim_num; then
15055 break
15056 elif $ac_last_try; then
15057 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15058 else
15059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15060 fi
15061done
15062rm -f conf$$subs.sh
15063
15064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15065cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15066_ACEOF
81ecdfbb
RW
15067sed -n '
15068h
15069s/^/S["/; s/!.*/"]=/
15070p
15071g
15072s/^[^!]*!//
15073:repl
15074t repl
15075s/'"$ac_delim"'$//
15076t delim
15077:nl
15078h
15079s/\(.\{148\}\).*/\1/
15080t more1
15081s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15082p
15083n
15084b repl
15085:more1
15086s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15087p
15088g
15089s/.\{148\}//
15090t nl
15091:delim
15092h
15093s/\(.\{148\}\).*/\1/
15094t more2
15095s/["\\]/\\&/g; s/^/"/; s/$/"/
15096p
15097b
15098:more2
15099s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15100p
15101g
15102s/.\{148\}//
15103t delim
15104' <conf$$subs.awk | sed '
15105/^[^""]/{
15106 N
15107 s/\n//
15108}
15109' >>$CONFIG_STATUS || ac_write_fail=1
15110rm -f conf$$subs.awk
15111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15112_ACAWK
15113cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15114 for (key in S) S_is_set[key] = 1
15115 FS = "\a"
15116 \$ac_cs_awk_pipe_init
15117}
15118{
15119 line = $ 0
15120 nfields = split(line, field, "@")
15121 substed = 0
15122 len = length(field[1])
15123 for (i = 2; i < nfields; i++) {
15124 key = field[i]
15125 keylen = length(key)
15126 if (S_is_set[key]) {
15127 value = S[key]
15128 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15129 len += length(value) + length(field[++i])
15130 substed = 1
15131 } else
15132 len += 1 + keylen
15133 }
15134 if (nfields == 3 && !substed) {
15135 key = field[2]
15136 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15137 \$ac_cs_awk_read_file
15138 next
15139 }
15140 }
15141 print line
15142}
15143\$ac_cs_awk_pipe_fini
15144_ACAWK
15145_ACEOF
15146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15147if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15148 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15149else
15150 cat
15151fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15152 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15153_ACEOF
15154
15155# VPATH may cause trouble with some makes, so we remove $(srcdir),
15156# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15157# trailing colons and then remove the whole line if VPATH becomes empty
15158# (actually we leave an empty line to preserve line numbers).
15159if test "x$srcdir" = x.; then
15160 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15161s/:*\$(srcdir):*/:/
15162s/:*\${srcdir}:*/:/
15163s/:*@srcdir@:*/:/
15164s/^\([^=]*=[ ]*\):*/\1/
15165s/:*$//
15166s/^[^=]*=[ ]*$//
15167}'
15168fi
c6b750e1 15169
81ecdfbb
RW
15170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15171fi # test -n "$CONFIG_FILES"
c6b750e1 15172
c6b750e1 15173
81ecdfbb
RW
15174eval set X " :F $CONFIG_FILES "
15175shift
15176for ac_tag
15177do
15178 case $ac_tag in
15179 :[FHLC]) ac_mode=$ac_tag; continue;;
15180 esac
15181 case $ac_mode$ac_tag in
15182 :[FHL]*:*);;
15183 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15184 :[FH]-) ac_tag=-:-;;
15185 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15186 esac
15187 ac_save_IFS=$IFS
15188 IFS=:
15189 set x $ac_tag
15190 IFS=$ac_save_IFS
15191 shift
15192 ac_file=$1
15193 shift
252b5132 15194
81ecdfbb
RW
15195 case $ac_mode in
15196 :L) ac_source=$1;;
15197 :[FH])
15198 ac_file_inputs=
15199 for ac_f
15200 do
15201 case $ac_f in
15202 -) ac_f="$tmp/stdin";;
15203 *) # Look for the file first in the build tree, then in the source tree
15204 # (if the path is not absolute). The absolute path cannot be DOS-style,
15205 # because $ac_f cannot contain `:'.
15206 test -f "$ac_f" ||
15207 case $ac_f in
15208 [\\/$]*) false;;
15209 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15210 esac ||
15211 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15212 esac
15213 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15214 as_fn_append ac_file_inputs " '$ac_f'"
15215 done
c6b750e1 15216
81ecdfbb
RW
15217 # Let's still pretend it is `configure' which instantiates (i.e., don't
15218 # use $as_me), people would be surprised to read:
15219 # /* config.h. Generated by config.status. */
15220 configure_input='Generated from '`
15221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15222 `' by configure.'
15223 if test x"$ac_file" != x-; then
15224 configure_input="$ac_file. $configure_input"
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15226$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15227 fi
81ecdfbb
RW
15228 # Neutralize special characters interpreted by sed in replacement strings.
15229 case $configure_input in #(
15230 *\&* | *\|* | *\\* )
15231 ac_sed_conf_input=`$as_echo "$configure_input" |
15232 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15233 *) ac_sed_conf_input=$configure_input;;
15234 esac
cac3d6c4 15235
81ecdfbb
RW
15236 case $ac_tag in
15237 *:-:* | *:-) cat >"$tmp/stdin" \
15238 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15239 esac
15240 ;;
a0da8069 15241 esac
252b5132 15242
81ecdfbb 15243 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15244$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15245 X"$ac_file" : 'X\(//\)[^/]' \| \
15246 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15248$as_echo X"$ac_file" |
15249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15250 s//\1/
15251 q
15252 }
15253 /^X\(\/\/\)[^/].*/{
15254 s//\1/
15255 q
15256 }
15257 /^X\(\/\/\)$/{
15258 s//\1/
15259 q
15260 }
15261 /^X\(\/\).*/{
15262 s//\1/
15263 q
15264 }
15265 s/.*/./; q'`
15266 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15267 ac_builddir=.
252b5132 15268
81ecdfbb
RW
15269case "$ac_dir" in
15270.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15271*)
15272 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15273 # A ".." for each directory in $ac_dir_suffix.
15274 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15275 case $ac_top_builddir_sub in
15276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15278 esac ;;
15279esac
15280ac_abs_top_builddir=$ac_pwd
15281ac_abs_builddir=$ac_pwd$ac_dir_suffix
15282# for backward compatibility:
15283ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15284
15285case $srcdir in
81ecdfbb 15286 .) # We are building in place.
c6b750e1 15287 ac_srcdir=.
81ecdfbb
RW
15288 ac_top_srcdir=$ac_top_builddir_sub
15289 ac_abs_top_srcdir=$ac_pwd ;;
15290 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15291 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15292 ac_top_srcdir=$srcdir
15293 ac_abs_top_srcdir=$srcdir ;;
15294 *) # Relative name.
15295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15296 ac_top_srcdir=$ac_top_build_prefix$srcdir
15297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15298esac
81ecdfbb 15299ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15300
252b5132 15301
81ecdfbb
RW
15302 case $ac_mode in
15303 :F)
15304 #
15305 # CONFIG_FILE
15306 #
c6b750e1
DJ
15307
15308 case $INSTALL in
15309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15310 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15311 esac
81ecdfbb 15312_ACEOF
252b5132 15313
81ecdfbb
RW
15314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15315# If the template does not know about datarootdir, expand it.
15316# FIXME: This hack should be removed a few years after 2.60.
15317ac_datarootdir_hack=; ac_datarootdir_seen=
15318ac_sed_dataroot='
15319/datarootdir/ {
15320 p
15321 q
15322}
15323/@datadir@/p
15324/@docdir@/p
15325/@infodir@/p
15326/@localedir@/p
15327/@mandir@/p'
15328case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15329*datarootdir*) ac_datarootdir_seen=yes;;
15330*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15332$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15333_ACEOF
81ecdfbb
RW
15334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15335 ac_datarootdir_hack='
15336 s&@datadir@&$datadir&g
15337 s&@docdir@&$docdir&g
15338 s&@infodir@&$infodir&g
15339 s&@localedir@&$localedir&g
15340 s&@mandir@&$mandir&g
15341 s&\\\${datarootdir}&$datarootdir&g' ;;
15342esac
15343_ACEOF
15344
15345# Neutralize VPATH when `$srcdir' = `.'.
15346# Shell code in configure.ac might set extrasub.
15347# FIXME: do we really want to maintain this feature?
15348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15349ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15350$extrasub
15351_ACEOF
81ecdfbb 15352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15353:t
15354/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15355s|@configure_input@|$ac_sed_conf_input|;t t
15356s&@top_builddir@&$ac_top_builddir_sub&;t t
15357s&@top_build_prefix@&$ac_top_build_prefix&;t t
15358s&@srcdir@&$ac_srcdir&;t t
15359s&@abs_srcdir@&$ac_abs_srcdir&;t t
15360s&@top_srcdir@&$ac_top_srcdir&;t t
15361s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15362s&@builddir@&$ac_builddir&;t t
15363s&@abs_builddir@&$ac_abs_builddir&;t t
15364s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15365s&@INSTALL@&$ac_INSTALL&;t t
15366$ac_datarootdir_hack
15367"
15368eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15369if $ac_cs_awk_getline; then
15370 $AWK -f "$tmp/subs.awk"
15371else
15372 $AWK -f "$tmp/subs.awk" | $SHELL
15373fi >$tmp/out \
15374 || as_fn_error "could not create $ac_file" "$LINENO" 5
15375
15376test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15377 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15380which seems to be undefined. Please make sure it is defined." >&5
15381$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15382which seems to be undefined. Please make sure it is defined." >&2;}
15383
15384 rm -f "$tmp/stdin"
15385 case $ac_file in
15386 -) cat "$tmp/out" && rm -f "$tmp/out";;
15387 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15388 esac \
15389 || as_fn_error "could not create $ac_file" "$LINENO" 5
15390 ;;
c148b4cb 15391
c148b4cb 15392
c148b4cb 15393
81ecdfbb
RW
15394 esac
15395
06a51eac
RW
15396
15397 case $ac_file$ac_mode in
15398 "Makefile":F) sed "$extrasub_build" Makefile |
15399 sed "$extrasub_host" |
15400 sed "$extrasub_target" > mf$$
15401 mv -f mf$$ Makefile ;;
15402
15403 esac
81ecdfbb
RW
15404done # for ac_tag
15405
15406
15407as_fn_exit 0
c6b750e1 15408_ACEOF
c6b750e1
DJ
15409ac_clean_files=$ac_clean_files_save
15410
81ecdfbb
RW
15411test $ac_write_fail = 0 ||
15412 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15413
c6b750e1
DJ
15414
15415# configure is writing to config.log, and then calls config.status.
15416# config.status does its own redirection, appending to config.log.
15417# Unfortunately, on DOS this fails, as config.log is still kept open
15418# by configure, so config.status won't be able to write to it; its
15419# output is simply discarded. So we exec the FD to /dev/null,
15420# effectively closing config.log, so it can be properly (re)opened and
15421# appended to by config.status. When coming back to configure, we
15422# need to make the FD available again.
15423if test "$no_create" != yes; then
15424 ac_cs_success=:
15425 ac_config_status_args=
15426 test "$silent" = yes &&
15427 ac_config_status_args="$ac_config_status_args --quiet"
15428 exec 5>/dev/null
15429 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15430 exec 5>>config.log
15431 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15432 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15433 $ac_cs_success || as_fn_exit $?
15434fi
15435if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15437$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15438fi
c148b4cb 15439
This page took 1.558656 seconds and 4 git commands to generate.