]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
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.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
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 :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
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 }
1c710c3c
DJ
79fi
80
81
5213506e
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
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
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'\" &&
87264276
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"
5213506e
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
1c710c3c 184do
5213506e
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."
1c710c3c 228 else
5213506e
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."
1c710c3c 233 fi
5213506e
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
1c710c3c 263
5213506e
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
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
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
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
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'`
1c710c3c 410
2aeb72e9
DD
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
11a67599 417
1c710c3c 418
5213506e
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 |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
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; }
1c710c3c
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
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
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';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
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'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
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
0b0dc272 519
1c710c3c
DJ
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
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
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
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
459260ec 559host_shared
5213506e
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
e7a82751 574READELF_FOR_TARGET
5213506e
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
577NM_FOR_TARGET
578LIPO_FOR_TARGET
579LD_FOR_TARGET
580DLLTOOL_FOR_TARGET
581AS_FOR_TARGET
582AR_FOR_TARGET
632e2a07 583GOC_FOR_TARGET
5213506e
RW
584GFORTRAN_FOR_TARGET
585GCJ_FOR_TARGET
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
e7a82751 589READELF
5213506e
RW
590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
5213506e
RW
610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
632e2a07 616GOC_FOR_BUILD
5213506e
RW
617GFORTRAN_FOR_BUILD
618GCJ_FOR_BUILD
619DLLTOOL_FOR_BUILD
620CXX_FOR_BUILD
621CXXFLAGS_FOR_BUILD
622CFLAGS_FOR_BUILD
623CC_FOR_BUILD
624AS_FOR_BUILD
625AR_FOR_BUILD
aae29963 626target_configdirs
5213506e 627configdirs
5213506e 628build_configdirs
5213506e
RW
629INSTALL_GDB_TK
630GDB_TK
631CONFIGURE_GDB_TK
632build_tooldir
633tooldir
634GCC_SHLIB_SUBDIR
635RPATH_ENVVAR
ffedf511
RW
636target_configargs
637host_configargs
638build_configargs
e12c4094 639BUILD_CONFIG
6f57bdf6 640LDFLAGS_FOR_TARGET
5213506e
RW
641CXXFLAGS_FOR_TARGET
642CFLAGS_FOR_TARGET
643DEBUG_PREFIX_CFLAGS_FOR_TARGET
644SYSROOT_CFLAGS_FOR_TARGET
d7f09764 645extra_host_libiberty_configure_flags
fca38047 646stage1_languages
45b3824d
TS
647extra_linker_plugin_flags
648extra_linker_plugin_configure_flags
33ad93b9 649islinc
eae1a5d4 650isllibs
5213506e 651poststage1_ldflags
ed2eaa9f 652poststage1_libs
5213506e 653stage1_ldflags
0b21f5d3 654stage1_libs
0ff2d841 655extra_isl_gmp_configure_flags
5213506e
RW
656extra_mpc_mpfr_configure_flags
657extra_mpc_gmp_configure_flags
658extra_mpfr_configure_flags
659gmpinc
660gmplibs
661do_compare
662GNATMAKE
663GNATBIND
664ac_ct_CXX
665CXXFLAGS
666CXX
667OBJEXT
668EXEEXT
669ac_ct_CC
670CPPFLAGS
671LDFLAGS
672CFLAGS
673CC
a4a2c37d 674EXTRA_CONFIGARGS_LIBJAVA
5f520819 675extra_liboffloadmic_configure_flags
5213506e
RW
676target_subdir
677host_subdir
678build_subdir
679build_libsubdir
87264276
PB
680AWK
681SED
5213506e
RW
682LN_S
683LN
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
687target_os
688target_vendor
689target_cpu
690target
691host_os
692host_vendor
693host_cpu
694host
695target_noncanonical
696host_noncanonical
697build_noncanonical
698build_os
699build_vendor
700build_cpu
701build
702TOPLEVEL_CONFIGURE_ARGUMENTS
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722localstatedir
723sharedstatedir
724sysconfdir
725datadir
726datarootdir
727libexecdir
728sbindir
729bindir
730program_transform_name
731prefix
732exec_prefix
733PACKAGE_URL
734PACKAGE_BUGREPORT
735PACKAGE_STRING
736PACKAGE_VERSION
737PACKAGE_TARNAME
738PACKAGE_NAME
739PATH_SEPARATOR
740SHELL'
741ac_subst_files='serialization_dependencies
742host_makefile_frag
743target_makefile_frag
744alphaieee_frag
745ospace_frag'
746ac_user_opts='
747enable_option_checking
748with_build_libsubdir
85c64bbe
BS
749enable_as_accelerator_for
750enable_offload_targets
5213506e 751enable_gold
21539e2e 752enable_ld
87e6d9dc
TB
753enable_libquadmath
754enable_libquadmath_support
5213506e
RW
755enable_libada
756enable_libssp
1873ec0c 757enable_libstdcxx
5f520819 758enable_liboffloadmic
a4a2c37d 759enable_static_libjava
ff3ac0f4 760enable_bootstrap
5213506e
RW
761with_mpc
762with_mpc_include
763with_mpc_lib
764with_mpfr_dir
765with_mpfr
766with_mpfr_include
767with_mpfr_lib
768with_gmp_dir
769with_gmp
770with_gmp_include
771with_gmp_lib
772with_host_libstdcxx
5213506e 773with_stage1_libs
0b21f5d3 774with_stage1_ldflags
5213506e 775with_boot_libs
ed2eaa9f 776with_boot_ldflags
33ad93b9
RG
777with_isl
778with_isl_include
779with_isl_lib
780enable_isl_version_check
d7f09764 781enable_lto
45b3824d
TS
782enable_linker_plugin_configure_flags
783enable_linker_plugin_flags
5213506e
RW
784enable_stage1_languages
785enable_objc_gc
786with_build_sysroot
787with_debug_prefix_map
5646b7b9 788with_build_config
beeda1d9 789enable_vtable_verify
5213506e
RW
790enable_serial_configure
791with_build_time_tools
792enable_maintainer_mode
793enable_stage1_checking
794enable_werror
459260ec 795enable_host_shared
5213506e
RW
796'
797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803LIBS
804CPPFLAGS
805CXX
806CXXFLAGS
807CCC
ffedf511
RW
808build_configargs
809host_configargs
810target_configargs
5213506e
RW
811AR
812AS
813DLLTOOL
814LD
815LIPO
816NM
817RANLIB
818STRIP
819WINDRES
820WINDMC
821OBJCOPY
822OBJDUMP
e7a82751 823READELF
5213506e
RW
824CC_FOR_TARGET
825CXX_FOR_TARGET
826GCC_FOR_TARGET
827GCJ_FOR_TARGET
828GFORTRAN_FOR_TARGET
632e2a07 829GOC_FOR_TARGET
5213506e
RW
830AR_FOR_TARGET
831AS_FOR_TARGET
832DLLTOOL_FOR_TARGET
833LD_FOR_TARGET
834LIPO_FOR_TARGET
835NM_FOR_TARGET
836OBJDUMP_FOR_TARGET
837RANLIB_FOR_TARGET
e7a82751 838READELF_FOR_TARGET
5213506e
RW
839STRIP_FOR_TARGET
840WINDRES_FOR_TARGET
841WINDMC_FOR_TARGET'
842
671aa708
NN
843
844# Initialize some variables set by options.
1c710c3c
DJ
845ac_init_help=
846ac_init_version=false
5213506e
RW
847ac_unrecognized_opts=
848ac_unrecognized_sep=
671aa708
NN
849# The variables have the same names as the options, with
850# dashes changed to underlines.
1c710c3c 851cache_file=/dev/null
671aa708 852exec_prefix=NONE
671aa708 853no_create=
671aa708
NN
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
671aa708
NN
862verbose=
863x_includes=NONE
864x_libraries=NONE
1c710c3c
DJ
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 871# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
5213506e
RW
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
671aa708
NN
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
671aa708
NN
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
5213506e
RW
882docdir='${datarootdir}/doc/${PACKAGE}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
79c06341 891
671aa708 892ac_prev=
5213506e 893ac_dashdash=
671aa708
NN
894for ac_option
895do
671aa708
NN
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
5213506e 898 eval $ac_prev=\$ac_option
671aa708
NN
899 ac_prev=
900 continue
901 fi
79c06341 902
5213506e
RW
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
671aa708
NN
907
908 # Accept the important Cygnus configure options, so we can diagnose typos.
909
5213506e
RW
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
671aa708
NN
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 917 bindir=$ac_optarg ;;
671aa708
NN
918
919 -build | --build | --buil | --bui | --bu)
1c710c3c 920 ac_prev=build_alias ;;
671aa708 921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 922 build_alias=$ac_optarg ;;
671aa708
NN
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
671aa708 933
5213506e 934 -datadir | --datadir | --datadi | --datad)
671aa708 935 ac_prev=datadir ;;
5213506e 936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 937 datadir=$ac_optarg ;;
671aa708 938
5213506e
RW
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
671aa708 946 -disable-* | --disable-*)
5213506e 947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 948 # Reject names that are not valid shell variable names.
5213506e
RW
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955"enable_$ac_useropt"
956"*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
671aa708
NN
971
972 -enable-* | --enable-*)
5213506e 973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 974 # Reject names that are not valid shell variable names.
5213506e
RW
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981"enable_$ac_useropt"
982"*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
2aeb72e9 985 esac
5213506e 986 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
1c710c3c 995 exec_prefix=$ac_optarg ;;
671aa708
NN
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1c710c3c
DJ
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
671aa708
NN
1007
1008 -host | --host | --hos | --ho)
1c710c3c 1009 ac_prev=host_alias ;;
671aa708 1010 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1011 host_alias=$ac_optarg ;;
671aa708 1012
5213506e
RW
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
671aa708
NN
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1024 includedir=$ac_optarg ;;
671aa708
NN
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1029 infodir=$ac_optarg ;;
671aa708
NN
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1034 libdir=$ac_optarg ;;
671aa708
NN
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1041 libexecdir=$ac_optarg ;;
671aa708 1042
5213506e
RW
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
671aa708 1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1049 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1053 localstatedir=$ac_optarg ;;
671aa708
NN
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1058 mandir=$ac_optarg ;;
671aa708
NN
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1065 | --no-cr | --no-c | -n)
671aa708
NN
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1079 oldincludedir=$ac_optarg ;;
671aa708
NN
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1084 prefix=$ac_optarg ;;
671aa708
NN
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1091 program_prefix=$ac_optarg ;;
671aa708
NN
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1098 program_suffix=$ac_optarg ;;
671aa708
NN
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1115 program_transform_name=$ac_optarg ;;
671aa708 1116
5213506e
RW
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
671aa708
NN
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1c710c3c 1135 sbindir=$ac_optarg ;;
671aa708
NN
1136
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1c710c3c 1146 sharedstatedir=$ac_optarg ;;
671aa708
NN
1147
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1c710c3c 1151 site=$ac_optarg ;;
671aa708
NN
1152
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1156 srcdir=$ac_optarg ;;
671aa708
NN
1157
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1163 sysconfdir=$ac_optarg ;;
671aa708
NN
1164
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1166 ac_prev=target_alias ;;
671aa708 1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1168 target_alias=$ac_optarg ;;
671aa708
NN
1169
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1172
1c710c3c
DJ
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
671aa708
NN
1175
1176 -with-* | --with-*)
5213506e 1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1178 # Reject names that are not valid shell variable names.
5213506e
RW
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185"with_$ac_useropt"
1186"*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
2aeb72e9 1189 esac
5213506e 1190 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1191
1192 -without-* | --without-*)
5213506e 1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1194 # Reject names that are not valid shell variable names.
5213506e
RW
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
671aa708
NN
1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1217 x_includes=$ac_optarg ;;
671aa708
NN
1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1224 x_libraries=$ac_optarg ;;
671aa708 1225
5213506e
RW
1226 -*) as_fn_error "unrecognized option: \`$ac_option'
1227Try \`$0 --help' for more information."
671aa708
NN
1228 ;;
1229
1c710c3c
DJ
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
5213506e
RW
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1238 export $ac_envvar ;;
1239
671aa708 1240 *)
1c710c3c 1241 # FIXME: should be removed in autoconf 3.0.
5213506e 1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1246 ;;
1247
1248 esac
1249done
1250
1251if test -n "$ac_prev"; then
1c710c3c 1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1253 as_fn_error "missing argument to $ac_option"
af71363e 1254fi
af71363e 1255
5213506e
RW
1256if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1261 esac
5213506e 1262fi
2aeb72e9 1263
5213506e
RW
1264# Check all directory arguments for consistency.
1265for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
2aeb72e9 1269do
5213506e
RW
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
2aeb72e9 1278 case $ac_val in
5213506e
RW
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1281 esac
5213506e 1282 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1283done
1284
1c710c3c
DJ
1285# There might be people who depend on the old broken behavior: `$host'
1286# used to hold the argument of --host etc.
1287# FIXME: To remove some day.
1288build=$build_alias
1289host=$host_alias
1290target=$target_alias
0b0dc272 1291
1c710c3c
DJ
1292# FIXME: To remove some day.
1293if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
5213506e 1296 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1297 If a cross compiler is detected then cross compile mode will be used." >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301fi
1302
1303ac_tool_prefix=
1304test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306test "$silent" = yes && exec 6>/dev/null
671aa708 1307
671aa708 1308
5213506e
RW
1309ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310ac_ls_di=`ls -di .` &&
1311ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error "working directory cannot be determined"
1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error "pwd does not report name of working directory"
1315
1316
671aa708
NN
1317# Find the source files, if location was not specified.
1318if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
5213506e
RW
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326$as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
671aa708 1344 srcdir=$ac_confdir
5213506e 1345 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1346 srcdir=..
1347 fi
1348else
1349 ac_srcdir_defaulted=no
1350fi
5213506e
RW
1351if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1354fi
1355ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1358 pwd)`
1359# When building in place, set srcdir=.
1360if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362fi
1363# Remove unnecessary trailing slashes from srcdir.
1364# Double slashes in file names in object file debugging info
1365# mess up M-x gdb in Emacs.
1366case $srcdir in
1367*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368esac
87841584
AM
1369case $srcdir in
1370 *" "*)
1371 as_fn_error "path to source, $srcdir, contains spaces"
1372 ;;
1373esac
ac9e6043
RW
1374ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1375
5213506e
RW
1376for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
1c710c3c
DJ
1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390\`configure' configures this package to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
1c710c3c
DJ
1410Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1412 [$ac_default_prefix]
1c710c3c 1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1414 [PREFIX]
1c710c3c
DJ
1415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
5213506e
RW
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1443_ACEOF
1444
1445 cat <<\_ACEOF
1446
1447Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
1452System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 --target=TARGET configure for building compilers for TARGET [HOST]
1456_ACEOF
1457fi
1458
1459if test -n "$ac_init_help"; then
1460
1461 cat <<\_ACEOF
1462
1463Optional Features:
5213506e 1464 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1467 --enable-as-accelerator-for=ARG
1468 build as offload target compiler. Specify offload
1469 host triple by ARG
1470 --enable-offload-targets=LIST
1471 enable offloading to devices from comma-separated
1472 LIST of TARGET[=DIR]. Use optional path to find
1473 offload target compiler during the build
21539e2e 1474 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1475 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1476 --disable-libquadmath do not build libquadmath directory
1477 --disable-libquadmath-support
1478 disable libquadmath support for Fortran
30b74385
RW
1479 --enable-libada build libada directory
1480 --enable-libssp build libssp directory
1873ec0c 1481 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1482 --enable-liboffloadmic=ARG
1483 build liboffloadmic [ARG={no,host,target}]
a4a2c37d
MK
1484 --enable-static-libjava[=ARG]
1485 build static libjava [default=no]
ff3ac0f4 1486 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9
RG
1487 --disable-isl-version-check
1488 disable check for ISL version
d7f09764 1489 --enable-lto enable link time optimization support
45b3824d
TS
1490 --enable-linker-plugin-configure-flags=FLAGS
1491 additional flags for configuring linker plugins
1492 [none]
1493 --enable-linker-plugin-flags=FLAGS
1494 additional flags for configuring and building linker
1495 plugins [none]
33e39b66
AS
1496 --enable-stage1-languages[=all]
1497 choose additional languages to build during stage1.
1498 Mostly useful for compiler development
1499 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1500 Objective-C runtime
beeda1d9 1501 --enable-vtable-verify Enable vtable verification feature
30b74385 1502 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1503 force sequential configuration of sub-packages for
1504 the host, target or build machine, or all
1505 sub-packages
1506 --enable-maintainer-mode
1507 enable make rules and dependencies not useful (and
1508 sometimes confusing) to the casual installer
1509 --enable-stage1-checking[=all]
1510 choose additional checking for stage1 of the
1511 compiler
1c710c3c 1512 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1513 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1514
1515Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1519 --with-mpc=PATH specify prefix directory for installed MPC package.
1520 Equivalent to --with-mpc-include=PATH/include plus
1521 --with-mpc-lib=PATH/lib
1522 --with-mpc-include=PATH specify directory for installed MPC include files
1523 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1524 --with-mpfr-dir=PATH this option has been REMOVED
1525 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1526 Equivalent to --with-mpfr-include=PATH/include plus
1527 --with-mpfr-lib=PATH/lib
1c710c3c 1528 --with-mpfr-include=PATH
30b74385
RW
1529 specify directory for installed MPFR include files
1530 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1531 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1532 --with-gmp=PATH specify prefix directory for the installed GMP
1533 package. Equivalent to
1534 --with-gmp-include=PATH/include plus
1535 --with-gmp-lib=PATH/lib
30b74385
RW
1536 --with-gmp-include=PATH specify directory for installed GMP include files
1537 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1538 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1539 linking with PPL
0b21f5d3 1540 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1541 --with-stage1-ldflags=FLAGS
1542 linker flags for stage1
33e39b66
AS
1543 --with-boot-libs=LIBS libraries for stage2 and later
1544 --with-boot-ldflags=FLAGS
1545 linker flags for stage2 and later
33ad93b9 1546 --with-isl=PATH Specify prefix directory for the installed ISL
33e39b66 1547 package. Equivalent to
33ad93b9
RG
1548 --with-isl-include=PATH/include plus
1549 --with-isl-lib=PATH/lib
1550 --with-isl-include=PATH Specify directory for installed ISL include files
1551 --with-isl-lib=PATH Specify the directory for the installed ISL library
30b74385 1552 --with-build-sysroot=SYSROOT
1c710c3c 1553 use sysroot as the system root during the build
c8aea42c 1554 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1555 map A to B, C to D ... in debug information
1556 --with-build-config='NAME NAME2...'
1557 use config/NAME.mk build configuration
30b74385 1558 --with-build-time-tools=PATH
1c710c3c 1559 use given path to find target tools during the build
1c710c3c
DJ
1560
1561Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
5213506e
RW
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
ffedf511
RW
1571 build_configargs
1572 additional configure arguments for build directories
1573 host_configargs
1574 additional configure arguments for host directories
1575 target_configargs
1576 additional configure arguments for target directories
278a7a38
AO
1577 AR AR for the host
1578 AS AS for the host
1579 DLLTOOL DLLTOOL for the host
1580 LD LD for the host
1581 LIPO LIPO for the host
1582 NM NM for the host
1583 RANLIB RANLIB for the host
1584 STRIP STRIP for the host
1585 WINDRES WINDRES for the host
901119ae 1586 WINDMC WINDMC for the host
278a7a38
AO
1587 OBJCOPY OBJCOPY for the host
1588 OBJDUMP OBJDUMP for the host
e7a82751 1589 READELF READELF for the host
278a7a38
AO
1590 CC_FOR_TARGET
1591 CC for the target
1592 CXX_FOR_TARGET
1593 CXX for the target
1594 GCC_FOR_TARGET
1595 GCC for the target
1596 GCJ_FOR_TARGET
1597 GCJ for the target
1598 GFORTRAN_FOR_TARGET
1599 GFORTRAN for the target
632e2a07
ILT
1600 GOC_FOR_TARGET
1601 GOC for the target
278a7a38
AO
1602 AR_FOR_TARGET
1603 AR for the target
1604 AS_FOR_TARGET
1605 AS for the target
1606 DLLTOOL_FOR_TARGET
1607 DLLTOOL for the target
1608 LD_FOR_TARGET
1609 LD for the target
1610 LIPO_FOR_TARGET
1611 LIPO for the target
1612 NM_FOR_TARGET
1613 NM for the target
1614 OBJDUMP_FOR_TARGET
1615 OBJDUMP for the target
1616 RANLIB_FOR_TARGET
1617 RANLIB for the target
e7a82751
RM
1618 READELF_FOR_TARGET
1619 READELF for the target
278a7a38
AO
1620 STRIP_FOR_TARGET
1621 STRIP for the target
1622 WINDRES_FOR_TARGET
1623 WINDRES for the target
901119ae
KT
1624 WINDMC_FOR_TARGET
1625 WINDMC for the target
1c710c3c
DJ
1626
1627Use these variables to override the choices made by `configure' or to help
1628it to find libraries and programs with nonstandard names/locations.
1629
5213506e 1630Report bugs to the package provider.
1c710c3c 1631_ACEOF
5213506e 1632ac_status=$?
1c710c3c
DJ
1633fi
1634
1635if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1c710c3c 1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 continue
1c710c3c
DJ
1641 ac_builddir=.
1642
5213506e
RW
1643case "$ac_dir" in
1644.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645*)
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 esac ;;
1653esac
1654ac_abs_top_builddir=$ac_pwd
1655ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656# for backward compatibility:
1657ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1658
1659case $srcdir in
5213506e 1660 .) # We are building in place.
1c710c3c 1661 ac_srcdir=.
5213506e
RW
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1665 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1668 *) # Relative name.
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1672esac
5213506e
RW
1673ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1683 else
5213506e
RW
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 fi || ac_status=$?
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1687 done
1688fi
1689
5213506e 1690test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1691if $ac_init_version; then
1692 cat <<\_ACEOF
5213506e
RW
1693configure
1694generated by GNU Autoconf 2.64
1c710c3c 1695
5213506e 1696Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1697This configure script is free software; the Free Software Foundation
1698gives unlimited permission to copy, distribute and modify it.
1699_ACEOF
5213506e 1700 exit
0b0dc272 1701fi
5213506e
RW
1702
1703## ------------------------ ##
1704## Autoconf initialization. ##
1705## ------------------------ ##
1706
1707# ac_fn_c_try_compile LINENO
1708# --------------------------
1709# Try to compile conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_compile ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734else
1735 $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=1
1739fi
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1742
1743} # ac_fn_c_try_compile
1744
1745# ac_fn_cxx_try_compile LINENO
1746# ----------------------------
1747# Try to compile conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_cxx_try_compile ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext
1752 if { { ac_try="$ac_compile"
1753case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_cxx_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1771 ac_retval=0
1772else
1773 $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=1
1777fi
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1780
1781} # ac_fn_cxx_try_compile
1782
0b21f5d3
EB
1783# ac_fn_cxx_try_link LINENO
1784# -------------------------
1785# Try to link conftest.$ac_ext, and return whether this succeeded.
1786ac_fn_cxx_try_link ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_cxx_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 $as_test_x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813else
1814 $as_echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818fi
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 return $ac_retval
1826
1827} # ac_fn_cxx_try_link
1828
5213506e
RW
1829# ac_fn_c_try_link LINENO
1830# -----------------------
1831# Try to link conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_c_try_link ()
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 $as_test_x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864fi
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1872
1873} # ac_fn_c_try_link
1874cat >config.log <<_ACEOF
1c710c3c
DJ
1875This file contains any messages produced by compilers while
1876running configure, to aid debugging if configure makes a mistake.
1877
1878It was created by $as_me, which was
5213506e 1879generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1880
1881 $ $0 $@
1882
1883_ACEOF
5213506e 1884exec 5>>config.log
1c710c3c
DJ
1885{
1886cat <<_ASUNAME
1887## --------- ##
1888## Platform. ##
1889## --------- ##
1890
1891hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896
1897/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1899
1900/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1901/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1902/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1903/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1904/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1905/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1906/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907
1908_ASUNAME
1909
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
5213506e
RW
1915 $as_echo "PATH: $as_dir"
1916 done
1917IFS=$as_save_IFS
1c710c3c
DJ
1918
1919} >&5
1920
1921cat >&5 <<_ACEOF
1922
1923
1924## ----------- ##
1925## Core tests. ##
1926## ----------- ##
1927
1928_ACEOF
1929
1930
1931# Keep a trace of the command line.
1932# Strip out --no-create and --no-recursion so they do not pile up.
1933# Strip out --silent because we don't want to record it for future runs.
1934# Also quote any args containing shell meta-characters.
1935# Make two passes to allow for proper duplicate-argument suppression.
1936ac_configure_args=
1937ac_configure_args0=
1938ac_configure_args1=
1c710c3c
DJ
1939ac_must_keep_next=false
1940for ac_pass in 1 2
1941do
1942 for ac_arg
1943 do
1944 case $ac_arg in
1945 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947 | -silent | --silent | --silen | --sile | --sil)
1948 continue ;;
5213506e
RW
1949 *\'*)
1950 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1951 esac
1952 case $ac_pass in
5213506e 1953 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1954 2)
5213506e 1955 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1956 if test $ac_must_keep_next = true; then
1957 ac_must_keep_next=false # Got value, back to normal.
1958 else
1959 case $ac_arg in
1960 *=* | --config-cache | -C | -disable-* | --disable-* \
1961 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963 | -with-* | --with-* | -without-* | --without-* | --x)
1964 case "$ac_configure_args0 " in
1965 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966 esac
1967 ;;
1968 -* ) ac_must_keep_next=true ;;
1969 esac
1970 fi
5213506e 1971 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1972 ;;
1973 esac
1974 done
1975done
5213506e
RW
1976{ ac_configure_args0=; unset ac_configure_args0;}
1977{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1978
1979# When interrupted or exit'd, cleanup temporary files, and complete
1980# config.log. We remove comments because anyway the quotes in there
1981# would cause problems or look ugly.
5213506e
RW
1982# WARNING: Use '\'' to represent an apostrophe within the trap.
1983# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1984trap 'exit_status=$?
1985 # Save into config.log some information that might help in debugging.
1986 {
1987 echo
1988
1989 cat <<\_ASBOX
1990## ---------------- ##
1991## Cache variables. ##
1992## ---------------- ##
1993_ASBOX
1994 echo
1995 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1996(
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in #(
2000 *${as_nl}*)
2001 case $ac_var in #(
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004 esac
2005 case $ac_var in #(
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2009 esac ;;
2010 esac
2011 done
1c710c3c 2012 (set) 2>&1 |
5213506e
RW
2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
1c710c3c 2015 sed -n \
5213506e
RW
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018 ;; #(
1c710c3c 2019 *)
5213506e 2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2021 ;;
5213506e
RW
2022 esac |
2023 sort
2024)
1c710c3c
DJ
2025 echo
2026
2027 cat <<\_ASBOX
2028## ----------------- ##
2029## Output variables. ##
2030## ----------------- ##
2031_ASBOX
2032 echo
2033 for ac_var in $ac_subst_vars
2034 do
5213506e
RW
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2040 done | sort
2041 echo
2042
2043 if test -n "$ac_subst_files"; then
2044 cat <<\_ASBOX
5213506e
RW
2045## ------------------- ##
2046## File substitutions. ##
2047## ------------------- ##
1c710c3c
DJ
2048_ASBOX
2049 echo
2050 for ac_var in $ac_subst_files
2051 do
5213506e
RW
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2057 done | sort
2058 echo
2059 fi
2060
2061 if test -s confdefs.h; then
2062 cat <<\_ASBOX
2063## ----------- ##
2064## confdefs.h. ##
2065## ----------- ##
2066_ASBOX
2067 echo
5213506e 2068 cat confdefs.h
1c710c3c
DJ
2069 echo
2070 fi
2071 test "$ac_signal" != 0 &&
5213506e
RW
2072 $as_echo "$as_me: caught signal $ac_signal"
2073 $as_echo "$as_me: exit $exit_status"
1c710c3c 2074 } >&5
5213506e
RW
2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2077 exit $exit_status
5213506e 2078' 0
1c710c3c 2079for ac_signal in 1 2 13 15; do
5213506e 2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2081done
2082ac_signal=0
2083
2084# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2085rm -f -r conftest* confdefs.h
2086
2087$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2088
2089# Predefined preprocessor variables.
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_NAME "$PACKAGE_NAME"
2093_ACEOF
2094
1c710c3c
DJ
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097_ACEOF
2098
1c710c3c
DJ
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_VERSION "$PACKAGE_VERSION"
2101_ACEOF
0b0dc272 2102
1c710c3c
DJ
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_STRING "$PACKAGE_STRING"
2105_ACEOF
2106
1c710c3c
DJ
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109_ACEOF
2110
5213506e
RW
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_URL "$PACKAGE_URL"
2113_ACEOF
2114
1c710c3c
DJ
2115
2116# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2117# Prefer an explicitly selected file to automatically selected ones.
2118ac_site_file1=NONE
2119ac_site_file2=NONE
2120if test -n "$CONFIG_SITE"; then
2121 ac_site_file1=$CONFIG_SITE
2122elif test "x$prefix" != xNONE; then
2123 ac_site_file1=$prefix/share/config.site
2124 ac_site_file2=$prefix/etc/config.site
2125else
2126 ac_site_file1=$ac_default_prefix/share/config.site
2127 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2128fi
5213506e
RW
2129for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130do
2131 test "x$ac_site_file" = xNONE && continue
671aa708 2132 if test -r "$ac_site_file"; then
5213506e
RW
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2135 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2136 . "$ac_site_file"
2137 fi
2138done
2139
2140if test -r "$cache_file"; then
1c710c3c
DJ
2141 # Some versions of bash will fail to source /dev/null (special
2142 # files actually), so we avoid doing that.
2143 if test -f "$cache_file"; then
5213506e
RW
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2145$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2146 case $cache_file in
5213506e
RW
2147 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2148 *) . "./$cache_file";;
1c710c3c
DJ
2149 esac
2150 fi
671aa708 2151else
5213506e
RW
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2153$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2154 >$cache_file
2155fi
2156
2157# Check that the precious variables saved in the cache have kept the same
2158# value.
2159ac_cache_corrupted=false
5213506e 2160for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2161 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2162 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2163 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2164 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2165 case $ac_old_set,$ac_new_set in
2166 set,)
5213506e
RW
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2168$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2169 ac_cache_corrupted=: ;;
2170 ,set)
5213506e
RW
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2172$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2173 ac_cache_corrupted=: ;;
2174 ,);;
2175 *)
2176 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2177 # differences in whitespace do not lead to failure.
2178 ac_old_val_w=`echo x $ac_old_val`
2179 ac_new_val_w=`echo x $ac_new_val`
2180 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2182$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2183 ac_cache_corrupted=:
2184 else
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2186$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2187 eval $ac_var=\$ac_old_val
2188 fi
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2190$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2192$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2193 fi;;
2194 esac
2195 # Pass precious variables to config.status.
2196 if test "$ac_new_set" = set; then
2197 case $ac_new_val in
5213506e 2198 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2199 *) ac_arg=$ac_var=$ac_new_val ;;
2200 esac
2201 case " $ac_configure_args " in
2202 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2203 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2204 esac
2205 fi
2206done
2207if $ac_cache_corrupted; then
5213506e
RW
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2211$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2212 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2213fi
5213506e
RW
2214## -------------------- ##
2215## Main body of script. ##
2216## -------------------- ##
671aa708 2217
2aeb72e9
DD
2218ac_ext=c
2219ac_cpp='$CPP $CPPFLAGS'
2220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223
1c710c3c
DJ
2224
2225
2226
1c710c3c
DJ
2227
2228
0115d4a3 2229
1c710c3c 2230
ad33ff57
RW
2231
2232progname=$0
2233# if PWD already has a value, it is probably wrong.
2234if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2235
2236# Export original configure arguments for use by sub-configures.
2237# Quote arguments with shell meta charatcers.
2238TOPLEVEL_CONFIGURE_ARGUMENTS=
2239set -- "$progname" "$@"
2240for ac_arg
2241do
2242 case "$ac_arg" in
2243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2245 # if the argument is of the form -foo=baz, quote the baz part only
2246 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2247 *) ;;
2248 esac
2249 # Add the quoted argument to the list.
2250 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2251done
2252if test "$silent" = yes; then
2253 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2254fi
2255# Remove the initial space we just introduced and, as these will be
2256# expanded by make, quote '$'.
2257TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2258
1c710c3c
DJ
2259
2260# Find the build, host, and target systems.
671aa708 2261ac_aux_dir=
5213506e
RW
2262for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2263 for ac_t in install-sh install.sh shtool; do
2264 if test -f "$ac_dir/$ac_t"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/$ac_t -c"
2267 break 2
2268 fi
2269 done
671aa708
NN
2270done
2271if test -z "$ac_aux_dir"; then
5213506e 2272 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2273fi
5213506e
RW
2274
2275# These three variables are undocumented and unsupported,
2276# and are intended to be withdrawn in a future Autoconf release.
2277# They can cause serious problems if a builder's source tree is in a directory
2278# whose full name contains unusual characters.
2279ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2280ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2281ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2282
671aa708 2283
1c710c3c 2284# Make sure we can run config.sub.
5213506e
RW
2285$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2286 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2287
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2289$as_echo_n "checking build system type... " >&6; }
2290if test "${ac_cv_build+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
2292else
2293 ac_build_alias=$build_alias
2294test "x$ac_build_alias" = x &&
2295 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2296test "x$ac_build_alias" = x &&
2297 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2298ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2300
2301fi
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2303$as_echo "$ac_cv_build" >&6; }
2304case $ac_cv_build in
2305*-*-*) ;;
2306*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2307esac
1c710c3c 2308build=$ac_cv_build
5213506e
RW
2309ac_save_IFS=$IFS; IFS='-'
2310set x $ac_cv_build
2311shift
2312build_cpu=$1
2313build_vendor=$2
2314shift; shift
2315# Remember, the first character of IFS is used to create $*,
2316# except with old shells:
2317build_os=$*
2318IFS=$ac_save_IFS
2319case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2320
671aa708 2321
1c710c3c
DJ
2322 case ${build_alias} in
2323 "") build_noncanonical=${build} ;;
2324 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2325esac
2326
2327
af71363e 2328
1c710c3c
DJ
2329 case ${host_alias} in
2330 "") host_noncanonical=${build_noncanonical} ;;
2331 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2332esac
2333
af71363e 2334
1c710c3c
DJ
2335
2336 case ${target_alias} in
2337 "") target_noncanonical=${host_noncanonical} ;;
2338 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2339esac
2340
af71363e 2341
1c710c3c
DJ
2342
2343
2344test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2345 test "$program_prefix$program_suffix$program_transform_name" = \
2346 NONENONEs,x,x, &&
1c710c3c 2347 program_transform_name=s,y,y,
af71363e 2348
5213506e
RW
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2350$as_echo_n "checking host system type... " >&6; }
2351if test "${ac_cv_host+set}" = set; then :
2352 $as_echo_n "(cached) " >&6
af71363e 2353else
5213506e
RW
2354 if test "x$host_alias" = x; then
2355 ac_cv_host=$ac_cv_build
2356else
2357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2358 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2359fi
1c710c3c 2360
af71363e 2361fi
5213506e
RW
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2363$as_echo "$ac_cv_host" >&6; }
2364case $ac_cv_host in
2365*-*-*) ;;
2366*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2367esac
1c710c3c 2368host=$ac_cv_host
5213506e
RW
2369ac_save_IFS=$IFS; IFS='-'
2370set x $ac_cv_host
2371shift
2372host_cpu=$1
2373host_vendor=$2
2374shift; shift
2375# Remember, the first character of IFS is used to create $*,
2376# except with old shells:
2377host_os=$*
2378IFS=$ac_save_IFS
2379case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2380
2381
5213506e
RW
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2383$as_echo_n "checking target system type... " >&6; }
2384if test "${ac_cv_target+set}" = set; then :
2385 $as_echo_n "(cached) " >&6
1c710c3c 2386else
5213506e
RW
2387 if test "x$target_alias" = x; then
2388 ac_cv_target=$ac_cv_host
2389else
2390 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2391 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2392fi
1c710c3c
DJ
2393
2394fi
5213506e
RW
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2396$as_echo "$ac_cv_target" >&6; }
2397case $ac_cv_target in
2398*-*-*) ;;
2399*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2400esac
1c710c3c 2401target=$ac_cv_target
5213506e
RW
2402ac_save_IFS=$IFS; IFS='-'
2403set x $ac_cv_target
2404shift
2405target_cpu=$1
2406target_vendor=$2
2407shift; shift
2408# Remember, the first character of IFS is used to create $*,
2409# except with old shells:
2410target_os=$*
2411IFS=$ac_save_IFS
2412case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2413
2414
2415# The aliases save the names the user supplied, while $host etc.
2416# will get canonicalized.
2417test -n "$target_alias" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_prefix=${target_alias}-
5213506e 2421
671aa708 2422test "$program_prefix" != NONE &&
5213506e 2423 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2424# Use a double $ so make ignores it.
2425test "$program_suffix" != NONE &&
5213506e
RW
2426 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2427# Double any \ or $.
1c710c3c 2428# By default was `s,x,x', remove it if useless.
5213506e
RW
2429ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2430program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2431
671aa708
NN
2432
2433
775956d0
NN
2434# Get 'install' or 'install-sh' and its variants.
2435# Find a good install program. We prefer a C program (faster),
2436# so one script is as good as another. But avoid the broken or
2437# incompatible versions:
2438# SysV /etc/install, /usr/sbin/install
2439# SunOS /usr/etc/install
2440# IRIX /sbin/install
2441# AIX /bin/install
1c710c3c 2442# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2443# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2444# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2445# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2446# OS/2's system install, which has a completely different semantic
775956d0 2447# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2448# Reject install programs that cannot install multiple files.
5213506e
RW
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2450$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2451if test -z "$INSTALL"; then
5213506e
RW
2452if test "${ac_cv_path_install+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2454else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
5213506e
RW
2460 # Account for people who put trailing slashes in PATH elements.
2461case $as_dir/ in #((
2462 ./ | .// | /[cC]/* | \
1c710c3c 2463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2464 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2465 /usr/ucb/* ) ;;
2466 *)
2467 # OSF1 and SCO ODT 3.0 have their own names for install.
2468 # Don't use installbsd from OSF since it installs stuff as root
2469 # by default.
2470 for ac_prog in ginstall scoinst install; do
2471 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2472 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2473 if test $ac_prog = install &&
1c710c3c 2474 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2475 # AIX install. It has an incompatible calling convention.
2476 :
1c710c3c
DJ
2477 elif test $ac_prog = install &&
2478 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # program-specific install script used by HP pwplus--don't use.
2480 :
775956d0 2481 else
38d24731
RW
2482 rm -rf conftest.one conftest.two conftest.dir
2483 echo one > conftest.one
2484 echo two > conftest.two
2485 mkdir conftest.dir
2486 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2487 test -s conftest.one && test -s conftest.two &&
2488 test -s conftest.dir/conftest.one &&
2489 test -s conftest.dir/conftest.two
2490 then
2491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2492 break 3
2493 fi
775956d0
NN
2494 fi
2495 fi
2496 done
1c710c3c
DJ
2497 done
2498 ;;
2499esac
5213506e
RW
2500
2501 done
2502IFS=$as_save_IFS
1c710c3c 2503
38d24731 2504rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2505
2506fi
2507 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2508 INSTALL=$ac_cv_path_install
775956d0 2509 else
38d24731
RW
2510 # As a last resort, use the slow shell script. Don't cache a
2511 # value for INSTALL within a source directory, because that will
775956d0 2512 # break other packages using the cache if that directory is
38d24731 2513 # removed, or if the value is a relative name.
1c710c3c 2514 INSTALL=$ac_install_sh
775956d0
NN
2515 fi
2516fi
5213506e
RW
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2518$as_echo "$INSTALL" >&6; }
775956d0
NN
2519
2520# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521# It thinks the first close brace ends the variable substitution.
2522test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2523
1c710c3c 2524test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2525
2526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2527
5213506e
RW
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2529$as_echo_n "checking whether ln works... " >&6; }
2530if test "${acx_cv_prog_LN+set}" = set; then :
2531 $as_echo_n "(cached) " >&6
ad6717df
PB
2532else
2533 rm -f conftestdata_t
2534echo >conftestdata_f
2535if ln conftestdata_f conftestdata_t 2>/dev/null
2536then
2537 acx_cv_prog_LN=ln
2538else
2539 acx_cv_prog_LN=no
2540fi
2541rm -f conftestdata_f conftestdata_t
2542
2543fi
2544if test $acx_cv_prog_LN = no; then
2545 LN="cp"
5213506e
RW
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2547$as_echo "no, using $LN" >&6; }
ad6717df
PB
2548else
2549 LN="$acx_cv_prog_LN"
5213506e
RW
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2551$as_echo "yes" >&6; }
ad6717df
PB
2552fi
2553
5213506e
RW
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2555$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2556LN_S=$as_ln_s
2557if test "$LN_S" = "ln -s"; then
5213506e
RW
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559$as_echo "yes" >&6; }
fb0103e5 2560else
5213506e
RW
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2562$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2563fi
2564
87264276
PB
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2566$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2567if test "${ac_cv_path_SED+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569else
2570 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2571 for ac_i in 1 2 3 4 5 6 7; do
2572 ac_script="$ac_script$as_nl$ac_script"
2573 done
2574 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2575 { ac_script=; unset ac_script;}
2576 if test -z "$SED"; then
2577 ac_path_SED_found=false
2578 # Loop through the user's path and test for each of PROGNAME-LIST
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_prog in sed gsed; do
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2587 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2588# Check for GNU ac_path_SED and select it if it is found.
2589 # Check for GNU $ac_path_SED
2590case `"$ac_path_SED" --version 2>&1` in
2591*GNU*)
2592 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2593*)
2594 ac_count=0
2595 $as_echo_n 0123456789 >"conftest.in"
2596 while :
2597 do
2598 cat "conftest.in" "conftest.in" >"conftest.tmp"
2599 mv "conftest.tmp" "conftest.in"
2600 cp "conftest.in" "conftest.nl"
2601 $as_echo '' >> "conftest.nl"
2602 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2604 as_fn_arith $ac_count + 1 && ac_count=$as_val
2605 if test $ac_count -gt ${ac_path_SED_max-0}; then
2606 # Best one so far, save it but keep looking for a better one
2607 ac_cv_path_SED="$ac_path_SED"
2608 ac_path_SED_max=$ac_count
2609 fi
2610 # 10*(2^10) chars as input seems more than enough
2611 test $ac_count -gt 10 && break
2612 done
2613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2614esac
2615
2616 $ac_path_SED_found && break 3
2617 done
2618 done
2619 done
2620IFS=$as_save_IFS
2621 if test -z "$ac_cv_path_SED"; then
2622 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2623 fi
2624else
2625 ac_cv_path_SED=$SED
2626fi
2627
2628fi
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2630$as_echo "$ac_cv_path_SED" >&6; }
2631 SED="$ac_cv_path_SED"
2632 rm -f conftest.sed
2633
2634for ac_prog in gawk mawk nawk awk
2635do
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637set dummy $ac_prog; ac_word=$2
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639$as_echo_n "checking for $ac_word... " >&6; }
2640if test "${ac_cv_prog_AWK+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642else
2643 if test -n "$AWK"; then
2644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_AWK="$ac_prog"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657done
2658 done
2659IFS=$as_save_IFS
2660
2661fi
2662fi
2663AWK=$ac_cv_prog_AWK
2664if test -n "$AWK"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666$as_echo "$AWK" >&6; }
2667else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670fi
2671
2672
2673 test -n "$AWK" && break
2674done
2675
775956d0 2676
ee6a22df
L
2677srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2678
2679# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2680# a relative path.
2681if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2682 INSTALL="${srcpwd}/install-sh -c"
2683fi
2684
671aa708
NN
2685# Set srcdir to "." if that's what it is.
2686# This is important for multilib support.
2687pwd=`${PWDCMD-pwd}`
671aa708
NN
2688if test "${pwd}" = "${srcpwd}" ; then
2689 srcdir=.
79c06341
JL
2690fi
2691
671aa708 2692topsrcdir=$srcpwd
5d4a5ee6 2693
671aa708 2694extra_host_args=
afabd8e6 2695
671aa708
NN
2696### To add a new directory to the tree, first choose whether it is a target
2697### or a host dependent tool. Then put it into the appropriate list
2698### (library or tools, host or target), doing a dependency sort.
79c06341 2699
1c710c3c 2700# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2701# configdirs, or target_configdirs; see the serialization section below.
79c06341 2702
1c710c3c
DJ
2703# Dependency sorting is only needed when *configuration* must be done in
2704# a particular order. In all cases a dependency should be specified in
671aa708 2705# the Makefile, whether or not it's implicitly specified here.
79c06341 2706
671aa708
NN
2707# Double entries in build_configdirs, configdirs, or target_configdirs may
2708# cause circular dependencies and break everything horribly.
79c06341 2709
23f6b2f9
PB
2710# these library is used by various programs built for the build
2711# environment
2712#
929315a9 2713build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2714
2715# these tools are built for the build environment
85bfb75e 2716build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2717
671aa708 2718# these libraries are used by various programs built for the host environment
eae1a5d4 2719#f
4a9bb2aa 2720host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
671aa708 2721
671aa708
NN
2722# these tools are built for the host environment
2723# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2724# know that we are building the simulator.
2725# binutils, gas and ld appear in that order because it makes sense to run
2726# "make check" in that particular order.
38e3d868 2727# If --enable-gold is used, "gold" may replace "ld".
ddc8de03 2728host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
671aa708
NN
2729
2730# libgcj represents the runtime libraries only used by gcj.
2731libgcj="target-libffi \
671aa708 2732 target-zlib \
671aa708
NN
2733 target-libjava"
2734
2735# these libraries are built for the target environment, and are built after
2736# the host libraries and the host tools (which may be a cross compiler)
8499116a 2737# Note that libiberty is not a target library.
291f172e 2738target_libraries="target-libgcc \
eff02e4f 2739 target-libbacktrace \
671aa708
NN
2740 target-libgloss \
2741 target-newlib \
6d3b5aea 2742 target-libgomp \
3038054c 2743 target-libcilkrts \
5f520819 2744 target-liboffloadmic \
48310492 2745 target-libatomic \
0a35513e 2746 target-libitm \
cb543528 2747 target-libstdc++-v3 \
f35db108 2748 target-libsanitizer \
2077db1b 2749 target-libvtv \
77008252 2750 target-libssp \
1ec601bf 2751 target-libquadmath \
6de9cd9a 2752 target-libgfortran \
7cd0cf9c 2753 target-boehm-gc \
77d187bc 2754 ${libgcj} \
d9cdb878 2755 target-libobjc \
632e2a07
ILT
2756 target-libada \
2757 target-libgo"
671aa708 2758
4dbda6f0
NN
2759# these tools are built using the target libraries, and are intended to
2760# run only in the target environment
671aa708 2761#
4dbda6f0 2762# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2763# list belongs in this list.
671aa708 2764#
85bfb75e 2765target_tools="target-rda"
79c06341 2766
671aa708 2767################################################################################
79c06341 2768
671aa708
NN
2769## All tools belong in one of the four categories, and are assigned above
2770## We assign ${configdirs} this way to remove all embedded newlines. This
2771## is important because configure will choke if they ever get through.
2772## ${configdirs} is directories we build using the host tools.
2773## ${target_configdirs} is directories we build using the target tools.
671aa708 2774configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2775target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2776build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2777
ac9e6043
RW
2778
2779
671aa708 2780################################################################################
79c06341 2781
671aa708 2782srcname="gnu development package"
79c06341 2783
671aa708
NN
2784# This gets set non-empty for some net releases of packages.
2785appdirs=""
79c06341 2786
671aa708
NN
2787# Define is_cross_compiler to save on calls to 'test'.
2788is_cross_compiler=
2789if test x"${host}" = x"${target}" ; then
2790 is_cross_compiler=no
79c06341 2791else
671aa708 2792 is_cross_compiler=yes
1c710c3c 2793fi
79c06341 2794
b4acb5ef 2795# Find the build and target subdir names.
8b87bb96 2796
2e9e6f68
DJ
2797# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2798# have matching libraries, they should use host libraries: Makefile.tpl
2799# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2800# However, they still use the build modules, because the corresponding
2801# host modules (e.g. bison) are only built for the host when bootstrap
2802# finishes. So:
2803# - build_subdir is where we find build modules, and never changes.
2804# - build_libsubdir is where we find build libraries, and can be overridden.
2805
2806# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2807build_subdir="build-${build_noncanonical}"
1c710c3c 2808
5213506e
RW
2809# Check whether --with-build-libsubdir was given.
2810if test "${with_build_libsubdir+set}" = set; then :
2811 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2812else
2813 build_libsubdir="$build_subdir"
5213506e
RW
2814fi
2815
215c351a
PB
2816# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2817if ( test $srcdir = . && test -d gcc ) \
2818 || test -d $srcdir/../host-${host_noncanonical}; then
2819 host_subdir="host-${host_noncanonical}"
2820else
2821 host_subdir=.
2822fi
8b87bb96
NN
2823# No prefix.
2824target_subdir=${target_noncanonical}
1c710c3c 2825
0db770bd
RW
2826# Be sure to cover against remnants of an in-tree build.
2827if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2828 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2829Use a pristine source tree when building in a separate tree" "$LINENO" 5
2830fi
79c06341 2831
671aa708
NN
2832# Skipdirs are removed silently.
2833skipdirs=
2834# Noconfigdirs are removed loudly.
2835noconfigdirs=""
79c06341 2836
671aa708
NN
2837use_gnu_ld=
2838# Make sure we don't let GNU ld be added if we didn't want it.
2839if test x$with_gnu_ld = xno ; then
2840 use_gnu_ld=no
5afab7ad 2841 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2842fi
2843
671aa708
NN
2844use_gnu_as=
2845# Make sure we don't let GNU as be added if we didn't want it.
2846if test x$with_gnu_as = xno ; then
2847 use_gnu_as=no
2848 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2849fi
2850
d7f09764
DN
2851use_included_zlib=
2852# Make sure we don't let ZLIB be added if we didn't want it.
2853if test x$with_system_zlib = xyes ; then
2854 use_included_zlib=no
2855 noconfigdirs="$noconfigdirs zlib"
2856fi
2857
1c710c3c 2858# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2859# it's not even worth trying to configure, much less build, that tool.
79c06341 2860
671aa708
NN
2861case ${with_x} in
2862 yes | "") ;; # the default value for this tree is that X11 is available
2863 no)
b4f96efe 2864 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2865 # We won't be able to build gdbtk without X.
1c710c3c 2866 enable_gdbtk=no
671aa708
NN
2867 ;;
2868 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2869esac
79c06341 2870
1bcce263 2871# Some are only suitable for cross toolchains.
671aa708
NN
2872# Remove these if host=target.
2873cross_only="target-libgloss target-newlib target-opcodes"
2874
2875case $is_cross_compiler in
2876 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2877esac
79c06341 2878
671aa708
NN
2879# If both --with-headers and --with-libs are specified, default to
2880# --without-newlib.
ee6a22df
L
2881if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2882 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2883 if test x"${with_newlib}" = x ; then
2884 with_newlib=no
2885 fi
79c06341
JL
2886fi
2887
671aa708
NN
2888# Recognize --with-newlib/--without-newlib.
2889case ${with_newlib} in
2890 no) skipdirs="${skipdirs} target-newlib" ;;
2891 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2892esac
79c06341 2893
85c64bbe
BS
2894# Check whether --enable-as-accelerator-for was given.
2895if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2896 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2897fi
2898
2899
2900# Check whether --enable-offload-targets was given.
2901if test "${enable_offload_targets+set}" = set; then :
2902 enableval=$enable_offload_targets;
2903 if test x"$enable_offload_targets" = x; then
2904 as_fn_error "no offload targets specified" "$LINENO" 5
2905 fi
2906
2907else
2908 enable_offload_targets=
2909fi
2910
2911
21539e2e
MK
2912# Handle --enable-gold, --enable-ld.
2913# --disable-gold [--enable-ld]
2914# Build only ld. Default option.
9580395f
L
2915# --enable-gold [--enable-ld]
2916# Build both gold and ld. Install gold as "ld.gold", install ld
2917# as "ld.bfd" and "ld".
2918# --enable-gold=default [--enable-ld]
21539e2e
MK
2919# Build both gold and ld. Install gold as "ld.gold" and "ld",
2920# install ld as "ld.bfd".
2921# --enable-gold[=default] --disable-ld
2922# Build only gold, which is then installed as both "ld.gold" and "ld".
2923# --enable-gold --enable-ld=default
9580395f
L
2924# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2925# and ld.bfd).
21539e2e
MK
2926# In other words, ld is default
2927# --enable-gold=default --enable-ld=default
2928# Error.
2929
2930default_ld=
5213506e
RW
2931# Check whether --enable-gold was given.
2932if test "${enable_gold+set}" = set; then :
2933 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2934else
2935 ENABLE_GOLD=no
5213506e
RW
2936fi
2937
21539e2e
MK
2938case "${ENABLE_GOLD}" in
2939 yes|default)
38e3d868
RM
2940 # Check for ELF target.
2941 is_elf=no
2942 case "${target}" in
2943 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2944 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2945 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2946 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2947 case "${target}" in
2948 *-*-linux*aout* | *-*-linux*oldld*)
2949 ;;
2950 *)
2951 is_elf=yes
2952 ;;
2953 esac
2954 esac
2955
2956 if test "$is_elf" = "yes"; then
2957 # Check for target supported by gold.
5afab7ad 2958 case "${target}" in
7705dfd1
JY
2959 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2960 | aarch64*-*-* | tilegx*-*-*)
21539e2e
MK
2961 configdirs="$configdirs gold"
2962 if test x${ENABLE_GOLD} = xdefault; then
2963 default_ld=gold
2964 fi
38e3d868 2965 ENABLE_GOLD=yes
5afab7ad
ILT
2966 ;;
2967 esac
38e3d868
RM
2968 fi
2969 ;;
2970 no)
2971 ;;
2972 *)
2973 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2974 ;;
21539e2e
MK
2975esac
2976
2977# Check whether --enable-ld was given.
2978if test "${enable_ld+set}" = set; then :
2979 enableval=$enable_ld; ENABLE_LD=$enableval
2980else
2981 ENABLE_LD=yes
2982fi
2983
2984
2985case "${ENABLE_LD}" in
2986 default)
9580395f 2987 if test x${default_ld} != x; then
21539e2e
MK
2988 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2989 fi
2990 ;;
2991 yes)
2992 ;;
2993 no)
2994 if test x${ENABLE_GOLD} != xyes; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2996$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2997 fi
2998 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2999 ;;
3000 *)
3001 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3002 ;;
3003esac
5afab7ad 3004
671aa708 3005# Configure extra directories which are host specific
79c06341 3006
671aa708
NN
3007case "${host}" in
3008 *-cygwin*)
3009 configdirs="$configdirs libtermcap" ;;
3010esac
79c06341 3011
4fab7234
HPN
3012# A target can indicate whether a language isn't supported for some reason.
3013# Only spaces may be used in this macro; not newlines or tabs.
3014unsupported_languages=
3015
1c710c3c 3016# Remove more programs from consideration, based on the host or
671aa708
NN
3017# target this usually means that a port of the program doesn't
3018# exist yet.
ec8d6ddc 3019
671aa708 3020case "${host}" in
111eeb6e 3021 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3022 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3023 ;;
671aa708 3024esac
ec8d6ddc 3025
6de9cd9a 3026
87e6d9dc
TB
3027# Check whether --enable-libquadmath was given.
3028if test "${enable_libquadmath+set}" = set; then :
3029 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3030else
3031 ENABLE_LIBQUADMATH=yes
3032fi
3033
3034if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3035 noconfigdirs="$noconfigdirs target-libquadmath"
3036fi
3037
3038
3039# Check whether --enable-libquadmath-support was given.
3040if test "${enable_libquadmath_support+set}" = set; then :
3041 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3042else
3043 ENABLE_LIBQUADMATH_SUPPORT=yes
3044fi
3045
3046enable_libquadmath_support=
3047if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3048 enable_libquadmath_support=no
3049fi
3050
3051
5213506e
RW
3052# Check whether --enable-libada was given.
3053if test "${enable_libada+set}" = set; then :
3054 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3055else
3056 ENABLE_LIBADA=yes
5213506e
RW
3057fi
3058
d9cdb878 3059if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3060 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3061fi
3062
5213506e
RW
3063# Check whether --enable-libssp was given.
3064if test "${enable_libssp+set}" = set; then :
3065 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3066else
3067 ENABLE_LIBSSP=yes
5213506e
RW
3068fi
3069
ef0087a7 3070
1873ec0c
L
3071# Check whether --enable-libstdcxx was given.
3072if test "${enable_libstdcxx+set}" = set; then :
3073 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3074else
3075 ENABLE_LIBSTDCXX=default
3076fi
3077
3078if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3079 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3080fi
3081
5f520819
KY
3082# If this is accelerator compiler and its target is intelmic we enable
3083# target liboffloadmic by default. If this is compiler with offloading
3084# for intelmic we enable host liboffloadmic by default. Otherwise
3085# liboffloadmic is disabled by default.
3086# Check whether --enable-liboffloadmic was given.
3087if test "${enable_liboffloadmic+set}" = set; then :
3088 enableval=$enable_liboffloadmic; case "$enableval" in
3089 no | host | target)
3090 enable_liboffloadmic=$enableval ;;
3091 *)
3092 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3093esac
3094else
4b4f2e35 3095 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3096 case "${target}" in
3097 *-intelmic-* | *-intelmicemul-*)
3098 enable_liboffloadmic=target
3099 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3100 ;;
3101 *)
3102 enable_liboffloadmic=no
3103 ;;
3104 esac
3105else
3106 case "${enable_offload_targets}" in
3107 *-intelmic-* | *-intelmicemul-*)
3108 enable_liboffloadmic=host
3109 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3110 ;;
3111 *)
3112 enable_liboffloadmic=no
3113 ;;
3114 esac
3115fi
3116fi
3117
3118
3119
671aa708
NN
3120# Save it here so that, even in case of --enable-libgcj, if the Java
3121# front-end isn't enabled, we still get libgcj disabled.
3122libgcj_saved=$libgcj
3123case $enable_libgcj in
3124yes)
3125 # If we reset it here, it won't get added to noconfigdirs in the
3126 # target-specific build rules, so it will be forcibly enabled
3127 # (unless the Java language itself isn't enabled).
3128 libgcj=
3129 ;;
3130no)
3131 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3132 # Don't disable libffi, though, other languages use it.
3133 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3134 # Clear libgcj_saved so that even if java is enabled libffi won't be
3135 # built.
3136 libgcj_saved=
671aa708
NN
3137 ;;
3138esac
ec8d6ddc 3139
a4a2c37d
MK
3140# Check whether --enable-static-libjava was given.
3141if test "${enable_static_libjava+set}" = set; then :
3142 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3143else
3144 ENABLE_STATIC_LIBJAVA=no
3145fi
3146
3147enable_static_libjava=
3148if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3149 enable_static_libjava=yes
3150fi
3151
3152if test x$enable_static_libjava != xyes ; then
3153 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3154fi
3155
6de9cd9a 3156
27079765
AH
3157# Disable libgomp on non POSIX hosted systems.
3158if test x$enable_libgomp = x ; then
953ff289
DN
3159 # Enable libgomp by default on hosted POSIX systems.
3160 case "${target}" in
416ac4d4 3161 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3162 ;;
8c6d158a 3163 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3164 ;;
b24513a1 3165 *-*-solaris2* | *-*-hpux11*)
953ff289 3166 ;;
cac90078 3167 *-*-darwin* | *-*-aix*)
953ff289
DN
3168 ;;
3169 *)
3170 noconfigdirs="$noconfigdirs target-libgomp"
3171 ;;
3172 esac
27079765 3173fi
953ff289 3174
48310492
RH
3175# Disable libatomic on unsupported systems.
3176if test -d ${srcdir}/libatomic; then
3177 if test x$enable_libatomic = x; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3179$as_echo_n "checking for libatomic support... " >&6; }
3180 if (srcdir=${srcdir}/libatomic; \
3181 . ${srcdir}/configure.tgt; \
3182 test -n "$UNSUPPORTED")
3183 then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186 noconfigdirs="$noconfigdirs target-libatomic"
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189$as_echo "yes" >&6; }
3190 fi
3191 fi
3192fi
3193
3038054c
BI
3194# Disable libcilkrts on unsupported systems.
3195if test -d ${srcdir}/libcilkrts; then
3196 if test x$enable_libcilkrts = x; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3198$as_echo_n "checking for libcilkrts support... " >&6; }
3199 if (srcdir=${srcdir}/libcilkrts; \
3200 . ${srcdir}/configure.tgt; \
3201 test -n "$UNSUPPORTED")
3202 then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205 noconfigdirs="$noconfigdirs target-libcilkrts"
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208$as_echo "yes" >&6; }
3209 fi
3210 fi
3211fi
3212
5f520819
KY
3213# Disable liboffloadmic on unsupported systems.
3214if test -d ${srcdir}/liboffloadmic; then
3215 if test x$enable_liboffloadmic != xno; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3217$as_echo_n "checking for liboffloadmic support... " >&6; }
3218 if (srcdir=${srcdir}/liboffloadmic; \
3219 . ${srcdir}/configure.tgt; \
3220 test -n "$UNSUPPORTED")
3221 then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223$as_echo "no" >&6; }
3224 noconfigdirs="$noconfigdirs target-liboffloadmic"
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227$as_echo "yes" >&6; }
3228 fi
3229 fi
3230fi
3231
e948157d
RH
3232# Disable libitm on unsupported systems.
3233if test -d ${srcdir}/libitm; then
3234 if test x$enable_libitm = x; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3236$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3237 if (srcdir=${srcdir}/libitm; \
3238 . ${srcdir}/configure.tgt; \
3239 test -n "$UNSUPPORTED")
3240 then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3242$as_echo "no" >&6; }
e948157d
RH
3243 noconfigdirs="$noconfigdirs target-libitm"
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3246$as_echo "yes" >&6; }
e948157d
RH
3247 fi
3248 fi
0a35513e
AH
3249fi
3250
93bf5390
RH
3251# Disable libsanitizer on unsupported systems.
3252if test -d ${srcdir}/libsanitizer; then
3253 if test x$enable_libsanitizer = x; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3255$as_echo_n "checking for libsanitizer support... " >&6; }
3256 if (srcdir=${srcdir}/libsanitizer; \
3257 . ${srcdir}/configure.tgt; \
3258 test -n "$UNSUPPORTED")
3259 then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262 noconfigdirs="$noconfigdirs target-libsanitizer"
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265$as_echo "yes" >&6; }
3266 fi
3267 fi
3268fi
3269
2077db1b
CT
3270# Disable libvtv on unsupported systems.
3271if test -d ${srcdir}/libvtv; then
3272 if test x$enable_libvtv = x; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3274$as_echo_n "checking for libvtv support... " >&6; }
3275 if (srcdir=${srcdir}/libvtv; \
3276 . ${srcdir}/configure.tgt; \
1e74b850 3277 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3278 then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280$as_echo "no" >&6; }
3281 noconfigdirs="$noconfigdirs target-libvtv"
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284$as_echo "yes" >&6; }
3285 fi
3286 fi
3287fi
3288
d91491e5
SE
3289# Disable libquadmath for some systems.
3290case "${target}" in
e7fae550
DE
3291 avr-*-*)
3292 noconfigdirs="$noconfigdirs target-libquadmath"
3293 ;;
d91491e5
SE
3294 # libquadmath is unused on AIX and libquadmath build process use of
3295 # LD_LIBRARY_PATH can break AIX bootstrap.
3296 powerpc-*-aix* | rs6000-*-aix*)
3297 noconfigdirs="$noconfigdirs target-libquadmath"
3298 ;;
3299esac
3300
1e9e0e23
JM
3301# Disable libssp for some systems.
3302case "${target}" in
3303 avr-*-*)
b318fb4b 3304 # No hosted I/O support.
1e9e0e23
JM
3305 noconfigdirs="$noconfigdirs target-libssp"
3306 ;;
3307 powerpc-*-aix* | rs6000-*-aix*)
3308 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3309 ;;
3310 rl78-*-*)
7cb62ef1
EB
3311 # libssp uses a misaligned load to trigger a fault, but the RL78
3312 # doesn't fault for those - instead, it gives a build-time error
3313 # for explicit misaligned loads.
85b8555e 3314 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3315 ;;
1e9e0e23
JM
3316esac
3317
1e9e0e23 3318# Disable libstdc++-v3 for some systems.
1873ec0c
L
3319# Allow user to override this if they pass --enable-libstdc++-v3
3320if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3321 case "${target}" in
3322 *-*-vxworks*)
3323 # VxWorks uses the Dinkumware C++ library.
3324 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3325 ;;
3326 arm*-wince-pe*)
3327 # the C++ libraries don't build on top of CE's C libraries
3328 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3329 ;;
3330 avr-*-*)
3331 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3332 ;;
3333 esac
3334fi
1e9e0e23
JM
3335
3336# Disable Fortran for some systems.
3337case "${target}" in
3338 mmix-*-*)
3339 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3340 unsupported_languages="$unsupported_languages fortran"
3341 ;;
3342esac
3343
80f81134 3344# Disable Java if libffi is not supported.
2909494b 3345case "${target}" in
eb7062cf
AS
3346 aarch64-*-*)
3347 ;;
80f81134
JM
3348 alpha*-*-*)
3349 ;;
3350 arm*-*-*)
3351 ;;
3352 cris-*-*)
3353 ;;
3354 frv-*-*)
3355 ;;
3356 hppa*-*-linux*)
3357 ;;
3358 hppa*-*-hpux*)
3359 ;;
3360 i?86-*-*)
3361 ;;
3362 ia64*-*-*)
3363 ;;
3364 m32r*-*-*)
3365 ;;
3366 m68k-*-*)
3367 ;;
b24513a1 3368 mips*-*-rtems*)
80f81134
JM
3369 ;;
3370 mips*-*-linux*)
3371 ;;
3372 powerpc*-*-linux*)
3373 ;;
3374 powerpc-*-darwin*)
3375 ;;
3376 powerpc-*-aix* | rs6000-*-aix*)
3377 ;;
3378 powerpc-*-freebsd*)
3379 ;;
3380 powerpc64-*-freebsd*)
3381 ;;
3382 powerpc*-*-rtems*)
2909494b 3383 ;;
80f81134
JM
3384 s390-*-* | s390x-*-*)
3385 ;;
3386 sh-*-* | sh[34]*-*-*)
3387 ;;
3388 sh64-*-* | sh5*-*-*)
3389 ;;
3390 sparc*-*-*)
3391 ;;
3392 x86_64-*-*)
3393 ;;
3394 *-*-*)
3395 unsupported_languages="$unsupported_languages java"
3396 ;;
3397esac
3398
3399# Disable Java, libgcj or related libraries for some systems.
3400case "${target}" in
2909494b
JM
3401 powerpc-*-darwin*)
3402 ;;
3403 i[3456789]86-*-darwin*)
3404 ;;
3405 x86_64-*-darwin[912]*)
3406 ;;
3407 *-*-darwin*)
3408 noconfigdirs="$noconfigdirs ${libgcj}"
3409 ;;
2909494b
JM
3410 *-*-netware*)
3411 noconfigdirs="$noconfigdirs ${libgcj}"
3412 ;;
3413 *-*-rtems*)
3414 noconfigdirs="$noconfigdirs ${libgcj}"
3415 ;;
3416 *-*-tpf*)
3417 noconfigdirs="$noconfigdirs ${libgcj}"
3418 ;;
3419 *-*-uclinux*)
3420 noconfigdirs="$noconfigdirs ${libgcj}"
3421 ;;
3422 *-*-vxworks*)
3423 noconfigdirs="$noconfigdirs ${libgcj}"
3424 ;;
2909494b
JM
3425 alpha*-*-*vms*)
3426 noconfigdirs="$noconfigdirs ${libgcj}"
3427 ;;
80f81134 3428 arm-wince-pe)
2909494b
JM
3429 noconfigdirs="$noconfigdirs ${libgcj}"
3430 ;;
2909494b
JM
3431 arm*-*-symbianelf*)
3432 noconfigdirs="$noconfigdirs ${libgcj}"
3433 ;;
2909494b 3434 bfin-*-*)
2909494b
JM
3435 noconfigdirs="$noconfigdirs target-boehm-gc"
3436 ;;
2909494b
JM
3437 cris-*-* | crisv32-*-*)
3438 unsupported_languages="$unsupported_languages java"
3439 case "${target}" in
3440 *-*-linux*)
3441 ;;
3442 *) # See PR46792 regarding target-libffi.
3443 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3444 esac
3445 ;;
2909494b
JM
3446 hppa*64*-*-linux*)
3447 # In this case, it's because the hppa64-linux target is for
3448 # the kernel only at this point and has no libc, and thus no
3449 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3450 unsupported_languages="$unsupported_languages java"
2909494b 3451 ;;
fddf9ee7 3452 hppa*64*-*-hpux*)
2909494b
JM
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3454 ;;
3455 hppa*-hp-hpux11*)
3456 ;;
fddf9ee7 3457 hppa*-*-hpux*)
2909494b
JM
3458 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3459 # build on HP-UX 10.20.
3460 noconfigdirs="$noconfigdirs ${libgcj}"
3461 ;;
2909494b
JM
3462 ia64*-*-*vms*)
3463 noconfigdirs="$noconfigdirs ${libgcj}"
3464 ;;
2909494b
JM
3465 i[3456789]86-w64-mingw*)
3466 noconfigdirs="$noconfigdirs ${libgcj}"
3467 ;;
3468 i[3456789]86-*-mingw*)
3469 noconfigdirs="$noconfigdirs ${libgcj}"
3470 ;;
3471 x86_64-*-mingw*)
3472 noconfigdirs="$noconfigdirs ${libgcj}"
3473 ;;
2909494b
JM
3474 mmix-*-*)
3475 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3476 ;;
3477 powerpc-*-aix*)
3478 # copied from rs6000-*-* entry
3479 noconfigdirs="$noconfigdirs ${libgcj}"
3480 ;;
2909494b
JM
3481 rs6000-*-aix*)
3482 noconfigdirs="$noconfigdirs ${libgcj}"
3483 ;;
2909494b
JM
3484 *-*-lynxos*)
3485 noconfigdirs="$noconfigdirs ${libgcj}"
3486 ;;
2909494b
JM
3487esac
3488
1335a8ca
JBG
3489# Disable the go frontend on systems where it is known to not work. Please keep
3490# this in sync with contrib/config-list.mk.
74cc5471
ILT
3491case "${target}" in
3492*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3493 unsupported_languages="$unsupported_languages go"
3494 ;;
3495esac
3496
cdbc9e92
ILT
3497# Disable libgo for some systems where it is known to not work.
3498# For testing, you can easily override this with --enable-libgo.
3499if test x$enable_libgo = x; then
3500 case "${target}" in
3501 *-*-darwin*)
3502 # PR 46986
3503 noconfigdirs="$noconfigdirs target-libgo"
3504 ;;
3505 *-*-cygwin* | *-*-mingw*)
3506 noconfigdirs="$noconfigdirs target-libgo"
3507 ;;
3508 *-*-aix*)
3509 noconfigdirs="$noconfigdirs target-libgo"
3510 ;;
3511 esac
3512fi
3513
c03353e2
RIL
3514# Default libgloss CPU subdirectory.
3515libgloss_dir="$target_cpu"
6de9cd9a 3516
fbcf0dca
JM
3517case "${target}" in
3518 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3519 libgloss_dir=wince
3520 ;;
4dddfc74
YZ
3521 aarch64*-*-* )
3522 libgloss_dir=aarch64
3523 ;;
fbcf0dca
JM
3524 arm*-*-*)
3525 libgloss_dir=arm
3526 ;;
3527 cris-*-* | crisv32-*-*)
3528 libgloss_dir=cris
3529 ;;
3530 hppa*-*-*)
3531 libgloss_dir=pa
3532 ;;
3533 i[3456789]86-*-*)
3534 libgloss_dir=i386
3535 ;;
3536 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3537 libgloss_dir=m68hc11
3538 ;;
3539 m68*-*-* | fido-*-*)
3540 libgloss_dir=m68k
3541 ;;
3542 mips*-*-*)
3543 libgloss_dir=mips
3544 ;;
3545 powerpc*-*-*)
3546 libgloss_dir=rs6000
3547 ;;
3548 sparc*-*-*)
3549 libgloss_dir=sparc
3550 ;;
3551esac
3552
6a789d5e 3553# Disable newlib and libgloss for various target OSes.
671aa708 3554case "${target}" in
6a789d5e
JM
3555 alpha*-dec-osf*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 i[3456789]86-*-linux*)
3559 # This section makes it possible to build newlib natively on linux.
3560 # If we are using a cross compiler then don't configure newlib.
3561 if test x${is_cross_compiler} != xno ; then
3562 noconfigdirs="$noconfigdirs target-newlib"
3563 fi
3564 noconfigdirs="$noconfigdirs target-libgloss"
3565 # If we are not using a cross compiler, do configure newlib.
3566 # Note however, that newlib will only be configured in this situation
3567 # if the --with-newlib option has been given, because otherwise
3568 # 'target-newlib' will appear in skipdirs.
3569 ;;
3570 i[3456789]86-*-rdos*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 sparc-*-sunos4*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 *-*-aix*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-beos*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
671aa708 3585 *-*-chorusos)
0036370f 3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3587 ;;
6a789d5e
JM
3588 *-*-dragonfly*)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 *-*-freebsd*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 *-*-lynxos*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 *-*-mingw*)
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 ;;
3603 *-*-netbsd*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 *-*-netware*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 *-*-tpf*)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 ;;
3612 *-*-uclinux*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 ;;
3615 *-*-vxworks*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 ;;
3618esac
3619
3620case "${target}" in
3621 *-*-chorusos)
3622 ;;
75eeae1a 3623 powerpc-*-darwin*)
e1514c3f 3624 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3625 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3626 ;;
354ebf88
RW
3627 i[3456789]86-*-darwin*)
3628 noconfigdirs="$noconfigdirs ld gprof"
3629 noconfigdirs="$noconfigdirs sim target-rda"
3630 ;;
3631 x86_64-*-darwin[912]*)
0db3a858
TG
3632 noconfigdirs="$noconfigdirs ld gas gprof"
3633 noconfigdirs="$noconfigdirs sim target-rda"
3634 ;;
42c1cd8a
AT
3635 *-*-darwin*)
3636 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3637 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3638 ;;
8c6d158a 3639 *-*-dragonfly*)
8c6d158a 3640 ;;
c3f84f61 3641 *-*-freebsd*)
6de9cd9a
DN
3642 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3643 && test -f /usr/local/include/gmp.h; then
3644 with_gmp=/usr/local
3645 fi
6de9cd9a 3646 ;;
ef4e7569
US
3647 *-*-kaos*)
3648 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3649 noconfigdirs="$noconfigdirs target-libgloss"
3650 ;;
671aa708 3651 *-*-netbsd*)
671aa708 3652 ;;
61fec9ff 3653 *-*-netware*)
671aa708
NN
3654 ;;
3655 *-*-rtems*)
2909494b 3656 noconfigdirs="$noconfigdirs target-libgloss"
d896cc4d
JBG
3657 # this is not caught below because this stanza matches earlier
3658 case $target in
3659 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3660 esac
671aa708 3661 ;;
a8ba31f2
EC
3662 # The tpf target doesn't support gdb yet.
3663 *-*-tpf*)
6a789d5e 3664 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3665 ;;
5785c0ed 3666 *-*-uclinux*)
6a789d5e 3667 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3668 ;;
671aa708 3669 *-*-vxworks*)
671aa708
NN
3670 ;;
3671 alpha*-dec-osf*)
3672 # ld works, but does not support shared libraries.
671aa708 3673 # gas doesn't generate exception information.
6a789d5e 3674 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3675 ;;
3676 alpha*-*-*vms*)
2909494b 3677 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3678 ;;
671aa708
NN
3679 alpha*-*-*)
3680 # newlib is not 64 bit ready
2909494b 3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3682 ;;
671aa708 3683 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3684 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3685 ;;
53426f6c 3686 arc-*-*|arceb-*-*)
ebb9f8b0 3687 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3688 ;;
671aa708 3689 arm-*-pe*)
2909494b 3690 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3691 ;;
671aa708 3692 arm-*-riscix*)
0036370f 3693 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3694 ;;
b588ae30
GJL
3695 avr-*-rtems*)
3696 ;;
3697 avr-*-*)
3698 if test x${with_avrlibc} != xno; then
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 fi
3701 ;;
671aa708 3702 c4x-*-* | tic4x-*-*)
0036370f 3703 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3704 ;;
0036370f
JM
3705 tic54x-*-*)
3706 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3707 ;;
671aa708 3708 d10v-*-*)
0036370f 3709 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3710 ;;
3711 d30v-*-*)
0036370f 3712 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3713 ;;
3714 fr30-*-elf*)
2909494b 3715 noconfigdirs="$noconfigdirs gdb"
671aa708 3716 ;;
55f2d967 3717 moxie-*-*)
55f2d967
AG
3718 noconfigdirs="$noconfigdirs gprof"
3719 ;;
671aa708 3720 h8300*-*-*)
2909494b 3721 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3722 ;;
3723 h8500-*-*)
0036370f 3724 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3725 ;;
ee6a22df 3726 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3727 ;;
4569f85e 3728 hppa*64*-*-linux*)
671aa708 3729 ;;
56f8587a 3730 hppa*-*-linux*)
3e732ba0 3731 ;;
671aa708 3732 hppa*-*-*elf* | \
671aa708
NN
3733 hppa*-*-lites* | \
3734 hppa*-*-openbsd* | \
3735 hppa*64*-*-*)
671aa708 3736 ;;
2a332582 3737 hppa*-hp-hpux11*)
1bcce263 3738 noconfigdirs="$noconfigdirs ld"
2a332582 3739 ;;
c03353e2 3740 hppa*-*-pro*)
c03353e2 3741 ;;
671aa708 3742 hppa*-*-*)
2909494b 3743 noconfigdirs="$noconfigdirs ld"
671aa708 3744 ;;
fb87ad5d 3745 i960-*-*)
0036370f 3746 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3747 ;;
671aa708
NN
3748 ia64*-*-elf*)
3749 # No gdb support yet.
1bcce263 3750 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3751 ;;
3752 ia64*-**-hpux*)
5a2931d1 3753 # No ld support yet.
2909494b 3754 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3755 ;;
52535a64 3756 ia64*-*-*vms*)
091fe9ca
TG
3757 # No ld support yet.
3758 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3759 ;;
ef4c4300 3760 i[3456789]86-w64-mingw*)
ef4c4300
KT
3761 ;;
3762 i[3456789]86-*-mingw*)
b91f0a41 3763 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3764 ;;
671aa708
NN
3765 *-*-cygwin*)
3766 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3767 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3768 # always build newlib if winsup directory is present.
b91f0a41 3769 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3770 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3771 elif test -d "$srcdir/newlib"; then
b91f0a41 3772 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3773 fi
1c710c3c 3774 ;;
f2a0e225 3775 i[3456789]86-*-pe)
ebb9f8b0 3776 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3777 ;;
f2a0e225 3778 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3779 # The linker does not yet know about weak symbols in COFF,
3780 # and is not configured to handle mixed ELF and COFF.
0036370f 3781 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3782 ;;
f2a0e225 3783 i[3456789]86-*-sco*)
0036370f 3784 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3785 ;;
fbdd5d87 3786 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3787 noconfigdirs="$noconfigdirs target-libgloss"
3788 ;;
f2a0e225 3789 i[3456789]86-*-sysv4*)
0036370f 3790 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3791 ;;
f2a0e225 3792 i[3456789]86-*-beos*)
6a789d5e 3793 noconfigdirs="$noconfigdirs gdb"
3aa83176 3794 ;;
d1f8db0c 3795 i[3456789]86-*-rdos*)
6a789d5e 3796 noconfigdirs="$noconfigdirs gdb"
c03353e2 3797 ;;
671aa708 3798 mmix-*-*)
2909494b 3799 noconfigdirs="$noconfigdirs gdb"
671aa708 3800 ;;
ab34901f 3801 mt-*-*)
79dd769c
AH
3802 noconfigdirs="$noconfigdirs sim"
3803 ;;
671aa708
NN
3804 powerpc-*-aix*)
3805 # copied from rs6000-*-* entry
6a789d5e 3806 noconfigdirs="$noconfigdirs gprof"
671aa708 3807 ;;
4569f85e 3808 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3809 target_configdirs="$target_configdirs target-winsup"
0036370f 3810 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3811 # always build newlib.
3812 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3813 ;;
3814 # This is temporary until we can link against shared libraries
3815 powerpcle-*-solaris*)
0036370f 3816 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3817 ;;
3818 powerpc-*-beos*)
6a789d5e 3819 noconfigdirs="$noconfigdirs gdb"
671aa708 3820 ;;
671aa708 3821 rs6000-*-lynxos*)
6a789d5e 3822 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3823 ;;
3824 rs6000-*-aix*)
6a789d5e 3825 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3826 ;;
3827 rs6000-*-*)
2909494b 3828 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3829 ;;
3830 m68k-apollo-*)
0036370f 3831 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3832 ;;
ca9fe997 3833 microblaze*)
2909494b 3834 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3835 ;;
d896cc4d 3836 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3837 if test x$with_newlib = xyes; then
3838 noconfigdirs="$noconfigdirs gprof"
3839 fi
d9dced13 3840 ;;
671aa708 3841 mips*-*-irix5*)
0036370f 3842 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3843 ;;
3844 mips*-*-irix6*)
2909494b 3845 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3846 ;;
671aa708 3847 mips*-*-bsd*)
bc98bcc4 3848 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3849 ;;
671aa708 3850 mips*-*-linux*)
671aa708 3851 ;;
bc98bcc4
JBG
3852 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3853 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3854 noconfigdirs="$noconfigdirs ld gas gprof"
3855 ;;
671aa708 3856 mips*-*-*)
2909494b 3857 noconfigdirs="$noconfigdirs gprof"
671aa708 3858 ;;
d896cc4d
JBG
3859 nds32*-*-*)
3860 noconfigdirs="$noconfigdirs gdb"
3861 ;;
738f2522
BS
3862 nvptx*-*-*)
3863 # nvptx is just a compiler
3864 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3865 ;;
d896cc4d
JBG
3866 or1k*-*-*)
3867 noconfigdirs="$noconfigdirs gdb"
3868 ;;
669f01d8 3869 sh-*-* | sh64-*-*)
ea2002ba
CB
3870 case "${target}" in
3871 sh*-*-elf)
2909494b 3872 ;;
ea2002ba 3873 *)
2909494b 3874 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3875 esac
671aa708 3876 ;;
671aa708 3877 sparc-*-sunos4*)
6a789d5e 3878 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3879 use_gnu_ld=no
3880 fi
3881 ;;
b42f0d7e 3882 tic6x-*-*)
0d557ff8 3883 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3884 ;;
341c653c 3885 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3886 noconfigdirs="$noconfigdirs sim"
3887 ;;
671aa708 3888 v810-*-*)
0036370f 3889 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3890 ;;
3891 vax-*-*)
2909494b 3892 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3893 ;;
671aa708 3894esac
79c06341 3895
671aa708
NN
3896# If we aren't building newlib, then don't build libgloss, since libgloss
3897# depends upon some newlib header files.
3898case "${noconfigdirs}" in
3899 *target-libgloss*) ;;
3900 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3901esac
3902
671aa708 3903# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3904host_makefile_frag=/dev/null
3905if test -d ${srcdir}/config ; then
3906case "${host}" in
f2a0e225 3907 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3908 host_makefile_frag="config/mh-djgpp"
3909 ;;
3910 *-cygwin*)
2a79c47f 3911
5213506e
RW
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3913$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3914echo a >cygwin-cat-check
e25a8c82 3915if test `cat cygwin-cat-check` = a ; then
2a79c47f 3916 rm cygwin-cat-check
5213506e
RW
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3918$as_echo "yes" >&6; }
2a79c47f
NC
3919else
3920 rm cygwin-cat-check
5213506e
RW
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
3923 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3924 Please either mount the build directory in binary mode or run the following
3925 commands before running any configure script:
3926set -o igncr
3927export SHELLOPTS
5213506e 3928 " "$LINENO" 5
2a79c47f
NC
3929fi
3930
671aa708
NN
3931 host_makefile_frag="config/mh-cygwin"
3932 ;;
c53a18d3 3933 *-mingw*)
1f5a6b84 3934 host_makefile_frag="config/mh-mingw"
95af8923 3935 ;;
7b7f941a
UB
3936 alpha*-*-linux*)
3937 host_makefile_frag="config/mh-alpha-linux"
3938 ;;
efd41714 3939 hppa*-hp-hpux10*)
efd41714 3940 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3941 ;;
111eeb6e 3942 hppa*-hp-hpux*)
efd41714
PB
3943 host_makefile_frag="config/mh-pa"
3944 ;;
3945 hppa*-*)
3946 host_makefile_frag="config/mh-pa"
3947 ;;
d8ed14ce
IS
3948 *-*-darwin*)
3949 host_makefile_frag="config/mh-darwin"
be8fff81 3950 ;;
d19bca38
PB
3951 powerpc-*-aix*)
3952 host_makefile_frag="config/mh-ppc-aix"
3953 ;;
3954 rs6000-*-aix*)
3955 host_makefile_frag="config/mh-ppc-aix"
3956 ;;
671aa708
NN
3957esac
3958fi
3959
55ffb5ed 3960if test "${build}" != "${host}" ; then
0999159b
PB
3961 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3962 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3963 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3964 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3965 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3966 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3967 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3968 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3969 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3970 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3971 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3972 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3973 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3974else
3975 AR_FOR_BUILD="\$(AR)"
3976 AS_FOR_BUILD="\$(AS)"
fb0103e5 3977 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3978 CXX_FOR_BUILD="\$(CXX)"
3979 GCJ_FOR_BUILD="\$(GCJ)"
3980 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3981 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3982 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3983 LD_FOR_BUILD="\$(LD)"
3984 NM_FOR_BUILD="\$(NM)"
3985 RANLIB_FOR_BUILD="\$(RANLIB)"
3986 WINDRES_FOR_BUILD="\$(WINDRES)"
3987 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3988fi
3989
3990ac_ext=c
1c710c3c
DJ
3991ac_cpp='$CPP $CPPFLAGS'
3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3997set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999$as_echo_n "checking for $ac_word... " >&6; }
4000if test "${ac_cv_prog_CC+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4002else
4003 if test -n "$CC"; then
4004 ac_cv_prog_CC="$CC" # Let the user override the test.
4005else
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
5213506e
RW
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4015 break 2
4016 fi
4017done
5213506e
RW
4018 done
4019IFS=$as_save_IFS
1c710c3c
DJ
4020
4021fi
4022fi
4023CC=$ac_cv_prog_CC
4024if test -n "$CC"; then
5213506e
RW
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4026$as_echo "$CC" >&6; }
1c710c3c 4027else
5213506e
RW
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029$as_echo "no" >&6; }
1c710c3c
DJ
4030fi
4031
5213506e 4032
1c710c3c
DJ
4033fi
4034if test -z "$ac_cv_prog_CC"; then
4035 ac_ct_CC=$CC
fb0103e5
RG
4036 # Extract the first word of "gcc", so it can be a program name with args.
4037set dummy gcc; ac_word=$2
5213506e
RW
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039$as_echo_n "checking for $ac_word... " >&6; }
4040if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4042else
4043 if test -n "$ac_ct_CC"; then
4044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4045else
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
5213506e
RW
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4053 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4055 break 2
4056 fi
4057done
5213506e
RW
4058 done
4059IFS=$as_save_IFS
1c710c3c
DJ
4060
4061fi
4062fi
4063ac_ct_CC=$ac_cv_prog_ac_ct_CC
4064if test -n "$ac_ct_CC"; then
5213506e
RW
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4066$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4067else
5213506e
RW
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069$as_echo "no" >&6; }
1c710c3c
DJ
4070fi
4071
5213506e
RW
4072 if test "x$ac_ct_CC" = x; then
4073 CC=""
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076yes:)
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079ac_tool_warned=yes ;;
4080esac
4081 CC=$ac_ct_CC
4082 fi
1c710c3c
DJ
4083else
4084 CC="$ac_cv_prog_CC"
4085fi
4086
4087if test -z "$CC"; then
5213506e
RW
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4090set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092$as_echo_n "checking for $ac_word... " >&6; }
4093if test "${ac_cv_prog_CC+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4095else
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4098else
1c710c3c
DJ
4099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100for as_dir in $PATH
4101do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
5213506e
RW
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4106 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4108 break 2
4109 fi
4110done
5213506e
RW
4111 done
4112IFS=$as_save_IFS
1c710c3c 4113
0b0dc272 4114fi
0b0dc272 4115fi
1c710c3c 4116CC=$ac_cv_prog_CC
af71363e 4117if test -n "$CC"; then
5213506e
RW
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119$as_echo "$CC" >&6; }
2aeb72e9 4120else
5213506e
RW
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122$as_echo "no" >&6; }
2aeb72e9
DD
4123fi
4124
2aeb72e9 4125
5213506e 4126 fi
1c710c3c 4127fi
55ffb5ed
NN
4128if test -z "$CC"; then
4129 # Extract the first word of "cc", so it can be a program name with args.
4130set dummy cc; ac_word=$2
5213506e
RW
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132$as_echo_n "checking for $ac_word... " >&6; }
4133if test "${ac_cv_prog_CC+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4135else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138else
0b0dc272 4139 ac_prog_rejected=no
1c710c3c
DJ
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
5213506e
RW
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4148 ac_prog_rejected=yes
4149 continue
4150 fi
4151 ac_cv_prog_CC="cc"
5213506e 4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4153 break 2
4154 fi
4155done
5213506e
RW
4156 done
4157IFS=$as_save_IFS
1c710c3c 4158
55ffb5ed
NN
4159if test $ac_prog_rejected = yes; then
4160 # We found a bogon in the path, so make sure we never use it.
4161 set dummy $ac_cv_prog_CC
4162 shift
1c710c3c 4163 if test $# != 0; then
55ffb5ed
NN
4164 # We chose a different compiler from the bogus one.
4165 # However, it has the same basename, so the bogon will be chosen
4166 # first if we set CC to just the basename; use the full file name.
4167 shift
1c710c3c 4168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4169 fi
4170fi
4171fi
4172fi
1c710c3c 4173CC=$ac_cv_prog_CC
55ffb5ed 4174if test -n "$CC"; then
5213506e
RW
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176$as_echo "$CC" >&6; }
55ffb5ed 4177else
5213506e
RW
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179$as_echo "no" >&6; }
55ffb5ed
NN
4180fi
4181
5213506e 4182
1c710c3c
DJ
4183fi
4184if test -z "$CC"; then
4185 if test -n "$ac_tool_prefix"; then
5213506e 4186 for ac_prog in cl.exe
1c710c3c
DJ
4187 do
4188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191$as_echo_n "checking for $ac_word... " >&6; }
4192if test "${ac_cv_prog_CC+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4194else
4195 if test -n "$CC"; then
4196 ac_cv_prog_CC="$CC" # Let the user override the test.
4197else
1c710c3c
DJ
4198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH
4200do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
5213506e
RW
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4207 break 2
4208 fi
4209done
5213506e
RW
4210 done
4211IFS=$as_save_IFS
1c710c3c 4212
55ffb5ed
NN
4213fi
4214fi
1c710c3c 4215CC=$ac_cv_prog_CC
55ffb5ed 4216if test -n "$CC"; then
5213506e
RW
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4218$as_echo "$CC" >&6; }
a4b9e93e 4219else
5213506e
RW
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221$as_echo "no" >&6; }
fb0103e5 4222fi
af71363e 4223
5213506e 4224
1c710c3c
DJ
4225 test -n "$CC" && break
4226 done
af71363e 4227fi
1c710c3c
DJ
4228if test -z "$CC"; then
4229 ac_ct_CC=$CC
5213506e 4230 for ac_prog in cl.exe
1c710c3c
DJ
4231do
4232 # Extract the first word of "$ac_prog", so it can be a program name with args.
4233set dummy $ac_prog; ac_word=$2
5213506e
RW
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235$as_echo_n "checking for $ac_word... " >&6; }
4236if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
0b0dc272 4238else
1c710c3c
DJ
4239 if test -n "$ac_ct_CC"; then
4240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4241else
1c710c3c
DJ
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
5213506e
RW
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4249 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4251 break 2
4252 fi
4253done
5213506e
RW
4254 done
4255IFS=$as_save_IFS
1c710c3c 4256
af71363e
AS
4257fi
4258fi
1c710c3c
DJ
4259ac_ct_CC=$ac_cv_prog_ac_ct_CC
4260if test -n "$ac_ct_CC"; then
5213506e
RW
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4262$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4263else
5213506e
RW
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265$as_echo "no" >&6; }
af71363e 4266fi
0b0dc272 4267
5213506e 4268
1c710c3c
DJ
4269 test -n "$ac_ct_CC" && break
4270done
4271
5213506e
RW
4272 if test "x$ac_ct_CC" = x; then
4273 CC=""
4274 else
4275 case $cross_compiling:$ac_tool_warned in
4276yes:)
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279ac_tool_warned=yes ;;
4280esac
4281 CC=$ac_ct_CC
4282 fi
1c710c3c
DJ
4283fi
4284
4285fi
4286
4287
5213506e
RW
4288test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4290as_fn_error "no acceptable C compiler found in \$PATH
4291See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4292
4293# Provide some information about the compiler.
5213506e
RW
4294$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4295set X $ac_compile
4296ac_compiler=$2
4297for ac_option in --version -v -V -qversion; do
4298 { { ac_try="$ac_compiler $ac_option >&5"
4299case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302esac
4303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304$as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4306 ac_status=$?
5213506e
RW
4307 if test -s conftest.err; then
4308 sed '10a\
4309... rest of stderr output deleted ...
4310 10q' conftest.err >conftest.er1
4311 cat conftest.er1 >&5
4312 rm -f conftest.er1 conftest.err
4313 fi
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }
4316done
1c710c3c 4317
5213506e 4318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4319/* end confdefs.h. */
4320
4321int
4322main ()
4323{
4324
4325 ;
4326 return 0;
4327}
4328_ACEOF
4329ac_clean_files_save=$ac_clean_files
5213506e 4330ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4331# Try to create an executable without -o first, disregard a.out.
4332# It will help us diagnose broken compilers, and finding out an intuition
4333# of exeext.
5213506e
RW
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4335$as_echo_n "checking for C compiler default output file name... " >&6; }
4336ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4337
4338# The possible output files:
4339ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4340
4341ac_rmfiles=
4342for ac_file in $ac_files
4343do
4344 case $ac_file in
4345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4346 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4347 esac
4348done
4349rm -f $ac_rmfiles
4350
4351if { { ac_try="$ac_link_default"
4352case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355esac
4356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4357$as_echo "$ac_try_echo"; } >&5
4358 (eval "$ac_link_default") 2>&5
1c710c3c 4359 ac_status=$?
5213506e
RW
4360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4361 test $ac_status = 0; }; then :
4362 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4363# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4364# in a Makefile. We should not override ac_cv_exeext if it was cached,
4365# so that the user can short-circuit this test for compilers unknown to
4366# Autoconf.
4367for ac_file in $ac_files ''
1c710c3c
DJ
4368do
4369 test -f "$ac_file" || continue
4370 case $ac_file in
5213506e 4371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4372 ;;
4373 [ab].out )
4374 # We found the default executable, but exeext='' is most
4375 # certainly right.
4376 break;;
4377 *.* )
5213506e
RW
4378 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4379 then :; else
4380 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4381 fi
4382 # We set ac_cv_exeext here because the later test for it is not
4383 # safe: cross compilers may not add the suffix if given an `-o'
4384 # argument, so we may need to know it at that point already.
4385 # Even if this section looks crufty: it has the advantage of
4386 # actually working.
1c710c3c
DJ
4387 break;;
4388 * )
4389 break;;
4390 esac
4391done
5213506e
RW
4392test "$ac_cv_exeext" = no && ac_cv_exeext=
4393
1c710c3c 4394else
5213506e
RW
4395 ac_file=''
4396fi
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4398$as_echo "$ac_file" >&6; }
4399if test -z "$ac_file"; then :
4400 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
5213506e
RW
4403{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405{ as_fn_set_status 77
4406as_fn_error "C compiler cannot create executables
4407See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4408fi
1c710c3c 4409ac_exeext=$ac_cv_exeext
1c710c3c 4410
5213506e 4411# Check that the compiler produces executables we can run. If not, either
1c710c3c 4412# the compiler is broken, or we cross compile.
5213506e
RW
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4414$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4415# If not cross compiling, check that we can run a simple program.
4416if test "$cross_compiling" != yes; then
4417 if { ac_try='./$ac_file'
5213506e
RW
4418 { { case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421esac
4422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423$as_echo "$ac_try_echo"; } >&5
4424 (eval "$ac_try") 2>&5
1c710c3c 4425 ac_status=$?
5213506e
RW
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }; }; then
1c710c3c
DJ
4428 cross_compiling=no
4429 else
4430 if test "$cross_compiling" = maybe; then
4431 cross_compiling=yes
4432 else
5213506e
RW
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435as_fn_error "cannot run C compiled programs.
1c710c3c 4436If you meant to cross compile, use \`--host'.
5213506e 4437See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4438 fi
4439 fi
4440fi
5213506e
RW
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442$as_echo "yes" >&6; }
1c710c3c 4443
5213506e 4444rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4445ac_clean_files=$ac_clean_files_save
5213506e 4446# Check that the compiler produces executables we can run. If not, either
1c710c3c 4447# the compiler is broken, or we cross compile.
5213506e
RW
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4449$as_echo_n "checking whether we are cross compiling... " >&6; }
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4451$as_echo "$cross_compiling" >&6; }
4452
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4454$as_echo_n "checking for suffix of executables... " >&6; }
4455if { { ac_try="$ac_link"
4456case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459esac
4460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461$as_echo "$ac_try_echo"; } >&5
4462 (eval "$ac_link") 2>&5
1c710c3c 4463 ac_status=$?
5213506e
RW
4464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465 test $ac_status = 0; }; then :
1c710c3c
DJ
4466 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4467# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4468# work properly (i.e., refer to `conftest.exe'), while it won't with
4469# `rm'.
4470for ac_file in conftest.exe conftest conftest.*; do
4471 test -f "$ac_file" || continue
4472 case $ac_file in
5213506e 4473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4474 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4475 break;;
4476 * ) break;;
4477 esac
4478done
af71363e 4479else
5213506e
RW
4480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4482as_fn_error "cannot compute suffix of executables: cannot compile and link
4483See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4484fi
1c710c3c 4485rm -f conftest$ac_cv_exeext
5213506e
RW
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4487$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4488
4489rm -f conftest.$ac_ext
4490EXEEXT=$ac_cv_exeext
4491ac_exeext=$EXEEXT
5213506e
RW
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4493$as_echo_n "checking for suffix of object files... " >&6; }
4494if test "${ac_cv_objext+set}" = set; then :
4495 $as_echo_n "(cached) " >&6
1c710c3c 4496else
5213506e 4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4498/* end confdefs.h. */
4499
4500int
4501main ()
4502{
4503
4504 ;
4505 return 0;
4506}
4507_ACEOF
4508rm -f conftest.o conftest.obj
5213506e
RW
4509if { { ac_try="$ac_compile"
4510case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513esac
4514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515$as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_compile") 2>&5
1c710c3c 4517 ac_status=$?
5213506e
RW
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; then :
4520 for ac_file in conftest.o conftest.obj conftest.*; do
4521 test -f "$ac_file" || continue;
1c710c3c 4522 case $ac_file in
5213506e 4523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4525 break;;
4526 esac
4527done
4528else
5213506e 4529 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4530sed 's/^/| /' conftest.$ac_ext >&5
4531
5213506e
RW
4532{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4534as_fn_error "cannot compute suffix of object files: cannot compile
4535See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4536fi
1c710c3c
DJ
4537rm -f conftest.$ac_cv_objext conftest.$ac_ext
4538fi
5213506e
RW
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4540$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4541OBJEXT=$ac_cv_objext
4542ac_objext=$OBJEXT
5213506e
RW
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4544$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4545if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
1c710c3c 4547else
5213506e 4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4549/* end confdefs.h. */
4550
4551int
4552main ()
4553{
4554#ifndef __GNUC__
4555 choke me
4556#endif
4557
4558 ;
4559 return 0;
4560}
4561_ACEOF
5213506e 4562if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4563 ac_compiler_gnu=yes
4564else
5213506e 4565 ac_compiler_gnu=no
1c710c3c 4566fi
5213506e 4567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4568ac_cv_c_compiler_gnu=$ac_compiler_gnu
4569
4570fi
5213506e
RW
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4572$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4573if test $ac_compiler_gnu = yes; then
4574 GCC=yes
4575else
4576 GCC=
4577fi
1c710c3c
DJ
4578ac_test_CFLAGS=${CFLAGS+set}
4579ac_save_CFLAGS=$CFLAGS
5213506e
RW
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4581$as_echo_n "checking whether $CC accepts -g... " >&6; }
4582if test "${ac_cv_prog_cc_g+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584else
4585 ac_save_c_werror_flag=$ac_c_werror_flag
4586 ac_c_werror_flag=yes
4587 ac_cv_prog_cc_g=no
4588 CFLAGS="-g"
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4590/* end confdefs.h. */
4591
4592int
4593main ()
4594{
4595
4596 ;
4597 return 0;
4598}
4599_ACEOF
5213506e 4600if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4601 ac_cv_prog_cc_g=yes
4602else
5213506e
RW
4603 CFLAGS=""
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605/* end confdefs.h. */
4606
4607int
4608main ()
4609{
4610
4611 ;
4612 return 0;
4613}
4614_ACEOF
4615if ac_fn_c_try_compile "$LINENO"; then :
4616
4617else
4618 ac_c_werror_flag=$ac_save_c_werror_flag
4619 CFLAGS="-g"
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621/* end confdefs.h. */
af71363e 4622
5213506e
RW
4623int
4624main ()
4625{
4626
4627 ;
4628 return 0;
4629}
4630_ACEOF
4631if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_prog_cc_g=yes
4633fi
4634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4635fi
5213506e 4636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4637fi
5213506e
RW
4638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 ac_c_werror_flag=$ac_save_c_werror_flag
4640fi
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4642$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4643if test "$ac_test_CFLAGS" = set; then
1c710c3c 4644 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4645elif test $ac_cv_prog_cc_g = yes; then
4646 if test "$GCC" = yes; then
4647 CFLAGS="-g -O2"
4648 else
4649 CFLAGS="-g"
4650 fi
4651else
4652 if test "$GCC" = yes; then
4653 CFLAGS="-O2"
4654 else
4655 CFLAGS=
4656 fi
4657fi
5213506e
RW
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4659$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4660if test "${ac_cv_prog_cc_c89+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
1c710c3c 4662else
5213506e 4663 ac_cv_prog_cc_c89=no
1c710c3c 4664ac_save_CC=$CC
5213506e 4665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4666/* end confdefs.h. */
4667#include <stdarg.h>
4668#include <stdio.h>
4669#include <sys/types.h>
4670#include <sys/stat.h>
4671/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4672struct buf { int x; };
4673FILE * (*rcsopen) (struct buf *, struct stat *, int);
4674static char *e (p, i)
4675 char **p;
4676 int i;
4677{
4678 return p[i];
4679}
4680static char *f (char * (*g) (char **, int), char **p, ...)
4681{
4682 char *s;
4683 va_list v;
4684 va_start (v,p);
4685 s = g (p, va_arg (v,int));
4686 va_end (v);
4687 return s;
4688}
4689
4690/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4691 function prototypes and stuff, but not '\xHH' hex character constants.
4692 These don't provoke an error unfortunately, instead are silently treated
5213506e 4693 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4695 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4696 that's true only with -std. */
1c710c3c
DJ
4697int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4698
5213506e
RW
4699/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4700 inside strings and character constants. */
4701#define FOO(x) 'x'
4702int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4703
1c710c3c
DJ
4704int test (int i, double x);
4705struct s1 {int (*f) (int a);};
4706struct s2 {int (*f) (double a);};
4707int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4708int argc;
4709char **argv;
4710int
4711main ()
4712{
4713return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4714 ;
4715 return 0;
4716}
4717_ACEOF
5213506e
RW
4718for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4720do
4721 CC="$ac_save_CC $ac_arg"
5213506e
RW
4722 if ac_fn_c_try_compile "$LINENO"; then :
4723 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4724fi
5213506e
RW
4725rm -f core conftest.err conftest.$ac_objext
4726 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4727done
5213506e 4728rm -f conftest.$ac_ext
1c710c3c
DJ
4729CC=$ac_save_CC
4730
4731fi
5213506e
RW
4732# AC_CACHE_VAL
4733case "x$ac_cv_prog_cc_c89" in
4734 x)
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4736$as_echo "none needed" >&6; } ;;
4737 xno)
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4739$as_echo "unsupported" >&6; } ;;
1c710c3c 4740 *)
5213506e
RW
4741 CC="$CC $ac_cv_prog_cc_c89"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4743$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4744esac
5213506e 4745if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4746
2aeb72e9
DD
4747fi
4748
2aeb72e9
DD
4749ac_ext=c
4750ac_cpp='$CPP $CPPFLAGS'
4751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754
5213506e 4755ac_ext=cpp
2aeb72e9
DD
4756ac_cpp='$CXXCPP $CPPFLAGS'
4757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4760if test -z "$CXX"; then
4761 if test -n "$CCC"; then
4762 CXX=$CCC
4763 else
4764 if test -n "$ac_tool_prefix"; then
4765 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4766 do
4767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4768set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770$as_echo_n "checking for $ac_word... " >&6; }
4771if test "${ac_cv_prog_CXX+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4773else
4774 if test -n "$CXX"; then
4775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4776else
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
5213506e
RW
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4786 break 2
4787 fi
4788done
5213506e
RW
4789 done
4790IFS=$as_save_IFS
55ffb5ed 4791
c3a86da9
DJ
4792fi
4793fi
4794CXX=$ac_cv_prog_CXX
4795if test -n "$CXX"; then
5213506e
RW
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4797$as_echo "$CXX" >&6; }
c3a86da9 4798else
5213506e
RW
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800$as_echo "no" >&6; }
c3a86da9
DJ
4801fi
4802
5213506e 4803
c3a86da9
DJ
4804 test -n "$CXX" && break
4805 done
4806fi
4807if test -z "$CXX"; then
4808 ac_ct_CXX=$CXX
5213506e 4809 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4810do
4811 # Extract the first word of "$ac_prog", so it can be a program name with args.
4812set dummy $ac_prog; ac_word=$2
5213506e
RW
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814$as_echo_n "checking for $ac_word... " >&6; }
4815if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4817else
4818 if test -n "$ac_ct_CXX"; then
4819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
5213506e
RW
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4828 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4830 break 2
4831 fi
4832done
5213506e
RW
4833 done
4834IFS=$as_save_IFS
c3a86da9
DJ
4835
4836fi
4837fi
4838ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4839if test -n "$ac_ct_CXX"; then
5213506e
RW
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4841$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4842else
5213506e
RW
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844$as_echo "no" >&6; }
c3a86da9
DJ
4845fi
4846
5213506e 4847
c3a86da9
DJ
4848 test -n "$ac_ct_CXX" && break
4849done
c3a86da9 4850
5213506e
RW
4851 if test "x$ac_ct_CXX" = x; then
4852 CXX="g++"
4853 else
4854 case $cross_compiling:$ac_tool_warned in
4855yes:)
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858ac_tool_warned=yes ;;
4859esac
4860 CXX=$ac_ct_CXX
4861 fi
c3a86da9
DJ
4862fi
4863
5213506e
RW
4864 fi
4865fi
c3a86da9 4866# Provide some information about the compiler.
5213506e
RW
4867$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4868set X $ac_compile
4869ac_compiler=$2
4870for ac_option in --version -v -V -qversion; do
4871 { { ac_try="$ac_compiler $ac_option >&5"
4872case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875esac
4876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4877$as_echo "$ac_try_echo"; } >&5
4878 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4879 ac_status=$?
5213506e
RW
4880 if test -s conftest.err; then
4881 sed '10a\
4882... rest of stderr output deleted ...
4883 10q' conftest.err >conftest.er1
4884 cat conftest.er1 >&5
4885 rm -f conftest.er1 conftest.err
4886 fi
4887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4888 test $ac_status = 0; }
4889done
c3a86da9 4890
5213506e
RW
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4892$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4893if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
c3a86da9 4895else
5213506e 4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4897/* end confdefs.h. */
4898
4899int
4900main ()
4901{
4902#ifndef __GNUC__
4903 choke me
4904#endif
4905
4906 ;
4907 return 0;
4908}
4909_ACEOF
5213506e 4910if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4911 ac_compiler_gnu=yes
4912else
5213506e 4913 ac_compiler_gnu=no
c3a86da9 4914fi
5213506e 4915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4916ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4917
4918fi
5213506e
RW
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4920$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4921if test $ac_compiler_gnu = yes; then
4922 GXX=yes
4923else
4924 GXX=
4925fi
c3a86da9
DJ
4926ac_test_CXXFLAGS=${CXXFLAGS+set}
4927ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4929$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4930if test "${ac_cv_prog_cxx_g+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
4932else
4933 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4934 ac_cxx_werror_flag=yes
4935 ac_cv_prog_cxx_g=no
4936 CXXFLAGS="-g"
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4938/* end confdefs.h. */
4939
4940int
4941main ()
4942{
4943
4944 ;
4945 return 0;
4946}
4947_ACEOF
5213506e 4948if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4949 ac_cv_prog_cxx_g=yes
4950else
5213506e
RW
4951 CXXFLAGS=""
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4953/* end confdefs.h. */
5213506e 4954
c3a86da9
DJ
4955int
4956main ()
4957{
5213506e 4958
c3a86da9
DJ
4959 ;
4960 return 0;
4961}
4962_ACEOF
5213506e 4963if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4964
5213506e
RW
4965else
4966 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4967 CXXFLAGS="-g"
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4969/* end confdefs.h. */
5213506e 4970
c3a86da9
DJ
4971int
4972main ()
4973{
5213506e 4974
c3a86da9
DJ
4975 ;
4976 return 0;
4977}
4978_ACEOF
5213506e
RW
4979if ac_fn_cxx_try_compile "$LINENO"; then :
4980 ac_cv_prog_cxx_g=yes
11a67599 4981fi
5213506e
RW
4982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983fi
4984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985fi
4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4988fi
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4990$as_echo "$ac_cv_prog_cxx_g" >&6; }
4991if test "$ac_test_CXXFLAGS" = set; then
4992 CXXFLAGS=$ac_save_CXXFLAGS
4993elif test $ac_cv_prog_cxx_g = yes; then
4994 if test "$GXX" = yes; then
4995 CXXFLAGS="-g -O2"
4996 else
4997 CXXFLAGS="-g"
4998 fi
4999else
5000 if test "$GXX" = yes; then
5001 CXXFLAGS="-O2"
5002 else
5003 CXXFLAGS=
5004 fi
c3a86da9 5005fi
c3a86da9
DJ
5006ac_ext=c
5007ac_cpp='$CPP $CPPFLAGS'
5008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010ac_compiler_gnu=$ac_cv_c_compiler_gnu
5011
5012
5013# We must set the default linker to the linker used by gcc for the correct
5014# operation of libtool. If LD is not defined and we are using gcc, try to
5015# set the LD default to the ld used by gcc.
5016if test -z "$LD"; then
5017 if test "$GCC" = yes; then
5018 case $build in
5019 *-*-mingw*)
5020 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5021 *)
5022 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5023 esac
5024 case $gcc_prog_ld in
5025 # Accept absolute paths.
5026 [\\/]* | [A-Za-z]:[\\/]*)
5027 LD="$gcc_prog_ld" ;;
5028 esac
5029 fi
23f6b2f9
PB
5030fi
5031
0b21f5d3
EB
5032# Check whether -static-libstdc++ -static-libgcc is supported.
5033have_static_libs=no
5034if test "$GCC" = yes; then
5035 saved_LDFLAGS="$LDFLAGS"
5036
5037 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5039$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5040 ac_ext=cpp
5041ac_cpp='$CXXCPP $CPPFLAGS'
5042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5045
5046
5047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048/* end confdefs.h. */
0d6414b2
EB
5049
5050#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5051#error -static-libstdc++ not implemented
5052#endif
0b21f5d3
EB
5053int main() {}
5054_ACEOF
5055if ac_fn_cxx_try_link "$LINENO"; then :
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5057$as_echo "yes" >&6; }; have_static_libs=yes
5058else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060$as_echo "no" >&6; }
5061fi
5062rm -f core conftest.err conftest.$ac_objext \
5063 conftest$ac_exeext conftest.$ac_ext
5064 ac_ext=c
5065ac_cpp='$CPP $CPPFLAGS'
5066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5068ac_compiler_gnu=$ac_cv_c_compiler_gnu
5069
5070
5071 LDFLAGS="$saved_LDFLAGS"
5072fi
5073
23f6b2f9
PB
5074
5075
55ffb5ed 5076
1c710c3c
DJ
5077if test -n "$ac_tool_prefix"; then
5078 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5079set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081$as_echo_n "checking for $ac_word... " >&6; }
5082if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5084else
5085 if test -n "$GNATBIND"; then
5086 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5087else
1c710c3c
DJ
5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089for as_dir in $PATH
5090do
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5213506e
RW
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5095 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5097 break 2
5098 fi
5099done
5213506e
RW
5100 done
5101IFS=$as_save_IFS
1c710c3c 5102
55ffb5ed
NN
5103fi
5104fi
1c710c3c 5105GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5106if test -n "$GNATBIND"; then
5213506e
RW
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5108$as_echo "$GNATBIND" >&6; }
55ffb5ed 5109else
5213506e
RW
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
55ffb5ed
NN
5112fi
5113
5213506e 5114
1c710c3c 5115fi
55ffb5ed 5116if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5117 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5118 # Extract the first word of "gnatbind", so it can be a program name with args.
5119set dummy gnatbind; ac_word=$2
5213506e
RW
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121$as_echo_n "checking for $ac_word... " >&6; }
5122if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
55ffb5ed 5124else
1c710c3c
DJ
5125 if test -n "$ac_ct_GNATBIND"; then
5126 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5127else
1c710c3c
DJ
5128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129for as_dir in $PATH
5130do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5213506e
RW
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5135 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5137 break 2
5138 fi
5139done
5213506e
RW
5140 done
5141IFS=$as_save_IFS
1c710c3c 5142
55ffb5ed
NN
5143fi
5144fi
1c710c3c
DJ
5145ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5146if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5148$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5149else
5213506e
RW
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151$as_echo "no" >&6; }
55ffb5ed
NN
5152fi
5153
5213506e
RW
5154 if test "x$ac_ct_GNATBIND" = x; then
5155 GNATBIND="no"
5156 else
5157 case $cross_compiling:$ac_tool_warned in
5158yes:)
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5161ac_tool_warned=yes ;;
5162esac
5163 GNATBIND=$ac_ct_GNATBIND
5164 fi
55ffb5ed 5165else
1c710c3c 5166 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5167fi
5168
1c710c3c
DJ
5169if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5171set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173$as_echo_n "checking for $ac_word... " >&6; }
5174if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5305be7e
RG
5176else
5177 if test -n "$GNATMAKE"; then
5178 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5179else
1c710c3c
DJ
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5213506e
RW
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5187 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5189 break 2
5190 fi
5191done
5213506e
RW
5192 done
5193IFS=$as_save_IFS
1c710c3c 5194
5305be7e
RG
5195fi
5196fi
1c710c3c 5197GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5198if test -n "$GNATMAKE"; then
5213506e
RW
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5200$as_echo "$GNATMAKE" >&6; }
5305be7e 5201else
5213506e
RW
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
5305be7e
RG
5204fi
5205
5213506e 5206
1c710c3c 5207fi
5305be7e 5208if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5209 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5210 # Extract the first word of "gnatmake", so it can be a program name with args.
5211set dummy gnatmake; ac_word=$2
5213506e
RW
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213$as_echo_n "checking for $ac_word... " >&6; }
5214if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5305be7e 5216else
1c710c3c
DJ
5217 if test -n "$ac_ct_GNATMAKE"; then
5218 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5219else
1c710c3c
DJ
5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5213506e
RW
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5227 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5229 break 2
5230 fi
5231done
5213506e
RW
5232 done
5233IFS=$as_save_IFS
1c710c3c 5234
5305be7e
RG
5235fi
5236fi
1c710c3c
DJ
5237ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5238if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5240$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5241else
5213506e
RW
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
5305be7e
RG
5244fi
5245
5213506e
RW
5246 if test "x$ac_ct_GNATMAKE" = x; then
5247 GNATMAKE="no"
5248 else
5249 case $cross_compiling:$ac_tool_warned in
5250yes:)
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253ac_tool_warned=yes ;;
5254esac
5255 GNATMAKE=$ac_ct_GNATMAKE
5256 fi
5305be7e 5257else
1c710c3c 5258 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5259fi
5260
5213506e
RW
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5262$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5263if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5265else
5266 cat >conftest.adb <<EOF
5267procedure conftest is begin null; end conftest;
5268EOF
5269acx_cv_cc_gcc_supports_ada=no
5270# There is a bug in old released versions of GCC which causes the
5271# driver to exit successfully when the appropriate language module
5272# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5273# Therefore we must check for the error message as well as an
5274# unsuccessful exit.
1db673ca
RO
5275# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5276# given a .adb file, but produce no object file. So we must check
5277# if an object file was really produced to guard against this.
55ffb5ed 5278errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5279if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5280 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5281fi
5282rm -f conftest.*
5283fi
5213506e
RW
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5285$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5286
7cb62ef1 5287if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5288 have_gnat=yes
5289else
5290 have_gnat=no
5291fi
5292
5213506e
RW
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5294$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5295if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
a76494aa
PB
5297else
5298 echo abfoo >t1
5299 echo cdfoo >t2
5300 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5301 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5302 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5303 :
5304 else
5305 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5306 fi
5307 fi
a76494aa
PB
5308 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5309 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5310 :
a76494aa
PB
5311 else
5312 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5313 fi
5314 fi
5315 rm t1 t2
5316
5317fi
5213506e
RW
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5319$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5320do_compare="$gcc_cv_prog_cmp_skip"
5321
5322
55ffb5ed 5323
ff3ac0f4
ILT
5324# Check whether --enable-bootstrap was given.
5325if test "${enable_bootstrap+set}" = set; then :
5326 enableval=$enable_bootstrap;
5327else
5328 enable_bootstrap=default
5329fi
5330
5331
5332# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5333if test -r $srcdir/gcc/configure; then
5334 have_compiler=yes
5335else
5336 have_compiler=no
5337fi
ff3ac0f4
ILT
5338
5339case "$have_compiler:$host:$target:$enable_bootstrap" in
5340 *:*:*:no) ;;
5341
5342 # Default behavior. Enable bootstrap if we have a compiler
5343 # and we are in a native configuration.
5344 yes:$build:$build:default)
5345 enable_bootstrap=yes ;;
5346
5347 *:*:*:default)
5348 enable_bootstrap=no ;;
5349
5350 # We have a compiler and we are in a native configuration, bootstrap is ok
5351 yes:$build:$build:yes)
5352 ;;
5353
5354 # Other configurations, but we have a compiler. Assume the user knows
5355 # what he's doing.
5356 yes:*:*:yes)
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5358$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5359 ;;
5360
5361 # No compiler: if they passed --enable-bootstrap explicitly, fail
5362 no:*:*:yes)
5363 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5364
5365 # Fail if wrong command line
5366 *)
5367 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5368 ;;
5369esac
5370
592c90ff
KG
5371# Used for setting $lt_cv_objdir
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5373$as_echo_n "checking for objdir... " >&6; }
5374if test "${lt_cv_objdir+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376else
5377 rm -f .libs 2>/dev/null
5378mkdir .libs 2>/dev/null
5379if test -d .libs; then
5380 lt_cv_objdir=.libs
5381else
5382 # MS-DOS does not allow filenames that begin with a dot.
5383 lt_cv_objdir=_libs
5384fi
5385rmdir .libs 2>/dev/null
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5388$as_echo "$lt_cv_objdir" >&6; }
5389objdir=$lt_cv_objdir
5390
5391
5392
5393
5394
5395cat >>confdefs.h <<_ACEOF
5396#define LT_OBJDIR "$lt_cv_objdir/"
5397_ACEOF
5398
5399
5400
acd26225 5401# Check for GMP, MPFR and MPC
3a5729ea 5402gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5403gmpinc=
e69bf64b 5404have_gmp=no
acd26225
KG
5405
5406# Specify a location for mpc
5407# check for this first so it ends up on the link line before mpfr.
5408
5213506e
RW
5409# Check whether --with-mpc was given.
5410if test "${with_mpc+set}" = set; then :
5411 withval=$with_mpc;
5412fi
acd26225 5413
acd26225 5414
9965e3cd 5415# Check whether --with-mpc-include was given.
5213506e
RW
5416if test "${with_mpc_include+set}" = set; then :
5417 withval=$with_mpc_include;
5418fi
acd26225 5419
acd26225 5420
9965e3cd 5421# Check whether --with-mpc-lib was given.
5213506e
RW
5422if test "${with_mpc_lib+set}" = set; then :
5423 withval=$with_mpc_lib;
5424fi
acd26225 5425
acd26225
KG
5426
5427if test "x$with_mpc" != x; then
3a5729ea
KG
5428 gmplibs="-L$with_mpc/lib $gmplibs"
5429 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5430fi
5431if test "x$with_mpc_include" != x; then
3a5729ea 5432 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5433fi
5434if test "x$with_mpc_lib" != x; then
3a5729ea 5435 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5436fi
5437if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5438 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5439 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5440 # Do not test the mpc version. Assume that it is sufficient, since
5441 # it is in the source tree, and the library has not been built yet
5442 # but it would be included on the link line in the version check below
5443 # hence making the test fail.
3a5729ea 5444 have_gmp=yes
acd26225 5445fi
e69bf64b 5446
bebf829d
PB
5447# Specify a location for mpfr
5448# check for this first so it ends up on the link line before gmp.
1c710c3c 5449
5213506e
RW
5450# Check whether --with-mpfr-dir was given.
5451if test "${with_mpfr_dir+set}" = set; then :
5452 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5453Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5454fi
5455
bebf829d
PB
5456
5457
5213506e
RW
5458# Check whether --with-mpfr was given.
5459if test "${with_mpfr+set}" = set; then :
5460 withval=$with_mpfr;
5461fi
1c710c3c 5462
bebf829d 5463
9965e3cd 5464# Check whether --with-mpfr-include was given.
5213506e
RW
5465if test "${with_mpfr_include+set}" = set; then :
5466 withval=$with_mpfr_include;
5467fi
1c710c3c 5468
8a877c9c 5469
9965e3cd 5470# Check whether --with-mpfr-lib was given.
5213506e
RW
5471if test "${with_mpfr_lib+set}" = set; then :
5472 withval=$with_mpfr_lib;
5473fi
8a877c9c 5474
bebf829d
PB
5475
5476if test "x$with_mpfr" != x; then
5477 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5478 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5479fi
8a877c9c 5480if test "x$with_mpfr_include" != x; then
3a5729ea 5481 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5482fi
5483if test "x$with_mpfr_lib" != x; then
5484 gmplibs="-L$with_mpfr_lib $gmplibs"
5485fi
e69bf64b 5486if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5487 # MPFR v3.1.0 moved the sources into a src sub-directory.
5488 if test -d ${srcdir}/mpfr/src; then
5489 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5490 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5491 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5492 else
5493 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5494 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5495 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5496 fi
e69bf64b
PB
5497 # Do not test the mpfr version. Assume that it is sufficient, since
5498 # it is in the source tree, and the library has not been built yet
5499 # but it would be included on the link line in the version check below
5500 # hence making the test fail.
5501 have_gmp=yes
5502fi
bebf829d 5503
6de9cd9a 5504# Specify a location for gmp
1c710c3c 5505
5213506e
RW
5506# Check whether --with-gmp-dir was given.
5507if test "${with_gmp_dir+set}" = set; then :
5508 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5509Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5510fi
5511
6de9cd9a 5512
6de9cd9a 5513
5213506e
RW
5514# Check whether --with-gmp was given.
5515if test "${with_gmp+set}" = set; then :
5516 withval=$with_gmp;
5517fi
1c710c3c 5518
6de9cd9a 5519
9965e3cd 5520# Check whether --with-gmp-include was given.
5213506e
RW
5521if test "${with_gmp_include+set}" = set; then :
5522 withval=$with_gmp_include;
5523fi
1c710c3c 5524
8a877c9c 5525
9965e3cd 5526# Check whether --with-gmp-lib was given.
5213506e
RW
5527if test "${with_gmp_lib+set}" = set; then :
5528 withval=$with_gmp_lib;
5529fi
8a877c9c
KG
5530
5531
6de9cd9a 5532
bebf829d
PB
5533if test "x$with_gmp" != x; then
5534 gmplibs="-L$with_gmp/lib $gmplibs"
5535 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5536fi
8a877c9c
KG
5537if test "x$with_gmp_include" != x; then
5538 gmpinc="-I$with_gmp_include $gmpinc"
5539fi
5540if test "x$with_gmp_lib" != x; then
5541 gmplibs="-L$with_gmp_lib $gmplibs"
5542fi
e69bf64b 5543if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5544 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5545 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5546 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5547 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5548 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5549 # Do not test the gmp version. Assume that it is sufficient, since
5550 # it is in the source tree, and the library has not been built yet
5551 # but it would be included on the link line in the version check below
5552 # hence making the test fail.
5553 have_gmp=yes
5554fi
6de9cd9a 5555
d943d7c4 5556if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5557 have_gmp=yes
5558 saved_CFLAGS="$CFLAGS"
5559 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5560 # Check for the recommended and required versions of GMP.
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5562$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5563
5564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5565/* end confdefs.h. */
5566#include "gmp.h"
5567int
5568main ()
5569{
5570
5571 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5572 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5573 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5574 choke me
5575 #endif
5576
5577 ;
5578 return 0;
5579}
5580_ACEOF
5581if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5583/* end confdefs.h. */
362c6d2f 5584#include <gmp.h>
1c710c3c
DJ
5585int
5586main ()
5587{
6de9cd9a 5588
362c6d2f
KG
5589 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5590 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5591 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5592 choke me
5593 #endif
1c710c3c
DJ
5594
5595 ;
5596 return 0;
5597}
5598_ACEOF
5213506e
RW
5599if ac_fn_c_try_compile "$LINENO"; then :
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5601$as_echo "yes" >&6; }
362c6d2f
KG
5602else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5604$as_echo "buggy but acceptable" >&6; }
5605fi
5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5607else
5213506e
RW
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5610fi
5213506e 5611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5612
acd26225 5613 # If we have GMP, check the MPFR version.
e69bf64b 5614 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5615 # Check for the recommended and required versions of MPFR.
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5617$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5619/* end confdefs.h. */
70ec446f 5620#include <gmp.h>
e69bf64b 5621 #include <mpfr.h>
1c710c3c
DJ
5622int
5623main ()
5624{
e48d66a9 5625
f7d6bc01 5626 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5627 choke me
5628 #endif
1c710c3c
DJ
5629
5630 ;
5631 return 0;
5632}
5633_ACEOF
5213506e
RW
5634if ac_fn_c_try_compile "$LINENO"; then :
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5636/* end confdefs.h. */
a3993f33 5637#include <gmp.h>
e69bf64b 5638 #include <mpfr.h>
1c710c3c
DJ
5639int
5640main ()
5641{
a3993f33 5642
362c6d2f 5643 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5644 choke me
5645 #endif
acd26225
KG
5646
5647 ;
5648 return 0;
5649}
5650_ACEOF
5213506e
RW
5651if ac_fn_c_try_compile "$LINENO"; then :
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5653$as_echo "yes" >&6; }
acd26225 5654else
5213506e
RW
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5656$as_echo "buggy but acceptable" >&6; }
acd26225 5657fi
5213506e 5658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5659else
5213506e
RW
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661$as_echo "no" >&6; }; have_gmp=no
acd26225 5662fi
5213506e 5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5664 fi
5665
5666 # Check for the MPC header version.
3a5729ea 5667 if test x"$have_gmp" = xyes ; then
362c6d2f 5668 # Check for the recommended and required versions of MPC.
5213506e
RW
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5670$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5672/* end confdefs.h. */
5673#include <mpc.h>
5674int
5675main ()
5676{
5677
362c6d2f
KG
5678 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5679 choke me
5680 #endif
5681
5682 ;
5683 return 0;
5684}
5685_ACEOF
5686if ac_fn_c_try_compile "$LINENO"; then :
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h. */
5689#include <mpc.h>
5690int
5691main ()
5692{
5693
5694 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5695 choke me
5696 #endif
5697
5698 ;
5699 return 0;
5700}
5701_ACEOF
5213506e
RW
5702if ac_fn_c_try_compile "$LINENO"; then :
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5704$as_echo "yes" >&6; }
362c6d2f
KG
5705else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5707$as_echo "buggy but acceptable" >&6; }
5708fi
5709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5710else
5213506e 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5712$as_echo "no" >&6; }; have_gmp=no
acd26225 5713fi
5213506e 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5715 fi
5716
5717 # Now check the MPFR library.
5718 if test x"$have_gmp" = xyes; then
5719 saved_LIBS="$LIBS"
5720 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5722$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5724/* end confdefs.h. */
3a5729ea 5725#include <mpc.h>
acd26225
KG
5726int
5727main ()
5728{
5729
5730 mpfr_t n;
5731 mpfr_t x;
3a5729ea 5732 mpc_t c;
acd26225
KG
5733 int t;
5734 mpfr_init (n);
5735 mpfr_init (x);
5736 mpfr_atan2 (n, n, x, GMP_RNDN);
5737 mpfr_erfc (n, x, GMP_RNDN);
5738 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5739 mpfr_clear(n);
5740 mpfr_clear(x);
5741 mpc_init2 (c, 53);
5742 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5743 mpc_cosh (c, c, MPC_RNDNN);
5744 mpc_pow (c, c, c, MPC_RNDNN);
5745 mpc_acosh (c, c, MPC_RNDNN);
5746 mpc_clear (c);
1c710c3c
DJ
5747
5748 ;
5749 return 0;
5750}
5751_ACEOF
5213506e
RW
5752if ac_fn_c_try_link "$LINENO"; then :
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5754$as_echo "yes" >&6; }
1c710c3c 5755else
5213506e
RW
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5758fi
5213506e
RW
5759rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5761 LIBS="$saved_LIBS"
5762 fi
5763
e69bf64b 5764 CFLAGS="$saved_CFLAGS"
6de9cd9a 5765
362c6d2f
KG
5766# The library versions listed in the error message below should match
5767# the HARD-minimums enforced above.
e69bf64b 5768 if test x$have_gmp != xyes; then
f7d6bc01 5769 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5770Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5771their locations. Source code for these libraries can be found at
5772their respective hosting sites as well as at
5773ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5774http://gcc.gnu.org/install/prerequisites.html for additional info. If
5775you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5776make sure that you have installed both the libraries and the header
5777files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5778 fi
70ec446f
KG
5779fi
5780
acd26225
KG
5781# Flags needed for both GMP, MPFR and/or MPC.
5782
5783
6de9cd9a
DN
5784
5785
5786
9e3eba15 5787
0ff2d841 5788
f38095f3
JM
5789# Allow host libstdc++ to be specified for static linking with PPL.
5790
5213506e
RW
5791# Check whether --with-host-libstdcxx was given.
5792if test "${with_host_libstdcxx+set}" = set; then :
5793 withval=$with_host_libstdcxx;
5794fi
f38095f3 5795
f38095f3
JM
5796
5797case $with_host_libstdcxx in
5798 no|yes)
5213506e 5799 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5800 ;;
5801esac
f8bf9252 5802
0b21f5d3 5803# Libraries to use for stage1 or when not bootstrapping.
00020c16 5804
0b21f5d3
EB
5805# Check whether --with-stage1-libs was given.
5806if test "${with_stage1_libs+set}" = set; then :
5807 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5808 stage1_libs=
00020c16 5809 else
0b21f5d3 5810 stage1_libs=$withval
00020c16
ILT
5811 fi
5812else
0b21f5d3 5813 stage1_libs=$with_host_libstdcxx
5213506e
RW
5814fi
5815
00020c16
ILT
5816
5817
0b21f5d3 5818# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5819
0b21f5d3
EB
5820# Check whether --with-stage1-ldflags was given.
5821if test "${with_stage1_ldflags+set}" = set; then :
5822 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5823 stage1_ldflags=
00020c16 5824 else
0b21f5d3 5825 stage1_ldflags=$withval
00020c16
ILT
5826 fi
5827else
0b21f5d3
EB
5828 stage1_ldflags=
5829 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5830 # if supported. But if the user explicitly specified the libraries to use,
5831 # trust that they are doing what they want.
5832 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5833 stage1_ldflags="-static-libstdc++ -static-libgcc"
5834 fi
5213506e
RW
5835fi
5836
00020c16
ILT
5837
5838
00020c16
ILT
5839# Libraries to use for stage2 and later builds. This defaults to the
5840# argument passed to --with-host-libstdcxx.
5841
5213506e
RW
5842# Check whether --with-boot-libs was given.
5843if test "${with_boot_libs+set}" = set; then :
5844 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5845 poststage1_libs=
5846 else
5847 poststage1_libs=$withval
5848 fi
5849else
00020c16 5850 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5851fi
5852
00020c16
ILT
5853
5854
ed2eaa9f
ILT
5855# Linker flags to use for stage2 and later builds.
5856
5857# Check whether --with-boot-ldflags was given.
5858if test "${with_boot_ldflags+set}" = set; then :
5859 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5860 poststage1_ldflags=
5861 else
5862 poststage1_ldflags=$withval
5863 fi
5864else
5865 poststage1_ldflags=
bec93d73
ILT
5866 # In stages 2 and 3, default to linking libstdc++ and libgcc
5867 # statically. But if the user explicitly specified the libraries to
5868 # use, trust that they are doing what they want.
5869 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5870 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5871 fi
5872fi
5873
5874
5875
4a9bb2aa
TB
5876# GCC GRAPHITE dependency ISL.
5877# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5878
5879
33ad93b9
RG
5880# Check whether --with-isl was given.
5881if test "${with_isl+set}" = set; then :
5882 withval=$with_isl;
5213506e 5883fi
f8bf9252 5884
f8bf9252 5885
eae1a5d4 5886# Treat --without-isl as a request to disable
625afa23 5887# GRAPHITE support and skip all following checks.
eae1a5d4 5888if test "x$with_isl" != "xno"; then
625afa23
RG
5889 # Check for ISL
5890
5891
33ad93b9
RG
5892# Check whether --with-isl-include was given.
5893if test "${with_isl_include+set}" = set; then :
5894 withval=$with_isl_include;
5213506e
RW
5895fi
5896
f8bf9252 5897
33ad93b9
RG
5898# Check whether --with-isl-lib was given.
5899if test "${with_isl_lib+set}" = set; then :
5900 withval=$with_isl_lib;
5213506e 5901fi
f8bf9252 5902
f8bf9252 5903
33ad93b9
RG
5904 # Check whether --enable-isl-version-check was given.
5905if test "${enable_isl_version_check+set}" = set; then :
5906 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5907else
5908 ENABLE_ISL_CHECK=yes
7d32a440
SP
5909fi
5910
5911
33ad93b9
RG
5912 # Initialize isllibs and islinc.
5913 case $with_isl in
5914 no)
5915 isllibs=
5916 islinc=
5917 ;;
5918 "" | yes)
5919 ;;
5920 *)
5921 isllibs="-L$with_isl/lib"
5922 islinc="-I$with_isl/include"
5923 ;;
5924 esac
5925 if test "x${with_isl_include}" != x ; then
5926 islinc="-I$with_isl_include"
5927 fi
5928 if test "x${with_isl_lib}" != x; then
5929 isllibs="-L$with_isl_lib"
5930 fi
5931 if test "x${islinc}" = x && test "x${isllibs}" = x \
5932 && test -d ${srcdir}/isl; then
5933 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5934 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5935 ENABLE_ISL_CHECK=no
2869f0ff
RB
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5937$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
33ad93b9 5938 fi
7d32a440 5939
eae1a5d4
RG
5940 isllibs="${isllibs} -lisl"
5941
7d32a440 5942
7d32a440 5943
9847828b
RB
5944 if test "${ENABLE_ISL_CHECK}" = yes ; then
5945 _isl_saved_CFLAGS=$CFLAGS
5946 _isl_saved_LDFLAGS=$LDFLAGS
5947 _isl_saved_LIBS=$LIBS
5948
5949 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5950 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5951 LIBS="${_isl_saved_LIBS} -lisl"
5952
e0c0c325
SP
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5954$as_echo_n "checking for compatible ISL... " >&6; }
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 5956/* end confdefs.h. */
e0c0c325 5957#include <isl/val.h>
622dbadf
BC
5958int
5959main ()
5960{
e0c0c325 5961;
622dbadf
BC
5962 ;
5963 return 0;
5964}
5965_ACEOF
5966if ac_fn_c_try_link "$LINENO"; then :
9847828b 5967 gcc_cv_isl=yes
622dbadf
BC
5968else
5969 gcc_cv_isl=no
5970fi
5971rm -f core conftest.err conftest.$ac_objext \
5972 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5974$as_echo "$gcc_cv_isl" >&6; }
5975
5976 CFLAGS=$_isl_saved_CFLAGS
5977 LDFLAGS=$_isl_saved_LDFLAGS
5978 LIBS=$_isl_saved_LIBS
5979 fi
5980
5981
f8bf9252 5982
f8bf9252 5983
33ad93b9
RG
5984
5985
33ad93b9
RG
5986 if test "x${with_isl}" = xno; then
5987 graphite_requested=no
5988 elif test "x${with_isl}" != x \
5989 || test "x${with_isl_include}" != x \
5990 || test "x${with_isl_lib}" != x ; then
5991 graphite_requested=yes
5992 else
5993 graphite_requested=no
7d32a440 5994 fi
d789184e 5995
d789184e
SP
5996
5997
33ad93b9
RG
5998 if test "${gcc_cv_isl}" = no ; then
5999 isllibs=
6000 islinc=
6001 fi
6002
6003 if test "${graphite_requested}" = yes \
6004 && test "x${isllibs}" = x \
6005 && test "x${islinc}" = x ; then
f8bf9252 6006
33ad93b9
RG
6007 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6008 fi
f8bf9252 6009
d32ef397 6010
d32ef397
AS
6011fi
6012
4a9bb2aa 6013# If the ISL check failed, disable builds of in-tree variant of ISL
625afa23 6014if test "x$with_isl" = xno ||
625afa23 6015 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6016 noconfigdirs="$noconfigdirs isl"
625afa23 6017 islinc=
32d024bf
RG
6018fi
6019
625afa23
RG
6020
6021
6022
d7f09764
DN
6023# Check for LTO support.
6024# Check whether --enable-lto was given.
6025if test "${enable_lto+set}" = set; then :
6026 enableval=$enable_lto; enable_lto=$enableval
6027else
6028 enable_lto=yes; default_enable_lto=yes
6029fi
6030
6031
7413962d 6032
9a02962b
DK
6033
6034
6035target_elf=no
6036case $target in
6037 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6038 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6039 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6040 target_elf=no
6041 ;;
6042 *)
6043 target_elf=yes
6044 ;;
6045esac
6046
6047if test $target_elf = yes; then :
48215350
DK
6048 # ELF platforms build the lto-plugin always.
6049 build_lto_plugin=yes
9a02962b 6050
9a02962b
DK
6051else
6052 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6053 case $target in
2cd815e7 6054 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6055 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6056 *) enable_lto=no ;;
6057 esac
9a02962b 6058 else
db50fe7d
IS
6059 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6060 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6061 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6062 # warn during gcc/ subconfigure; unless you're bootstrapping with
6063 # -flto it won't be needed until after installation anyway.
6064 case $target in
1cd0b716 6065 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6066 *) if test x"$enable_lto" = x"yes"; then
6067 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6068 fi
6069 ;;
6070 esac
6071 fi
1cd0b716 6072 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6073 # Build it unless LTO was explicitly disabled.
1cd0b716 6074 case $target in
48215350 6075 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6076 *) ;;
6077 esac
48215350 6078
9a02962b
DK
6079fi
6080
d7f09764 6081
45b3824d
TS
6082# Check whether --enable-linker-plugin-configure-flags was given.
6083if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6084 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6085else
6086 extra_linker_plugin_configure_flags=
6087fi
6088
6089
6090# Check whether --enable-linker-plugin-flags was given.
6091if test "${enable_linker_plugin_flags+set}" = set; then :
6092 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6093else
6094 extra_linker_plugin_flags=
6095fi
6096
6097
6098
f8bf9252 6099
0823efed 6100# By default, C and C++ are the only stage 1 languages.
e1888513 6101stage1_languages=,c,
2805b53a 6102
00020c16 6103# Target libraries that we bootstrap.
ad1e5170 6104bootstrap_target_libs=,target-libgcc,
00020c16 6105
55ffb5ed
NN
6106# Figure out what language subdirectories are present.
6107# Look if the user specified --enable-languages="..."; if not, use
6108# the environment variable $LANGUAGES if defined. $LANGUAGES might
6109# go away some day.
6110# NB: embedded tabs in this IF block -- do not untabify
6111if test -d ${srcdir}/gcc; then
6112 if test x"${enable_languages+set}" != xset; then
6113 if test x"${LANGUAGES+set}" = xset; then
6114 enable_languages="${LANGUAGES}"
6115 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6116 else
6117 enable_languages=all
6118 fi
6119 else
6120 if test x"${enable_languages}" = x ||
6121 test x"${enable_languages}" = xyes;
6122 then
6123 echo configure.in: --enable-languages needs at least one language argument 1>&2
6124 exit 1
6125 fi
6126 fi
6127 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6128
7f26dfa3
FXC
6129 # 'f95' is the old name for the 'fortran' language. We issue a warning
6130 # and make the substitution.
6131 case ,${enable_languages}, in
6132 *,f95,*)
6133 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6134 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6135 ;;
6136 esac
6137
0823efed
DN
6138 # If bootstrapping, C++ must be enabled.
6139 case ",$enable_languages,:$enable_bootstrap" in
6140 *,c++,*:*) ;;
6141 *:yes)
ff3ac0f4
ILT
6142 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6143 enable_languages="${enable_languages},c++"
6144 else
0823efed 6145 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6146 fi
6147 ;;
6148 esac
6149
55ffb5ed
NN
6150 # First scan to see if an enabled language requires some other language.
6151 # We assume that a given config-lang.in will list all the language
6152 # front ends it requires, even if some are required indirectly.
6153 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6154 case ${lang_frag} in
6155 ..) ;;
6156 # The odd quoting in the next line works around
6157 # an apparent bug in bash 1.12 on linux.
6158 ${srcdir}/gcc/[*]/config-lang.in) ;;
6159 *)
69ecd18f
ILT
6160 # From the config-lang.in, get $language, $lang_requires, and
6161 # $lang_requires_boot_languages.
55ffb5ed
NN
6162 language=
6163 lang_requires=
69ecd18f 6164 lang_requires_boot_languages=
55ffb5ed 6165 . ${lang_frag}
69ecd18f 6166 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6167 case ,${enable_languages}, in
6168 *,$other,*) ;;
6169 *,all,*) ;;
6170 *,$language,*)
6171 echo " \`$other' language required by \`$language'; enabling" 1>&2
6172 enable_languages="${enable_languages},${other}"
6173 ;;
6174 esac
6175 done
69ecd18f
ILT
6176 for other in ${lang_requires_boot_languages} ; do
6177 if test "$other" != "c"; then
6178 case ,${enable_stage1_languages}, in
6179 *,$other,*) ;;
6180 *,all,*) ;;
6181 *)
6182 case ,${enable_languages}, in
6183 *,$language,*)
6184 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6185 enable_stage1_languages="$enable_stage1_languages,${other}"
6186 ;;
6187 esac
6188 ;;
6189 esac
6190 fi
6191 done
55ffb5ed
NN
6192 ;;
6193 esac
6194 done
6195
e1888513 6196 new_enable_languages=,c,
d7f09764
DN
6197
6198 # If LTO is enabled, add the LTO front end.
d7f09764 6199 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6200 case ,${enable_languages}, in
6201 *,lto,*) ;;
6202 *) enable_languages="${enable_languages},lto" ;;
6203 esac
1cd0b716 6204 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6205 configdirs="$configdirs lto-plugin"
d7f09764
DN
6206 fi
6207 fi
6208
55ffb5ed 6209 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6210 potential_languages=,c,
55ffb5ed 6211
4da3b0f8
ILT
6212 enabled_target_libs=
6213 disabled_target_libs=
6214
55ffb5ed
NN
6215 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6216 case ${lang_frag} in
6217 ..) ;;
6218 # The odd quoting in the next line works around
6219 # an apparent bug in bash 1.12 on linux.
6220 ${srcdir}/gcc/[*]/config-lang.in) ;;
6221 *)
1c710c3c 6222 # From the config-lang.in, get $language, $target_libs,
2805b53a 6223 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6224 language=
6225 target_libs=
6226 lang_dirs=
1546bb64 6227 subdir_requires=
e1888513
PB
6228 boot_language=no
6229 build_by_default=yes
55ffb5ed 6230 . ${lang_frag}
e1888513
PB
6231 if test x${language} = x; then
6232 echo "${lang_frag} doesn't set \$language." 1>&2
6233 exit 1
6234 fi
6235
78767fd9 6236 if test "$language" = "c++"; then
0823efed 6237 boot_language=yes
00020c16
ILT
6238 fi
6239
178f875a 6240 add_this_lang=no
e1888513
PB
6241 case ,${enable_languages}, in
6242 *,${language},*)
d4a10d0a
SB
6243 # Language was explicitly selected; include it
6244 # unless it is C, which is enabled by default.
6245 if test "$language" != "c"; then
6246 add_this_lang=yes
6247 fi
55ffb5ed 6248 ;;
e1888513
PB
6249 *,all,*)
6250 # 'all' was selected, select it if it is a default language
178f875a
JM
6251 if test "$language" != "c"; then
6252 add_this_lang=${build_by_default}
6253 fi
55ffb5ed
NN
6254 ;;
6255 esac
6de9cd9a 6256
1546bb64 6257 # Disable languages that need other directories if these aren't available.
95695ad3 6258 for i in $subdir_requires; do
b6348cb3 6259 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6260 case ,${enable_languages}, in
6261 *,${language},*)
6262 # Specifically requested language; tell them.
5213506e 6263 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6264 ;;
6265 *)
6266 # Silently disable.
e1888513 6267 add_this_lang=unsupported
1546bb64
PB
6268 ;;
6269 esac
6270 done
6271
e1888513
PB
6272 # Disable Ada if no preexisting GNAT is available.
6273 case ,${enable_languages},:${language}:${have_gnat} in
6274 *,${language},*:ada:no)
6275 # Specifically requested language; tell them.
5213506e 6276 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6277 ;;
6278 *:ada:no)
6279 # Silently disable.
6280 add_this_lang=unsupported
6281 ;;
6282 esac
6283
4fab7234
HPN
6284 # Disable a language that is unsupported by the target.
6285 case " $unsupported_languages " in
6286 *" $language "*)
e1888513 6287 add_this_lang=unsupported
4fab7234
HPN
6288 ;;
6289 esac
6290
6de9cd9a 6291 case $add_this_lang in
e1888513 6292 unsupported)
55ffb5ed 6293 # Remove language-dependent dirs.
4da3b0f8
ILT
6294 disabled_target_libs="$disabled_target_libs $target_libs"
6295 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6296 ;;
e1888513
PB
6297 no)
6298 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6299 disabled_target_libs="$disabled_target_libs $target_libs"
6300 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6301 potential_languages="${potential_languages}${language},"
6302 ;;
6303 yes)
6304 new_enable_languages="${new_enable_languages}${language},"
6305 potential_languages="${potential_languages}${language},"
2805b53a 6306 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6307 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6308 case "${boot_language}:,$enable_stage1_languages," in
6309 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6310 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6311 case ",$stage1_languages," in
6312 *,$language,* | ,yes, | ,all,) ;;
6313 *) stage1_languages="${stage1_languages}${language}," ;;
6314 esac
00020c16
ILT
6315 # We need to bootstrap any supporting libraries.
6316 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6317 ;;
6318 esac
6319 ;;
55ffb5ed
NN
6320 esac
6321 ;;
6322 esac
6323 done
6324
4da3b0f8
ILT
6325 # Add target libraries which are only needed for disabled languages
6326 # to noconfigdirs.
6327 if test -n "$disabled_target_libs"; then
6328 for dir in $disabled_target_libs; do
6329 case " $enabled_target_libs " in
6330 *" ${dir} "*) ;;
6331 *) noconfigdirs="$noconfigdirs $dir" ;;
6332 esac
6333 done
6334 fi
6335
5213506e
RW
6336 # Check whether --enable-stage1-languages was given.
6337if test "${enable_stage1_languages+set}" = set; then :
6338 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6339 ,no,|,,)
6340 # Set it to something that will have no effect in the loop below
6341 enable_stage1_languages=c ;;
6342 ,yes,)
6343 enable_stage1_languages=`echo $new_enable_languages | \
6344 sed -e "s/^,//" -e "s/,$//" ` ;;
6345 *,all,*)
6346 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6347 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6348 esac
6349
6350 # Add "good" languages from enable_stage1_languages to stage1_languages,
6351 # while "bad" languages go in missing_languages. Leave no duplicates.
6352 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6353 case $potential_languages in
6354 *,$i,*)
6355 case $stage1_languages in
6356 *,$i,*) ;;
6357 *) stage1_languages="$stage1_languages$i," ;;
6358 esac ;;
6359 *)
6360 case $missing_languages in
6361 *,$i,*) ;;
6362 *) missing_languages="$missing_languages$i," ;;
6363 esac ;;
6364 esac
6365 done
5213506e
RW
6366fi
6367
e1888513
PB
6368
6369 # Remove leading/trailing commas that were added for simplicity
6370 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6371 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6372 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6373 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6374
55ffb5ed 6375 if test "x$missing_languages" != x; then
5213506e 6376 as_fn_error "
0cf085e4 6377The following requested languages could not be built: ${missing_languages}
5213506e 6378Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6379 fi
55ffb5ed
NN
6380 if test "x$new_enable_languages" != "x$enable_languages"; then
6381 echo The following languages will be built: ${new_enable_languages}
e1888513 6382 enable_languages="$new_enable_languages"
55ffb5ed 6383 fi
e1888513 6384
1c710c3c 6385
b2eaac4a 6386 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6387fi
6388
27079765
AH
6389# Handle --disable-<component> generically.
6390for dir in $configdirs $build_configdirs $target_configdirs ; do
6391 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6392 varname=`echo $dirname | sed -e s/+/_/g`
6393 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6394 noconfigdirs="$noconfigdirs $dir"
6395 fi
6396done
6397
7cd0cf9c 6398# Check for Boehm's garbage collector
5213506e
RW
6399# Check whether --enable-objc-gc was given.
6400if test "${enable_objc_gc+set}" = set; then :
6401 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6402 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6403 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6404 ;;
6405esac
5213506e
RW
6406fi
6407
7cd0cf9c
DA
6408
6409# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6410case ,${enable_languages},:${enable_objc_gc} in
6411 *,objc,*:yes)
7cd0cf9c
DA
6412 # Keep target-boehm-gc if requested for Objective-C.
6413 ;;
7cd0cf9c 6414 *)
2a79fd67
DA
6415 # Otherwise remove target-boehm-gc depending on target-libjava.
6416 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6417 noconfigdirs="$noconfigdirs target-boehm-gc"
6418 fi
7cd0cf9c
DA
6419 ;;
6420esac
6421
5f520819 6422# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6423case ,${enable_languages}, in
1007a55c
JW
6424 *,c++,*)
6425 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6426 case "${noconfigdirs}" in
6427 *target-libstdc++-v3*)
6428 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6429 ;;
6430 *) ;;
6431 esac
6432 ;;
99776ebd 6433 *)
5f520819 6434 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6435 ;;
6436esac
6437
ee6a22df
L
6438# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6439# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6440# If we have the source for $noconfigdirs entries, add them to $notsupp.
6441
6442notsupp=""
6443for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6444 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6445 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6446 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6447 if test -r $srcdir/$dirname/configure ; then
6448 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6449 true
6450 else
6451 notsupp="$notsupp $dir"
6452 fi
6453 fi
6454 fi
ee6a22df
L
6455 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6456 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6457 if test -r $srcdir/$dirname/configure ; then
6458 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6459 true
6460 else
6461 notsupp="$notsupp $dir"
6462 fi
6463 fi
6464 fi
55ffb5ed
NN
6465 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6466 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6467 if test -r $srcdir/$dirname/configure ; then
6468 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6469 true
6470 else
6471 notsupp="$notsupp $dir"
6472 fi
6473 fi
6474 fi
6475done
6476
55ffb5ed
NN
6477# Quietly strip out all directories which aren't configurable in this tree.
6478# This relies on all configurable subdirectories being autoconfiscated, which
6479# is now the case.
23f6b2f9
PB
6480build_configdirs_all="$build_configdirs"
6481build_configdirs=
6482for i in ${build_configdirs_all} ; do
1c710c3c 6483 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6484 if test -f ${srcdir}/$j/configure ; then
6485 build_configdirs="${build_configdirs} $i"
6486 fi
6487done
6488
55ffb5ed
NN
6489configdirs_all="$configdirs"
6490configdirs=
6491for i in ${configdirs_all} ; do
6492 if test -f ${srcdir}/$i/configure ; then
6493 configdirs="${configdirs} $i"
6494 fi
6495done
23f6b2f9 6496
55ffb5ed
NN
6497target_configdirs_all="$target_configdirs"
6498target_configdirs=
6499for i in ${target_configdirs_all} ; do
1c710c3c 6500 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6501 if test -f ${srcdir}/$j/configure ; then
6502 target_configdirs="${target_configdirs} $i"
6503 fi
6504done
6505
45b3824d
TS
6506# libiberty-linker-plugin is special: it doesn't have its own source directory,
6507# so we have to add it after the preceding checks.
6508if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6509then
6510 case " $configdirs " in
6511 *" libiberty "*)
6512 # If we can build libiberty, we can also build libiberty-linker-plugin.
6513 configdirs="$configdirs libiberty-linker-plugin"
6514 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6515 --with-libiberty=../libiberty-linker-plugin";;
6516 *)
6517 as_fn_error "libiberty missing" "$LINENO" 5;;
6518 esac
6519fi
6520
fca38047
TS
6521# Sometimes we have special requirements for the host libiberty.
6522extra_host_libiberty_configure_flags=
6523case " $configdirs " in
6524 *" lto-plugin "* | *" libcc1 "*)
6525 # When these are to be built as shared libraries, the same applies to
6526 # libiberty.
6527 extra_host_libiberty_configure_flags=--enable-shared
6528 ;;
6529esac
6530
6531
55ffb5ed
NN
6532# Produce a warning message for the subdirs we can't configure.
6533# This isn't especially interesting in the Cygnus tree, but in the individual
6534# FSF releases, it's important to let people know when their machine isn't
6535# supported by the one or two programs in a package.
6536
6537if test -n "${notsupp}" && test -z "${norecursion}" ; then
6538 # If $appdirs is non-empty, at least one of those directories must still
6539 # be configured, or we error out. (E.g., if the gas release supports a
6540 # specified target in some subdirs but not the gas subdir, we shouldn't
6541 # pretend that all is well.)
6542 if test -n "$appdirs" ; then
6543 for dir in $appdirs ; do
6544 if test -r $dir/Makefile.in ; then
6545 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6546 appdirs=""
6547 break
6548 fi
23f6b2f9 6549 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6550 appdirs=""
6551 break
6552 fi
6553 fi
6554 done
6555 if test -n "$appdirs" ; then
6556 echo "*** This configuration is not supported by this package." 1>&2
6557 exit 1
6558 fi
6559 fi
6560 # Okay, some application will build, or we don't care to check. Still
6561 # notify of subdirs not getting built.
6562 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6563 echo " ${notsupp}" 1>&2
6564 echo " (Any other directories should still work fine.)" 1>&2
6565fi
6566
6567case "$host" in
6568 *msdosdjgpp*)
6569 enable_gdbtk=no ;;
6570esac
6571
c3a86da9
DJ
6572# To find our prefix, in gcc_cv_tool_prefix.
6573
6574# The user is always right.
6575if test "${PATH_SEPARATOR+set}" != set; then
6576 echo "#! /bin/sh" >conf$$.sh
6577 echo "exit 0" >>conf$$.sh
6578 chmod +x conf$$.sh
6579 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6580 PATH_SEPARATOR=';'
6581 else
6582 PATH_SEPARATOR=:
6583 fi
6584 rm -f conf$$.sh
6585fi
6586
6587
6588
6589if test "x$exec_prefix" = xNONE; then
6590 if test "x$prefix" = xNONE; then
6591 gcc_cv_tool_prefix=$ac_default_prefix
6592 else
6593 gcc_cv_tool_prefix=$prefix
6594 fi
6595else
6596 gcc_cv_tool_prefix=$exec_prefix
6597fi
6598
6599# If there is no compiler in the tree, use the PATH only. In any
6600# case, if there is no compiler in the tree nobody should use
6601# AS_FOR_TARGET and LD_FOR_TARGET.
6602if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6603 gcc_version=`cat $srcdir/gcc/BASE-VER`
6604 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6605 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6606 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6607 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6608 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6609 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6610else
6611 gcc_cv_tool_dirs=
6612fi
6613
6614if test x$build = x$target && test -n "$md_exec_prefix"; then
6615 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6616fi
6617
6618
6619
55ffb5ed
NN
6620copy_dirs=
6621
1c710c3c 6622
5213506e
RW
6623# Check whether --with-build-sysroot was given.
6624if test "${with_build_sysroot+set}" = set; then :
6625 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6626 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6627 fi
6628else
6629 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6630fi
526635cb
MM
6631
6632
c8aea42c 6633
5213506e
RW
6634
6635# Check whether --with-debug-prefix-map was given.
6636if test "${with_debug_prefix_map+set}" = set; then :
6637 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6638 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6639 for debug_map in $withval; do
6640 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6641 done
6642 fi
6643else
6644 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6645fi
6646
c8aea42c
PB
6647
6648
1c8bd6a3
PB
6649# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6650# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6651# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6652# We want to ensure that TARGET libraries (which we know are built with
6653# gcc) are built with "-O2 -g", so include those options when setting
6654# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6655if test "x$CFLAGS_FOR_TARGET" = x; then
6656 CFLAGS_FOR_TARGET=$CFLAGS
6657 case " $CFLAGS " in
6658 *" -O2 "*) ;;
bd8e704f 6659 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6660 esac
6661 case " $CFLAGS " in
6662 *" -g "* | *" -g3 "*) ;;
bd8e704f 6663 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6664 esac
6665fi
6666
6667
6668if test "x$CXXFLAGS_FOR_TARGET" = x; then
6669 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6670 case " $CXXFLAGS " in
6671 *" -O2 "*) ;;
bd8e704f 6672 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6673 esac
6674 case " $CXXFLAGS " in
6675 *" -g "* | *" -g3 "*) ;;
bd8e704f 6676 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6677 esac
6678fi
6679
6680
6f57bdf6
DK
6681
6682
55ffb5ed
NN
6683# Handle --with-headers=XXX. If the value is not "yes", the contents of
6684# the named directory are copied to $(tooldir)/sys-include.
6685if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6686 if test x${is_cross_compiler} = xno ; then
6687 echo 1>&2 '***' --with-headers is only supported when cross compiling
6688 exit 1
6689 fi
6690 if test x"${with_headers}" != xyes ; then
c3a86da9 6691 x=${gcc_cv_tool_prefix}
1c710c3c 6692 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6693 fi
6694fi
6695
6696# Handle --with-libs=XXX. If the value is not "yes", the contents of
6697# the name directories are copied to $(tooldir)/lib. Multiple directories
6698# are permitted.
6699if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6700 if test x${is_cross_compiler} = xno ; then
6701 echo 1>&2 '***' --with-libs is only supported when cross compiling
6702 exit 1
6703 fi
6704 if test x"${with_libs}" != xyes ; then
6705 # Copy the libraries in reverse order, so that files in the first named
6706 # library override files in subsequent libraries.
c3a86da9 6707 x=${gcc_cv_tool_prefix}
55ffb5ed 6708 for l in ${with_libs}; do
1c710c3c 6709 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6710 done
6711 fi
6712fi
6713
d7f09764 6714# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6715#
6716# This is done by determining whether or not the appropriate directory
6717# is available, and by checking whether or not specific configurations
6718# have requested that this magic not happen.
1c710c3c
DJ
6719#
6720# The command line options always override the explicit settings in
e8b05380
PB
6721# configure.in, and the settings in configure.in override this magic.
6722#
1c710c3c 6723# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6724# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6725# --without-gnu-ld options for the configure script. Similarly, if
6726# the default is to use the included zlib and you don't want to do that,
6727# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6728
6729if test x${use_gnu_as} = x &&
6730 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6731 with_gnu_as=yes
6732 extra_host_args="$extra_host_args --with-gnu-as"
6733fi
6734
6735if test x${use_gnu_ld} = x &&
5afab7ad 6736 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6737 with_gnu_ld=yes
6738 extra_host_args="$extra_host_args --with-gnu-ld"
6739fi
6740
d7f09764
DN
6741if test x${use_included_zlib} = x &&
6742 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6743 :
6744else
6745 with_system_zlib=yes
6746 extra_host_args="$extra_host_args --with-system-zlib"
6747fi
6748
e8b05380
PB
6749# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6750# can detect this case.
6751
6752if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6753 with_newlib=yes
6754 extra_host_args="$extra_host_args --with-newlib"
6755fi
6756
55ffb5ed
NN
6757# Handle ${copy_dirs}
6758set fnord ${copy_dirs}
6759shift
6760while test $# != 0 ; do
6761 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6762 :
6763 else
6764 echo Copying $1 to $2
6765
6766 # Use the install script to create the directory and all required
6767 # parent directories.
6768 if test -d $2 ; then
6769 :
6770 else
6771 echo >config.temp
6772 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6773 fi
6774
6775 # Copy the directory, assuming we have tar.
6776 # FIXME: Should we use B in the second tar? Not all systems support it.
6777 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6778
6779 # It is the responsibility of the user to correctly adjust all
6780 # symlinks. If somebody can figure out how to handle them correctly
6781 # here, feel free to add the code.
6782
6783 echo $1 > $2/COPIED
6784 fi
6785 shift; shift
6786done
6787
e8b05380
PB
6788# Determine a target-dependent exec_prefix that the installed
6789# gcc will search in. Keep this list sorted by triplet, with
6790# the *-*-osname triplets last.
6791md_exec_prefix=
6792case "${target}" in
30b74385 6793 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6794 md_exec_prefix=/dev/env/DJDIR/bin
6795 ;;
e8b05380 6796 *-*-hpux* | \
e8b05380 6797 *-*-nto-qnx* | \
6de66370 6798 *-*-solaris2*)
e8b05380
PB
6799 md_exec_prefix=/usr/ccs/bin
6800 ;;
6801esac
6802
671aa708
NN
6803extra_arflags_for_target=
6804extra_nmflags_for_target=
6805extra_ranlibflags_for_target=
6806target_makefile_frag=/dev/null
6807case "${target}" in
58e24147
AM
6808 spu-*-*)
6809 target_makefile_frag="config/mt-spu"
6810 ;;
d896cc4d 6811 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6812 target_makefile_frag="config/mt-sde"
6813 ;;
1ec3b87b
RS
6814 mipsisa*-*-elfoabi*)
6815 target_makefile_frag="config/mt-mips-elfoabi"
6816 ;;
08d0963a
RS
6817 mips*-*-*linux* | mips*-*-gnu*)
6818 target_makefile_frag="config/mt-mips-gnu"
6819 ;;
707f1839
SL
6820 nios2-*-elf*)
6821 target_makefile_frag="config/mt-nios2-elf"
6822 ;;
416ac4d4 6823 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6824 target_makefile_frag="config/mt-gnu"
671aa708
NN
6825 ;;
6826 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6827 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6828 # commands to handle both 32-bit and 64-bit objects. These flags are
6829 # harmless if we're using GNU nm or ar.
6830 extra_arflags_for_target=" -X32_64"
6831 extra_nmflags_for_target=" -B -X32_64"
6832 ;;
671aa708
NN
6833esac
6834
6835alphaieee_frag=/dev/null
6836case $target in
6837 alpha*-*-*)
6838 # This just makes sure to use the -mieee option to build target libs.
6839 # This should probably be set individually by each library.
6840 alphaieee_frag="config/mt-alphaieee"
6841 ;;
6842esac
6843
6844# If --enable-target-optspace always use -Os instead of -O2 to build
6845# the target libraries, similarly if it is not specified, use -Os
6846# on selected platforms.
6847ospace_frag=/dev/null
6848case "${enable_target_optspace}:${target}" in
6849 yes:*)
6850 ospace_frag="config/mt-ospace"
6851 ;;
6852 :d30v-*)
6853 ospace_frag="config/mt-d30v"
6854 ;;
6855 :m32r-* | :d10v-* | :fr30-*)
6856 ospace_frag="config/mt-ospace"
6857 ;;
6858 no:* | :*)
6859 ;;
6860 *)
6861 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6862 ;;
6863esac
6864
671aa708
NN
6865# Some systems (e.g., one of the i386-aix systems the gas testers are
6866# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6867tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6868build_tooldir=${tooldir}
6869
671aa708
NN
6870# Create a .gdbinit file which runs the one in srcdir
6871# and tells GDB to look there for source files.
6872
6873if test -r ${srcdir}/.gdbinit ; then
6874 case ${srcdir} in
6875 .) ;;
6876 *) cat > ./.gdbinit <<EOF
6877# ${NO_EDIT}
6878dir ${srcdir}
6879dir .
6880source ${srcdir}/.gdbinit
6881EOF
6882 ;;
6883 esac
6884fi
6885
671aa708
NN
6886# Make sure that the compiler is able to generate an executable. If it
6887# can't, we are probably in trouble. We don't care whether we can run the
6888# executable--we might be using a cross compiler--we only care whether it
6889# can be created. At this point the main configure script has set CC.
6890we_are_ok=no
6891echo "int main () { return 0; }" > conftest.c
6892${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6893if test $? = 0 ; then
6894 if test -s conftest || test -s conftest.exe ; then
6895 we_are_ok=yes
6896 fi
1c710c3c 6897fi
671aa708
NN
6898case $we_are_ok in
6899 no)
6900 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6901 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6902 rm -f conftest*
6903 exit 1
6904 ;;
6905esac
6906rm -f conftest*
6907
d89f0ad6 6908# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6909case "${host}" in
6910 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6911 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6912 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6913 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6914esac
6915
d89f0ad6
AL
6916# On systems where the dynamic library environment variable is PATH,
6917# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6918# built executables to PATH.
6919if test "$RPATH_ENVVAR" = PATH; then
6920 GCC_SHLIB_SUBDIR=/shlib
6921else
6922 GCC_SHLIB_SUBDIR=
6923fi
6924
beeda1d9
JJ
6925# Adjust the toplevel makefile according to whether bootstrap was selected.
6926case $enable_bootstrap in
6927 yes)
6928 bootstrap_suffix=bootstrap
6929 BUILD_CONFIG=bootstrap-debug
6930 ;;
6931 no)
6932 bootstrap_suffix=no-bootstrap
6933 BUILD_CONFIG=
6934 ;;
6935esac
6936
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6938$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6939
6940
6941# Check whether --with-build-config was given.
6942if test "${with_build_config+set}" = set; then :
6943 withval=$with_build_config; case $with_build_config in
6944 yes) with_build_config= ;;
6945 no) with_build_config= BUILD_CONFIG= ;;
6946 esac
6947fi
6948
6949
6950if test "x${with_build_config}" != x; then
6951 BUILD_CONFIG=$with_build_config
6952else
6953 case $BUILD_CONFIG in
6954 bootstrap-debug)
6955 if echo "int f (void) { return 0; }" > conftest.c &&
6956 ${CC} -c conftest.c &&
6957 mv conftest.o conftest.o.g0 &&
6958 ${CC} -c -g conftest.c &&
6959 mv conftest.o conftest.o.g &&
6960 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6961 :
6962 else
6963 BUILD_CONFIG=
6964 fi
6965 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6966 ;;
6967 esac
6968fi
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6970$as_echo "$BUILD_CONFIG" >&6; }
6971
6972
6973# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6975$as_echo_n "checking for --enable-vtable-verify... " >&6; }
6976# Check whether --enable-vtable-verify was given.
6977if test "${enable_vtable_verify+set}" = set; then :
6978 enableval=$enable_vtable_verify; case "$enableval" in
6979 yes) enable_vtable_verify=yes ;;
6980 no) enable_vtable_verify=no ;;
6981 *) enable_vtable_verify=no;;
6982 esac
6983else
6984 enable_vtable_verify=no
6985fi
6986
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
6988$as_echo "$enable_vtable_verify" >&6; }
6989
671aa708
NN
6990# Record target_configdirs and the configure arguments for target and
6991# build configuration in Makefile.
6992target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6993build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 6994bootstrap_fixincludes=no
671aa708 6995
ad1e5170
JR
6996# If we are building libgomp, bootstrap it.
6997if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6998 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6999fi
7000
beeda1d9
JJ
7001# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7002# or bootstrap-ubsan, bootstrap it.
7003if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7004 case "$BUILD_CONFIG" in
7005 *bootstrap-asan* | *bootstrap-ubsan* )
7006 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7007 bootstrap_fixincludes=yes
beeda1d9
JJ
7008 ;;
7009 esac
ac8701fe
L
7010fi
7011
beeda1d9
JJ
7012# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7013if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7014 test "$enable_vtable_verify" != no; then
2077db1b
CT
7015 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7016fi
7017
671aa708
NN
7018# Determine whether gdb needs tk/tcl or not.
7019# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7020# and in that case we want gdb to be built without tk. Ugh!
7021# In fact I believe gdb is the *only* package directly dependent on tk,
7022# so we should be able to put the 'maybe's in unconditionally and
7023# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7024# 100% sure that that's safe though.
e914a571 7025
b4f96efe 7026gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7027case "$enable_gdbtk" in
7028 no)
7029 GDB_TK="" ;;
e914a571
AC
7030 yes)
7031 GDB_TK="${gdb_tk}" ;;
671aa708 7032 *)
e914a571
AC
7033 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7034 # distro. Eventually someone will fix this and move Insight, nee
7035 # gdbtk to a separate directory.
7036 if test -d ${srcdir}/gdb/gdbtk ; then
7037 GDB_TK="${gdb_tk}"
7038 else
7039 GDB_TK=""
7040 fi
7041 ;;
671aa708 7042esac
ef9db8d5
DJ
7043CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7044INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7045
60975492 7046# Strip out unwanted targets.
8b87bb96
NN
7047
7048# While at that, we remove Makefiles if we were started for recursive
7049# configuration, so that the top-level Makefile reconfigures them,
7050# like we used to do when configure itself was recursive.
8b87bb96 7051
3e54529c
RW
7052# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7053# but now we're fixing up the Makefile ourselves with the additional
7054# commands passed to AC_CONFIG_FILES. Use separate variables
7055# extrasub-{build,host,target} not because there is any reason to split
7056# the substitutions up that way, but only to remain below the limit of
7057# 99 commands in a script, for HP-UX sed.
7058# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7059
79cd2b23
RW
7060case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7061 yes:yes:*\ gold\ *:*,c++,*) ;;
7062 yes:yes:*\ gold\ *:*)
7063 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7064 ;;
7065esac
7066
3e54529c 7067extrasub_build=
23f6b2f9 7068for module in ${build_configdirs} ; do
5607edfd
PB
7069 if test -z "${no_recursion}" \
7070 && test -f ${build_subdir}/${module}/Makefile; then
7071 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7072 rm -f ${build_subdir}/${module}/Makefile
7073 fi
3e54529c 7074 extrasub_build="$extrasub_build
5607edfd
PB
7075/^@if build-$module\$/d
7076/^@endif build-$module\$/d
7077/^@if build-$module-$bootstrap_suffix\$/d
7078/^@endif build-$module-$bootstrap_suffix\$/d"
7079done
3e54529c 7080extrasub_host=
5607edfd 7081for module in ${configdirs} ; do
a6fbc1e2 7082 if test -z "${no_recursion}"; then
f063a9ed 7083 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7084 if test -f ${file}; then
7085 echo 1>&2 "*** removing ${file} to force reconfigure"
7086 rm -f ${file}
7087 fi
7088 done
5607edfd 7089 fi
9e1c8fc1
JJ
7090 case ${module},${bootstrap_fixincludes} in
7091 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7092 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7093 esac
3e54529c 7094 extrasub_host="$extrasub_host
5607edfd
PB
7095/^@if $module\$/d
7096/^@endif $module\$/d
9e1c8fc1
JJ
7097/^@if $module-$host_bootstrap_suffix\$/d
7098/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7099done
3e54529c 7100extrasub_target=
5607edfd
PB
7101for module in ${target_configdirs} ; do
7102 if test -z "${no_recursion}" \
7103 && test -f ${target_subdir}/${module}/Makefile; then
7104 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7105 rm -f ${target_subdir}/${module}/Makefile
7106 fi
00020c16
ILT
7107
7108 # We only bootstrap target libraries listed in bootstrap_target_libs.
7109 case $bootstrap_target_libs in
7110 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7111 *) target_bootstrap_suffix=no-bootstrap ;;
7112 esac
7113
3e54529c 7114 extrasub_target="$extrasub_target
5607edfd
PB
7115/^@if target-$module\$/d
7116/^@endif target-$module\$/d
00020c16
ILT
7117/^@if target-$module-$target_bootstrap_suffix\$/d
7118/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7119done
7120
3e54529c
RW
7121# Do the final fixup along with target modules.
7122extrasub_target="$extrasub_target
60975492 7123/^@if /,/^@endif /d"
671aa708
NN
7124
7125# Create the serialization dependencies. This uses a temporary file.
7126
5213506e
RW
7127# Check whether --enable-serial-configure was given.
7128if test "${enable_serial_configure+set}" = set; then :
7129 enableval=$enable_serial_configure;
7130fi
ade82b16
AO
7131
7132
bf1d3e81
NN
7133case ${enable_serial_configure} in
7134 yes)
7135 enable_serial_build_configure=yes
7136 enable_serial_host_configure=yes
7137 enable_serial_target_configure=yes
7138 ;;
7139esac
7140
671aa708
NN
7141# These force 'configure's to be done one at a time, to avoid problems
7142# with contention over a shared config.cache.
7143rm -f serdep.tmp
ade82b16 7144echo '# serdep.tmp' > serdep.tmp
671aa708 7145olditem=
bf1d3e81 7146test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7147for item in ${build_configdirs} ; do
7148 case ${olditem} in
7149 "") ;;
ade82b16 7150 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7151 esac
7152 olditem=${item}
7153done
7154olditem=
bf1d3e81 7155test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7156for item in ${configdirs} ; do
7157 case ${olditem} in
7158 "") ;;
ade82b16 7159 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7160 esac
7161 olditem=${item}
7162done
7163olditem=
bf1d3e81 7164test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7165for item in ${target_configdirs} ; do
7166 case ${olditem} in
7167 "") ;;
ade82b16 7168 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7169 esac
7170 olditem=${item}
7171done
7172serialization_dependencies=serdep.tmp
7173
7174
ade82b16 7175# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7176# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7177# might not want to pass down to subconfigures. The exception being
7178# --cache-file=/dev/null, which is used to turn off the use of cache
7179# files altogether, and which should be passed on to subconfigures.
7180# Also strip program-prefix, program-suffix, and program-transform-name,
7181# so that we can pass down a consistent program-transform-name.
1c710c3c 7182baseargs=
29a63921 7183tbaseargs=
1c710c3c
DJ
7184keep_next=no
7185skip_next=no
7186eval "set -- $ac_configure_args"
44bfc3ac
DJ
7187for ac_arg
7188do
1c710c3c
DJ
7189 if test X"$skip_next" = X"yes"; then
7190 skip_next=no
7191 continue
7192 fi
7193 if test X"$keep_next" = X"yes"; then
7194 case $ac_arg in
7195 *\'*)
7196 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7197 esac
7198 baseargs="$baseargs '$ac_arg'"
29a63921 7199 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7200 keep_next=no
7201 continue
7202 fi
7203
7204 # Handle separated arguments. Based on the logic generated by
7205 # autoconf 2.59.
7206 case $ac_arg in
7207 *=* | --config-cache | -C | -disable-* | --disable-* \
7208 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7209 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7210 | -with-* | --with-* | -without-* | --without-* | --x)
7211 separate_arg=no
7212 ;;
7213 -*)
7214 separate_arg=yes
7215 ;;
7216 *)
7217 separate_arg=no
7218 ;;
7219 esac
7220
29a63921
AO
7221 skip_targ=no
7222 case $ac_arg in
7223
7224 --with-* | --without-*)
7225 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7226
7227 case $libopt in
7228 *[-_]include)
7229 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7230 ;;
7231 *[-_]lib)
7232 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7233 ;;
7234 *)
7235 lib=$libopt
7236 ;;
7237 esac
7238
7239
7240 case $lib in
4a9bb2aa 7241 mpc | mpfr | gmp | isl)
29a63921
AO
7242 # If we're processing --with-$lib, --with-$lib-include or
7243 # --with-$lib-lib, for one of the libs above, and target is
7244 # different from host, don't pass the current argument to any
7245 # target library's configure.
7246 if test x$is_cross_compiler = xyes; then
7247 skip_targ=yes
7248 fi
7249 ;;
7250 esac
7251 ;;
7252 esac
7253
1c710c3c 7254 case "$ac_arg" in
f1a036e4
NC
7255 --cache-file=/dev/null | \
7256 -cache-file=/dev/null )
7257 # Handled here to avoid the test to skip args below.
7258 baseargs="$baseargs '$ac_arg'"
29a63921 7259 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7260 # Assert: $separate_arg should always be no.
7261 keep_next=$separate_arg
7262 ;;
1c710c3c
DJ
7263 --no*)
7264 continue
7265 ;;
7266 --c* | \
7267 --sr* | \
7268 --ho* | \
7269 --bu* | \
7270 --t* | \
7271 --program-* | \
7272 -cache_file* | \
7273 -srcdir* | \
7274 -host* | \
7275 -build* | \
7276 -target* | \
7277 -program-prefix* | \
7278 -program-suffix* | \
7279 -program-transform-name* )
7280 skip_next=$separate_arg
7281 continue
7282 ;;
7283 -*)
7284 # An option. Add it.
7285 case $ac_arg in
7286 *\'*)
7287 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7288 esac
7289 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7290 if test X"$skip_targ" = Xno; then
7291 tbaseargs="$tbaseargs '$ac_arg'"
7292 fi
1c710c3c
DJ
7293 keep_next=$separate_arg
7294 ;;
7295 *)
7296 # Either a variable assignment, or a nonopt (triplet). Don't
7297 # pass it down; let the Makefile handle this.
7298 continue
7299 ;;
7300 esac
7301done
7302# Remove the initial space we just introduced and, as these will be
7303# expanded by make, quote '$'.
7304baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7305
43bb47c2
DJ
7306# Add in --program-transform-name, after --program-prefix and
7307# --program-suffix have been applied to it. Autoconf has already
7308# doubled dollar signs and backslashes in program_transform_name; we want
7309# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7310# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7311# Also, because we want to override the logic in subdir configure scripts to
7312# choose program_transform_name, replace any s,x,x, with s,y,y,.
7313sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7314${program_transform_name}
7315EOF_SED
7316gcc_transform_name=`cat conftestsed.out`
7317rm -f conftestsed.out
7318baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7319tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7320if test "$silent" = yes; then
7321 baseargs="$baseargs --silent"
29a63921 7322 tbaseargs="$tbaseargs --silent"
d9acb717 7323fi
0115d4a3 7324baseargs="$baseargs --disable-option-checking"
29a63921 7325tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7326
ffedf511
RW
7327# Record and document user additions to sub configure arguments.
7328
7329
7330
7331
671aa708
NN
7332# For the build-side libraries, we just need to pretend we're native,
7333# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7334# desired. We can't even use the same cache file for all build-side
7335# libraries, as they're compiled differently; some with C, some with
7336# C++ or with different feature-enabling options.
7337build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7338
7339# For host modules, accept cache file option, or specification as blank.
7340case "${cache_file}" in
7341"") # empty
7342 cache_file_option="" ;;
7343/* | [A-Za-z]:[\\/]* ) # absolute path
7344 cache_file_option="--cache-file=${cache_file}" ;;
7345*) # relative path
7346 cache_file_option="--cache-file=../${cache_file}" ;;
7347esac
7348
09438bde
NN
7349# Host dirs don't like to share a cache file either, horribly enough.
7350# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7351host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7352
29a63921 7353target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7354
7355# Passing a --with-cross-host argument lets the target libraries know
7356# whether they are being built with a cross-compiler or being built
7357# native. However, it would be better to use other mechanisms to make the
7358# sorts of decisions they want to make on this basis. Please consider
7359# this option to be deprecated. FIXME.
7360if test x${is_cross_compiler} = xyes ; then
1c710c3c 7361 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7362fi
7363
79e0604d
FXC
7364# Special user-friendly check for native x86_64-linux build, if
7365# multilib is not explicitly enabled.
7366case "$target:$have_compiler:$host:$target:$enable_multilib" in
7367 x86_64-*linux*:yes:$build:$build:)
7368 # Make sure we have a developement environment that handles 32-bit
7369 dev64=no
7370 echo "int main () { return 0; }" > conftest.c
7371 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7372 if test $? = 0 ; then
7373 if test -s conftest || test -s conftest.exe ; then
7374 dev64=yes
7375 fi
7376 fi
7377 rm -f conftest*
7378 if test x${dev64} != xyes ; then
7379 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7380 fi
7381 ;;
7382esac
7383
dc683a3f
RW
7384# Default to --enable-multilib.
7385if test x${enable_multilib} = x ; then
671aa708 7386 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7387fi
671aa708
NN
7388
7389# Pass --with-newlib if appropriate. Note that target_configdirs has
7390# changed from the earlier setting of with_newlib.
7391if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7392 target_configargs="--with-newlib ${target_configargs}"
7393fi
7394
6b9eb62c
NN
7395# Different target subdirs use different values of certain variables
7396# (notably CXX). Worse, multilibs use *lots* of different values.
7397# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7398# it doesn't automatically accept command-line overrides of them.
7399# This means it's not safe for target subdirs to share a cache file,
7400# which is disgusting, but there you have it. Hopefully this can be
7401# fixed in future. It's still worthwhile to use a cache file for each
7402# directory. I think.
7403
bebcd931
MS
7404# Pass the appropriate --build, --host, --target and --cache-file arguments.
7405# We need to pass --target, as newer autoconf's requires consistency
7406# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7407target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7408
671aa708
NN
7409FLAGS_FOR_TARGET=
7410case " $target_configdirs " in
7411 *" newlib "*)
7412 case " $target_configargs " in
7413 *" --with-newlib "*)
7414 case "$target" in
5d571eaa 7415 *-cygwin*)
443e6238 7416 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7417 ;;
671aa708
NN
7418 esac
7419
7420 # If we're not building GCC, don't discard standard headers.
7421 if test -d ${srcdir}/gcc; then
7422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7423
7424 if test "${build}" != "${host}"; then
7425 # On Canadian crosses, CC_FOR_TARGET will have already been set
7426 # by `configure', so we won't have an opportunity to add -Bgcc/
7427 # to it. This is right: we don't want to search that directory
7428 # for binaries, but we want the header files in there, so add
7429 # them explicitly.
0463992b 7430 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7431
7432 # Someone might think of using the pre-installed headers on
7433 # Canadian crosses, in case the installed compiler is not fully
7434 # compatible with the compiler being built. In this case, it
7435 # would be better to flag an error than risking having
7436 # incompatible object files being constructed. We can't
7437 # guarantee that an error will be flagged, but let's hope the
7438 # compiler will do it, when presented with incompatible header
7439 # files.
7440 fi
7441 fi
7442
7443 case "${target}-${is_cross_compiler}" in
f2a0e225 7444 i[3456789]86-*-linux*-no)
671aa708
NN
7445 # Here host == target, so we don't need to build gcc,
7446 # so we don't want to discard standard headers.
7447 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7448 ;;
7449 *)
7450 # If we're building newlib, use its generic headers last, but search
7451 # for any libc-related directories first (so make it the last -B
7452 # switch).
7453 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7454
7455 # If we're building libgloss, find the startup file, simulator library
7456 # and linker script.
7457 case " $target_configdirs " in
7458 *" libgloss "*)
7459 # Look for startup file, simulator library and maybe linker script.
7460 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7461 # Look for libnosys.a in case the target needs it.
7462 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7463 # Most targets have the linker script in the source directory.
7464 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7465 ;;
7466 esac
671aa708
NN
7467 ;;
7468 esac
7469 ;;
7470 esac
7471 ;;
7472esac
5d571eaa 7473
b91f0a41 7474case "$target" in
5d571eaa
OS
7475 x86_64-*mingw* | *-w64-mingw*)
7476 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7477 # however, use a symlink named 'mingw' in ${prefix} .
7478 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7479 ;;
7480 *-mingw*)
7481 # MinGW can't be handled as Cygwin above since it does not use newlib.
7482 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'
7483 ;;
b91f0a41 7484esac
671aa708 7485
6691a79e
ME
7486# Allow the user to override the flags for
7487# our build compiler if desired.
f019adc1
MF
7488if test x"${build}" = x"${host}" ; then
7489 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7490 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7491 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7492fi
6691a79e 7493
671aa708
NN
7494# On Canadian crosses, we'll be searching the right directories for
7495# the previously-installed cross compiler, so don't bother to add
7496# flags for directories within the install tree of the compiler
7497# being built; programs in there won't even run.
7498if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7499 # Search for pre-installed headers if nothing else fits.
9124bc53 7500 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7501fi
7502
7503if test "x${use_gnu_ld}" = x &&
7504 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7505 # Arrange for us to find uninstalled linker scripts.
215c351a 7506 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7507fi
7508
e88a2c09
DD
7509# Search for other target-specific linker scripts and such.
7510case "${target}" in
3e19841a
PB
7511 mep*)
7512 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7513 ;;
e88a2c09
DD
7514esac
7515
671aa708 7516# Makefile fragments.
7b61653a
PE
7517for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7518do
7519 eval fragval=\$$frag
7520 if test $fragval != /dev/null; then
7521 eval $frag=${srcdir}/$fragval
7522 fi
7523done
671aa708
NN
7524
7525
7526
7527
7528
7529# Miscellanea: directories, flags, etc.
7530
7531
7532
7533
7534
7535
7536
d89f0ad6 7537
23f6b2f9 7538# Build module lists & subconfigure args.
671aa708
NN
7539
7540
7541
2abefe3d
PB
7542# Host module lists & subconfigure args.
7543
7544
7545
aae29963 7546
2abefe3d
PB
7547# Target module lists & subconfigure args.
7548
7549
7550
7551# Build tools.
7552
7553
7554
0999159b
PB
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
2abefe3d
PB
7569# Generate default definitions for YACC, M4, LEX and other programs that run
7570# on the build machine. These are used if the Makefile can't locate these
7571# programs in objdir.
7572MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7573
7574for ac_prog in 'bison -y' byacc yacc
7575do
1c710c3c 7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7577set dummy $ac_prog; ac_word=$2
5213506e
RW
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
7580if test "${ac_cv_prog_YACC+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
2abefe3d
PB
7582else
7583 if test -n "$YACC"; then
7584 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7585else
1c710c3c
DJ
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
5213506e
RW
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7593 ac_cv_prog_YACC="$ac_prog"
5213506e 7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7595 break 2
7596 fi
7597done
5213506e
RW
7598 done
7599IFS=$as_save_IFS
1c710c3c 7600
2abefe3d
PB
7601fi
7602fi
1c710c3c 7603YACC=$ac_cv_prog_YACC
2abefe3d 7604if test -n "$YACC"; then
5213506e
RW
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7606$as_echo "$YACC" >&6; }
2abefe3d 7607else
5213506e
RW
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
2abefe3d
PB
7610fi
7611
5213506e 7612
1c710c3c 7613 test -n "$YACC" && break
2abefe3d
PB
7614done
7615test -n "$YACC" || YACC="$MISSING bison -y"
7616
7617case " $build_configdirs " in
7618 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7619esac
7620
7621for ac_prog in bison
7622do
1c710c3c 7623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7624set dummy $ac_prog; ac_word=$2
5213506e
RW
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626$as_echo_n "checking for $ac_word... " >&6; }
7627if test "${ac_cv_prog_BISON+set}" = set; then :
7628 $as_echo_n "(cached) " >&6
2abefe3d
PB
7629else
7630 if test -n "$BISON"; then
7631 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7632else
1c710c3c
DJ
7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
5213506e
RW
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7640 ac_cv_prog_BISON="$ac_prog"
5213506e 7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7642 break 2
7643 fi
7644done
5213506e
RW
7645 done
7646IFS=$as_save_IFS
1c710c3c 7647
2abefe3d
PB
7648fi
7649fi
1c710c3c 7650BISON=$ac_cv_prog_BISON
2abefe3d 7651if test -n "$BISON"; then
5213506e
RW
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7653$as_echo "$BISON" >&6; }
2abefe3d 7654else
5213506e
RW
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656$as_echo "no" >&6; }
2abefe3d
PB
7657fi
7658
5213506e 7659
1c710c3c 7660 test -n "$BISON" && break
2abefe3d
PB
7661done
7662test -n "$BISON" || BISON="$MISSING bison"
7663
7664case " $build_configdirs " in
7665 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7666esac
7667
7668for ac_prog in gm4 gnum4 m4
7669do
1c710c3c 7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7671set dummy $ac_prog; ac_word=$2
5213506e
RW
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673$as_echo_n "checking for $ac_word... " >&6; }
7674if test "${ac_cv_prog_M4+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
2abefe3d
PB
7676else
7677 if test -n "$M4"; then
7678 ac_cv_prog_M4="$M4" # Let the user override the test.
7679else
1c710c3c
DJ
7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
5213506e
RW
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7687 ac_cv_prog_M4="$ac_prog"
5213506e 7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7689 break 2
7690 fi
7691done
5213506e
RW
7692 done
7693IFS=$as_save_IFS
1c710c3c 7694
2abefe3d
PB
7695fi
7696fi
1c710c3c 7697M4=$ac_cv_prog_M4
2abefe3d 7698if test -n "$M4"; then
5213506e
RW
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7700$as_echo "$M4" >&6; }
2abefe3d 7701else
5213506e
RW
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703$as_echo "no" >&6; }
2abefe3d
PB
7704fi
7705
5213506e 7706
1c710c3c 7707 test -n "$M4" && break
2abefe3d
PB
7708done
7709test -n "$M4" || M4="$MISSING m4"
7710
7711case " $build_configdirs " in
7712 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7713esac
7714
7715for ac_prog in flex lex
7716do
1c710c3c 7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7718set dummy $ac_prog; ac_word=$2
5213506e
RW
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720$as_echo_n "checking for $ac_word... " >&6; }
7721if test "${ac_cv_prog_LEX+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
2abefe3d
PB
7723else
7724 if test -n "$LEX"; then
7725 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7726else
1c710c3c
DJ
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
5213506e
RW
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7734 ac_cv_prog_LEX="$ac_prog"
5213506e 7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7736 break 2
7737 fi
7738done
5213506e
RW
7739 done
7740IFS=$as_save_IFS
1c710c3c 7741
2abefe3d
PB
7742fi
7743fi
1c710c3c 7744LEX=$ac_cv_prog_LEX
2abefe3d 7745if test -n "$LEX"; then
5213506e
RW
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7747$as_echo "$LEX" >&6; }
2abefe3d 7748else
5213506e
RW
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
2abefe3d
PB
7751fi
7752
5213506e 7753
1c710c3c 7754 test -n "$LEX" && break
2abefe3d
PB
7755done
7756test -n "$LEX" || LEX="$MISSING flex"
7757
7758case " $build_configdirs " in
7759 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7760 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7761esac
7762
7763for ac_prog in flex
7764do
1c710c3c 7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7766set dummy $ac_prog; ac_word=$2
5213506e
RW
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768$as_echo_n "checking for $ac_word... " >&6; }
7769if test "${ac_cv_prog_FLEX+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
2abefe3d
PB
7771else
7772 if test -n "$FLEX"; then
7773 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7774else
1c710c3c
DJ
7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
5213506e
RW
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7782 ac_cv_prog_FLEX="$ac_prog"
5213506e 7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7784 break 2
7785 fi
7786done
5213506e
RW
7787 done
7788IFS=$as_save_IFS
1c710c3c 7789
2abefe3d
PB
7790fi
7791fi
1c710c3c 7792FLEX=$ac_cv_prog_FLEX
2abefe3d 7793if test -n "$FLEX"; then
5213506e
RW
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7795$as_echo "$FLEX" >&6; }
2abefe3d 7796else
5213506e
RW
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798$as_echo "no" >&6; }
2abefe3d
PB
7799fi
7800
5213506e 7801
1c710c3c 7802 test -n "$FLEX" && break
2abefe3d
PB
7803done
7804test -n "$FLEX" || FLEX="$MISSING flex"
7805
7806case " $build_configdirs " in
7807 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7808esac
7809
7810for ac_prog in makeinfo
7811do
1c710c3c 7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7813set dummy $ac_prog; ac_word=$2
5213506e
RW
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815$as_echo_n "checking for $ac_word... " >&6; }
7816if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
2abefe3d
PB
7818else
7819 if test -n "$MAKEINFO"; then
7820 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7821else
1c710c3c
DJ
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
5213506e
RW
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7829 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7831 break 2
7832 fi
7833done
5213506e
RW
7834 done
7835IFS=$as_save_IFS
1c710c3c 7836
2abefe3d
PB
7837fi
7838fi
1c710c3c 7839MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7840if test -n "$MAKEINFO"; then
5213506e
RW
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7842$as_echo "$MAKEINFO" >&6; }
2abefe3d 7843else
5213506e
RW
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
2abefe3d
PB
7846fi
7847
5213506e 7848
1c710c3c 7849 test -n "$MAKEINFO" && break
2abefe3d
PB
7850done
7851test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7852
7853case " $build_configdirs " in
7854 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7855 *)
7856
d18ff35a 7857 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7858 # higher, else we use the "missing" dummy.
7859 if ${MAKEINFO} --version \
d18ff35a 7860 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7861 :
7862 else
7863 MAKEINFO="$MISSING makeinfo"
7864 fi
7865 ;;
7866
7867esac
671aa708 7868
2abefe3d 7869# FIXME: expect and dejagnu may become build tools?
671aa708 7870
2abefe3d
PB
7871for ac_prog in expect
7872do
1c710c3c 7873 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7874set dummy $ac_prog; ac_word=$2
5213506e
RW
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876$as_echo_n "checking for $ac_word... " >&6; }
7877if test "${ac_cv_prog_EXPECT+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
2abefe3d
PB
7879else
7880 if test -n "$EXPECT"; then
7881 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7882else
1c710c3c
DJ
7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
5213506e
RW
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7890 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7892 break 2
7893 fi
7894done
5213506e
RW
7895 done
7896IFS=$as_save_IFS
1c710c3c 7897
2abefe3d
PB
7898fi
7899fi
1c710c3c 7900EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7901if test -n "$EXPECT"; then
5213506e
RW
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7903$as_echo "$EXPECT" >&6; }
2abefe3d 7904else
5213506e
RW
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906$as_echo "no" >&6; }
2abefe3d 7907fi
671aa708 7908
5213506e 7909
1c710c3c 7910 test -n "$EXPECT" && break
2abefe3d
PB
7911done
7912test -n "$EXPECT" || EXPECT="expect"
671aa708 7913
2abefe3d
PB
7914case " $configdirs " in
7915 *" expect "*)
7916 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7917 ;;
7918esac
671aa708 7919
2abefe3d
PB
7920for ac_prog in runtest
7921do
1c710c3c 7922 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7923set dummy $ac_prog; ac_word=$2
5213506e
RW
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925$as_echo_n "checking for $ac_word... " >&6; }
7926if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
2abefe3d
PB
7928else
7929 if test -n "$RUNTEST"; then
7930 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7931else
1c710c3c
DJ
7932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933for as_dir in $PATH
7934do
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
5213506e
RW
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7939 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7941 break 2
7942 fi
7943done
5213506e
RW
7944 done
7945IFS=$as_save_IFS
1c710c3c 7946
2abefe3d
PB
7947fi
7948fi
1c710c3c 7949RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7950if test -n "$RUNTEST"; then
5213506e
RW
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7952$as_echo "$RUNTEST" >&6; }
2abefe3d 7953else
5213506e
RW
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955$as_echo "no" >&6; }
2abefe3d 7956fi
671aa708 7957
5213506e 7958
1c710c3c 7959 test -n "$RUNTEST" && break
2abefe3d
PB
7960done
7961test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7962
2abefe3d
PB
7963case " $configdirs " in
7964 *" dejagnu "*)
c394e891 7965 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7966 ;;
7967esac
671aa708
NN
7968
7969
671aa708 7970# Host tools.
ca9f4b81
AO
7971ncn_tool_prefix=
7972test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7973ncn_target_tool_prefix=
7974test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7975
278a7a38
AO
7976
7977
7978if test -n "$AR"; then
7979 ac_cv_prog_AR=$AR
7980elif test -n "$ac_cv_prog_AR"; then
7981 AR=$ac_cv_prog_AR
7982fi
7983
7984if test -n "$ac_cv_prog_AR"; then
7985 for ncn_progname in ar; do
7986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7987set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989$as_echo_n "checking for $ac_word... " >&6; }
7990if test "${ac_cv_prog_AR+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
278a7a38
AO
7992else
7993 if test -n "$AR"; then
7994 ac_cv_prog_AR="$AR" # Let the user override the test.
7995else
7996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
5213506e
RW
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8003 ac_cv_prog_AR="${ncn_progname}"
5213506e 8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8005 break 2
8006 fi
8007done
5213506e
RW
8008 done
8009IFS=$as_save_IFS
278a7a38
AO
8010
8011fi
8012fi
8013AR=$ac_cv_prog_AR
8014if test -n "$AR"; then
5213506e
RW
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8016$as_echo "$AR" >&6; }
278a7a38 8017else
5213506e
RW
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019$as_echo "no" >&6; }
278a7a38
AO
8020fi
8021
5213506e 8022
278a7a38
AO
8023 done
8024fi
8025
8026for ncn_progname in ar; do
2693c0b0
PB
8027 if test -n "$ncn_tool_prefix"; then
8028 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8029set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031$as_echo_n "checking for $ac_word... " >&6; }
8032if test "${ac_cv_prog_AR+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8034else
8035 if test -n "$AR"; then
8036 ac_cv_prog_AR="$AR" # Let the user override the test.
8037else
1c710c3c
DJ
8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
5213506e
RW
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8045 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8047 break 2
8048 fi
8049done
5213506e
RW
8050 done
8051IFS=$as_save_IFS
1c710c3c 8052
ca9f4b81
AO
8053fi
8054fi
1c710c3c 8055AR=$ac_cv_prog_AR
ca9f4b81 8056if test -n "$AR"; then
5213506e
RW
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8058$as_echo "$AR" >&6; }
ca9f4b81 8059else
5213506e
RW
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061$as_echo "no" >&6; }
ca9f4b81
AO
8062fi
8063
5213506e 8064
2693c0b0
PB
8065 fi
8066 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8068set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
8071if test "${ac_cv_prog_AR+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
ca9f4b81 8073else
2693c0b0 8074 if test -n "$AR"; then
af71363e
AS
8075 ac_cv_prog_AR="$AR" # Let the user override the test.
8076else
1c710c3c
DJ
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
5213506e
RW
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8084 ac_cv_prog_AR="${ncn_progname}"
5213506e 8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8086 break 2
8087 fi
8088done
5213506e
RW
8089 done
8090IFS=$as_save_IFS
1c710c3c 8091
ca9f4b81
AO
8092fi
8093fi
1c710c3c 8094AR=$ac_cv_prog_AR
2693c0b0 8095if test -n "$AR"; then
5213506e
RW
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8097$as_echo "$AR" >&6; }
ca9f4b81 8098else
5213506e
RW
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
ca9f4b81 8101fi
1c710c3c 8102
5213506e 8103
2693c0b0
PB
8104 fi
8105 test -n "$ac_cv_prog_AR" && break
8106done
8107
8108if test -z "$ac_cv_prog_AR" ; then
8109 set dummy ar
8110 if test $build = $host ; then
8111 AR="$2"
ca9f4b81 8112 else
2693c0b0 8113 AR="${ncn_tool_prefix}$2"
ca9f4b81 8114 fi
ca9f4b81
AO
8115fi
8116
278a7a38
AO
8117
8118
8119if test -n "$AS"; then
8120 ac_cv_prog_AS=$AS
8121elif test -n "$ac_cv_prog_AS"; then
8122 AS=$ac_cv_prog_AS
8123fi
8124
8125if test -n "$ac_cv_prog_AS"; then
8126 for ncn_progname in as; do
8127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8128set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130$as_echo_n "checking for $ac_word... " >&6; }
8131if test "${ac_cv_prog_AS+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
278a7a38
AO
8133else
8134 if test -n "$AS"; then
8135 ac_cv_prog_AS="$AS" # Let the user override the test.
8136else
8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
5213506e
RW
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8144 ac_cv_prog_AS="${ncn_progname}"
5213506e 8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8146 break 2
8147 fi
8148done
5213506e
RW
8149 done
8150IFS=$as_save_IFS
278a7a38
AO
8151
8152fi
8153fi
8154AS=$ac_cv_prog_AS
8155if test -n "$AS"; then
5213506e
RW
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8157$as_echo "$AS" >&6; }
278a7a38 8158else
5213506e
RW
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
278a7a38
AO
8161fi
8162
5213506e 8163
278a7a38
AO
8164 done
8165fi
8166
8167for ncn_progname in as; do
2693c0b0
PB
8168 if test -n "$ncn_tool_prefix"; then
8169 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8170set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172$as_echo_n "checking for $ac_word... " >&6; }
8173if test "${ac_cv_prog_AS+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8175else
8176 if test -n "$AS"; then
8177 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8178else
1c710c3c
DJ
8179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
5213506e
RW
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8186 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8188 break 2
8189 fi
8190done
5213506e
RW
8191 done
8192IFS=$as_save_IFS
1c710c3c 8193
ca9f4b81
AO
8194fi
8195fi
1c710c3c 8196AS=$ac_cv_prog_AS
ca9f4b81 8197if test -n "$AS"; then
5213506e
RW
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8199$as_echo "$AS" >&6; }
ca9f4b81 8200else
5213506e
RW
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202$as_echo "no" >&6; }
ca9f4b81
AO
8203fi
8204
5213506e 8205
2693c0b0
PB
8206 fi
8207 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8209set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211$as_echo_n "checking for $ac_word... " >&6; }
8212if test "${ac_cv_prog_AS+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
ca9f4b81 8214else
2693c0b0
PB
8215 if test -n "$AS"; then
8216 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8217else
1c710c3c
DJ
8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219for as_dir in $PATH
8220do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
5213506e
RW
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8225 ac_cv_prog_AS="${ncn_progname}"
5213506e 8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8227 break 2
8228 fi
8229done
5213506e
RW
8230 done
8231IFS=$as_save_IFS
1c710c3c 8232
ca9f4b81
AO
8233fi
8234fi
1c710c3c 8235AS=$ac_cv_prog_AS
2693c0b0 8236if test -n "$AS"; then
5213506e
RW
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8238$as_echo "$AS" >&6; }
ca9f4b81 8239else
5213506e
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241$as_echo "no" >&6; }
ca9f4b81 8242fi
1c710c3c 8243
5213506e 8244
2693c0b0
PB
8245 fi
8246 test -n "$ac_cv_prog_AS" && break
8247done
8248
8249if test -z "$ac_cv_prog_AS" ; then
8250 set dummy as
8251 if test $build = $host ; then
8252 AS="$2"
ca9f4b81 8253 else
2693c0b0 8254 AS="${ncn_tool_prefix}$2"
ca9f4b81 8255 fi
ca9f4b81
AO
8256fi
8257
278a7a38
AO
8258
8259
8260if test -n "$DLLTOOL"; then
8261 ac_cv_prog_DLLTOOL=$DLLTOOL
8262elif test -n "$ac_cv_prog_DLLTOOL"; then
8263 DLLTOOL=$ac_cv_prog_DLLTOOL
8264fi
8265
8266if test -n "$ac_cv_prog_DLLTOOL"; then
8267 for ncn_progname in dlltool; do
8268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8269set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271$as_echo_n "checking for $ac_word... " >&6; }
8272if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
278a7a38
AO
8274else
8275 if test -n "$DLLTOOL"; then
8276 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8277else
8278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279for as_dir in $PATH
8280do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
5213506e
RW
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8285 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8287 break 2
8288 fi
8289done
5213506e
RW
8290 done
8291IFS=$as_save_IFS
278a7a38
AO
8292
8293fi
8294fi
8295DLLTOOL=$ac_cv_prog_DLLTOOL
8296if test -n "$DLLTOOL"; then
5213506e
RW
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8298$as_echo "$DLLTOOL" >&6; }
278a7a38 8299else
5213506e
RW
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301$as_echo "no" >&6; }
278a7a38
AO
8302fi
8303
5213506e 8304
278a7a38
AO
8305 done
8306fi
8307
8308for ncn_progname in dlltool; do
2693c0b0
PB
8309 if test -n "$ncn_tool_prefix"; then
8310 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8311set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313$as_echo_n "checking for $ac_word... " >&6; }
8314if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8316else
8317 if test -n "$DLLTOOL"; then
8318 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8319else
1c710c3c
DJ
8320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
5213506e
RW
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8327 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8329 break 2
8330 fi
8331done
5213506e
RW
8332 done
8333IFS=$as_save_IFS
1c710c3c 8334
ca9f4b81
AO
8335fi
8336fi
1c710c3c 8337DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8338if test -n "$DLLTOOL"; then
5213506e
RW
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8340$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8341else
5213506e
RW
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343$as_echo "no" >&6; }
ca9f4b81
AO
8344fi
8345
5213506e 8346
2693c0b0
PB
8347 fi
8348 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8350set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352$as_echo_n "checking for $ac_word... " >&6; }
8353if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
ca9f4b81 8355else
2693c0b0
PB
8356 if test -n "$DLLTOOL"; then
8357 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8358else
1c710c3c
DJ
8359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360for as_dir in $PATH
8361do
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
5213506e
RW
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8366 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8368 break 2
8369 fi
8370done
5213506e
RW
8371 done
8372IFS=$as_save_IFS
1c710c3c 8373
ca9f4b81
AO
8374fi
8375fi
1c710c3c 8376DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8377if test -n "$DLLTOOL"; then
5213506e
RW
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8379$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8380else
5213506e
RW
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382$as_echo "no" >&6; }
ca9f4b81 8383fi
1c710c3c 8384
5213506e 8385
2693c0b0
PB
8386 fi
8387 test -n "$ac_cv_prog_DLLTOOL" && break
8388done
8389
8390if test -z "$ac_cv_prog_DLLTOOL" ; then
8391 set dummy dlltool
8392 if test $build = $host ; then
8393 DLLTOOL="$2"
ca9f4b81 8394 else
2693c0b0 8395 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8396 fi
ca9f4b81
AO
8397fi
8398
278a7a38
AO
8399
8400
8401if test -n "$LD"; then
8402 ac_cv_prog_LD=$LD
8403elif test -n "$ac_cv_prog_LD"; then
8404 LD=$ac_cv_prog_LD
8405fi
8406
8407if test -n "$ac_cv_prog_LD"; then
8408 for ncn_progname in ld; do
8409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8410set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412$as_echo_n "checking for $ac_word... " >&6; }
8413if test "${ac_cv_prog_LD+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
278a7a38
AO
8415else
8416 if test -n "$LD"; then
8417 ac_cv_prog_LD="$LD" # Let the user override the test.
8418else
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
5213506e
RW
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8426 ac_cv_prog_LD="${ncn_progname}"
5213506e 8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8428 break 2
8429 fi
8430done
5213506e
RW
8431 done
8432IFS=$as_save_IFS
278a7a38
AO
8433
8434fi
8435fi
8436LD=$ac_cv_prog_LD
8437if test -n "$LD"; then
5213506e
RW
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8439$as_echo "$LD" >&6; }
278a7a38 8440else
5213506e
RW
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442$as_echo "no" >&6; }
278a7a38
AO
8443fi
8444
5213506e 8445
278a7a38
AO
8446 done
8447fi
8448
8449for ncn_progname in ld; do
2693c0b0
PB
8450 if test -n "$ncn_tool_prefix"; then
8451 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8452set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454$as_echo_n "checking for $ac_word... " >&6; }
8455if test "${ac_cv_prog_LD+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8457else
8458 if test -n "$LD"; then
8459 ac_cv_prog_LD="$LD" # Let the user override the test.
8460else
1c710c3c
DJ
8461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462for as_dir in $PATH
8463do
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
5213506e
RW
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8468 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8470 break 2
8471 fi
8472done
5213506e
RW
8473 done
8474IFS=$as_save_IFS
1c710c3c 8475
ca9f4b81
AO
8476fi
8477fi
1c710c3c 8478LD=$ac_cv_prog_LD
ca9f4b81 8479if test -n "$LD"; then
5213506e
RW
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8481$as_echo "$LD" >&6; }
ca9f4b81 8482else
5213506e
RW
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484$as_echo "no" >&6; }
ca9f4b81
AO
8485fi
8486
5213506e 8487
2693c0b0
PB
8488 fi
8489 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8491set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493$as_echo_n "checking for $ac_word... " >&6; }
8494if test "${ac_cv_prog_LD+set}" = set; then :
8495 $as_echo_n "(cached) " >&6
ca9f4b81 8496else
2693c0b0
PB
8497 if test -n "$LD"; then
8498 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8499else
1c710c3c
DJ
8500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501for as_dir in $PATH
8502do
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
5213506e
RW
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8507 ac_cv_prog_LD="${ncn_progname}"
5213506e 8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8509 break 2
8510 fi
8511done
5213506e
RW
8512 done
8513IFS=$as_save_IFS
1c710c3c 8514
ca9f4b81
AO
8515fi
8516fi
1c710c3c 8517LD=$ac_cv_prog_LD
2693c0b0 8518if test -n "$LD"; then
5213506e
RW
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8520$as_echo "$LD" >&6; }
ca9f4b81 8521else
5213506e
RW
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523$as_echo "no" >&6; }
ca9f4b81 8524fi
1c710c3c 8525
5213506e 8526
2693c0b0
PB
8527 fi
8528 test -n "$ac_cv_prog_LD" && break
8529done
8530
8531if test -z "$ac_cv_prog_LD" ; then
8532 set dummy ld
8533 if test $build = $host ; then
8534 LD="$2"
ca9f4b81 8535 else
2693c0b0 8536 LD="${ncn_tool_prefix}$2"
ca9f4b81 8537 fi
ca9f4b81
AO
8538fi
8539
278a7a38
AO
8540
8541
8542if test -n "$LIPO"; then
8543 ac_cv_prog_LIPO=$LIPO
8544elif test -n "$ac_cv_prog_LIPO"; then
8545 LIPO=$ac_cv_prog_LIPO
8546fi
8547
8548if test -n "$ac_cv_prog_LIPO"; then
8549 for ncn_progname in lipo; do
8550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8551set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553$as_echo_n "checking for $ac_word... " >&6; }
8554if test "${ac_cv_prog_LIPO+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
278a7a38
AO
8556else
8557 if test -n "$LIPO"; then
8558 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8559else
8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561for as_dir in $PATH
8562do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
5213506e
RW
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8567 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8569 break 2
8570 fi
8571done
5213506e
RW
8572 done
8573IFS=$as_save_IFS
278a7a38
AO
8574
8575fi
8576fi
8577LIPO=$ac_cv_prog_LIPO
8578if test -n "$LIPO"; then
5213506e
RW
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8580$as_echo "$LIPO" >&6; }
278a7a38 8581else
5213506e
RW
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583$as_echo "no" >&6; }
278a7a38
AO
8584fi
8585
5213506e 8586
278a7a38
AO
8587 done
8588fi
8589
8590for ncn_progname in lipo; do
2abefe3d
PB
8591 if test -n "$ncn_tool_prefix"; then
8592 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8593set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595$as_echo_n "checking for $ac_word... " >&6; }
8596if test "${ac_cv_prog_LIPO+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
2abefe3d
PB
8598else
8599 if test -n "$LIPO"; then
8600 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8601else
1c710c3c
DJ
8602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603for as_dir in $PATH
8604do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
5213506e
RW
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8609 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8611 break 2
8612 fi
8613done
5213506e
RW
8614 done
8615IFS=$as_save_IFS
1c710c3c 8616
2abefe3d
PB
8617fi
8618fi
1c710c3c 8619LIPO=$ac_cv_prog_LIPO
2abefe3d 8620if test -n "$LIPO"; then
5213506e
RW
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8622$as_echo "$LIPO" >&6; }
2abefe3d 8623else
5213506e
RW
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625$as_echo "no" >&6; }
2abefe3d
PB
8626fi
8627
5213506e 8628
2abefe3d
PB
8629 fi
8630 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8632set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634$as_echo_n "checking for $ac_word... " >&6; }
8635if test "${ac_cv_prog_LIPO+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
2abefe3d
PB
8637else
8638 if test -n "$LIPO"; then
8639 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8640else
1c710c3c
DJ
8641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642for as_dir in $PATH
8643do
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
5213506e
RW
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8648 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8650 break 2
8651 fi
8652done
5213506e
RW
8653 done
8654IFS=$as_save_IFS
1c710c3c 8655
2abefe3d
PB
8656fi
8657fi
1c710c3c 8658LIPO=$ac_cv_prog_LIPO
2abefe3d 8659if test -n "$LIPO"; then
5213506e
RW
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8661$as_echo "$LIPO" >&6; }
2abefe3d 8662else
5213506e
RW
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664$as_echo "no" >&6; }
2abefe3d 8665fi
1c710c3c 8666
5213506e 8667
2abefe3d
PB
8668 fi
8669 test -n "$ac_cv_prog_LIPO" && break
8670done
8671
8672if test -z "$ac_cv_prog_LIPO" ; then
8673 set dummy lipo
8674 if test $build = $host ; then
8675 LIPO="$2"
8676 else
8677 LIPO="${ncn_tool_prefix}$2"
8678 fi
8679fi
8680
278a7a38
AO
8681
8682
8683if test -n "$NM"; then
8684 ac_cv_prog_NM=$NM
8685elif test -n "$ac_cv_prog_NM"; then
8686 NM=$ac_cv_prog_NM
8687fi
8688
8689if test -n "$ac_cv_prog_NM"; then
8690 for ncn_progname in nm; do
8691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8692set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694$as_echo_n "checking for $ac_word... " >&6; }
8695if test "${ac_cv_prog_NM+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8697else
8698 if test -n "$NM"; then
8699 ac_cv_prog_NM="$NM" # Let the user override the test.
8700else
1c710c3c
DJ
8701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702for as_dir in $PATH
8703do
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
5213506e
RW
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8708 ac_cv_prog_NM="${ncn_progname}"
5213506e 8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8710 break 2
8711 fi
8712done
5213506e
RW
8713 done
8714IFS=$as_save_IFS
1c710c3c 8715
ca9f4b81
AO
8716fi
8717fi
1c710c3c 8718NM=$ac_cv_prog_NM
ca9f4b81 8719if test -n "$NM"; then
5213506e
RW
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8721$as_echo "$NM" >&6; }
ca9f4b81 8722else
5213506e
RW
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724$as_echo "no" >&6; }
ca9f4b81
AO
8725fi
8726
5213506e 8727
278a7a38
AO
8728 done
8729fi
8730
8731for ncn_progname in nm; do
8732 if test -n "$ncn_tool_prefix"; then
8733 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8734set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736$as_echo_n "checking for $ac_word... " >&6; }
8737if test "${ac_cv_prog_NM+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
ca9f4b81 8739else
2693c0b0
PB
8740 if test -n "$NM"; then
8741 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8742else
1c710c3c
DJ
8743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744for as_dir in $PATH
8745do
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
5213506e
RW
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8750 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8752 break 2
8753 fi
8754done
5213506e
RW
8755 done
8756IFS=$as_save_IFS
1c710c3c 8757
ca9f4b81
AO
8758fi
8759fi
1c710c3c 8760NM=$ac_cv_prog_NM
2693c0b0 8761if test -n "$NM"; then
5213506e
RW
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8763$as_echo "$NM" >&6; }
ca9f4b81 8764else
5213506e
RW
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766$as_echo "no" >&6; }
ca9f4b81 8767fi
1c710c3c 8768
5213506e 8769
2693c0b0 8770 fi
278a7a38
AO
8771 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8773set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775$as_echo_n "checking for $ac_word... " >&6; }
8776if test "${ac_cv_prog_NM+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
278a7a38
AO
8778else
8779 if test -n "$NM"; then
8780 ac_cv_prog_NM="$NM" # Let the user override the test.
8781else
8782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783for as_dir in $PATH
8784do
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
5213506e
RW
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8789 ac_cv_prog_NM="${ncn_progname}"
5213506e 8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8791 break 2
8792 fi
8793done
5213506e
RW
8794 done
8795IFS=$as_save_IFS
278a7a38
AO
8796
8797fi
8798fi
8799NM=$ac_cv_prog_NM
8800if test -n "$NM"; then
5213506e
RW
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8802$as_echo "$NM" >&6; }
278a7a38 8803else
5213506e
RW
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805$as_echo "no" >&6; }
278a7a38
AO
8806fi
8807
5213506e 8808
278a7a38
AO
8809 fi
8810 test -n "$ac_cv_prog_NM" && break
8811done
8812
8813if test -z "$ac_cv_prog_NM" ; then
8814 set dummy nm
8815 if test $build = $host ; then
8816 NM="$2"
8817 else
8818 NM="${ncn_tool_prefix}$2"
8819 fi
8820fi
8821
8822
8823
8824if test -n "$RANLIB"; then
8825 ac_cv_prog_RANLIB=$RANLIB
8826elif test -n "$ac_cv_prog_RANLIB"; then
8827 RANLIB=$ac_cv_prog_RANLIB
8828fi
8829
8830if test -n "$ac_cv_prog_RANLIB"; then
8831 for ncn_progname in ranlib; do
8832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8833set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835$as_echo_n "checking for $ac_word... " >&6; }
8836if test "${ac_cv_prog_RANLIB+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
278a7a38
AO
8838else
8839 if test -n "$RANLIB"; then
8840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8841else
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
5213506e
RW
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8849 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8851 break 2
8852 fi
8853done
5213506e
RW
8854 done
8855IFS=$as_save_IFS
278a7a38
AO
8856
8857fi
8858fi
8859RANLIB=$ac_cv_prog_RANLIB
8860if test -n "$RANLIB"; then
5213506e
RW
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8862$as_echo "$RANLIB" >&6; }
278a7a38 8863else
5213506e
RW
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
278a7a38
AO
8866fi
8867
5213506e 8868
278a7a38
AO
8869 done
8870fi
ca9f4b81 8871
278a7a38 8872for ncn_progname in ranlib; do
2693c0b0
PB
8873 if test -n "$ncn_tool_prefix"; then
8874 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8875set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877$as_echo_n "checking for $ac_word... " >&6; }
8878if test "${ac_cv_prog_RANLIB+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8880else
8881 if test -n "$RANLIB"; then
8882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8883else
1c710c3c
DJ
8884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885for as_dir in $PATH
8886do
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
5213506e
RW
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8891 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8893 break 2
8894 fi
8895done
5213506e
RW
8896 done
8897IFS=$as_save_IFS
1c710c3c 8898
ca9f4b81
AO
8899fi
8900fi
1c710c3c 8901RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8902if test -n "$RANLIB"; then
5213506e
RW
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8904$as_echo "$RANLIB" >&6; }
ca9f4b81 8905else
5213506e
RW
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907$as_echo "no" >&6; }
ca9f4b81
AO
8908fi
8909
5213506e 8910
2693c0b0
PB
8911 fi
8912 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8914set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916$as_echo_n "checking for $ac_word... " >&6; }
8917if test "${ac_cv_prog_RANLIB+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
ca9f4b81 8919else
2693c0b0
PB
8920 if test -n "$RANLIB"; then
8921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8922else
1c710c3c
DJ
8923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924for as_dir in $PATH
8925do
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
5213506e
RW
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8930 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8932 break 2
8933 fi
8934done
5213506e
RW
8935 done
8936IFS=$as_save_IFS
1c710c3c 8937
ca9f4b81
AO
8938fi
8939fi
1c710c3c 8940RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8941if test -n "$RANLIB"; then
5213506e
RW
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8943$as_echo "$RANLIB" >&6; }
ca9f4b81 8944else
5213506e
RW
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946$as_echo "no" >&6; }
ca9f4b81 8947fi
1c710c3c 8948
5213506e 8949
ca9f4b81 8950 fi
2693c0b0
PB
8951 test -n "$ac_cv_prog_RANLIB" && break
8952done
8953
8954if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8955 RANLIB="true"
ca9f4b81
AO
8956fi
8957
278a7a38
AO
8958
8959
8960if test -n "$STRIP"; then
8961 ac_cv_prog_STRIP=$STRIP
8962elif test -n "$ac_cv_prog_STRIP"; then
8963 STRIP=$ac_cv_prog_STRIP
8964fi
8965
8966if test -n "$ac_cv_prog_STRIP"; then
8967 for ncn_progname in strip; do
8968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8969set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971$as_echo_n "checking for $ac_word... " >&6; }
8972if test "${ac_cv_prog_STRIP+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
278a7a38
AO
8974else
8975 if test -n "$STRIP"; then
8976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8977else
8978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979for as_dir in $PATH
8980do
8981 IFS=$as_save_IFS
8982 test -z "$as_dir" && as_dir=.
5213506e
RW
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8985 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8987 break 2
8988 fi
8989done
5213506e
RW
8990 done
8991IFS=$as_save_IFS
278a7a38
AO
8992
8993fi
8994fi
8995STRIP=$ac_cv_prog_STRIP
8996if test -n "$STRIP"; then
5213506e
RW
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8998$as_echo "$STRIP" >&6; }
278a7a38 8999else
5213506e
RW
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001$as_echo "no" >&6; }
278a7a38
AO
9002fi
9003
5213506e 9004
278a7a38
AO
9005 done
9006fi
9007
9008for ncn_progname in strip; do
2abefe3d
PB
9009 if test -n "$ncn_tool_prefix"; then
9010 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9011set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013$as_echo_n "checking for $ac_word... " >&6; }
9014if test "${ac_cv_prog_STRIP+set}" = set; then :
9015 $as_echo_n "(cached) " >&6
2abefe3d
PB
9016else
9017 if test -n "$STRIP"; then
9018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9019else
1c710c3c
DJ
9020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021for as_dir in $PATH
9022do
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
5213506e
RW
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9027 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9029 break 2
9030 fi
9031done
5213506e
RW
9032 done
9033IFS=$as_save_IFS
1c710c3c 9034
2abefe3d
PB
9035fi
9036fi
1c710c3c 9037STRIP=$ac_cv_prog_STRIP
2abefe3d 9038if test -n "$STRIP"; then
5213506e
RW
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9040$as_echo "$STRIP" >&6; }
2abefe3d 9041else
5213506e
RW
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043$as_echo "no" >&6; }
2abefe3d
PB
9044fi
9045
5213506e 9046
2abefe3d
PB
9047 fi
9048 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9050set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052$as_echo_n "checking for $ac_word... " >&6; }
9053if test "${ac_cv_prog_STRIP+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
2abefe3d
PB
9055else
9056 if test -n "$STRIP"; then
9057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9058else
1c710c3c
DJ
9059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060for as_dir in $PATH
9061do
9062 IFS=$as_save_IFS
9063 test -z "$as_dir" && as_dir=.
5213506e
RW
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9066 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9068 break 2
9069 fi
9070done
5213506e
RW
9071 done
9072IFS=$as_save_IFS
1c710c3c 9073
2abefe3d
PB
9074fi
9075fi
1c710c3c 9076STRIP=$ac_cv_prog_STRIP
2abefe3d 9077if test -n "$STRIP"; then
5213506e
RW
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9079$as_echo "$STRIP" >&6; }
2abefe3d 9080else
5213506e
RW
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082$as_echo "no" >&6; }
2abefe3d 9083fi
1c710c3c 9084
5213506e 9085
2abefe3d
PB
9086 fi
9087 test -n "$ac_cv_prog_STRIP" && break
9088done
9089
9090if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9091 STRIP="true"
2abefe3d
PB
9092fi
9093
278a7a38
AO
9094
9095
9096if test -n "$WINDRES"; then
9097 ac_cv_prog_WINDRES=$WINDRES
9098elif test -n "$ac_cv_prog_WINDRES"; then
9099 WINDRES=$ac_cv_prog_WINDRES
9100fi
9101
9102if test -n "$ac_cv_prog_WINDRES"; then
9103 for ncn_progname in windres; do
9104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9105set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107$as_echo_n "checking for $ac_word... " >&6; }
9108if test "${ac_cv_prog_WINDRES+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
278a7a38
AO
9110else
9111 if test -n "$WINDRES"; then
9112 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9113else
9114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115for as_dir in $PATH
9116do
9117 IFS=$as_save_IFS
9118 test -z "$as_dir" && as_dir=.
5213506e
RW
9119 for ac_exec_ext in '' $ac_executable_extensions; do
9120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9121 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9123 break 2
9124 fi
9125done
5213506e
RW
9126 done
9127IFS=$as_save_IFS
278a7a38
AO
9128
9129fi
9130fi
9131WINDRES=$ac_cv_prog_WINDRES
9132if test -n "$WINDRES"; then
5213506e
RW
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9134$as_echo "$WINDRES" >&6; }
278a7a38 9135else
5213506e
RW
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137$as_echo "no" >&6; }
278a7a38
AO
9138fi
9139
5213506e 9140
278a7a38
AO
9141 done
9142fi
9143
9144for ncn_progname in windres; do
2693c0b0
PB
9145 if test -n "$ncn_tool_prefix"; then
9146 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9147set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149$as_echo_n "checking for $ac_word... " >&6; }
9150if test "${ac_cv_prog_WINDRES+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9152else
9153 if test -n "$WINDRES"; then
9154 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9155else
1c710c3c
DJ
9156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157for as_dir in $PATH
9158do
9159 IFS=$as_save_IFS
9160 test -z "$as_dir" && as_dir=.
5213506e
RW
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9163 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9165 break 2
9166 fi
9167done
5213506e
RW
9168 done
9169IFS=$as_save_IFS
1c710c3c 9170
ca9f4b81
AO
9171fi
9172fi
1c710c3c 9173WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9174if test -n "$WINDRES"; then
5213506e
RW
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9176$as_echo "$WINDRES" >&6; }
ca9f4b81 9177else
5213506e
RW
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179$as_echo "no" >&6; }
ca9f4b81
AO
9180fi
9181
5213506e 9182
2693c0b0
PB
9183 fi
9184 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9186set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188$as_echo_n "checking for $ac_word... " >&6; }
9189if test "${ac_cv_prog_WINDRES+set}" = set; then :
9190 $as_echo_n "(cached) " >&6
ca9f4b81 9191else
2693c0b0
PB
9192 if test -n "$WINDRES"; then
9193 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9194else
1c710c3c
DJ
9195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196for as_dir in $PATH
9197do
9198 IFS=$as_save_IFS
9199 test -z "$as_dir" && as_dir=.
5213506e
RW
9200 for ac_exec_ext in '' $ac_executable_extensions; do
9201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9202 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9204 break 2
9205 fi
9206done
5213506e
RW
9207 done
9208IFS=$as_save_IFS
1c710c3c 9209
ca9f4b81
AO
9210fi
9211fi
1c710c3c 9212WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9213if test -n "$WINDRES"; then
5213506e
RW
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9215$as_echo "$WINDRES" >&6; }
ca9f4b81 9216else
5213506e
RW
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218$as_echo "no" >&6; }
ca9f4b81 9219fi
1c710c3c 9220
5213506e 9221
2693c0b0
PB
9222 fi
9223 test -n "$ac_cv_prog_WINDRES" && break
9224done
9225
9226if test -z "$ac_cv_prog_WINDRES" ; then
9227 set dummy windres
9228 if test $build = $host ; then
9229 WINDRES="$2"
ca9f4b81 9230 else
2693c0b0 9231 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9232 fi
ca9f4b81
AO
9233fi
9234
278a7a38
AO
9235
9236
901119ae
KT
9237if test -n "$WINDMC"; then
9238 ac_cv_prog_WINDMC=$WINDMC
9239elif test -n "$ac_cv_prog_WINDMC"; then
9240 WINDMC=$ac_cv_prog_WINDMC
9241fi
9242
9243if test -n "$ac_cv_prog_WINDMC"; then
9244 for ncn_progname in windmc; do
9245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9246set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248$as_echo_n "checking for $ac_word... " >&6; }
9249if test "${ac_cv_prog_WINDMC+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
901119ae
KT
9251else
9252 if test -n "$WINDMC"; then
9253 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9254else
9255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256for as_dir in $PATH
9257do
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
5213506e
RW
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9262 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9264 break 2
9265 fi
9266done
5213506e
RW
9267 done
9268IFS=$as_save_IFS
901119ae
KT
9269
9270fi
9271fi
9272WINDMC=$ac_cv_prog_WINDMC
9273if test -n "$WINDMC"; then
5213506e
RW
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9275$as_echo "$WINDMC" >&6; }
901119ae 9276else
5213506e
RW
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278$as_echo "no" >&6; }
901119ae
KT
9279fi
9280
5213506e 9281
901119ae
KT
9282 done
9283fi
9284
9285for ncn_progname in windmc; do
9286 if test -n "$ncn_tool_prefix"; then
9287 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9288set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290$as_echo_n "checking for $ac_word... " >&6; }
9291if test "${ac_cv_prog_WINDMC+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
901119ae
KT
9293else
9294 if test -n "$WINDMC"; then
9295 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9296else
9297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298for as_dir in $PATH
9299do
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
5213506e
RW
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9304 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9306 break 2
9307 fi
9308done
5213506e
RW
9309 done
9310IFS=$as_save_IFS
901119ae
KT
9311
9312fi
9313fi
9314WINDMC=$ac_cv_prog_WINDMC
9315if test -n "$WINDMC"; then
5213506e
RW
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9317$as_echo "$WINDMC" >&6; }
901119ae 9318else
5213506e
RW
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320$as_echo "no" >&6; }
901119ae
KT
9321fi
9322
5213506e 9323
901119ae
KT
9324 fi
9325 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9327set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329$as_echo_n "checking for $ac_word... " >&6; }
9330if test "${ac_cv_prog_WINDMC+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
901119ae
KT
9332else
9333 if test -n "$WINDMC"; then
9334 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9335else
9336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337for as_dir in $PATH
9338do
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
5213506e
RW
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9343 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9345 break 2
9346 fi
9347done
5213506e
RW
9348 done
9349IFS=$as_save_IFS
901119ae
KT
9350
9351fi
9352fi
9353WINDMC=$ac_cv_prog_WINDMC
9354if test -n "$WINDMC"; then
5213506e
RW
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9356$as_echo "$WINDMC" >&6; }
901119ae 9357else
5213506e
RW
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359$as_echo "no" >&6; }
901119ae
KT
9360fi
9361
5213506e 9362
901119ae
KT
9363 fi
9364 test -n "$ac_cv_prog_WINDMC" && break
9365done
9366
9367if test -z "$ac_cv_prog_WINDMC" ; then
9368 set dummy windmc
9369 if test $build = $host ; then
9370 WINDMC="$2"
9371 else
9372 WINDMC="${ncn_tool_prefix}$2"
9373 fi
9374fi
9375
9376
9377
278a7a38
AO
9378if test -n "$OBJCOPY"; then
9379 ac_cv_prog_OBJCOPY=$OBJCOPY
9380elif test -n "$ac_cv_prog_OBJCOPY"; then
9381 OBJCOPY=$ac_cv_prog_OBJCOPY
9382fi
9383
9384if test -n "$ac_cv_prog_OBJCOPY"; then
9385 for ncn_progname in objcopy; do
9386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9387set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389$as_echo_n "checking for $ac_word... " >&6; }
9390if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
278a7a38
AO
9392else
9393 if test -n "$OBJCOPY"; then
9394 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9395else
9396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397for as_dir in $PATH
9398do
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
5213506e
RW
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9403 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9405 break 2
9406 fi
9407done
5213506e
RW
9408 done
9409IFS=$as_save_IFS
278a7a38
AO
9410
9411fi
9412fi
9413OBJCOPY=$ac_cv_prog_OBJCOPY
9414if test -n "$OBJCOPY"; then
5213506e
RW
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9416$as_echo "$OBJCOPY" >&6; }
278a7a38 9417else
5213506e
RW
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419$as_echo "no" >&6; }
278a7a38
AO
9420fi
9421
5213506e 9422
278a7a38
AO
9423 done
9424fi
9425
9426for ncn_progname in objcopy; do
2693c0b0
PB
9427 if test -n "$ncn_tool_prefix"; then
9428 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9429set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431$as_echo_n "checking for $ac_word... " >&6; }
9432if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9434else
9435 if test -n "$OBJCOPY"; then
9436 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9437else
1c710c3c
DJ
9438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439for as_dir in $PATH
9440do
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
5213506e
RW
9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9445 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9447 break 2
9448 fi
9449done
5213506e
RW
9450 done
9451IFS=$as_save_IFS
1c710c3c 9452
ca9f4b81
AO
9453fi
9454fi
1c710c3c 9455OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9456if test -n "$OBJCOPY"; then
5213506e
RW
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9458$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9459else
5213506e
RW
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461$as_echo "no" >&6; }
ca9f4b81
AO
9462fi
9463
5213506e 9464
2693c0b0
PB
9465 fi
9466 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9468set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470$as_echo_n "checking for $ac_word... " >&6; }
9471if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
ca9f4b81 9473else
2693c0b0
PB
9474 if test -n "$OBJCOPY"; then
9475 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9476else
1c710c3c
DJ
9477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478for as_dir in $PATH
9479do
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
5213506e
RW
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9484 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9486 break 2
9487 fi
9488done
5213506e
RW
9489 done
9490IFS=$as_save_IFS
1c710c3c 9491
ca9f4b81
AO
9492fi
9493fi
1c710c3c 9494OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9495if test -n "$OBJCOPY"; then
5213506e
RW
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9497$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9498else
5213506e
RW
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500$as_echo "no" >&6; }
ca9f4b81 9501fi
1c710c3c 9502
5213506e 9503
2693c0b0
PB
9504 fi
9505 test -n "$ac_cv_prog_OBJCOPY" && break
9506done
9507
9508if test -z "$ac_cv_prog_OBJCOPY" ; then
9509 set dummy objcopy
9510 if test $build = $host ; then
9511 OBJCOPY="$2"
ca9f4b81 9512 else
2693c0b0 9513 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9514 fi
ca9f4b81
AO
9515fi
9516
278a7a38
AO
9517
9518
9519if test -n "$OBJDUMP"; then
9520 ac_cv_prog_OBJDUMP=$OBJDUMP
9521elif test -n "$ac_cv_prog_OBJDUMP"; then
9522 OBJDUMP=$ac_cv_prog_OBJDUMP
9523fi
9524
9525if test -n "$ac_cv_prog_OBJDUMP"; then
9526 for ncn_progname in objdump; do
9527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9528set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530$as_echo_n "checking for $ac_word... " >&6; }
9531if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
278a7a38
AO
9533else
9534 if test -n "$OBJDUMP"; then
9535 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9536else
9537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538for as_dir in $PATH
9539do
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
5213506e
RW
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9544 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9546 break 2
9547 fi
9548done
5213506e
RW
9549 done
9550IFS=$as_save_IFS
278a7a38
AO
9551
9552fi
9553fi
9554OBJDUMP=$ac_cv_prog_OBJDUMP
9555if test -n "$OBJDUMP"; then
5213506e
RW
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9557$as_echo "$OBJDUMP" >&6; }
278a7a38 9558else
5213506e
RW
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560$as_echo "no" >&6; }
278a7a38
AO
9561fi
9562
5213506e 9563
278a7a38
AO
9564 done
9565fi
9566
9567for ncn_progname in objdump; do
2693c0b0
PB
9568 if test -n "$ncn_tool_prefix"; then
9569 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9570set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572$as_echo_n "checking for $ac_word... " >&6; }
9573if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9575else
9576 if test -n "$OBJDUMP"; then
9577 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9578else
1c710c3c
DJ
9579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580for as_dir in $PATH
9581do
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
5213506e
RW
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9586 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9588 break 2
9589 fi
9590done
5213506e
RW
9591 done
9592IFS=$as_save_IFS
1c710c3c 9593
ca9f4b81
AO
9594fi
9595fi
1c710c3c 9596OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9597if test -n "$OBJDUMP"; then
5213506e
RW
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9599$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9600else
5213506e
RW
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602$as_echo "no" >&6; }
ca9f4b81
AO
9603fi
9604
5213506e 9605
2693c0b0
PB
9606 fi
9607 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9609set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611$as_echo_n "checking for $ac_word... " >&6; }
9612if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
ca9f4b81 9614else
2693c0b0
PB
9615 if test -n "$OBJDUMP"; then
9616 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9617else
1c710c3c
DJ
9618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619for as_dir in $PATH
9620do
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
5213506e
RW
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9625 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9627 break 2
9628 fi
9629done
5213506e
RW
9630 done
9631IFS=$as_save_IFS
1c710c3c 9632
ca9f4b81
AO
9633fi
9634fi
1c710c3c 9635OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9636if test -n "$OBJDUMP"; then
5213506e
RW
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9638$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9639else
5213506e
RW
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641$as_echo "no" >&6; }
ca9f4b81 9642fi
1c710c3c 9643
5213506e 9644
2693c0b0
PB
9645 fi
9646 test -n "$ac_cv_prog_OBJDUMP" && break
9647done
9648
9649if test -z "$ac_cv_prog_OBJDUMP" ; then
9650 set dummy objdump
9651 if test $build = $host ; then
9652 OBJDUMP="$2"
ca9f4b81 9653 else
2693c0b0 9654 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9655 fi
ca9f4b81
AO
9656fi
9657
671aa708
NN
9658
9659
e7a82751
RM
9660if test -n "$READELF"; then
9661 ac_cv_prog_READELF=$READELF
9662elif test -n "$ac_cv_prog_READELF"; then
9663 READELF=$ac_cv_prog_READELF
9664fi
9665
9666if test -n "$ac_cv_prog_READELF"; then
9667 for ncn_progname in readelf; do
9668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9669set dummy ${ncn_progname}; ac_word=$2
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671$as_echo_n "checking for $ac_word... " >&6; }
9672if test "${ac_cv_prog_READELF+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9674else
9675 if test -n "$READELF"; then
9676 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9677else
9678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679for as_dir in $PATH
9680do
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9685 ac_cv_prog_READELF="${ncn_progname}"
9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687 break 2
9688 fi
9689done
9690 done
9691IFS=$as_save_IFS
9692
9693fi
9694fi
9695READELF=$ac_cv_prog_READELF
9696if test -n "$READELF"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9698$as_echo "$READELF" >&6; }
9699else
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701$as_echo "no" >&6; }
9702fi
9703
9704
9705 done
9706fi
9707
9708for ncn_progname in readelf; do
9709 if test -n "$ncn_tool_prefix"; then
9710 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9711set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713$as_echo_n "checking for $ac_word... " >&6; }
9714if test "${ac_cv_prog_READELF+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716else
9717 if test -n "$READELF"; then
9718 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9719else
9720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721for as_dir in $PATH
9722do
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9727 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9730 fi
9731done
9732 done
9733IFS=$as_save_IFS
9734
9735fi
9736fi
9737READELF=$ac_cv_prog_READELF
9738if test -n "$READELF"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9740$as_echo "$READELF" >&6; }
9741else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743$as_echo "no" >&6; }
9744fi
9745
9746
9747 fi
9748 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9750set dummy ${ncn_progname}; ac_word=$2
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9752$as_echo_n "checking for $ac_word... " >&6; }
9753if test "${ac_cv_prog_READELF+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9755else
9756 if test -n "$READELF"; then
9757 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9758else
9759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760for as_dir in $PATH
9761do
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9766 ac_cv_prog_READELF="${ncn_progname}"
9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 break 2
9769 fi
9770done
9771 done
9772IFS=$as_save_IFS
9773
9774fi
9775fi
9776READELF=$ac_cv_prog_READELF
9777if test -n "$READELF"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9779$as_echo "$READELF" >&6; }
9780else
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782$as_echo "no" >&6; }
9783fi
9784
9785
9786 fi
9787 test -n "$ac_cv_prog_READELF" && break
9788done
9789
9790if test -z "$ac_cv_prog_READELF" ; then
9791 set dummy readelf
9792 if test $build = $host ; then
9793 READELF="$2"
9794 else
9795 READELF="${ncn_tool_prefix}$2"
9796 fi
9797fi
9798
9799
9800
671aa708
NN
9801
9802
9803
2abefe3d 9804# Target tools.
1c710c3c 9805
5213506e
RW
9806# Check whether --with-build-time-tools was given.
9807if test "${with_build_time_tools+set}" = set; then :
9808 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9809 x/*) ;;
9810 *)
9811 with_build_time_tools=
5213506e
RW
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9813$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9814 ;;
9815 esac
ca9f4b81 9816else
e8b05380 9817 with_build_time_tools=
5213506e
RW
9818fi
9819
ca9f4b81 9820
278a7a38
AO
9821
9822
9823if test -n "$CC_FOR_TARGET"; then
9824 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9825elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9826 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9827fi
9828
9829if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9830 for ncn_progname in cc gcc; do
9831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9832set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834$as_echo_n "checking for $ac_word... " >&6; }
9835if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9836 $as_echo_n "(cached) " >&6
278a7a38
AO
9837else
9838 if test -n "$CC_FOR_TARGET"; then
9839 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9840else
9841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842for as_dir in $PATH
9843do
9844 IFS=$as_save_IFS
9845 test -z "$as_dir" && as_dir=.
5213506e
RW
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9848 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9850 break 2
9851 fi
9852done
5213506e
RW
9853 done
9854IFS=$as_save_IFS
278a7a38
AO
9855
9856fi
9857fi
9858CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9859if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9861$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9862else
5213506e
RW
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864$as_echo "no" >&6; }
278a7a38
AO
9865fi
9866
5213506e 9867
278a7a38
AO
9868 done
9869fi
9870
9871if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9872 for ncn_progname in cc gcc; do
5213506e
RW
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9874$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9875 if test -x $with_build_time_tools/${ncn_progname}; then
9876 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9878$as_echo "yes" >&6; }
72a7ab82 9879 break
e8b05380 9880 else
5213506e
RW
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882$as_echo "no" >&6; }
72a7ab82
AP
9883 fi
9884 done
4de997d1
PB
9885fi
9886
e8b05380
PB
9887if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9888 for ncn_progname in cc gcc; do
9889 if test -n "$ncn_target_tool_prefix"; then
9890 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9891set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893$as_echo_n "checking for $ac_word... " >&6; }
9894if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
4de997d1
PB
9896else
9897 if test -n "$CC_FOR_TARGET"; then
9898 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9899else
1c710c3c
DJ
9900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901for as_dir in $PATH
9902do
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
5213506e
RW
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9907 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9909 break 2
9910 fi
9911done
5213506e
RW
9912 done
9913IFS=$as_save_IFS
1c710c3c 9914
4de997d1
PB
9915fi
9916fi
1c710c3c 9917CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9918if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9920$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9921else
5213506e
RW
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923$as_echo "no" >&6; }
4de997d1
PB
9924fi
9925
5213506e 9926
e8b05380
PB
9927 fi
9928 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9930set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932$as_echo_n "checking for $ac_word... " >&6; }
9933if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9934 $as_echo_n "(cached) " >&6
4de997d1 9935else
2693c0b0
PB
9936 if test -n "$CC_FOR_TARGET"; then
9937 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9938else
1c710c3c
DJ
9939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940for as_dir in $PATH
9941do
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
5213506e
RW
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9946 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9948 break 2
9949 fi
9950done
5213506e
RW
9951 done
9952IFS=$as_save_IFS
1c710c3c 9953
4de997d1
PB
9954fi
9955fi
1c710c3c 9956CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9957if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9959$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9960else
5213506e
RW
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962$as_echo "no" >&6; }
4de997d1 9963fi
1c710c3c 9964
5213506e 9965
e8b05380
PB
9966 fi
9967 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9968 done
9969fi
1c710c3c 9970
2693c0b0
PB
9971if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9972 set dummy cc gcc
9973 if test $build = $target ; then
9974 CC_FOR_TARGET="$2"
4de997d1 9975 else
2693c0b0 9976 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9977 fi
1c00b503
PB
9978else
9979 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9980fi
9981
278a7a38
AO
9982
9983
9984if test -n "$CXX_FOR_TARGET"; then
9985 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9986elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9987 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9988fi
9989
9990if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9991 for ncn_progname in c++ g++ cxx gxx; do
9992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9993set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995$as_echo_n "checking for $ac_word... " >&6; }
9996if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9997 $as_echo_n "(cached) " >&6
278a7a38
AO
9998else
9999 if test -n "$CXX_FOR_TARGET"; then
10000 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10001else
10002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
5213506e
RW
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10009 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10011 break 2
10012 fi
10013done
5213506e
RW
10014 done
10015IFS=$as_save_IFS
278a7a38
AO
10016
10017fi
10018fi
10019CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10020if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10022$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10023else
5213506e
RW
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025$as_echo "no" >&6; }
278a7a38
AO
10026fi
10027
5213506e 10028
278a7a38
AO
10029 done
10030fi
10031
10032if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10033 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10035$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10036 if test -x $with_build_time_tools/${ncn_progname}; then
10037 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10039$as_echo "yes" >&6; }
e8b05380
PB
10040 break
10041 else
5213506e
RW
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043$as_echo "no" >&6; }
e8b05380
PB
10044 fi
10045 done
10046fi
10047
10048if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10049 for ncn_progname in c++ g++ cxx gxx; do
10050 if test -n "$ncn_target_tool_prefix"; then
10051 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10052set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10054$as_echo_n "checking for $ac_word... " >&6; }
10055if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10056 $as_echo_n "(cached) " >&6
4de997d1
PB
10057else
10058 if test -n "$CXX_FOR_TARGET"; then
10059 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10060else
1c710c3c
DJ
10061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062for as_dir in $PATH
10063do
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
5213506e
RW
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10068 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10070 break 2
10071 fi
10072done
5213506e
RW
10073 done
10074IFS=$as_save_IFS
1c710c3c 10075
4de997d1
PB
10076fi
10077fi
1c710c3c 10078CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10079if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10081$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10082else
5213506e
RW
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10084$as_echo "no" >&6; }
4de997d1
PB
10085fi
10086
5213506e 10087
e8b05380
PB
10088 fi
10089 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10091set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093$as_echo_n "checking for $ac_word... " >&6; }
10094if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10095 $as_echo_n "(cached) " >&6
4de997d1 10096else
2693c0b0
PB
10097 if test -n "$CXX_FOR_TARGET"; then
10098 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10099else
1c710c3c
DJ
10100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101for as_dir in $PATH
10102do
10103 IFS=$as_save_IFS
10104 test -z "$as_dir" && as_dir=.
5213506e
RW
10105 for ac_exec_ext in '' $ac_executable_extensions; do
10106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10107 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10109 break 2
10110 fi
10111done
5213506e
RW
10112 done
10113IFS=$as_save_IFS
1c710c3c 10114
4de997d1
PB
10115fi
10116fi
1c710c3c 10117CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10118if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10120$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10121else
5213506e
RW
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123$as_echo "no" >&6; }
4de997d1 10124fi
1c710c3c 10125
5213506e 10126
e8b05380
PB
10127 fi
10128 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10129 done
10130fi
1c710c3c 10131
2693c0b0
PB
10132if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10133 set dummy c++ g++ cxx gxx
10134 if test $build = $target ; then
10135 CXX_FOR_TARGET="$2"
4de997d1 10136 else
2693c0b0 10137 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10138 fi
1c00b503
PB
10139else
10140 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10141fi
10142
278a7a38
AO
10143
10144
10145if test -n "$GCC_FOR_TARGET"; then
10146 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10147elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10148 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10149fi
10150
10151if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10152 for ncn_progname in gcc; do
10153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10154set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156$as_echo_n "checking for $ac_word... " >&6; }
10157if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
278a7a38
AO
10159else
10160 if test -n "$GCC_FOR_TARGET"; then
10161 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10162else
10163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164for as_dir in $PATH
10165do
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
5213506e
RW
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10170 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10172 break 2
10173 fi
10174done
5213506e
RW
10175 done
10176IFS=$as_save_IFS
278a7a38
AO
10177
10178fi
10179fi
10180GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10181if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10183$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10184else
5213506e
RW
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186$as_echo "no" >&6; }
278a7a38
AO
10187fi
10188
5213506e 10189
278a7a38
AO
10190 done
10191fi
10192
10193if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10194 for ncn_progname in gcc; do
5213506e
RW
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10196$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10197 if test -x $with_build_time_tools/${ncn_progname}; then
10198 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10200$as_echo "yes" >&6; }
e8b05380
PB
10201 break
10202 else
5213506e
RW
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204$as_echo "no" >&6; }
e8b05380
PB
10205 fi
10206 done
10207fi
10208
10209if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10210 for ncn_progname in gcc; do
10211 if test -n "$ncn_target_tool_prefix"; then
10212 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10213set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215$as_echo_n "checking for $ac_word... " >&6; }
10216if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10217 $as_echo_n "(cached) " >&6
ca9f4b81 10218else
e8b05380
PB
10219 if test -n "$GCC_FOR_TARGET"; then
10220 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10221else
1c710c3c
DJ
10222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223for as_dir in $PATH
10224do
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
5213506e
RW
10227 for ac_exec_ext in '' $ac_executable_extensions; do
10228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10229 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10231 break 2
10232 fi
10233done
5213506e
RW
10234 done
10235IFS=$as_save_IFS
1c710c3c 10236
ca9f4b81
AO
10237fi
10238fi
1c710c3c 10239GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10240if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10242$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10243else
5213506e
RW
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245$as_echo "no" >&6; }
ca9f4b81
AO
10246fi
10247
5213506e 10248
e8b05380
PB
10249 fi
10250 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10252set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10254$as_echo_n "checking for $ac_word... " >&6; }
10255if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10256 $as_echo_n "(cached) " >&6
ca9f4b81 10257else
e8b05380
PB
10258 if test -n "$GCC_FOR_TARGET"; then
10259 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10260else
1c710c3c
DJ
10261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262for as_dir in $PATH
10263do
10264 IFS=$as_save_IFS
10265 test -z "$as_dir" && as_dir=.
5213506e
RW
10266 for ac_exec_ext in '' $ac_executable_extensions; do
10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10268 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10270 break 2
10271 fi
10272done
5213506e
RW
10273 done
10274IFS=$as_save_IFS
1c710c3c 10275
ca9f4b81
AO
10276fi
10277fi
1c710c3c 10278GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10279if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10281$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10282else
5213506e
RW
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284$as_echo "no" >&6; }
ca9f4b81 10285fi
1c710c3c 10286
5213506e 10287
e8b05380
PB
10288 fi
10289 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10290 done
10291fi
1c710c3c 10292
e8b05380
PB
10293if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10294 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10295else
10296 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10297fi
10298
278a7a38
AO
10299
10300
10301if test -n "$GCJ_FOR_TARGET"; then
10302 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10303elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10304 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10305fi
10306
10307if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10308 for ncn_progname in gcj; do
10309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10310set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312$as_echo_n "checking for $ac_word... " >&6; }
10313if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10314 $as_echo_n "(cached) " >&6
278a7a38
AO
10315else
10316 if test -n "$GCJ_FOR_TARGET"; then
10317 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10318else
10319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320for as_dir in $PATH
10321do
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
5213506e
RW
10324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10326 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10328 break 2
10329 fi
10330done
5213506e
RW
10331 done
10332IFS=$as_save_IFS
278a7a38
AO
10333
10334fi
10335fi
10336GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10337if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10339$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10340else
5213506e
RW
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342$as_echo "no" >&6; }
278a7a38
AO
10343fi
10344
5213506e 10345
278a7a38
AO
10346 done
10347fi
10348
10349if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10350 for ncn_progname in gcj; do
5213506e
RW
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10352$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10353 if test -x $with_build_time_tools/${ncn_progname}; then
10354 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10356$as_echo "yes" >&6; }
e8b05380
PB
10357 break
10358 else
5213506e
RW
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360$as_echo "no" >&6; }
e8b05380
PB
10361 fi
10362 done
10363fi
10364
10365if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10366 for ncn_progname in gcj; do
10367 if test -n "$ncn_target_tool_prefix"; then
10368 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10369set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371$as_echo_n "checking for $ac_word... " >&6; }
10372if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
e8b05380 10374else
fb0103e5
RG
10375 if test -n "$GCJ_FOR_TARGET"; then
10376 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10377else
1c710c3c
DJ
10378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379for as_dir in $PATH
10380do
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
5213506e
RW
10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10385 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10387 break 2
10388 fi
10389done
5213506e
RW
10390 done
10391IFS=$as_save_IFS
1c710c3c 10392
e8b05380
PB
10393fi
10394fi
278a7a38
AO
10395GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10396if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10398$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10399else
5213506e
RW
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401$as_echo "no" >&6; }
278a7a38
AO
10402fi
10403
5213506e 10404
278a7a38
AO
10405 fi
10406 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10408set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410$as_echo_n "checking for $ac_word... " >&6; }
10411if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10412 $as_echo_n "(cached) " >&6
278a7a38
AO
10413else
10414 if test -n "$GCJ_FOR_TARGET"; then
10415 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10416else
10417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418for as_dir in $PATH
10419do
10420 IFS=$as_save_IFS
10421 test -z "$as_dir" && as_dir=.
5213506e
RW
10422 for ac_exec_ext in '' $ac_executable_extensions; do
10423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10424 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10426 break 2
10427 fi
10428done
5213506e
RW
10429 done
10430IFS=$as_save_IFS
278a7a38
AO
10431
10432fi
10433fi
10434GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10435if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10437$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10438else
5213506e
RW
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440$as_echo "no" >&6; }
278a7a38
AO
10441fi
10442
5213506e 10443
278a7a38
AO
10444 fi
10445 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10446 done
10447fi
10448
10449if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10450 set dummy gcj
10451 if test $build = $target ; then
10452 GCJ_FOR_TARGET="$2"
10453 else
10454 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10455 fi
1c00b503
PB
10456else
10457 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10458fi
10459
10460
10461
10462if test -n "$GFORTRAN_FOR_TARGET"; then
10463 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10464elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10465 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10466fi
10467
278a7a38
AO
10468if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10469 for ncn_progname in gfortran; do
10470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10471set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473$as_echo_n "checking for $ac_word... " >&6; }
10474if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10475 $as_echo_n "(cached) " >&6
e8b05380 10476else
278a7a38
AO
10477 if test -n "$GFORTRAN_FOR_TARGET"; then
10478 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10479else
1c710c3c
DJ
10480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481for as_dir in $PATH
10482do
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
5213506e
RW
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10487 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10489 break 2
10490 fi
10491done
5213506e
RW
10492 done
10493IFS=$as_save_IFS
1c710c3c 10494
e8b05380
PB
10495fi
10496fi
278a7a38
AO
10497GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10498if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10500$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10501else
5213506e
RW
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503$as_echo "no" >&6; }
e8b05380 10504fi
1c710c3c 10505
5213506e 10506
e8b05380
PB
10507 done
10508fi
1c710c3c 10509
278a7a38 10510if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10511 for ncn_progname in gfortran; do
5213506e
RW
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10513$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10514 if test -x $with_build_time_tools/${ncn_progname}; then
10515 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10517$as_echo "yes" >&6; }
e8b05380
PB
10518 break
10519 else
5213506e
RW
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521$as_echo "no" >&6; }
e8b05380
PB
10522 fi
10523 done
10524fi
10525
10526if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10527 for ncn_progname in gfortran; do
10528 if test -n "$ncn_target_tool_prefix"; then
10529 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10530set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532$as_echo_n "checking for $ac_word... " >&6; }
10533if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10534 $as_echo_n "(cached) " >&6
e8b05380
PB
10535else
10536 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10537 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10538else
10539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540for as_dir in $PATH
10541do
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
5213506e
RW
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10546 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10548 break 2
10549 fi
10550done
5213506e
RW
10551 done
10552IFS=$as_save_IFS
1c710c3c 10553
e8b05380
PB
10554fi
10555fi
1c710c3c 10556GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10557if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10559$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10560else
5213506e
RW
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562$as_echo "no" >&6; }
e8b05380
PB
10563fi
10564
5213506e 10565
e8b05380
PB
10566 fi
10567 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10569set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10571$as_echo_n "checking for $ac_word... " >&6; }
10572if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10573 $as_echo_n "(cached) " >&6
e8b05380
PB
10574else
10575 if test -n "$GFORTRAN_FOR_TARGET"; then
10576 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10577else
1c710c3c
DJ
10578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579for as_dir in $PATH
10580do
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
5213506e
RW
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10585 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10587 break 2
10588 fi
10589done
5213506e
RW
10590 done
10591IFS=$as_save_IFS
1c710c3c 10592
e8b05380
PB
10593fi
10594fi
1c710c3c 10595GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10596if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10598$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10599else
5213506e
RW
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601$as_echo "no" >&6; }
e8b05380 10602fi
1c710c3c 10603
5213506e 10604
e8b05380
PB
10605 fi
10606 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10607 done
10608fi
1c710c3c 10609
e8b05380
PB
10610if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10611 set dummy gfortran
2693c0b0 10612 if test $build = $target ; then
e8b05380 10613 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10614 else
e8b05380
PB
10615 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10616 fi
1c00b503
PB
10617else
10618 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10619fi
10620
10621
10622
632e2a07
ILT
10623if test -n "$GOC_FOR_TARGET"; then
10624 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10625elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10626 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10627fi
10628
10629if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10630 for ncn_progname in gccgo; do
10631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10632set dummy ${ncn_progname}; ac_word=$2
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634$as_echo_n "checking for $ac_word... " >&6; }
10635if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
10637else
10638 if test -n "$GOC_FOR_TARGET"; then
10639 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10640else
10641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642for as_dir in $PATH
10643do
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
10646 for ac_exec_ext in '' $ac_executable_extensions; do
10647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10648 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10650 break 2
10651 fi
10652done
10653 done
10654IFS=$as_save_IFS
10655
10656fi
10657fi
10658GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10659if test -n "$GOC_FOR_TARGET"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10661$as_echo "$GOC_FOR_TARGET" >&6; }
10662else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664$as_echo "no" >&6; }
10665fi
10666
10667
10668 done
10669fi
10670
10671if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10672 for ncn_progname in gccgo; do
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10674$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10675 if test -x $with_build_time_tools/${ncn_progname}; then
10676 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678$as_echo "yes" >&6; }
10679 break
10680 else
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682$as_echo "no" >&6; }
10683 fi
10684 done
10685fi
10686
10687if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10688 for ncn_progname in gccgo; do
10689 if test -n "$ncn_target_tool_prefix"; then
10690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10691set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693$as_echo_n "checking for $ac_word... " >&6; }
10694if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10695 $as_echo_n "(cached) " >&6
10696else
10697 if test -n "$GOC_FOR_TARGET"; then
10698 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10699else
10700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701for as_dir in $PATH
10702do
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10707 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709 break 2
10710 fi
10711done
10712 done
10713IFS=$as_save_IFS
10714
10715fi
10716fi
10717GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10718if test -n "$GOC_FOR_TARGET"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10720$as_echo "$GOC_FOR_TARGET" >&6; }
10721else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723$as_echo "no" >&6; }
10724fi
10725
10726
10727 fi
10728 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10730set dummy ${ncn_progname}; ac_word=$2
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732$as_echo_n "checking for $ac_word... " >&6; }
10733if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10734 $as_echo_n "(cached) " >&6
10735else
10736 if test -n "$GOC_FOR_TARGET"; then
10737 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10738else
10739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740for as_dir in $PATH
10741do
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10746 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10749 fi
10750done
10751 done
10752IFS=$as_save_IFS
10753
10754fi
10755fi
10756GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10757if test -n "$GOC_FOR_TARGET"; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10759$as_echo "$GOC_FOR_TARGET" >&6; }
10760else
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10762$as_echo "no" >&6; }
10763fi
10764
10765
10766 fi
10767 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10768 done
10769fi
10770
10771if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10772 set dummy gccgo
10773 if test $build = $target ; then
10774 GOC_FOR_TARGET="$2"
10775 else
10776 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10777 fi
10778else
10779 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10780fi
10781
10782
10783
e8b05380
PB
10784cat > conftest.c << \EOF
10785#ifdef __GNUC__
10786 gcc_yay;
10787#endif
10788EOF
10789if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10790 have_gcc_for_target=yes
10791else
10792 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10793 have_gcc_for_target=no
10794fi
10795rm conftest.c
10796
10797
10798
10799
10800if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10801 if test -n "$with_build_time_tools"; then
5213506e
RW
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10803$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10804 if test -x $with_build_time_tools/ar; then
10805 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10806 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10808$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10809 else
5213506e
RW
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811$as_echo "no" >&6; }
d1f8db0c 10812 fi
e8b05380
PB
10813 elif test $build != $host && test $have_gcc_for_target = yes; then
10814 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10815 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10816 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10817 fi
10818fi
3e19841a 10819if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10820 # Extract the first word of "ar", so it can be a program name with args.
10821set dummy ar; ac_word=$2
5213506e
RW
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823$as_echo_n "checking for $ac_word... " >&6; }
10824if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
e8b05380 10826else
1c710c3c
DJ
10827 case $AR_FOR_TARGET in
10828 [\\/]* | ?:[\\/]*)
e8b05380
PB
10829 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10830 ;;
e8b05380 10831 *)
1c710c3c
DJ
10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833for as_dir in $gcc_cv_tool_dirs
10834do
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
5213506e
RW
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10839 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10841 break 2
10842 fi
10843done
5213506e
RW
10844 done
10845IFS=$as_save_IFS
1c710c3c 10846
e8b05380
PB
10847 ;;
10848esac
10849fi
1c710c3c 10850AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10851if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10853$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10854else
5213506e
RW
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856$as_echo "no" >&6; }
4de997d1
PB
10857fi
10858
5213506e 10859
e8b05380
PB
10860fi
10861if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10862
10863
10864if test -n "$AR_FOR_TARGET"; then
10865 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10866elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10867 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10868fi
10869
10870if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10871 for ncn_progname in ar; do
10872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10873set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875$as_echo_n "checking for $ac_word... " >&6; }
10876if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10877 $as_echo_n "(cached) " >&6
278a7a38
AO
10878else
10879 if test -n "$AR_FOR_TARGET"; then
10880 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10881else
10882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883for as_dir in $PATH
10884do
10885 IFS=$as_save_IFS
10886 test -z "$as_dir" && as_dir=.
5213506e
RW
10887 for ac_exec_ext in '' $ac_executable_extensions; do
10888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10889 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10891 break 2
10892 fi
10893done
5213506e
RW
10894 done
10895IFS=$as_save_IFS
278a7a38
AO
10896
10897fi
10898fi
10899AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10900if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10902$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10903else
5213506e
RW
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905$as_echo "no" >&6; }
278a7a38
AO
10906fi
10907
5213506e 10908
278a7a38
AO
10909 done
10910fi
10911
10912if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10913 for ncn_progname in ar; do
5213506e
RW
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10915$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10916 if test -x $with_build_time_tools/${ncn_progname}; then
10917 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10919$as_echo "yes" >&6; }
e8b05380
PB
10920 break
10921 else
5213506e
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923$as_echo "no" >&6; }
e8b05380
PB
10924 fi
10925 done
10926fi
10927
10928if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10929 for ncn_progname in ar; do
10930 if test -n "$ncn_target_tool_prefix"; then
10931 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10932set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934$as_echo_n "checking for $ac_word... " >&6; }
10935if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
4de997d1 10937else
e8b05380
PB
10938 if test -n "$AR_FOR_TARGET"; then
10939 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10940else
1c710c3c
DJ
10941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942for as_dir in $PATH
10943do
10944 IFS=$as_save_IFS
10945 test -z "$as_dir" && as_dir=.
5213506e
RW
10946 for ac_exec_ext in '' $ac_executable_extensions; do
10947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10948 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10950 break 2
10951 fi
10952done
5213506e
RW
10953 done
10954IFS=$as_save_IFS
1c710c3c 10955
4de997d1
PB
10956fi
10957fi
1c710c3c 10958AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10959if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10961$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10962else
5213506e
RW
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964$as_echo "no" >&6; }
4de997d1
PB
10965fi
10966
5213506e 10967
e8b05380
PB
10968 fi
10969 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10971set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973$as_echo_n "checking for $ac_word... " >&6; }
10974if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10975 $as_echo_n "(cached) " >&6
e8b05380
PB
10976else
10977 if test -n "$AR_FOR_TARGET"; then
10978 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10979else
1c710c3c
DJ
10980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981for as_dir in $PATH
10982do
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
5213506e
RW
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10987 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10989 break 2
10990 fi
10991done
5213506e
RW
10992 done
10993IFS=$as_save_IFS
1c710c3c 10994
e8b05380
PB
10995fi
10996fi
1c710c3c 10997AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10998if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11000$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11001else
5213506e
RW
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003$as_echo "no" >&6; }
e8b05380 11004fi
1c710c3c 11005
5213506e 11006
e8b05380
PB
11007 fi
11008 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11009 done
11010fi
1c710c3c 11011
e8b05380
PB
11012if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11013 set dummy ar
11014 if test $build = $target ; then
11015 AR_FOR_TARGET="$2"
11016 else
11017 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11018 fi
1c00b503
PB
11019else
11020 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11021fi
11022
d1f8db0c
PB
11023else
11024 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11025fi
11026
11027
11028
11029
11030if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11031 if test -n "$with_build_time_tools"; then
5213506e
RW
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11033$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11034 if test -x $with_build_time_tools/as; then
11035 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11036 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11038$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11039 else
5213506e
RW
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
d1f8db0c 11042 fi
e8b05380
PB
11043 elif test $build != $host && test $have_gcc_for_target = yes; then
11044 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11045 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11046 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11047 fi
11048fi
3e19841a 11049if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11050 # Extract the first word of "as", so it can be a program name with args.
11051set dummy as; ac_word=$2
5213506e
RW
11052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11053$as_echo_n "checking for $ac_word... " >&6; }
11054if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11055 $as_echo_n "(cached) " >&6
e8b05380 11056else
1c710c3c
DJ
11057 case $AS_FOR_TARGET in
11058 [\\/]* | ?:[\\/]*)
e8b05380
PB
11059 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11060 ;;
e8b05380 11061 *)
1c710c3c
DJ
11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063for as_dir in $gcc_cv_tool_dirs
11064do
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
5213506e
RW
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11069 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11071 break 2
11072 fi
11073done
5213506e
RW
11074 done
11075IFS=$as_save_IFS
1c710c3c 11076
e8b05380
PB
11077 ;;
11078esac
11079fi
1c710c3c 11080AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11081if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11083$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11084else
5213506e
RW
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086$as_echo "no" >&6; }
e8b05380
PB
11087fi
11088
5213506e 11089
e8b05380
PB
11090fi
11091if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11092
11093
11094if test -n "$AS_FOR_TARGET"; then
11095 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11096elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11097 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11098fi
11099
11100if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11101 for ncn_progname in as; do
11102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11103set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11105$as_echo_n "checking for $ac_word... " >&6; }
11106if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11107 $as_echo_n "(cached) " >&6
278a7a38
AO
11108else
11109 if test -n "$AS_FOR_TARGET"; then
11110 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11111else
11112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113for as_dir in $PATH
11114do
11115 IFS=$as_save_IFS
11116 test -z "$as_dir" && as_dir=.
5213506e
RW
11117 for ac_exec_ext in '' $ac_executable_extensions; do
11118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11119 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11121 break 2
11122 fi
11123done
5213506e
RW
11124 done
11125IFS=$as_save_IFS
278a7a38
AO
11126
11127fi
11128fi
11129AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11130if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11132$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11133else
5213506e
RW
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135$as_echo "no" >&6; }
278a7a38
AO
11136fi
11137
5213506e 11138
278a7a38
AO
11139 done
11140fi
11141
11142if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11143 for ncn_progname in as; do
5213506e
RW
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11145$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11146 if test -x $with_build_time_tools/${ncn_progname}; then
11147 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11149$as_echo "yes" >&6; }
e8b05380
PB
11150 break
11151 else
5213506e
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153$as_echo "no" >&6; }
e8b05380
PB
11154 fi
11155 done
11156fi
11157
11158if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11159 for ncn_progname in as; do
11160 if test -n "$ncn_target_tool_prefix"; then
11161 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11162set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164$as_echo_n "checking for $ac_word... " >&6; }
11165if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
e8b05380
PB
11167else
11168 if test -n "$AS_FOR_TARGET"; then
11169 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11170else
1c710c3c
DJ
11171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172for as_dir in $PATH
11173do
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
5213506e
RW
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11178 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11180 break 2
11181 fi
11182done
5213506e
RW
11183 done
11184IFS=$as_save_IFS
1c710c3c 11185
e8b05380
PB
11186fi
11187fi
1c710c3c 11188AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11189if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11191$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11192else
5213506e
RW
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194$as_echo "no" >&6; }
e8b05380
PB
11195fi
11196
5213506e 11197
e8b05380
PB
11198 fi
11199 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11201set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11203$as_echo_n "checking for $ac_word... " >&6; }
11204if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
4de997d1 11206else
e8b05380
PB
11207 if test -n "$AS_FOR_TARGET"; then
11208 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11209else
1c710c3c
DJ
11210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211for as_dir in $PATH
11212do
11213 IFS=$as_save_IFS
11214 test -z "$as_dir" && as_dir=.
5213506e
RW
11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11217 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11219 break 2
11220 fi
11221done
5213506e
RW
11222 done
11223IFS=$as_save_IFS
1c710c3c 11224
4de997d1
PB
11225fi
11226fi
1c710c3c 11227AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11228if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11230$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11231else
5213506e
RW
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233$as_echo "no" >&6; }
4de997d1 11234fi
1c710c3c 11235
5213506e 11236
e8b05380
PB
11237 fi
11238 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11239 done
11240fi
1c710c3c 11241
e8b05380
PB
11242if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11243 set dummy as
11244 if test $build = $target ; then
11245 AS_FOR_TARGET="$2"
11246 else
11247 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11248 fi
1c00b503
PB
11249else
11250 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11251fi
2693c0b0 11252
d1f8db0c
PB
11253else
11254 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11255fi
11256
e8b05380
PB
11257
11258
11259
11260if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11261 if test -n "$with_build_time_tools"; then
5213506e
RW
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11263$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11264 if test -x $with_build_time_tools/dlltool; then
11265 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11266 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11268$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11269 else
5213506e
RW
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271$as_echo "no" >&6; }
d1f8db0c 11272 fi
e8b05380
PB
11273 elif test $build != $host && test $have_gcc_for_target = yes; then
11274 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11275 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11276 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11277 fi
11278fi
3e19841a 11279if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11280 # Extract the first word of "dlltool", so it can be a program name with args.
11281set dummy dlltool; ac_word=$2
5213506e
RW
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283$as_echo_n "checking for $ac_word... " >&6; }
11284if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
4de997d1 11286else
1c710c3c
DJ
11287 case $DLLTOOL_FOR_TARGET in
11288 [\\/]* | ?:[\\/]*)
e8b05380
PB
11289 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11290 ;;
e8b05380 11291 *)
1c710c3c
DJ
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293for as_dir in $gcc_cv_tool_dirs
11294do
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
5213506e
RW
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11299 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11301 break 2
11302 fi
11303done
5213506e
RW
11304 done
11305IFS=$as_save_IFS
1c710c3c 11306
e8b05380
PB
11307 ;;
11308esac
4de997d1 11309fi
1c710c3c 11310DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11311if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11313$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11314else
5213506e
RW
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316$as_echo "no" >&6; }
4de997d1
PB
11317fi
11318
5213506e 11319
e8b05380
PB
11320fi
11321if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11322
11323
11324if test -n "$DLLTOOL_FOR_TARGET"; then
11325 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11326elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11327 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11328fi
11329
11330if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11331 for ncn_progname in dlltool; do
11332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11333set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335$as_echo_n "checking for $ac_word... " >&6; }
11336if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11337 $as_echo_n "(cached) " >&6
278a7a38
AO
11338else
11339 if test -n "$DLLTOOL_FOR_TARGET"; then
11340 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11341else
11342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343for as_dir in $PATH
11344do
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
5213506e
RW
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11349 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11351 break 2
11352 fi
11353done
5213506e
RW
11354 done
11355IFS=$as_save_IFS
278a7a38
AO
11356
11357fi
11358fi
11359DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11360if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11362$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11363else
5213506e
RW
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365$as_echo "no" >&6; }
278a7a38
AO
11366fi
11367
5213506e 11368
278a7a38
AO
11369 done
11370fi
11371
11372if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11373 for ncn_progname in dlltool; do
5213506e
RW
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11375$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11376 if test -x $with_build_time_tools/${ncn_progname}; then
11377 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11379$as_echo "yes" >&6; }
e8b05380
PB
11380 break
11381 else
5213506e
RW
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383$as_echo "no" >&6; }
e8b05380
PB
11384 fi
11385 done
11386fi
11387
11388if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11389 for ncn_progname in dlltool; do
11390 if test -n "$ncn_target_tool_prefix"; then
11391 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11392set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394$as_echo_n "checking for $ac_word... " >&6; }
11395if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
4de997d1 11397else
e8b05380
PB
11398 if test -n "$DLLTOOL_FOR_TARGET"; then
11399 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11400else
1c710c3c
DJ
11401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402for as_dir in $PATH
11403do
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
5213506e
RW
11406 for ac_exec_ext in '' $ac_executable_extensions; do
11407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11408 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11410 break 2
11411 fi
11412done
5213506e
RW
11413 done
11414IFS=$as_save_IFS
1c710c3c 11415
4de997d1
PB
11416fi
11417fi
1c710c3c 11418DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11419if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11421$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11422else
5213506e
RW
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424$as_echo "no" >&6; }
4de997d1 11425fi
4de997d1 11426
5213506e 11427
e8b05380
PB
11428 fi
11429 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11431set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433$as_echo_n "checking for $ac_word... " >&6; }
11434if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11435 $as_echo_n "(cached) " >&6
4de997d1 11436else
e8b05380
PB
11437 if test -n "$DLLTOOL_FOR_TARGET"; then
11438 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11439else
1c710c3c
DJ
11440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441for as_dir in $PATH
11442do
11443 IFS=$as_save_IFS
11444 test -z "$as_dir" && as_dir=.
5213506e
RW
11445 for ac_exec_ext in '' $ac_executable_extensions; do
11446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11447 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11449 break 2
11450 fi
11451done
5213506e
RW
11452 done
11453IFS=$as_save_IFS
1c710c3c 11454
4de997d1
PB
11455fi
11456fi
1c710c3c 11457DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11458if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11460$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11461else
5213506e
RW
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463$as_echo "no" >&6; }
4de997d1 11464fi
1c710c3c 11465
5213506e 11466
e8b05380
PB
11467 fi
11468 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11469 done
11470fi
1c710c3c 11471
e8b05380
PB
11472if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11473 set dummy dlltool
11474 if test $build = $target ; then
11475 DLLTOOL_FOR_TARGET="$2"
11476 else
11477 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11478 fi
1c00b503
PB
11479else
11480 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11481fi
11482
d1f8db0c
PB
11483else
11484 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11485fi
11486
4de997d1 11487
e8b05380
PB
11488
11489
11490if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11491 if test -n "$with_build_time_tools"; then
5213506e
RW
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11493$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11494 if test -x $with_build_time_tools/ld; then
11495 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11496 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11498$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11499 else
5213506e
RW
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
d1f8db0c 11502 fi
e8b05380
PB
11503 elif test $build != $host && test $have_gcc_for_target = yes; then
11504 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11505 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11506 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11507 fi
e8b05380 11508fi
3e19841a 11509if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11510 # Extract the first word of "ld", so it can be a program name with args.
11511set dummy ld; ac_word=$2
5213506e
RW
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513$as_echo_n "checking for $ac_word... " >&6; }
11514if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
4de997d1 11516else
1c710c3c
DJ
11517 case $LD_FOR_TARGET in
11518 [\\/]* | ?:[\\/]*)
e8b05380
PB
11519 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11520 ;;
e8b05380 11521 *)
1c710c3c
DJ
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523for as_dir in $gcc_cv_tool_dirs
11524do
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
5213506e
RW
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11529 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11531 break 2
11532 fi
11533done
5213506e
RW
11534 done
11535IFS=$as_save_IFS
1c710c3c 11536
e8b05380
PB
11537 ;;
11538esac
4de997d1 11539fi
1c710c3c 11540LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11541if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11543$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11544else
5213506e
RW
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546$as_echo "no" >&6; }
4de997d1 11547fi
2693c0b0 11548
5213506e 11549
e8b05380
PB
11550fi
11551if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11552
11553
11554if test -n "$LD_FOR_TARGET"; then
11555 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11556elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11557 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11558fi
11559
11560if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11561 for ncn_progname in ld; do
11562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11563set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565$as_echo_n "checking for $ac_word... " >&6; }
11566if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11567 $as_echo_n "(cached) " >&6
278a7a38
AO
11568else
11569 if test -n "$LD_FOR_TARGET"; then
11570 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11571else
11572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573for as_dir in $PATH
11574do
11575 IFS=$as_save_IFS
11576 test -z "$as_dir" && as_dir=.
5213506e
RW
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11579 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11581 break 2
11582 fi
11583done
5213506e
RW
11584 done
11585IFS=$as_save_IFS
278a7a38
AO
11586
11587fi
11588fi
11589LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11590if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11592$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11593else
5213506e
RW
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595$as_echo "no" >&6; }
278a7a38
AO
11596fi
11597
5213506e 11598
278a7a38
AO
11599 done
11600fi
11601
11602if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11603 for ncn_progname in ld; do
5213506e
RW
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11605$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11606 if test -x $with_build_time_tools/${ncn_progname}; then
11607 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609$as_echo "yes" >&6; }
e8b05380
PB
11610 break
11611 else
5213506e
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613$as_echo "no" >&6; }
e8b05380
PB
11614 fi
11615 done
ca9f4b81
AO
11616fi
11617
e8b05380
PB
11618if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11619 for ncn_progname in ld; do
11620 if test -n "$ncn_target_tool_prefix"; then
11621 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11622set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
ca9f4b81 11627else
4de997d1
PB
11628 if test -n "$LD_FOR_TARGET"; then
11629 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11630else
1c710c3c
DJ
11631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $PATH
11633do
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
5213506e
RW
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11638 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11640 break 2
11641 fi
11642done
5213506e
RW
11643 done
11644IFS=$as_save_IFS
1c710c3c 11645
ca9f4b81
AO
11646fi
11647fi
1c710c3c 11648LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11649if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11651$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11652else
5213506e
RW
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654$as_echo "no" >&6; }
ca9f4b81
AO
11655fi
11656
5213506e 11657
e8b05380
PB
11658 fi
11659 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11661set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663$as_echo_n "checking for $ac_word... " >&6; }
11664if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11665 $as_echo_n "(cached) " >&6
ca9f4b81 11666else
2693c0b0
PB
11667 if test -n "$LD_FOR_TARGET"; then
11668 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11669else
1c710c3c
DJ
11670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671for as_dir in $PATH
11672do
11673 IFS=$as_save_IFS
11674 test -z "$as_dir" && as_dir=.
5213506e
RW
11675 for ac_exec_ext in '' $ac_executable_extensions; do
11676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11677 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11679 break 2
11680 fi
11681done
5213506e
RW
11682 done
11683IFS=$as_save_IFS
1c710c3c 11684
ca9f4b81
AO
11685fi
11686fi
1c710c3c 11687LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11688if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11690$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11691else
5213506e
RW
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693$as_echo "no" >&6; }
ca9f4b81 11694fi
1c710c3c 11695
5213506e 11696
e8b05380
PB
11697 fi
11698 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11699 done
11700fi
1c710c3c 11701
2693c0b0
PB
11702if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11703 set dummy ld
11704 if test $build = $target ; then
11705 LD_FOR_TARGET="$2"
ca9f4b81 11706 else
2693c0b0 11707 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11708 fi
1c00b503
PB
11709else
11710 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11711fi
11712
d1f8db0c
PB
11713else
11714 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11715fi
11716
11717
11718
11719
11720if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11721 if test -n "$with_build_time_tools"; then
5213506e
RW
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11723$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11724 if test -x $with_build_time_tools/lipo; then
11725 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11726 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11728$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11729 else
5213506e
RW
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731$as_echo "no" >&6; }
d1f8db0c 11732 fi
e8b05380
PB
11733 elif test $build != $host && test $have_gcc_for_target = yes; then
11734 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11735 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11736 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11737 fi
11738fi
278a7a38
AO
11739if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11740 # Extract the first word of "lipo", so it can be a program name with args.
11741set dummy lipo; ac_word=$2
5213506e
RW
11742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743$as_echo_n "checking for $ac_word... " >&6; }
11744if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11745 $as_echo_n "(cached) " >&6
278a7a38
AO
11746else
11747 case $LIPO_FOR_TARGET in
11748 [\\/]* | ?:[\\/]*)
11749 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11750 ;;
11751 *)
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753for as_dir in $gcc_cv_tool_dirs
11754do
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
5213506e
RW
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11759 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11761 break 2
11762 fi
11763done
5213506e
RW
11764 done
11765IFS=$as_save_IFS
278a7a38
AO
11766
11767 ;;
11768esac
11769fi
11770LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11771if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11773$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11774else
5213506e
RW
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776$as_echo "no" >&6; }
278a7a38
AO
11777fi
11778
5213506e 11779
278a7a38
AO
11780fi
11781if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11782
11783
11784if test -n "$LIPO_FOR_TARGET"; then
11785 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11786elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11787 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11788fi
11789
11790if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11791 for ncn_progname in lipo; do
11792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11793set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795$as_echo_n "checking for $ac_word... " >&6; }
11796if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11797 $as_echo_n "(cached) " >&6
e8b05380 11798else
278a7a38
AO
11799 if test -n "$LIPO_FOR_TARGET"; then
11800 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11801else
11802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803for as_dir in $PATH
1c710c3c
DJ
11804do
11805 IFS=$as_save_IFS
11806 test -z "$as_dir" && as_dir=.
5213506e
RW
11807 for ac_exec_ext in '' $ac_executable_extensions; do
11808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11809 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11811 break 2
11812 fi
11813done
5213506e
RW
11814 done
11815IFS=$as_save_IFS
1c710c3c 11816
e8b05380 11817fi
278a7a38
AO
11818fi
11819LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11820if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11822$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11823else
5213506e
RW
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825$as_echo "no" >&6; }
e8b05380
PB
11826fi
11827
5213506e 11828
278a7a38 11829 done
e8b05380 11830fi
278a7a38
AO
11831
11832if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11833 for ncn_progname in lipo; do
5213506e
RW
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11835$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11836 if test -x $with_build_time_tools/${ncn_progname}; then
11837 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11839$as_echo "yes" >&6; }
e8b05380
PB
11840 break
11841 else
5213506e
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843$as_echo "no" >&6; }
e8b05380
PB
11844 fi
11845 done
11846fi
11847
11848if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11849 for ncn_progname in lipo; do
11850 if test -n "$ncn_target_tool_prefix"; then
11851 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11852set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854$as_echo_n "checking for $ac_word... " >&6; }
11855if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11856 $as_echo_n "(cached) " >&6
040b1c5a
GK
11857else
11858 if test -n "$LIPO_FOR_TARGET"; then
11859 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11860else
1c710c3c
DJ
11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
5213506e
RW
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11868 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11870 break 2
11871 fi
11872done
5213506e
RW
11873 done
11874IFS=$as_save_IFS
1c710c3c 11875
040b1c5a
GK
11876fi
11877fi
1c710c3c 11878LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11879if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11881$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11882else
5213506e
RW
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884$as_echo "no" >&6; }
040b1c5a
GK
11885fi
11886
5213506e 11887
e8b05380
PB
11888 fi
11889 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11891set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11893$as_echo_n "checking for $ac_word... " >&6; }
11894if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
040b1c5a
GK
11896else
11897 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11898 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11899else
1c710c3c
DJ
11900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901for as_dir in $PATH
11902do
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
5213506e
RW
11905 for ac_exec_ext in '' $ac_executable_extensions; do
11906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11907 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11909 break 2
11910 fi
11911done
5213506e
RW
11912 done
11913IFS=$as_save_IFS
1c710c3c 11914
040b1c5a
GK
11915fi
11916fi
1c710c3c 11917LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11918if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11920$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11921else
5213506e
RW
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923$as_echo "no" >&6; }
040b1c5a 11924fi
1c710c3c 11925
5213506e 11926
e8b05380
PB
11927 fi
11928 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11929 done
11930fi
1c710c3c 11931
040b1c5a
GK
11932if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11933 set dummy lipo
11934 if test $build = $target ; then
11935 LIPO_FOR_TARGET="$2"
11936 else
11937 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11938 fi
1c00b503
PB
11939else
11940 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11941fi
11942
d1f8db0c
PB
11943else
11944 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11945fi
11946
11947
11948
11949
11950if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11951 if test -n "$with_build_time_tools"; then
5213506e
RW
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11953$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11954 if test -x $with_build_time_tools/nm; then
11955 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11956 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11958$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11959 else
5213506e
RW
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961$as_echo "no" >&6; }
d1f8db0c 11962 fi
e8b05380
PB
11963 elif test $build != $host && test $have_gcc_for_target = yes; then
11964 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11965 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11966 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11967 fi
11968fi
3e19841a 11969if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11970 # Extract the first word of "nm", so it can be a program name with args.
11971set dummy nm; ac_word=$2
5213506e
RW
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973$as_echo_n "checking for $ac_word... " >&6; }
11974if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11975 $as_echo_n "(cached) " >&6
e8b05380 11976else
1c710c3c
DJ
11977 case $NM_FOR_TARGET in
11978 [\\/]* | ?:[\\/]*)
e8b05380
PB
11979 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11980 ;;
e8b05380 11981 *)
1c710c3c
DJ
11982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983for as_dir in $gcc_cv_tool_dirs
11984do
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
5213506e
RW
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11989 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11991 break 2
11992 fi
11993done
5213506e
RW
11994 done
11995IFS=$as_save_IFS
1c710c3c 11996
e8b05380
PB
11997 ;;
11998esac
11999fi
1c710c3c 12000NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12001if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12003$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12004else
5213506e
RW
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006$as_echo "no" >&6; }
e8b05380
PB
12007fi
12008
5213506e 12009
e8b05380
PB
12010fi
12011if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12012
12013
12014if test -n "$NM_FOR_TARGET"; then
12015 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12016elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12017 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12018fi
12019
12020if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12021 for ncn_progname in nm; do
12022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12023set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025$as_echo_n "checking for $ac_word... " >&6; }
12026if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12027 $as_echo_n "(cached) " >&6
278a7a38
AO
12028else
12029 if test -n "$NM_FOR_TARGET"; then
12030 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12031else
12032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033for as_dir in $PATH
12034do
12035 IFS=$as_save_IFS
12036 test -z "$as_dir" && as_dir=.
5213506e
RW
12037 for ac_exec_ext in '' $ac_executable_extensions; do
12038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12039 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12041 break 2
12042 fi
12043done
5213506e
RW
12044 done
12045IFS=$as_save_IFS
278a7a38
AO
12046
12047fi
12048fi
12049NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12050if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12052$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12053else
5213506e
RW
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055$as_echo "no" >&6; }
278a7a38
AO
12056fi
12057
5213506e 12058
278a7a38
AO
12059 done
12060fi
12061
12062if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12063 for ncn_progname in nm; do
5213506e
RW
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12065$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12066 if test -x $with_build_time_tools/${ncn_progname}; then
12067 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12069$as_echo "yes" >&6; }
e8b05380
PB
12070 break
12071 else
5213506e
RW
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073$as_echo "no" >&6; }
e8b05380
PB
12074 fi
12075 done
12076fi
12077
12078if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12079 for ncn_progname in nm; do
12080 if test -n "$ncn_target_tool_prefix"; then
12081 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12082set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084$as_echo_n "checking for $ac_word... " >&6; }
12085if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
ca9f4b81 12087else
4de997d1
PB
12088 if test -n "$NM_FOR_TARGET"; then
12089 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12090else
1c710c3c
DJ
12091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092for as_dir in $PATH
12093do
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
5213506e
RW
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12098 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12100 break 2
12101 fi
12102done
5213506e
RW
12103 done
12104IFS=$as_save_IFS
1c710c3c 12105
ca9f4b81
AO
12106fi
12107fi
1c710c3c 12108NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12109if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12111$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12112else
5213506e
RW
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114$as_echo "no" >&6; }
ca9f4b81
AO
12115fi
12116
5213506e 12117
e8b05380
PB
12118 fi
12119 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12121set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123$as_echo_n "checking for $ac_word... " >&6; }
12124if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12125 $as_echo_n "(cached) " >&6
ca9f4b81 12126else
2693c0b0
PB
12127 if test -n "$NM_FOR_TARGET"; then
12128 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12129else
1c710c3c
DJ
12130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131for as_dir in $PATH
12132do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
5213506e
RW
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12137 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12139 break 2
12140 fi
12141done
5213506e
RW
12142 done
12143IFS=$as_save_IFS
1c710c3c 12144
ca9f4b81
AO
12145fi
12146fi
1c710c3c 12147NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12148if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12150$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12151else
5213506e
RW
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153$as_echo "no" >&6; }
ca9f4b81 12154fi
1c710c3c 12155
5213506e 12156
e8b05380
PB
12157 fi
12158 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12159 done
12160fi
1c710c3c 12161
2693c0b0
PB
12162if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12163 set dummy nm
12164 if test $build = $target ; then
12165 NM_FOR_TARGET="$2"
ca9f4b81 12166 else
2693c0b0 12167 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12168 fi
1c00b503
PB
12169else
12170 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12171fi
12172
d1f8db0c
PB
12173else
12174 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12175fi
12176
12177
12178
12179
12180if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12181 if test -n "$with_build_time_tools"; then
5213506e
RW
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12183$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12184 if test -x $with_build_time_tools/objdump; then
12185 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12186 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12188$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12189 else
5213506e
RW
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191$as_echo "no" >&6; }
d1f8db0c 12192 fi
e8b05380
PB
12193 elif test $build != $host && test $have_gcc_for_target = yes; then
12194 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12195 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12196 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12197 fi
12198fi
3e19841a 12199if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12200 # Extract the first word of "objdump", so it can be a program name with args.
12201set dummy objdump; ac_word=$2
5213506e
RW
12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203$as_echo_n "checking for $ac_word... " >&6; }
12204if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12205 $as_echo_n "(cached) " >&6
e8b05380 12206else
1c710c3c
DJ
12207 case $OBJDUMP_FOR_TARGET in
12208 [\\/]* | ?:[\\/]*)
e8b05380
PB
12209 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12210 ;;
e8b05380 12211 *)
1c710c3c
DJ
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213for as_dir in $gcc_cv_tool_dirs
12214do
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
5213506e
RW
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12219 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12221 break 2
12222 fi
12223done
5213506e
RW
12224 done
12225IFS=$as_save_IFS
1c710c3c 12226
e8b05380
PB
12227 ;;
12228esac
12229fi
1c710c3c 12230OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12231if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12233$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12234else
5213506e
RW
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236$as_echo "no" >&6; }
e8b05380
PB
12237fi
12238
5213506e 12239
e8b05380
PB
12240fi
12241if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12242
12243
12244if test -n "$OBJDUMP_FOR_TARGET"; then
12245 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12246elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12247 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12248fi
12249
12250if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12251 for ncn_progname in objdump; do
12252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12253set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255$as_echo_n "checking for $ac_word... " >&6; }
12256if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12257 $as_echo_n "(cached) " >&6
278a7a38
AO
12258else
12259 if test -n "$OBJDUMP_FOR_TARGET"; then
12260 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12261else
12262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263for as_dir in $PATH
12264do
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
5213506e
RW
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12269 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12271 break 2
12272 fi
12273done
5213506e
RW
12274 done
12275IFS=$as_save_IFS
278a7a38
AO
12276
12277fi
12278fi
12279OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12280if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12282$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12283else
5213506e
RW
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285$as_echo "no" >&6; }
278a7a38
AO
12286fi
12287
5213506e 12288
278a7a38
AO
12289 done
12290fi
12291
12292if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12293 for ncn_progname in objdump; do
5213506e
RW
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12295$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12296 if test -x $with_build_time_tools/${ncn_progname}; then
12297 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12299$as_echo "yes" >&6; }
e8b05380
PB
12300 break
12301 else
5213506e
RW
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303$as_echo "no" >&6; }
e8b05380
PB
12304 fi
12305 done
12306fi
12307
12308if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12309 for ncn_progname in objdump; do
12310 if test -n "$ncn_target_tool_prefix"; then
12311 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12312set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
12315if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
d739199a
DJ
12317else
12318 if test -n "$OBJDUMP_FOR_TARGET"; then
12319 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12320else
1c710c3c
DJ
12321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $PATH
12323do
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
5213506e
RW
12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12328 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12330 break 2
12331 fi
12332done
5213506e
RW
12333 done
12334IFS=$as_save_IFS
1c710c3c 12335
d739199a
DJ
12336fi
12337fi
1c710c3c 12338OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12339if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12341$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12342else
5213506e
RW
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
d739199a
DJ
12345fi
12346
5213506e 12347
e8b05380
PB
12348 fi
12349 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12351set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353$as_echo_n "checking for $ac_word... " >&6; }
12354if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
d739199a
DJ
12356else
12357 if test -n "$OBJDUMP_FOR_TARGET"; then
12358 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12359else
1c710c3c
DJ
12360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361for as_dir in $PATH
12362do
12363 IFS=$as_save_IFS
12364 test -z "$as_dir" && as_dir=.
5213506e
RW
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12367 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12369 break 2
12370 fi
12371done
5213506e
RW
12372 done
12373IFS=$as_save_IFS
1c710c3c 12374
d739199a
DJ
12375fi
12376fi
1c710c3c 12377OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12378if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12380$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12381else
5213506e
RW
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383$as_echo "no" >&6; }
d739199a 12384fi
1c710c3c 12385
5213506e 12386
e8b05380
PB
12387 fi
12388 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12389 done
12390fi
1c710c3c 12391
d739199a
DJ
12392if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12393 set dummy objdump
12394 if test $build = $target ; then
12395 OBJDUMP_FOR_TARGET="$2"
12396 else
12397 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12398 fi
1c00b503
PB
12399else
12400 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12401fi
12402
d1f8db0c
PB
12403else
12404 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12405fi
12406
12407
12408
12409
12410if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12411 if test -n "$with_build_time_tools"; then
5213506e
RW
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12413$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12414 if test -x $with_build_time_tools/ranlib; then
12415 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12416 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12418$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12419 else
5213506e
RW
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421$as_echo "no" >&6; }
d1f8db0c 12422 fi
e8b05380
PB
12423 elif test $build != $host && test $have_gcc_for_target = yes; then
12424 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12425 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12426 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12427 fi
12428fi
3e19841a 12429if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12430 # Extract the first word of "ranlib", so it can be a program name with args.
12431set dummy ranlib; ac_word=$2
5213506e
RW
12432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12433$as_echo_n "checking for $ac_word... " >&6; }
12434if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
e8b05380 12436else
1c710c3c
DJ
12437 case $RANLIB_FOR_TARGET in
12438 [\\/]* | ?:[\\/]*)
e8b05380
PB
12439 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12440 ;;
e8b05380 12441 *)
1c710c3c
DJ
12442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443for as_dir in $gcc_cv_tool_dirs
12444do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
5213506e
RW
12447 for ac_exec_ext in '' $ac_executable_extensions; do
12448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12449 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12451 break 2
12452 fi
12453done
5213506e
RW
12454 done
12455IFS=$as_save_IFS
1c710c3c 12456
e8b05380
PB
12457 ;;
12458esac
12459fi
1c710c3c 12460RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12461if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12463$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12464else
5213506e
RW
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466$as_echo "no" >&6; }
e8b05380
PB
12467fi
12468
5213506e 12469
e8b05380
PB
12470fi
12471if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12472
12473
12474if test -n "$RANLIB_FOR_TARGET"; then
12475 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12476elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12477 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12478fi
12479
12480if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12481 for ncn_progname in ranlib; do
12482 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12483set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485$as_echo_n "checking for $ac_word... " >&6; }
12486if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12487 $as_echo_n "(cached) " >&6
278a7a38
AO
12488else
12489 if test -n "$RANLIB_FOR_TARGET"; then
12490 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12491else
12492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493for as_dir in $PATH
12494do
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
5213506e
RW
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12499 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12501 break 2
12502 fi
12503done
5213506e
RW
12504 done
12505IFS=$as_save_IFS
278a7a38
AO
12506
12507fi
12508fi
12509RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12510if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12512$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12513else
5213506e
RW
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515$as_echo "no" >&6; }
278a7a38
AO
12516fi
12517
5213506e 12518
278a7a38
AO
12519 done
12520fi
12521
12522if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12523 for ncn_progname in ranlib; do
5213506e
RW
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12525$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12526 if test -x $with_build_time_tools/${ncn_progname}; then
12527 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12529$as_echo "yes" >&6; }
e8b05380
PB
12530 break
12531 else
5213506e
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533$as_echo "no" >&6; }
e8b05380
PB
12534 fi
12535 done
12536fi
12537
12538if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12539 for ncn_progname in ranlib; do
12540 if test -n "$ncn_target_tool_prefix"; then
12541 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12542set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544$as_echo_n "checking for $ac_word... " >&6; }
12545if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
ca9f4b81 12547else
4de997d1
PB
12548 if test -n "$RANLIB_FOR_TARGET"; then
12549 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12550else
1c710c3c
DJ
12551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552for as_dir in $PATH
12553do
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
5213506e
RW
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12558 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12560 break 2
12561 fi
12562done
5213506e
RW
12563 done
12564IFS=$as_save_IFS
1c710c3c 12565
ca9f4b81
AO
12566fi
12567fi
1c710c3c 12568RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12569if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12571$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12572else
5213506e
RW
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574$as_echo "no" >&6; }
ca9f4b81
AO
12575fi
12576
5213506e 12577
e8b05380
PB
12578 fi
12579 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12581set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12583$as_echo_n "checking for $ac_word... " >&6; }
12584if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
ca9f4b81 12586else
2693c0b0
PB
12587 if test -n "$RANLIB_FOR_TARGET"; then
12588 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12589else
1c710c3c
DJ
12590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591for as_dir in $PATH
12592do
12593 IFS=$as_save_IFS
12594 test -z "$as_dir" && as_dir=.
5213506e
RW
12595 for ac_exec_ext in '' $ac_executable_extensions; do
12596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12597 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12599 break 2
12600 fi
12601done
5213506e
RW
12602 done
12603IFS=$as_save_IFS
1c710c3c 12604
ca9f4b81
AO
12605fi
12606fi
1c710c3c 12607RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12608if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12610$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12611else
5213506e
RW
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613$as_echo "no" >&6; }
ca9f4b81 12614fi
1c710c3c 12615
5213506e 12616
e8b05380
PB
12617 fi
12618 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12619 done
12620fi
1c710c3c 12621
e8b05380
PB
12622if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12623 set dummy ranlib
12624 if test $build = $target ; then
12625 RANLIB_FOR_TARGET="$2"
12626 else
12627 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12628 fi
1c00b503
PB
12629else
12630 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12631fi
2693c0b0 12632
d1f8db0c
PB
12633else
12634 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12635fi
12636
e8b05380
PB
12637
12638
12639
e7a82751
RM
12640if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12641 if test -n "$with_build_time_tools"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12643$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12644 if test -x $with_build_time_tools/readelf; then
12645 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12646 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12648$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12649 else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651$as_echo "no" >&6; }
12652 fi
12653 elif test $build != $host && test $have_gcc_for_target = yes; then
12654 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12655 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12656 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12657 fi
12658fi
12659if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12660 # Extract the first word of "readelf", so it can be a program name with args.
12661set dummy readelf; ac_word=$2
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663$as_echo_n "checking for $ac_word... " >&6; }
12664if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12665 $as_echo_n "(cached) " >&6
12666else
12667 case $READELF_FOR_TARGET in
12668 [\\/]* | ?:[\\/]*)
12669 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12670 ;;
12671 *)
12672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673for as_dir in $gcc_cv_tool_dirs
12674do
12675 IFS=$as_save_IFS
12676 test -z "$as_dir" && as_dir=.
12677 for ac_exec_ext in '' $ac_executable_extensions; do
12678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12679 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12681 break 2
12682 fi
12683done
12684 done
12685IFS=$as_save_IFS
12686
12687 ;;
12688esac
12689fi
12690READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12691if test -n "$READELF_FOR_TARGET"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12693$as_echo "$READELF_FOR_TARGET" >&6; }
12694else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696$as_echo "no" >&6; }
12697fi
12698
12699
12700fi
12701if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12702
12703
12704if test -n "$READELF_FOR_TARGET"; then
12705 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12706elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12707 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12708fi
12709
12710if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12711 for ncn_progname in readelf; do
12712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12713set dummy ${ncn_progname}; ac_word=$2
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715$as_echo_n "checking for $ac_word... " >&6; }
12716if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12718else
12719 if test -n "$READELF_FOR_TARGET"; then
12720 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12721else
12722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723for as_dir in $PATH
12724do
12725 IFS=$as_save_IFS
12726 test -z "$as_dir" && as_dir=.
12727 for ac_exec_ext in '' $ac_executable_extensions; do
12728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731 break 2
12732 fi
12733done
12734 done
12735IFS=$as_save_IFS
12736
12737fi
12738fi
12739READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12740if test -n "$READELF_FOR_TARGET"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12742$as_echo "$READELF_FOR_TARGET" >&6; }
12743else
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745$as_echo "no" >&6; }
12746fi
12747
12748
12749 done
12750fi
12751
12752if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12753 for ncn_progname in readelf; do
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12755$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12756 if test -x $with_build_time_tools/${ncn_progname}; then
12757 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12759$as_echo "yes" >&6; }
12760 break
12761 else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763$as_echo "no" >&6; }
12764 fi
12765 done
12766fi
12767
12768if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12769 for ncn_progname in readelf; do
12770 if test -n "$ncn_target_tool_prefix"; then
12771 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12772set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774$as_echo_n "checking for $ac_word... " >&6; }
12775if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
12777else
12778 if test -n "$READELF_FOR_TARGET"; then
12779 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12780else
12781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12788 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12791 fi
12792done
12793 done
12794IFS=$as_save_IFS
12795
12796fi
12797fi
12798READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12799if test -n "$READELF_FOR_TARGET"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12801$as_echo "$READELF_FOR_TARGET" >&6; }
12802else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
12805fi
12806
12807
12808 fi
12809 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12811set dummy ${ncn_progname}; ac_word=$2
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813$as_echo_n "checking for $ac_word... " >&6; }
12814if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12815 $as_echo_n "(cached) " >&6
12816else
12817 if test -n "$READELF_FOR_TARGET"; then
12818 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12819else
12820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821for as_dir in $PATH
12822do
12823 IFS=$as_save_IFS
12824 test -z "$as_dir" && as_dir=.
12825 for ac_exec_ext in '' $ac_executable_extensions; do
12826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12827 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829 break 2
12830 fi
12831done
12832 done
12833IFS=$as_save_IFS
12834
12835fi
12836fi
12837READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12838if test -n "$READELF_FOR_TARGET"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12840$as_echo "$READELF_FOR_TARGET" >&6; }
12841else
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843$as_echo "no" >&6; }
12844fi
12845
12846
12847 fi
12848 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12849 done
12850fi
12851
12852if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12853 set dummy readelf
12854 if test $build = $target ; then
12855 READELF_FOR_TARGET="$2"
12856 else
12857 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12858 fi
12859else
12860 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12861fi
12862
12863else
12864 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12865fi
12866
12867
12868
12869
e8b05380
PB
12870if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12871 if test -n "$with_build_time_tools"; then
5213506e
RW
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12873$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12874 if test -x $with_build_time_tools/strip; then
12875 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12876 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12878$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12879 else
5213506e
RW
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881$as_echo "no" >&6; }
d1f8db0c 12882 fi
e8b05380
PB
12883 elif test $build != $host && test $have_gcc_for_target = yes; then
12884 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12885 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12886 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12887 fi
12888fi
3e19841a 12889if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12890 # Extract the first word of "strip", so it can be a program name with args.
12891set dummy strip; ac_word=$2
5213506e
RW
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893$as_echo_n "checking for $ac_word... " >&6; }
12894if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12895 $as_echo_n "(cached) " >&6
e8b05380 12896else
1c710c3c
DJ
12897 case $STRIP_FOR_TARGET in
12898 [\\/]* | ?:[\\/]*)
e8b05380
PB
12899 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12900 ;;
e8b05380 12901 *)
1c710c3c
DJ
12902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903for as_dir in $gcc_cv_tool_dirs
12904do
12905 IFS=$as_save_IFS
12906 test -z "$as_dir" && as_dir=.
5213506e
RW
12907 for ac_exec_ext in '' $ac_executable_extensions; do
12908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12909 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12911 break 2
12912 fi
12913done
5213506e
RW
12914 done
12915IFS=$as_save_IFS
1c710c3c 12916
e8b05380
PB
12917 ;;
12918esac
12919fi
1c710c3c 12920STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12921if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12923$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12924else
5213506e
RW
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926$as_echo "no" >&6; }
e8b05380
PB
12927fi
12928
5213506e 12929
e8b05380
PB
12930fi
12931if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12932
12933
12934if test -n "$STRIP_FOR_TARGET"; then
12935 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12936elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12937 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12938fi
12939
12940if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12941 for ncn_progname in strip; do
12942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12943set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945$as_echo_n "checking for $ac_word... " >&6; }
12946if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
278a7a38
AO
12948else
12949 if test -n "$STRIP_FOR_TARGET"; then
12950 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12951else
12952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953for as_dir in $PATH
12954do
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
5213506e
RW
12957 for ac_exec_ext in '' $ac_executable_extensions; do
12958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12959 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12961 break 2
12962 fi
12963done
5213506e
RW
12964 done
12965IFS=$as_save_IFS
278a7a38
AO
12966
12967fi
12968fi
12969STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12970if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12972$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12973else
5213506e
RW
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975$as_echo "no" >&6; }
278a7a38
AO
12976fi
12977
5213506e 12978
278a7a38
AO
12979 done
12980fi
12981
12982if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12983 for ncn_progname in strip; do
5213506e
RW
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12985$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12986 if test -x $with_build_time_tools/${ncn_progname}; then
12987 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12989$as_echo "yes" >&6; }
e8b05380
PB
12990 break
12991 else
5213506e
RW
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993$as_echo "no" >&6; }
e8b05380
PB
12994 fi
12995 done
12996fi
12997
12998if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12999 for ncn_progname in strip; do
13000 if test -n "$ncn_target_tool_prefix"; then
13001 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13002set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004$as_echo_n "checking for $ac_word... " >&6; }
13005if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13006 $as_echo_n "(cached) " >&6
af71363e
AS
13007else
13008 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13009 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13010else
13011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012for as_dir in $PATH
13013do
13014 IFS=$as_save_IFS
13015 test -z "$as_dir" && as_dir=.
5213506e
RW
13016 for ac_exec_ext in '' $ac_executable_extensions; do
13017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13018 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13020 break 2
13021 fi
13022done
5213506e
RW
13023 done
13024IFS=$as_save_IFS
1c710c3c 13025
040b1c5a
GK
13026fi
13027fi
1c710c3c 13028STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13029if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13031$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13032else
5213506e
RW
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034$as_echo "no" >&6; }
040b1c5a
GK
13035fi
13036
5213506e 13037
e8b05380
PB
13038 fi
13039 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13041set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043$as_echo_n "checking for $ac_word... " >&6; }
13044if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
040b1c5a
GK
13046else
13047 if test -n "$STRIP_FOR_TARGET"; then
13048 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13049else
1c710c3c
DJ
13050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051for as_dir in $PATH
13052do
13053 IFS=$as_save_IFS
13054 test -z "$as_dir" && as_dir=.
5213506e
RW
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13057 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13059 break 2
13060 fi
13061done
5213506e
RW
13062 done
13063IFS=$as_save_IFS
1c710c3c 13064
040b1c5a
GK
13065fi
13066fi
1c710c3c 13067STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13068if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13070$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13071else
5213506e
RW
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073$as_echo "no" >&6; }
040b1c5a 13074fi
1c710c3c 13075
5213506e 13076
e8b05380
PB
13077 fi
13078 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13079 done
13080fi
1c710c3c 13081
040b1c5a
GK
13082if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13083 set dummy strip
13084 if test $build = $target ; then
13085 STRIP_FOR_TARGET="$2"
13086 else
13087 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13088 fi
1c00b503
PB
13089else
13090 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13091fi
13092
d1f8db0c
PB
13093else
13094 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13095fi
13096
13097
13098
13099
13100if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13101 if test -n "$with_build_time_tools"; then
5213506e
RW
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13103$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13104 if test -x $with_build_time_tools/windres; then
13105 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13106 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13108$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13109 else
5213506e
RW
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
d1f8db0c 13112 fi
e8b05380
PB
13113 elif test $build != $host && test $have_gcc_for_target = yes; then
13114 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13115 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13116 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13117 fi
13118fi
3e19841a 13119if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13120 # Extract the first word of "windres", so it can be a program name with args.
13121set dummy windres; ac_word=$2
5213506e
RW
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123$as_echo_n "checking for $ac_word... " >&6; }
13124if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
e8b05380 13126else
1c710c3c
DJ
13127 case $WINDRES_FOR_TARGET in
13128 [\\/]* | ?:[\\/]*)
e8b05380
PB
13129 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13130 ;;
e8b05380 13131 *)
1c710c3c
DJ
13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133for as_dir in $gcc_cv_tool_dirs
13134do
13135 IFS=$as_save_IFS
13136 test -z "$as_dir" && as_dir=.
5213506e
RW
13137 for ac_exec_ext in '' $ac_executable_extensions; do
13138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13139 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13141 break 2
13142 fi
13143done
5213506e
RW
13144 done
13145IFS=$as_save_IFS
1c710c3c 13146
e8b05380
PB
13147 ;;
13148esac
13149fi
1c710c3c 13150WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13151if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13153$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13154else
5213506e
RW
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156$as_echo "no" >&6; }
e8b05380
PB
13157fi
13158
5213506e 13159
e8b05380
PB
13160fi
13161if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13162
13163
13164if test -n "$WINDRES_FOR_TARGET"; then
13165 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13166elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13167 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13168fi
13169
13170if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13171 for ncn_progname in windres; do
13172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13173set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175$as_echo_n "checking for $ac_word... " >&6; }
13176if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13177 $as_echo_n "(cached) " >&6
278a7a38
AO
13178else
13179 if test -n "$WINDRES_FOR_TARGET"; then
13180 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13181else
13182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183for as_dir in $PATH
13184do
13185 IFS=$as_save_IFS
13186 test -z "$as_dir" && as_dir=.
5213506e
RW
13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13189 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13191 break 2
13192 fi
13193done
5213506e
RW
13194 done
13195IFS=$as_save_IFS
278a7a38
AO
13196
13197fi
13198fi
13199WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13200if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13202$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13203else
5213506e
RW
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205$as_echo "no" >&6; }
278a7a38
AO
13206fi
13207
5213506e 13208
278a7a38
AO
13209 done
13210fi
13211
13212if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13213 for ncn_progname in windres; do
5213506e
RW
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13215$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13216 if test -x $with_build_time_tools/${ncn_progname}; then
13217 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13219$as_echo "yes" >&6; }
e8b05380
PB
13220 break
13221 else
5213506e
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223$as_echo "no" >&6; }
e8b05380
PB
13224 fi
13225 done
13226fi
13227
13228if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13229 for ncn_progname in windres; do
13230 if test -n "$ncn_target_tool_prefix"; then
13231 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13232set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234$as_echo_n "checking for $ac_word... " >&6; }
13235if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
ca9f4b81 13237else
4de997d1
PB
13238 if test -n "$WINDRES_FOR_TARGET"; then
13239 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13240else
1c710c3c
DJ
13241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242for as_dir in $PATH
13243do
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
5213506e
RW
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13248 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13250 break 2
13251 fi
13252done
5213506e
RW
13253 done
13254IFS=$as_save_IFS
1c710c3c 13255
ca9f4b81
AO
13256fi
13257fi
1c710c3c 13258WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13259if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13261$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13262else
5213506e
RW
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264$as_echo "no" >&6; }
ca9f4b81
AO
13265fi
13266
5213506e 13267
e8b05380
PB
13268 fi
13269 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13271set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273$as_echo_n "checking for $ac_word... " >&6; }
13274if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
ca9f4b81 13276else
2693c0b0
PB
13277 if test -n "$WINDRES_FOR_TARGET"; then
13278 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13279else
1c710c3c
DJ
13280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281for as_dir in $PATH
13282do
13283 IFS=$as_save_IFS
13284 test -z "$as_dir" && as_dir=.
5213506e
RW
13285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13287 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13289 break 2
13290 fi
13291done
5213506e
RW
13292 done
13293IFS=$as_save_IFS
1c710c3c 13294
ca9f4b81
AO
13295fi
13296fi
1c710c3c 13297WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13298if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13300$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13301else
5213506e
RW
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303$as_echo "no" >&6; }
ca9f4b81 13304fi
1c710c3c 13305
5213506e 13306
e8b05380
PB
13307 fi
13308 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13309 done
13310fi
1c710c3c 13311
2693c0b0
PB
13312if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13313 set dummy windres
13314 if test $build = $target ; then
13315 WINDRES_FOR_TARGET="$2"
ca9f4b81 13316 else
2693c0b0 13317 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13318 fi
1c00b503
PB
13319else
13320 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13321fi
13322
d1f8db0c
PB
13323else
13324 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13325fi
13326
4977bab6 13327
901119ae
KT
13328
13329
13330if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13331 if test -n "$with_build_time_tools"; then
5213506e
RW
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13333$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13334 if test -x $with_build_time_tools/windmc; then
13335 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13336 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13338$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13339 else
5213506e
RW
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341$as_echo "no" >&6; }
901119ae
KT
13342 fi
13343 elif test $build != $host && test $have_gcc_for_target = yes; then
13344 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13345 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13346 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13347 fi
13348fi
13349if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13350 # Extract the first word of "windmc", so it can be a program name with args.
13351set dummy windmc; ac_word=$2
5213506e
RW
13352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353$as_echo_n "checking for $ac_word... " >&6; }
13354if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13355 $as_echo_n "(cached) " >&6
901119ae
KT
13356else
13357 case $WINDMC_FOR_TARGET in
13358 [\\/]* | ?:[\\/]*)
13359 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13360 ;;
13361 *)
13362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363for as_dir in $gcc_cv_tool_dirs
13364do
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
5213506e
RW
13367 for ac_exec_ext in '' $ac_executable_extensions; do
13368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13369 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13371 break 2
13372 fi
13373done
5213506e
RW
13374 done
13375IFS=$as_save_IFS
901119ae
KT
13376
13377 ;;
13378esac
13379fi
13380WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13381if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13383$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13384else
5213506e
RW
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386$as_echo "no" >&6; }
901119ae
KT
13387fi
13388
5213506e 13389
901119ae
KT
13390fi
13391if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13392
13393
13394if test -n "$WINDMC_FOR_TARGET"; then
13395 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13396elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13397 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13398fi
13399
13400if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13401 for ncn_progname in windmc; do
13402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13403set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405$as_echo_n "checking for $ac_word... " >&6; }
13406if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13407 $as_echo_n "(cached) " >&6
901119ae
KT
13408else
13409 if test -n "$WINDMC_FOR_TARGET"; then
13410 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13411else
13412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413for as_dir in $PATH
13414do
13415 IFS=$as_save_IFS
13416 test -z "$as_dir" && as_dir=.
5213506e
RW
13417 for ac_exec_ext in '' $ac_executable_extensions; do
13418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13419 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13421 break 2
13422 fi
13423done
5213506e
RW
13424 done
13425IFS=$as_save_IFS
901119ae
KT
13426
13427fi
13428fi
13429WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13430if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13432$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13433else
5213506e
RW
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435$as_echo "no" >&6; }
901119ae
KT
13436fi
13437
5213506e 13438
901119ae
KT
13439 done
13440fi
13441
13442if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13443 for ncn_progname in windmc; do
5213506e
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13445$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13446 if test -x $with_build_time_tools/${ncn_progname}; then
13447 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449$as_echo "yes" >&6; }
901119ae
KT
13450 break
13451 else
5213506e
RW
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453$as_echo "no" >&6; }
901119ae
KT
13454 fi
13455 done
13456fi
13457
13458if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13459 for ncn_progname in windmc; do
13460 if test -n "$ncn_target_tool_prefix"; then
13461 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13462set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13464$as_echo_n "checking for $ac_word... " >&6; }
13465if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13466 $as_echo_n "(cached) " >&6
901119ae
KT
13467else
13468 if test -n "$WINDMC_FOR_TARGET"; then
13469 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13470else
13471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472for as_dir in $PATH
13473do
13474 IFS=$as_save_IFS
13475 test -z "$as_dir" && as_dir=.
5213506e
RW
13476 for ac_exec_ext in '' $ac_executable_extensions; do
13477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13478 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13480 break 2
13481 fi
13482done
5213506e
RW
13483 done
13484IFS=$as_save_IFS
901119ae
KT
13485
13486fi
13487fi
13488WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13489if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13491$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13492else
5213506e
RW
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494$as_echo "no" >&6; }
901119ae
KT
13495fi
13496
5213506e 13497
901119ae
KT
13498 fi
13499 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13501set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13503$as_echo_n "checking for $ac_word... " >&6; }
13504if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13505 $as_echo_n "(cached) " >&6
901119ae
KT
13506else
13507 if test -n "$WINDMC_FOR_TARGET"; then
13508 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13509else
13510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511for as_dir in $PATH
13512do
13513 IFS=$as_save_IFS
13514 test -z "$as_dir" && as_dir=.
5213506e
RW
13515 for ac_exec_ext in '' $ac_executable_extensions; do
13516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13517 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13519 break 2
13520 fi
13521done
5213506e
RW
13522 done
13523IFS=$as_save_IFS
901119ae
KT
13524
13525fi
13526fi
13527WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13528if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13530$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13531else
5213506e
RW
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533$as_echo "no" >&6; }
901119ae
KT
13534fi
13535
5213506e 13536
901119ae
KT
13537 fi
13538 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13539 done
13540fi
13541
13542if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13543 set dummy windmc
13544 if test $build = $target ; then
13545 WINDMC_FOR_TARGET="$2"
13546 else
13547 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13548 fi
1c00b503
PB
13549else
13550 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13551fi
13552
13553else
13554 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13555fi
13556
13557
2abefe3d
PB
13558RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13559
5213506e
RW
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13561$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13562if test "x${build}" != "x${host}" ; then
e8b05380
PB
13563 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13564 # We already found the complete path
172e41aa 13565 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13567$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13568 else
13569 # Canadian cross, just use what we found
5213506e
RW
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571$as_echo "pre-installed" >&6; }
e8b05380 13572 fi
2abefe3d
PB
13573else
13574 ok=yes
13575 case " ${configdirs} " in
13576 *" binutils "*) ;;
13577 *) ok=no ;;
13578 esac
1c710c3c 13579
2abefe3d
PB
13580 if test $ok = yes; then
13581 # An in-tree tool is available and we can use it
13582 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13584$as_echo "just compiled" >&6; }
e8b05380
PB
13585 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13586 # We already found the complete path
172e41aa 13587 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13589$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13590 elif test "x$target" = "x$host"; then
13591 # We can use an host tool
13592 AR_FOR_TARGET='$(AR)'
5213506e
RW
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13594$as_echo "host tool" >&6; }
2abefe3d
PB
13595 else
13596 # We need a cross tool
5213506e
RW
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13598$as_echo "pre-installed" >&6; }
2abefe3d
PB
13599 fi
13600fi
0b0dc272 13601
5213506e
RW
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13603$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13604if test "x${build}" != "x${host}" ; then
e8b05380
PB
13605 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13606 # We already found the complete path
172e41aa 13607 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13609$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13610 else
13611 # Canadian cross, just use what we found
5213506e
RW
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13613$as_echo "pre-installed" >&6; }
e8b05380 13614 fi
2abefe3d
PB
13615else
13616 ok=yes
13617 case " ${configdirs} " in
13618 *" gas "*) ;;
13619 *) ok=no ;;
13620 esac
1c710c3c 13621
2abefe3d
PB
13622 if test $ok = yes; then
13623 # An in-tree tool is available and we can use it
13624 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13626$as_echo "just compiled" >&6; }
e8b05380
PB
13627 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13628 # We already found the complete path
172e41aa 13629 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13631$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13632 elif test "x$target" = "x$host"; then
13633 # We can use an host tool
13634 AS_FOR_TARGET='$(AS)'
5213506e
RW
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13636$as_echo "host tool" >&6; }
2abefe3d
PB
13637 else
13638 # We need a cross tool
5213506e
RW
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13640$as_echo "pre-installed" >&6; }
2abefe3d
PB
13641 fi
13642fi
0b0dc272 13643
5213506e
RW
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13645$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13646if test "x${build}" != "x${host}" ; then
e8b05380
PB
13647 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13648 # We already found the complete path
172e41aa 13649 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13651$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13652 else
13653 # Canadian cross, just use what we found
5213506e
RW
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13655$as_echo "pre-installed" >&6; }
e8b05380 13656 fi
2abefe3d
PB
13657else
13658 ok=yes
13659 case " ${configdirs} " in
13660 *" gcc "*) ;;
13661 *) ok=no ;;
13662 esac
1c710c3c 13663
2abefe3d
PB
13664 if test $ok = yes; then
13665 # An in-tree tool is available and we can use it
13666 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13668$as_echo "just compiled" >&6; }
e8b05380
PB
13669 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13670 # We already found the complete path
172e41aa 13671 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13673$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13674 elif test "x$target" = "x$host"; then
13675 # We can use an host tool
13676 CC_FOR_TARGET='$(CC)'
5213506e
RW
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13678$as_echo "host tool" >&6; }
2abefe3d
PB
13679 else
13680 # We need a cross tool
5213506e
RW
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13682$as_echo "pre-installed" >&6; }
2abefe3d
PB
13683 fi
13684fi
0b0dc272 13685
5213506e
RW
13686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13687$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13688if test "x${build}" != "x${host}" ; then
e8b05380
PB
13689 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13690 # We already found the complete path
172e41aa 13691 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13693$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13694 else
13695 # Canadian cross, just use what we found
5213506e
RW
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13697$as_echo "pre-installed" >&6; }
e8b05380 13698 fi
2abefe3d
PB
13699else
13700 ok=yes
13701 case " ${configdirs} " in
13702 *" gcc "*) ;;
13703 *) ok=no ;;
13704 esac
13705 case ,${enable_languages}, in
13706 *,c++,*) ;;
13707 *) ok=no ;;
13708 esac
13709 if test $ok = yes; then
13710 # An in-tree tool is available and we can use it
2077db1b 13711 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13713$as_echo "just compiled" >&6; }
e8b05380
PB
13714 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13715 # We already found the complete path
172e41aa 13716 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13718$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13719 elif test "x$target" = "x$host"; then
13720 # We can use an host tool
13721 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13723$as_echo "host tool" >&6; }
2abefe3d
PB
13724 else
13725 # We need a cross tool
5213506e
RW
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13727$as_echo "pre-installed" >&6; }
2abefe3d
PB
13728 fi
13729fi
0b0dc272 13730
5213506e
RW
13731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13732$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13733if test "x${build}" != "x${host}" ; then
e8b05380
PB
13734 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13735 # We already found the complete path
172e41aa 13736 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13738$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13739 else
13740 # Canadian cross, just use what we found
5213506e
RW
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13742$as_echo "pre-installed" >&6; }
e8b05380 13743 fi
2abefe3d
PB
13744else
13745 ok=yes
13746 case " ${configdirs} " in
13747 *" gcc "*) ;;
13748 *) ok=no ;;
13749 esac
13750 case ,${enable_languages}, in
13751 *,c++,*) ;;
13752 *) ok=no ;;
13753 esac
13754 if test $ok = yes; then
13755 # An in-tree tool is available and we can use it
2077db1b 13756 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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13758$as_echo "just compiled" >&6; }
e8b05380
PB
13759 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13760 # We already found the complete path
172e41aa 13761 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13763$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13764 elif test "x$target" = "x$host"; then
13765 # We can use an host tool
13766 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13768$as_echo "host tool" >&6; }
2abefe3d
PB
13769 else
13770 # We need a cross tool
5213506e
RW
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772$as_echo "pre-installed" >&6; }
2abefe3d
PB
13773 fi
13774fi
0b0dc272 13775
5213506e
RW
13776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13777$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13778if test "x${build}" != "x${host}" ; then
e8b05380
PB
13779 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13780 # We already found the complete path
172e41aa 13781 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13783$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13784 else
13785 # Canadian cross, just use what we found
5213506e
RW
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13787$as_echo "pre-installed" >&6; }
e8b05380 13788 fi
2abefe3d
PB
13789else
13790 ok=yes
13791 case " ${configdirs} " in
13792 *" binutils "*) ;;
13793 *) ok=no ;;
13794 esac
1c710c3c 13795
2abefe3d
PB
13796 if test $ok = yes; then
13797 # An in-tree tool is available and we can use it
13798 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13800$as_echo "just compiled" >&6; }
e8b05380
PB
13801 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13802 # We already found the complete path
172e41aa 13803 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13805$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13806 elif test "x$target" = "x$host"; then
13807 # We can use an host tool
13808 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13810$as_echo "host tool" >&6; }
2abefe3d
PB
13811 else
13812 # We need a cross tool
5213506e
RW
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13814$as_echo "pre-installed" >&6; }
2abefe3d
PB
13815 fi
13816fi
0b0dc272 13817
5213506e
RW
13818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13819$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13820if test "x${build}" != "x${host}" ; then
e8b05380
PB
13821 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13822 # We already found the complete path
172e41aa 13823 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13825$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13826 else
13827 # Canadian cross, just use what we found
5213506e
RW
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13829$as_echo "pre-installed" >&6; }
e8b05380 13830 fi
2abefe3d
PB
13831else
13832 ok=yes
13833 case " ${configdirs} " in
13834 *" gcc "*) ;;
13835 *) ok=no ;;
13836 esac
1c710c3c 13837
2abefe3d
PB
13838 if test $ok = yes; then
13839 # An in-tree tool is available and we can use it
13840 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13842$as_echo "just compiled" >&6; }
e8b05380
PB
13843 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13844 # We already found the complete path
172e41aa 13845 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13847$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13848 elif test "x$target" = "x$host"; then
13849 # We can use an host tool
13850 GCC_FOR_TARGET='$()'
5213506e
RW
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13852$as_echo "host tool" >&6; }
2abefe3d
PB
13853 else
13854 # We need a cross tool
5213506e
RW
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13856$as_echo "pre-installed" >&6; }
2abefe3d
PB
13857 fi
13858fi
0b0dc272 13859
5213506e
RW
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13861$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13862if test "x${build}" != "x${host}" ; then
e8b05380
PB
13863 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13864 # We already found the complete path
172e41aa 13865 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13867$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13868 else
13869 # Canadian cross, just use what we found
5213506e
RW
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13871$as_echo "pre-installed" >&6; }
e8b05380 13872 fi
2abefe3d
PB
13873else
13874 ok=yes
13875 case " ${configdirs} " in
13876 *" gcc "*) ;;
13877 *) ok=no ;;
13878 esac
13879 case ,${enable_languages}, in
13880 *,java,*) ;;
13881 *) ok=no ;;
13882 esac
13883 if test $ok = yes; then
13884 # An in-tree tool is available and we can use it
13885 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13887$as_echo "just compiled" >&6; }
e8b05380
PB
13888 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13889 # We already found the complete path
172e41aa 13890 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13892$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13893 elif test "x$target" = "x$host"; then
13894 # We can use an host tool
13895 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13897$as_echo "host tool" >&6; }
2abefe3d
PB
13898 else
13899 # We need a cross tool
5213506e
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901$as_echo "pre-installed" >&6; }
2abefe3d
PB
13902 fi
13903fi
0b0dc272 13904
5213506e
RW
13905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13906$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13907if test "x${build}" != "x${host}" ; then
e8b05380
PB
13908 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13909 # We already found the complete path
172e41aa 13910 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13912$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13913 else
13914 # Canadian cross, just use what we found
5213506e
RW
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916$as_echo "pre-installed" >&6; }
e8b05380 13917 fi
2abefe3d
PB
13918else
13919 ok=yes
13920 case " ${configdirs} " in
13921 *" gcc "*) ;;
13922 *) ok=no ;;
13923 esac
13924 case ,${enable_languages}, in
13925 *,fortran,*) ;;
13926 *) ok=no ;;
13927 esac
13928 if test $ok = yes; then
13929 # An in-tree tool is available and we can use it
13930 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13932$as_echo "just compiled" >&6; }
e8b05380
PB
13933 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13934 # We already found the complete path
172e41aa 13935 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13937$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13938 elif test "x$target" = "x$host"; then
13939 # We can use an host tool
13940 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13942$as_echo "host tool" >&6; }
2abefe3d
PB
13943 else
13944 # We need a cross tool
5213506e
RW
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946$as_echo "pre-installed" >&6; }
2abefe3d
PB
13947 fi
13948fi
0b0dc272 13949
632e2a07
ILT
13950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13951$as_echo_n "checking where to find the target gccgo... " >&6; }
13952if test "x${build}" != "x${host}" ; then
13953 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13954 # We already found the complete path
13955 ac_dir=`dirname $GOC_FOR_TARGET`
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13957$as_echo "pre-installed in $ac_dir" >&6; }
13958 else
13959 # Canadian cross, just use what we found
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961$as_echo "pre-installed" >&6; }
13962 fi
13963else
13964 ok=yes
13965 case " ${configdirs} " in
13966 *" gcc "*) ;;
13967 *) ok=no ;;
13968 esac
13969 case ,${enable_languages}, in
13970 *,go,*) ;;
13971 *) ok=no ;;
13972 esac
13973 if test $ok = yes; then
13974 # An in-tree tool is available and we can use it
13975 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13977$as_echo "just compiled" >&6; }
13978 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13979 # We already found the complete path
13980 ac_dir=`dirname $GOC_FOR_TARGET`
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13982$as_echo "pre-installed in $ac_dir" >&6; }
13983 elif test "x$target" = "x$host"; then
13984 # We can use an host tool
13985 GOC_FOR_TARGET='$(GOC)'
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13987$as_echo "host tool" >&6; }
13988 else
13989 # We need a cross tool
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991$as_echo "pre-installed" >&6; }
13992 fi
13993fi
13994
5213506e
RW
13995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13996$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13997if test "x${build}" != "x${host}" ; then
e8b05380
PB
13998 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13999 # We already found the complete path
172e41aa 14000 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14002$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14003 else
14004 # Canadian cross, just use what we found
5213506e
RW
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006$as_echo "pre-installed" >&6; }
e8b05380 14007 fi
2abefe3d
PB
14008else
14009 ok=yes
14010 case " ${configdirs} " in
14011 *" ld "*) ;;
14012 *) ok=no ;;
14013 esac
1c710c3c 14014
2abefe3d
PB
14015 if test $ok = yes; then
14016 # An in-tree tool is available and we can use it
14017 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14019$as_echo "just compiled" >&6; }
e8b05380
PB
14020 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14021 # We already found the complete path
172e41aa 14022 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14024$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14025 elif test "x$target" = "x$host"; then
14026 # We can use an host tool
14027 LD_FOR_TARGET='$(LD)'
5213506e
RW
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14029$as_echo "host tool" >&6; }
2abefe3d
PB
14030 else
14031 # We need a cross tool
5213506e
RW
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14033$as_echo "pre-installed" >&6; }
2abefe3d
PB
14034 fi
14035fi
0b0dc272 14036
5213506e
RW
14037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14038$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14039if test "x${build}" != "x${host}" ; then
e8b05380
PB
14040 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14041 # We already found the complete path
172e41aa 14042 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14044$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14045 else
14046 # Canadian cross, just use what we found
5213506e
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048$as_echo "pre-installed" >&6; }
e8b05380 14049 fi
2abefe3d 14050else
e8b05380
PB
14051 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14052 # We already found the complete path
172e41aa 14053 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14055$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14056 elif test "x$target" = "x$host"; then
2abefe3d
PB
14057 # We can use an host tool
14058 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14060$as_echo "host tool" >&6; }
2abefe3d
PB
14061 else
14062 # We need a cross tool
5213506e
RW
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14064$as_echo "pre-installed" >&6; }
2abefe3d
PB
14065 fi
14066fi
0b0dc272 14067
5213506e
RW
14068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14069$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14070if test "x${build}" != "x${host}" ; then
e8b05380
PB
14071 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14072 # We already found the complete path
172e41aa 14073 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14075$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14076 else
14077 # Canadian cross, just use what we found
5213506e
RW
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079$as_echo "pre-installed" >&6; }
e8b05380 14080 fi
2abefe3d
PB
14081else
14082 ok=yes
14083 case " ${configdirs} " in
14084 *" binutils "*) ;;
14085 *) ok=no ;;
14086 esac
1c710c3c 14087
2abefe3d
PB
14088 if test $ok = yes; then
14089 # An in-tree tool is available and we can use it
14090 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14092$as_echo "just compiled" >&6; }
e8b05380
PB
14093 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14094 # We already found the complete path
172e41aa 14095 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14097$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14098 elif test "x$target" = "x$host"; then
14099 # We can use an host tool
14100 NM_FOR_TARGET='$(NM)'
5213506e
RW
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14102$as_echo "host tool" >&6; }
2abefe3d
PB
14103 else
14104 # We need a cross tool
5213506e
RW
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14106$as_echo "pre-installed" >&6; }
2abefe3d
PB
14107 fi
14108fi
0b0dc272 14109
5213506e
RW
14110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14111$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14112if test "x${build}" != "x${host}" ; then
e8b05380
PB
14113 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14114 # We already found the complete path
172e41aa 14115 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14117$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14118 else
14119 # Canadian cross, just use what we found
5213506e
RW
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14121$as_echo "pre-installed" >&6; }
e8b05380 14122 fi
2abefe3d
PB
14123else
14124 ok=yes
14125 case " ${configdirs} " in
14126 *" binutils "*) ;;
14127 *) ok=no ;;
14128 esac
1c710c3c 14129
2abefe3d
PB
14130 if test $ok = yes; then
14131 # An in-tree tool is available and we can use it
14132 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14134$as_echo "just compiled" >&6; }
e8b05380
PB
14135 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14136 # We already found the complete path
172e41aa 14137 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14139$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14140 elif test "x$target" = "x$host"; then
14141 # We can use an host tool
14142 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14144$as_echo "host tool" >&6; }
2abefe3d
PB
14145 else
14146 # We need a cross tool
5213506e
RW
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14148$as_echo "pre-installed" >&6; }
2abefe3d
PB
14149 fi
14150fi
0b0dc272 14151
5213506e
RW
14152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14153$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14154if test "x${build}" != "x${host}" ; then
e8b05380
PB
14155 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14156 # We already found the complete path
172e41aa 14157 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14159$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14160 else
14161 # Canadian cross, just use what we found
5213506e
RW
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163$as_echo "pre-installed" >&6; }
e8b05380 14164 fi
2abefe3d
PB
14165else
14166 ok=yes
14167 case " ${configdirs} " in
14168 *" binutils "*) ;;
14169 *) ok=no ;;
14170 esac
1c710c3c 14171
2abefe3d
PB
14172 if test $ok = yes; then
14173 # An in-tree tool is available and we can use it
14174 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14176$as_echo "just compiled" >&6; }
e8b05380
PB
14177 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14178 # We already found the complete path
172e41aa 14179 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14181$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14182 elif test "x$target" = "x$host"; then
14183 # We can use an host tool
14184 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14186$as_echo "host tool" >&6; }
2abefe3d
PB
14187 else
14188 # We need a cross tool
5213506e
RW
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14190$as_echo "pre-installed" >&6; }
2abefe3d
PB
14191 fi
14192fi
0b0dc272 14193
e7a82751
RM
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14195$as_echo_n "checking where to find the target readelf... " >&6; }
14196if test "x${build}" != "x${host}" ; then
14197 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14198 # We already found the complete path
14199 ac_dir=`dirname $READELF_FOR_TARGET`
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14201$as_echo "pre-installed in $ac_dir" >&6; }
14202 else
14203 # Canadian cross, just use what we found
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205$as_echo "pre-installed" >&6; }
14206 fi
14207else
14208 ok=yes
14209 case " ${configdirs} " in
14210 *" binutils "*) ;;
14211 *) ok=no ;;
14212 esac
14213
14214 if test $ok = yes; then
14215 # An in-tree tool is available and we can use it
14216 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14218$as_echo "just compiled" >&6; }
14219 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14220 # We already found the complete path
14221 ac_dir=`dirname $READELF_FOR_TARGET`
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14223$as_echo "pre-installed in $ac_dir" >&6; }
14224 elif test "x$target" = "x$host"; then
14225 # We can use an host tool
14226 READELF_FOR_TARGET='$(READELF)'
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14228$as_echo "host tool" >&6; }
14229 else
14230 # We need a cross tool
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14232$as_echo "pre-installed" >&6; }
14233 fi
14234fi
14235
5213506e
RW
14236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14237$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14238if test "x${build}" != "x${host}" ; then
e8b05380
PB
14239 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14240 # We already found the complete path
172e41aa 14241 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14243$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14244 else
14245 # Canadian cross, just use what we found
5213506e
RW
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247$as_echo "pre-installed" >&6; }
e8b05380 14248 fi
2abefe3d
PB
14249else
14250 ok=yes
14251 case " ${configdirs} " in
14252 *" binutils "*) ;;
14253 *) ok=no ;;
14254 esac
1c710c3c 14255
2abefe3d
PB
14256 if test $ok = yes; then
14257 # An in-tree tool is available and we can use it
455c8f48 14258 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14260$as_echo "just compiled" >&6; }
e8b05380
PB
14261 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14262 # We already found the complete path
172e41aa 14263 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14265$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14266 elif test "x$target" = "x$host"; then
14267 # We can use an host tool
14268 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14270$as_echo "host tool" >&6; }
2abefe3d
PB
14271 else
14272 # We need a cross tool
5213506e
RW
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14274$as_echo "pre-installed" >&6; }
2abefe3d
PB
14275 fi
14276fi
0b0dc272 14277
5213506e
RW
14278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14279$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14280if test "x${build}" != "x${host}" ; then
e8b05380
PB
14281 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14282 # We already found the complete path
172e41aa 14283 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14285$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14286 else
14287 # Canadian cross, just use what we found
5213506e
RW
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289$as_echo "pre-installed" >&6; }
e8b05380 14290 fi
2abefe3d
PB
14291else
14292 ok=yes
14293 case " ${configdirs} " in
14294 *" binutils "*) ;;
14295 *) ok=no ;;
14296 esac
1c710c3c 14297
2abefe3d
PB
14298 if test $ok = yes; then
14299 # An in-tree tool is available and we can use it
14300 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14302$as_echo "just compiled" >&6; }
e8b05380
PB
14303 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14304 # We already found the complete path
172e41aa 14305 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14307$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14308 elif test "x$target" = "x$host"; then
14309 # We can use an host tool
14310 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14312$as_echo "host tool" >&6; }
2abefe3d
PB
14313 else
14314 # We need a cross tool
5213506e
RW
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14316$as_echo "pre-installed" >&6; }
2abefe3d 14317 fi
671aa708 14318fi
be912515 14319
5213506e
RW
14320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14321$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14322if test "x${build}" != "x${host}" ; then
14323 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14324 # We already found the complete path
14325 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14327$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14328 else
14329 # Canadian cross, just use what we found
5213506e
RW
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331$as_echo "pre-installed" >&6; }
901119ae
KT
14332 fi
14333else
14334 ok=yes
14335 case " ${configdirs} " in
14336 *" binutils "*) ;;
14337 *) ok=no ;;
14338 esac
14339
14340 if test $ok = yes; then
14341 # An in-tree tool is available and we can use it
14342 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14344$as_echo "just compiled" >&6; }
901119ae
KT
14345 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14346 # We already found the complete path
14347 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14349$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14350 elif test "x$target" = "x$host"; then
14351 # We can use an host tool
14352 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14354$as_echo "host tool" >&6; }
901119ae
KT
14355 else
14356 # We need a cross tool
5213506e
RW
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14358$as_echo "pre-installed" >&6; }
901119ae
KT
14359 fi
14360fi
14361
be912515
NN
14362
14363
2abefe3d 14364
0b0dc272 14365
671aa708
NN
14366# Certain tools may need extra flags.
14367AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14368RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14369NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14370
2abefe3d
PB
14371# When building target libraries, except in a Canadian cross, we use
14372# the same toolchain as the compiler we just built.
14373COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14374COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14375COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14376if test $host = $build; then
14377 case " $configdirs " in
14378 *" gcc "*)
14379 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14380 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14381 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14382 ;;
14383 esac
14384fi
14385
14386
14387
14388
14389
5213506e
RW
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14391$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14392# Check whether --enable-maintainer-mode was given.
14393if test "${enable_maintainer_mode+set}" = set; then :
14394 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14395else
14396 USE_MAINTAINER_MODE=no
5213506e
RW
14397fi
14398
14399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14400$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14401
14402
14403if test "$USE_MAINTAINER_MODE" = yes; then
14404 MAINTAINER_MODE_TRUE=
14405 MAINTAINER_MODE_FALSE='#'
14406else
14407 MAINTAINER_MODE_TRUE='#'
14408 MAINTAINER_MODE_FALSE=
1c710c3c 14409fi
ee03dc5e
AO
14410MAINT=$MAINTAINER_MODE_TRUE
14411
2805b53a
NN
14412# ---------------------
14413# GCC bootstrap support
14414# ---------------------
14415
14416# Stage specific cflags for build.
14417stage1_cflags="-g"
14418case $build in
14419 vax-*-*)
14420 case ${GCC} in
14421 yes) stage1_cflags="-g -Wa,-J" ;;
14422 *) stage1_cflags="-g -J" ;;
14423 esac ;;
2805b53a
NN
14424esac
14425
0b50988a 14426
2805b53a 14427
8efea775 14428# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14429# Check whether --enable-stage1-checking was given.
14430if test "${enable_stage1_checking+set}" = set; then :
14431 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14432else
e643dc23 14433 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14434 stage1_checking=--enable-checking=yes,types
8efea775 14435else
e643dc23 14436 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14437fi
5213506e 14438fi
8efea775
PB
14439
14440
2aeb72e9 14441
5213506e
RW
14442# Enable -Werror in bootstrap stage2 and later.
14443# Check whether --enable-werror was given.
14444if test "${enable_werror+set}" = set; then :
14445 enableval=$enable_werror;
2805b53a 14446else
416cfb5e 14447 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14448 enable_werror=yes
88fceb68
PB
14449else
14450 enable_werror=no
14451fi
5213506e
RW
14452fi
14453
09a9c095
NN
14454case ${enable_werror} in
14455 yes) stage2_werror_flag="--enable-werror-always" ;;
14456 *) stage2_werror_flag="" ;;
2805b53a
NN
14457esac
14458
14459
459260ec
DM
14460# Enable --enable-host-shared.
14461# Check whether --enable-host-shared was given.
14462if test "${enable_host_shared+set}" = set; then :
14463 enableval=$enable_host_shared; host_shared=$enableval
14464else
14465 host_shared=no
14466fi
14467
14468
14469
f2689b09
SE
14470# Specify what files to not compare during bootstrap.
14471
14472compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14473case "$target" in
14474 hppa*64*-*-hpux*) ;;
14475 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14476 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14477esac
14478
14479
5213506e
RW
14480ac_config_files="$ac_config_files Makefile"
14481
1c710c3c 14482cat >confcache <<\_ACEOF
671aa708
NN
14483# This file is a shell script that caches the results of configure
14484# tests run on this system so they can be shared between configure
1c710c3c
DJ
14485# scripts and configure runs, see configure's option --config-cache.
14486# It is not useful on other systems. If it contains results you don't
14487# want to keep, you may remove or edit it.
671aa708 14488#
1c710c3c
DJ
14489# config.status only pays attention to the cache file if you give it
14490# the --recheck option to rerun configure.
671aa708 14491#
1c710c3c
DJ
14492# `ac_cv_env_foo' variables (set or unset) will be overridden when
14493# loading this file, other *unset* `ac_cv_foo' will be assigned the
14494# following values.
14495
14496_ACEOF
14497
671aa708
NN
14498# The following way of writing the cache mishandles newlines in values,
14499# but we know of no workaround that is simple, portable, and efficient.
5213506e 14500# So, we kill variables containing newlines.
671aa708
NN
14501# Ultrix sh set writes to stderr and can't be redirected directly,
14502# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14503(
14504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14505 eval ac_val=\$$ac_var
14506 case $ac_val in #(
14507 *${as_nl}*)
14508 case $ac_var in #(
14509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14510$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14511 esac
14512 case $ac_var in #(
14513 _ | IFS | as_nl) ;; #(
14514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14515 *) { eval $ac_var=; unset $ac_var;} ;;
14516 esac ;;
14517 esac
14518 done
14519
1c710c3c 14520 (set) 2>&1 |
5213506e
RW
14521 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14522 *${as_nl}ac_space=\ *)
14523 # `set' does not quote correctly, so add quotes: double-quote
14524 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14525 sed -n \
14526 "s/'/'\\\\''/g;
14527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14528 ;; #(
1c710c3c
DJ
14529 *)
14530 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14532 ;;
5213506e
RW
14533 esac |
14534 sort
14535) |
1c710c3c 14536 sed '
5213506e 14537 /^ac_cv_env_/b end
1c710c3c 14538 t clear
5213506e 14539 :clear
1c710c3c
DJ
14540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14541 t end
5213506e
RW
14542 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14543 :end' >>confcache
14544if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14545 if test -w "$cache_file"; then
14546 test "x$cache_file" != "x/dev/null" &&
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14548$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14549 cat confcache >$cache_file
671aa708 14550 else
5213506e
RW
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14552$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14553 fi
4977bab6 14554fi
671aa708 14555rm -f confcache
79c06341 14556
671aa708
NN
14557test "x$prefix" = xNONE && prefix=$ac_default_prefix
14558# Let make expand exec_prefix.
14559test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14560
671aa708
NN
14561# Transform confdefs.h into DEFS.
14562# Protect against shell expansion while executing Makefile rules.
14563# Protect against Makefile macro expansion.
1c710c3c
DJ
14564#
14565# If the first sed substitution is executed (which looks for macros that
5213506e 14566# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14567# look for a macro that doesn't take arguments.
5213506e
RW
14568ac_script='
14569:mline
14570/\\$/{
14571 N
14572 s,\\\n,,
14573 b mline
14574}
1c710c3c 14575t clear
5213506e
RW
14576:clear
14577s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14578t quote
5213506e 14579s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14580t quote
5213506e
RW
14581b any
14582:quote
14583s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14584s/\[/\\&/g
14585s/\]/\\&/g
14586s/\$/$$/g
14587H
14588:any
14589${
14590 g
14591 s/^\n//
14592 s/\n/ /g
14593 p
14594}
14595'
14596DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14597
14598
14599ac_libobjs=
14600ac_ltlibobjs=
14601for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14602 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14604 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14606 # will be set to the directory where LIBOBJS objects are built.
14607 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14608 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14609done
14610LIBOBJS=$ac_libobjs
fb0103e5 14611
1c710c3c 14612LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14613
af71363e 14614
1c710c3c
DJ
14615
14616: ${CONFIG_STATUS=./config.status}
5213506e 14617ac_write_fail=0
1c710c3c
DJ
14618ac_clean_files_save=$ac_clean_files
14619ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14620{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14621$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14622as_write_fail=0
14623cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14624#! $SHELL
14625# Generated by $as_me.
671aa708 14626# Run this file to recreate the current configuration.
671aa708 14627# Compiler output produced by configure, useful for debugging
1c710c3c 14628# configure, is in config.log if it exists.
0b0dc272 14629
1c710c3c
DJ
14630debug=false
14631ac_cs_recheck=false
14632ac_cs_silent=false
1c710c3c 14633
5213506e
RW
14634SHELL=\${CONFIG_SHELL-$SHELL}
14635export SHELL
14636_ASEOF
14637cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14638## -------------------- ##
14639## M4sh Initialization. ##
14640## -------------------- ##
14641
14642# Be more Bourne compatible
14643DUALCASE=1; export DUALCASE # for MKS sh
14644if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14645 emulate sh
14646 NULLCMD=:
5213506e 14647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14648 # is contrary to our usage. Disable this feature.
14649 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14650 setopt NO_GLOB_SUBST
14651else
14652 case `(set -o) 2>/dev/null` in #(
14653 *posix*) :
14654 set -o posix ;; #(
14655 *) :
14656 ;;
14657esac
1c710c3c 14658fi
1c710c3c 14659
5213506e
RW
14660
14661as_nl='
14662'
14663export as_nl
14664# Printing a long string crashes Solaris 7 /usr/bin/printf.
14665as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14666as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14667as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14668# Prefer a ksh shell builtin over an external printf program on Solaris,
14669# but without wasting forks for bash or zsh.
14670if test -z "$BASH_VERSION$ZSH_VERSION" \
14671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14672 as_echo='print -r --'
14673 as_echo_n='print -rn --'
14674elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14675 as_echo='printf %s\n'
14676 as_echo_n='printf %s'
14677else
14678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14680 as_echo_n='/usr/ucb/echo -n'
14681 else
14682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14683 as_echo_n_body='eval
14684 arg=$1;
14685 case $arg in #(
14686 *"$as_nl"*)
14687 expr "X$arg" : "X\\(.*\\)$as_nl";
14688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14689 esac;
14690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14691 '
14692 export as_echo_n_body
14693 as_echo_n='sh -c $as_echo_n_body as_echo'
14694 fi
14695 export as_echo_body
14696 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14697fi
14698
5213506e
RW
14699# The user is always right.
14700if test "${PATH_SEPARATOR+set}" != set; then
14701 PATH_SEPARATOR=:
14702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14704 PATH_SEPARATOR=';'
14705 }
14706fi
14707
14708
14709# IFS
14710# We need space, tab and new line, in precisely that order. Quoting is
14711# there to prevent editors from complaining about space-tab.
14712# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14713# splitting by setting IFS to empty value.)
14714IFS=" "" $as_nl"
14715
14716# Find who we are. Look in the path if we contain no directory separator.
14717case $0 in #((
14718 *[\\/]* ) as_myself=$0 ;;
14719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14720for as_dir in $PATH
14721do
14722 IFS=$as_save_IFS
14723 test -z "$as_dir" && as_dir=.
14724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14725 done
14726IFS=$as_save_IFS
14727
14728 ;;
14729esac
14730# We did not find ourselves, most probably we were run as `sh COMMAND'
14731# in which case we are not to be found in the path.
14732if test "x$as_myself" = x; then
14733 as_myself=$0
14734fi
14735if test ! -f "$as_myself"; then
14736 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14737 exit 1
14738fi
1c710c3c 14739
5213506e
RW
14740# Unset variables that we do not need and which cause bugs (e.g. in
14741# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14742# suppresses any "Segmentation fault" message there. '((' could
14743# trigger a bug in pdksh 5.2.14.
14744for as_var in BASH_ENV ENV MAIL MAILPATH
14745do eval test x\${$as_var+set} = xset \
14746 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14747done
1c710c3c
DJ
14748PS1='$ '
14749PS2='> '
14750PS4='+ '
14751
14752# NLS nuisances.
5213506e
RW
14753LC_ALL=C
14754export LC_ALL
14755LANGUAGE=C
14756export LANGUAGE
14757
14758# CDPATH.
14759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14760
14761
14762# as_fn_error ERROR [LINENO LOG_FD]
14763# ---------------------------------
14764# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14765# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14766# script with status $?, using 1 if that was 0.
14767as_fn_error ()
14768{
14769 as_status=$?; test $as_status -eq 0 && as_status=1
14770 if test "$3"; then
14771 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14772 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14773 fi
5213506e
RW
14774 $as_echo "$as_me: error: $1" >&2
14775 as_fn_exit $as_status
14776} # as_fn_error
14777
14778
14779# as_fn_set_status STATUS
14780# -----------------------
14781# Set $? to STATUS, without forking.
14782as_fn_set_status ()
14783{
14784 return $1
14785} # as_fn_set_status
14786
14787# as_fn_exit STATUS
14788# -----------------
14789# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14790as_fn_exit ()
14791{
14792 set +e
14793 as_fn_set_status $1
14794 exit $1
14795} # as_fn_exit
14796
14797# as_fn_unset VAR
14798# ---------------
14799# Portably unset VAR.
14800as_fn_unset ()
14801{
14802 { eval $1=; unset $1;}
14803}
14804as_unset=as_fn_unset
14805# as_fn_append VAR VALUE
14806# ----------------------
14807# Append the text in VALUE to the end of the definition contained in VAR. Take
14808# advantage of any shell optimizations that allow amortized linear growth over
14809# repeated appends, instead of the typical quadratic growth present in naive
14810# implementations.
14811if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14812 eval 'as_fn_append ()
14813 {
14814 eval $1+=\$2
14815 }'
14816else
14817 as_fn_append ()
14818 {
14819 eval $1=\$$1\$2
14820 }
14821fi # as_fn_append
14822
14823# as_fn_arith ARG...
14824# ------------------
14825# Perform arithmetic evaluation on the ARGs, and store the result in the
14826# global $as_val. Take advantage of shells that can avoid forks. The arguments
14827# must be portable across $(()) and expr.
14828if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14829 eval 'as_fn_arith ()
14830 {
14831 as_val=$(( $* ))
14832 }'
14833else
14834 as_fn_arith ()
14835 {
14836 as_val=`expr "$@" || test $? -eq 1`
14837 }
14838fi # as_fn_arith
14839
1c710c3c 14840
5213506e
RW
14841if expr a : '\(a\)' >/dev/null 2>&1 &&
14842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14843 as_expr=expr
14844else
14845 as_expr=false
14846fi
14847
5213506e 14848if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14849 as_basename=basename
14850else
14851 as_basename=false
14852fi
14853
5213506e
RW
14854if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14855 as_dirname=dirname
14856else
14857 as_dirname=false
14858fi
1c710c3c 14859
5213506e 14860as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14861$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14862 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14864$as_echo X/"$0" |
14865 sed '/^.*\/\([^/][^/]*\)\/*$/{
14866 s//\1/
14867 q
14868 }
14869 /^X\/\(\/\/\)$/{
14870 s//\1/
14871 q
14872 }
14873 /^X\/\(\/\).*/{
14874 s//\1/
14875 q
14876 }
14877 s/.*/./; q'`
2aeb72e9 14878
2aeb72e9
DD
14879# Avoid depending upon Character Ranges.
14880as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14881as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14882as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14883as_cr_digits='0123456789'
14884as_cr_alnum=$as_cr_Letters$as_cr_digits
14885
5213506e
RW
14886ECHO_C= ECHO_N= ECHO_T=
14887case `echo -n x` in #(((((
14888-n*)
14889 case `echo 'xy\c'` in
14890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14891 xy) ECHO_C='\c';;
14892 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14893 ECHO_T=' ';;
14894 esac;;
14895*)
14896 ECHO_N='-n';;
1c710c3c
DJ
14897esac
14898
5213506e
RW
14899rm -f conf$$ conf$$.exe conf$$.file
14900if test -d conf$$.dir; then
14901 rm -f conf$$.dir/conf$$.file
1c710c3c 14902else
5213506e
RW
14903 rm -f conf$$.dir
14904 mkdir conf$$.dir 2>/dev/null
1c710c3c 14905fi
5213506e
RW
14906if (echo >conf$$.file) 2>/dev/null; then
14907 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14908 as_ln_s='ln -s'
5213506e
RW
14909 # ... but there are two gotchas:
14910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14912 # In both cases, we have to default to `cp -p'.
14913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14914 as_ln_s='cp -p'
14915 elif ln conf$$.file conf$$ 2>/dev/null; then
14916 as_ln_s=ln
14917 else
14918 as_ln_s='cp -p'
2aeb72e9 14919 fi
1c710c3c
DJ
14920else
14921 as_ln_s='cp -p'
14922fi
5213506e
RW
14923rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14924rmdir conf$$.dir 2>/dev/null
14925
14926
14927# as_fn_mkdir_p
14928# -------------
14929# Create "$as_dir" as a directory, including parents if necessary.
14930as_fn_mkdir_p ()
14931{
14932
14933 case $as_dir in #(
14934 -*) as_dir=./$as_dir;;
14935 esac
14936 test -d "$as_dir" || eval $as_mkdir_p || {
14937 as_dirs=
14938 while :; do
14939 case $as_dir in #(
14940 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14941 *) as_qdir=$as_dir;;
14942 esac
14943 as_dirs="'$as_qdir' $as_dirs"
14944 as_dir=`$as_dirname -- "$as_dir" ||
14945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14946 X"$as_dir" : 'X\(//\)[^/]' \| \
14947 X"$as_dir" : 'X\(//\)$' \| \
14948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14949$as_echo X"$as_dir" |
14950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14951 s//\1/
14952 q
14953 }
14954 /^X\(\/\/\)[^/].*/{
14955 s//\1/
14956 q
14957 }
14958 /^X\(\/\/\)$/{
14959 s//\1/
14960 q
14961 }
14962 /^X\(\/\).*/{
14963 s//\1/
14964 q
14965 }
14966 s/.*/./; q'`
14967 test -d "$as_dir" && break
14968 done
14969 test -z "$as_dirs" || eval "mkdir $as_dirs"
14970 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14971
1c710c3c 14972
5213506e 14973} # as_fn_mkdir_p
1c710c3c 14974if mkdir -p . 2>/dev/null; then
5213506e 14975 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14976else
14977 test -d ./-p && rmdir ./-p
14978 as_mkdir_p=false
14979fi
14980
5213506e
RW
14981if test -x / >/dev/null 2>&1; then
14982 as_test_x='test -x'
14983else
14984 if ls -dL / >/dev/null 2>&1; then
14985 as_ls_L_option=L
14986 else
14987 as_ls_L_option=
14988 fi
14989 as_test_x='
14990 eval sh -c '\''
14991 if test -d "$1"; then
14992 test -d "$1/.";
14993 else
14994 case $1 in #(
14995 -*)set "./$1";;
14996 esac;
14997 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14998 ???[sx]*):;;*)false;;esac;fi
14999 '\'' sh
15000 '
15001fi
15002as_executable_p=$as_test_x
1c710c3c
DJ
15003
15004# Sed expression to map a string onto a valid CPP name.
15005as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15006
15007# Sed expression to map a string onto a valid variable name.
15008as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15009
15010
1c710c3c 15011exec 6>&1
5213506e
RW
15012## ----------------------------------- ##
15013## Main body of $CONFIG_STATUS script. ##
15014## ----------------------------------- ##
15015_ASEOF
15016test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15017
15018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15019# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15020# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15021# values after options handling.
15022ac_log="
1c710c3c 15023This file was extended by $as_me, which was
5213506e 15024generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15025
15026 CONFIG_FILES = $CONFIG_FILES
15027 CONFIG_HEADERS = $CONFIG_HEADERS
15028 CONFIG_LINKS = $CONFIG_LINKS
15029 CONFIG_COMMANDS = $CONFIG_COMMANDS
15030 $ $0 $@
15031
5213506e
RW
15032on `(hostname || uname -n) 2>/dev/null | sed 1q`
15033"
15034
1c710c3c
DJ
15035_ACEOF
15036
5213506e
RW
15037case $ac_config_files in *"
15038"*) set x $ac_config_files; shift; ac_config_files=$*;;
15039esac
1c710c3c 15040
2aeb72e9 15041
2aeb72e9 15042
5213506e
RW
15043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15044# Files that config.status was made for.
15045config_files="$ac_config_files"
1c710c3c 15046
5213506e 15047_ACEOF
2aeb72e9 15048
5213506e 15049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15050ac_cs_usage="\
5213506e
RW
15051\`$as_me' instantiates files and other configuration actions
15052from templates according to the current configuration. Unless the files
15053and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15054
5213506e 15055Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15056
15057 -h, --help print this help, then exit
5213506e
RW
15058 -V, --version print version number and configuration settings, then exit
15059 -q, --quiet, --silent
15060 do not print progress messages
1c710c3c
DJ
15061 -d, --debug don't remove temporary files
15062 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15063 --file=FILE[:TEMPLATE]
15064 instantiate the configuration file FILE
1c710c3c
DJ
15065
15066Configuration files:
15067$config_files
15068
5213506e 15069Report bugs to the package provider."
2aeb72e9 15070
5213506e
RW
15071_ACEOF
15072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15073ac_cs_version="\\
15074config.status
5213506e
RW
15075configured by $0, generated by GNU Autoconf 2.64,
15076 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15077
5213506e 15078Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15079This config.status script is free software; the Free Software Foundation
15080gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15081
15082ac_pwd='$ac_pwd'
15083srcdir='$srcdir'
15084INSTALL='$INSTALL'
87264276 15085AWK='$AWK'
5213506e 15086test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15087_ACEOF
15088
5213506e
RW
15089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15090# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15091ac_need_defaults=:
15092while test $# != 0
a4b9e93e 15093do
1c710c3c
DJ
15094 case $1 in
15095 --*=*)
5213506e
RW
15096 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15097 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15098 ac_shift=:
15099 ;;
5213506e 15100 *)
1c710c3c
DJ
15101 ac_option=$1
15102 ac_optarg=$2
15103 ac_shift=shift
15104 ;;
1c710c3c
DJ
15105 esac
15106
15107 case $ac_option in
15108 # Handling of the options.
671aa708 15109 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15110 ac_cs_recheck=: ;;
5213506e
RW
15111 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15112 $as_echo "$ac_cs_version"; exit ;;
15113 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15114 debug=: ;;
15115 --file | --fil | --fi | --f )
15116 $ac_shift
5213506e
RW
15117 case $ac_optarg in
15118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15119 esac
15120 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15121 ac_need_defaults=false;;
5213506e
RW
15122 --he | --h | --help | --hel | -h )
15123 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15125 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15126 ac_cs_silent=: ;;
15127
15128 # This is an error.
5213506e
RW
15129 -*) as_fn_error "unrecognized option: \`$1'
15130Try \`$0 --help' for more information." ;;
1c710c3c 15131
5213506e
RW
15132 *) as_fn_append ac_config_targets " $1"
15133 ac_need_defaults=false ;;
1c710c3c 15134
0b0dc272 15135 esac
1c710c3c 15136 shift
0b0dc272
AM
15137done
15138
1c710c3c 15139ac_configure_extra_args=
0b0dc272 15140
1c710c3c
DJ
15141if $ac_cs_silent; then
15142 exec 6>/dev/null
15143 ac_configure_extra_args="$ac_configure_extra_args --silent"
15144fi
0b0dc272 15145
1c710c3c 15146_ACEOF
5213506e 15147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15148if \$ac_cs_recheck; then
5213506e
RW
15149 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15150 shift
15151 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15152 CONFIG_SHELL='$SHELL'
15153 export CONFIG_SHELL
15154 exec "\$@"
1c710c3c
DJ
15155fi
15156
15157_ACEOF
5213506e
RW
15158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15159exec 5>>config.log
15160{
15161 echo
15162 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15163## Running $as_me. ##
15164_ASBOX
15165 $as_echo "$ac_log"
15166} >&5
1c710c3c 15167
5213506e
RW
15168_ACEOF
15169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15170#
15171# INIT-COMMANDS
15172#
15173extrasub_build="$extrasub_build"
15174 extrasub_host="$extrasub_host"
15175 extrasub_target="$extrasub_target"
15176
5213506e 15177_ACEOF
1c710c3c 15178
5213506e 15179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15180
5213506e 15181# Handling of arguments.
1c710c3c
DJ
15182for ac_config_target in $ac_config_targets
15183do
5213506e
RW
15184 case $ac_config_target in
15185 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15186
15187 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15188 esac
15189done
15190
5213506e 15191
1c710c3c
DJ
15192# If the user did not use the arguments to specify the items to instantiate,
15193# then the envvar interface is used. Set only those that are not.
15194# We use the long form for the default assignment because of an extremely
15195# bizarre bug on SunOS 4.1.3.
15196if $ac_need_defaults; then
15197 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15198fi
15199
15200# Have a temporary directory for convenience. Make it in the build tree
5213506e 15201# simply because there is no reason against having it here, and in addition,
1c710c3c 15202# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15203# Hook for its removal unless debugging.
15204# Note that there is a small window in which the directory will not be cleaned:
15205# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15206$debug ||
15207{
5213506e
RW
15208 tmp=
15209 trap 'exit_status=$?
15210 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15211' 0
15212 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15213}
1c710c3c
DJ
15214# Create a (secure) tmp directory for tmp files.
15215
15216{
5213506e 15217 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15218 test -n "$tmp" && test -d "$tmp"
15219} ||
15220{
5213506e
RW
15221 tmp=./conf$$-$RANDOM
15222 (umask 077 && mkdir "$tmp")
15223} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15224
15225# Set up the scripts for CONFIG_FILES section.
15226# No need to generate them if there are no CONFIG_FILES.
15227# This happens for instance with `./config.status config.h'.
15228if test -n "$CONFIG_FILES"; then
15229
15230if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15231 ac_cs_awk_getline=:
15232 ac_cs_awk_pipe_init=
15233 ac_cs_awk_read_file='
15234 while ((getline aline < (F[key])) > 0)
15235 print(aline)
15236 close(F[key])'
15237 ac_cs_awk_pipe_fini=
15238else
15239 ac_cs_awk_getline=false
15240 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15241 ac_cs_awk_read_file='
15242 print "|#_!!_#|"
15243 print "cat " F[key] " &&"
15244 '$ac_cs_awk_pipe_init
15245 # The final `:' finishes the AND list.
15246 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15247fi
15248ac_cr=`echo X | tr X '\015'`
15249# On cygwin, bash can eat \r inside `` if the user requested igncr.
15250# But we know of no other shell where ac_cr would be empty at this
15251# point, so we can use a bashism as a fallback.
15252if test "x$ac_cr" = x; then
15253 eval ac_cr=\$\'\\r\'
15254fi
15255ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15256if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15257 ac_cs_awk_cr='\r'
15258else
15259 ac_cs_awk_cr=$ac_cr
15260fi
15261
15262echo 'BEGIN {' >"$tmp/subs1.awk" &&
15263_ACEOF
15264
15265# Create commands to substitute file output variables.
1c710c3c 15266{
5213506e
RW
15267 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15268 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15269 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15270 echo "_ACAWK" &&
15271 echo "_ACEOF"
15272} >conf$$files.sh &&
15273. ./conf$$files.sh ||
15274 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15275rm -f conf$$files.sh
1c710c3c 15276
5213506e
RW
15277{
15278 echo "cat >conf$$subs.awk <<_ACEOF" &&
15279 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15280 echo "_ACEOF"
15281} >conf$$subs.sh ||
15282 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15283ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15284ac_delim='%!_!# '
15285for ac_last_try in false false false false false :; do
15286 . ./conf$$subs.sh ||
15287 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15288
15289 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15290 if test $ac_delim_n = $ac_delim_num; then
15291 break
15292 elif $ac_last_try; then
15293 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15294 else
15295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15296 fi
15297done
15298rm -f conf$$subs.sh
15299
15300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15301cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15302_ACEOF
5213506e
RW
15303sed -n '
15304h
15305s/^/S["/; s/!.*/"]=/
15306p
15307g
15308s/^[^!]*!//
15309:repl
15310t repl
15311s/'"$ac_delim"'$//
15312t delim
15313:nl
15314h
15315s/\(.\{148\}\).*/\1/
15316t more1
15317s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15318p
15319n
15320b repl
15321:more1
15322s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15323p
15324g
15325s/.\{148\}//
15326t nl
15327:delim
15328h
15329s/\(.\{148\}\).*/\1/
15330t more2
15331s/["\\]/\\&/g; s/^/"/; s/$/"/
15332p
15333b
15334:more2
15335s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15336p
15337g
15338s/.\{148\}//
15339t delim
15340' <conf$$subs.awk | sed '
15341/^[^""]/{
15342 N
15343 s/\n//
15344}
15345' >>$CONFIG_STATUS || ac_write_fail=1
15346rm -f conf$$subs.awk
15347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15348_ACAWK
15349cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15350 for (key in S) S_is_set[key] = 1
15351 FS = "\a"
15352 \$ac_cs_awk_pipe_init
15353}
15354{
15355 line = $ 0
15356 nfields = split(line, field, "@")
15357 substed = 0
15358 len = length(field[1])
15359 for (i = 2; i < nfields; i++) {
15360 key = field[i]
15361 keylen = length(key)
15362 if (S_is_set[key]) {
15363 value = S[key]
15364 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15365 len += length(value) + length(field[++i])
15366 substed = 1
15367 } else
15368 len += 1 + keylen
15369 }
15370 if (nfields == 3 && !substed) {
15371 key = field[2]
15372 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15373 \$ac_cs_awk_read_file
15374 next
15375 }
15376 }
15377 print line
15378}
15379\$ac_cs_awk_pipe_fini
15380_ACAWK
15381_ACEOF
15382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15383if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15384 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15385else
15386 cat
15387fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15388 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15389_ACEOF
15390
15391# VPATH may cause trouble with some makes, so we remove $(srcdir),
15392# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15393# trailing colons and then remove the whole line if VPATH becomes empty
15394# (actually we leave an empty line to preserve line numbers).
15395if test "x$srcdir" = x.; then
15396 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15397s/:*\$(srcdir):*/:/
15398s/:*\${srcdir}:*/:/
15399s/:*@srcdir@:*/:/
15400s/^\([^=]*=[ ]*\):*/\1/
15401s/:*$//
15402s/^[^=]*=[ ]*$//
15403}'
15404fi
2aeb72e9 15405
5213506e
RW
15406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15407fi # test -n "$CONFIG_FILES"
2aeb72e9 15408
1c710c3c 15409
5213506e
RW
15410eval set X " :F $CONFIG_FILES "
15411shift
15412for ac_tag
15413do
15414 case $ac_tag in
15415 :[FHLC]) ac_mode=$ac_tag; continue;;
15416 esac
15417 case $ac_mode$ac_tag in
15418 :[FHL]*:*);;
15419 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15420 :[FH]-) ac_tag=-:-;;
15421 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15422 esac
15423 ac_save_IFS=$IFS
15424 IFS=:
15425 set x $ac_tag
15426 IFS=$ac_save_IFS
15427 shift
15428 ac_file=$1
15429 shift
79c06341 15430
5213506e
RW
15431 case $ac_mode in
15432 :L) ac_source=$1;;
15433 :[FH])
15434 ac_file_inputs=
15435 for ac_f
15436 do
15437 case $ac_f in
15438 -) ac_f="$tmp/stdin";;
15439 *) # Look for the file first in the build tree, then in the source tree
15440 # (if the path is not absolute). The absolute path cannot be DOS-style,
15441 # because $ac_f cannot contain `:'.
15442 test -f "$ac_f" ||
15443 case $ac_f in
15444 [\\/$]*) false;;
15445 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15446 esac ||
15447 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15448 esac
15449 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15450 as_fn_append ac_file_inputs " '$ac_f'"
15451 done
1c710c3c 15452
5213506e
RW
15453 # Let's still pretend it is `configure' which instantiates (i.e., don't
15454 # use $as_me), people would be surprised to read:
15455 # /* config.h. Generated by config.status. */
15456 configure_input='Generated from '`
15457 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15458 `' by configure.'
15459 if test x"$ac_file" != x-; then
15460 configure_input="$ac_file. $configure_input"
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15462$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15463 fi
5213506e
RW
15464 # Neutralize special characters interpreted by sed in replacement strings.
15465 case $configure_input in #(
15466 *\&* | *\|* | *\\* )
15467 ac_sed_conf_input=`$as_echo "$configure_input" |
15468 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15469 *) ac_sed_conf_input=$configure_input;;
15470 esac
11a67599 15471
5213506e
RW
15472 case $ac_tag in
15473 *:-:* | *:-) cat >"$tmp/stdin" \
15474 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15475 esac
15476 ;;
11a67599
ZW
15477 esac
15478
5213506e 15479 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15480$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15481 X"$ac_file" : 'X\(//\)[^/]' \| \
15482 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15483 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15484$as_echo X"$ac_file" |
15485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15486 s//\1/
15487 q
15488 }
15489 /^X\(\/\/\)[^/].*/{
15490 s//\1/
15491 q
15492 }
15493 /^X\(\/\/\)$/{
15494 s//\1/
15495 q
15496 }
15497 /^X\(\/\).*/{
15498 s//\1/
15499 q
15500 }
15501 s/.*/./; q'`
15502 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15503 ac_builddir=.
0b0dc272 15504
5213506e
RW
15505case "$ac_dir" in
15506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15507*)
15508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15509 # A ".." for each directory in $ac_dir_suffix.
15510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15511 case $ac_top_builddir_sub in
15512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15514 esac ;;
15515esac
15516ac_abs_top_builddir=$ac_pwd
15517ac_abs_builddir=$ac_pwd$ac_dir_suffix
15518# for backward compatibility:
15519ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15520
15521case $srcdir in
5213506e 15522 .) # We are building in place.
1c710c3c 15523 ac_srcdir=.
5213506e
RW
15524 ac_top_srcdir=$ac_top_builddir_sub
15525 ac_abs_top_srcdir=$ac_pwd ;;
15526 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15527 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15528 ac_top_srcdir=$srcdir
15529 ac_abs_top_srcdir=$srcdir ;;
15530 *) # Relative name.
15531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15532 ac_top_srcdir=$ac_top_build_prefix$srcdir
15533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15534esac
5213506e 15535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15536
0b0dc272 15537
5213506e
RW
15538 case $ac_mode in
15539 :F)
15540 #
15541 # CONFIG_FILE
15542 #
1c710c3c
DJ
15543
15544 case $INSTALL in
15545 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15546 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15547 esac
5213506e 15548_ACEOF
11a67599 15549
5213506e
RW
15550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15551# If the template does not know about datarootdir, expand it.
15552# FIXME: This hack should be removed a few years after 2.60.
15553ac_datarootdir_hack=; ac_datarootdir_seen=
15554ac_sed_dataroot='
15555/datarootdir/ {
15556 p
15557 q
15558}
15559/@datadir@/p
15560/@docdir@/p
15561/@infodir@/p
15562/@localedir@/p
15563/@mandir@/p'
15564case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15565*datarootdir*) ac_datarootdir_seen=yes;;
15566*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15568$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15569_ACEOF
5213506e
RW
15570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15571 ac_datarootdir_hack='
15572 s&@datadir@&$datadir&g
15573 s&@docdir@&$docdir&g
15574 s&@infodir@&$infodir&g
15575 s&@localedir@&$localedir&g
15576 s&@mandir@&$mandir&g
15577 s&\\\${datarootdir}&$datarootdir&g' ;;
15578esac
15579_ACEOF
15580
15581# Neutralize VPATH when `$srcdir' = `.'.
15582# Shell code in configure.ac might set extrasub.
15583# FIXME: do we really want to maintain this feature?
15584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15585ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15586$extrasub
15587_ACEOF
5213506e 15588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15589:t
15590/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15591s|@configure_input@|$ac_sed_conf_input|;t t
15592s&@top_builddir@&$ac_top_builddir_sub&;t t
15593s&@top_build_prefix@&$ac_top_build_prefix&;t t
15594s&@srcdir@&$ac_srcdir&;t t
15595s&@abs_srcdir@&$ac_abs_srcdir&;t t
15596s&@top_srcdir@&$ac_top_srcdir&;t t
15597s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15598s&@builddir@&$ac_builddir&;t t
15599s&@abs_builddir@&$ac_abs_builddir&;t t
15600s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15601s&@INSTALL@&$ac_INSTALL&;t t
15602$ac_datarootdir_hack
15603"
15604eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15605if $ac_cs_awk_getline; then
15606 $AWK -f "$tmp/subs.awk"
15607else
15608 $AWK -f "$tmp/subs.awk" | $SHELL
15609fi >$tmp/out \
15610 || as_fn_error "could not create $ac_file" "$LINENO" 5
15611
15612test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15613 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15614 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15616which seems to be undefined. Please make sure it is defined." >&5
15617$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15618which seems to be undefined. Please make sure it is defined." >&2;}
15619
15620 rm -f "$tmp/stdin"
15621 case $ac_file in
15622 -) cat "$tmp/out" && rm -f "$tmp/out";;
15623 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15624 esac \
15625 || as_fn_error "could not create $ac_file" "$LINENO" 5
15626 ;;
11a67599 15627
11a67599 15628
79c06341 15629
5213506e
RW
15630 esac
15631
3e54529c
RW
15632
15633 case $ac_file$ac_mode in
15634 "Makefile":F) sed "$extrasub_build" Makefile |
15635 sed "$extrasub_host" |
15636 sed "$extrasub_target" > mf$$
15637 mv -f mf$$ Makefile ;;
15638
15639 esac
5213506e
RW
15640done # for ac_tag
15641
15642
15643as_fn_exit 0
1c710c3c 15644_ACEOF
1c710c3c
DJ
15645ac_clean_files=$ac_clean_files_save
15646
5213506e
RW
15647test $ac_write_fail = 0 ||
15648 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15649
1c710c3c
DJ
15650
15651# configure is writing to config.log, and then calls config.status.
15652# config.status does its own redirection, appending to config.log.
15653# Unfortunately, on DOS this fails, as config.log is still kept open
15654# by configure, so config.status won't be able to write to it; its
15655# output is simply discarded. So we exec the FD to /dev/null,
15656# effectively closing config.log, so it can be properly (re)opened and
15657# appended to by config.status. When coming back to configure, we
15658# need to make the FD available again.
15659if test "$no_create" != yes; then
15660 ac_cs_success=:
15661 ac_config_status_args=
15662 test "$silent" = yes &&
15663 ac_config_status_args="$ac_config_status_args --quiet"
15664 exec 5>/dev/null
15665 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15666 exec 5>>config.log
15667 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15668 # would make configure fail if this is the last instruction.
5213506e
RW
15669 $ac_cs_success || as_fn_exit $?
15670fi
15671if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15673$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15674fi
79c06341 15675