]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
ia64.h (REG_OK_FOR_BASE_P, [...]): Remove macros.
[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
78767fd9 559POSTSTAGE1_CONFIGURE_FLAGS
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
645stage1_languages
d7f09764 646extra_host_libiberty_configure_flags
5213506e
RW
647clooginc
648clooglibs
649pplinc
650ppllibs
5213506e 651poststage1_ldflags
ed2eaa9f 652poststage1_libs
5213506e
RW
653stage1_libs
654stage1_ldflags
655extra_mpc_mpfr_configure_flags
656extra_mpc_gmp_configure_flags
657extra_mpfr_configure_flags
658gmpinc
659gmplibs
660do_compare
661GNATMAKE
662GNATBIND
663ac_ct_CXX
664CXXFLAGS
665CXX
666OBJEXT
667EXEEXT
668ac_ct_CC
669CPPFLAGS
670LDFLAGS
671CFLAGS
672CC
a4a2c37d 673EXTRA_CONFIGARGS_LIBJAVA
5213506e
RW
674target_subdir
675host_subdir
676build_subdir
677build_libsubdir
87264276
PB
678AWK
679SED
5213506e
RW
680LN_S
681LN
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693target_noncanonical
694host_noncanonical
695build_noncanonical
696build_os
697build_vendor
698build_cpu
699build
700TOPLEVEL_CONFIGURE_ARGUMENTS
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files='serialization_dependencies
740host_makefile_frag
741target_makefile_frag
742alphaieee_frag
743ospace_frag'
744ac_user_opts='
745enable_option_checking
746with_build_libsubdir
747enable_gold
21539e2e 748enable_ld
87e6d9dc
TB
749enable_libquadmath
750enable_libquadmath_support
5213506e
RW
751enable_libada
752enable_libssp
a4a2c37d 753enable_static_libjava
ff3ac0f4 754enable_bootstrap
5213506e 755enable_build_with_cxx
78767fd9 756enable_build_poststage1_with_cxx
5213506e
RW
757with_mpc
758with_mpc_include
759with_mpc_lib
760with_mpfr_dir
761with_mpfr
762with_mpfr_include
763with_mpfr_lib
764with_gmp_dir
765with_gmp
766with_gmp_include
767with_gmp_lib
768with_host_libstdcxx
769with_stage1_ldflags
770with_stage1_libs
5213506e 771with_boot_libs
ed2eaa9f 772with_boot_ldflags
5213506e
RW
773with_ppl
774with_ppl_include
775with_ppl_lib
776enable_ppl_version_check
777with_cloog
778with_cloog_include
779with_cloog_lib
f16e2237 780enable_cloog_backend
5213506e 781enable_cloog_version_check
d7f09764 782enable_lto
5213506e
RW
783enable_stage1_languages
784enable_objc_gc
785with_build_sysroot
786with_debug_prefix_map
5646b7b9 787with_build_config
5213506e
RW
788enable_serial_configure
789with_build_time_tools
790enable_maintainer_mode
791enable_stage1_checking
792enable_werror
5213506e
RW
793'
794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
802CXX
803CXXFLAGS
804CCC
ffedf511
RW
805build_configargs
806host_configargs
807target_configargs
5213506e
RW
808AR
809AS
810DLLTOOL
811LD
812LIPO
813NM
814RANLIB
815STRIP
816WINDRES
817WINDMC
818OBJCOPY
819OBJDUMP
e7a82751 820READELF
5213506e
RW
821CC_FOR_TARGET
822CXX_FOR_TARGET
823GCC_FOR_TARGET
824GCJ_FOR_TARGET
825GFORTRAN_FOR_TARGET
632e2a07 826GOC_FOR_TARGET
5213506e
RW
827AR_FOR_TARGET
828AS_FOR_TARGET
829DLLTOOL_FOR_TARGET
830LD_FOR_TARGET
831LIPO_FOR_TARGET
832NM_FOR_TARGET
833OBJDUMP_FOR_TARGET
834RANLIB_FOR_TARGET
e7a82751 835READELF_FOR_TARGET
5213506e
RW
836STRIP_FOR_TARGET
837WINDRES_FOR_TARGET
838WINDMC_FOR_TARGET'
839
671aa708
NN
840
841# Initialize some variables set by options.
1c710c3c
DJ
842ac_init_help=
843ac_init_version=false
5213506e
RW
844ac_unrecognized_opts=
845ac_unrecognized_sep=
671aa708
NN
846# The variables have the same names as the options, with
847# dashes changed to underlines.
1c710c3c 848cache_file=/dev/null
671aa708 849exec_prefix=NONE
671aa708 850no_create=
671aa708
NN
851no_recursion=
852prefix=NONE
853program_prefix=NONE
854program_suffix=NONE
855program_transform_name=s,x,x,
856silent=
857site=
858srcdir=
671aa708
NN
859verbose=
860x_includes=NONE
861x_libraries=NONE
1c710c3c
DJ
862
863# Installation directory options.
864# These are left unexpanded so users can "make install exec_prefix=/foo"
865# and all the variables that are supposed to be based on exec_prefix
866# by default will actually change.
867# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 868# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
869bindir='${exec_prefix}/bin'
870sbindir='${exec_prefix}/sbin'
871libexecdir='${exec_prefix}/libexec'
5213506e
RW
872datarootdir='${prefix}/share'
873datadir='${datarootdir}'
671aa708
NN
874sysconfdir='${prefix}/etc'
875sharedstatedir='${prefix}/com'
876localstatedir='${prefix}/var'
671aa708
NN
877includedir='${prefix}/include'
878oldincludedir='/usr/include'
5213506e
RW
879docdir='${datarootdir}/doc/${PACKAGE}'
880infodir='${datarootdir}/info'
881htmldir='${docdir}'
882dvidir='${docdir}'
883pdfdir='${docdir}'
884psdir='${docdir}'
885libdir='${exec_prefix}/lib'
886localedir='${datarootdir}/locale'
887mandir='${datarootdir}/man'
79c06341 888
671aa708 889ac_prev=
5213506e 890ac_dashdash=
671aa708
NN
891for ac_option
892do
671aa708
NN
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
5213506e 895 eval $ac_prev=\$ac_option
671aa708
NN
896 ac_prev=
897 continue
898 fi
79c06341 899
5213506e
RW
900 case $ac_option in
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *) ac_optarg=yes ;;
903 esac
671aa708
NN
904
905 # Accept the important Cygnus configure options, so we can diagnose typos.
906
5213506e
RW
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
671aa708
NN
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 914 bindir=$ac_optarg ;;
671aa708
NN
915
916 -build | --build | --buil | --bui | --bu)
1c710c3c 917 ac_prev=build_alias ;;
671aa708 918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 919 build_alias=$ac_optarg ;;
671aa708
NN
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
671aa708 930
5213506e 931 -datadir | --datadir | --datadi | --datad)
671aa708 932 ac_prev=datadir ;;
5213506e 933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 934 datadir=$ac_optarg ;;
671aa708 935
5213506e
RW
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
671aa708 943 -disable-* | --disable-*)
5213506e 944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 945 # Reject names that are not valid shell variable names.
5213506e
RW
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952"enable_$ac_useropt"
953"*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
671aa708
NN
968
969 -enable-* | --enable-*)
5213506e 970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 971 # Reject names that are not valid shell variable names.
5213506e
RW
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978"enable_$ac_useropt"
979"*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
2aeb72e9 982 esac
5213506e 983 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
1c710c3c 992 exec_prefix=$ac_optarg ;;
671aa708
NN
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
1c710c3c
DJ
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
671aa708
NN
1004
1005 -host | --host | --hos | --ho)
1c710c3c 1006 ac_prev=host_alias ;;
671aa708 1007 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1008 host_alias=$ac_optarg ;;
671aa708 1009
5213506e
RW
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
671aa708
NN
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1021 includedir=$ac_optarg ;;
671aa708
NN
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1026 infodir=$ac_optarg ;;
671aa708
NN
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1031 libdir=$ac_optarg ;;
671aa708
NN
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1038 libexecdir=$ac_optarg ;;
671aa708 1039
5213506e
RW
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
671aa708 1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1046 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1050 localstatedir=$ac_optarg ;;
671aa708
NN
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1055 mandir=$ac_optarg ;;
671aa708
NN
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1062 | --no-cr | --no-c | -n)
671aa708
NN
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1076 oldincludedir=$ac_optarg ;;
671aa708
NN
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1081 prefix=$ac_optarg ;;
671aa708
NN
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1088 program_prefix=$ac_optarg ;;
671aa708
NN
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1095 program_suffix=$ac_optarg ;;
671aa708
NN
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1112 program_transform_name=$ac_optarg ;;
671aa708 1113
5213506e
RW
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
671aa708
NN
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1c710c3c 1132 sbindir=$ac_optarg ;;
671aa708
NN
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1c710c3c 1143 sharedstatedir=$ac_optarg ;;
671aa708
NN
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1c710c3c 1148 site=$ac_optarg ;;
671aa708
NN
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1153 srcdir=$ac_optarg ;;
671aa708
NN
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1160 sysconfdir=$ac_optarg ;;
671aa708
NN
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1163 ac_prev=target_alias ;;
671aa708 1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1165 target_alias=$ac_optarg ;;
671aa708
NN
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1c710c3c
DJ
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
671aa708
NN
1172
1173 -with-* | --with-*)
5213506e 1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1175 # Reject names that are not valid shell variable names.
5213506e
RW
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182"with_$ac_useropt"
1183"*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
2aeb72e9 1186 esac
5213506e 1187 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1188
1189 -without-* | --without-*)
5213506e 1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1191 # Reject names that are not valid shell variable names.
5213506e
RW
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198"with_$ac_useropt"
1199"*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
671aa708
NN
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1214 x_includes=$ac_optarg ;;
671aa708
NN
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1221 x_libraries=$ac_optarg ;;
671aa708 1222
5213506e
RW
1223 -*) as_fn_error "unrecognized option: \`$ac_option'
1224Try \`$0 --help' for more information."
671aa708
NN
1225 ;;
1226
1c710c3c
DJ
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
5213506e
RW
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1235 export $ac_envvar ;;
1236
671aa708 1237 *)
1c710c3c 1238 # FIXME: should be removed in autoconf 3.0.
5213506e 1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1243 ;;
1244
1245 esac
1246done
1247
1248if test -n "$ac_prev"; then
1c710c3c 1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1250 as_fn_error "missing argument to $ac_option"
af71363e 1251fi
af71363e 1252
5213506e
RW
1253if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1258 esac
5213506e 1259fi
2aeb72e9 1260
5213506e
RW
1261# Check all directory arguments for consistency.
1262for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
2aeb72e9 1266do
5213506e
RW
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
2aeb72e9 1275 case $ac_val in
5213506e
RW
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1278 esac
5213506e 1279 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1280done
1281
1c710c3c
DJ
1282# There might be people who depend on the old broken behavior: `$host'
1283# used to hold the argument of --host etc.
1284# FIXME: To remove some day.
1285build=$build_alias
1286host=$host_alias
1287target=$target_alias
0b0dc272 1288
1c710c3c
DJ
1289# FIXME: To remove some day.
1290if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
5213506e 1293 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1294 If a cross compiler is detected then cross compile mode will be used." >&2
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1297 fi
1298fi
1299
1300ac_tool_prefix=
1301test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303test "$silent" = yes && exec 6>/dev/null
671aa708 1304
671aa708 1305
5213506e
RW
1306ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307ac_ls_di=`ls -di .` &&
1308ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error "working directory cannot be determined"
1310test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error "pwd does not report name of working directory"
1312
1313
671aa708
NN
1314# Find the source files, if location was not specified.
1315if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
5213506e
RW
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323$as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\).*/{
1337 s//\1/
1338 q
1339 }
1340 s/.*/./; q'`
671aa708 1341 srcdir=$ac_confdir
5213506e 1342 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1343 srcdir=..
1344 fi
1345else
1346 ac_srcdir_defaulted=no
1347fi
5213506e
RW
1348if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1351fi
1352ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1355 pwd)`
1356# When building in place, set srcdir=.
1357if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1359fi
1360# Remove unnecessary trailing slashes from srcdir.
1361# Double slashes in file names in object file debugging info
1362# mess up M-x gdb in Emacs.
1363case $srcdir in
1364*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365esac
87841584
AM
1366case $srcdir in
1367 *" "*)
1368 as_fn_error "path to source, $srcdir, contains spaces"
1369 ;;
1370esac
ac9e6043
RW
1371ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1372
5213506e
RW
1373for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378done
1c710c3c
DJ
1379
1380#
1381# Report the --help message.
1382#
1383if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387\`configure' configures this package to adapt to many kinds of systems.
1388
1389Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394Defaults for the options are specified in brackets.
1395
1396Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406
1c710c3c
DJ
1407Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1409 [$ac_default_prefix]
1c710c3c 1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1411 [PREFIX]
1c710c3c
DJ
1412
1413By default, \`make install' will install all the files in
1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416for instance \`--prefix=\$HOME'.
1417
1418For better control, use the options below.
1419
1420Fine tuning of the installation directories:
5213506e
RW
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1440_ACEOF
1441
1442 cat <<\_ACEOF
1443
1444Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448
1449System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 --target=TARGET configure for building compilers for TARGET [HOST]
1453_ACEOF
1454fi
1455
1456if test -n "$ac_init_help"; then
1457
1458 cat <<\_ACEOF
1459
1460Optional Features:
5213506e 1461 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e 1464 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1465 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1466 --disable-libquadmath do not build libquadmath directory
1467 --disable-libquadmath-support
1468 disable libquadmath support for Fortran
30b74385
RW
1469 --enable-libada build libada directory
1470 --enable-libssp build libssp directory
a4a2c37d
MK
1471 --enable-static-libjava[=ARG]
1472 build static libjava [default=no]
ff3ac0f4 1473 --enable-bootstrap enable bootstrapping [yes if native build]
00020c16 1474 --enable-build-with-cxx build with C++ compiler instead of C compiler
78767fd9
ILT
1475 --enable-build-poststage1-with-cxx
1476 build stages 2 and 3 with C++, not C
33e39b66
AS
1477 --disable-ppl-version-check
1478 disable check for PPL version
39986460
TG
1479 --enable-cloog-backend[=BACKEND]
1480 set the CLooG BACKEND used to either isl, ppl or
1481 ppl-legacy (default)
d32ef397
AS
1482 --disable-cloog-version-check
1483 disable check for CLooG version
d7f09764 1484 --enable-lto enable link time optimization support
33e39b66
AS
1485 --enable-stage1-languages[=all]
1486 choose additional languages to build during stage1.
1487 Mostly useful for compiler development
1488 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1489 Objective-C runtime
30b74385 1490 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1491 force sequential configuration of sub-packages for
1492 the host, target or build machine, or all
1493 sub-packages
1494 --enable-maintainer-mode
1495 enable make rules and dependencies not useful (and
1496 sometimes confusing) to the casual installer
1497 --enable-stage1-checking[=all]
1498 choose additional checking for stage1 of the
1499 compiler
1c710c3c
DJ
1500 --enable-werror enable -Werror in bootstrap stage2 and later
1501
1502Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1506 --with-mpc=PATH specify prefix directory for installed MPC package.
1507 Equivalent to --with-mpc-include=PATH/include plus
1508 --with-mpc-lib=PATH/lib
1509 --with-mpc-include=PATH specify directory for installed MPC include files
1510 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1511 --with-mpfr-dir=PATH this option has been REMOVED
1512 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1513 Equivalent to --with-mpfr-include=PATH/include plus
1514 --with-mpfr-lib=PATH/lib
1c710c3c 1515 --with-mpfr-include=PATH
30b74385
RW
1516 specify directory for installed MPFR include files
1517 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1518 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1519 --with-gmp=PATH specify prefix directory for the installed GMP
1520 package. Equivalent to
1521 --with-gmp-include=PATH/include plus
1522 --with-gmp-lib=PATH/lib
30b74385
RW
1523 --with-gmp-include=PATH specify directory for installed GMP include files
1524 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1525 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1526 linking with PPL
1527 --with-stage1-ldflags=FLAGS
1528 linker flags for stage1
1529 --with-stage1-libs=LIBS libraries for stage1
1530 --with-boot-libs=LIBS libraries for stage2 and later
1531 --with-boot-ldflags=FLAGS
1532 linker flags for stage2 and later
1533 --with-ppl=PATH specify prefix directory for the installed PPL
1534 package. Equivalent to
1535 --with-ppl-include=PATH/include plus
1536 --with-ppl-lib=PATH/lib
1537 --with-ppl-include=PATH specify directory for installed PPL include files
1538 --with-ppl-lib=PATH specify directory for the installed PPL library
d32ef397
AS
1539 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1540 package. Equivalent to
1541 --with-cloog-include=PATH/include plus
1542 --with-cloog-lib=PATH/lib
1543 --with-cloog-include=PATH
1544 Specify directory for installed CLooG include files
1545 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1546 library
30b74385 1547 --with-build-sysroot=SYSROOT
1c710c3c 1548 use sysroot as the system root during the build
c8aea42c 1549 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1550 map A to B, C to D ... in debug information
1551 --with-build-config='NAME NAME2...'
1552 use config/NAME.mk build configuration
30b74385 1553 --with-build-time-tools=PATH
1c710c3c 1554 use given path to find target tools during the build
1c710c3c
DJ
1555
1556Some influential environment variables:
1557 CC C compiler command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1560 nonstandard directory <lib dir>
5213506e
RW
1561 LIBS libraries to pass to the linker, e.g. -l<library>
1562 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1564 CXX C++ compiler command
1565 CXXFLAGS C++ compiler flags
ffedf511
RW
1566 build_configargs
1567 additional configure arguments for build directories
1568 host_configargs
1569 additional configure arguments for host directories
1570 target_configargs
1571 additional configure arguments for target directories
278a7a38
AO
1572 AR AR for the host
1573 AS AS for the host
1574 DLLTOOL DLLTOOL for the host
1575 LD LD for the host
1576 LIPO LIPO for the host
1577 NM NM for the host
1578 RANLIB RANLIB for the host
1579 STRIP STRIP for the host
1580 WINDRES WINDRES for the host
901119ae 1581 WINDMC WINDMC for the host
278a7a38
AO
1582 OBJCOPY OBJCOPY for the host
1583 OBJDUMP OBJDUMP for the host
e7a82751 1584 READELF READELF for the host
278a7a38
AO
1585 CC_FOR_TARGET
1586 CC for the target
1587 CXX_FOR_TARGET
1588 CXX for the target
1589 GCC_FOR_TARGET
1590 GCC for the target
1591 GCJ_FOR_TARGET
1592 GCJ for the target
1593 GFORTRAN_FOR_TARGET
1594 GFORTRAN for the target
632e2a07
ILT
1595 GOC_FOR_TARGET
1596 GOC for the target
278a7a38
AO
1597 AR_FOR_TARGET
1598 AR for the target
1599 AS_FOR_TARGET
1600 AS for the target
1601 DLLTOOL_FOR_TARGET
1602 DLLTOOL for the target
1603 LD_FOR_TARGET
1604 LD for the target
1605 LIPO_FOR_TARGET
1606 LIPO for the target
1607 NM_FOR_TARGET
1608 NM for the target
1609 OBJDUMP_FOR_TARGET
1610 OBJDUMP for the target
1611 RANLIB_FOR_TARGET
1612 RANLIB for the target
e7a82751
RM
1613 READELF_FOR_TARGET
1614 READELF for the target
278a7a38
AO
1615 STRIP_FOR_TARGET
1616 STRIP for the target
1617 WINDRES_FOR_TARGET
1618 WINDRES for the target
901119ae
KT
1619 WINDMC_FOR_TARGET
1620 WINDMC for the target
1c710c3c
DJ
1621
1622Use these variables to override the choices made by `configure' or to help
1623it to find libraries and programs with nonstandard names/locations.
1624
5213506e 1625Report bugs to the package provider.
1c710c3c 1626_ACEOF
5213506e 1627ac_status=$?
1c710c3c
DJ
1628fi
1629
1630if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1c710c3c 1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1635 continue
1c710c3c
DJ
1636 ac_builddir=.
1637
5213506e
RW
1638case "$ac_dir" in
1639.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640*)
1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 esac ;;
1648esac
1649ac_abs_top_builddir=$ac_pwd
1650ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651# for backward compatibility:
1652ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1653
1654case $srcdir in
5213506e 1655 .) # We are building in place.
1c710c3c 1656 ac_srcdir=.
5213506e
RW
1657 ac_top_srcdir=$ac_top_builddir_sub
1658 ac_abs_top_srcdir=$ac_pwd ;;
1659 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1660 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1661 ac_top_srcdir=$srcdir
1662 ac_abs_top_srcdir=$srcdir ;;
1663 *) # Relative name.
1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1667esac
5213506e
RW
1668ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669
1670 cd "$ac_dir" || { ac_status=$?; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1678 else
5213506e
RW
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 fi || ac_status=$?
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1682 done
1683fi
1684
5213506e 1685test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1686if $ac_init_version; then
1687 cat <<\_ACEOF
5213506e
RW
1688configure
1689generated by GNU Autoconf 2.64
1c710c3c 1690
5213506e 1691Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1692This configure script is free software; the Free Software Foundation
1693gives unlimited permission to copy, distribute and modify it.
1694_ACEOF
5213506e 1695 exit
0b0dc272 1696fi
5213506e
RW
1697
1698## ------------------------ ##
1699## Autoconf initialization. ##
1700## ------------------------ ##
1701
1702# ac_fn_c_try_compile LINENO
1703# --------------------------
1704# Try to compile conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_c_try_compile ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734fi
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736 return $ac_retval
1737
1738} # ac_fn_c_try_compile
1739
1740# ac_fn_cxx_try_compile LINENO
1741# ----------------------------
1742# Try to compile conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_cxx_try_compile ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext
1747 if { { ac_try="$ac_compile"
1748case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_compile") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_cxx_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest.$ac_objext; then :
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772fi
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 return $ac_retval
1775
1776} # ac_fn_cxx_try_compile
1777
1778# ac_fn_c_try_link LINENO
1779# -----------------------
1780# Try to link conftest.$ac_ext, and return whether this succeeded.
1781ac_fn_c_try_link ()
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext conftest$ac_exeext
1785 if { { ac_try="$ac_link"
1786case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1798 fi
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest$ac_exeext && {
1804 test "$cross_compiling" = yes ||
1805 $as_test_x conftest$ac_exeext
1806 }; then :
1807 ac_retval=0
1808else
1809 $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=1
1813fi
1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816 # interfere with the next link command; also delete a directory that is
1817 # left behind by Apple's compiler. We do this before executing the actions.
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 return $ac_retval
1821
1822} # ac_fn_c_try_link
1823cat >config.log <<_ACEOF
1c710c3c
DJ
1824This file contains any messages produced by compilers while
1825running configure, to aid debugging if configure makes a mistake.
1826
1827It was created by $as_me, which was
5213506e 1828generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1829
1830 $ $0 $@
1831
1832_ACEOF
5213506e 1833exec 5>>config.log
1c710c3c
DJ
1834{
1835cat <<_ASUNAME
1836## --------- ##
1837## Platform. ##
1838## --------- ##
1839
1840hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844uname -v = `(uname -v) 2>/dev/null || echo unknown`
1845
1846/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1848
1849/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1850/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1851/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1852/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1853/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1854/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1855/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1856
1857_ASUNAME
1858
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
5213506e
RW
1864 $as_echo "PATH: $as_dir"
1865 done
1866IFS=$as_save_IFS
1c710c3c
DJ
1867
1868} >&5
1869
1870cat >&5 <<_ACEOF
1871
1872
1873## ----------- ##
1874## Core tests. ##
1875## ----------- ##
1876
1877_ACEOF
1878
1879
1880# Keep a trace of the command line.
1881# Strip out --no-create and --no-recursion so they do not pile up.
1882# Strip out --silent because we don't want to record it for future runs.
1883# Also quote any args containing shell meta-characters.
1884# Make two passes to allow for proper duplicate-argument suppression.
1885ac_configure_args=
1886ac_configure_args0=
1887ac_configure_args1=
1c710c3c
DJ
1888ac_must_keep_next=false
1889for ac_pass in 1 2
1890do
1891 for ac_arg
1892 do
1893 case $ac_arg in
1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896 | -silent | --silent | --silen | --sile | --sil)
1897 continue ;;
5213506e
RW
1898 *\'*)
1899 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1900 esac
1901 case $ac_pass in
5213506e 1902 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1903 2)
5213506e 1904 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1905 if test $ac_must_keep_next = true; then
1906 ac_must_keep_next=false # Got value, back to normal.
1907 else
1908 case $ac_arg in
1909 *=* | --config-cache | -C | -disable-* | --disable-* \
1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912 | -with-* | --with-* | -without-* | --without-* | --x)
1913 case "$ac_configure_args0 " in
1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1915 esac
1916 ;;
1917 -* ) ac_must_keep_next=true ;;
1918 esac
1919 fi
5213506e 1920 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1921 ;;
1922 esac
1923 done
1924done
5213506e
RW
1925{ ac_configure_args0=; unset ac_configure_args0;}
1926{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1927
1928# When interrupted or exit'd, cleanup temporary files, and complete
1929# config.log. We remove comments because anyway the quotes in there
1930# would cause problems or look ugly.
5213506e
RW
1931# WARNING: Use '\'' to represent an apostrophe within the trap.
1932# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1933trap 'exit_status=$?
1934 # Save into config.log some information that might help in debugging.
1935 {
1936 echo
1937
1938 cat <<\_ASBOX
1939## ---------------- ##
1940## Cache variables. ##
1941## ---------------- ##
1942_ASBOX
1943 echo
1944 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1945(
1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947 eval ac_val=\$$ac_var
1948 case $ac_val in #(
1949 *${as_nl}*)
1950 case $ac_var in #(
1951 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953 esac
1954 case $ac_var in #(
1955 _ | IFS | as_nl) ;; #(
1956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957 *) { eval $ac_var=; unset $ac_var;} ;;
1958 esac ;;
1959 esac
1960 done
1c710c3c 1961 (set) 2>&1 |
5213506e
RW
1962 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963 *${as_nl}ac_space=\ *)
1c710c3c 1964 sed -n \
5213506e
RW
1965 "s/'\''/'\''\\\\'\'''\''/g;
1966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967 ;; #(
1c710c3c 1968 *)
5213506e 1969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 1970 ;;
5213506e
RW
1971 esac |
1972 sort
1973)
1c710c3c
DJ
1974 echo
1975
1976 cat <<\_ASBOX
1977## ----------------- ##
1978## Output variables. ##
1979## ----------------- ##
1980_ASBOX
1981 echo
1982 for ac_var in $ac_subst_vars
1983 do
5213506e
RW
1984 eval ac_val=\$$ac_var
1985 case $ac_val in
1986 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987 esac
1988 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1989 done | sort
1990 echo
1991
1992 if test -n "$ac_subst_files"; then
1993 cat <<\_ASBOX
5213506e
RW
1994## ------------------- ##
1995## File substitutions. ##
1996## ------------------- ##
1c710c3c
DJ
1997_ASBOX
1998 echo
1999 for ac_var in $ac_subst_files
2000 do
5213506e
RW
2001 eval ac_val=\$$ac_var
2002 case $ac_val in
2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 esac
2005 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2006 done | sort
2007 echo
2008 fi
2009
2010 if test -s confdefs.h; then
2011 cat <<\_ASBOX
2012## ----------- ##
2013## confdefs.h. ##
2014## ----------- ##
2015_ASBOX
2016 echo
5213506e 2017 cat confdefs.h
1c710c3c
DJ
2018 echo
2019 fi
2020 test "$ac_signal" != 0 &&
5213506e
RW
2021 $as_echo "$as_me: caught signal $ac_signal"
2022 $as_echo "$as_me: exit $exit_status"
1c710c3c 2023 } >&5
5213506e
RW
2024 rm -f core *.core core.conftest.* &&
2025 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2026 exit $exit_status
5213506e 2027' 0
1c710c3c 2028for ac_signal in 1 2 13 15; do
5213506e 2029 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2030done
2031ac_signal=0
2032
2033# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2034rm -f -r conftest* confdefs.h
2035
2036$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2037
2038# Predefined preprocessor variables.
2039
2040cat >>confdefs.h <<_ACEOF
2041#define PACKAGE_NAME "$PACKAGE_NAME"
2042_ACEOF
2043
1c710c3c
DJ
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2046_ACEOF
2047
1c710c3c
DJ
2048cat >>confdefs.h <<_ACEOF
2049#define PACKAGE_VERSION "$PACKAGE_VERSION"
2050_ACEOF
0b0dc272 2051
1c710c3c
DJ
2052cat >>confdefs.h <<_ACEOF
2053#define PACKAGE_STRING "$PACKAGE_STRING"
2054_ACEOF
2055
1c710c3c
DJ
2056cat >>confdefs.h <<_ACEOF
2057#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2058_ACEOF
2059
5213506e
RW
2060cat >>confdefs.h <<_ACEOF
2061#define PACKAGE_URL "$PACKAGE_URL"
2062_ACEOF
2063
1c710c3c
DJ
2064
2065# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2066# Prefer an explicitly selected file to automatically selected ones.
2067ac_site_file1=NONE
2068ac_site_file2=NONE
2069if test -n "$CONFIG_SITE"; then
2070 ac_site_file1=$CONFIG_SITE
2071elif test "x$prefix" != xNONE; then
2072 ac_site_file1=$prefix/share/config.site
2073 ac_site_file2=$prefix/etc/config.site
2074else
2075 ac_site_file1=$ac_default_prefix/share/config.site
2076 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2077fi
5213506e
RW
2078for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2079do
2080 test "x$ac_site_file" = xNONE && continue
671aa708 2081 if test -r "$ac_site_file"; then
5213506e
RW
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2083$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2084 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2085 . "$ac_site_file"
2086 fi
2087done
2088
2089if test -r "$cache_file"; then
1c710c3c
DJ
2090 # Some versions of bash will fail to source /dev/null (special
2091 # files actually), so we avoid doing that.
2092 if test -f "$cache_file"; then
5213506e
RW
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2094$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2095 case $cache_file in
5213506e
RW
2096 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097 *) . "./$cache_file";;
1c710c3c
DJ
2098 esac
2099 fi
671aa708 2100else
5213506e
RW
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2102$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2103 >$cache_file
2104fi
2105
2106# Check that the precious variables saved in the cache have kept the same
2107# value.
2108ac_cache_corrupted=false
5213506e 2109for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2110 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2111 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2112 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2113 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2114 case $ac_old_set,$ac_new_set in
2115 set,)
5213506e
RW
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2117$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2118 ac_cache_corrupted=: ;;
2119 ,set)
5213506e
RW
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2121$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2122 ac_cache_corrupted=: ;;
2123 ,);;
2124 *)
2125 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2126 # differences in whitespace do not lead to failure.
2127 ac_old_val_w=`echo x $ac_old_val`
2128 ac_new_val_w=`echo x $ac_new_val`
2129 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2131$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2132 ac_cache_corrupted=:
2133 else
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2135$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2136 eval $ac_var=\$ac_old_val
2137 fi
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2139$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2141$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2142 fi;;
2143 esac
2144 # Pass precious variables to config.status.
2145 if test "$ac_new_set" = set; then
2146 case $ac_new_val in
5213506e 2147 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2148 *) ac_arg=$ac_var=$ac_new_val ;;
2149 esac
2150 case " $ac_configure_args " in
2151 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2152 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2153 esac
2154 fi
2155done
2156if $ac_cache_corrupted; then
5213506e
RW
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2160$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2161 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2162fi
5213506e
RW
2163## -------------------- ##
2164## Main body of script. ##
2165## -------------------- ##
671aa708 2166
2aeb72e9
DD
2167ac_ext=c
2168ac_cpp='$CPP $CPPFLAGS'
2169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172
1c710c3c
DJ
2173
2174
2175
1c710c3c
DJ
2176
2177
0115d4a3 2178
1c710c3c 2179
ad33ff57
RW
2180
2181progname=$0
2182# if PWD already has a value, it is probably wrong.
2183if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2184
2185# Export original configure arguments for use by sub-configures.
2186# Quote arguments with shell meta charatcers.
2187TOPLEVEL_CONFIGURE_ARGUMENTS=
2188set -- "$progname" "$@"
2189for ac_arg
2190do
2191 case "$ac_arg" in
2192 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2193 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2194 # if the argument is of the form -foo=baz, quote the baz part only
2195 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2196 *) ;;
2197 esac
2198 # Add the quoted argument to the list.
2199 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2200done
2201if test "$silent" = yes; then
2202 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2203fi
2204# Remove the initial space we just introduced and, as these will be
2205# expanded by make, quote '$'.
2206TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2207
1c710c3c
DJ
2208
2209# Find the build, host, and target systems.
671aa708 2210ac_aux_dir=
5213506e
RW
2211for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212 for ac_t in install-sh install.sh shtool; do
2213 if test -f "$ac_dir/$ac_t"; then
2214 ac_aux_dir=$ac_dir
2215 ac_install_sh="$ac_aux_dir/$ac_t -c"
2216 break 2
2217 fi
2218 done
671aa708
NN
2219done
2220if test -z "$ac_aux_dir"; then
5213506e 2221 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2222fi
5213506e
RW
2223
2224# These three variables are undocumented and unsupported,
2225# and are intended to be withdrawn in a future Autoconf release.
2226# They can cause serious problems if a builder's source tree is in a directory
2227# whose full name contains unusual characters.
2228ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2229ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2230ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2231
671aa708 2232
1c710c3c 2233# Make sure we can run config.sub.
5213506e
RW
2234$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2235 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2236
2237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2238$as_echo_n "checking build system type... " >&6; }
2239if test "${ac_cv_build+set}" = set; then :
2240 $as_echo_n "(cached) " >&6
2241else
2242 ac_build_alias=$build_alias
2243test "x$ac_build_alias" = x &&
2244 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2245test "x$ac_build_alias" = x &&
2246 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2247ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2248 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2249
2250fi
2251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2252$as_echo "$ac_cv_build" >&6; }
2253case $ac_cv_build in
2254*-*-*) ;;
2255*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2256esac
1c710c3c 2257build=$ac_cv_build
5213506e
RW
2258ac_save_IFS=$IFS; IFS='-'
2259set x $ac_cv_build
2260shift
2261build_cpu=$1
2262build_vendor=$2
2263shift; shift
2264# Remember, the first character of IFS is used to create $*,
2265# except with old shells:
2266build_os=$*
2267IFS=$ac_save_IFS
2268case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2269
671aa708 2270
1c710c3c
DJ
2271 case ${build_alias} in
2272 "") build_noncanonical=${build} ;;
2273 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2274esac
2275
2276
af71363e 2277
1c710c3c
DJ
2278 case ${host_alias} in
2279 "") host_noncanonical=${build_noncanonical} ;;
2280 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2281esac
2282
af71363e 2283
1c710c3c
DJ
2284
2285 case ${target_alias} in
2286 "") target_noncanonical=${host_noncanonical} ;;
2287 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2288esac
2289
af71363e 2290
1c710c3c
DJ
2291
2292
2293test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2294 test "$program_prefix$program_suffix$program_transform_name" = \
2295 NONENONEs,x,x, &&
1c710c3c 2296 program_transform_name=s,y,y,
af71363e 2297
5213506e
RW
2298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2299$as_echo_n "checking host system type... " >&6; }
2300if test "${ac_cv_host+set}" = set; then :
2301 $as_echo_n "(cached) " >&6
af71363e 2302else
5213506e
RW
2303 if test "x$host_alias" = x; then
2304 ac_cv_host=$ac_cv_build
2305else
2306 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2307 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2308fi
1c710c3c 2309
af71363e 2310fi
5213506e
RW
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2312$as_echo "$ac_cv_host" >&6; }
2313case $ac_cv_host in
2314*-*-*) ;;
2315*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2316esac
1c710c3c 2317host=$ac_cv_host
5213506e
RW
2318ac_save_IFS=$IFS; IFS='-'
2319set x $ac_cv_host
2320shift
2321host_cpu=$1
2322host_vendor=$2
2323shift; shift
2324# Remember, the first character of IFS is used to create $*,
2325# except with old shells:
2326host_os=$*
2327IFS=$ac_save_IFS
2328case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2329
2330
5213506e
RW
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2332$as_echo_n "checking target system type... " >&6; }
2333if test "${ac_cv_target+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
1c710c3c 2335else
5213506e
RW
2336 if test "x$target_alias" = x; then
2337 ac_cv_target=$ac_cv_host
2338else
2339 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2341fi
1c710c3c
DJ
2342
2343fi
5213506e
RW
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2345$as_echo "$ac_cv_target" >&6; }
2346case $ac_cv_target in
2347*-*-*) ;;
2348*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2349esac
1c710c3c 2350target=$ac_cv_target
5213506e
RW
2351ac_save_IFS=$IFS; IFS='-'
2352set x $ac_cv_target
2353shift
2354target_cpu=$1
2355target_vendor=$2
2356shift; shift
2357# Remember, the first character of IFS is used to create $*,
2358# except with old shells:
2359target_os=$*
2360IFS=$ac_save_IFS
2361case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2362
2363
2364# The aliases save the names the user supplied, while $host etc.
2365# will get canonicalized.
2366test -n "$target_alias" &&
2367 test "$program_prefix$program_suffix$program_transform_name" = \
2368 NONENONEs,x,x, &&
2369 program_prefix=${target_alias}-
5213506e 2370
671aa708 2371test "$program_prefix" != NONE &&
5213506e 2372 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2373# Use a double $ so make ignores it.
2374test "$program_suffix" != NONE &&
5213506e
RW
2375 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2376# Double any \ or $.
1c710c3c 2377# By default was `s,x,x', remove it if useless.
5213506e
RW
2378ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2379program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2380
671aa708
NN
2381
2382
775956d0
NN
2383# Get 'install' or 'install-sh' and its variants.
2384# Find a good install program. We prefer a C program (faster),
2385# so one script is as good as another. But avoid the broken or
2386# incompatible versions:
2387# SysV /etc/install, /usr/sbin/install
2388# SunOS /usr/etc/install
2389# IRIX /sbin/install
2390# AIX /bin/install
1c710c3c 2391# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2392# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2393# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2394# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2395# OS/2's system install, which has a completely different semantic
775956d0 2396# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2397# Reject install programs that cannot install multiple files.
5213506e
RW
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2399$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2400if test -z "$INSTALL"; then
5213506e
RW
2401if test "${ac_cv_path_install+set}" = set; then :
2402 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2403else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH
2406do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
5213506e
RW
2409 # Account for people who put trailing slashes in PATH elements.
2410case $as_dir/ in #((
2411 ./ | .// | /[cC]/* | \
1c710c3c 2412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2414 /usr/ucb/* ) ;;
2415 *)
2416 # OSF1 and SCO ODT 3.0 have their own names for install.
2417 # Don't use installbsd from OSF since it installs stuff as root
2418 # by default.
2419 for ac_prog in ginstall scoinst install; do
2420 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2421 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2422 if test $ac_prog = install &&
1c710c3c 2423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2424 # AIX install. It has an incompatible calling convention.
2425 :
1c710c3c
DJ
2426 elif test $ac_prog = install &&
2427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428 # program-specific install script used by HP pwplus--don't use.
2429 :
775956d0 2430 else
38d24731
RW
2431 rm -rf conftest.one conftest.two conftest.dir
2432 echo one > conftest.one
2433 echo two > conftest.two
2434 mkdir conftest.dir
2435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2436 test -s conftest.one && test -s conftest.two &&
2437 test -s conftest.dir/conftest.one &&
2438 test -s conftest.dir/conftest.two
2439 then
2440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2441 break 3
2442 fi
775956d0
NN
2443 fi
2444 fi
2445 done
1c710c3c
DJ
2446 done
2447 ;;
2448esac
5213506e
RW
2449
2450 done
2451IFS=$as_save_IFS
1c710c3c 2452
38d24731 2453rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2454
2455fi
2456 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2457 INSTALL=$ac_cv_path_install
775956d0 2458 else
38d24731
RW
2459 # As a last resort, use the slow shell script. Don't cache a
2460 # value for INSTALL within a source directory, because that will
775956d0 2461 # break other packages using the cache if that directory is
38d24731 2462 # removed, or if the value is a relative name.
1c710c3c 2463 INSTALL=$ac_install_sh
775956d0
NN
2464 fi
2465fi
5213506e
RW
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2467$as_echo "$INSTALL" >&6; }
775956d0
NN
2468
2469# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2470# It thinks the first close brace ends the variable substitution.
2471test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2472
1c710c3c 2473test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2474
2475test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2476
5213506e
RW
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2478$as_echo_n "checking whether ln works... " >&6; }
2479if test "${acx_cv_prog_LN+set}" = set; then :
2480 $as_echo_n "(cached) " >&6
ad6717df
PB
2481else
2482 rm -f conftestdata_t
2483echo >conftestdata_f
2484if ln conftestdata_f conftestdata_t 2>/dev/null
2485then
2486 acx_cv_prog_LN=ln
2487else
2488 acx_cv_prog_LN=no
2489fi
2490rm -f conftestdata_f conftestdata_t
2491
2492fi
2493if test $acx_cv_prog_LN = no; then
2494 LN="cp"
5213506e
RW
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2496$as_echo "no, using $LN" >&6; }
ad6717df
PB
2497else
2498 LN="$acx_cv_prog_LN"
5213506e
RW
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2500$as_echo "yes" >&6; }
ad6717df
PB
2501fi
2502
5213506e
RW
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2504$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2505LN_S=$as_ln_s
2506if test "$LN_S" = "ln -s"; then
5213506e
RW
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508$as_echo "yes" >&6; }
fb0103e5 2509else
5213506e
RW
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2511$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2512fi
2513
87264276
PB
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2515$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2516if test "${ac_cv_path_SED+set}" = set; then :
2517 $as_echo_n "(cached) " >&6
2518else
2519 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2520 for ac_i in 1 2 3 4 5 6 7; do
2521 ac_script="$ac_script$as_nl$ac_script"
2522 done
2523 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2524 { ac_script=; unset ac_script;}
2525 if test -z "$SED"; then
2526 ac_path_SED_found=false
2527 # Loop through the user's path and test for each of PROGNAME-LIST
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_prog in sed gsed; do
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2536 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2537# Check for GNU ac_path_SED and select it if it is found.
2538 # Check for GNU $ac_path_SED
2539case `"$ac_path_SED" --version 2>&1` in
2540*GNU*)
2541 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2542*)
2543 ac_count=0
2544 $as_echo_n 0123456789 >"conftest.in"
2545 while :
2546 do
2547 cat "conftest.in" "conftest.in" >"conftest.tmp"
2548 mv "conftest.tmp" "conftest.in"
2549 cp "conftest.in" "conftest.nl"
2550 $as_echo '' >> "conftest.nl"
2551 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2553 as_fn_arith $ac_count + 1 && ac_count=$as_val
2554 if test $ac_count -gt ${ac_path_SED_max-0}; then
2555 # Best one so far, save it but keep looking for a better one
2556 ac_cv_path_SED="$ac_path_SED"
2557 ac_path_SED_max=$ac_count
2558 fi
2559 # 10*(2^10) chars as input seems more than enough
2560 test $ac_count -gt 10 && break
2561 done
2562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2563esac
2564
2565 $ac_path_SED_found && break 3
2566 done
2567 done
2568 done
2569IFS=$as_save_IFS
2570 if test -z "$ac_cv_path_SED"; then
2571 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2572 fi
2573else
2574 ac_cv_path_SED=$SED
2575fi
2576
2577fi
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2579$as_echo "$ac_cv_path_SED" >&6; }
2580 SED="$ac_cv_path_SED"
2581 rm -f conftest.sed
2582
2583for ac_prog in gawk mawk nawk awk
2584do
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586set dummy $ac_prog; ac_word=$2
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588$as_echo_n "checking for $ac_word... " >&6; }
2589if test "${ac_cv_prog_AWK+set}" = set; then :
2590 $as_echo_n "(cached) " >&6
2591else
2592 if test -n "$AWK"; then
2593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_AWK="$ac_prog"
2603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2605 fi
2606done
2607 done
2608IFS=$as_save_IFS
2609
2610fi
2611fi
2612AWK=$ac_cv_prog_AWK
2613if test -n "$AWK"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2615$as_echo "$AWK" >&6; }
2616else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618$as_echo "no" >&6; }
2619fi
2620
2621
2622 test -n "$AWK" && break
2623done
2624
775956d0 2625
ee6a22df
L
2626srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2627
2628# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2629# a relative path.
2630if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2631 INSTALL="${srcpwd}/install-sh -c"
2632fi
2633
671aa708
NN
2634# Set srcdir to "." if that's what it is.
2635# This is important for multilib support.
2636pwd=`${PWDCMD-pwd}`
671aa708
NN
2637if test "${pwd}" = "${srcpwd}" ; then
2638 srcdir=.
79c06341
JL
2639fi
2640
671aa708 2641topsrcdir=$srcpwd
5d4a5ee6 2642
671aa708 2643extra_host_args=
afabd8e6 2644
671aa708
NN
2645### To add a new directory to the tree, first choose whether it is a target
2646### or a host dependent tool. Then put it into the appropriate list
2647### (library or tools, host or target), doing a dependency sort.
79c06341 2648
1c710c3c 2649# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2650# configdirs, or target_configdirs; see the serialization section below.
79c06341 2651
1c710c3c
DJ
2652# Dependency sorting is only needed when *configuration* must be done in
2653# a particular order. In all cases a dependency should be specified in
671aa708 2654# the Makefile, whether or not it's implicitly specified here.
79c06341 2655
671aa708
NN
2656# Double entries in build_configdirs, configdirs, or target_configdirs may
2657# cause circular dependencies and break everything horribly.
79c06341 2658
23f6b2f9
PB
2659# these library is used by various programs built for the build
2660# environment
2661#
2662build_libs="build-libiberty"
2663
2664# these tools are built for the build environment
85bfb75e 2665build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2666
671aa708
NN
2667# these libraries are used by various programs built for the host environment
2668#
85bfb75e 2669host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
671aa708 2670
671aa708
NN
2671# these tools are built for the host environment
2672# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2673# know that we are building the simulator.
2674# binutils, gas and ld appear in that order because it makes sense to run
2675# "make check" in that particular order.
38e3d868 2676# If --enable-gold is used, "gold" may replace "ld".
85bfb75e 2677host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
671aa708
NN
2678
2679# libgcj represents the runtime libraries only used by gcj.
2680libgcj="target-libffi \
671aa708 2681 target-zlib \
671aa708
NN
2682 target-libjava"
2683
2684# these libraries are built for the target environment, and are built after
2685# the host libraries and the host tools (which may be a cross compiler)
8499116a 2686# Note that libiberty is not a target library.
291f172e 2687target_libraries="target-libgcc \
671aa708
NN
2688 target-libgloss \
2689 target-newlib \
6d3b5aea 2690 target-libgomp \
0a35513e 2691 target-libitm \
cb543528 2692 target-libstdc++-v3 \
6de9cd9a 2693 target-libmudflap \
77008252 2694 target-libssp \
1ec601bf 2695 target-libquadmath \
6de9cd9a 2696 target-libgfortran \
7cd0cf9c 2697 target-boehm-gc \
77d187bc 2698 ${libgcj} \
d9cdb878 2699 target-libobjc \
632e2a07
ILT
2700 target-libada \
2701 target-libgo"
671aa708 2702
4dbda6f0
NN
2703# these tools are built using the target libraries, and are intended to
2704# run only in the target environment
671aa708 2705#
4dbda6f0 2706# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2707# list belongs in this list.
671aa708 2708#
85bfb75e 2709target_tools="target-rda"
79c06341 2710
671aa708 2711################################################################################
79c06341 2712
671aa708
NN
2713## All tools belong in one of the four categories, and are assigned above
2714## We assign ${configdirs} this way to remove all embedded newlines. This
2715## is important because configure will choke if they ever get through.
2716## ${configdirs} is directories we build using the host tools.
2717## ${target_configdirs} is directories we build using the target tools.
671aa708 2718configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2719target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2720build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2721
ac9e6043
RW
2722
2723
671aa708 2724################################################################################
79c06341 2725
671aa708 2726srcname="gnu development package"
79c06341 2727
671aa708
NN
2728# This gets set non-empty for some net releases of packages.
2729appdirs=""
79c06341 2730
671aa708
NN
2731# Define is_cross_compiler to save on calls to 'test'.
2732is_cross_compiler=
2733if test x"${host}" = x"${target}" ; then
2734 is_cross_compiler=no
79c06341 2735else
671aa708 2736 is_cross_compiler=yes
1c710c3c 2737fi
79c06341 2738
b4acb5ef 2739# Find the build and target subdir names.
8b87bb96 2740
2e9e6f68
DJ
2741# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2742# have matching libraries, they should use host libraries: Makefile.tpl
2743# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2744# However, they still use the build modules, because the corresponding
2745# host modules (e.g. bison) are only built for the host when bootstrap
2746# finishes. So:
2747# - build_subdir is where we find build modules, and never changes.
2748# - build_libsubdir is where we find build libraries, and can be overridden.
2749
2750# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2751build_subdir="build-${build_noncanonical}"
1c710c3c 2752
5213506e
RW
2753# Check whether --with-build-libsubdir was given.
2754if test "${with_build_libsubdir+set}" = set; then :
2755 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2756else
2757 build_libsubdir="$build_subdir"
5213506e
RW
2758fi
2759
215c351a
PB
2760# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2761if ( test $srcdir = . && test -d gcc ) \
2762 || test -d $srcdir/../host-${host_noncanonical}; then
2763 host_subdir="host-${host_noncanonical}"
2764else
2765 host_subdir=.
2766fi
8b87bb96
NN
2767# No prefix.
2768target_subdir=${target_noncanonical}
1c710c3c 2769
0db770bd
RW
2770# Be sure to cover against remnants of an in-tree build.
2771if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2772 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2773Use a pristine source tree when building in a separate tree" "$LINENO" 5
2774fi
79c06341 2775
671aa708
NN
2776# Skipdirs are removed silently.
2777skipdirs=
2778# Noconfigdirs are removed loudly.
2779noconfigdirs=""
79c06341 2780
671aa708
NN
2781use_gnu_ld=
2782# Make sure we don't let GNU ld be added if we didn't want it.
2783if test x$with_gnu_ld = xno ; then
2784 use_gnu_ld=no
5afab7ad 2785 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2786fi
2787
671aa708
NN
2788use_gnu_as=
2789# Make sure we don't let GNU as be added if we didn't want it.
2790if test x$with_gnu_as = xno ; then
2791 use_gnu_as=no
2792 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2793fi
2794
d7f09764
DN
2795use_included_zlib=
2796# Make sure we don't let ZLIB be added if we didn't want it.
2797if test x$with_system_zlib = xyes ; then
2798 use_included_zlib=no
2799 noconfigdirs="$noconfigdirs zlib"
2800fi
2801
1c710c3c 2802# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2803# it's not even worth trying to configure, much less build, that tool.
79c06341 2804
671aa708
NN
2805case ${with_x} in
2806 yes | "") ;; # the default value for this tree is that X11 is available
2807 no)
b4f96efe 2808 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2809 # We won't be able to build gdbtk without X.
1c710c3c 2810 enable_gdbtk=no
671aa708
NN
2811 ;;
2812 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2813esac
79c06341 2814
1bcce263 2815# Some are only suitable for cross toolchains.
671aa708
NN
2816# Remove these if host=target.
2817cross_only="target-libgloss target-newlib target-opcodes"
2818
2819case $is_cross_compiler in
2820 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2821esac
79c06341 2822
671aa708
NN
2823# If both --with-headers and --with-libs are specified, default to
2824# --without-newlib.
ee6a22df
L
2825if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2826 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2827 if test x"${with_newlib}" = x ; then
2828 with_newlib=no
2829 fi
79c06341
JL
2830fi
2831
671aa708
NN
2832# Recognize --with-newlib/--without-newlib.
2833case ${with_newlib} in
2834 no) skipdirs="${skipdirs} target-newlib" ;;
2835 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2836esac
79c06341 2837
21539e2e
MK
2838# Handle --enable-gold, --enable-ld.
2839# --disable-gold [--enable-ld]
2840# Build only ld. Default option.
9580395f
L
2841# --enable-gold [--enable-ld]
2842# Build both gold and ld. Install gold as "ld.gold", install ld
2843# as "ld.bfd" and "ld".
2844# --enable-gold=default [--enable-ld]
21539e2e
MK
2845# Build both gold and ld. Install gold as "ld.gold" and "ld",
2846# install ld as "ld.bfd".
2847# --enable-gold[=default] --disable-ld
2848# Build only gold, which is then installed as both "ld.gold" and "ld".
2849# --enable-gold --enable-ld=default
9580395f
L
2850# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2851# and ld.bfd).
21539e2e
MK
2852# In other words, ld is default
2853# --enable-gold=default --enable-ld=default
2854# Error.
2855
2856default_ld=
5213506e
RW
2857# Check whether --enable-gold was given.
2858if test "${enable_gold+set}" = set; then :
2859 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2860else
2861 ENABLE_GOLD=no
5213506e
RW
2862fi
2863
21539e2e
MK
2864case "${ENABLE_GOLD}" in
2865 yes|default)
38e3d868
RM
2866 # Check for ELF target.
2867 is_elf=no
2868 case "${target}" in
2869 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2870 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a
JM
2871 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2872 | *-*-solaris2* | *-*-nto*)
38e3d868
RM
2873 case "${target}" in
2874 *-*-linux*aout* | *-*-linux*oldld*)
2875 ;;
2876 *)
2877 is_elf=yes
2878 ;;
2879 esac
2880 esac
2881
2882 if test "$is_elf" = "yes"; then
2883 # Check for target supported by gold.
5afab7ad 2884 case "${target}" in
38e3d868 2885 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
21539e2e
MK
2886 configdirs="$configdirs gold"
2887 if test x${ENABLE_GOLD} = xdefault; then
2888 default_ld=gold
2889 fi
38e3d868 2890 ENABLE_GOLD=yes
5afab7ad
ILT
2891 ;;
2892 esac
38e3d868
RM
2893 fi
2894 ;;
2895 no)
2896 ;;
2897 *)
2898 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2899 ;;
21539e2e
MK
2900esac
2901
2902# Check whether --enable-ld was given.
2903if test "${enable_ld+set}" = set; then :
2904 enableval=$enable_ld; ENABLE_LD=$enableval
2905else
2906 ENABLE_LD=yes
2907fi
2908
2909
2910case "${ENABLE_LD}" in
2911 default)
9580395f 2912 if test x${default_ld} != x; then
21539e2e
MK
2913 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2914 fi
2915 ;;
2916 yes)
2917 ;;
2918 no)
2919 if test x${ENABLE_GOLD} != xyes; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2921$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2922 fi
2923 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2924 ;;
2925 *)
2926 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2927 ;;
2928esac
5afab7ad 2929
671aa708 2930# Configure extra directories which are host specific
79c06341 2931
671aa708
NN
2932case "${host}" in
2933 *-cygwin*)
2934 configdirs="$configdirs libtermcap" ;;
2935esac
79c06341 2936
4fab7234
HPN
2937# A target can indicate whether a language isn't supported for some reason.
2938# Only spaces may be used in this macro; not newlines or tabs.
2939unsupported_languages=
2940
1c710c3c 2941# Remove more programs from consideration, based on the host or
671aa708
NN
2942# target this usually means that a port of the program doesn't
2943# exist yet.
ec8d6ddc 2944
671aa708 2945case "${host}" in
111eeb6e 2946 i[3456789]86-*-msdosdjgpp*)
c9bdb152 2947 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 2948 ;;
671aa708 2949esac
ec8d6ddc 2950
6de9cd9a 2951
87e6d9dc
TB
2952# Check whether --enable-libquadmath was given.
2953if test "${enable_libquadmath+set}" = set; then :
2954 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2955else
2956 ENABLE_LIBQUADMATH=yes
2957fi
2958
2959if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2960 noconfigdirs="$noconfigdirs target-libquadmath"
2961fi
2962
2963
2964# Check whether --enable-libquadmath-support was given.
2965if test "${enable_libquadmath_support+set}" = set; then :
2966 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2967else
2968 ENABLE_LIBQUADMATH_SUPPORT=yes
2969fi
2970
2971enable_libquadmath_support=
2972if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2973 enable_libquadmath_support=no
2974fi
2975
2976
5213506e
RW
2977# Check whether --enable-libada was given.
2978if test "${enable_libada+set}" = set; then :
2979 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
2980else
2981 ENABLE_LIBADA=yes
5213506e
RW
2982fi
2983
d9cdb878 2984if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2985 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2986fi
2987
5213506e
RW
2988# Check whether --enable-libssp was given.
2989if test "${enable_libssp+set}" = set; then :
2990 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
2991else
2992 ENABLE_LIBSSP=yes
5213506e
RW
2993fi
2994
ef0087a7 2995
671aa708
NN
2996# Save it here so that, even in case of --enable-libgcj, if the Java
2997# front-end isn't enabled, we still get libgcj disabled.
2998libgcj_saved=$libgcj
2999case $enable_libgcj in
3000yes)
3001 # If we reset it here, it won't get added to noconfigdirs in the
3002 # target-specific build rules, so it will be forcibly enabled
3003 # (unless the Java language itself isn't enabled).
3004 libgcj=
3005 ;;
3006no)
3007 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3008 # Don't disable libffi, though, other languages use it.
3009 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3010 # Clear libgcj_saved so that even if java is enabled libffi won't be
3011 # built.
3012 libgcj_saved=
671aa708
NN
3013 ;;
3014esac
ec8d6ddc 3015
a4a2c37d
MK
3016# Check whether --enable-static-libjava was given.
3017if test "${enable_static_libjava+set}" = set; then :
3018 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3019else
3020 ENABLE_STATIC_LIBJAVA=no
3021fi
3022
3023enable_static_libjava=
3024if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3025 enable_static_libjava=yes
3026fi
3027
3028if test x$enable_static_libjava != xyes ; then
3029 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3030fi
3031
6de9cd9a 3032
27079765
AH
3033# Disable libmudflap on some systems.
3034if test x$enable_libmudflap = x ; then
dfcada9a 3035 case "${target}" in
416ac4d4 3036 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3037 # Enable libmudflap by default in GNU and friends.
dfcada9a 3038 ;;
a3e8d8b4
LR
3039 *-*-freebsd*)
3040 # Enable libmudflap by default in FreeBSD.
3041 ;;
dfcada9a
MM
3042 *)
3043 # Disable it by default everywhere else.
3044 noconfigdirs="$noconfigdirs target-libmudflap"
3045 ;;
3046 esac
27079765 3047fi
6de9cd9a 3048
27079765
AH
3049# Disable libgomp on non POSIX hosted systems.
3050if test x$enable_libgomp = x ; then
953ff289
DN
3051 # Enable libgomp by default on hosted POSIX systems.
3052 case "${target}" in
416ac4d4 3053 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3054 ;;
8c6d158a 3055 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3056 ;;
6de66370 3057 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 3058 ;;
cac90078 3059 *-*-darwin* | *-*-aix*)
953ff289
DN
3060 ;;
3061 *)
3062 noconfigdirs="$noconfigdirs target-libgomp"
3063 ;;
3064 esac
27079765 3065fi
953ff289 3066
e948157d
RH
3067# Disable libitm on unsupported systems.
3068if test -d ${srcdir}/libitm; then
3069 if test x$enable_libitm = x; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3071$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3072 if (srcdir=${srcdir}/libitm; \
3073 . ${srcdir}/configure.tgt; \
3074 test -n "$UNSUPPORTED")
3075 then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3077$as_echo "no" >&6; }
e948157d
RH
3078 noconfigdirs="$noconfigdirs target-libitm"
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3081$as_echo "yes" >&6; }
e948157d
RH
3082 fi
3083 fi
0a35513e
AH
3084fi
3085
1e9e0e23
JM
3086# Disable libssp for some systems.
3087case "${target}" in
3088 avr-*-*)
b318fb4b 3089 # No hosted I/O support.
1e9e0e23
JM
3090 noconfigdirs="$noconfigdirs target-libssp"
3091 ;;
3092 powerpc-*-aix* | rs6000-*-aix*)
3093 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3094 ;;
3095 rl78-*-*)
3096 # Dereferencing -1 is a compile-time error
3097 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3098 ;;
1e9e0e23
JM
3099esac
3100
1e9e0e23
JM
3101# Disable libstdc++-v3 for some systems.
3102case "${target}" in
3103 *-*-vxworks*)
3104 # VxWorks uses the Dinkumware C++ library.
3105 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3106 ;;
3107 arm*-wince-pe*)
3108 # the C++ libraries don't build on top of CE's C libraries
3109 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3110 ;;
3111 avr-*-*)
3112 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3113 ;;
3114esac
3115
3116# Disable Fortran for some systems.
3117case "${target}" in
3118 mmix-*-*)
3119 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3120 unsupported_languages="$unsupported_languages fortran"
3121 ;;
3122esac
3123
80f81134 3124# Disable Java if libffi is not supported.
2909494b 3125case "${target}" in
80f81134
JM
3126 alpha*-*-*)
3127 ;;
3128 arm*-*-*)
3129 ;;
3130 cris-*-*)
3131 ;;
3132 frv-*-*)
3133 ;;
3134 hppa*-*-linux*)
3135 ;;
3136 hppa*-*-hpux*)
3137 ;;
3138 i?86-*-*)
3139 ;;
3140 ia64*-*-*)
3141 ;;
3142 m32r*-*-*)
3143 ;;
3144 m68k-*-*)
3145 ;;
3146 mips-sgi-irix6.* | mips*-*-rtems*)
3147 ;;
3148 mips*-*-linux*)
3149 ;;
3150 powerpc*-*-linux*)
3151 ;;
3152 powerpc-*-darwin*)
3153 ;;
3154 powerpc-*-aix* | rs6000-*-aix*)
3155 ;;
3156 powerpc-*-freebsd*)
3157 ;;
3158 powerpc64-*-freebsd*)
3159 ;;
3160 powerpc*-*-rtems*)
2909494b 3161 ;;
80f81134
JM
3162 s390-*-* | s390x-*-*)
3163 ;;
3164 sh-*-* | sh[34]*-*-*)
3165 ;;
3166 sh64-*-* | sh5*-*-*)
3167 ;;
3168 sparc*-*-*)
3169 ;;
3170 x86_64-*-*)
3171 ;;
3172 *-*-*)
3173 unsupported_languages="$unsupported_languages java"
3174 ;;
3175esac
3176
3177# Disable Java, libgcj or related libraries for some systems.
3178case "${target}" in
2909494b
JM
3179 powerpc-*-darwin*)
3180 ;;
3181 i[3456789]86-*-darwin*)
3182 ;;
3183 x86_64-*-darwin[912]*)
3184 ;;
3185 *-*-darwin*)
3186 noconfigdirs="$noconfigdirs ${libgcj}"
3187 ;;
2909494b
JM
3188 *-*-netware*)
3189 noconfigdirs="$noconfigdirs ${libgcj}"
3190 ;;
3191 *-*-rtems*)
3192 noconfigdirs="$noconfigdirs ${libgcj}"
3193 ;;
3194 *-*-tpf*)
3195 noconfigdirs="$noconfigdirs ${libgcj}"
3196 ;;
3197 *-*-uclinux*)
3198 noconfigdirs="$noconfigdirs ${libgcj}"
3199 ;;
3200 *-*-vxworks*)
3201 noconfigdirs="$noconfigdirs ${libgcj}"
3202 ;;
2909494b
JM
3203 alpha*-*-*vms*)
3204 noconfigdirs="$noconfigdirs ${libgcj}"
3205 ;;
80f81134 3206 arm-wince-pe)
2909494b
JM
3207 noconfigdirs="$noconfigdirs ${libgcj}"
3208 ;;
2909494b
JM
3209 arm*-*-symbianelf*)
3210 noconfigdirs="$noconfigdirs ${libgcj}"
3211 ;;
2909494b 3212 bfin-*-*)
2909494b
JM
3213 noconfigdirs="$noconfigdirs target-boehm-gc"
3214 ;;
2909494b
JM
3215 cris-*-* | crisv32-*-*)
3216 unsupported_languages="$unsupported_languages java"
3217 case "${target}" in
3218 *-*-linux*)
3219 ;;
3220 *) # See PR46792 regarding target-libffi.
3221 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3222 esac
3223 ;;
2909494b
JM
3224 hppa*64*-*-linux*)
3225 # In this case, it's because the hppa64-linux target is for
3226 # the kernel only at this point and has no libc, and thus no
3227 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3228 unsupported_languages="$unsupported_languages java"
2909494b 3229 ;;
fddf9ee7 3230 hppa*64*-*-hpux*)
2909494b
JM
3231 noconfigdirs="$noconfigdirs ${libgcj}"
3232 ;;
3233 hppa*-hp-hpux11*)
3234 ;;
fddf9ee7 3235 hppa*-*-hpux*)
2909494b
JM
3236 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3237 # build on HP-UX 10.20.
3238 noconfigdirs="$noconfigdirs ${libgcj}"
3239 ;;
2909494b
JM
3240 ia64*-*-*vms*)
3241 noconfigdirs="$noconfigdirs ${libgcj}"
3242 ;;
2909494b
JM
3243 i[3456789]86-w64-mingw*)
3244 noconfigdirs="$noconfigdirs ${libgcj}"
3245 ;;
3246 i[3456789]86-*-mingw*)
3247 noconfigdirs="$noconfigdirs ${libgcj}"
3248 ;;
3249 x86_64-*-mingw*)
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3251 ;;
2909494b
JM
3252 mmix-*-*)
3253 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3254 ;;
3255 powerpc-*-aix*)
3256 # copied from rs6000-*-* entry
3257 noconfigdirs="$noconfigdirs ${libgcj}"
3258 ;;
2909494b
JM
3259 rs6000-*-aix*)
3260 noconfigdirs="$noconfigdirs ${libgcj}"
3261 ;;
2909494b
JM
3262 mips*-*-irix6*)
3263 # Linking libjava exceeds command-line length limits on at least
3264 # IRIX 6.2, but not on IRIX 6.5.
3265 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3266 # <oldham@codesourcery.com>
3267 noconfigdirs="$noconfigdirs ${libgcj}"
3268 ;;
2909494b
JM
3269 *-*-lynxos*)
3270 noconfigdirs="$noconfigdirs ${libgcj}"
3271 ;;
2909494b
JM
3272esac
3273
c03353e2
RIL
3274# Default libgloss CPU subdirectory.
3275libgloss_dir="$target_cpu"
6de9cd9a 3276
fbcf0dca
JM
3277case "${target}" in
3278 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3279 libgloss_dir=wince
3280 ;;
3281 arm*-*-*)
3282 libgloss_dir=arm
3283 ;;
3284 cris-*-* | crisv32-*-*)
3285 libgloss_dir=cris
3286 ;;
3287 hppa*-*-*)
3288 libgloss_dir=pa
3289 ;;
3290 i[3456789]86-*-*)
3291 libgloss_dir=i386
3292 ;;
3293 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3294 libgloss_dir=m68hc11
3295 ;;
3296 m68*-*-* | fido-*-*)
3297 libgloss_dir=m68k
3298 ;;
3299 mips*-*-*)
3300 libgloss_dir=mips
3301 ;;
3302 powerpc*-*-*)
3303 libgloss_dir=rs6000
3304 ;;
3305 sparc*-*-*)
3306 libgloss_dir=sparc
3307 ;;
3308esac
3309
6a789d5e 3310# Disable newlib and libgloss for various target OSes.
671aa708 3311case "${target}" in
6a789d5e
JM
3312 alpha*-dec-osf*)
3313 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3314 ;;
3315 i[3456789]86-*-linux*)
3316 # This section makes it possible to build newlib natively on linux.
3317 # If we are using a cross compiler then don't configure newlib.
3318 if test x${is_cross_compiler} != xno ; then
3319 noconfigdirs="$noconfigdirs target-newlib"
3320 fi
3321 noconfigdirs="$noconfigdirs target-libgloss"
3322 # If we are not using a cross compiler, do configure newlib.
3323 # Note however, that newlib will only be configured in this situation
3324 # if the --with-newlib option has been given, because otherwise
3325 # 'target-newlib' will appear in skipdirs.
3326 ;;
3327 i[3456789]86-*-rdos*)
3328 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3329 ;;
3330 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3331 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3332 ;;
3333 sparc-*-sunos4*)
3334 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3335 ;;
3336 *-*-aix*)
3337 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3338 ;;
3339 *-*-beos*)
3340 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3341 ;;
671aa708 3342 *-*-chorusos)
0036370f 3343 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3344 ;;
6a789d5e
JM
3345 *-*-dragonfly*)
3346 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3347 ;;
3348 *-*-freebsd*)
3349 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3350 ;;
3351 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3352 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3353 ;;
3354 *-*-lynxos*)
3355 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3356 ;;
3357 *-*-mingw*)
3358 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3359 ;;
3360 *-*-netbsd*)
3361 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3362 ;;
3363 *-*-netware*)
3364 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3365 ;;
3366 *-*-tpf*)
3367 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3368 ;;
3369 *-*-uclinux*)
3370 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3371 ;;
3372 *-*-vxworks*)
3373 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3374 ;;
3375esac
3376
3377case "${target}" in
3378 *-*-chorusos)
3379 ;;
75eeae1a 3380 powerpc-*-darwin*)
e1514c3f 3381 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3382 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3383 ;;
354ebf88
RW
3384 i[3456789]86-*-darwin*)
3385 noconfigdirs="$noconfigdirs ld gprof"
3386 noconfigdirs="$noconfigdirs sim target-rda"
3387 ;;
3388 x86_64-*-darwin[912]*)
0db3a858
TG
3389 noconfigdirs="$noconfigdirs ld gas gprof"
3390 noconfigdirs="$noconfigdirs sim target-rda"
3391 ;;
42c1cd8a
AT
3392 *-*-darwin*)
3393 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3394 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3395 ;;
8c6d158a 3396 *-*-dragonfly*)
8c6d158a 3397 ;;
c3f84f61 3398 *-*-freebsd*)
6de9cd9a
DN
3399 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3400 && test -f /usr/local/include/gmp.h; then
3401 with_gmp=/usr/local
3402 fi
6de9cd9a 3403 ;;
ef4e7569
US
3404 *-*-kaos*)
3405 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3406 noconfigdirs="$noconfigdirs target-libgloss"
3407 ;;
671aa708 3408 *-*-netbsd*)
671aa708 3409 ;;
61fec9ff 3410 *-*-netware*)
671aa708
NN
3411 ;;
3412 *-*-rtems*)
2909494b 3413 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3414 ;;
a8ba31f2
EC
3415 # The tpf target doesn't support gdb yet.
3416 *-*-tpf*)
6a789d5e 3417 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3418 ;;
5785c0ed 3419 *-*-uclinux*)
6a789d5e 3420 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3421 ;;
671aa708 3422 *-*-vxworks*)
671aa708
NN
3423 ;;
3424 alpha*-dec-osf*)
3425 # ld works, but does not support shared libraries.
671aa708 3426 # gas doesn't generate exception information.
6a789d5e 3427 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3428 ;;
3429 alpha*-*-*vms*)
2909494b 3430 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3431 ;;
671aa708
NN
3432 alpha*-*-*)
3433 # newlib is not 64 bit ready
2909494b 3434 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3435 ;;
671aa708 3436 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3437 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3438 ;;
3439 arc-*-*)
ebb9f8b0 3440 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3441 ;;
671aa708 3442 arm-*-pe*)
2909494b 3443 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3444 ;;
671aa708 3445 arm-*-riscix*)
0036370f 3446 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3447 ;;
671aa708 3448 c4x-*-* | tic4x-*-*)
0036370f 3449 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3450 ;;
0036370f
JM
3451 tic54x-*-*)
3452 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3453 ;;
c993ae60 3454 cr16-*-*)
2909494b 3455 noconfigdirs="$noconfigdirs gdb"
c993ae60 3456 ;;
671aa708 3457 d10v-*-*)
0036370f 3458 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3459 ;;
3460 d30v-*-*)
0036370f 3461 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3462 ;;
3463 fr30-*-elf*)
2909494b 3464 noconfigdirs="$noconfigdirs gdb"
671aa708 3465 ;;
55f2d967 3466 moxie-*-*)
55f2d967
AG
3467 noconfigdirs="$noconfigdirs gprof"
3468 ;;
671aa708 3469 h8300*-*-*)
2909494b 3470 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3471 ;;
3472 h8500-*-*)
0036370f 3473 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3474 ;;
ee6a22df 3475 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3476 ;;
4569f85e 3477 hppa*64*-*-linux*)
671aa708 3478 ;;
56f8587a 3479 hppa*-*-linux*)
3e732ba0 3480 ;;
671aa708 3481 hppa*-*-*elf* | \
671aa708
NN
3482 hppa*-*-lites* | \
3483 hppa*-*-openbsd* | \
3484 hppa*64*-*-*)
671aa708 3485 ;;
2a332582 3486 hppa*-hp-hpux11*)
1bcce263 3487 noconfigdirs="$noconfigdirs ld"
2a332582 3488 ;;
c03353e2 3489 hppa*-*-pro*)
c03353e2 3490 ;;
671aa708 3491 hppa*-*-*)
2909494b 3492 noconfigdirs="$noconfigdirs ld"
671aa708 3493 ;;
fb87ad5d 3494 i960-*-*)
0036370f 3495 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3496 ;;
671aa708
NN
3497 ia64*-*-elf*)
3498 # No gdb support yet.
1bcce263 3499 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3500 ;;
3501 ia64*-**-hpux*)
5a2931d1 3502 # No ld support yet.
2909494b 3503 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3504 ;;
52535a64
DR
3505 ia64*-*-*vms*)
3506 # No gdb or ld support yet.
2909494b 3507 noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
52535a64 3508 ;;
ef4c4300 3509 i[3456789]86-w64-mingw*)
ef4c4300
KT
3510 ;;
3511 i[3456789]86-*-mingw*)
b91f0a41 3512 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3513 ;;
671aa708
NN
3514 *-*-cygwin*)
3515 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3516 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3517 # always build newlib if winsup directory is present.
b91f0a41 3518 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3519 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3520 elif test -d "$srcdir/newlib"; then
b91f0a41 3521 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3522 fi
1c710c3c 3523 ;;
f2a0e225 3524 i[3456789]86-*-pe)
ebb9f8b0 3525 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3526 ;;
f2a0e225 3527 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3528 # The linker does not yet know about weak symbols in COFF,
3529 # and is not configured to handle mixed ELF and COFF.
0036370f 3530 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3531 ;;
f2a0e225 3532 i[3456789]86-*-sco*)
0036370f 3533 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3534 ;;
fbdd5d87 3535 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3536 noconfigdirs="$noconfigdirs target-libgloss"
3537 ;;
f2a0e225 3538 i[3456789]86-*-sysv4*)
0036370f 3539 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3540 ;;
f2a0e225 3541 i[3456789]86-*-beos*)
6a789d5e 3542 noconfigdirs="$noconfigdirs gdb"
3aa83176 3543 ;;
d1f8db0c 3544 i[3456789]86-*-rdos*)
6a789d5e 3545 noconfigdirs="$noconfigdirs gdb"
c03353e2 3546 ;;
671aa708 3547 mmix-*-*)
2909494b 3548 noconfigdirs="$noconfigdirs gdb"
671aa708 3549 ;;
ab34901f 3550 mt-*-*)
79dd769c
AH
3551 noconfigdirs="$noconfigdirs sim"
3552 ;;
671aa708
NN
3553 powerpc-*-aix*)
3554 # copied from rs6000-*-* entry
6a789d5e 3555 noconfigdirs="$noconfigdirs gprof"
671aa708 3556 ;;
4569f85e 3557 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3558 target_configdirs="$target_configdirs target-winsup"
0036370f 3559 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3560 # always build newlib.
3561 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3562 ;;
3563 # This is temporary until we can link against shared libraries
3564 powerpcle-*-solaris*)
0036370f 3565 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3566 ;;
3567 powerpc-*-beos*)
6a789d5e 3568 noconfigdirs="$noconfigdirs gdb"
671aa708 3569 ;;
671aa708 3570 rs6000-*-lynxos*)
6a789d5e 3571 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3572 ;;
3573 rs6000-*-aix*)
6a789d5e 3574 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3575 ;;
3576 rs6000-*-*)
2909494b 3577 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3578 ;;
3579 m68k-apollo-*)
0036370f 3580 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3581 ;;
ca9fe997 3582 microblaze*)
2909494b 3583 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3584 ;;
d9dced13 3585 mips*-sde-elf*)
d9dced13
RS
3586 if test x$with_newlib = xyes; then
3587 noconfigdirs="$noconfigdirs gprof"
3588 fi
d9dced13 3589 ;;
671aa708 3590 mips*-*-irix5*)
0036370f 3591 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3592 ;;
3593 mips*-*-irix6*)
2909494b 3594 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3595 ;;
671aa708 3596 mips*-*-bsd*)
0036370f 3597 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3598 ;;
671aa708 3599 mips*-*-linux*)
671aa708
NN
3600 ;;
3601 mips*-*-*)
2909494b 3602 noconfigdirs="$noconfigdirs gprof"
671aa708 3603 ;;
669f01d8 3604 sh-*-* | sh64-*-*)
ea2002ba
CB
3605 case "${target}" in
3606 sh*-*-elf)
2909494b 3607 ;;
ea2002ba 3608 *)
2909494b 3609 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3610 esac
671aa708 3611 ;;
671aa708 3612 sparc-*-sunos4*)
6a789d5e 3613 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3614 use_gnu_ld=no
3615 fi
3616 ;;
b42f0d7e 3617 tic6x-*-*)
0d557ff8 3618 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3619 ;;
db1d217c
WL
3620 tilepro-*-* | tilegx-*-*)
3621 noconfigdirs="$noconfigdirs sim"
3622 ;;
671aa708 3623 v810-*-*)
0036370f 3624 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3625 ;;
3626 vax-*-*)
2909494b 3627 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3628 ;;
671aa708 3629esac
79c06341 3630
671aa708
NN
3631# If we aren't building newlib, then don't build libgloss, since libgloss
3632# depends upon some newlib header files.
3633case "${noconfigdirs}" in
3634 *target-libgloss*) ;;
3635 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3636esac
3637
671aa708 3638# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3639host_makefile_frag=/dev/null
3640if test -d ${srcdir}/config ; then
3641case "${host}" in
f2a0e225 3642 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3643 host_makefile_frag="config/mh-djgpp"
3644 ;;
3645 *-cygwin*)
2a79c47f 3646
5213506e
RW
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3648$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3649echo a >cygwin-cat-check
e25a8c82 3650if test `cat cygwin-cat-check` = a ; then
2a79c47f 3651 rm cygwin-cat-check
5213506e
RW
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653$as_echo "yes" >&6; }
2a79c47f
NC
3654else
3655 rm cygwin-cat-check
5213506e
RW
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657$as_echo "no" >&6; }
3658 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3659 Please either mount the build directory in binary mode or run the following
3660 commands before running any configure script:
3661set -o igncr
3662export SHELLOPTS
5213506e 3663 " "$LINENO" 5
2a79c47f
NC
3664fi
3665
671aa708
NN
3666 host_makefile_frag="config/mh-cygwin"
3667 ;;
c53a18d3 3668 *-mingw*)
1f5a6b84 3669 host_makefile_frag="config/mh-mingw"
95af8923 3670 ;;
671aa708
NN
3671 *-interix*)
3672 host_makefile_frag="config/mh-interix"
3673 ;;
efd41714 3674 hppa*-hp-hpux10*)
efd41714 3675 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3676 ;;
111eeb6e 3677 hppa*-hp-hpux*)
efd41714
PB
3678 host_makefile_frag="config/mh-pa"
3679 ;;
3680 hppa*-*)
3681 host_makefile_frag="config/mh-pa"
3682 ;;
d8ed14ce
IS
3683 *-*-darwin*)
3684 host_makefile_frag="config/mh-darwin"
be8fff81 3685 ;;
d19bca38
PB
3686 powerpc-*-aix*)
3687 host_makefile_frag="config/mh-ppc-aix"
3688 ;;
3689 rs6000-*-aix*)
3690 host_makefile_frag="config/mh-ppc-aix"
3691 ;;
671aa708
NN
3692esac
3693fi
3694
55ffb5ed 3695if test "${build}" != "${host}" ; then
0999159b
PB
3696 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3697 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3698 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3699 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3700 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3701 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3702 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3703 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3704 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3705 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3706 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3707 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3708 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3709else
3710 AR_FOR_BUILD="\$(AR)"
3711 AS_FOR_BUILD="\$(AS)"
fb0103e5 3712 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3713 CXX_FOR_BUILD="\$(CXX)"
3714 GCJ_FOR_BUILD="\$(GCJ)"
3715 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3716 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3717 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3718 LD_FOR_BUILD="\$(LD)"
3719 NM_FOR_BUILD="\$(NM)"
3720 RANLIB_FOR_BUILD="\$(RANLIB)"
3721 WINDRES_FOR_BUILD="\$(WINDRES)"
3722 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3723fi
3724
3725ac_ext=c
1c710c3c
DJ
3726ac_cpp='$CPP $CPPFLAGS'
3727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730if test -n "$ac_tool_prefix"; then
3731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3732set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734$as_echo_n "checking for $ac_word... " >&6; }
3735if test "${ac_cv_prog_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3737else
3738 if test -n "$CC"; then
3739 ac_cv_prog_CC="$CC" # Let the user override the test.
3740else
3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
5213506e
RW
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3748 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3750 break 2
3751 fi
3752done
5213506e
RW
3753 done
3754IFS=$as_save_IFS
1c710c3c
DJ
3755
3756fi
3757fi
3758CC=$ac_cv_prog_CC
3759if test -n "$CC"; then
5213506e
RW
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3761$as_echo "$CC" >&6; }
1c710c3c 3762else
5213506e
RW
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764$as_echo "no" >&6; }
1c710c3c
DJ
3765fi
3766
5213506e 3767
1c710c3c
DJ
3768fi
3769if test -z "$ac_cv_prog_CC"; then
3770 ac_ct_CC=$CC
fb0103e5
RG
3771 # Extract the first word of "gcc", so it can be a program name with args.
3772set dummy gcc; ac_word=$2
5213506e
RW
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774$as_echo_n "checking for $ac_word... " >&6; }
3775if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3777else
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3780else
3781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH
3783do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
5213506e
RW
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3788 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3790 break 2
3791 fi
3792done
5213506e
RW
3793 done
3794IFS=$as_save_IFS
1c710c3c
DJ
3795
3796fi
3797fi
3798ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799if test -n "$ac_ct_CC"; then
5213506e
RW
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3802else
5213506e
RW
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804$as_echo "no" >&6; }
1c710c3c
DJ
3805fi
3806
5213506e
RW
3807 if test "x$ac_ct_CC" = x; then
3808 CC=""
3809 else
3810 case $cross_compiling:$ac_tool_warned in
3811yes:)
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3814ac_tool_warned=yes ;;
3815esac
3816 CC=$ac_ct_CC
3817 fi
1c710c3c
DJ
3818else
3819 CC="$ac_cv_prog_CC"
3820fi
3821
3822if test -z "$CC"; then
5213506e
RW
3823 if test -n "$ac_tool_prefix"; then
3824 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3825set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827$as_echo_n "checking for $ac_word... " >&6; }
3828if test "${ac_cv_prog_CC+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3830else
3831 if test -n "$CC"; then
3832 ac_cv_prog_CC="$CC" # Let the user override the test.
3833else
1c710c3c
DJ
3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835for as_dir in $PATH
3836do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
5213506e
RW
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3841 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3843 break 2
3844 fi
3845done
5213506e
RW
3846 done
3847IFS=$as_save_IFS
1c710c3c 3848
0b0dc272 3849fi
0b0dc272 3850fi
1c710c3c 3851CC=$ac_cv_prog_CC
af71363e 3852if test -n "$CC"; then
5213506e
RW
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3854$as_echo "$CC" >&6; }
2aeb72e9 3855else
5213506e
RW
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857$as_echo "no" >&6; }
2aeb72e9
DD
3858fi
3859
2aeb72e9 3860
5213506e 3861 fi
1c710c3c 3862fi
55ffb5ed
NN
3863if test -z "$CC"; then
3864 # Extract the first word of "cc", so it can be a program name with args.
3865set dummy cc; ac_word=$2
5213506e
RW
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867$as_echo_n "checking for $ac_word... " >&6; }
3868if test "${ac_cv_prog_CC+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3870else
3871 if test -n "$CC"; then
3872 ac_cv_prog_CC="$CC" # Let the user override the test.
3873else
0b0dc272 3874 ac_prog_rejected=no
1c710c3c
DJ
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
5213506e
RW
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3882 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3883 ac_prog_rejected=yes
3884 continue
3885 fi
3886 ac_cv_prog_CC="cc"
5213506e 3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3888 break 2
3889 fi
3890done
5213506e
RW
3891 done
3892IFS=$as_save_IFS
1c710c3c 3893
55ffb5ed
NN
3894if test $ac_prog_rejected = yes; then
3895 # We found a bogon in the path, so make sure we never use it.
3896 set dummy $ac_cv_prog_CC
3897 shift
1c710c3c 3898 if test $# != 0; then
55ffb5ed
NN
3899 # We chose a different compiler from the bogus one.
3900 # However, it has the same basename, so the bogon will be chosen
3901 # first if we set CC to just the basename; use the full file name.
3902 shift
1c710c3c 3903 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3904 fi
3905fi
3906fi
3907fi
1c710c3c 3908CC=$ac_cv_prog_CC
55ffb5ed 3909if test -n "$CC"; then
5213506e
RW
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3911$as_echo "$CC" >&6; }
55ffb5ed 3912else
5213506e
RW
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914$as_echo "no" >&6; }
55ffb5ed
NN
3915fi
3916
5213506e 3917
1c710c3c
DJ
3918fi
3919if test -z "$CC"; then
3920 if test -n "$ac_tool_prefix"; then
5213506e 3921 for ac_prog in cl.exe
1c710c3c
DJ
3922 do
3923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3924set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926$as_echo_n "checking for $ac_word... " >&6; }
3927if test "${ac_cv_prog_CC+set}" = set; then :
3928 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3929else
3930 if test -n "$CC"; then
3931 ac_cv_prog_CC="$CC" # Let the user override the test.
3932else
1c710c3c
DJ
3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH
3935do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
5213506e
RW
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3940 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3942 break 2
3943 fi
3944done
5213506e
RW
3945 done
3946IFS=$as_save_IFS
1c710c3c 3947
55ffb5ed
NN
3948fi
3949fi
1c710c3c 3950CC=$ac_cv_prog_CC
55ffb5ed 3951if test -n "$CC"; then
5213506e
RW
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3953$as_echo "$CC" >&6; }
a4b9e93e 3954else
5213506e
RW
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956$as_echo "no" >&6; }
fb0103e5 3957fi
af71363e 3958
5213506e 3959
1c710c3c
DJ
3960 test -n "$CC" && break
3961 done
af71363e 3962fi
1c710c3c
DJ
3963if test -z "$CC"; then
3964 ac_ct_CC=$CC
5213506e 3965 for ac_prog in cl.exe
1c710c3c
DJ
3966do
3967 # Extract the first word of "$ac_prog", so it can be a program name with args.
3968set dummy $ac_prog; ac_word=$2
5213506e
RW
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970$as_echo_n "checking for $ac_word... " >&6; }
3971if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3972 $as_echo_n "(cached) " >&6
0b0dc272 3973else
1c710c3c
DJ
3974 if test -n "$ac_ct_CC"; then
3975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3976else
1c710c3c
DJ
3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH
3979do
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
5213506e
RW
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3984 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3986 break 2
3987 fi
3988done
5213506e
RW
3989 done
3990IFS=$as_save_IFS
1c710c3c 3991
af71363e
AS
3992fi
3993fi
1c710c3c
DJ
3994ac_ct_CC=$ac_cv_prog_ac_ct_CC
3995if test -n "$ac_ct_CC"; then
5213506e
RW
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3997$as_echo "$ac_ct_CC" >&6; }
fb0103e5 3998else
5213506e
RW
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000$as_echo "no" >&6; }
af71363e 4001fi
0b0dc272 4002
5213506e 4003
1c710c3c
DJ
4004 test -n "$ac_ct_CC" && break
4005done
4006
5213506e
RW
4007 if test "x$ac_ct_CC" = x; then
4008 CC=""
4009 else
4010 case $cross_compiling:$ac_tool_warned in
4011yes:)
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4014ac_tool_warned=yes ;;
4015esac
4016 CC=$ac_ct_CC
4017 fi
1c710c3c
DJ
4018fi
4019
4020fi
4021
4022
5213506e
RW
4023test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025as_fn_error "no acceptable C compiler found in \$PATH
4026See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4027
4028# Provide some information about the compiler.
5213506e
RW
4029$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4030set X $ac_compile
4031ac_compiler=$2
4032for ac_option in --version -v -V -qversion; do
4033 { { ac_try="$ac_compiler $ac_option >&5"
4034case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037esac
4038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039$as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4041 ac_status=$?
5213506e
RW
4042 if test -s conftest.err; then
4043 sed '10a\
4044... rest of stderr output deleted ...
4045 10q' conftest.err >conftest.er1
4046 cat conftest.er1 >&5
4047 rm -f conftest.er1 conftest.err
4048 fi
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }
4051done
1c710c3c 4052
5213506e 4053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4054/* end confdefs.h. */
4055
4056int
4057main ()
4058{
4059
4060 ;
4061 return 0;
4062}
4063_ACEOF
4064ac_clean_files_save=$ac_clean_files
5213506e 4065ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4066# Try to create an executable without -o first, disregard a.out.
4067# It will help us diagnose broken compilers, and finding out an intuition
4068# of exeext.
5213506e
RW
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4070$as_echo_n "checking for C compiler default output file name... " >&6; }
4071ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4072
4073# The possible output files:
4074ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4075
4076ac_rmfiles=
4077for ac_file in $ac_files
4078do
4079 case $ac_file in
4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4081 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4082 esac
4083done
4084rm -f $ac_rmfiles
4085
4086if { { ac_try="$ac_link_default"
4087case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092$as_echo "$ac_try_echo"; } >&5
4093 (eval "$ac_link_default") 2>&5
1c710c3c 4094 ac_status=$?
5213506e
RW
4095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096 test $ac_status = 0; }; then :
4097 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4098# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4099# in a Makefile. We should not override ac_cv_exeext if it was cached,
4100# so that the user can short-circuit this test for compilers unknown to
4101# Autoconf.
4102for ac_file in $ac_files ''
1c710c3c
DJ
4103do
4104 test -f "$ac_file" || continue
4105 case $ac_file in
5213506e 4106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4107 ;;
4108 [ab].out )
4109 # We found the default executable, but exeext='' is most
4110 # certainly right.
4111 break;;
4112 *.* )
5213506e
RW
4113 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4114 then :; else
4115 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4116 fi
4117 # We set ac_cv_exeext here because the later test for it is not
4118 # safe: cross compilers may not add the suffix if given an `-o'
4119 # argument, so we may need to know it at that point already.
4120 # Even if this section looks crufty: it has the advantage of
4121 # actually working.
1c710c3c
DJ
4122 break;;
4123 * )
4124 break;;
4125 esac
4126done
5213506e
RW
4127test "$ac_cv_exeext" = no && ac_cv_exeext=
4128
1c710c3c 4129else
5213506e
RW
4130 ac_file=''
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4133$as_echo "$ac_file" >&6; }
4134if test -z "$ac_file"; then :
4135 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4136sed 's/^/| /' conftest.$ac_ext >&5
4137
5213506e
RW
4138{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4140{ as_fn_set_status 77
4141as_fn_error "C compiler cannot create executables
4142See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4143fi
1c710c3c 4144ac_exeext=$ac_cv_exeext
1c710c3c 4145
5213506e 4146# Check that the compiler produces executables we can run. If not, either
1c710c3c 4147# the compiler is broken, or we cross compile.
5213506e
RW
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4149$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4150# If not cross compiling, check that we can run a simple program.
4151if test "$cross_compiling" != yes; then
4152 if { ac_try='./$ac_file'
5213506e
RW
4153 { { case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4158$as_echo "$ac_try_echo"; } >&5
4159 (eval "$ac_try") 2>&5
1c710c3c 4160 ac_status=$?
5213506e
RW
4161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162 test $ac_status = 0; }; }; then
1c710c3c
DJ
4163 cross_compiling=no
4164 else
4165 if test "$cross_compiling" = maybe; then
4166 cross_compiling=yes
4167 else
5213506e
RW
4168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4170as_fn_error "cannot run C compiled programs.
1c710c3c 4171If you meant to cross compile, use \`--host'.
5213506e 4172See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4173 fi
4174 fi
4175fi
5213506e
RW
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4177$as_echo "yes" >&6; }
1c710c3c 4178
5213506e 4179rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4180ac_clean_files=$ac_clean_files_save
5213506e 4181# Check that the compiler produces executables we can run. If not, either
1c710c3c 4182# the compiler is broken, or we cross compile.
5213506e
RW
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4184$as_echo_n "checking whether we are cross compiling... " >&6; }
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4186$as_echo "$cross_compiling" >&6; }
4187
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4189$as_echo_n "checking for suffix of executables... " >&6; }
4190if { { ac_try="$ac_link"
4191case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4196$as_echo "$ac_try_echo"; } >&5
4197 (eval "$ac_link") 2>&5
1c710c3c 4198 ac_status=$?
5213506e
RW
4199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4200 test $ac_status = 0; }; then :
1c710c3c
DJ
4201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4202# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4203# work properly (i.e., refer to `conftest.exe'), while it won't with
4204# `rm'.
4205for ac_file in conftest.exe conftest conftest.*; do
4206 test -f "$ac_file" || continue
4207 case $ac_file in
5213506e 4208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4209 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4210 break;;
4211 * ) break;;
4212 esac
4213done
af71363e 4214else
5213506e
RW
4215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217as_fn_error "cannot compute suffix of executables: cannot compile and link
4218See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4219fi
1c710c3c 4220rm -f conftest$ac_cv_exeext
5213506e
RW
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4222$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4223
4224rm -f conftest.$ac_ext
4225EXEEXT=$ac_cv_exeext
4226ac_exeext=$EXEEXT
5213506e
RW
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4228$as_echo_n "checking for suffix of object files... " >&6; }
4229if test "${ac_cv_objext+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
1c710c3c 4231else
5213506e 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4233/* end confdefs.h. */
4234
4235int
4236main ()
4237{
4238
4239 ;
4240 return 0;
4241}
4242_ACEOF
4243rm -f conftest.o conftest.obj
5213506e
RW
4244if { { ac_try="$ac_compile"
4245case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248esac
4249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250$as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_compile") 2>&5
1c710c3c 4252 ac_status=$?
5213506e
RW
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; }; then :
4255 for ac_file in conftest.o conftest.obj conftest.*; do
4256 test -f "$ac_file" || continue;
1c710c3c 4257 case $ac_file in
5213506e 4258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4259 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4260 break;;
4261 esac
4262done
4263else
5213506e 4264 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4265sed 's/^/| /' conftest.$ac_ext >&5
4266
5213506e
RW
4267{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269as_fn_error "cannot compute suffix of object files: cannot compile
4270See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4271fi
1c710c3c
DJ
4272rm -f conftest.$ac_cv_objext conftest.$ac_ext
4273fi
5213506e
RW
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4275$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4276OBJEXT=$ac_cv_objext
4277ac_objext=$OBJEXT
5213506e
RW
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4279$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4280if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
1c710c3c 4282else
5213506e 4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4284/* end confdefs.h. */
4285
4286int
4287main ()
4288{
4289#ifndef __GNUC__
4290 choke me
4291#endif
4292
4293 ;
4294 return 0;
4295}
4296_ACEOF
5213506e 4297if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4298 ac_compiler_gnu=yes
4299else
5213506e 4300 ac_compiler_gnu=no
1c710c3c 4301fi
5213506e 4302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4303ac_cv_c_compiler_gnu=$ac_compiler_gnu
4304
4305fi
5213506e
RW
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4307$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4308if test $ac_compiler_gnu = yes; then
4309 GCC=yes
4310else
4311 GCC=
4312fi
1c710c3c
DJ
4313ac_test_CFLAGS=${CFLAGS+set}
4314ac_save_CFLAGS=$CFLAGS
5213506e
RW
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4316$as_echo_n "checking whether $CC accepts -g... " >&6; }
4317if test "${ac_cv_prog_cc_g+set}" = set; then :
4318 $as_echo_n "(cached) " >&6
4319else
4320 ac_save_c_werror_flag=$ac_c_werror_flag
4321 ac_c_werror_flag=yes
4322 ac_cv_prog_cc_g=no
4323 CFLAGS="-g"
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4325/* end confdefs.h. */
4326
4327int
4328main ()
4329{
4330
4331 ;
4332 return 0;
4333}
4334_ACEOF
5213506e 4335if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4336 ac_cv_prog_cc_g=yes
4337else
5213506e
RW
4338 CFLAGS=""
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h. */
4341
4342int
4343main ()
4344{
4345
4346 ;
4347 return 0;
4348}
4349_ACEOF
4350if ac_fn_c_try_compile "$LINENO"; then :
4351
4352else
4353 ac_c_werror_flag=$ac_save_c_werror_flag
4354 CFLAGS="-g"
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356/* end confdefs.h. */
af71363e 4357
5213506e
RW
4358int
4359main ()
4360{
4361
4362 ;
4363 return 0;
4364}
4365_ACEOF
4366if ac_fn_c_try_compile "$LINENO"; then :
4367 ac_cv_prog_cc_g=yes
4368fi
4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4370fi
5213506e 4371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4372fi
5213506e
RW
4373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 ac_c_werror_flag=$ac_save_c_werror_flag
4375fi
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4377$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4378if test "$ac_test_CFLAGS" = set; then
1c710c3c 4379 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4380elif test $ac_cv_prog_cc_g = yes; then
4381 if test "$GCC" = yes; then
4382 CFLAGS="-g -O2"
4383 else
4384 CFLAGS="-g"
4385 fi
4386else
4387 if test "$GCC" = yes; then
4388 CFLAGS="-O2"
4389 else
4390 CFLAGS=
4391 fi
4392fi
5213506e
RW
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4394$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4395if test "${ac_cv_prog_cc_c89+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
1c710c3c 4397else
5213506e 4398 ac_cv_prog_cc_c89=no
1c710c3c 4399ac_save_CC=$CC
5213506e 4400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4401/* end confdefs.h. */
4402#include <stdarg.h>
4403#include <stdio.h>
4404#include <sys/types.h>
4405#include <sys/stat.h>
4406/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4407struct buf { int x; };
4408FILE * (*rcsopen) (struct buf *, struct stat *, int);
4409static char *e (p, i)
4410 char **p;
4411 int i;
4412{
4413 return p[i];
4414}
4415static char *f (char * (*g) (char **, int), char **p, ...)
4416{
4417 char *s;
4418 va_list v;
4419 va_start (v,p);
4420 s = g (p, va_arg (v,int));
4421 va_end (v);
4422 return s;
4423}
4424
4425/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4426 function prototypes and stuff, but not '\xHH' hex character constants.
4427 These don't provoke an error unfortunately, instead are silently treated
5213506e 4428 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4430 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4431 that's true only with -std. */
1c710c3c
DJ
4432int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4433
5213506e
RW
4434/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4435 inside strings and character constants. */
4436#define FOO(x) 'x'
4437int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4438
1c710c3c
DJ
4439int test (int i, double x);
4440struct s1 {int (*f) (int a);};
4441struct s2 {int (*f) (double a);};
4442int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4443int argc;
4444char **argv;
4445int
4446main ()
4447{
4448return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4449 ;
4450 return 0;
4451}
4452_ACEOF
5213506e
RW
4453for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4454 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4455do
4456 CC="$ac_save_CC $ac_arg"
5213506e
RW
4457 if ac_fn_c_try_compile "$LINENO"; then :
4458 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4459fi
5213506e
RW
4460rm -f core conftest.err conftest.$ac_objext
4461 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4462done
5213506e 4463rm -f conftest.$ac_ext
1c710c3c
DJ
4464CC=$ac_save_CC
4465
4466fi
5213506e
RW
4467# AC_CACHE_VAL
4468case "x$ac_cv_prog_cc_c89" in
4469 x)
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4471$as_echo "none needed" >&6; } ;;
4472 xno)
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4474$as_echo "unsupported" >&6; } ;;
1c710c3c 4475 *)
5213506e
RW
4476 CC="$CC $ac_cv_prog_cc_c89"
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4478$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4479esac
5213506e 4480if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4481
2aeb72e9
DD
4482fi
4483
2aeb72e9
DD
4484ac_ext=c
4485ac_cpp='$CPP $CPPFLAGS'
4486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489
5213506e 4490ac_ext=cpp
2aeb72e9
DD
4491ac_cpp='$CXXCPP $CPPFLAGS'
4492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4495if test -z "$CXX"; then
4496 if test -n "$CCC"; then
4497 CXX=$CCC
4498 else
4499 if test -n "$ac_tool_prefix"; then
4500 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4501 do
4502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4503set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505$as_echo_n "checking for $ac_word... " >&6; }
4506if test "${ac_cv_prog_CXX+set}" = set; then :
4507 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4508else
4509 if test -n "$CXX"; then
4510 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4511else
4512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
5213506e
RW
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4519 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4521 break 2
4522 fi
4523done
5213506e
RW
4524 done
4525IFS=$as_save_IFS
55ffb5ed 4526
c3a86da9
DJ
4527fi
4528fi
4529CXX=$ac_cv_prog_CXX
4530if test -n "$CXX"; then
5213506e
RW
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4532$as_echo "$CXX" >&6; }
c3a86da9 4533else
5213506e
RW
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535$as_echo "no" >&6; }
c3a86da9
DJ
4536fi
4537
5213506e 4538
c3a86da9
DJ
4539 test -n "$CXX" && break
4540 done
4541fi
4542if test -z "$CXX"; then
4543 ac_ct_CXX=$CXX
5213506e 4544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4545do
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547set dummy $ac_prog; ac_word=$2
5213506e
RW
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549$as_echo_n "checking for $ac_word... " >&6; }
4550if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4552else
4553 if test -n "$ac_ct_CXX"; then
4554 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4555else
4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
5213506e
RW
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4563 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4565 break 2
4566 fi
4567done
5213506e
RW
4568 done
4569IFS=$as_save_IFS
c3a86da9
DJ
4570
4571fi
4572fi
4573ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4574if test -n "$ac_ct_CXX"; then
5213506e
RW
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4576$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4577else
5213506e
RW
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579$as_echo "no" >&6; }
c3a86da9
DJ
4580fi
4581
5213506e 4582
c3a86da9
DJ
4583 test -n "$ac_ct_CXX" && break
4584done
c3a86da9 4585
5213506e
RW
4586 if test "x$ac_ct_CXX" = x; then
4587 CXX="g++"
4588 else
4589 case $cross_compiling:$ac_tool_warned in
4590yes:)
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4593ac_tool_warned=yes ;;
4594esac
4595 CXX=$ac_ct_CXX
4596 fi
c3a86da9
DJ
4597fi
4598
5213506e
RW
4599 fi
4600fi
c3a86da9 4601# Provide some information about the compiler.
5213506e
RW
4602$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4603set X $ac_compile
4604ac_compiler=$2
4605for ac_option in --version -v -V -qversion; do
4606 { { ac_try="$ac_compiler $ac_option >&5"
4607case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610esac
4611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4612$as_echo "$ac_try_echo"; } >&5
4613 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4614 ac_status=$?
5213506e
RW
4615 if test -s conftest.err; then
4616 sed '10a\
4617... rest of stderr output deleted ...
4618 10q' conftest.err >conftest.er1
4619 cat conftest.er1 >&5
4620 rm -f conftest.er1 conftest.err
4621 fi
4622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4623 test $ac_status = 0; }
4624done
c3a86da9 4625
5213506e
RW
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4627$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4628if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
c3a86da9 4630else
5213506e 4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4632/* end confdefs.h. */
4633
4634int
4635main ()
4636{
4637#ifndef __GNUC__
4638 choke me
4639#endif
4640
4641 ;
4642 return 0;
4643}
4644_ACEOF
5213506e 4645if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4646 ac_compiler_gnu=yes
4647else
5213506e 4648 ac_compiler_gnu=no
c3a86da9 4649fi
5213506e 4650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4651ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4652
4653fi
5213506e
RW
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4655$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4656if test $ac_compiler_gnu = yes; then
4657 GXX=yes
4658else
4659 GXX=
4660fi
c3a86da9
DJ
4661ac_test_CXXFLAGS=${CXXFLAGS+set}
4662ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4664$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4665if test "${ac_cv_prog_cxx_g+set}" = set; then :
4666 $as_echo_n "(cached) " >&6
4667else
4668 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4669 ac_cxx_werror_flag=yes
4670 ac_cv_prog_cxx_g=no
4671 CXXFLAGS="-g"
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4673/* end confdefs.h. */
4674
4675int
4676main ()
4677{
4678
4679 ;
4680 return 0;
4681}
4682_ACEOF
5213506e 4683if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4684 ac_cv_prog_cxx_g=yes
4685else
5213506e
RW
4686 CXXFLAGS=""
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4688/* end confdefs.h. */
5213506e 4689
c3a86da9
DJ
4690int
4691main ()
4692{
5213506e 4693
c3a86da9
DJ
4694 ;
4695 return 0;
4696}
4697_ACEOF
5213506e 4698if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4699
5213506e
RW
4700else
4701 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4702 CXXFLAGS="-g"
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4704/* end confdefs.h. */
5213506e 4705
c3a86da9
DJ
4706int
4707main ()
4708{
5213506e 4709
c3a86da9
DJ
4710 ;
4711 return 0;
4712}
4713_ACEOF
5213506e
RW
4714if ac_fn_cxx_try_compile "$LINENO"; then :
4715 ac_cv_prog_cxx_g=yes
11a67599 4716fi
5213506e
RW
4717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718fi
4719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720fi
4721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4723fi
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4725$as_echo "$ac_cv_prog_cxx_g" >&6; }
4726if test "$ac_test_CXXFLAGS" = set; then
4727 CXXFLAGS=$ac_save_CXXFLAGS
4728elif test $ac_cv_prog_cxx_g = yes; then
4729 if test "$GXX" = yes; then
4730 CXXFLAGS="-g -O2"
4731 else
4732 CXXFLAGS="-g"
4733 fi
4734else
4735 if test "$GXX" = yes; then
4736 CXXFLAGS="-O2"
4737 else
4738 CXXFLAGS=
4739 fi
c3a86da9 4740fi
c3a86da9
DJ
4741ac_ext=c
4742ac_cpp='$CPP $CPPFLAGS'
4743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4745ac_compiler_gnu=$ac_cv_c_compiler_gnu
4746
4747
4748# We must set the default linker to the linker used by gcc for the correct
4749# operation of libtool. If LD is not defined and we are using gcc, try to
4750# set the LD default to the ld used by gcc.
4751if test -z "$LD"; then
4752 if test "$GCC" = yes; then
4753 case $build in
4754 *-*-mingw*)
4755 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4756 *)
4757 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4758 esac
4759 case $gcc_prog_ld in
4760 # Accept absolute paths.
4761 [\\/]* | [A-Za-z]:[\\/]*)
4762 LD="$gcc_prog_ld" ;;
4763 esac
4764 fi
23f6b2f9
PB
4765fi
4766
23f6b2f9
PB
4767
4768
55ffb5ed 4769
1c710c3c
DJ
4770if test -n "$ac_tool_prefix"; then
4771 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4772set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774$as_echo_n "checking for $ac_word... " >&6; }
4775if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4777else
4778 if test -n "$GNATBIND"; then
4779 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4780else
1c710c3c
DJ
4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
5213506e
RW
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4788 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4790 break 2
4791 fi
4792done
5213506e
RW
4793 done
4794IFS=$as_save_IFS
1c710c3c 4795
55ffb5ed
NN
4796fi
4797fi
1c710c3c 4798GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4799if test -n "$GNATBIND"; then
5213506e
RW
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4801$as_echo "$GNATBIND" >&6; }
55ffb5ed 4802else
5213506e
RW
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804$as_echo "no" >&6; }
55ffb5ed
NN
4805fi
4806
5213506e 4807
1c710c3c 4808fi
55ffb5ed 4809if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4810 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4811 # Extract the first word of "gnatbind", so it can be a program name with args.
4812set dummy gnatbind; 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_GNATBIND+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
55ffb5ed 4817else
1c710c3c
DJ
4818 if test -n "$ac_ct_GNATBIND"; then
4819 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4820else
1c710c3c
DJ
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
1c710c3c 4828 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4830 break 2
4831 fi
4832done
5213506e
RW
4833 done
4834IFS=$as_save_IFS
1c710c3c 4835
55ffb5ed
NN
4836fi
4837fi
1c710c3c
DJ
4838ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4839if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4841$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4842else
5213506e
RW
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844$as_echo "no" >&6; }
55ffb5ed
NN
4845fi
4846
5213506e
RW
4847 if test "x$ac_ct_GNATBIND" = x; then
4848 GNATBIND="no"
4849 else
4850 case $cross_compiling:$ac_tool_warned in
4851yes:)
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4854ac_tool_warned=yes ;;
4855esac
4856 GNATBIND=$ac_ct_GNATBIND
4857 fi
55ffb5ed 4858else
1c710c3c 4859 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4860fi
4861
1c710c3c
DJ
4862if test -n "$ac_tool_prefix"; then
4863 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4864set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866$as_echo_n "checking for $ac_word... " >&6; }
4867if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
5305be7e
RG
4869else
4870 if test -n "$GNATMAKE"; then
4871 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4872else
1c710c3c
DJ
4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
5213506e
RW
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4880 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4882 break 2
4883 fi
4884done
5213506e
RW
4885 done
4886IFS=$as_save_IFS
1c710c3c 4887
5305be7e
RG
4888fi
4889fi
1c710c3c 4890GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4891if test -n "$GNATMAKE"; then
5213506e
RW
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4893$as_echo "$GNATMAKE" >&6; }
5305be7e 4894else
5213506e
RW
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896$as_echo "no" >&6; }
5305be7e
RG
4897fi
4898
5213506e 4899
1c710c3c 4900fi
5305be7e 4901if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4902 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4903 # Extract the first word of "gnatmake", so it can be a program name with args.
4904set dummy gnatmake; ac_word=$2
5213506e
RW
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906$as_echo_n "checking for $ac_word... " >&6; }
4907if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
5305be7e 4909else
1c710c3c
DJ
4910 if test -n "$ac_ct_GNATMAKE"; then
4911 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4912else
1c710c3c
DJ
4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH
4915do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
5213506e
RW
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4920 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4922 break 2
4923 fi
4924done
5213506e
RW
4925 done
4926IFS=$as_save_IFS
1c710c3c 4927
5305be7e
RG
4928fi
4929fi
1c710c3c
DJ
4930ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4931if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4933$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 4934else
5213506e
RW
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936$as_echo "no" >&6; }
5305be7e
RG
4937fi
4938
5213506e
RW
4939 if test "x$ac_ct_GNATMAKE" = x; then
4940 GNATMAKE="no"
4941 else
4942 case $cross_compiling:$ac_tool_warned in
4943yes:)
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4946ac_tool_warned=yes ;;
4947esac
4948 GNATMAKE=$ac_ct_GNATMAKE
4949 fi
5305be7e 4950else
1c710c3c 4951 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4952fi
4953
5213506e
RW
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4955$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4956if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4958else
4959 cat >conftest.adb <<EOF
4960procedure conftest is begin null; end conftest;
4961EOF
4962acx_cv_cc_gcc_supports_ada=no
4963# There is a bug in old released versions of GCC which causes the
4964# driver to exit successfully when the appropriate language module
4965# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4966# Therefore we must check for the error message as well as an
4967# unsuccessful exit.
1db673ca
RO
4968# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4969# given a .adb file, but produce no object file. So we must check
4970# if an object file was really produced to guard against this.
55ffb5ed 4971errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4972if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4973 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4974fi
4975rm -f conftest.*
4976fi
5213506e
RW
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4978$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 4979
5305be7e 4980if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4981 have_gnat=yes
4982else
4983 have_gnat=no
4984fi
4985
5213506e
RW
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4987$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4988if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
a76494aa
PB
4990else
4991 echo abfoo >t1
4992 echo cdfoo >t2
4993 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4994 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4995 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4996 :
4997 else
4998 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4999 fi
5000 fi
a76494aa
PB
5001 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5002 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5003 :
a76494aa
PB
5004 else
5005 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5006 fi
5007 fi
5008 rm t1 t2
5009
5010fi
5213506e
RW
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5012$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5013do_compare="$gcc_cv_prog_cmp_skip"
5014
5015
55ffb5ed 5016
ff3ac0f4
ILT
5017# Check whether --enable-bootstrap was given.
5018if test "${enable_bootstrap+set}" = set; then :
5019 enableval=$enable_bootstrap;
5020else
5021 enable_bootstrap=default
5022fi
5023
5024
5025# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5026if test -r $srcdir/gcc/configure; then
5027 have_compiler=yes
5028else
5029 have_compiler=no
5030fi
ff3ac0f4
ILT
5031
5032case "$have_compiler:$host:$target:$enable_bootstrap" in
5033 *:*:*:no) ;;
5034
5035 # Default behavior. Enable bootstrap if we have a compiler
5036 # and we are in a native configuration.
5037 yes:$build:$build:default)
5038 enable_bootstrap=yes ;;
5039
5040 *:*:*:default)
5041 enable_bootstrap=no ;;
5042
5043 # We have a compiler and we are in a native configuration, bootstrap is ok
5044 yes:$build:$build:yes)
5045 ;;
5046
5047 # Other configurations, but we have a compiler. Assume the user knows
5048 # what he's doing.
5049 yes:*:*:yes)
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5051$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5052 ;;
5053
5054 # No compiler: if they passed --enable-bootstrap explicitly, fail
5055 no:*:*:yes)
5056 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5057
5058 # Fail if wrong command line
5059 *)
5060 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5061 ;;
5062esac
5063
00020c16 5064# See if we are building gcc with C++.
5213506e
RW
5065# Check whether --enable-build-with-cxx was given.
5066if test "${enable_build_with_cxx+set}" = set; then :
5067 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
5068else
5069 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
5070fi
5071
00020c16 5072
78767fd9
ILT
5073# Build stage1 with C and build stages 2 and 3 with C++.
5074# Check whether --enable-build-poststage1-with-cxx was given.
5075if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5076 enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5077else
5078 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5079fi
5080
5081
592c90ff
KG
5082# Used for setting $lt_cv_objdir
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5084$as_echo_n "checking for objdir... " >&6; }
5085if test "${lt_cv_objdir+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5087else
5088 rm -f .libs 2>/dev/null
5089mkdir .libs 2>/dev/null
5090if test -d .libs; then
5091 lt_cv_objdir=.libs
5092else
5093 # MS-DOS does not allow filenames that begin with a dot.
5094 lt_cv_objdir=_libs
5095fi
5096rmdir .libs 2>/dev/null
5097fi
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5099$as_echo "$lt_cv_objdir" >&6; }
5100objdir=$lt_cv_objdir
5101
5102
5103
5104
5105
5106cat >>confdefs.h <<_ACEOF
5107#define LT_OBJDIR "$lt_cv_objdir/"
5108_ACEOF
5109
5110
5111
acd26225 5112# Check for GMP, MPFR and MPC
3a5729ea 5113gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5114gmpinc=
e69bf64b 5115have_gmp=no
acd26225
KG
5116
5117# Specify a location for mpc
5118# check for this first so it ends up on the link line before mpfr.
5119
5213506e
RW
5120# Check whether --with-mpc was given.
5121if test "${with_mpc+set}" = set; then :
5122 withval=$with_mpc;
5123fi
acd26225 5124
acd26225 5125
9965e3cd 5126# Check whether --with-mpc-include was given.
5213506e
RW
5127if test "${with_mpc_include+set}" = set; then :
5128 withval=$with_mpc_include;
5129fi
acd26225 5130
acd26225 5131
9965e3cd 5132# Check whether --with-mpc-lib was given.
5213506e
RW
5133if test "${with_mpc_lib+set}" = set; then :
5134 withval=$with_mpc_lib;
5135fi
acd26225 5136
acd26225
KG
5137
5138if test "x$with_mpc" != x; then
3a5729ea
KG
5139 gmplibs="-L$with_mpc/lib $gmplibs"
5140 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5141fi
5142if test "x$with_mpc_include" != x; then
3a5729ea 5143 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5144fi
5145if test "x$with_mpc_lib" != x; then
3a5729ea 5146 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5147fi
5148if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5149 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5150 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5151 # Do not test the mpc version. Assume that it is sufficient, since
5152 # it is in the source tree, and the library has not been built yet
5153 # but it would be included on the link line in the version check below
5154 # hence making the test fail.
3a5729ea 5155 have_gmp=yes
acd26225 5156fi
e69bf64b 5157
bebf829d
PB
5158# Specify a location for mpfr
5159# check for this first so it ends up on the link line before gmp.
1c710c3c 5160
5213506e
RW
5161# Check whether --with-mpfr-dir was given.
5162if test "${with_mpfr_dir+set}" = set; then :
5163 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5164Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5165fi
5166
bebf829d
PB
5167
5168
5213506e
RW
5169# Check whether --with-mpfr was given.
5170if test "${with_mpfr+set}" = set; then :
5171 withval=$with_mpfr;
5172fi
1c710c3c 5173
bebf829d 5174
9965e3cd 5175# Check whether --with-mpfr-include was given.
5213506e
RW
5176if test "${with_mpfr_include+set}" = set; then :
5177 withval=$with_mpfr_include;
5178fi
1c710c3c 5179
8a877c9c 5180
9965e3cd 5181# Check whether --with-mpfr-lib was given.
5213506e
RW
5182if test "${with_mpfr_lib+set}" = set; then :
5183 withval=$with_mpfr_lib;
5184fi
8a877c9c 5185
bebf829d
PB
5186
5187if test "x$with_mpfr" != x; then
5188 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5189 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5190fi
8a877c9c 5191if test "x$with_mpfr_include" != x; then
3a5729ea 5192 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5193fi
5194if test "x$with_mpfr_lib" != x; then
5195 gmplibs="-L$with_mpfr_lib $gmplibs"
5196fi
e69bf64b 5197if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
592c90ff 5198 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
e69bf64b 5199 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
592c90ff 5200 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
e69bf64b
PB
5201 # Do not test the mpfr version. Assume that it is sufficient, since
5202 # it is in the source tree, and the library has not been built yet
5203 # but it would be included on the link line in the version check below
5204 # hence making the test fail.
5205 have_gmp=yes
5206fi
bebf829d 5207
6de9cd9a 5208# Specify a location for gmp
1c710c3c 5209
5213506e
RW
5210# Check whether --with-gmp-dir was given.
5211if test "${with_gmp_dir+set}" = set; then :
5212 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5213Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5214fi
5215
6de9cd9a 5216
6de9cd9a 5217
5213506e
RW
5218# Check whether --with-gmp was given.
5219if test "${with_gmp+set}" = set; then :
5220 withval=$with_gmp;
5221fi
1c710c3c 5222
6de9cd9a 5223
9965e3cd 5224# Check whether --with-gmp-include was given.
5213506e
RW
5225if test "${with_gmp_include+set}" = set; then :
5226 withval=$with_gmp_include;
5227fi
1c710c3c 5228
8a877c9c 5229
9965e3cd 5230# Check whether --with-gmp-lib was given.
5213506e
RW
5231if test "${with_gmp_lib+set}" = set; then :
5232 withval=$with_gmp_lib;
5233fi
8a877c9c
KG
5234
5235
6de9cd9a 5236
bebf829d
PB
5237if test "x$with_gmp" != x; then
5238 gmplibs="-L$with_gmp/lib $gmplibs"
5239 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5240fi
8a877c9c
KG
5241if test "x$with_gmp_include" != x; then
5242 gmpinc="-I$with_gmp_include $gmpinc"
5243fi
5244if test "x$with_gmp_lib" != x; then
5245 gmplibs="-L$with_gmp_lib $gmplibs"
5246fi
e69bf64b 5247if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5248 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5249 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5250 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5251 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e69bf64b
PB
5252 # Do not test the gmp version. Assume that it is sufficient, since
5253 # it is in the source tree, and the library has not been built yet
5254 # but it would be included on the link line in the version check below
5255 # hence making the test fail.
5256 have_gmp=yes
5257fi
6de9cd9a 5258
d943d7c4 5259if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5260 have_gmp=yes
5261 saved_CFLAGS="$CFLAGS"
5262 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5263 # Check for the recommended and required versions of GMP.
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5265$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5266
5267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5268/* end confdefs.h. */
5269#include "gmp.h"
5270int
5271main ()
5272{
5273
5274 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5275 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5276 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5277 choke me
5278 #endif
5279
5280 ;
5281 return 0;
5282}
5283_ACEOF
5284if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5286/* end confdefs.h. */
362c6d2f 5287#include <gmp.h>
1c710c3c
DJ
5288int
5289main ()
5290{
6de9cd9a 5291
362c6d2f
KG
5292 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5293 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5294 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5295 choke me
5296 #endif
1c710c3c
DJ
5297
5298 ;
5299 return 0;
5300}
5301_ACEOF
5213506e
RW
5302if ac_fn_c_try_compile "$LINENO"; then :
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5304$as_echo "yes" >&6; }
362c6d2f
KG
5305else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5307$as_echo "buggy but acceptable" >&6; }
5308fi
5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5310else
5213506e
RW
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5313fi
5213506e 5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5315
acd26225 5316 # If we have GMP, check the MPFR version.
e69bf64b 5317 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5318 # Check for the recommended and required versions of MPFR.
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5320$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5322/* end confdefs.h. */
70ec446f 5323#include <gmp.h>
e69bf64b 5324 #include <mpfr.h>
1c710c3c
DJ
5325int
5326main ()
5327{
e48d66a9 5328
a3337ea2 5329 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5330 choke me
5331 #endif
1c710c3c
DJ
5332
5333 ;
5334 return 0;
5335}
5336_ACEOF
5213506e
RW
5337if ac_fn_c_try_compile "$LINENO"; then :
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5339/* end confdefs.h. */
a3993f33 5340#include <gmp.h>
e69bf64b 5341 #include <mpfr.h>
1c710c3c
DJ
5342int
5343main ()
5344{
a3993f33 5345
362c6d2f 5346 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5347 choke me
5348 #endif
acd26225
KG
5349
5350 ;
5351 return 0;
5352}
5353_ACEOF
5213506e
RW
5354if ac_fn_c_try_compile "$LINENO"; then :
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356$as_echo "yes" >&6; }
acd26225 5357else
5213506e
RW
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5359$as_echo "buggy but acceptable" >&6; }
acd26225 5360fi
5213506e 5361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5362else
5213506e
RW
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364$as_echo "no" >&6; }; have_gmp=no
acd26225 5365fi
5213506e 5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5367 fi
5368
5369 # Check for the MPC header version.
3a5729ea 5370 if test x"$have_gmp" = xyes ; then
362c6d2f 5371 # Check for the recommended and required versions of MPC.
5213506e
RW
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5373$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5375/* end confdefs.h. */
5376#include <mpc.h>
5377int
5378main ()
5379{
5380
362c6d2f
KG
5381 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5382 choke me
5383 #endif
5384
5385 ;
5386 return 0;
5387}
5388_ACEOF
5389if ac_fn_c_try_compile "$LINENO"; then :
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391/* end confdefs.h. */
5392#include <mpc.h>
5393int
5394main ()
5395{
5396
5397 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5398 choke me
5399 #endif
5400
5401 ;
5402 return 0;
5403}
5404_ACEOF
5213506e
RW
5405if ac_fn_c_try_compile "$LINENO"; then :
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5407$as_echo "yes" >&6; }
362c6d2f
KG
5408else
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5410$as_echo "buggy but acceptable" >&6; }
5411fi
5412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5413else
5213506e 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5415$as_echo "no" >&6; }; have_gmp=no
acd26225 5416fi
5213506e 5417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5418 fi
5419
5420 # Now check the MPFR library.
5421 if test x"$have_gmp" = xyes; then
5422 saved_LIBS="$LIBS"
5423 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5425$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5427/* end confdefs.h. */
3a5729ea 5428#include <mpc.h>
acd26225
KG
5429int
5430main ()
5431{
5432
5433 mpfr_t n;
5434 mpfr_t x;
3a5729ea 5435 mpc_t c;
acd26225
KG
5436 int t;
5437 mpfr_init (n);
5438 mpfr_init (x);
5439 mpfr_atan2 (n, n, x, GMP_RNDN);
5440 mpfr_erfc (n, x, GMP_RNDN);
5441 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5442 mpfr_clear(n);
5443 mpfr_clear(x);
5444 mpc_init2 (c, 53);
5445 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5446 mpc_cosh (c, c, MPC_RNDNN);
5447 mpc_pow (c, c, c, MPC_RNDNN);
5448 mpc_acosh (c, c, MPC_RNDNN);
5449 mpc_clear (c);
1c710c3c
DJ
5450
5451 ;
5452 return 0;
5453}
5454_ACEOF
5213506e
RW
5455if ac_fn_c_try_link "$LINENO"; then :
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5457$as_echo "yes" >&6; }
1c710c3c 5458else
5213506e
RW
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5461fi
5213506e
RW
5462rm -f core conftest.err conftest.$ac_objext \
5463 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5464 LIBS="$saved_LIBS"
5465 fi
5466
e69bf64b 5467 CFLAGS="$saved_CFLAGS"
6de9cd9a 5468
362c6d2f
KG
5469# The library versions listed in the error message below should match
5470# the HARD-minimums enforced above.
e69bf64b 5471 if test x$have_gmp != xyes; then
362c6d2f 5472 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
3a5729ea
KG
5473Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5474their locations. Source code for these libraries can be found at
5475their respective hosting sites as well as at
5476ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5477http://gcc.gnu.org/install/prerequisites.html for additional info. If
5478you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5479make sure that you have installed both the libraries and the header
5480files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5481 fi
70ec446f
KG
5482fi
5483
acd26225
KG
5484# Flags needed for both GMP, MPFR and/or MPC.
5485
5486
6de9cd9a
DN
5487
5488
5489
9e3eba15 5490
f38095f3
JM
5491# Allow host libstdc++ to be specified for static linking with PPL.
5492
5213506e
RW
5493# Check whether --with-host-libstdcxx was given.
5494if test "${with_host_libstdcxx+set}" = set; then :
5495 withval=$with_host_libstdcxx;
5496fi
f38095f3 5497
f38095f3
JM
5498
5499case $with_host_libstdcxx in
5500 no|yes)
5213506e 5501 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5502 ;;
5503esac
f8bf9252 5504
00020c16
ILT
5505# Linker flags to use for stage1 or when not boostrapping.
5506
5213506e
RW
5507# Check whether --with-stage1-ldflags was given.
5508if test "${with_stage1_ldflags+set}" = set; then :
5509 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5510 stage1_ldflags=
5511 else
5512 stage1_ldflags=$withval
5513 fi
5514else
5515 stage1_ldflags=
5213506e
RW
5516fi
5517
00020c16
ILT
5518
5519
5520# Libraries to use for stage1 or when not bootstrapping.
5521
5213506e
RW
5522# Check whether --with-stage1-libs was given.
5523if test "${with_stage1_libs+set}" = set; then :
5524 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5525 stage1_libs=
5526 else
5527 stage1_libs=$withval
5528 fi
5529else
5530 stage1_libs=$with_host_libstdcxx
5213506e
RW
5531fi
5532
00020c16
ILT
5533
5534
00020c16
ILT
5535# Libraries to use for stage2 and later builds. This defaults to the
5536# argument passed to --with-host-libstdcxx.
5537
5213506e
RW
5538# Check whether --with-boot-libs was given.
5539if test "${with_boot_libs+set}" = set; then :
5540 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5541 poststage1_libs=
5542 else
5543 poststage1_libs=$withval
5544 fi
5545else
00020c16 5546 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5547fi
5548
00020c16
ILT
5549
5550
ed2eaa9f
ILT
5551# Linker flags to use for stage2 and later builds.
5552
5553# Check whether --with-boot-ldflags was given.
5554if test "${with_boot_ldflags+set}" = set; then :
5555 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5556 poststage1_ldflags=
5557 else
5558 poststage1_ldflags=$withval
5559 fi
5560else
5561 poststage1_ldflags=
bec93d73
ILT
5562 # In stages 2 and 3, default to linking libstdc++ and libgcc
5563 # statically. But if the user explicitly specified the libraries to
5564 # use, trust that they are doing what they want.
5565 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5566 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5567 fi
5568fi
5569
5570
5571
f8bf9252 5572# Check for PPL
7d32a440 5573ppllibs=
f8bf9252 5574pplinc=
7d32a440 5575pwllib=
f8bf9252
SP
5576
5577
5213506e
RW
5578# Check whether --with-ppl was given.
5579if test "${with_ppl+set}" = set; then :
5580 withval=$with_ppl;
5213506e 5581fi
f8bf9252 5582
f8bf9252 5583
9965e3cd 5584# Check whether --with-ppl-include was given.
5213506e
RW
5585if test "${with_ppl_include+set}" = set; then :
5586 withval=$with_ppl_include;
5587fi
5588
f8bf9252 5589
9965e3cd 5590# Check whether --with-ppl-lib was given.
5213506e
RW
5591if test "${with_ppl_lib+set}" = set; then :
5592 withval=$with_ppl_lib;
5593fi
f8bf9252 5594
f8bf9252 5595
7d32a440
SP
5596# Check whether --enable-ppl-version-check was given.
5597if test "${enable_ppl_version_check+set}" = set; then :
5598 enableval=$enable_ppl_version_check;
5599fi
5600
5601
53095c56 5602case $with_ppl in
7d32a440 5603 yes | no | "")
ad0abd3c 5604 ;;
53095c56 5605 *)
7d32a440 5606 ppllibs="-L$with_ppl/lib"
53095c56 5607 pplinc="-I$with_ppl/include $pplinc"
7d32a440
SP
5608 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5609 with_ppl=yes
5610 else
5611 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5612 fi
53095c56
SP
5613 ;;
5614esac
7d32a440
SP
5615
5616if test x"$with_ppl_include" != x; then
f8bf9252 5617 pplinc="-I$with_ppl_include $pplinc"
7d32a440 5618 with_ppl=yes
f8bf9252 5619fi
7d32a440 5620
f8bf9252 5621if test "x$with_ppl_lib" != x; then
7d32a440
SP
5622 ppllibs="-L$with_ppl_lib"
5623 with_ppl=yes
f8bf9252 5624fi
7d32a440
SP
5625
5626if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5627 if test x"$enable_watchdog" = xyes; then
5628 pwllib="-lpwl"
5629 fi
5630 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
f61428ed
AO
5631 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5632 enable_ppl_version_check=no
7d32a440 5633 with_ppl=yes
f8bf9252
SP
5634fi
5635
f158c8d0 5636if test "x$with_ppl" != xno; then
7d32a440 5637 if test "x$pwllib" = x; then
474ee908
RO
5638 saved_LIBS="$LIBS"
5639 LIBS="$LIBS $ppllibs -lstdc++ -lm"
7d32a440
SP
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5641$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5642if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5643 $as_echo_n "(cached) " >&6
5644else
5645 ac_check_lib_save_LIBS=$LIBS
5646LIBS="-lpwl $LIBS"
5647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648/* end confdefs.h. */
5649
5650/* Override any GCC internal prototype to avoid an error.
5651 Use char because int might match the return type of a GCC
5652 builtin and then its argument prototype would still apply. */
5653#ifdef __cplusplus
5654extern "C"
5655#endif
5656char PWL_handle_timeout ();
5657int
5658main ()
5659{
5660return PWL_handle_timeout ();
5661 ;
5662 return 0;
5663}
5664_ACEOF
5665if ac_fn_c_try_link "$LINENO"; then :
5666 ac_cv_lib_pwl_PWL_handle_timeout=yes
d789184e 5667else
7d32a440
SP
5668 ac_cv_lib_pwl_PWL_handle_timeout=no
5669fi
5670rm -f core conftest.err conftest.$ac_objext \
5671 conftest$ac_exeext conftest.$ac_ext
5672LIBS=$ac_check_lib_save_LIBS
5673fi
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5675$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5676if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5677 pwllib="-lpwl"
5213506e
RW
5678fi
5679
474ee908 5680 LIBS="$saved_LIBS"
7d32a440 5681 fi
f8bf9252 5682
7d32a440
SP
5683 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5684
5685 if test "$enable_ppl_version_check" != no; then
5686 saved_CFLAGS="$CFLAGS"
5687 CFLAGS="$CFLAGS $pplinc $gmpinc"
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5689$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5691/* end confdefs.h. */
5692#include "ppl_c.h"
5693int
5694main ()
5695{
5696
7d32a440
SP
5697 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5698 choke me
5699 #endif
f8bf9252
SP
5700
5701 ;
5702 return 0;
5703}
5704_ACEOF
5213506e
RW
5705if ac_fn_c_try_compile "$LINENO"; then :
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5707$as_echo "yes" >&6; }
f8bf9252 5708else
5213506e 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ed3a56f3 5710$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
f8bf9252 5711fi
5213506e 5712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d32a440
SP
5713 CFLAGS="$saved_CFLAGS"
5714 fi
d789184e
SP
5715fi
5716
5717# Flags needed for PPL
5718
5719
f8bf9252 5720
f8bf9252 5721
d789184e 5722# Check for CLOOG
d32ef397 5723
d789184e
SP
5724
5725
5213506e
RW
5726# Check whether --with-cloog was given.
5727if test "${with_cloog+set}" = set; then :
5728 withval=$with_cloog;
5213506e
RW
5729fi
5730
d789184e 5731
9965e3cd 5732# Check whether --with-cloog-include was given.
5213506e
RW
5733if test "${with_cloog_include+set}" = set; then :
5734 withval=$with_cloog_include;
5735fi
d789184e 5736
d789184e 5737
9965e3cd 5738# Check whether --with-cloog-lib was given.
5213506e
RW
5739if test "${with_cloog_lib+set}" = set; then :
5740 withval=$with_cloog_lib;
5741fi
d789184e 5742
d789184e 5743
f16e2237
TG
5744 # Check whether --enable-cloog-backend was given.
5745if test "${enable_cloog_backend+set}" = set; then :
5746 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5747 cloog_backend=isl
5748 elif test "x${enableval}" = "xppl"; then
5749 cloog_backend=ppl
5750 else
5751 cloog_backend=ppl-legacy
5752 fi
5753else
5754 cloog_backend=ppl-legacy
5755fi
5756
d32ef397
AS
5757 # Check whether --enable-cloog-version-check was given.
5758if test "${enable_cloog_version_check+set}" = set; then :
5759 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5760else
5761 ENABLE_CLOOG_CHECK=yes
5762fi
5763
5764
5765 # Initialize clooglibs and clooginc.
5766 case $with_cloog in
5767 no)
5768 clooglibs=
5769 clooginc=
5770 ;;
5771 "" | yes)
5772 ;;
5773 *)
5774 clooglibs="-L$with_cloog/lib"
5775 clooginc="-I$with_cloog/include"
5776 ;;
5777 esac
5778 if test "x${with_cloog_include}" != x ; then
5779 clooginc="-I$with_cloog_include"
5780 fi
5781 if test "x${with_cloog_lib}" != x; then
5782 clooglibs="-L$with_cloog_lib"
5783 fi
5784
5785
5786
5787
5788
17e72e5d 5789if test "x$with_ppl" = "xno"; then
ab4173cf
SP
5790
5791
5792
6be7b668
JJ
5793 if test "x${with_cloog}" = xno; then
5794 graphite_requested=no
5795 elif test "x${with_cloog}" != x \
ab4173cf
SP
5796 || test "x${with_cloog_include}" != x \
5797 || test "x${with_cloog_lib}" != x ; then
5798 graphite_requested=yes
5799 else
5800 graphite_requested=no
5801 fi
5802
5803
5804 if test "${graphite_requested}" = yes; then
f33d8408 5805 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
ab4173cf 5806 fi
6be7b668 5807 with_cloog=no
ad0abd3c 5808fi
d32ef397
AS
5809if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5810 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5811 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5812 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5813fi
5814if test "x$with_cloog" != "xno"; then
ad0abd3c 5815
d32ef397
AS
5816
5817
5818 _cloog_saved_CFLAGS=$CFLAGS
5819 _cloog_saved_CPPFLAGS=$CPPFLAGS
5820 _cloog_saved_LDFLAGS=$LDFLAGS
5821 _cloog_saved_LIBS=$LIBS
5822
d32ef397
AS
5823 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5824
f16e2237 5825 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
0bb52d68 5826 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
f16e2237
TG
5827 LDFLAGS="${LDFLAGS} ${clooglibs}"
5828
5829 case $cloog_backend in
5830 "ppl-legacy")
5831 CFLAGS="${CFLAGS} ${pplinc}"
5832 LDFLAGS="${LDFLAGS} ${ppllibs}"
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5834$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
d32ef397
AS
5835if test "${gcc_cv_cloog_type+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5837else
5838 LIBS="-lcloog ${_cloog_saved_LIBS}"
f16e2237 5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5840/* end confdefs.h. */
0bb52d68 5841#include "cloog/cloog.h"
d32ef397
AS
5842int
5843main ()
5844{
0bb52d68
TG
5845#ifndef CLOOG_PPL_BACKEND
5846 choke me
5847 #endif
d32ef397
AS
5848 ;
5849 return 0;
5850}
5851_ACEOF
5852if ac_fn_c_try_link "$LINENO"; then :
5853 gcc_cv_cloog_type="PPL Legacy"
5854else
f16e2237
TG
5855 gcc_cv_cloog_type=no
5856fi
5857rm -f core conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
5859fi
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5861$as_echo "$gcc_cv_cloog_type" >&6; }
5862 ;;
5863 "isl")
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5865$as_echo_n "checking for installed CLooG ISL... " >&6; }
5866if test "${gcc_cv_cloog_type+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5868else
5869 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5871/* end confdefs.h. */
0bb52d68 5872#include "cloog/cloog.h"
d32ef397
AS
5873int
5874main ()
5875{
5876cloog_version ()
5877 ;
5878 return 0;
5879}
5880_ACEOF
5881if ac_fn_c_try_link "$LINENO"; then :
f16e2237
TG
5882 gcc_cv_cloog_type="ISL"
5883else
5884 gcc_cv_cloog_type=no
5885fi
5886rm -f core conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext conftest.$ac_ext
5888fi
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5890$as_echo "$gcc_cv_cloog_type" >&6; }
5891 ;;
5892 "ppl")
5893 CFLAGS="${CFLAGS} ${pplinc}"
5894 LDFLAGS="${LDFLAGS} ${ppllibs}"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5896$as_echo_n "checking for installed CLooG PPL... " >&6; }
5897if test "${gcc_cv_cloog_type+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
d32ef397
AS
5899else
5900 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
f16e2237 5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5902/* end confdefs.h. */
0bb52d68 5903#include "cloog/cloog.h"
f16e2237 5904 #include "cloog/ppl/cloog.h"
d32ef397
AS
5905int
5906main ()
5907{
5908cloog_version ()
5909 ;
5910 return 0;
5911}
5912_ACEOF
5913if ac_fn_c_try_link "$LINENO"; then :
f16e2237 5914 gcc_cv_cloog_type="PPL"
d32ef397
AS
5915else
5916 gcc_cv_cloog_type=no
d789184e 5917fi
d32ef397
AS
5918rm -f core conftest.err conftest.$ac_objext \
5919 conftest$ac_exeext conftest.$ac_ext
d789184e 5920fi
d32ef397
AS
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5922$as_echo "$gcc_cv_cloog_type" >&6; }
f16e2237
TG
5923 ;;
5924 *)
5925 gcc_cv_cloog_type=""
5926 esac
5213506e 5927
d32ef397
AS
5928 case $gcc_cv_cloog_type in
5929 "PPL Legacy")
0bb52d68 5930 clooginc="${clooginc}"
d32ef397
AS
5931 clooglibs="${clooglibs} -lcloog"
5932 cloog_org=no
5933 ;;
5934 "ISL")
5935 clooginc="${clooginc} ${_cloogorginc}"
3d2bc11b 5936 clooglibs="${clooglibs} -lcloog-isl -lisl"
d32ef397
AS
5937 cloog_org=yes
5938 ;;
5939 "PPL")
5940 clooginc="${clooginc} ${_cloogorginc}"
5941 clooglibs="${clooglibs} -lcloog-ppl"
5942 cloog_org=yes
5943 ;;
5944 *)
5945 clooglibs=
5946 clooginc=
5947 cloog_org=
5948 ;;
5949 esac
d789184e 5950
d32ef397
AS
5951 LIBS=$_cloog_saved_LIBS
5952 CFLAGS=$_cloog_saved_CFLAGS
5953 CPPFLAGS=$_cloog_saved_CPPFLAGS
5954 LDFLAGS=$_cloog_saved_LDFLAGS
5955
5956
5957
5958
5959
5960 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5961 _cloog_saved_CFLAGS=$CFLAGS
5962 _cloog_saved_LDFLAGS=$LDFLAGS
5963
5964 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
27882098 5965 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
d32ef397
AS
5966
5967 if test "${cloog_org}" = yes ; then
27b9aa80
TG
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5969$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
d32ef397
AS
5970if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972else
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974/* end confdefs.h. */
5975#include "cloog/cloog.h"
5976int
5977main ()
5978{
5979#if CLOOG_VERSION_MAJOR != 0 \
27b9aa80
TG
5980 || CLOOG_VERSION_MINOR != 16 \
5981 || CLOOG_VERSION_REVISION < 1
d32ef397
AS
5982 choke me
5983 #endif
5984 ;
5985 return 0;
5986}
5987_ACEOF
5988if ac_fn_c_try_compile "$LINENO"; then :
5989 gcc_cv_cloog_ct_0_14_0=yes
5990else
5991 gcc_cv_cloog_ct_0_14_0=no
5992fi
5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994fi
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5996$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5997 elif test "${cloog_org}" = no ; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
f264ed56 5999$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
d32ef397
AS
6000if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002else
5213506e 6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
6004/* end confdefs.h. */
6005#include "cloog/cloog.h"
6006int
6007main ()
6008{
d32ef397
AS
6009#if CLOOG_VERSION_MAJOR != 0 \
6010 || CLOOG_VERSION_MINOR != 15 \
6011 || CLOOG_VERSION_REVISION < 5
6012 choke me
6013 #endif
f8bf9252
SP
6014 ;
6015 return 0;
6016}
6017_ACEOF
0333b9a6
SP
6018if ac_fn_c_try_compile "$LINENO"; then :
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020/* end confdefs.h. */
6021#include "cloog/cloog.h"
6022int
6023main ()
6024{
d32ef397
AS
6025#if CLOOG_VERSION_MAJOR != 0 \
6026 || CLOOG_VERSION_MINOR != 15 \
6027 || CLOOG_VERSION_REVISION < 9
6028 choke me
6029 #endif
0333b9a6
SP
6030 ;
6031 return 0;
6032}
6033_ACEOF
5213506e 6034if ac_fn_c_try_compile "$LINENO"; then :
d32ef397 6035 gcc_cv_cloog_ct_0_15_5=yes
0333b9a6 6036else
d32ef397 6037 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
0333b9a6
SP
6038fi
6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8bf9252 6040else
d32ef397 6041 gcc_cv_cloog_ct_0_15_5=no
f8bf9252 6042fi
5213506e 6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e 6044fi
d32ef397
AS
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6046$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6047 fi
6048
6049 CFLAGS=$_cloog_saved_CFLAGS
6050 LDFLAGS=$_cloog_saved_LDFLAGS
6051 fi
f8bf9252 6052
f8bf9252
SP
6053
6054
6055
d32ef397
AS
6056
6057
6058
6be7b668
JJ
6059 if test "x${with_cloog}" = xno; then
6060 graphite_requested=no
6061 elif test "x${with_cloog}" != x \
d32ef397
AS
6062 || test "x${with_cloog_include}" != x \
6063 || test "x${with_cloog_lib}" != x ; then
6064 graphite_requested=yes
6065 else
6066 graphite_requested=no
6067 fi
6068
6069
6070
6071 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6072 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6073 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6074 clooglibs=
6075 clooginc=
6076 fi
6077
6078 if test "${graphite_requested}" = yes \
6079 && test "x${clooglibs}" = x \
6080 && test "x${clooginc}" = x ; then
6081
ab4173cf 6082 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
6083 fi
6084
6085
6086fi
6087
d7f09764
DN
6088# Check for LTO support.
6089# Check whether --enable-lto was given.
6090if test "${enable_lto+set}" = set; then :
6091 enableval=$enable_lto; enable_lto=$enableval
6092else
6093 enable_lto=yes; default_enable_lto=yes
6094fi
6095
6096
7413962d 6097
9a02962b
DK
6098
6099
6100target_elf=no
6101case $target in
6102 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6103 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6104 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6105 target_elf=no
6106 ;;
6107 *)
6108 target_elf=yes
6109 ;;
6110esac
6111
6112if test $target_elf = yes; then :
48215350
DK
6113 # ELF platforms build the lto-plugin always.
6114 build_lto_plugin=yes
9a02962b 6115
9a02962b
DK
6116else
6117 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6118 case $target in
2cd815e7 6119 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6120 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6121 *) enable_lto=no ;;
6122 esac
9a02962b 6123 else
db50fe7d
IS
6124 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6125 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6126 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6127 # warn during gcc/ subconfigure; unless you're bootstrapping with
6128 # -flto it won't be needed until after installation anyway.
6129 case $target in
1cd0b716 6130 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6131 *) if test x"$enable_lto" = x"yes"; then
6132 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6133 fi
6134 ;;
6135 esac
6136 fi
1cd0b716 6137 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6138 # Build it unless LTO was explicitly disabled.
1cd0b716 6139 case $target in
48215350 6140 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6141 *) ;;
6142 esac
48215350 6143
9a02962b
DK
6144fi
6145
d7f09764 6146
f8bf9252 6147
1e0f07d3 6148# By default, C is the only stage 1 language.
e1888513 6149stage1_languages=,c,
2805b53a 6150
00020c16 6151# Target libraries that we bootstrap.
ad1e5170 6152bootstrap_target_libs=,target-libgcc,
00020c16 6153
55ffb5ed
NN
6154# Figure out what language subdirectories are present.
6155# Look if the user specified --enable-languages="..."; if not, use
6156# the environment variable $LANGUAGES if defined. $LANGUAGES might
6157# go away some day.
6158# NB: embedded tabs in this IF block -- do not untabify
6159if test -d ${srcdir}/gcc; then
6160 if test x"${enable_languages+set}" != xset; then
6161 if test x"${LANGUAGES+set}" = xset; then
6162 enable_languages="${LANGUAGES}"
6163 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6164 else
6165 enable_languages=all
6166 fi
6167 else
6168 if test x"${enable_languages}" = x ||
6169 test x"${enable_languages}" = xyes;
6170 then
6171 echo configure.in: --enable-languages needs at least one language argument 1>&2
6172 exit 1
6173 fi
6174 fi
6175 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6176
7f26dfa3
FXC
6177 # 'f95' is the old name for the 'fortran' language. We issue a warning
6178 # and make the substitution.
6179 case ,${enable_languages}, in
6180 *,f95,*)
6181 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6182 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6183 ;;
6184 esac
6185
ff3ac0f4
ILT
6186 # If bootstrapping, then using --enable-build-with-cxx or
6187 # --enable-build-poststage1-with-cxx requires enabling C++.
6188 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6189 *,c++,*:*:*) ;;
6190 *:*,yes,*:yes)
6191 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6192 enable_languages="${enable_languages},c++"
6193 else
6194 as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6195 fi
6196 ;;
6197 esac
6198
55ffb5ed
NN
6199 # First scan to see if an enabled language requires some other language.
6200 # We assume that a given config-lang.in will list all the language
6201 # front ends it requires, even if some are required indirectly.
6202 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6203 case ${lang_frag} in
6204 ..) ;;
6205 # The odd quoting in the next line works around
6206 # an apparent bug in bash 1.12 on linux.
6207 ${srcdir}/gcc/[*]/config-lang.in) ;;
6208 *)
69ecd18f
ILT
6209 # From the config-lang.in, get $language, $lang_requires, and
6210 # $lang_requires_boot_languages.
55ffb5ed
NN
6211 language=
6212 lang_requires=
69ecd18f 6213 lang_requires_boot_languages=
55ffb5ed 6214 . ${lang_frag}
69ecd18f 6215 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6216 case ,${enable_languages}, in
6217 *,$other,*) ;;
6218 *,all,*) ;;
6219 *,$language,*)
6220 echo " \`$other' language required by \`$language'; enabling" 1>&2
6221 enable_languages="${enable_languages},${other}"
6222 ;;
6223 esac
6224 done
69ecd18f
ILT
6225 for other in ${lang_requires_boot_languages} ; do
6226 if test "$other" != "c"; then
6227 case ,${enable_stage1_languages}, in
6228 *,$other,*) ;;
6229 *,all,*) ;;
6230 *)
6231 case ,${enable_languages}, in
6232 *,$language,*)
6233 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6234 enable_stage1_languages="$enable_stage1_languages,${other}"
6235 ;;
6236 esac
6237 ;;
6238 esac
6239 fi
6240 done
55ffb5ed
NN
6241 ;;
6242 esac
6243 done
6244
e1888513 6245 new_enable_languages=,c,
d7f09764
DN
6246
6247 # If LTO is enabled, add the LTO front end.
6248 extra_host_libiberty_configure_flags=
6249 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6250 case ,${enable_languages}, in
6251 *,lto,*) ;;
6252 *) enable_languages="${enable_languages},lto" ;;
6253 esac
1cd0b716 6254 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6255 configdirs="$configdirs lto-plugin"
6256 extra_host_libiberty_configure_flags=--enable-shared
6257 fi
6258 fi
6259
6260
55ffb5ed 6261 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6262 potential_languages=,c,
55ffb5ed 6263
4da3b0f8
ILT
6264 enabled_target_libs=
6265 disabled_target_libs=
6266
55ffb5ed
NN
6267 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6268 case ${lang_frag} in
6269 ..) ;;
6270 # The odd quoting in the next line works around
6271 # an apparent bug in bash 1.12 on linux.
6272 ${srcdir}/gcc/[*]/config-lang.in) ;;
6273 *)
1c710c3c 6274 # From the config-lang.in, get $language, $target_libs,
2805b53a 6275 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6276 language=
6277 target_libs=
6278 lang_dirs=
1546bb64 6279 subdir_requires=
e1888513
PB
6280 boot_language=no
6281 build_by_default=yes
55ffb5ed 6282 . ${lang_frag}
e1888513
PB
6283 if test x${language} = x; then
6284 echo "${lang_frag} doesn't set \$language." 1>&2
6285 exit 1
6286 fi
6287
78767fd9
ILT
6288 if test "$language" = "c++"; then
6289 if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6290 || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6291 boot_language=yes
6292 fi
00020c16
ILT
6293 fi
6294
e1888513
PB
6295 case ,${enable_languages}, in
6296 *,${language},*)
55ffb5ed
NN
6297 # Language was explicitly selected; include it.
6298 add_this_lang=yes
6299 ;;
e1888513
PB
6300 *,all,*)
6301 # 'all' was selected, select it if it is a default language
6302 add_this_lang=${build_by_default}
55ffb5ed
NN
6303 ;;
6304 *)
6305 add_this_lang=no
6306 ;;
6307 esac
6de9cd9a 6308
1546bb64 6309 # Disable languages that need other directories if these aren't available.
95695ad3 6310 for i in $subdir_requires; do
b6348cb3 6311 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6312 case ,${enable_languages}, in
6313 *,${language},*)
6314 # Specifically requested language; tell them.
5213506e 6315 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6316 ;;
6317 *)
6318 # Silently disable.
e1888513 6319 add_this_lang=unsupported
1546bb64
PB
6320 ;;
6321 esac
6322 done
6323
e1888513
PB
6324 # Disable Ada if no preexisting GNAT is available.
6325 case ,${enable_languages},:${language}:${have_gnat} in
6326 *,${language},*:ada:no)
6327 # Specifically requested language; tell them.
5213506e 6328 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6329 ;;
6330 *:ada:no)
6331 # Silently disable.
6332 add_this_lang=unsupported
6333 ;;
6334 esac
6335
4fab7234
HPN
6336 # Disable a language that is unsupported by the target.
6337 case " $unsupported_languages " in
6338 *" $language "*)
e1888513 6339 add_this_lang=unsupported
4fab7234
HPN
6340 ;;
6341 esac
6342
6de9cd9a 6343 case $add_this_lang in
e1888513 6344 unsupported)
55ffb5ed 6345 # Remove language-dependent dirs.
4da3b0f8
ILT
6346 disabled_target_libs="$disabled_target_libs $target_libs"
6347 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6348 ;;
e1888513
PB
6349 no)
6350 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6351 disabled_target_libs="$disabled_target_libs $target_libs"
6352 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6353 potential_languages="${potential_languages}${language},"
6354 ;;
6355 yes)
6356 new_enable_languages="${new_enable_languages}${language},"
6357 potential_languages="${potential_languages}${language},"
2805b53a 6358 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6359 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6360 case "${boot_language}:,$enable_stage1_languages," in
6361 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6362 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6363 case ",$stage1_languages," in
6364 *,$language,* | ,yes, | ,all,) ;;
6365 *) stage1_languages="${stage1_languages}${language}," ;;
6366 esac
00020c16
ILT
6367 # We need to bootstrap any supporting libraries.
6368 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6369 ;;
6370 esac
6371 ;;
55ffb5ed
NN
6372 esac
6373 ;;
6374 esac
6375 done
6376
4da3b0f8
ILT
6377 # Add target libraries which are only needed for disabled languages
6378 # to noconfigdirs.
6379 if test -n "$disabled_target_libs"; then
6380 for dir in $disabled_target_libs; do
6381 case " $enabled_target_libs " in
6382 *" ${dir} "*) ;;
6383 *) noconfigdirs="$noconfigdirs $dir" ;;
6384 esac
6385 done
6386 fi
6387
5213506e
RW
6388 # Check whether --enable-stage1-languages was given.
6389if test "${enable_stage1_languages+set}" = set; then :
6390 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6391 ,no,|,,)
6392 # Set it to something that will have no effect in the loop below
6393 enable_stage1_languages=c ;;
6394 ,yes,)
6395 enable_stage1_languages=`echo $new_enable_languages | \
6396 sed -e "s/^,//" -e "s/,$//" ` ;;
6397 *,all,*)
6398 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6399 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6400 esac
6401
6402 # Add "good" languages from enable_stage1_languages to stage1_languages,
6403 # while "bad" languages go in missing_languages. Leave no duplicates.
6404 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6405 case $potential_languages in
6406 *,$i,*)
6407 case $stage1_languages in
6408 *,$i,*) ;;
6409 *) stage1_languages="$stage1_languages$i," ;;
6410 esac ;;
6411 *)
6412 case $missing_languages in
6413 *,$i,*) ;;
6414 *) missing_languages="$missing_languages$i," ;;
6415 esac ;;
6416 esac
6417 done
5213506e
RW
6418fi
6419
e1888513
PB
6420
6421 # Remove leading/trailing commas that were added for simplicity
6422 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6423 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6424 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6425 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6426
55ffb5ed 6427 if test "x$missing_languages" != x; then
5213506e 6428 as_fn_error "
0cf085e4 6429The following requested languages could not be built: ${missing_languages}
5213506e 6430Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6431 fi
55ffb5ed
NN
6432 if test "x$new_enable_languages" != "x$enable_languages"; then
6433 echo The following languages will be built: ${new_enable_languages}
e1888513 6434 enable_languages="$new_enable_languages"
55ffb5ed 6435 fi
e1888513 6436
1c710c3c 6437
b2eaac4a 6438 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6439fi
6440
27079765
AH
6441# Handle --disable-<component> generically.
6442for dir in $configdirs $build_configdirs $target_configdirs ; do
6443 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6444 varname=`echo $dirname | sed -e s/+/_/g`
6445 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6446 noconfigdirs="$noconfigdirs $dir"
6447 fi
6448done
6449
7cd0cf9c 6450# Check for Boehm's garbage collector
5213506e
RW
6451# Check whether --enable-objc-gc was given.
6452if test "${enable_objc_gc+set}" = set; then :
6453 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6454 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6455 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6456 ;;
6457esac
5213506e
RW
6458fi
6459
7cd0cf9c
DA
6460
6461# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6462case ,${enable_languages},:${enable_objc_gc} in
6463 *,objc,*:yes)
7cd0cf9c
DA
6464 # Keep target-boehm-gc if requested for Objective-C.
6465 ;;
7cd0cf9c 6466 *)
2a79fd67
DA
6467 # Otherwise remove target-boehm-gc depending on target-libjava.
6468 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6469 noconfigdirs="$noconfigdirs target-boehm-gc"
6470 fi
7cd0cf9c
DA
6471 ;;
6472esac
6473
ee6a22df
L
6474# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6475# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6476# If we have the source for $noconfigdirs entries, add them to $notsupp.
6477
6478notsupp=""
6479for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6480 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6481 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6482 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6483 if test -r $srcdir/$dirname/configure ; then
6484 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6485 true
6486 else
6487 notsupp="$notsupp $dir"
6488 fi
6489 fi
6490 fi
ee6a22df
L
6491 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6492 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6493 if test -r $srcdir/$dirname/configure ; then
6494 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6495 true
6496 else
6497 notsupp="$notsupp $dir"
6498 fi
6499 fi
6500 fi
55ffb5ed
NN
6501 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6502 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6503 if test -r $srcdir/$dirname/configure ; then
6504 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6505 true
6506 else
6507 notsupp="$notsupp $dir"
6508 fi
6509 fi
6510 fi
6511done
6512
55ffb5ed
NN
6513# Quietly strip out all directories which aren't configurable in this tree.
6514# This relies on all configurable subdirectories being autoconfiscated, which
6515# is now the case.
23f6b2f9
PB
6516build_configdirs_all="$build_configdirs"
6517build_configdirs=
6518for i in ${build_configdirs_all} ; do
1c710c3c 6519 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6520 if test -f ${srcdir}/$j/configure ; then
6521 build_configdirs="${build_configdirs} $i"
6522 fi
6523done
6524
55ffb5ed
NN
6525configdirs_all="$configdirs"
6526configdirs=
6527for i in ${configdirs_all} ; do
6528 if test -f ${srcdir}/$i/configure ; then
6529 configdirs="${configdirs} $i"
6530 fi
6531done
23f6b2f9 6532
55ffb5ed
NN
6533target_configdirs_all="$target_configdirs"
6534target_configdirs=
6535for i in ${target_configdirs_all} ; do
1c710c3c 6536 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6537 if test -f ${srcdir}/$j/configure ; then
6538 target_configdirs="${target_configdirs} $i"
6539 fi
6540done
6541
6542# Produce a warning message for the subdirs we can't configure.
6543# This isn't especially interesting in the Cygnus tree, but in the individual
6544# FSF releases, it's important to let people know when their machine isn't
6545# supported by the one or two programs in a package.
6546
6547if test -n "${notsupp}" && test -z "${norecursion}" ; then
6548 # If $appdirs is non-empty, at least one of those directories must still
6549 # be configured, or we error out. (E.g., if the gas release supports a
6550 # specified target in some subdirs but not the gas subdir, we shouldn't
6551 # pretend that all is well.)
6552 if test -n "$appdirs" ; then
6553 for dir in $appdirs ; do
6554 if test -r $dir/Makefile.in ; then
6555 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6556 appdirs=""
6557 break
6558 fi
23f6b2f9 6559 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6560 appdirs=""
6561 break
6562 fi
6563 fi
6564 done
6565 if test -n "$appdirs" ; then
6566 echo "*** This configuration is not supported by this package." 1>&2
6567 exit 1
6568 fi
6569 fi
6570 # Okay, some application will build, or we don't care to check. Still
6571 # notify of subdirs not getting built.
6572 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6573 echo " ${notsupp}" 1>&2
6574 echo " (Any other directories should still work fine.)" 1>&2
6575fi
6576
6577case "$host" in
6578 *msdosdjgpp*)
6579 enable_gdbtk=no ;;
6580esac
6581
c3a86da9
DJ
6582# To find our prefix, in gcc_cv_tool_prefix.
6583
6584# The user is always right.
6585if test "${PATH_SEPARATOR+set}" != set; then
6586 echo "#! /bin/sh" >conf$$.sh
6587 echo "exit 0" >>conf$$.sh
6588 chmod +x conf$$.sh
6589 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6590 PATH_SEPARATOR=';'
6591 else
6592 PATH_SEPARATOR=:
6593 fi
6594 rm -f conf$$.sh
6595fi
6596
6597
6598
6599if test "x$exec_prefix" = xNONE; then
6600 if test "x$prefix" = xNONE; then
6601 gcc_cv_tool_prefix=$ac_default_prefix
6602 else
6603 gcc_cv_tool_prefix=$prefix
6604 fi
6605else
6606 gcc_cv_tool_prefix=$exec_prefix
6607fi
6608
6609# If there is no compiler in the tree, use the PATH only. In any
6610# case, if there is no compiler in the tree nobody should use
6611# AS_FOR_TARGET and LD_FOR_TARGET.
6612if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6613 gcc_version=`cat $srcdir/gcc/BASE-VER`
6614 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6615 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6616 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6617 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6618 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6619 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6620else
6621 gcc_cv_tool_dirs=
6622fi
6623
6624if test x$build = x$target && test -n "$md_exec_prefix"; then
6625 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6626fi
6627
6628
6629
55ffb5ed
NN
6630copy_dirs=
6631
1c710c3c 6632
5213506e
RW
6633# Check whether --with-build-sysroot was given.
6634if test "${with_build_sysroot+set}" = set; then :
6635 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6636 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6637 fi
6638else
6639 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6640fi
526635cb
MM
6641
6642
c8aea42c 6643
5213506e
RW
6644
6645# Check whether --with-debug-prefix-map was given.
6646if test "${with_debug_prefix_map+set}" = set; then :
6647 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6648 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6649 for debug_map in $withval; do
6650 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6651 done
6652 fi
6653else
6654 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6655fi
6656
c8aea42c
PB
6657
6658
1c8bd6a3
PB
6659# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6660# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6661# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6662# We want to ensure that TARGET libraries (which we know are built with
6663# gcc) are built with "-O2 -g", so include those options when setting
6664# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6665if test "x$CFLAGS_FOR_TARGET" = x; then
6666 CFLAGS_FOR_TARGET=$CFLAGS
6667 case " $CFLAGS " in
6668 *" -O2 "*) ;;
6669 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6670 esac
6671 case " $CFLAGS " in
6672 *" -g "* | *" -g3 "*) ;;
6673 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6674 esac
6675fi
6676
6677
6678if test "x$CXXFLAGS_FOR_TARGET" = x; then
6679 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6680 case " $CXXFLAGS " in
6681 *" -O2 "*) ;;
6682 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6683 esac
6684 case " $CXXFLAGS " in
6685 *" -g "* | *" -g3 "*) ;;
6686 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6687 esac
6688fi
6689
6690
6f57bdf6
DK
6691
6692
55ffb5ed
NN
6693# Handle --with-headers=XXX. If the value is not "yes", the contents of
6694# the named directory are copied to $(tooldir)/sys-include.
6695if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6696 if test x${is_cross_compiler} = xno ; then
6697 echo 1>&2 '***' --with-headers is only supported when cross compiling
6698 exit 1
6699 fi
6700 if test x"${with_headers}" != xyes ; then
c3a86da9 6701 x=${gcc_cv_tool_prefix}
1c710c3c 6702 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6703 fi
6704fi
6705
6706# Handle --with-libs=XXX. If the value is not "yes", the contents of
6707# the name directories are copied to $(tooldir)/lib. Multiple directories
6708# are permitted.
6709if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6710 if test x${is_cross_compiler} = xno ; then
6711 echo 1>&2 '***' --with-libs is only supported when cross compiling
6712 exit 1
6713 fi
6714 if test x"${with_libs}" != xyes ; then
6715 # Copy the libraries in reverse order, so that files in the first named
6716 # library override files in subsequent libraries.
c3a86da9 6717 x=${gcc_cv_tool_prefix}
55ffb5ed 6718 for l in ${with_libs}; do
1c710c3c 6719 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6720 done
6721 fi
6722fi
6723
d7f09764 6724# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6725#
6726# This is done by determining whether or not the appropriate directory
6727# is available, and by checking whether or not specific configurations
6728# have requested that this magic not happen.
1c710c3c
DJ
6729#
6730# The command line options always override the explicit settings in
e8b05380
PB
6731# configure.in, and the settings in configure.in override this magic.
6732#
1c710c3c 6733# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6734# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6735# --without-gnu-ld options for the configure script. Similarly, if
6736# the default is to use the included zlib and you don't want to do that,
6737# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6738
6739if test x${use_gnu_as} = x &&
6740 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6741 with_gnu_as=yes
6742 extra_host_args="$extra_host_args --with-gnu-as"
6743fi
6744
6745if test x${use_gnu_ld} = x &&
5afab7ad 6746 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6747 with_gnu_ld=yes
6748 extra_host_args="$extra_host_args --with-gnu-ld"
6749fi
6750
d7f09764
DN
6751if test x${use_included_zlib} = x &&
6752 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6753 :
6754else
6755 with_system_zlib=yes
6756 extra_host_args="$extra_host_args --with-system-zlib"
6757fi
6758
e8b05380
PB
6759# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6760# can detect this case.
6761
6762if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6763 with_newlib=yes
6764 extra_host_args="$extra_host_args --with-newlib"
6765fi
6766
55ffb5ed
NN
6767# Handle ${copy_dirs}
6768set fnord ${copy_dirs}
6769shift
6770while test $# != 0 ; do
6771 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6772 :
6773 else
6774 echo Copying $1 to $2
6775
6776 # Use the install script to create the directory and all required
6777 # parent directories.
6778 if test -d $2 ; then
6779 :
6780 else
6781 echo >config.temp
6782 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6783 fi
6784
6785 # Copy the directory, assuming we have tar.
6786 # FIXME: Should we use B in the second tar? Not all systems support it.
6787 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6788
6789 # It is the responsibility of the user to correctly adjust all
6790 # symlinks. If somebody can figure out how to handle them correctly
6791 # here, feel free to add the code.
6792
6793 echo $1 > $2/COPIED
6794 fi
6795 shift; shift
6796done
6797
e8b05380
PB
6798# Determine a target-dependent exec_prefix that the installed
6799# gcc will search in. Keep this list sorted by triplet, with
6800# the *-*-osname triplets last.
6801md_exec_prefix=
6802case "${target}" in
30b74385 6803 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6804 md_exec_prefix=/dev/env/DJDIR/bin
6805 ;;
e8b05380 6806 *-*-hpux* | \
e8b05380 6807 *-*-nto-qnx* | \
6de66370 6808 *-*-solaris2*)
e8b05380
PB
6809 md_exec_prefix=/usr/ccs/bin
6810 ;;
6811esac
6812
671aa708
NN
6813extra_arflags_for_target=
6814extra_nmflags_for_target=
6815extra_ranlibflags_for_target=
6816target_makefile_frag=/dev/null
6817case "${target}" in
58e24147
AM
6818 spu-*-*)
6819 target_makefile_frag="config/mt-spu"
6820 ;;
4bf6c438
RS
6821 mips*-sde-elf*)
6822 target_makefile_frag="config/mt-sde"
6823 ;;
1ec3b87b
RS
6824 mipsisa*-*-elfoabi*)
6825 target_makefile_frag="config/mt-mips-elfoabi"
6826 ;;
08d0963a
RS
6827 mips*-*-*linux* | mips*-*-gnu*)
6828 target_makefile_frag="config/mt-mips-gnu"
6829 ;;
416ac4d4 6830 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6831 target_makefile_frag="config/mt-gnu"
671aa708
NN
6832 ;;
6833 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6834 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6835 # commands to handle both 32-bit and 64-bit objects. These flags are
6836 # harmless if we're using GNU nm or ar.
6837 extra_arflags_for_target=" -X32_64"
6838 extra_nmflags_for_target=" -B -X32_64"
6839 ;;
671aa708
NN
6840esac
6841
6842alphaieee_frag=/dev/null
6843case $target in
6844 alpha*-*-*)
6845 # This just makes sure to use the -mieee option to build target libs.
6846 # This should probably be set individually by each library.
6847 alphaieee_frag="config/mt-alphaieee"
6848 ;;
6849esac
6850
6851# If --enable-target-optspace always use -Os instead of -O2 to build
6852# the target libraries, similarly if it is not specified, use -Os
6853# on selected platforms.
6854ospace_frag=/dev/null
6855case "${enable_target_optspace}:${target}" in
6856 yes:*)
6857 ospace_frag="config/mt-ospace"
6858 ;;
6859 :d30v-*)
6860 ospace_frag="config/mt-d30v"
6861 ;;
6862 :m32r-* | :d10v-* | :fr30-*)
6863 ospace_frag="config/mt-ospace"
6864 ;;
6865 no:* | :*)
6866 ;;
6867 *)
6868 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6869 ;;
6870esac
6871
671aa708
NN
6872# Default to using --with-stabs for certain targets.
6873if test x${with_stabs} = x ; then
6874 case "${target}" in
89a95129 6875 mips*-*-irix[56]*)
671aa708
NN
6876 ;;
6877 mips*-*-* | alpha*-*-osf*)
6878 with_stabs=yes;
6879 extra_host_args="${extra_host_args} --with-stabs"
6880 ;;
6881 esac
6882fi
6883
671aa708
NN
6884# Some systems (e.g., one of the i386-aix systems the gas testers are
6885# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6886tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6887build_tooldir=${tooldir}
6888
671aa708
NN
6889# Create a .gdbinit file which runs the one in srcdir
6890# and tells GDB to look there for source files.
6891
6892if test -r ${srcdir}/.gdbinit ; then
6893 case ${srcdir} in
6894 .) ;;
6895 *) cat > ./.gdbinit <<EOF
6896# ${NO_EDIT}
6897dir ${srcdir}
6898dir .
6899source ${srcdir}/.gdbinit
6900EOF
6901 ;;
6902 esac
6903fi
6904
671aa708
NN
6905# Make sure that the compiler is able to generate an executable. If it
6906# can't, we are probably in trouble. We don't care whether we can run the
6907# executable--we might be using a cross compiler--we only care whether it
6908# can be created. At this point the main configure script has set CC.
6909we_are_ok=no
6910echo "int main () { return 0; }" > conftest.c
6911${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6912if test $? = 0 ; then
6913 if test -s conftest || test -s conftest.exe ; then
6914 we_are_ok=yes
6915 fi
1c710c3c 6916fi
671aa708
NN
6917case $we_are_ok in
6918 no)
6919 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6920 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6921 rm -f conftest*
6922 exit 1
6923 ;;
6924esac
6925rm -f conftest*
6926
d89f0ad6 6927# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6928case "${host}" in
6929 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6930 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6931 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6932 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6933esac
6934
d89f0ad6
AL
6935# On systems where the dynamic library environment variable is PATH,
6936# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6937# built executables to PATH.
6938if test "$RPATH_ENVVAR" = PATH; then
6939 GCC_SHLIB_SUBDIR=/shlib
6940else
6941 GCC_SHLIB_SUBDIR=
6942fi
6943
671aa708
NN
6944# Record target_configdirs and the configure arguments for target and
6945# build configuration in Makefile.
6946target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6947build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6948
ad1e5170
JR
6949# If we are building libgomp, bootstrap it.
6950if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6951 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6952fi
6953
671aa708
NN
6954# Determine whether gdb needs tk/tcl or not.
6955# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6956# and in that case we want gdb to be built without tk. Ugh!
6957# In fact I believe gdb is the *only* package directly dependent on tk,
6958# so we should be able to put the 'maybe's in unconditionally and
6959# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6960# 100% sure that that's safe though.
e914a571 6961
b4f96efe 6962gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6963case "$enable_gdbtk" in
6964 no)
6965 GDB_TK="" ;;
e914a571
AC
6966 yes)
6967 GDB_TK="${gdb_tk}" ;;
671aa708 6968 *)
e914a571
AC
6969 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6970 # distro. Eventually someone will fix this and move Insight, nee
6971 # gdbtk to a separate directory.
6972 if test -d ${srcdir}/gdb/gdbtk ; then
6973 GDB_TK="${gdb_tk}"
6974 else
6975 GDB_TK=""
6976 fi
6977 ;;
671aa708 6978esac
ef9db8d5
DJ
6979CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6980INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6981
60975492 6982# Strip out unwanted targets.
8b87bb96
NN
6983
6984# While at that, we remove Makefiles if we were started for recursive
6985# configuration, so that the top-level Makefile reconfigures them,
6986# like we used to do when configure itself was recursive.
8b87bb96 6987
3e54529c
RW
6988# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6989# but now we're fixing up the Makefile ourselves with the additional
6990# commands passed to AC_CONFIG_FILES. Use separate variables
6991# extrasub-{build,host,target} not because there is any reason to split
6992# the substitutions up that way, but only to remain below the limit of
6993# 99 commands in a script, for HP-UX sed.
6994# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6995
79cd2b23
RW
6996case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6997 yes:yes:*\ gold\ *:*,c++,*) ;;
6998 yes:yes:*\ gold\ *:*)
6999 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7000 ;;
7001esac
7002
ce521a9c 7003# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 7004case $enable_bootstrap in
f516a7da 7005 yes)
e12c4094
AO
7006 bootstrap_suffix=bootstrap
7007 BUILD_CONFIG=bootstrap-debug
7008 ;;
f516a7da 7009 no)
e12c4094
AO
7010 bootstrap_suffix=no-bootstrap
7011 BUILD_CONFIG=
7012 ;;
f516a7da
PB
7013esac
7014
e12c4094
AO
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7016$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7017
7018
7019# Check whether --with-build-config was given.
7020if test "${with_build_config+set}" = set; then :
7021 withval=$with_build_config; case $with_build_config in
7022 yes) with_build_config= ;;
7023 no) with_build_config= BUILD_CONFIG= ;;
7024 esac
7025fi
7026
7027
e12c4094
AO
7028if test "x${with_build_config}" != x; then
7029 BUILD_CONFIG=$with_build_config
7030else
7031 case $BUILD_CONFIG in
7032 bootstrap-debug)
7033 if echo "int f (void) { return 0; }" > conftest.c &&
7034 ${CC} -c conftest.c &&
7035 mv conftest.o conftest.o.g0 &&
7036 ${CC} -c -g conftest.c &&
7037 mv conftest.o conftest.o.g &&
615c8ffa 7038 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
7039 :
7040 else
7041 BUILD_CONFIG=
7042 fi
7043 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7044 ;;
7045 esac
7046fi
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7048$as_echo "$BUILD_CONFIG" >&6; }
7049
7050
3e54529c 7051extrasub_build=
23f6b2f9 7052for module in ${build_configdirs} ; do
5607edfd
PB
7053 if test -z "${no_recursion}" \
7054 && test -f ${build_subdir}/${module}/Makefile; then
7055 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7056 rm -f ${build_subdir}/${module}/Makefile
7057 fi
3e54529c 7058 extrasub_build="$extrasub_build
5607edfd
PB
7059/^@if build-$module\$/d
7060/^@endif build-$module\$/d
7061/^@if build-$module-$bootstrap_suffix\$/d
7062/^@endif build-$module-$bootstrap_suffix\$/d"
7063done
3e54529c 7064extrasub_host=
5607edfd 7065for module in ${configdirs} ; do
a6fbc1e2 7066 if test -z "${no_recursion}"; then
f063a9ed 7067 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7068 if test -f ${file}; then
7069 echo 1>&2 "*** removing ${file} to force reconfigure"
7070 rm -f ${file}
7071 fi
7072 done
5607edfd 7073 fi
3e54529c 7074 extrasub_host="$extrasub_host
5607edfd
PB
7075/^@if $module\$/d
7076/^@endif $module\$/d
7077/^@if $module-$bootstrap_suffix\$/d
7078/^@endif $module-$bootstrap_suffix\$/d"
7079done
3e54529c 7080extrasub_target=
5607edfd
PB
7081for module in ${target_configdirs} ; do
7082 if test -z "${no_recursion}" \
7083 && test -f ${target_subdir}/${module}/Makefile; then
7084 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7085 rm -f ${target_subdir}/${module}/Makefile
7086 fi
00020c16
ILT
7087
7088 # We only bootstrap target libraries listed in bootstrap_target_libs.
7089 case $bootstrap_target_libs in
7090 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7091 *) target_bootstrap_suffix=no-bootstrap ;;
7092 esac
7093
3e54529c 7094 extrasub_target="$extrasub_target
5607edfd
PB
7095/^@if target-$module\$/d
7096/^@endif target-$module\$/d
00020c16
ILT
7097/^@if target-$module-$target_bootstrap_suffix\$/d
7098/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7099done
7100
3e54529c
RW
7101# Do the final fixup along with target modules.
7102extrasub_target="$extrasub_target
60975492 7103/^@if /,/^@endif /d"
671aa708
NN
7104
7105# Create the serialization dependencies. This uses a temporary file.
7106
5213506e
RW
7107# Check whether --enable-serial-configure was given.
7108if test "${enable_serial_configure+set}" = set; then :
7109 enableval=$enable_serial_configure;
7110fi
ade82b16
AO
7111
7112
bf1d3e81
NN
7113case ${enable_serial_configure} in
7114 yes)
7115 enable_serial_build_configure=yes
7116 enable_serial_host_configure=yes
7117 enable_serial_target_configure=yes
7118 ;;
7119esac
7120
671aa708
NN
7121# These force 'configure's to be done one at a time, to avoid problems
7122# with contention over a shared config.cache.
7123rm -f serdep.tmp
ade82b16 7124echo '# serdep.tmp' > serdep.tmp
671aa708 7125olditem=
bf1d3e81 7126test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7127for item in ${build_configdirs} ; do
7128 case ${olditem} in
7129 "") ;;
ade82b16 7130 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7131 esac
7132 olditem=${item}
7133done
7134olditem=
bf1d3e81 7135test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7136for item in ${configdirs} ; do
7137 case ${olditem} in
7138 "") ;;
ade82b16 7139 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7140 esac
7141 olditem=${item}
7142done
7143olditem=
bf1d3e81 7144test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7145for item in ${target_configdirs} ; do
7146 case ${olditem} in
7147 "") ;;
ade82b16 7148 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7149 esac
7150 olditem=${item}
7151done
7152serialization_dependencies=serdep.tmp
7153
7154
ade82b16 7155# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7156# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7157# might not want to pass down to subconfigures. The exception being
7158# --cache-file=/dev/null, which is used to turn off the use of cache
7159# files altogether, and which should be passed on to subconfigures.
7160# Also strip program-prefix, program-suffix, and program-transform-name,
7161# so that we can pass down a consistent program-transform-name.
1c710c3c 7162baseargs=
29a63921 7163tbaseargs=
1c710c3c
DJ
7164keep_next=no
7165skip_next=no
7166eval "set -- $ac_configure_args"
44bfc3ac
DJ
7167for ac_arg
7168do
1c710c3c
DJ
7169 if test X"$skip_next" = X"yes"; then
7170 skip_next=no
7171 continue
7172 fi
7173 if test X"$keep_next" = X"yes"; then
7174 case $ac_arg in
7175 *\'*)
7176 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7177 esac
7178 baseargs="$baseargs '$ac_arg'"
29a63921 7179 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7180 keep_next=no
7181 continue
7182 fi
7183
7184 # Handle separated arguments. Based on the logic generated by
7185 # autoconf 2.59.
7186 case $ac_arg in
7187 *=* | --config-cache | -C | -disable-* | --disable-* \
7188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7190 | -with-* | --with-* | -without-* | --without-* | --x)
7191 separate_arg=no
7192 ;;
7193 -*)
7194 separate_arg=yes
7195 ;;
7196 *)
7197 separate_arg=no
7198 ;;
7199 esac
7200
29a63921
AO
7201 skip_targ=no
7202 case $ac_arg in
7203
7204 --with-* | --without-*)
7205 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7206
7207 case $libopt in
7208 *[-_]include)
7209 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7210 ;;
7211 *[-_]lib)
7212 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7213 ;;
7214 *)
7215 lib=$libopt
7216 ;;
7217 esac
7218
7219
7220 case $lib in
7221 mpc | mpfr | gmp | ppl | cloog)
7222 # If we're processing --with-$lib, --with-$lib-include or
7223 # --with-$lib-lib, for one of the libs above, and target is
7224 # different from host, don't pass the current argument to any
7225 # target library's configure.
7226 if test x$is_cross_compiler = xyes; then
7227 skip_targ=yes
7228 fi
7229 ;;
7230 esac
7231 ;;
7232 esac
7233
1c710c3c 7234 case "$ac_arg" in
f1a036e4
NC
7235 --cache-file=/dev/null | \
7236 -cache-file=/dev/null )
7237 # Handled here to avoid the test to skip args below.
7238 baseargs="$baseargs '$ac_arg'"
29a63921 7239 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7240 # Assert: $separate_arg should always be no.
7241 keep_next=$separate_arg
7242 ;;
1c710c3c
DJ
7243 --no*)
7244 continue
7245 ;;
7246 --c* | \
7247 --sr* | \
7248 --ho* | \
7249 --bu* | \
7250 --t* | \
7251 --program-* | \
7252 -cache_file* | \
7253 -srcdir* | \
7254 -host* | \
7255 -build* | \
7256 -target* | \
7257 -program-prefix* | \
7258 -program-suffix* | \
7259 -program-transform-name* )
7260 skip_next=$separate_arg
7261 continue
7262 ;;
7263 -*)
7264 # An option. Add it.
7265 case $ac_arg in
7266 *\'*)
7267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7268 esac
7269 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7270 if test X"$skip_targ" = Xno; then
7271 tbaseargs="$tbaseargs '$ac_arg'"
7272 fi
1c710c3c
DJ
7273 keep_next=$separate_arg
7274 ;;
7275 *)
7276 # Either a variable assignment, or a nonopt (triplet). Don't
7277 # pass it down; let the Makefile handle this.
7278 continue
7279 ;;
7280 esac
7281done
7282# Remove the initial space we just introduced and, as these will be
7283# expanded by make, quote '$'.
7284baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7285
43bb47c2
DJ
7286# Add in --program-transform-name, after --program-prefix and
7287# --program-suffix have been applied to it. Autoconf has already
7288# doubled dollar signs and backslashes in program_transform_name; we want
7289# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7290# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7291# Also, because we want to override the logic in subdir configure scripts to
7292# choose program_transform_name, replace any s,x,x, with s,y,y,.
7293sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7294${program_transform_name}
7295EOF_SED
7296gcc_transform_name=`cat conftestsed.out`
7297rm -f conftestsed.out
7298baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7299tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7300if test "$silent" = yes; then
7301 baseargs="$baseargs --silent"
29a63921 7302 tbaseargs="$tbaseargs --silent"
d9acb717 7303fi
0115d4a3 7304baseargs="$baseargs --disable-option-checking"
29a63921 7305tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7306
ffedf511
RW
7307# Record and document user additions to sub configure arguments.
7308
7309
7310
7311
671aa708
NN
7312# For the build-side libraries, we just need to pretend we're native,
7313# and not use the same cache file. Multilibs are neither needed nor
7314# desired.
ffedf511 7315build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7316
7317# For host modules, accept cache file option, or specification as blank.
7318case "${cache_file}" in
7319"") # empty
7320 cache_file_option="" ;;
7321/* | [A-Za-z]:[\\/]* ) # absolute path
7322 cache_file_option="--cache-file=${cache_file}" ;;
7323*) # relative path
7324 cache_file_option="--cache-file=../${cache_file}" ;;
7325esac
7326
09438bde
NN
7327# Host dirs don't like to share a cache file either, horribly enough.
7328# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7329host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7330
29a63921 7331target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7332
7333# Passing a --with-cross-host argument lets the target libraries know
7334# whether they are being built with a cross-compiler or being built
7335# native. However, it would be better to use other mechanisms to make the
7336# sorts of decisions they want to make on this basis. Please consider
7337# this option to be deprecated. FIXME.
7338if test x${is_cross_compiler} = xyes ; then
1c710c3c 7339 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7340fi
7341
dc683a3f
RW
7342# Default to --enable-multilib.
7343if test x${enable_multilib} = x ; then
671aa708 7344 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7345fi
671aa708
NN
7346
7347# Pass --with-newlib if appropriate. Note that target_configdirs has
7348# changed from the earlier setting of with_newlib.
7349if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7350 target_configargs="--with-newlib ${target_configargs}"
7351fi
7352
6b9eb62c
NN
7353# Different target subdirs use different values of certain variables
7354# (notably CXX). Worse, multilibs use *lots* of different values.
7355# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7356# it doesn't automatically accept command-line overrides of them.
7357# This means it's not safe for target subdirs to share a cache file,
7358# which is disgusting, but there you have it. Hopefully this can be
7359# fixed in future. It's still worthwhile to use a cache file for each
7360# directory. I think.
7361
bebcd931
MS
7362# Pass the appropriate --build, --host, --target and --cache-file arguments.
7363# We need to pass --target, as newer autoconf's requires consistency
7364# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7365target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7366
671aa708
NN
7367FLAGS_FOR_TARGET=
7368case " $target_configdirs " in
7369 *" newlib "*)
7370 case " $target_configargs " in
7371 *" --with-newlib "*)
7372 case "$target" in
5d571eaa
OS
7373 *-cygwin*)
7374 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7375 ;;
671aa708
NN
7376 esac
7377
7378 # If we're not building GCC, don't discard standard headers.
7379 if test -d ${srcdir}/gcc; then
7380 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7381
7382 if test "${build}" != "${host}"; then
7383 # On Canadian crosses, CC_FOR_TARGET will have already been set
7384 # by `configure', so we won't have an opportunity to add -Bgcc/
7385 # to it. This is right: we don't want to search that directory
7386 # for binaries, but we want the header files in there, so add
7387 # them explicitly.
0463992b 7388 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7389
7390 # Someone might think of using the pre-installed headers on
7391 # Canadian crosses, in case the installed compiler is not fully
7392 # compatible with the compiler being built. In this case, it
7393 # would be better to flag an error than risking having
7394 # incompatible object files being constructed. We can't
7395 # guarantee that an error will be flagged, but let's hope the
7396 # compiler will do it, when presented with incompatible header
7397 # files.
7398 fi
7399 fi
7400
7401 case "${target}-${is_cross_compiler}" in
f2a0e225 7402 i[3456789]86-*-linux*-no)
671aa708
NN
7403 # Here host == target, so we don't need to build gcc,
7404 # so we don't want to discard standard headers.
7405 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7406 ;;
7407 *)
7408 # If we're building newlib, use its generic headers last, but search
7409 # for any libc-related directories first (so make it the last -B
7410 # switch).
7411 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
7412
7413 # If we're building libgloss, find the startup file, simulator library
7414 # and linker script.
7415 case " $target_configdirs " in
7416 *" libgloss "*)
7417 # Look for startup file, simulator library and maybe linker script.
7418 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7419 # Look for libnosys.a in case the target needs it.
7420 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7421 # Most targets have the linker script in the source directory.
7422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7423 ;;
7424 esac
671aa708
NN
7425 ;;
7426 esac
7427 ;;
7428 esac
7429 ;;
7430esac
5d571eaa 7431
b91f0a41 7432case "$target" in
5d571eaa
OS
7433 x86_64-*mingw* | *-w64-mingw*)
7434 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7435 # however, use a symlink named 'mingw' in ${prefix} .
7436 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7437 ;;
7438 *-mingw*)
7439 # MinGW can't be handled as Cygwin above since it does not use newlib.
7440 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'
7441 ;;
b91f0a41 7442esac
671aa708 7443
6691a79e
ME
7444# Allow the user to override the flags for
7445# our build compiler if desired.
f019adc1
MF
7446if test x"${build}" = x"${host}" ; then
7447 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7448 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7449 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7450fi
6691a79e 7451
671aa708
NN
7452# On Canadian crosses, we'll be searching the right directories for
7453# the previously-installed cross compiler, so don't bother to add
7454# flags for directories within the install tree of the compiler
7455# being built; programs in there won't even run.
7456if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7457 # Search for pre-installed headers if nothing else fits.
9124bc53 7458 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
7459fi
7460
7461if test "x${use_gnu_ld}" = x &&
7462 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7463 # Arrange for us to find uninstalled linker scripts.
215c351a 7464 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7465fi
7466
e88a2c09
DD
7467# Search for other target-specific linker scripts and such.
7468case "${target}" in
3e19841a
PB
7469 mep*)
7470 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7471 ;;
e88a2c09
DD
7472esac
7473
671aa708 7474# Makefile fragments.
7b61653a
PE
7475for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7476do
7477 eval fragval=\$$frag
7478 if test $fragval != /dev/null; then
7479 eval $frag=${srcdir}/$fragval
7480 fi
7481done
671aa708
NN
7482
7483
7484
7485
7486
7487# Miscellanea: directories, flags, etc.
7488
7489
7490
7491
7492
7493
7494
d89f0ad6 7495
23f6b2f9 7496# Build module lists & subconfigure args.
671aa708
NN
7497
7498
7499
2abefe3d
PB
7500# Host module lists & subconfigure args.
7501
7502
7503
aae29963 7504
2abefe3d
PB
7505# Target module lists & subconfigure args.
7506
7507
7508
7509# Build tools.
7510
7511
7512
0999159b
PB
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
2abefe3d
PB
7527# Generate default definitions for YACC, M4, LEX and other programs that run
7528# on the build machine. These are used if the Makefile can't locate these
7529# programs in objdir.
7530MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7531
7532for ac_prog in 'bison -y' byacc yacc
7533do
1c710c3c 7534 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7535set dummy $ac_prog; ac_word=$2
5213506e
RW
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537$as_echo_n "checking for $ac_word... " >&6; }
7538if test "${ac_cv_prog_YACC+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
2abefe3d
PB
7540else
7541 if test -n "$YACC"; then
7542 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7543else
1c710c3c
DJ
7544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545for as_dir in $PATH
7546do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
5213506e
RW
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7551 ac_cv_prog_YACC="$ac_prog"
5213506e 7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7553 break 2
7554 fi
7555done
5213506e
RW
7556 done
7557IFS=$as_save_IFS
1c710c3c 7558
2abefe3d
PB
7559fi
7560fi
1c710c3c 7561YACC=$ac_cv_prog_YACC
2abefe3d 7562if test -n "$YACC"; then
5213506e
RW
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7564$as_echo "$YACC" >&6; }
2abefe3d 7565else
5213506e
RW
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567$as_echo "no" >&6; }
2abefe3d
PB
7568fi
7569
5213506e 7570
1c710c3c 7571 test -n "$YACC" && break
2abefe3d
PB
7572done
7573test -n "$YACC" || YACC="$MISSING bison -y"
7574
7575case " $build_configdirs " in
7576 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7577esac
7578
7579for ac_prog in bison
7580do
1c710c3c 7581 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7582set dummy $ac_prog; ac_word=$2
5213506e
RW
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584$as_echo_n "checking for $ac_word... " >&6; }
7585if test "${ac_cv_prog_BISON+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
2abefe3d
PB
7587else
7588 if test -n "$BISON"; then
7589 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7590else
1c710c3c
DJ
7591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592for as_dir in $PATH
7593do
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
5213506e
RW
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7598 ac_cv_prog_BISON="$ac_prog"
5213506e 7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7600 break 2
7601 fi
7602done
5213506e
RW
7603 done
7604IFS=$as_save_IFS
1c710c3c 7605
2abefe3d
PB
7606fi
7607fi
1c710c3c 7608BISON=$ac_cv_prog_BISON
2abefe3d 7609if test -n "$BISON"; then
5213506e
RW
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7611$as_echo "$BISON" >&6; }
2abefe3d 7612else
5213506e
RW
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614$as_echo "no" >&6; }
2abefe3d
PB
7615fi
7616
5213506e 7617
1c710c3c 7618 test -n "$BISON" && break
2abefe3d
PB
7619done
7620test -n "$BISON" || BISON="$MISSING bison"
7621
7622case " $build_configdirs " in
7623 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7624esac
7625
7626for ac_prog in gm4 gnum4 m4
7627do
1c710c3c 7628 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7629set dummy $ac_prog; ac_word=$2
5213506e
RW
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631$as_echo_n "checking for $ac_word... " >&6; }
7632if test "${ac_cv_prog_M4+set}" = set; then :
7633 $as_echo_n "(cached) " >&6
2abefe3d
PB
7634else
7635 if test -n "$M4"; then
7636 ac_cv_prog_M4="$M4" # Let the user override the test.
7637else
1c710c3c
DJ
7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641 IFS=$as_save_IFS
7642 test -z "$as_dir" && as_dir=.
5213506e
RW
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7645 ac_cv_prog_M4="$ac_prog"
5213506e 7646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7647 break 2
7648 fi
7649done
5213506e
RW
7650 done
7651IFS=$as_save_IFS
1c710c3c 7652
2abefe3d
PB
7653fi
7654fi
1c710c3c 7655M4=$ac_cv_prog_M4
2abefe3d 7656if test -n "$M4"; then
5213506e
RW
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7658$as_echo "$M4" >&6; }
2abefe3d 7659else
5213506e
RW
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661$as_echo "no" >&6; }
2abefe3d
PB
7662fi
7663
5213506e 7664
1c710c3c 7665 test -n "$M4" && break
2abefe3d
PB
7666done
7667test -n "$M4" || M4="$MISSING m4"
7668
7669case " $build_configdirs " in
7670 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7671esac
7672
7673for ac_prog in flex lex
7674do
1c710c3c 7675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7676set dummy $ac_prog; ac_word=$2
5213506e
RW
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678$as_echo_n "checking for $ac_word... " >&6; }
7679if test "${ac_cv_prog_LEX+set}" = set; then :
7680 $as_echo_n "(cached) " >&6
2abefe3d
PB
7681else
7682 if test -n "$LEX"; then
7683 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7684else
1c710c3c
DJ
7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686for as_dir in $PATH
7687do
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
5213506e
RW
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7692 ac_cv_prog_LEX="$ac_prog"
5213506e 7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7694 break 2
7695 fi
7696done
5213506e
RW
7697 done
7698IFS=$as_save_IFS
1c710c3c 7699
2abefe3d
PB
7700fi
7701fi
1c710c3c 7702LEX=$ac_cv_prog_LEX
2abefe3d 7703if test -n "$LEX"; then
5213506e
RW
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7705$as_echo "$LEX" >&6; }
2abefe3d 7706else
5213506e
RW
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708$as_echo "no" >&6; }
2abefe3d
PB
7709fi
7710
5213506e 7711
1c710c3c 7712 test -n "$LEX" && break
2abefe3d
PB
7713done
7714test -n "$LEX" || LEX="$MISSING flex"
7715
7716case " $build_configdirs " in
7717 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7718 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7719esac
7720
7721for ac_prog in flex
7722do
1c710c3c 7723 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7724set dummy $ac_prog; ac_word=$2
5213506e
RW
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726$as_echo_n "checking for $ac_word... " >&6; }
7727if test "${ac_cv_prog_FLEX+set}" = set; then :
7728 $as_echo_n "(cached) " >&6
2abefe3d
PB
7729else
7730 if test -n "$FLEX"; then
7731 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7732else
1c710c3c
DJ
7733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
5213506e
RW
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7740 ac_cv_prog_FLEX="$ac_prog"
5213506e 7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7742 break 2
7743 fi
7744done
5213506e
RW
7745 done
7746IFS=$as_save_IFS
1c710c3c 7747
2abefe3d
PB
7748fi
7749fi
1c710c3c 7750FLEX=$ac_cv_prog_FLEX
2abefe3d 7751if test -n "$FLEX"; then
5213506e
RW
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7753$as_echo "$FLEX" >&6; }
2abefe3d 7754else
5213506e
RW
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756$as_echo "no" >&6; }
2abefe3d
PB
7757fi
7758
5213506e 7759
1c710c3c 7760 test -n "$FLEX" && break
2abefe3d
PB
7761done
7762test -n "$FLEX" || FLEX="$MISSING flex"
7763
7764case " $build_configdirs " in
7765 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7766esac
7767
7768for ac_prog in makeinfo
7769do
1c710c3c 7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7771set dummy $ac_prog; ac_word=$2
5213506e
RW
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773$as_echo_n "checking for $ac_word... " >&6; }
7774if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
2abefe3d
PB
7776else
7777 if test -n "$MAKEINFO"; then
7778 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7779else
1c710c3c
DJ
7780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
5213506e
RW
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7787 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7789 break 2
7790 fi
7791done
5213506e
RW
7792 done
7793IFS=$as_save_IFS
1c710c3c 7794
2abefe3d
PB
7795fi
7796fi
1c710c3c 7797MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7798if test -n "$MAKEINFO"; then
5213506e
RW
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7800$as_echo "$MAKEINFO" >&6; }
2abefe3d 7801else
5213506e
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803$as_echo "no" >&6; }
2abefe3d
PB
7804fi
7805
5213506e 7806
1c710c3c 7807 test -n "$MAKEINFO" && break
2abefe3d
PB
7808done
7809test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7810
7811case " $build_configdirs " in
7812 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7813 *)
7814
d18ff35a 7815 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7816 # higher, else we use the "missing" dummy.
7817 if ${MAKEINFO} --version \
d18ff35a 7818 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7819 :
7820 else
7821 MAKEINFO="$MISSING makeinfo"
7822 fi
7823 ;;
7824
7825esac
671aa708 7826
2abefe3d 7827# FIXME: expect and dejagnu may become build tools?
671aa708 7828
2abefe3d
PB
7829for ac_prog in expect
7830do
1c710c3c 7831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7832set dummy $ac_prog; ac_word=$2
5213506e
RW
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834$as_echo_n "checking for $ac_word... " >&6; }
7835if test "${ac_cv_prog_EXPECT+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
2abefe3d
PB
7837else
7838 if test -n "$EXPECT"; then
7839 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7840else
1c710c3c
DJ
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
5213506e
RW
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7848 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7850 break 2
7851 fi
7852done
5213506e
RW
7853 done
7854IFS=$as_save_IFS
1c710c3c 7855
2abefe3d
PB
7856fi
7857fi
1c710c3c 7858EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7859if test -n "$EXPECT"; then
5213506e
RW
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7861$as_echo "$EXPECT" >&6; }
2abefe3d 7862else
5213506e
RW
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864$as_echo "no" >&6; }
2abefe3d 7865fi
671aa708 7866
5213506e 7867
1c710c3c 7868 test -n "$EXPECT" && break
2abefe3d
PB
7869done
7870test -n "$EXPECT" || EXPECT="expect"
671aa708 7871
2abefe3d
PB
7872case " $configdirs " in
7873 *" expect "*)
7874 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7875 ;;
7876esac
671aa708 7877
2abefe3d
PB
7878for ac_prog in runtest
7879do
1c710c3c 7880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7881set dummy $ac_prog; ac_word=$2
5213506e
RW
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883$as_echo_n "checking for $ac_word... " >&6; }
7884if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
2abefe3d
PB
7886else
7887 if test -n "$RUNTEST"; then
7888 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7889else
1c710c3c
DJ
7890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
5213506e
RW
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7897 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7899 break 2
7900 fi
7901done
5213506e
RW
7902 done
7903IFS=$as_save_IFS
1c710c3c 7904
2abefe3d
PB
7905fi
7906fi
1c710c3c 7907RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7908if test -n "$RUNTEST"; then
5213506e
RW
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7910$as_echo "$RUNTEST" >&6; }
2abefe3d 7911else
5213506e
RW
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913$as_echo "no" >&6; }
2abefe3d 7914fi
671aa708 7915
5213506e 7916
1c710c3c 7917 test -n "$RUNTEST" && break
2abefe3d
PB
7918done
7919test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7920
2abefe3d
PB
7921case " $configdirs " in
7922 *" dejagnu "*)
c394e891 7923 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7924 ;;
7925esac
671aa708
NN
7926
7927
671aa708 7928# Host tools.
ca9f4b81
AO
7929ncn_tool_prefix=
7930test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7931ncn_target_tool_prefix=
7932test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7933
278a7a38
AO
7934
7935
7936if test -n "$AR"; then
7937 ac_cv_prog_AR=$AR
7938elif test -n "$ac_cv_prog_AR"; then
7939 AR=$ac_cv_prog_AR
7940fi
7941
7942if test -n "$ac_cv_prog_AR"; then
7943 for ncn_progname in ar; do
7944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7945set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947$as_echo_n "checking for $ac_word... " >&6; }
7948if test "${ac_cv_prog_AR+set}" = set; then :
7949 $as_echo_n "(cached) " >&6
278a7a38
AO
7950else
7951 if test -n "$AR"; then
7952 ac_cv_prog_AR="$AR" # Let the user override the test.
7953else
7954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955for as_dir in $PATH
7956do
7957 IFS=$as_save_IFS
7958 test -z "$as_dir" && as_dir=.
5213506e
RW
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7961 ac_cv_prog_AR="${ncn_progname}"
5213506e 7962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7963 break 2
7964 fi
7965done
5213506e
RW
7966 done
7967IFS=$as_save_IFS
278a7a38
AO
7968
7969fi
7970fi
7971AR=$ac_cv_prog_AR
7972if test -n "$AR"; then
5213506e
RW
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7974$as_echo "$AR" >&6; }
278a7a38 7975else
5213506e
RW
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977$as_echo "no" >&6; }
278a7a38
AO
7978fi
7979
5213506e 7980
278a7a38
AO
7981 done
7982fi
7983
7984for ncn_progname in ar; do
2693c0b0
PB
7985 if test -n "$ncn_tool_prefix"; then
7986 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7987set dummy ${ncn_tool_prefix}${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
ca9f4b81
AO
7992else
7993 if test -n "$AR"; then
7994 ac_cv_prog_AR="$AR" # Let the user override the test.
7995else
1c710c3c
DJ
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
1c710c3c 8003 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8005 break 2
8006 fi
8007done
5213506e
RW
8008 done
8009IFS=$as_save_IFS
1c710c3c 8010
ca9f4b81
AO
8011fi
8012fi
1c710c3c 8013AR=$ac_cv_prog_AR
ca9f4b81 8014if test -n "$AR"; then
5213506e
RW
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8016$as_echo "$AR" >&6; }
ca9f4b81 8017else
5213506e
RW
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019$as_echo "no" >&6; }
ca9f4b81
AO
8020fi
8021
5213506e 8022
2693c0b0
PB
8023 fi
8024 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8026set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028$as_echo_n "checking for $ac_word... " >&6; }
8029if test "${ac_cv_prog_AR+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
ca9f4b81 8031else
2693c0b0 8032 if test -n "$AR"; then
af71363e
AS
8033 ac_cv_prog_AR="$AR" # Let the user override the test.
8034else
1c710c3c
DJ
8035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036for as_dir in $PATH
8037do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
5213506e
RW
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8042 ac_cv_prog_AR="${ncn_progname}"
5213506e 8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8044 break 2
8045 fi
8046done
5213506e
RW
8047 done
8048IFS=$as_save_IFS
1c710c3c 8049
ca9f4b81
AO
8050fi
8051fi
1c710c3c 8052AR=$ac_cv_prog_AR
2693c0b0 8053if test -n "$AR"; then
5213506e
RW
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8055$as_echo "$AR" >&6; }
ca9f4b81 8056else
5213506e
RW
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058$as_echo "no" >&6; }
ca9f4b81 8059fi
1c710c3c 8060
5213506e 8061
2693c0b0
PB
8062 fi
8063 test -n "$ac_cv_prog_AR" && break
8064done
8065
8066if test -z "$ac_cv_prog_AR" ; then
8067 set dummy ar
8068 if test $build = $host ; then
8069 AR="$2"
ca9f4b81 8070 else
2693c0b0 8071 AR="${ncn_tool_prefix}$2"
ca9f4b81 8072 fi
ca9f4b81
AO
8073fi
8074
278a7a38
AO
8075
8076
8077if test -n "$AS"; then
8078 ac_cv_prog_AS=$AS
8079elif test -n "$ac_cv_prog_AS"; then
8080 AS=$ac_cv_prog_AS
8081fi
8082
8083if test -n "$ac_cv_prog_AS"; then
8084 for ncn_progname in as; do
8085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8086set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088$as_echo_n "checking for $ac_word... " >&6; }
8089if test "${ac_cv_prog_AS+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
278a7a38
AO
8091else
8092 if test -n "$AS"; then
8093 ac_cv_prog_AS="$AS" # Let the user override the test.
8094else
8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
5213506e
RW
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8102 ac_cv_prog_AS="${ncn_progname}"
5213506e 8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8104 break 2
8105 fi
8106done
5213506e
RW
8107 done
8108IFS=$as_save_IFS
278a7a38
AO
8109
8110fi
8111fi
8112AS=$ac_cv_prog_AS
8113if test -n "$AS"; then
5213506e
RW
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8115$as_echo "$AS" >&6; }
278a7a38 8116else
5213506e
RW
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118$as_echo "no" >&6; }
278a7a38
AO
8119fi
8120
5213506e 8121
278a7a38
AO
8122 done
8123fi
8124
8125for ncn_progname in as; do
2693c0b0
PB
8126 if test -n "$ncn_tool_prefix"; then
8127 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8128set dummy ${ncn_tool_prefix}${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
ca9f4b81
AO
8133else
8134 if test -n "$AS"; then
8135 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8136else
1c710c3c
DJ
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
1c710c3c 8144 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8146 break 2
8147 fi
8148done
5213506e
RW
8149 done
8150IFS=$as_save_IFS
1c710c3c 8151
ca9f4b81
AO
8152fi
8153fi
1c710c3c 8154AS=$ac_cv_prog_AS
ca9f4b81 8155if test -n "$AS"; then
5213506e
RW
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8157$as_echo "$AS" >&6; }
ca9f4b81 8158else
5213506e
RW
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
ca9f4b81
AO
8161fi
8162
5213506e 8163
2693c0b0
PB
8164 fi
8165 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8167set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169$as_echo_n "checking for $ac_word... " >&6; }
8170if test "${ac_cv_prog_AS+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
ca9f4b81 8172else
2693c0b0
PB
8173 if test -n "$AS"; then
8174 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8175else
1c710c3c
DJ
8176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177for as_dir in $PATH
8178do
8179 IFS=$as_save_IFS
8180 test -z "$as_dir" && as_dir=.
5213506e
RW
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8183 ac_cv_prog_AS="${ncn_progname}"
5213506e 8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8185 break 2
8186 fi
8187done
5213506e
RW
8188 done
8189IFS=$as_save_IFS
1c710c3c 8190
ca9f4b81
AO
8191fi
8192fi
1c710c3c 8193AS=$ac_cv_prog_AS
2693c0b0 8194if test -n "$AS"; then
5213506e
RW
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8196$as_echo "$AS" >&6; }
ca9f4b81 8197else
5213506e
RW
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199$as_echo "no" >&6; }
ca9f4b81 8200fi
1c710c3c 8201
5213506e 8202
2693c0b0
PB
8203 fi
8204 test -n "$ac_cv_prog_AS" && break
8205done
8206
8207if test -z "$ac_cv_prog_AS" ; then
8208 set dummy as
8209 if test $build = $host ; then
8210 AS="$2"
ca9f4b81 8211 else
2693c0b0 8212 AS="${ncn_tool_prefix}$2"
ca9f4b81 8213 fi
ca9f4b81
AO
8214fi
8215
278a7a38
AO
8216
8217
8218if test -n "$DLLTOOL"; then
8219 ac_cv_prog_DLLTOOL=$DLLTOOL
8220elif test -n "$ac_cv_prog_DLLTOOL"; then
8221 DLLTOOL=$ac_cv_prog_DLLTOOL
8222fi
8223
8224if test -n "$ac_cv_prog_DLLTOOL"; then
8225 for ncn_progname in dlltool; do
8226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8227set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229$as_echo_n "checking for $ac_word... " >&6; }
8230if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8231 $as_echo_n "(cached) " >&6
278a7a38
AO
8232else
8233 if test -n "$DLLTOOL"; then
8234 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8235else
8236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237for as_dir in $PATH
8238do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
5213506e
RW
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8243 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8245 break 2
8246 fi
8247done
5213506e
RW
8248 done
8249IFS=$as_save_IFS
278a7a38
AO
8250
8251fi
8252fi
8253DLLTOOL=$ac_cv_prog_DLLTOOL
8254if test -n "$DLLTOOL"; then
5213506e
RW
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8256$as_echo "$DLLTOOL" >&6; }
278a7a38 8257else
5213506e
RW
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259$as_echo "no" >&6; }
278a7a38
AO
8260fi
8261
5213506e 8262
278a7a38
AO
8263 done
8264fi
8265
8266for ncn_progname in dlltool; do
2693c0b0
PB
8267 if test -n "$ncn_tool_prefix"; then
8268 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8269set dummy ${ncn_tool_prefix}${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
ca9f4b81
AO
8274else
8275 if test -n "$DLLTOOL"; then
8276 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8277else
1c710c3c
DJ
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
1c710c3c 8285 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8287 break 2
8288 fi
8289done
5213506e
RW
8290 done
8291IFS=$as_save_IFS
1c710c3c 8292
ca9f4b81
AO
8293fi
8294fi
1c710c3c 8295DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8296if test -n "$DLLTOOL"; then
5213506e
RW
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8298$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8299else
5213506e
RW
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301$as_echo "no" >&6; }
ca9f4b81
AO
8302fi
8303
5213506e 8304
2693c0b0
PB
8305 fi
8306 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310$as_echo_n "checking for $ac_word... " >&6; }
8311if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
ca9f4b81 8313else
2693c0b0
PB
8314 if test -n "$DLLTOOL"; then
8315 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8316else
1c710c3c
DJ
8317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
5213506e
RW
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8324 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8326 break 2
8327 fi
8328done
5213506e
RW
8329 done
8330IFS=$as_save_IFS
1c710c3c 8331
ca9f4b81
AO
8332fi
8333fi
1c710c3c 8334DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8335if test -n "$DLLTOOL"; then
5213506e
RW
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8337$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8338else
5213506e
RW
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340$as_echo "no" >&6; }
ca9f4b81 8341fi
1c710c3c 8342
5213506e 8343
2693c0b0
PB
8344 fi
8345 test -n "$ac_cv_prog_DLLTOOL" && break
8346done
8347
8348if test -z "$ac_cv_prog_DLLTOOL" ; then
8349 set dummy dlltool
8350 if test $build = $host ; then
8351 DLLTOOL="$2"
ca9f4b81 8352 else
2693c0b0 8353 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8354 fi
ca9f4b81
AO
8355fi
8356
278a7a38
AO
8357
8358
8359if test -n "$LD"; then
8360 ac_cv_prog_LD=$LD
8361elif test -n "$ac_cv_prog_LD"; then
8362 LD=$ac_cv_prog_LD
8363fi
8364
8365if test -n "$ac_cv_prog_LD"; then
8366 for ncn_progname in ld; do
8367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8368set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370$as_echo_n "checking for $ac_word... " >&6; }
8371if test "${ac_cv_prog_LD+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
278a7a38
AO
8373else
8374 if test -n "$LD"; then
8375 ac_cv_prog_LD="$LD" # Let the user override the test.
8376else
8377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378for as_dir in $PATH
8379do
8380 IFS=$as_save_IFS
8381 test -z "$as_dir" && as_dir=.
5213506e
RW
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8384 ac_cv_prog_LD="${ncn_progname}"
5213506e 8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8386 break 2
8387 fi
8388done
5213506e
RW
8389 done
8390IFS=$as_save_IFS
278a7a38
AO
8391
8392fi
8393fi
8394LD=$ac_cv_prog_LD
8395if test -n "$LD"; then
5213506e
RW
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8397$as_echo "$LD" >&6; }
278a7a38 8398else
5213506e
RW
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400$as_echo "no" >&6; }
278a7a38
AO
8401fi
8402
5213506e 8403
278a7a38
AO
8404 done
8405fi
8406
8407for ncn_progname in ld; do
2693c0b0
PB
8408 if test -n "$ncn_tool_prefix"; then
8409 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8410set dummy ${ncn_tool_prefix}${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
ca9f4b81
AO
8415else
8416 if test -n "$LD"; then
8417 ac_cv_prog_LD="$LD" # Let the user override the test.
8418else
1c710c3c
DJ
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
1c710c3c 8426 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8428 break 2
8429 fi
8430done
5213506e
RW
8431 done
8432IFS=$as_save_IFS
1c710c3c 8433
ca9f4b81
AO
8434fi
8435fi
1c710c3c 8436LD=$ac_cv_prog_LD
ca9f4b81 8437if test -n "$LD"; then
5213506e
RW
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8439$as_echo "$LD" >&6; }
ca9f4b81 8440else
5213506e
RW
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442$as_echo "no" >&6; }
ca9f4b81
AO
8443fi
8444
5213506e 8445
2693c0b0
PB
8446 fi
8447 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8449set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451$as_echo_n "checking for $ac_word... " >&6; }
8452if test "${ac_cv_prog_LD+set}" = set; then :
8453 $as_echo_n "(cached) " >&6
ca9f4b81 8454else
2693c0b0
PB
8455 if test -n "$LD"; then
8456 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8457else
1c710c3c
DJ
8458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459for as_dir in $PATH
8460do
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
5213506e
RW
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8465 ac_cv_prog_LD="${ncn_progname}"
5213506e 8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8467 break 2
8468 fi
8469done
5213506e
RW
8470 done
8471IFS=$as_save_IFS
1c710c3c 8472
ca9f4b81
AO
8473fi
8474fi
1c710c3c 8475LD=$ac_cv_prog_LD
2693c0b0 8476if test -n "$LD"; then
5213506e
RW
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8478$as_echo "$LD" >&6; }
ca9f4b81 8479else
5213506e
RW
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481$as_echo "no" >&6; }
ca9f4b81 8482fi
1c710c3c 8483
5213506e 8484
2693c0b0
PB
8485 fi
8486 test -n "$ac_cv_prog_LD" && break
8487done
8488
8489if test -z "$ac_cv_prog_LD" ; then
8490 set dummy ld
8491 if test $build = $host ; then
8492 LD="$2"
ca9f4b81 8493 else
2693c0b0 8494 LD="${ncn_tool_prefix}$2"
ca9f4b81 8495 fi
ca9f4b81
AO
8496fi
8497
278a7a38
AO
8498
8499
8500if test -n "$LIPO"; then
8501 ac_cv_prog_LIPO=$LIPO
8502elif test -n "$ac_cv_prog_LIPO"; then
8503 LIPO=$ac_cv_prog_LIPO
8504fi
8505
8506if test -n "$ac_cv_prog_LIPO"; then
8507 for ncn_progname in lipo; do
8508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8509set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511$as_echo_n "checking for $ac_word... " >&6; }
8512if test "${ac_cv_prog_LIPO+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
278a7a38
AO
8514else
8515 if test -n "$LIPO"; then
8516 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8517else
8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519for as_dir in $PATH
8520do
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
5213506e
RW
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8525 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8527 break 2
8528 fi
8529done
5213506e
RW
8530 done
8531IFS=$as_save_IFS
278a7a38
AO
8532
8533fi
8534fi
8535LIPO=$ac_cv_prog_LIPO
8536if test -n "$LIPO"; then
5213506e
RW
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8538$as_echo "$LIPO" >&6; }
278a7a38 8539else
5213506e
RW
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541$as_echo "no" >&6; }
278a7a38
AO
8542fi
8543
5213506e 8544
278a7a38
AO
8545 done
8546fi
8547
8548for ncn_progname in lipo; do
2abefe3d
PB
8549 if test -n "$ncn_tool_prefix"; then
8550 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8551set dummy ${ncn_tool_prefix}${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
2abefe3d
PB
8556else
8557 if test -n "$LIPO"; then
8558 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8559else
1c710c3c
DJ
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
1c710c3c 8567 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8569 break 2
8570 fi
8571done
5213506e
RW
8572 done
8573IFS=$as_save_IFS
1c710c3c 8574
2abefe3d
PB
8575fi
8576fi
1c710c3c 8577LIPO=$ac_cv_prog_LIPO
2abefe3d 8578if test -n "$LIPO"; then
5213506e
RW
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8580$as_echo "$LIPO" >&6; }
2abefe3d 8581else
5213506e
RW
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583$as_echo "no" >&6; }
2abefe3d
PB
8584fi
8585
5213506e 8586
2abefe3d
PB
8587 fi
8588 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8590set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592$as_echo_n "checking for $ac_word... " >&6; }
8593if test "${ac_cv_prog_LIPO+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
2abefe3d
PB
8595else
8596 if test -n "$LIPO"; then
8597 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8598else
1c710c3c
DJ
8599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600for as_dir in $PATH
8601do
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
5213506e
RW
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8606 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8608 break 2
8609 fi
8610done
5213506e
RW
8611 done
8612IFS=$as_save_IFS
1c710c3c 8613
2abefe3d
PB
8614fi
8615fi
1c710c3c 8616LIPO=$ac_cv_prog_LIPO
2abefe3d 8617if test -n "$LIPO"; then
5213506e
RW
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8619$as_echo "$LIPO" >&6; }
2abefe3d 8620else
5213506e
RW
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622$as_echo "no" >&6; }
2abefe3d 8623fi
1c710c3c 8624
5213506e 8625
2abefe3d
PB
8626 fi
8627 test -n "$ac_cv_prog_LIPO" && break
8628done
8629
8630if test -z "$ac_cv_prog_LIPO" ; then
8631 set dummy lipo
8632 if test $build = $host ; then
8633 LIPO="$2"
8634 else
8635 LIPO="${ncn_tool_prefix}$2"
8636 fi
8637fi
8638
278a7a38
AO
8639
8640
8641if test -n "$NM"; then
8642 ac_cv_prog_NM=$NM
8643elif test -n "$ac_cv_prog_NM"; then
8644 NM=$ac_cv_prog_NM
8645fi
8646
8647if test -n "$ac_cv_prog_NM"; then
8648 for ncn_progname in nm; do
8649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8650set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652$as_echo_n "checking for $ac_word... " >&6; }
8653if test "${ac_cv_prog_NM+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8655else
8656 if test -n "$NM"; then
8657 ac_cv_prog_NM="$NM" # Let the user override the test.
8658else
1c710c3c
DJ
8659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660for as_dir in $PATH
8661do
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
5213506e
RW
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8666 ac_cv_prog_NM="${ncn_progname}"
5213506e 8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8668 break 2
8669 fi
8670done
5213506e
RW
8671 done
8672IFS=$as_save_IFS
1c710c3c 8673
ca9f4b81
AO
8674fi
8675fi
1c710c3c 8676NM=$ac_cv_prog_NM
ca9f4b81 8677if test -n "$NM"; then
5213506e
RW
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8679$as_echo "$NM" >&6; }
ca9f4b81 8680else
5213506e
RW
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682$as_echo "no" >&6; }
ca9f4b81
AO
8683fi
8684
5213506e 8685
278a7a38
AO
8686 done
8687fi
8688
8689for ncn_progname in nm; do
8690 if test -n "$ncn_tool_prefix"; then
8691 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8692set dummy ${ncn_tool_prefix}${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 8697else
2693c0b0
PB
8698 if test -n "$NM"; then
8699 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 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_tool_prefix}${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
2693c0b0 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 8725fi
1c710c3c 8726
5213506e 8727
2693c0b0 8728 fi
278a7a38
AO
8729 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8731set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733$as_echo_n "checking for $ac_word... " >&6; }
8734if test "${ac_cv_prog_NM+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
278a7a38
AO
8736else
8737 if test -n "$NM"; then
8738 ac_cv_prog_NM="$NM" # Let the user override the test.
8739else
8740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741for as_dir in $PATH
8742do
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
5213506e
RW
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8747 ac_cv_prog_NM="${ncn_progname}"
5213506e 8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8749 break 2
8750 fi
8751done
5213506e
RW
8752 done
8753IFS=$as_save_IFS
278a7a38
AO
8754
8755fi
8756fi
8757NM=$ac_cv_prog_NM
8758if test -n "$NM"; then
5213506e
RW
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8760$as_echo "$NM" >&6; }
278a7a38 8761else
5213506e
RW
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763$as_echo "no" >&6; }
278a7a38
AO
8764fi
8765
5213506e 8766
278a7a38
AO
8767 fi
8768 test -n "$ac_cv_prog_NM" && break
8769done
8770
8771if test -z "$ac_cv_prog_NM" ; then
8772 set dummy nm
8773 if test $build = $host ; then
8774 NM="$2"
8775 else
8776 NM="${ncn_tool_prefix}$2"
8777 fi
8778fi
8779
8780
8781
8782if test -n "$RANLIB"; then
8783 ac_cv_prog_RANLIB=$RANLIB
8784elif test -n "$ac_cv_prog_RANLIB"; then
8785 RANLIB=$ac_cv_prog_RANLIB
8786fi
8787
8788if test -n "$ac_cv_prog_RANLIB"; then
8789 for ncn_progname in ranlib; do
8790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8791set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793$as_echo_n "checking for $ac_word... " >&6; }
8794if test "${ac_cv_prog_RANLIB+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
278a7a38
AO
8796else
8797 if test -n "$RANLIB"; then
8798 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8799else
8800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $PATH
8802do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
5213506e
RW
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8807 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8809 break 2
8810 fi
8811done
5213506e
RW
8812 done
8813IFS=$as_save_IFS
278a7a38
AO
8814
8815fi
8816fi
8817RANLIB=$ac_cv_prog_RANLIB
8818if test -n "$RANLIB"; then
5213506e
RW
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8820$as_echo "$RANLIB" >&6; }
278a7a38 8821else
5213506e
RW
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823$as_echo "no" >&6; }
278a7a38
AO
8824fi
8825
5213506e 8826
278a7a38
AO
8827 done
8828fi
ca9f4b81 8829
278a7a38 8830for ncn_progname in ranlib; do
2693c0b0
PB
8831 if test -n "$ncn_tool_prefix"; then
8832 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8833set dummy ${ncn_tool_prefix}${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
ca9f4b81
AO
8838else
8839 if test -n "$RANLIB"; then
8840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8841else
1c710c3c
DJ
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
1c710c3c 8849 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8851 break 2
8852 fi
8853done
5213506e
RW
8854 done
8855IFS=$as_save_IFS
1c710c3c 8856
ca9f4b81
AO
8857fi
8858fi
1c710c3c 8859RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8860if test -n "$RANLIB"; then
5213506e
RW
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8862$as_echo "$RANLIB" >&6; }
ca9f4b81 8863else
5213506e
RW
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
ca9f4b81
AO
8866fi
8867
5213506e 8868
2693c0b0
PB
8869 fi
8870 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8872set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874$as_echo_n "checking for $ac_word... " >&6; }
8875if test "${ac_cv_prog_RANLIB+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
ca9f4b81 8877else
2693c0b0
PB
8878 if test -n "$RANLIB"; then
8879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8880else
1c710c3c
DJ
8881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882for as_dir in $PATH
8883do
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
5213506e
RW
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8888 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8890 break 2
8891 fi
8892done
5213506e
RW
8893 done
8894IFS=$as_save_IFS
1c710c3c 8895
ca9f4b81
AO
8896fi
8897fi
1c710c3c 8898RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8899if test -n "$RANLIB"; then
5213506e
RW
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8901$as_echo "$RANLIB" >&6; }
ca9f4b81 8902else
5213506e
RW
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904$as_echo "no" >&6; }
ca9f4b81 8905fi
1c710c3c 8906
5213506e 8907
ca9f4b81 8908 fi
2693c0b0
PB
8909 test -n "$ac_cv_prog_RANLIB" && break
8910done
8911
8912if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8913 RANLIB="true"
ca9f4b81
AO
8914fi
8915
278a7a38
AO
8916
8917
8918if test -n "$STRIP"; then
8919 ac_cv_prog_STRIP=$STRIP
8920elif test -n "$ac_cv_prog_STRIP"; then
8921 STRIP=$ac_cv_prog_STRIP
8922fi
8923
8924if test -n "$ac_cv_prog_STRIP"; then
8925 for ncn_progname in strip; do
8926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8927set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929$as_echo_n "checking for $ac_word... " >&6; }
8930if test "${ac_cv_prog_STRIP+set}" = set; then :
8931 $as_echo_n "(cached) " >&6
278a7a38
AO
8932else
8933 if test -n "$STRIP"; then
8934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8935else
8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937for as_dir in $PATH
8938do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
5213506e
RW
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8943 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8945 break 2
8946 fi
8947done
5213506e
RW
8948 done
8949IFS=$as_save_IFS
278a7a38
AO
8950
8951fi
8952fi
8953STRIP=$ac_cv_prog_STRIP
8954if test -n "$STRIP"; then
5213506e
RW
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8956$as_echo "$STRIP" >&6; }
278a7a38 8957else
5213506e
RW
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959$as_echo "no" >&6; }
278a7a38
AO
8960fi
8961
5213506e 8962
278a7a38
AO
8963 done
8964fi
8965
8966for ncn_progname in strip; do
2abefe3d
PB
8967 if test -n "$ncn_tool_prefix"; then
8968 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8969set dummy ${ncn_tool_prefix}${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
2abefe3d
PB
8974else
8975 if test -n "$STRIP"; then
8976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8977else
1c710c3c
DJ
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
1c710c3c 8985 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8987 break 2
8988 fi
8989done
5213506e
RW
8990 done
8991IFS=$as_save_IFS
1c710c3c 8992
2abefe3d
PB
8993fi
8994fi
1c710c3c 8995STRIP=$ac_cv_prog_STRIP
2abefe3d 8996if test -n "$STRIP"; then
5213506e
RW
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8998$as_echo "$STRIP" >&6; }
2abefe3d 8999else
5213506e
RW
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001$as_echo "no" >&6; }
2abefe3d
PB
9002fi
9003
5213506e 9004
2abefe3d
PB
9005 fi
9006 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9008set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010$as_echo_n "checking for $ac_word... " >&6; }
9011if test "${ac_cv_prog_STRIP+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
2abefe3d
PB
9013else
9014 if test -n "$STRIP"; then
9015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9016else
1c710c3c
DJ
9017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018for as_dir in $PATH
9019do
9020 IFS=$as_save_IFS
9021 test -z "$as_dir" && as_dir=.
5213506e
RW
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9024 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9026 break 2
9027 fi
9028done
5213506e
RW
9029 done
9030IFS=$as_save_IFS
1c710c3c 9031
2abefe3d
PB
9032fi
9033fi
1c710c3c 9034STRIP=$ac_cv_prog_STRIP
2abefe3d 9035if test -n "$STRIP"; then
5213506e
RW
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9037$as_echo "$STRIP" >&6; }
2abefe3d 9038else
5213506e
RW
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040$as_echo "no" >&6; }
2abefe3d 9041fi
1c710c3c 9042
5213506e 9043
2abefe3d
PB
9044 fi
9045 test -n "$ac_cv_prog_STRIP" && break
9046done
9047
9048if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9049 STRIP="true"
2abefe3d
PB
9050fi
9051
278a7a38
AO
9052
9053
9054if test -n "$WINDRES"; then
9055 ac_cv_prog_WINDRES=$WINDRES
9056elif test -n "$ac_cv_prog_WINDRES"; then
9057 WINDRES=$ac_cv_prog_WINDRES
9058fi
9059
9060if test -n "$ac_cv_prog_WINDRES"; then
9061 for ncn_progname in windres; do
9062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9063set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065$as_echo_n "checking for $ac_word... " >&6; }
9066if test "${ac_cv_prog_WINDRES+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
278a7a38
AO
9068else
9069 if test -n "$WINDRES"; then
9070 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9071else
9072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073for as_dir in $PATH
9074do
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
5213506e
RW
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9079 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9081 break 2
9082 fi
9083done
5213506e
RW
9084 done
9085IFS=$as_save_IFS
278a7a38
AO
9086
9087fi
9088fi
9089WINDRES=$ac_cv_prog_WINDRES
9090if test -n "$WINDRES"; then
5213506e
RW
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9092$as_echo "$WINDRES" >&6; }
278a7a38 9093else
5213506e
RW
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095$as_echo "no" >&6; }
278a7a38
AO
9096fi
9097
5213506e 9098
278a7a38
AO
9099 done
9100fi
9101
9102for ncn_progname in windres; do
2693c0b0
PB
9103 if test -n "$ncn_tool_prefix"; then
9104 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9105set dummy ${ncn_tool_prefix}${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
ca9f4b81
AO
9110else
9111 if test -n "$WINDRES"; then
9112 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9113else
1c710c3c
DJ
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
1c710c3c 9121 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9123 break 2
9124 fi
9125done
5213506e
RW
9126 done
9127IFS=$as_save_IFS
1c710c3c 9128
ca9f4b81
AO
9129fi
9130fi
1c710c3c 9131WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9132if test -n "$WINDRES"; then
5213506e
RW
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9134$as_echo "$WINDRES" >&6; }
ca9f4b81 9135else
5213506e
RW
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137$as_echo "no" >&6; }
ca9f4b81
AO
9138fi
9139
5213506e 9140
2693c0b0
PB
9141 fi
9142 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9144set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9146$as_echo_n "checking for $ac_word... " >&6; }
9147if test "${ac_cv_prog_WINDRES+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
ca9f4b81 9149else
2693c0b0
PB
9150 if test -n "$WINDRES"; then
9151 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9152else
1c710c3c
DJ
9153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154for as_dir in $PATH
9155do
9156 IFS=$as_save_IFS
9157 test -z "$as_dir" && as_dir=.
5213506e
RW
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9160 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9162 break 2
9163 fi
9164done
5213506e
RW
9165 done
9166IFS=$as_save_IFS
1c710c3c 9167
ca9f4b81
AO
9168fi
9169fi
1c710c3c 9170WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9171if test -n "$WINDRES"; then
5213506e
RW
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9173$as_echo "$WINDRES" >&6; }
ca9f4b81 9174else
5213506e
RW
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176$as_echo "no" >&6; }
ca9f4b81 9177fi
1c710c3c 9178
5213506e 9179
2693c0b0
PB
9180 fi
9181 test -n "$ac_cv_prog_WINDRES" && break
9182done
9183
9184if test -z "$ac_cv_prog_WINDRES" ; then
9185 set dummy windres
9186 if test $build = $host ; then
9187 WINDRES="$2"
ca9f4b81 9188 else
2693c0b0 9189 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9190 fi
ca9f4b81
AO
9191fi
9192
278a7a38
AO
9193
9194
901119ae
KT
9195if test -n "$WINDMC"; then
9196 ac_cv_prog_WINDMC=$WINDMC
9197elif test -n "$ac_cv_prog_WINDMC"; then
9198 WINDMC=$ac_cv_prog_WINDMC
9199fi
9200
9201if test -n "$ac_cv_prog_WINDMC"; then
9202 for ncn_progname in windmc; do
9203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9204set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206$as_echo_n "checking for $ac_word... " >&6; }
9207if test "${ac_cv_prog_WINDMC+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
901119ae
KT
9209else
9210 if test -n "$WINDMC"; then
9211 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9212else
9213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214for as_dir in $PATH
9215do
9216 IFS=$as_save_IFS
9217 test -z "$as_dir" && as_dir=.
5213506e
RW
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9220 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9222 break 2
9223 fi
9224done
5213506e
RW
9225 done
9226IFS=$as_save_IFS
901119ae
KT
9227
9228fi
9229fi
9230WINDMC=$ac_cv_prog_WINDMC
9231if test -n "$WINDMC"; then
5213506e
RW
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9233$as_echo "$WINDMC" >&6; }
901119ae 9234else
5213506e
RW
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236$as_echo "no" >&6; }
901119ae
KT
9237fi
9238
5213506e 9239
901119ae
KT
9240 done
9241fi
9242
9243for ncn_progname in windmc; do
9244 if test -n "$ncn_tool_prefix"; then
9245 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9246set dummy ${ncn_tool_prefix}${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_tool_prefix}${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 fi
9283 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9285set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287$as_echo_n "checking for $ac_word... " >&6; }
9288if test "${ac_cv_prog_WINDMC+set}" = set; then :
9289 $as_echo_n "(cached) " >&6
901119ae
KT
9290else
9291 if test -n "$WINDMC"; then
9292 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9293else
9294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295for as_dir in $PATH
9296do
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
5213506e
RW
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9301 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9303 break 2
9304 fi
9305done
5213506e
RW
9306 done
9307IFS=$as_save_IFS
901119ae
KT
9308
9309fi
9310fi
9311WINDMC=$ac_cv_prog_WINDMC
9312if test -n "$WINDMC"; then
5213506e
RW
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9314$as_echo "$WINDMC" >&6; }
901119ae 9315else
5213506e
RW
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317$as_echo "no" >&6; }
901119ae
KT
9318fi
9319
5213506e 9320
901119ae
KT
9321 fi
9322 test -n "$ac_cv_prog_WINDMC" && break
9323done
9324
9325if test -z "$ac_cv_prog_WINDMC" ; then
9326 set dummy windmc
9327 if test $build = $host ; then
9328 WINDMC="$2"
9329 else
9330 WINDMC="${ncn_tool_prefix}$2"
9331 fi
9332fi
9333
9334
9335
278a7a38
AO
9336if test -n "$OBJCOPY"; then
9337 ac_cv_prog_OBJCOPY=$OBJCOPY
9338elif test -n "$ac_cv_prog_OBJCOPY"; then
9339 OBJCOPY=$ac_cv_prog_OBJCOPY
9340fi
9341
9342if test -n "$ac_cv_prog_OBJCOPY"; then
9343 for ncn_progname in objcopy; do
9344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9345set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347$as_echo_n "checking for $ac_word... " >&6; }
9348if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
278a7a38
AO
9350else
9351 if test -n "$OBJCOPY"; then
9352 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9353else
9354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355for as_dir in $PATH
9356do
9357 IFS=$as_save_IFS
9358 test -z "$as_dir" && as_dir=.
5213506e
RW
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9361 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9363 break 2
9364 fi
9365done
5213506e
RW
9366 done
9367IFS=$as_save_IFS
278a7a38
AO
9368
9369fi
9370fi
9371OBJCOPY=$ac_cv_prog_OBJCOPY
9372if test -n "$OBJCOPY"; then
5213506e
RW
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9374$as_echo "$OBJCOPY" >&6; }
278a7a38 9375else
5213506e
RW
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377$as_echo "no" >&6; }
278a7a38
AO
9378fi
9379
5213506e 9380
278a7a38
AO
9381 done
9382fi
9383
9384for ncn_progname in objcopy; do
2693c0b0
PB
9385 if test -n "$ncn_tool_prefix"; then
9386 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9387set dummy ${ncn_tool_prefix}${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
ca9f4b81
AO
9392else
9393 if test -n "$OBJCOPY"; then
9394 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9395else
1c710c3c
DJ
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
1c710c3c 9403 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9405 break 2
9406 fi
9407done
5213506e
RW
9408 done
9409IFS=$as_save_IFS
1c710c3c 9410
ca9f4b81
AO
9411fi
9412fi
1c710c3c 9413OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9414if test -n "$OBJCOPY"; then
5213506e
RW
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9416$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9417else
5213506e
RW
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419$as_echo "no" >&6; }
ca9f4b81
AO
9420fi
9421
5213506e 9422
2693c0b0
PB
9423 fi
9424 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9426set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428$as_echo_n "checking for $ac_word... " >&6; }
9429if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
ca9f4b81 9431else
2693c0b0
PB
9432 if test -n "$OBJCOPY"; then
9433 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9434else
1c710c3c
DJ
9435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436for as_dir in $PATH
9437do
9438 IFS=$as_save_IFS
9439 test -z "$as_dir" && as_dir=.
5213506e
RW
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9442 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9444 break 2
9445 fi
9446done
5213506e
RW
9447 done
9448IFS=$as_save_IFS
1c710c3c 9449
ca9f4b81
AO
9450fi
9451fi
1c710c3c 9452OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9453if test -n "$OBJCOPY"; then
5213506e
RW
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9455$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9456else
5213506e
RW
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458$as_echo "no" >&6; }
ca9f4b81 9459fi
1c710c3c 9460
5213506e 9461
2693c0b0
PB
9462 fi
9463 test -n "$ac_cv_prog_OBJCOPY" && break
9464done
9465
9466if test -z "$ac_cv_prog_OBJCOPY" ; then
9467 set dummy objcopy
9468 if test $build = $host ; then
9469 OBJCOPY="$2"
ca9f4b81 9470 else
2693c0b0 9471 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9472 fi
ca9f4b81
AO
9473fi
9474
278a7a38
AO
9475
9476
9477if test -n "$OBJDUMP"; then
9478 ac_cv_prog_OBJDUMP=$OBJDUMP
9479elif test -n "$ac_cv_prog_OBJDUMP"; then
9480 OBJDUMP=$ac_cv_prog_OBJDUMP
9481fi
9482
9483if test -n "$ac_cv_prog_OBJDUMP"; then
9484 for ncn_progname in objdump; do
9485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9486set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488$as_echo_n "checking for $ac_word... " >&6; }
9489if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
278a7a38
AO
9491else
9492 if test -n "$OBJDUMP"; then
9493 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9494else
9495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496for as_dir in $PATH
9497do
9498 IFS=$as_save_IFS
9499 test -z "$as_dir" && as_dir=.
5213506e
RW
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9502 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9504 break 2
9505 fi
9506done
5213506e
RW
9507 done
9508IFS=$as_save_IFS
278a7a38
AO
9509
9510fi
9511fi
9512OBJDUMP=$ac_cv_prog_OBJDUMP
9513if test -n "$OBJDUMP"; then
5213506e
RW
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9515$as_echo "$OBJDUMP" >&6; }
278a7a38 9516else
5213506e
RW
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518$as_echo "no" >&6; }
278a7a38
AO
9519fi
9520
5213506e 9521
278a7a38
AO
9522 done
9523fi
9524
9525for ncn_progname in objdump; do
2693c0b0
PB
9526 if test -n "$ncn_tool_prefix"; then
9527 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9528set dummy ${ncn_tool_prefix}${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
ca9f4b81
AO
9533else
9534 if test -n "$OBJDUMP"; then
9535 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9536else
1c710c3c
DJ
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
1c710c3c 9544 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9546 break 2
9547 fi
9548done
5213506e
RW
9549 done
9550IFS=$as_save_IFS
1c710c3c 9551
ca9f4b81
AO
9552fi
9553fi
1c710c3c 9554OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9555if test -n "$OBJDUMP"; then
5213506e
RW
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9557$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9558else
5213506e
RW
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560$as_echo "no" >&6; }
ca9f4b81
AO
9561fi
9562
5213506e 9563
2693c0b0
PB
9564 fi
9565 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9567set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569$as_echo_n "checking for $ac_word... " >&6; }
9570if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
ca9f4b81 9572else
2693c0b0
PB
9573 if test -n "$OBJDUMP"; then
9574 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9575else
1c710c3c
DJ
9576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577for as_dir in $PATH
9578do
9579 IFS=$as_save_IFS
9580 test -z "$as_dir" && as_dir=.
5213506e
RW
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9583 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9585 break 2
9586 fi
9587done
5213506e
RW
9588 done
9589IFS=$as_save_IFS
1c710c3c 9590
ca9f4b81
AO
9591fi
9592fi
1c710c3c 9593OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9594if test -n "$OBJDUMP"; then
5213506e
RW
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9596$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9597else
5213506e
RW
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599$as_echo "no" >&6; }
ca9f4b81 9600fi
1c710c3c 9601
5213506e 9602
2693c0b0
PB
9603 fi
9604 test -n "$ac_cv_prog_OBJDUMP" && break
9605done
9606
9607if test -z "$ac_cv_prog_OBJDUMP" ; then
9608 set dummy objdump
9609 if test $build = $host ; then
9610 OBJDUMP="$2"
ca9f4b81 9611 else
2693c0b0 9612 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9613 fi
ca9f4b81
AO
9614fi
9615
671aa708
NN
9616
9617
e7a82751
RM
9618if test -n "$READELF"; then
9619 ac_cv_prog_READELF=$READELF
9620elif test -n "$ac_cv_prog_READELF"; then
9621 READELF=$ac_cv_prog_READELF
9622fi
9623
9624if test -n "$ac_cv_prog_READELF"; then
9625 for ncn_progname in readelf; do
9626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9627set dummy ${ncn_progname}; ac_word=$2
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629$as_echo_n "checking for $ac_word... " >&6; }
9630if test "${ac_cv_prog_READELF+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9632else
9633 if test -n "$READELF"; then
9634 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9635else
9636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637for as_dir in $PATH
9638do
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9643 ac_cv_prog_READELF="${ncn_progname}"
9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9646 fi
9647done
9648 done
9649IFS=$as_save_IFS
9650
9651fi
9652fi
9653READELF=$ac_cv_prog_READELF
9654if test -n "$READELF"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9656$as_echo "$READELF" >&6; }
9657else
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659$as_echo "no" >&6; }
9660fi
9661
9662
9663 done
9664fi
9665
9666for ncn_progname in readelf; do
9667 if test -n "$ncn_tool_prefix"; then
9668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9669set dummy ${ncn_tool_prefix}${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_tool_prefix}${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 fi
9706 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9708set dummy ${ncn_progname}; ac_word=$2
9709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710$as_echo_n "checking for $ac_word... " >&6; }
9711if test "${ac_cv_prog_READELF+set}" = set; then :
9712 $as_echo_n "(cached) " >&6
9713else
9714 if test -n "$READELF"; then
9715 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9716else
9717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718for as_dir in $PATH
9719do
9720 IFS=$as_save_IFS
9721 test -z "$as_dir" && as_dir=.
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9724 ac_cv_prog_READELF="${ncn_progname}"
9725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726 break 2
9727 fi
9728done
9729 done
9730IFS=$as_save_IFS
9731
9732fi
9733fi
9734READELF=$ac_cv_prog_READELF
9735if test -n "$READELF"; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9737$as_echo "$READELF" >&6; }
9738else
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740$as_echo "no" >&6; }
9741fi
9742
9743
9744 fi
9745 test -n "$ac_cv_prog_READELF" && break
9746done
9747
9748if test -z "$ac_cv_prog_READELF" ; then
9749 set dummy readelf
9750 if test $build = $host ; then
9751 READELF="$2"
9752 else
9753 READELF="${ncn_tool_prefix}$2"
9754 fi
9755fi
9756
9757
9758
671aa708
NN
9759
9760
9761
2abefe3d 9762# Target tools.
1c710c3c 9763
5213506e
RW
9764# Check whether --with-build-time-tools was given.
9765if test "${with_build_time_tools+set}" = set; then :
9766 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9767 x/*) ;;
9768 *)
9769 with_build_time_tools=
5213506e
RW
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9771$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9772 ;;
9773 esac
ca9f4b81 9774else
e8b05380 9775 with_build_time_tools=
5213506e
RW
9776fi
9777
ca9f4b81 9778
278a7a38
AO
9779
9780
9781if test -n "$CC_FOR_TARGET"; then
9782 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9783elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9784 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9785fi
9786
9787if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9788 for ncn_progname in cc gcc; do
9789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9790set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9792$as_echo_n "checking for $ac_word... " >&6; }
9793if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
278a7a38
AO
9795else
9796 if test -n "$CC_FOR_TARGET"; then
9797 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9798else
9799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9800for as_dir in $PATH
9801do
9802 IFS=$as_save_IFS
9803 test -z "$as_dir" && as_dir=.
5213506e
RW
9804 for ac_exec_ext in '' $ac_executable_extensions; do
9805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9806 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9808 break 2
9809 fi
9810done
5213506e
RW
9811 done
9812IFS=$as_save_IFS
278a7a38
AO
9813
9814fi
9815fi
9816CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9817if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9819$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9820else
5213506e
RW
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9822$as_echo "no" >&6; }
278a7a38
AO
9823fi
9824
5213506e 9825
278a7a38
AO
9826 done
9827fi
9828
9829if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9830 for ncn_progname in cc gcc; do
5213506e
RW
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9832$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9833 if test -x $with_build_time_tools/${ncn_progname}; then
9834 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9836$as_echo "yes" >&6; }
72a7ab82 9837 break
e8b05380 9838 else
5213506e
RW
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840$as_echo "no" >&6; }
72a7ab82
AP
9841 fi
9842 done
4de997d1
PB
9843fi
9844
e8b05380
PB
9845if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9846 for ncn_progname in cc gcc; do
9847 if test -n "$ncn_target_tool_prefix"; then
9848 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9849set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9851$as_echo_n "checking for $ac_word... " >&6; }
9852if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9853 $as_echo_n "(cached) " >&6
4de997d1
PB
9854else
9855 if test -n "$CC_FOR_TARGET"; then
9856 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9857else
1c710c3c
DJ
9858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859for as_dir in $PATH
9860do
9861 IFS=$as_save_IFS
9862 test -z "$as_dir" && as_dir=.
5213506e
RW
9863 for ac_exec_ext in '' $ac_executable_extensions; do
9864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9865 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9867 break 2
9868 fi
9869done
5213506e
RW
9870 done
9871IFS=$as_save_IFS
1c710c3c 9872
4de997d1
PB
9873fi
9874fi
1c710c3c 9875CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9876if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9878$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9879else
5213506e
RW
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881$as_echo "no" >&6; }
4de997d1
PB
9882fi
9883
5213506e 9884
e8b05380
PB
9885 fi
9886 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9888set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9890$as_echo_n "checking for $ac_word... " >&6; }
9891if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
4de997d1 9893else
2693c0b0
PB
9894 if test -n "$CC_FOR_TARGET"; then
9895 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9896else
1c710c3c
DJ
9897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898for as_dir in $PATH
9899do
9900 IFS=$as_save_IFS
9901 test -z "$as_dir" && as_dir=.
5213506e
RW
9902 for ac_exec_ext in '' $ac_executable_extensions; do
9903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9904 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9906 break 2
9907 fi
9908done
5213506e
RW
9909 done
9910IFS=$as_save_IFS
1c710c3c 9911
4de997d1
PB
9912fi
9913fi
1c710c3c 9914CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9915if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9917$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9918else
5213506e
RW
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9920$as_echo "no" >&6; }
4de997d1 9921fi
1c710c3c 9922
5213506e 9923
e8b05380
PB
9924 fi
9925 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9926 done
9927fi
1c710c3c 9928
2693c0b0
PB
9929if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9930 set dummy cc gcc
9931 if test $build = $target ; then
9932 CC_FOR_TARGET="$2"
4de997d1 9933 else
2693c0b0 9934 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9935 fi
1c00b503
PB
9936else
9937 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9938fi
9939
278a7a38
AO
9940
9941
9942if test -n "$CXX_FOR_TARGET"; then
9943 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9944elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9945 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9946fi
9947
9948if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9949 for ncn_progname in c++ g++ cxx gxx; do
9950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9951set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953$as_echo_n "checking for $ac_word... " >&6; }
9954if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9955 $as_echo_n "(cached) " >&6
278a7a38
AO
9956else
9957 if test -n "$CXX_FOR_TARGET"; then
9958 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9959else
9960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961for as_dir in $PATH
9962do
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
5213506e
RW
9965 for ac_exec_ext in '' $ac_executable_extensions; do
9966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9967 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9969 break 2
9970 fi
9971done
5213506e
RW
9972 done
9973IFS=$as_save_IFS
278a7a38
AO
9974
9975fi
9976fi
9977CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9978if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9980$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9981else
5213506e
RW
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983$as_echo "no" >&6; }
278a7a38
AO
9984fi
9985
5213506e 9986
278a7a38
AO
9987 done
9988fi
9989
9990if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9991 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9993$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9994 if test -x $with_build_time_tools/${ncn_progname}; then
9995 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9997$as_echo "yes" >&6; }
e8b05380
PB
9998 break
9999 else
5213506e
RW
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001$as_echo "no" >&6; }
e8b05380
PB
10002 fi
10003 done
10004fi
10005
10006if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10007 for ncn_progname in c++ g++ cxx gxx; do
10008 if test -n "$ncn_target_tool_prefix"; then
10009 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10010set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012$as_echo_n "checking for $ac_word... " >&6; }
10013if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10014 $as_echo_n "(cached) " >&6
4de997d1
PB
10015else
10016 if test -n "$CXX_FOR_TARGET"; then
10017 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10018else
1c710c3c
DJ
10019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020for as_dir in $PATH
10021do
10022 IFS=$as_save_IFS
10023 test -z "$as_dir" && as_dir=.
5213506e
RW
10024 for ac_exec_ext in '' $ac_executable_extensions; do
10025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10026 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10028 break 2
10029 fi
10030done
5213506e
RW
10031 done
10032IFS=$as_save_IFS
1c710c3c 10033
4de997d1
PB
10034fi
10035fi
1c710c3c 10036CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10037if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10039$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10040else
5213506e
RW
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042$as_echo "no" >&6; }
4de997d1
PB
10043fi
10044
5213506e 10045
e8b05380
PB
10046 fi
10047 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10049set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051$as_echo_n "checking for $ac_word... " >&6; }
10052if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10053 $as_echo_n "(cached) " >&6
4de997d1 10054else
2693c0b0
PB
10055 if test -n "$CXX_FOR_TARGET"; then
10056 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10057else
1c710c3c
DJ
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
5213506e
RW
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10065 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10067 break 2
10068 fi
10069done
5213506e
RW
10070 done
10071IFS=$as_save_IFS
1c710c3c 10072
4de997d1
PB
10073fi
10074fi
1c710c3c 10075CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10076if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10078$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10079else
5213506e
RW
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081$as_echo "no" >&6; }
4de997d1 10082fi
1c710c3c 10083
5213506e 10084
e8b05380
PB
10085 fi
10086 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10087 done
10088fi
1c710c3c 10089
2693c0b0
PB
10090if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10091 set dummy c++ g++ cxx gxx
10092 if test $build = $target ; then
10093 CXX_FOR_TARGET="$2"
4de997d1 10094 else
2693c0b0 10095 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10096 fi
1c00b503
PB
10097else
10098 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10099fi
10100
278a7a38
AO
10101
10102
10103if test -n "$GCC_FOR_TARGET"; then
10104 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10105elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10106 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10107fi
10108
10109if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10110 for ncn_progname in gcc; do
10111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10112set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10114$as_echo_n "checking for $ac_word... " >&6; }
10115if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10116 $as_echo_n "(cached) " >&6
278a7a38
AO
10117else
10118 if test -n "$GCC_FOR_TARGET"; then
10119 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10120else
10121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10122for as_dir in $PATH
10123do
10124 IFS=$as_save_IFS
10125 test -z "$as_dir" && as_dir=.
5213506e
RW
10126 for ac_exec_ext in '' $ac_executable_extensions; do
10127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10128 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10130 break 2
10131 fi
10132done
5213506e
RW
10133 done
10134IFS=$as_save_IFS
278a7a38
AO
10135
10136fi
10137fi
10138GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10139if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10141$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10142else
5213506e
RW
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144$as_echo "no" >&6; }
278a7a38
AO
10145fi
10146
5213506e 10147
278a7a38
AO
10148 done
10149fi
10150
10151if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10152 for ncn_progname in gcc; do
5213506e
RW
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10154$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10155 if test -x $with_build_time_tools/${ncn_progname}; then
10156 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10158$as_echo "yes" >&6; }
e8b05380
PB
10159 break
10160 else
5213506e
RW
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162$as_echo "no" >&6; }
e8b05380
PB
10163 fi
10164 done
10165fi
10166
10167if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10168 for ncn_progname in gcc; do
10169 if test -n "$ncn_target_tool_prefix"; then
10170 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10171set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173$as_echo_n "checking for $ac_word... " >&6; }
10174if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10175 $as_echo_n "(cached) " >&6
ca9f4b81 10176else
e8b05380
PB
10177 if test -n "$GCC_FOR_TARGET"; then
10178 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10179else
1c710c3c
DJ
10180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181for as_dir in $PATH
10182do
10183 IFS=$as_save_IFS
10184 test -z "$as_dir" && as_dir=.
5213506e
RW
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10187 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10189 break 2
10190 fi
10191done
5213506e
RW
10192 done
10193IFS=$as_save_IFS
1c710c3c 10194
ca9f4b81
AO
10195fi
10196fi
1c710c3c 10197GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10198if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10200$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10201else
5213506e
RW
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203$as_echo "no" >&6; }
ca9f4b81
AO
10204fi
10205
5213506e 10206
e8b05380
PB
10207 fi
10208 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10210set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212$as_echo_n "checking for $ac_word... " >&6; }
10213if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10214 $as_echo_n "(cached) " >&6
ca9f4b81 10215else
e8b05380
PB
10216 if test -n "$GCC_FOR_TARGET"; then
10217 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10218else
1c710c3c
DJ
10219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220for as_dir in $PATH
10221do
10222 IFS=$as_save_IFS
10223 test -z "$as_dir" && as_dir=.
5213506e
RW
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10226 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10228 break 2
10229 fi
10230done
5213506e
RW
10231 done
10232IFS=$as_save_IFS
1c710c3c 10233
ca9f4b81
AO
10234fi
10235fi
1c710c3c 10236GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10237if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10239$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10240else
5213506e
RW
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242$as_echo "no" >&6; }
ca9f4b81 10243fi
1c710c3c 10244
5213506e 10245
e8b05380
PB
10246 fi
10247 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10248 done
10249fi
1c710c3c 10250
e8b05380
PB
10251if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10252 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10253else
10254 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10255fi
10256
278a7a38
AO
10257
10258
10259if test -n "$GCJ_FOR_TARGET"; then
10260 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10261elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10262 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10263fi
10264
10265if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10266 for ncn_progname in gcj; do
10267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10268set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10270$as_echo_n "checking for $ac_word... " >&6; }
10271if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
278a7a38
AO
10273else
10274 if test -n "$GCJ_FOR_TARGET"; then
10275 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10276else
10277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278for as_dir in $PATH
10279do
10280 IFS=$as_save_IFS
10281 test -z "$as_dir" && as_dir=.
5213506e
RW
10282 for ac_exec_ext in '' $ac_executable_extensions; do
10283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10284 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10286 break 2
10287 fi
10288done
5213506e
RW
10289 done
10290IFS=$as_save_IFS
278a7a38
AO
10291
10292fi
10293fi
10294GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10295if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10297$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10298else
5213506e
RW
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300$as_echo "no" >&6; }
278a7a38
AO
10301fi
10302
5213506e 10303
278a7a38
AO
10304 done
10305fi
10306
10307if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10308 for ncn_progname in gcj; do
5213506e
RW
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10310$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10311 if test -x $with_build_time_tools/${ncn_progname}; then
10312 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10314$as_echo "yes" >&6; }
e8b05380
PB
10315 break
10316 else
5213506e
RW
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318$as_echo "no" >&6; }
e8b05380
PB
10319 fi
10320 done
10321fi
10322
10323if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10324 for ncn_progname in gcj; do
10325 if test -n "$ncn_target_tool_prefix"; then
10326 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10327set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329$as_echo_n "checking for $ac_word... " >&6; }
10330if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10331 $as_echo_n "(cached) " >&6
e8b05380 10332else
fb0103e5
RG
10333 if test -n "$GCJ_FOR_TARGET"; then
10334 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10335else
1c710c3c
DJ
10336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337for as_dir in $PATH
10338do
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
5213506e
RW
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10343 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10345 break 2
10346 fi
10347done
5213506e
RW
10348 done
10349IFS=$as_save_IFS
1c710c3c 10350
e8b05380
PB
10351fi
10352fi
278a7a38
AO
10353GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10354if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10356$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10357else
5213506e
RW
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359$as_echo "no" >&6; }
278a7a38
AO
10360fi
10361
5213506e 10362
278a7a38
AO
10363 fi
10364 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10366set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10368$as_echo_n "checking for $ac_word... " >&6; }
10369if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10370 $as_echo_n "(cached) " >&6
278a7a38
AO
10371else
10372 if test -n "$GCJ_FOR_TARGET"; then
10373 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10374else
10375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376for as_dir in $PATH
10377do
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
5213506e
RW
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10382 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10384 break 2
10385 fi
10386done
5213506e
RW
10387 done
10388IFS=$as_save_IFS
278a7a38
AO
10389
10390fi
10391fi
10392GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10393if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10395$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10396else
5213506e
RW
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398$as_echo "no" >&6; }
278a7a38
AO
10399fi
10400
5213506e 10401
278a7a38
AO
10402 fi
10403 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10404 done
10405fi
10406
10407if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10408 set dummy gcj
10409 if test $build = $target ; then
10410 GCJ_FOR_TARGET="$2"
10411 else
10412 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10413 fi
1c00b503
PB
10414else
10415 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10416fi
10417
10418
10419
10420if test -n "$GFORTRAN_FOR_TARGET"; then
10421 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10422elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10423 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10424fi
10425
278a7a38
AO
10426if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10427 for ncn_progname in gfortran; do
10428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10429set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431$as_echo_n "checking for $ac_word... " >&6; }
10432if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10433 $as_echo_n "(cached) " >&6
e8b05380 10434else
278a7a38
AO
10435 if test -n "$GFORTRAN_FOR_TARGET"; then
10436 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10437else
1c710c3c
DJ
10438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439for as_dir in $PATH
10440do
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
5213506e
RW
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10445 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10447 break 2
10448 fi
10449done
5213506e
RW
10450 done
10451IFS=$as_save_IFS
1c710c3c 10452
e8b05380
PB
10453fi
10454fi
278a7a38
AO
10455GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10456if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10458$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10459else
5213506e
RW
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461$as_echo "no" >&6; }
e8b05380 10462fi
1c710c3c 10463
5213506e 10464
e8b05380
PB
10465 done
10466fi
1c710c3c 10467
278a7a38 10468if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10469 for ncn_progname in gfortran; do
5213506e
RW
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10471$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10472 if test -x $with_build_time_tools/${ncn_progname}; then
10473 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10475$as_echo "yes" >&6; }
e8b05380
PB
10476 break
10477 else
5213506e
RW
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479$as_echo "no" >&6; }
e8b05380
PB
10480 fi
10481 done
10482fi
10483
10484if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10485 for ncn_progname in gfortran; do
10486 if test -n "$ncn_target_tool_prefix"; then
10487 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10488set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10490$as_echo_n "checking for $ac_word... " >&6; }
10491if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
e8b05380
PB
10493else
10494 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10495 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10496else
10497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498for as_dir in $PATH
10499do
10500 IFS=$as_save_IFS
10501 test -z "$as_dir" && as_dir=.
5213506e
RW
10502 for ac_exec_ext in '' $ac_executable_extensions; do
10503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10504 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10506 break 2
10507 fi
10508done
5213506e
RW
10509 done
10510IFS=$as_save_IFS
1c710c3c 10511
e8b05380
PB
10512fi
10513fi
1c710c3c 10514GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10515if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10517$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10518else
5213506e
RW
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520$as_echo "no" >&6; }
e8b05380
PB
10521fi
10522
5213506e 10523
e8b05380
PB
10524 fi
10525 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10527set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529$as_echo_n "checking for $ac_word... " >&6; }
10530if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10531 $as_echo_n "(cached) " >&6
e8b05380
PB
10532else
10533 if test -n "$GFORTRAN_FOR_TARGET"; then
10534 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10535else
1c710c3c
DJ
10536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537for as_dir in $PATH
10538do
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
5213506e
RW
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10543 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10545 break 2
10546 fi
10547done
5213506e
RW
10548 done
10549IFS=$as_save_IFS
1c710c3c 10550
e8b05380
PB
10551fi
10552fi
1c710c3c 10553GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10554if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10556$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10557else
5213506e
RW
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559$as_echo "no" >&6; }
e8b05380 10560fi
1c710c3c 10561
5213506e 10562
e8b05380
PB
10563 fi
10564 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10565 done
10566fi
1c710c3c 10567
e8b05380
PB
10568if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10569 set dummy gfortran
2693c0b0 10570 if test $build = $target ; then
e8b05380 10571 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10572 else
e8b05380
PB
10573 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10574 fi
1c00b503
PB
10575else
10576 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10577fi
10578
10579
10580
632e2a07
ILT
10581if test -n "$GOC_FOR_TARGET"; then
10582 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10583elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10584 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10585fi
10586
10587if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10588 for ncn_progname in gccgo; do
10589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10590set dummy ${ncn_progname}; ac_word=$2
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592$as_echo_n "checking for $ac_word... " >&6; }
10593if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10594 $as_echo_n "(cached) " >&6
10595else
10596 if test -n "$GOC_FOR_TARGET"; then
10597 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10598else
10599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600for as_dir in $PATH
10601do
10602 IFS=$as_save_IFS
10603 test -z "$as_dir" && as_dir=.
10604 for ac_exec_ext in '' $ac_executable_extensions; do
10605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10606 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608 break 2
10609 fi
10610done
10611 done
10612IFS=$as_save_IFS
10613
10614fi
10615fi
10616GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10617if test -n "$GOC_FOR_TARGET"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10619$as_echo "$GOC_FOR_TARGET" >&6; }
10620else
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622$as_echo "no" >&6; }
10623fi
10624
10625
10626 done
10627fi
10628
10629if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10630 for ncn_progname in gccgo; do
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10632$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10633 if test -x $with_build_time_tools/${ncn_progname}; then
10634 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10636$as_echo "yes" >&6; }
10637 break
10638 else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640$as_echo "no" >&6; }
10641 fi
10642 done
10643fi
10644
10645if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10646 for ncn_progname in gccgo; do
10647 if test -n "$ncn_target_tool_prefix"; then
10648 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10649set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651$as_echo_n "checking for $ac_word... " >&6; }
10652if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10653 $as_echo_n "(cached) " >&6
10654else
10655 if test -n "$GOC_FOR_TARGET"; then
10656 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10657else
10658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659for as_dir in $PATH
10660do
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10665 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 break 2
10668 fi
10669done
10670 done
10671IFS=$as_save_IFS
10672
10673fi
10674fi
10675GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10676if test -n "$GOC_FOR_TARGET"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10678$as_echo "$GOC_FOR_TARGET" >&6; }
10679else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681$as_echo "no" >&6; }
10682fi
10683
10684
10685 fi
10686 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10688set dummy ${ncn_progname}; ac_word=$2
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10690$as_echo_n "checking for $ac_word... " >&6; }
10691if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10692 $as_echo_n "(cached) " >&6
10693else
10694 if test -n "$GOC_FOR_TARGET"; then
10695 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10696else
10697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10698for as_dir in $PATH
10699do
10700 IFS=$as_save_IFS
10701 test -z "$as_dir" && as_dir=.
10702 for ac_exec_ext in '' $ac_executable_extensions; do
10703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10704 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10706 break 2
10707 fi
10708done
10709 done
10710IFS=$as_save_IFS
10711
10712fi
10713fi
10714GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10715if test -n "$GOC_FOR_TARGET"; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10717$as_echo "$GOC_FOR_TARGET" >&6; }
10718else
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720$as_echo "no" >&6; }
10721fi
10722
10723
10724 fi
10725 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10726 done
10727fi
10728
10729if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10730 set dummy gccgo
10731 if test $build = $target ; then
10732 GOC_FOR_TARGET="$2"
10733 else
10734 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10735 fi
10736else
10737 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10738fi
10739
10740
10741
e8b05380
PB
10742cat > conftest.c << \EOF
10743#ifdef __GNUC__
10744 gcc_yay;
10745#endif
10746EOF
10747if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10748 have_gcc_for_target=yes
10749else
10750 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10751 have_gcc_for_target=no
10752fi
10753rm conftest.c
10754
10755
10756
10757
10758if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10759 if test -n "$with_build_time_tools"; then
5213506e
RW
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10761$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10762 if test -x $with_build_time_tools/ar; then
10763 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10764 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10766$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10767 else
5213506e
RW
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769$as_echo "no" >&6; }
d1f8db0c 10770 fi
e8b05380
PB
10771 elif test $build != $host && test $have_gcc_for_target = yes; then
10772 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10773 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10774 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10775 fi
10776fi
3e19841a 10777if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10778 # Extract the first word of "ar", so it can be a program name with args.
10779set dummy ar; ac_word=$2
5213506e
RW
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781$as_echo_n "checking for $ac_word... " >&6; }
10782if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
e8b05380 10784else
1c710c3c
DJ
10785 case $AR_FOR_TARGET in
10786 [\\/]* | ?:[\\/]*)
e8b05380
PB
10787 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10788 ;;
e8b05380 10789 *)
1c710c3c
DJ
10790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791for as_dir in $gcc_cv_tool_dirs
10792do
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
5213506e
RW
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10797 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10799 break 2
10800 fi
10801done
5213506e
RW
10802 done
10803IFS=$as_save_IFS
1c710c3c 10804
e8b05380
PB
10805 ;;
10806esac
10807fi
1c710c3c 10808AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10809if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10811$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10812else
5213506e
RW
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814$as_echo "no" >&6; }
4de997d1
PB
10815fi
10816
5213506e 10817
e8b05380
PB
10818fi
10819if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10820
10821
10822if test -n "$AR_FOR_TARGET"; then
10823 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10824elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10825 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10826fi
10827
10828if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10829 for ncn_progname in ar; do
10830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10831set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833$as_echo_n "checking for $ac_word... " >&6; }
10834if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10835 $as_echo_n "(cached) " >&6
278a7a38
AO
10836else
10837 if test -n "$AR_FOR_TARGET"; then
10838 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10839else
10840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841for as_dir in $PATH
10842do
10843 IFS=$as_save_IFS
10844 test -z "$as_dir" && as_dir=.
5213506e
RW
10845 for ac_exec_ext in '' $ac_executable_extensions; do
10846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10847 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10849 break 2
10850 fi
10851done
5213506e
RW
10852 done
10853IFS=$as_save_IFS
278a7a38
AO
10854
10855fi
10856fi
10857AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10858if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10860$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10861else
5213506e
RW
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863$as_echo "no" >&6; }
278a7a38
AO
10864fi
10865
5213506e 10866
278a7a38
AO
10867 done
10868fi
10869
10870if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10871 for ncn_progname in ar; do
5213506e
RW
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10873$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10874 if test -x $with_build_time_tools/${ncn_progname}; then
10875 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10877$as_echo "yes" >&6; }
e8b05380
PB
10878 break
10879 else
5213506e
RW
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881$as_echo "no" >&6; }
e8b05380
PB
10882 fi
10883 done
10884fi
10885
10886if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10887 for ncn_progname in ar; do
10888 if test -n "$ncn_target_tool_prefix"; then
10889 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10890set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892$as_echo_n "checking for $ac_word... " >&6; }
10893if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10894 $as_echo_n "(cached) " >&6
4de997d1 10895else
e8b05380
PB
10896 if test -n "$AR_FOR_TARGET"; then
10897 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10898else
1c710c3c
DJ
10899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10900for as_dir in $PATH
10901do
10902 IFS=$as_save_IFS
10903 test -z "$as_dir" && as_dir=.
5213506e
RW
10904 for ac_exec_ext in '' $ac_executable_extensions; do
10905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10906 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10908 break 2
10909 fi
10910done
5213506e
RW
10911 done
10912IFS=$as_save_IFS
1c710c3c 10913
4de997d1
PB
10914fi
10915fi
1c710c3c 10916AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10917if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10919$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10920else
5213506e
RW
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922$as_echo "no" >&6; }
4de997d1
PB
10923fi
10924
5213506e 10925
e8b05380
PB
10926 fi
10927 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10929set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931$as_echo_n "checking for $ac_word... " >&6; }
10932if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10933 $as_echo_n "(cached) " >&6
e8b05380
PB
10934else
10935 if test -n "$AR_FOR_TARGET"; then
10936 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10937else
1c710c3c
DJ
10938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939for as_dir in $PATH
10940do
10941 IFS=$as_save_IFS
10942 test -z "$as_dir" && as_dir=.
5213506e
RW
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10945 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10947 break 2
10948 fi
10949done
5213506e
RW
10950 done
10951IFS=$as_save_IFS
1c710c3c 10952
e8b05380
PB
10953fi
10954fi
1c710c3c 10955AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10956if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10958$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10959else
5213506e
RW
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961$as_echo "no" >&6; }
e8b05380 10962fi
1c710c3c 10963
5213506e 10964
e8b05380
PB
10965 fi
10966 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10967 done
10968fi
1c710c3c 10969
e8b05380
PB
10970if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10971 set dummy ar
10972 if test $build = $target ; then
10973 AR_FOR_TARGET="$2"
10974 else
10975 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10976 fi
1c00b503
PB
10977else
10978 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10979fi
10980
d1f8db0c
PB
10981else
10982 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10983fi
10984
10985
10986
10987
10988if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10989 if test -n "$with_build_time_tools"; then
5213506e
RW
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10991$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10992 if test -x $with_build_time_tools/as; then
10993 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10994 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10996$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10997 else
5213506e
RW
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999$as_echo "no" >&6; }
d1f8db0c 11000 fi
e8b05380
PB
11001 elif test $build != $host && test $have_gcc_for_target = yes; then
11002 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11003 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11004 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11005 fi
11006fi
3e19841a 11007if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11008 # Extract the first word of "as", so it can be a program name with args.
11009set dummy as; ac_word=$2
5213506e
RW
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011$as_echo_n "checking for $ac_word... " >&6; }
11012if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11013 $as_echo_n "(cached) " >&6
e8b05380 11014else
1c710c3c
DJ
11015 case $AS_FOR_TARGET in
11016 [\\/]* | ?:[\\/]*)
e8b05380
PB
11017 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11018 ;;
e8b05380 11019 *)
1c710c3c
DJ
11020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021for as_dir in $gcc_cv_tool_dirs
11022do
11023 IFS=$as_save_IFS
11024 test -z "$as_dir" && as_dir=.
5213506e
RW
11025 for ac_exec_ext in '' $ac_executable_extensions; do
11026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11027 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11029 break 2
11030 fi
11031done
5213506e
RW
11032 done
11033IFS=$as_save_IFS
1c710c3c 11034
e8b05380
PB
11035 ;;
11036esac
11037fi
1c710c3c 11038AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11039if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11041$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11042else
5213506e
RW
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044$as_echo "no" >&6; }
e8b05380
PB
11045fi
11046
5213506e 11047
e8b05380
PB
11048fi
11049if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11050
11051
11052if test -n "$AS_FOR_TARGET"; then
11053 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11054elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11055 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11056fi
11057
11058if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11059 for ncn_progname in as; do
11060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11061set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063$as_echo_n "checking for $ac_word... " >&6; }
11064if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
278a7a38
AO
11066else
11067 if test -n "$AS_FOR_TARGET"; then
11068 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11069else
11070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071for as_dir in $PATH
11072do
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
5213506e
RW
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11077 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11079 break 2
11080 fi
11081done
5213506e
RW
11082 done
11083IFS=$as_save_IFS
278a7a38
AO
11084
11085fi
11086fi
11087AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11088if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11090$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11091else
5213506e
RW
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093$as_echo "no" >&6; }
278a7a38
AO
11094fi
11095
5213506e 11096
278a7a38
AO
11097 done
11098fi
11099
11100if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11101 for ncn_progname in as; do
5213506e
RW
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11103$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11104 if test -x $with_build_time_tools/${ncn_progname}; then
11105 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11107$as_echo "yes" >&6; }
e8b05380
PB
11108 break
11109 else
5213506e
RW
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111$as_echo "no" >&6; }
e8b05380
PB
11112 fi
11113 done
11114fi
11115
11116if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11117 for ncn_progname in as; do
11118 if test -n "$ncn_target_tool_prefix"; then
11119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11120set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122$as_echo_n "checking for $ac_word... " >&6; }
11123if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11124 $as_echo_n "(cached) " >&6
e8b05380
PB
11125else
11126 if test -n "$AS_FOR_TARGET"; then
11127 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11128else
1c710c3c
DJ
11129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130for as_dir in $PATH
11131do
11132 IFS=$as_save_IFS
11133 test -z "$as_dir" && as_dir=.
5213506e
RW
11134 for ac_exec_ext in '' $ac_executable_extensions; do
11135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11136 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11138 break 2
11139 fi
11140done
5213506e
RW
11141 done
11142IFS=$as_save_IFS
1c710c3c 11143
e8b05380
PB
11144fi
11145fi
1c710c3c 11146AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11147if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11149$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11150else
5213506e
RW
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152$as_echo "no" >&6; }
e8b05380
PB
11153fi
11154
5213506e 11155
e8b05380
PB
11156 fi
11157 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11159set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161$as_echo_n "checking for $ac_word... " >&6; }
11162if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11163 $as_echo_n "(cached) " >&6
4de997d1 11164else
e8b05380
PB
11165 if test -n "$AS_FOR_TARGET"; then
11166 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11167else
1c710c3c
DJ
11168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169for as_dir in $PATH
11170do
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
5213506e
RW
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11175 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11177 break 2
11178 fi
11179done
5213506e
RW
11180 done
11181IFS=$as_save_IFS
1c710c3c 11182
4de997d1
PB
11183fi
11184fi
1c710c3c 11185AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11186if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11188$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11189else
5213506e
RW
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
4de997d1 11192fi
1c710c3c 11193
5213506e 11194
e8b05380
PB
11195 fi
11196 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11197 done
11198fi
1c710c3c 11199
e8b05380
PB
11200if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11201 set dummy as
11202 if test $build = $target ; then
11203 AS_FOR_TARGET="$2"
11204 else
11205 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11206 fi
1c00b503
PB
11207else
11208 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11209fi
2693c0b0 11210
d1f8db0c
PB
11211else
11212 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11213fi
11214
e8b05380
PB
11215
11216
11217
11218if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11219 if test -n "$with_build_time_tools"; then
5213506e
RW
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11221$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11222 if test -x $with_build_time_tools/dlltool; then
11223 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11224 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11226$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11227 else
5213506e
RW
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229$as_echo "no" >&6; }
d1f8db0c 11230 fi
e8b05380
PB
11231 elif test $build != $host && test $have_gcc_for_target = yes; then
11232 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11233 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11234 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11235 fi
11236fi
3e19841a 11237if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11238 # Extract the first word of "dlltool", so it can be a program name with args.
11239set dummy dlltool; ac_word=$2
5213506e
RW
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241$as_echo_n "checking for $ac_word... " >&6; }
11242if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11243 $as_echo_n "(cached) " >&6
4de997d1 11244else
1c710c3c
DJ
11245 case $DLLTOOL_FOR_TARGET in
11246 [\\/]* | ?:[\\/]*)
e8b05380
PB
11247 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11248 ;;
e8b05380 11249 *)
1c710c3c
DJ
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251for as_dir in $gcc_cv_tool_dirs
11252do
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
5213506e
RW
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11257 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11259 break 2
11260 fi
11261done
5213506e
RW
11262 done
11263IFS=$as_save_IFS
1c710c3c 11264
e8b05380
PB
11265 ;;
11266esac
4de997d1 11267fi
1c710c3c 11268DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11269if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11271$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11272else
5213506e
RW
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274$as_echo "no" >&6; }
4de997d1
PB
11275fi
11276
5213506e 11277
e8b05380
PB
11278fi
11279if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11280
11281
11282if test -n "$DLLTOOL_FOR_TARGET"; then
11283 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11284elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11285 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11286fi
11287
11288if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11289 for ncn_progname in dlltool; do
11290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11291set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293$as_echo_n "checking for $ac_word... " >&6; }
11294if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
278a7a38
AO
11296else
11297 if test -n "$DLLTOOL_FOR_TARGET"; then
11298 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11299else
11300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301for as_dir in $PATH
11302do
11303 IFS=$as_save_IFS
11304 test -z "$as_dir" && as_dir=.
5213506e
RW
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11307 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11309 break 2
11310 fi
11311done
5213506e
RW
11312 done
11313IFS=$as_save_IFS
278a7a38
AO
11314
11315fi
11316fi
11317DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11318if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11320$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11321else
5213506e
RW
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323$as_echo "no" >&6; }
278a7a38
AO
11324fi
11325
5213506e 11326
278a7a38
AO
11327 done
11328fi
11329
11330if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11331 for ncn_progname in dlltool; do
5213506e
RW
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11333$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11334 if test -x $with_build_time_tools/${ncn_progname}; then
11335 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11337$as_echo "yes" >&6; }
e8b05380
PB
11338 break
11339 else
5213506e
RW
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341$as_echo "no" >&6; }
e8b05380
PB
11342 fi
11343 done
11344fi
11345
11346if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11347 for ncn_progname in dlltool; do
11348 if test -n "$ncn_target_tool_prefix"; then
11349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11350set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352$as_echo_n "checking for $ac_word... " >&6; }
11353if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11354 $as_echo_n "(cached) " >&6
4de997d1 11355else
e8b05380
PB
11356 if test -n "$DLLTOOL_FOR_TARGET"; then
11357 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11358else
1c710c3c
DJ
11359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360for as_dir in $PATH
11361do
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
5213506e
RW
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11366 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11368 break 2
11369 fi
11370done
5213506e
RW
11371 done
11372IFS=$as_save_IFS
1c710c3c 11373
4de997d1
PB
11374fi
11375fi
1c710c3c 11376DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11377if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11379$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11380else
5213506e
RW
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382$as_echo "no" >&6; }
4de997d1 11383fi
4de997d1 11384
5213506e 11385
e8b05380
PB
11386 fi
11387 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11389set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11391$as_echo_n "checking for $ac_word... " >&6; }
11392if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
4de997d1 11394else
e8b05380
PB
11395 if test -n "$DLLTOOL_FOR_TARGET"; then
11396 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11397else
1c710c3c
DJ
11398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399for as_dir in $PATH
11400do
11401 IFS=$as_save_IFS
11402 test -z "$as_dir" && as_dir=.
5213506e
RW
11403 for ac_exec_ext in '' $ac_executable_extensions; do
11404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11405 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11407 break 2
11408 fi
11409done
5213506e
RW
11410 done
11411IFS=$as_save_IFS
1c710c3c 11412
4de997d1
PB
11413fi
11414fi
1c710c3c 11415DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11416if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11418$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11419else
5213506e
RW
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421$as_echo "no" >&6; }
4de997d1 11422fi
1c710c3c 11423
5213506e 11424
e8b05380
PB
11425 fi
11426 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11427 done
11428fi
1c710c3c 11429
e8b05380
PB
11430if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11431 set dummy dlltool
11432 if test $build = $target ; then
11433 DLLTOOL_FOR_TARGET="$2"
11434 else
11435 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11436 fi
1c00b503
PB
11437else
11438 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11439fi
11440
d1f8db0c
PB
11441else
11442 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11443fi
11444
4de997d1 11445
e8b05380
PB
11446
11447
11448if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11449 if test -n "$with_build_time_tools"; then
5213506e
RW
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11451$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11452 if test -x $with_build_time_tools/ld; then
11453 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11454 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11456$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11457 else
5213506e
RW
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459$as_echo "no" >&6; }
d1f8db0c 11460 fi
e8b05380
PB
11461 elif test $build != $host && test $have_gcc_for_target = yes; then
11462 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11463 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11464 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11465 fi
e8b05380 11466fi
3e19841a 11467if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11468 # Extract the first word of "ld", so it can be a program name with args.
11469set dummy ld; ac_word=$2
5213506e
RW
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471$as_echo_n "checking for $ac_word... " >&6; }
11472if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11473 $as_echo_n "(cached) " >&6
4de997d1 11474else
1c710c3c
DJ
11475 case $LD_FOR_TARGET in
11476 [\\/]* | ?:[\\/]*)
e8b05380
PB
11477 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11478 ;;
e8b05380 11479 *)
1c710c3c
DJ
11480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481for as_dir in $gcc_cv_tool_dirs
11482do
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
5213506e
RW
11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11487 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11489 break 2
11490 fi
11491done
5213506e
RW
11492 done
11493IFS=$as_save_IFS
1c710c3c 11494
e8b05380
PB
11495 ;;
11496esac
4de997d1 11497fi
1c710c3c 11498LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11499if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11501$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11502else
5213506e
RW
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504$as_echo "no" >&6; }
4de997d1 11505fi
2693c0b0 11506
5213506e 11507
e8b05380
PB
11508fi
11509if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11510
11511
11512if test -n "$LD_FOR_TARGET"; then
11513 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11514elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11515 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11516fi
11517
11518if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11519 for ncn_progname in ld; do
11520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11521set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523$as_echo_n "checking for $ac_word... " >&6; }
11524if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
278a7a38
AO
11526else
11527 if test -n "$LD_FOR_TARGET"; then
11528 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11529else
11530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531for as_dir in $PATH
11532do
11533 IFS=$as_save_IFS
11534 test -z "$as_dir" && as_dir=.
5213506e
RW
11535 for ac_exec_ext in '' $ac_executable_extensions; do
11536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11537 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11539 break 2
11540 fi
11541done
5213506e
RW
11542 done
11543IFS=$as_save_IFS
278a7a38
AO
11544
11545fi
11546fi
11547LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11548if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11550$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11551else
5213506e
RW
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553$as_echo "no" >&6; }
278a7a38
AO
11554fi
11555
5213506e 11556
278a7a38
AO
11557 done
11558fi
11559
11560if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11561 for ncn_progname in ld; do
5213506e
RW
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11563$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11564 if test -x $with_build_time_tools/${ncn_progname}; then
11565 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11567$as_echo "yes" >&6; }
e8b05380
PB
11568 break
11569 else
5213506e
RW
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571$as_echo "no" >&6; }
e8b05380
PB
11572 fi
11573 done
ca9f4b81
AO
11574fi
11575
e8b05380
PB
11576if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11577 for ncn_progname in ld; do
11578 if test -n "$ncn_target_tool_prefix"; then
11579 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11580set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582$as_echo_n "checking for $ac_word... " >&6; }
11583if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11584 $as_echo_n "(cached) " >&6
ca9f4b81 11585else
4de997d1
PB
11586 if test -n "$LD_FOR_TARGET"; then
11587 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11588else
1c710c3c
DJ
11589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590for as_dir in $PATH
11591do
11592 IFS=$as_save_IFS
11593 test -z "$as_dir" && as_dir=.
5213506e
RW
11594 for ac_exec_ext in '' $ac_executable_extensions; do
11595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11596 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11598 break 2
11599 fi
11600done
5213506e
RW
11601 done
11602IFS=$as_save_IFS
1c710c3c 11603
ca9f4b81
AO
11604fi
11605fi
1c710c3c 11606LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11607if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11609$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11610else
5213506e
RW
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612$as_echo "no" >&6; }
ca9f4b81
AO
11613fi
11614
5213506e 11615
e8b05380
PB
11616 fi
11617 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11619set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621$as_echo_n "checking for $ac_word... " >&6; }
11622if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
ca9f4b81 11624else
2693c0b0
PB
11625 if test -n "$LD_FOR_TARGET"; then
11626 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11627else
1c710c3c
DJ
11628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629for as_dir in $PATH
11630do
11631 IFS=$as_save_IFS
11632 test -z "$as_dir" && as_dir=.
5213506e
RW
11633 for ac_exec_ext in '' $ac_executable_extensions; do
11634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11635 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11637 break 2
11638 fi
11639done
5213506e
RW
11640 done
11641IFS=$as_save_IFS
1c710c3c 11642
ca9f4b81
AO
11643fi
11644fi
1c710c3c 11645LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11646if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11648$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11649else
5213506e
RW
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
ca9f4b81 11652fi
1c710c3c 11653
5213506e 11654
e8b05380
PB
11655 fi
11656 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11657 done
11658fi
1c710c3c 11659
2693c0b0
PB
11660if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11661 set dummy ld
11662 if test $build = $target ; then
11663 LD_FOR_TARGET="$2"
ca9f4b81 11664 else
2693c0b0 11665 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11666 fi
1c00b503
PB
11667else
11668 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11669fi
11670
d1f8db0c
PB
11671else
11672 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11673fi
11674
11675
11676
11677
11678if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11679 if test -n "$with_build_time_tools"; then
5213506e
RW
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11681$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11682 if test -x $with_build_time_tools/lipo; then
11683 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11684 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11686$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11687 else
5213506e
RW
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689$as_echo "no" >&6; }
d1f8db0c 11690 fi
e8b05380
PB
11691 elif test $build != $host && test $have_gcc_for_target = yes; then
11692 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11693 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11694 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11695 fi
11696fi
278a7a38
AO
11697if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11698 # Extract the first word of "lipo", so it can be a program name with args.
11699set dummy lipo; ac_word=$2
5213506e
RW
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701$as_echo_n "checking for $ac_word... " >&6; }
11702if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
278a7a38
AO
11704else
11705 case $LIPO_FOR_TARGET in
11706 [\\/]* | ?:[\\/]*)
11707 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11708 ;;
11709 *)
11710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711for as_dir in $gcc_cv_tool_dirs
11712do
11713 IFS=$as_save_IFS
11714 test -z "$as_dir" && as_dir=.
5213506e
RW
11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11717 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11719 break 2
11720 fi
11721done
5213506e
RW
11722 done
11723IFS=$as_save_IFS
278a7a38
AO
11724
11725 ;;
11726esac
11727fi
11728LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11729if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11731$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11732else
5213506e
RW
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734$as_echo "no" >&6; }
278a7a38
AO
11735fi
11736
5213506e 11737
278a7a38
AO
11738fi
11739if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11740
11741
11742if test -n "$LIPO_FOR_TARGET"; then
11743 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11744elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11745 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11746fi
11747
11748if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11749 for ncn_progname in lipo; do
11750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11751set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753$as_echo_n "checking for $ac_word... " >&6; }
11754if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11755 $as_echo_n "(cached) " >&6
e8b05380 11756else
278a7a38
AO
11757 if test -n "$LIPO_FOR_TARGET"; then
11758 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11759else
11760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761for as_dir in $PATH
1c710c3c
DJ
11762do
11763 IFS=$as_save_IFS
11764 test -z "$as_dir" && as_dir=.
5213506e
RW
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11767 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11769 break 2
11770 fi
11771done
5213506e
RW
11772 done
11773IFS=$as_save_IFS
1c710c3c 11774
e8b05380 11775fi
278a7a38
AO
11776fi
11777LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11778if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11780$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11781else
5213506e
RW
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783$as_echo "no" >&6; }
e8b05380
PB
11784fi
11785
5213506e 11786
278a7a38 11787 done
e8b05380 11788fi
278a7a38
AO
11789
11790if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11791 for ncn_progname in lipo; do
5213506e
RW
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11793$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11794 if test -x $with_build_time_tools/${ncn_progname}; then
11795 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11797$as_echo "yes" >&6; }
e8b05380
PB
11798 break
11799 else
5213506e
RW
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801$as_echo "no" >&6; }
e8b05380
PB
11802 fi
11803 done
11804fi
11805
11806if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11807 for ncn_progname in lipo; do
11808 if test -n "$ncn_target_tool_prefix"; then
11809 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11810set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812$as_echo_n "checking for $ac_word... " >&6; }
11813if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11814 $as_echo_n "(cached) " >&6
040b1c5a
GK
11815else
11816 if test -n "$LIPO_FOR_TARGET"; then
11817 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11818else
1c710c3c
DJ
11819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820for as_dir in $PATH
11821do
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
5213506e
RW
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11826 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11828 break 2
11829 fi
11830done
5213506e
RW
11831 done
11832IFS=$as_save_IFS
1c710c3c 11833
040b1c5a
GK
11834fi
11835fi
1c710c3c 11836LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11837if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11839$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11840else
5213506e
RW
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842$as_echo "no" >&6; }
040b1c5a
GK
11843fi
11844
5213506e 11845
e8b05380
PB
11846 fi
11847 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11849set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
11852if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11853 $as_echo_n "(cached) " >&6
040b1c5a
GK
11854else
11855 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11856 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11857else
1c710c3c
DJ
11858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859for as_dir in $PATH
11860do
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
5213506e
RW
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11865 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11867 break 2
11868 fi
11869done
5213506e
RW
11870 done
11871IFS=$as_save_IFS
1c710c3c 11872
040b1c5a
GK
11873fi
11874fi
1c710c3c 11875LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11876if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11878$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11879else
5213506e
RW
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
040b1c5a 11882fi
1c710c3c 11883
5213506e 11884
e8b05380
PB
11885 fi
11886 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11887 done
11888fi
1c710c3c 11889
040b1c5a
GK
11890if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11891 set dummy lipo
11892 if test $build = $target ; then
11893 LIPO_FOR_TARGET="$2"
11894 else
11895 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11896 fi
1c00b503
PB
11897else
11898 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11899fi
11900
d1f8db0c
PB
11901else
11902 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11903fi
11904
11905
11906
11907
11908if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11909 if test -n "$with_build_time_tools"; then
5213506e
RW
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11911$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11912 if test -x $with_build_time_tools/nm; then
11913 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11914 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11916$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11917 else
5213506e
RW
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919$as_echo "no" >&6; }
d1f8db0c 11920 fi
e8b05380
PB
11921 elif test $build != $host && test $have_gcc_for_target = yes; then
11922 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11923 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11924 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11925 fi
11926fi
3e19841a 11927if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11928 # Extract the first word of "nm", so it can be a program name with args.
11929set dummy nm; ac_word=$2
5213506e
RW
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931$as_echo_n "checking for $ac_word... " >&6; }
11932if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11933 $as_echo_n "(cached) " >&6
e8b05380 11934else
1c710c3c
DJ
11935 case $NM_FOR_TARGET in
11936 [\\/]* | ?:[\\/]*)
e8b05380
PB
11937 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11938 ;;
e8b05380 11939 *)
1c710c3c
DJ
11940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941for as_dir in $gcc_cv_tool_dirs
11942do
11943 IFS=$as_save_IFS
11944 test -z "$as_dir" && as_dir=.
5213506e
RW
11945 for ac_exec_ext in '' $ac_executable_extensions; do
11946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11947 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11949 break 2
11950 fi
11951done
5213506e
RW
11952 done
11953IFS=$as_save_IFS
1c710c3c 11954
e8b05380
PB
11955 ;;
11956esac
11957fi
1c710c3c 11958NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11959if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11961$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11962else
5213506e
RW
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964$as_echo "no" >&6; }
e8b05380
PB
11965fi
11966
5213506e 11967
e8b05380
PB
11968fi
11969if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11970
11971
11972if test -n "$NM_FOR_TARGET"; then
11973 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11974elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11975 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11976fi
11977
11978if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11979 for ncn_progname in nm; do
11980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11981set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983$as_echo_n "checking for $ac_word... " >&6; }
11984if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11985 $as_echo_n "(cached) " >&6
278a7a38
AO
11986else
11987 if test -n "$NM_FOR_TARGET"; then
11988 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11989else
11990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991for as_dir in $PATH
11992do
11993 IFS=$as_save_IFS
11994 test -z "$as_dir" && as_dir=.
5213506e
RW
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11997 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11999 break 2
12000 fi
12001done
5213506e
RW
12002 done
12003IFS=$as_save_IFS
278a7a38
AO
12004
12005fi
12006fi
12007NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12008if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12010$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12011else
5213506e
RW
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013$as_echo "no" >&6; }
278a7a38
AO
12014fi
12015
5213506e 12016
278a7a38
AO
12017 done
12018fi
12019
12020if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12021 for ncn_progname in nm; do
5213506e
RW
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12023$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12024 if test -x $with_build_time_tools/${ncn_progname}; then
12025 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12027$as_echo "yes" >&6; }
e8b05380
PB
12028 break
12029 else
5213506e
RW
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031$as_echo "no" >&6; }
e8b05380
PB
12032 fi
12033 done
12034fi
12035
12036if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12037 for ncn_progname in nm; do
12038 if test -n "$ncn_target_tool_prefix"; then
12039 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12040set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12042$as_echo_n "checking for $ac_word... " >&6; }
12043if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
ca9f4b81 12045else
4de997d1
PB
12046 if test -n "$NM_FOR_TARGET"; then
12047 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12048else
1c710c3c
DJ
12049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050for as_dir in $PATH
12051do
12052 IFS=$as_save_IFS
12053 test -z "$as_dir" && as_dir=.
5213506e
RW
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12056 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12058 break 2
12059 fi
12060done
5213506e
RW
12061 done
12062IFS=$as_save_IFS
1c710c3c 12063
ca9f4b81
AO
12064fi
12065fi
1c710c3c 12066NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12067if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12069$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12070else
5213506e
RW
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072$as_echo "no" >&6; }
ca9f4b81
AO
12073fi
12074
5213506e 12075
e8b05380
PB
12076 fi
12077 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12079set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081$as_echo_n "checking for $ac_word... " >&6; }
12082if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
ca9f4b81 12084else
2693c0b0
PB
12085 if test -n "$NM_FOR_TARGET"; then
12086 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12087else
1c710c3c
DJ
12088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089for as_dir in $PATH
12090do
12091 IFS=$as_save_IFS
12092 test -z "$as_dir" && as_dir=.
5213506e
RW
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12095 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12097 break 2
12098 fi
12099done
5213506e
RW
12100 done
12101IFS=$as_save_IFS
1c710c3c 12102
ca9f4b81
AO
12103fi
12104fi
1c710c3c 12105NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12106if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12108$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12109else
5213506e
RW
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111$as_echo "no" >&6; }
ca9f4b81 12112fi
1c710c3c 12113
5213506e 12114
e8b05380
PB
12115 fi
12116 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12117 done
12118fi
1c710c3c 12119
2693c0b0
PB
12120if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12121 set dummy nm
12122 if test $build = $target ; then
12123 NM_FOR_TARGET="$2"
ca9f4b81 12124 else
2693c0b0 12125 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12126 fi
1c00b503
PB
12127else
12128 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12129fi
12130
d1f8db0c
PB
12131else
12132 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12133fi
12134
12135
12136
12137
12138if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12139 if test -n "$with_build_time_tools"; then
5213506e
RW
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12141$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12142 if test -x $with_build_time_tools/objdump; then
12143 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12144 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12146$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12147 else
5213506e
RW
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149$as_echo "no" >&6; }
d1f8db0c 12150 fi
e8b05380
PB
12151 elif test $build != $host && test $have_gcc_for_target = yes; then
12152 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12153 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12154 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12155 fi
12156fi
3e19841a 12157if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12158 # Extract the first word of "objdump", so it can be a program name with args.
12159set dummy objdump; ac_word=$2
5213506e
RW
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161$as_echo_n "checking for $ac_word... " >&6; }
12162if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
e8b05380 12164else
1c710c3c
DJ
12165 case $OBJDUMP_FOR_TARGET in
12166 [\\/]* | ?:[\\/]*)
e8b05380
PB
12167 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12168 ;;
e8b05380 12169 *)
1c710c3c
DJ
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171for as_dir in $gcc_cv_tool_dirs
12172do
12173 IFS=$as_save_IFS
12174 test -z "$as_dir" && as_dir=.
5213506e
RW
12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12177 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12179 break 2
12180 fi
12181done
5213506e
RW
12182 done
12183IFS=$as_save_IFS
1c710c3c 12184
e8b05380
PB
12185 ;;
12186esac
12187fi
1c710c3c 12188OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12189if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12191$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12192else
5213506e
RW
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194$as_echo "no" >&6; }
e8b05380
PB
12195fi
12196
5213506e 12197
e8b05380
PB
12198fi
12199if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12200
12201
12202if test -n "$OBJDUMP_FOR_TARGET"; then
12203 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12204elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12205 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12206fi
12207
12208if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12209 for ncn_progname in objdump; do
12210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12211set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12213$as_echo_n "checking for $ac_word... " >&6; }
12214if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12215 $as_echo_n "(cached) " >&6
278a7a38
AO
12216else
12217 if test -n "$OBJDUMP_FOR_TARGET"; then
12218 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12219else
12220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221for as_dir in $PATH
12222do
12223 IFS=$as_save_IFS
12224 test -z "$as_dir" && as_dir=.
5213506e
RW
12225 for ac_exec_ext in '' $ac_executable_extensions; do
12226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12227 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12229 break 2
12230 fi
12231done
5213506e
RW
12232 done
12233IFS=$as_save_IFS
278a7a38
AO
12234
12235fi
12236fi
12237OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12238if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12240$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12241else
5213506e
RW
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243$as_echo "no" >&6; }
278a7a38
AO
12244fi
12245
5213506e 12246
278a7a38
AO
12247 done
12248fi
12249
12250if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12251 for ncn_progname in objdump; do
5213506e
RW
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12253$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12254 if test -x $with_build_time_tools/${ncn_progname}; then
12255 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257$as_echo "yes" >&6; }
e8b05380
PB
12258 break
12259 else
5213506e
RW
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261$as_echo "no" >&6; }
e8b05380
PB
12262 fi
12263 done
12264fi
12265
12266if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12267 for ncn_progname in objdump; do
12268 if test -n "$ncn_target_tool_prefix"; then
12269 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12270set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272$as_echo_n "checking for $ac_word... " >&6; }
12273if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
d739199a
DJ
12275else
12276 if test -n "$OBJDUMP_FOR_TARGET"; then
12277 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12278else
1c710c3c
DJ
12279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280for as_dir in $PATH
12281do
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
5213506e
RW
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12286 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12288 break 2
12289 fi
12290done
5213506e
RW
12291 done
12292IFS=$as_save_IFS
1c710c3c 12293
d739199a
DJ
12294fi
12295fi
1c710c3c 12296OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12297if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12299$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12300else
5213506e
RW
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302$as_echo "no" >&6; }
d739199a
DJ
12303fi
12304
5213506e 12305
e8b05380
PB
12306 fi
12307 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12309set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311$as_echo_n "checking for $ac_word... " >&6; }
12312if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
d739199a
DJ
12314else
12315 if test -n "$OBJDUMP_FOR_TARGET"; then
12316 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12317else
1c710c3c
DJ
12318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319for as_dir in $PATH
12320do
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
5213506e
RW
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12325 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12327 break 2
12328 fi
12329done
5213506e
RW
12330 done
12331IFS=$as_save_IFS
1c710c3c 12332
d739199a
DJ
12333fi
12334fi
1c710c3c 12335OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12336if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12338$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12339else
5213506e
RW
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341$as_echo "no" >&6; }
d739199a 12342fi
1c710c3c 12343
5213506e 12344
e8b05380
PB
12345 fi
12346 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12347 done
12348fi
1c710c3c 12349
d739199a
DJ
12350if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12351 set dummy objdump
12352 if test $build = $target ; then
12353 OBJDUMP_FOR_TARGET="$2"
12354 else
12355 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12356 fi
1c00b503
PB
12357else
12358 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12359fi
12360
d1f8db0c
PB
12361else
12362 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12363fi
12364
12365
12366
12367
12368if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12369 if test -n "$with_build_time_tools"; then
5213506e
RW
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12371$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12372 if test -x $with_build_time_tools/ranlib; then
12373 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12374 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12376$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12377 else
5213506e
RW
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379$as_echo "no" >&6; }
d1f8db0c 12380 fi
e8b05380
PB
12381 elif test $build != $host && test $have_gcc_for_target = yes; then
12382 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12383 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12384 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12385 fi
12386fi
3e19841a 12387if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12388 # Extract the first word of "ranlib", so it can be a program name with args.
12389set dummy ranlib; ac_word=$2
5213506e
RW
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391$as_echo_n "checking for $ac_word... " >&6; }
12392if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12393 $as_echo_n "(cached) " >&6
e8b05380 12394else
1c710c3c
DJ
12395 case $RANLIB_FOR_TARGET in
12396 [\\/]* | ?:[\\/]*)
e8b05380
PB
12397 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12398 ;;
e8b05380 12399 *)
1c710c3c
DJ
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401for as_dir in $gcc_cv_tool_dirs
12402do
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
5213506e
RW
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12407 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12409 break 2
12410 fi
12411done
5213506e
RW
12412 done
12413IFS=$as_save_IFS
1c710c3c 12414
e8b05380
PB
12415 ;;
12416esac
12417fi
1c710c3c 12418RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12419if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12421$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12422else
5213506e
RW
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424$as_echo "no" >&6; }
e8b05380
PB
12425fi
12426
5213506e 12427
e8b05380
PB
12428fi
12429if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12430
12431
12432if test -n "$RANLIB_FOR_TARGET"; then
12433 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12434elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12435 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12436fi
12437
12438if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12439 for ncn_progname in ranlib; do
12440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12441set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443$as_echo_n "checking for $ac_word... " >&6; }
12444if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
278a7a38
AO
12446else
12447 if test -n "$RANLIB_FOR_TARGET"; then
12448 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12449else
12450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451for as_dir in $PATH
12452do
12453 IFS=$as_save_IFS
12454 test -z "$as_dir" && as_dir=.
5213506e
RW
12455 for ac_exec_ext in '' $ac_executable_extensions; do
12456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12457 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12459 break 2
12460 fi
12461done
5213506e
RW
12462 done
12463IFS=$as_save_IFS
278a7a38
AO
12464
12465fi
12466fi
12467RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12468if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12470$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12471else
5213506e
RW
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473$as_echo "no" >&6; }
278a7a38
AO
12474fi
12475
5213506e 12476
278a7a38
AO
12477 done
12478fi
12479
12480if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12481 for ncn_progname in ranlib; do
5213506e
RW
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12483$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12484 if test -x $with_build_time_tools/${ncn_progname}; then
12485 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12487$as_echo "yes" >&6; }
e8b05380
PB
12488 break
12489 else
5213506e
RW
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491$as_echo "no" >&6; }
e8b05380
PB
12492 fi
12493 done
12494fi
12495
12496if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12497 for ncn_progname in ranlib; do
12498 if test -n "$ncn_target_tool_prefix"; then
12499 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12500set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502$as_echo_n "checking for $ac_word... " >&6; }
12503if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12504 $as_echo_n "(cached) " >&6
ca9f4b81 12505else
4de997d1
PB
12506 if test -n "$RANLIB_FOR_TARGET"; then
12507 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12508else
1c710c3c
DJ
12509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510for as_dir in $PATH
12511do
12512 IFS=$as_save_IFS
12513 test -z "$as_dir" && as_dir=.
5213506e
RW
12514 for ac_exec_ext in '' $ac_executable_extensions; do
12515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12516 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12518 break 2
12519 fi
12520done
5213506e
RW
12521 done
12522IFS=$as_save_IFS
1c710c3c 12523
ca9f4b81
AO
12524fi
12525fi
1c710c3c 12526RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12527if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12529$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12530else
5213506e
RW
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532$as_echo "no" >&6; }
ca9f4b81
AO
12533fi
12534
5213506e 12535
e8b05380
PB
12536 fi
12537 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12539set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541$as_echo_n "checking for $ac_word... " >&6; }
12542if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12543 $as_echo_n "(cached) " >&6
ca9f4b81 12544else
2693c0b0
PB
12545 if test -n "$RANLIB_FOR_TARGET"; then
12546 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12547else
1c710c3c
DJ
12548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549for as_dir in $PATH
12550do
12551 IFS=$as_save_IFS
12552 test -z "$as_dir" && as_dir=.
5213506e
RW
12553 for ac_exec_ext in '' $ac_executable_extensions; do
12554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12555 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12557 break 2
12558 fi
12559done
5213506e
RW
12560 done
12561IFS=$as_save_IFS
1c710c3c 12562
ca9f4b81
AO
12563fi
12564fi
1c710c3c 12565RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12566if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12568$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12569else
5213506e
RW
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571$as_echo "no" >&6; }
ca9f4b81 12572fi
1c710c3c 12573
5213506e 12574
e8b05380
PB
12575 fi
12576 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12577 done
12578fi
1c710c3c 12579
e8b05380
PB
12580if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12581 set dummy ranlib
12582 if test $build = $target ; then
12583 RANLIB_FOR_TARGET="$2"
12584 else
12585 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12586 fi
1c00b503
PB
12587else
12588 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12589fi
2693c0b0 12590
d1f8db0c
PB
12591else
12592 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12593fi
12594
e8b05380
PB
12595
12596
12597
e7a82751
RM
12598if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12599 if test -n "$with_build_time_tools"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12601$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12602 if test -x $with_build_time_tools/readelf; then
12603 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12604 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12606$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12607 else
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609$as_echo "no" >&6; }
12610 fi
12611 elif test $build != $host && test $have_gcc_for_target = yes; then
12612 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12613 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12614 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12615 fi
12616fi
12617if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12618 # Extract the first word of "readelf", so it can be a program name with args.
12619set dummy readelf; ac_word=$2
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621$as_echo_n "checking for $ac_word... " >&6; }
12622if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
12624else
12625 case $READELF_FOR_TARGET in
12626 [\\/]* | ?:[\\/]*)
12627 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12628 ;;
12629 *)
12630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631for as_dir in $gcc_cv_tool_dirs
12632do
12633 IFS=$as_save_IFS
12634 test -z "$as_dir" && as_dir=.
12635 for ac_exec_ext in '' $ac_executable_extensions; do
12636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12637 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12639 break 2
12640 fi
12641done
12642 done
12643IFS=$as_save_IFS
12644
12645 ;;
12646esac
12647fi
12648READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12649if test -n "$READELF_FOR_TARGET"; then
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12651$as_echo "$READELF_FOR_TARGET" >&6; }
12652else
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654$as_echo "no" >&6; }
12655fi
12656
12657
12658fi
12659if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12660
12661
12662if test -n "$READELF_FOR_TARGET"; then
12663 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12664elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12665 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12666fi
12667
12668if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12669 for ncn_progname in readelf; do
12670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12671set dummy ${ncn_progname}; ac_word=$2
12672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12673$as_echo_n "checking for $ac_word... " >&6; }
12674if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12675 $as_echo_n "(cached) " >&6
12676else
12677 if test -n "$READELF_FOR_TARGET"; then
12678 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12679else
12680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681for as_dir in $PATH
12682do
12683 IFS=$as_save_IFS
12684 test -z "$as_dir" && as_dir=.
12685 for ac_exec_ext in '' $ac_executable_extensions; do
12686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12687 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12689 break 2
12690 fi
12691done
12692 done
12693IFS=$as_save_IFS
12694
12695fi
12696fi
12697READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12698if test -n "$READELF_FOR_TARGET"; then
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12700$as_echo "$READELF_FOR_TARGET" >&6; }
12701else
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703$as_echo "no" >&6; }
12704fi
12705
12706
12707 done
12708fi
12709
12710if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12711 for ncn_progname in readelf; do
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12713$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12714 if test -x $with_build_time_tools/${ncn_progname}; then
12715 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12717$as_echo "yes" >&6; }
12718 break
12719 else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721$as_echo "no" >&6; }
12722 fi
12723 done
12724fi
12725
12726if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12727 for ncn_progname in readelf; do
12728 if test -n "$ncn_target_tool_prefix"; then
12729 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12730set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732$as_echo_n "checking for $ac_word... " >&6; }
12733if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12734 $as_echo_n "(cached) " >&6
12735else
12736 if test -n "$READELF_FOR_TARGET"; then
12737 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12738else
12739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740for as_dir in $PATH
12741do
12742 IFS=$as_save_IFS
12743 test -z "$as_dir" && as_dir=.
12744 for ac_exec_ext in '' $ac_executable_extensions; do
12745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12746 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12748 break 2
12749 fi
12750done
12751 done
12752IFS=$as_save_IFS
12753
12754fi
12755fi
12756READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12757if test -n "$READELF_FOR_TARGET"; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12759$as_echo "$READELF_FOR_TARGET" >&6; }
12760else
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762$as_echo "no" >&6; }
12763fi
12764
12765
12766 fi
12767 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12769set dummy ${ncn_progname}; ac_word=$2
12770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771$as_echo_n "checking for $ac_word... " >&6; }
12772if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12773 $as_echo_n "(cached) " >&6
12774else
12775 if test -n "$READELF_FOR_TARGET"; then
12776 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12777else
12778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779for as_dir in $PATH
12780do
12781 IFS=$as_save_IFS
12782 test -z "$as_dir" && as_dir=.
12783 for ac_exec_ext in '' $ac_executable_extensions; do
12784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12785 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12787 break 2
12788 fi
12789done
12790 done
12791IFS=$as_save_IFS
12792
12793fi
12794fi
12795READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12796if test -n "$READELF_FOR_TARGET"; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12798$as_echo "$READELF_FOR_TARGET" >&6; }
12799else
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801$as_echo "no" >&6; }
12802fi
12803
12804
12805 fi
12806 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12807 done
12808fi
12809
12810if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12811 set dummy readelf
12812 if test $build = $target ; then
12813 READELF_FOR_TARGET="$2"
12814 else
12815 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12816 fi
12817else
12818 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12819fi
12820
12821else
12822 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12823fi
12824
12825
12826
12827
e8b05380
PB
12828if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12829 if test -n "$with_build_time_tools"; then
5213506e
RW
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12831$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12832 if test -x $with_build_time_tools/strip; then
12833 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12834 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12836$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12837 else
5213506e
RW
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839$as_echo "no" >&6; }
d1f8db0c 12840 fi
e8b05380
PB
12841 elif test $build != $host && test $have_gcc_for_target = yes; then
12842 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12843 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12844 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12845 fi
12846fi
3e19841a 12847if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12848 # Extract the first word of "strip", so it can be a program name with args.
12849set dummy strip; ac_word=$2
5213506e
RW
12850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851$as_echo_n "checking for $ac_word... " >&6; }
12852if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
e8b05380 12854else
1c710c3c
DJ
12855 case $STRIP_FOR_TARGET in
12856 [\\/]* | ?:[\\/]*)
e8b05380
PB
12857 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12858 ;;
e8b05380 12859 *)
1c710c3c
DJ
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861for as_dir in $gcc_cv_tool_dirs
12862do
12863 IFS=$as_save_IFS
12864 test -z "$as_dir" && as_dir=.
5213506e
RW
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12867 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12869 break 2
12870 fi
12871done
5213506e
RW
12872 done
12873IFS=$as_save_IFS
1c710c3c 12874
e8b05380
PB
12875 ;;
12876esac
12877fi
1c710c3c 12878STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12879if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12881$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12882else
5213506e
RW
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884$as_echo "no" >&6; }
e8b05380
PB
12885fi
12886
5213506e 12887
e8b05380
PB
12888fi
12889if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12890
12891
12892if test -n "$STRIP_FOR_TARGET"; then
12893 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12894elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12895 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12896fi
12897
12898if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12899 for ncn_progname in strip; do
12900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12901set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12903$as_echo_n "checking for $ac_word... " >&6; }
12904if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
278a7a38
AO
12906else
12907 if test -n "$STRIP_FOR_TARGET"; then
12908 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12909else
12910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12911for as_dir in $PATH
12912do
12913 IFS=$as_save_IFS
12914 test -z "$as_dir" && as_dir=.
5213506e
RW
12915 for ac_exec_ext in '' $ac_executable_extensions; do
12916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12917 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12919 break 2
12920 fi
12921done
5213506e
RW
12922 done
12923IFS=$as_save_IFS
278a7a38
AO
12924
12925fi
12926fi
12927STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12928if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12930$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12931else
5213506e
RW
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12933$as_echo "no" >&6; }
278a7a38
AO
12934fi
12935
5213506e 12936
278a7a38
AO
12937 done
12938fi
12939
12940if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12941 for ncn_progname in strip; do
5213506e
RW
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12943$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12944 if test -x $with_build_time_tools/${ncn_progname}; then
12945 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12947$as_echo "yes" >&6; }
e8b05380
PB
12948 break
12949 else
5213506e
RW
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951$as_echo "no" >&6; }
e8b05380
PB
12952 fi
12953 done
12954fi
12955
12956if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12957 for ncn_progname in strip; do
12958 if test -n "$ncn_target_tool_prefix"; then
12959 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12960set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12962$as_echo_n "checking for $ac_word... " >&6; }
12963if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12964 $as_echo_n "(cached) " >&6
af71363e
AS
12965else
12966 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12967 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12968else
12969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970for as_dir in $PATH
12971do
12972 IFS=$as_save_IFS
12973 test -z "$as_dir" && as_dir=.
5213506e
RW
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12976 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12978 break 2
12979 fi
12980done
5213506e
RW
12981 done
12982IFS=$as_save_IFS
1c710c3c 12983
040b1c5a
GK
12984fi
12985fi
1c710c3c 12986STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12987if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12989$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12990else
5213506e
RW
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992$as_echo "no" >&6; }
040b1c5a
GK
12993fi
12994
5213506e 12995
e8b05380
PB
12996 fi
12997 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12999set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13001$as_echo_n "checking for $ac_word... " >&6; }
13002if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13003 $as_echo_n "(cached) " >&6
040b1c5a
GK
13004else
13005 if test -n "$STRIP_FOR_TARGET"; then
13006 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13007else
1c710c3c
DJ
13008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009for as_dir in $PATH
13010do
13011 IFS=$as_save_IFS
13012 test -z "$as_dir" && as_dir=.
5213506e
RW
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13015 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13017 break 2
13018 fi
13019done
5213506e
RW
13020 done
13021IFS=$as_save_IFS
1c710c3c 13022
040b1c5a
GK
13023fi
13024fi
1c710c3c 13025STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13026if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13028$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13029else
5213506e
RW
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031$as_echo "no" >&6; }
040b1c5a 13032fi
1c710c3c 13033
5213506e 13034
e8b05380
PB
13035 fi
13036 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13037 done
13038fi
1c710c3c 13039
040b1c5a
GK
13040if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13041 set dummy strip
13042 if test $build = $target ; then
13043 STRIP_FOR_TARGET="$2"
13044 else
13045 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13046 fi
1c00b503
PB
13047else
13048 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13049fi
13050
d1f8db0c
PB
13051else
13052 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13053fi
13054
13055
13056
13057
13058if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13059 if test -n "$with_build_time_tools"; then
5213506e
RW
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13061$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13062 if test -x $with_build_time_tools/windres; then
13063 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13064 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13066$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13067 else
5213506e
RW
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069$as_echo "no" >&6; }
d1f8db0c 13070 fi
e8b05380
PB
13071 elif test $build != $host && test $have_gcc_for_target = yes; then
13072 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13073 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13074 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13075 fi
13076fi
3e19841a 13077if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13078 # Extract the first word of "windres", so it can be a program name with args.
13079set dummy windres; ac_word=$2
5213506e
RW
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081$as_echo_n "checking for $ac_word... " >&6; }
13082if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13083 $as_echo_n "(cached) " >&6
e8b05380 13084else
1c710c3c
DJ
13085 case $WINDRES_FOR_TARGET in
13086 [\\/]* | ?:[\\/]*)
e8b05380
PB
13087 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13088 ;;
e8b05380 13089 *)
1c710c3c
DJ
13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091for as_dir in $gcc_cv_tool_dirs
13092do
13093 IFS=$as_save_IFS
13094 test -z "$as_dir" && as_dir=.
5213506e
RW
13095 for ac_exec_ext in '' $ac_executable_extensions; do
13096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13097 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13099 break 2
13100 fi
13101done
5213506e
RW
13102 done
13103IFS=$as_save_IFS
1c710c3c 13104
e8b05380
PB
13105 ;;
13106esac
13107fi
1c710c3c 13108WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13109if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13111$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13112else
5213506e
RW
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114$as_echo "no" >&6; }
e8b05380
PB
13115fi
13116
5213506e 13117
e8b05380
PB
13118fi
13119if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13120
13121
13122if test -n "$WINDRES_FOR_TARGET"; then
13123 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13124elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13125 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13126fi
13127
13128if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13129 for ncn_progname in windres; do
13130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13131set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133$as_echo_n "checking for $ac_word... " >&6; }
13134if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13135 $as_echo_n "(cached) " >&6
278a7a38
AO
13136else
13137 if test -n "$WINDRES_FOR_TARGET"; then
13138 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13139else
13140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141for as_dir in $PATH
13142do
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
5213506e
RW
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13147 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13149 break 2
13150 fi
13151done
5213506e
RW
13152 done
13153IFS=$as_save_IFS
278a7a38
AO
13154
13155fi
13156fi
13157WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13158if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13160$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13161else
5213506e
RW
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163$as_echo "no" >&6; }
278a7a38
AO
13164fi
13165
5213506e 13166
278a7a38
AO
13167 done
13168fi
13169
13170if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13171 for ncn_progname in windres; do
5213506e
RW
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13173$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13174 if test -x $with_build_time_tools/${ncn_progname}; then
13175 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13177$as_echo "yes" >&6; }
e8b05380
PB
13178 break
13179 else
5213506e
RW
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181$as_echo "no" >&6; }
e8b05380
PB
13182 fi
13183 done
13184fi
13185
13186if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13187 for ncn_progname in windres; do
13188 if test -n "$ncn_target_tool_prefix"; then
13189 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13190set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192$as_echo_n "checking for $ac_word... " >&6; }
13193if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
ca9f4b81 13195else
4de997d1
PB
13196 if test -n "$WINDRES_FOR_TARGET"; then
13197 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13198else
1c710c3c
DJ
13199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200for as_dir in $PATH
13201do
13202 IFS=$as_save_IFS
13203 test -z "$as_dir" && as_dir=.
5213506e
RW
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13206 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13208 break 2
13209 fi
13210done
5213506e
RW
13211 done
13212IFS=$as_save_IFS
1c710c3c 13213
ca9f4b81
AO
13214fi
13215fi
1c710c3c 13216WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13217if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13219$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13220else
5213506e
RW
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222$as_echo "no" >&6; }
ca9f4b81
AO
13223fi
13224
5213506e 13225
e8b05380
PB
13226 fi
13227 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13229set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231$as_echo_n "checking for $ac_word... " >&6; }
13232if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
ca9f4b81 13234else
2693c0b0
PB
13235 if test -n "$WINDRES_FOR_TARGET"; then
13236 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13237else
1c710c3c
DJ
13238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239for as_dir in $PATH
13240do
13241 IFS=$as_save_IFS
13242 test -z "$as_dir" && as_dir=.
5213506e
RW
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13245 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13247 break 2
13248 fi
13249done
5213506e
RW
13250 done
13251IFS=$as_save_IFS
1c710c3c 13252
ca9f4b81
AO
13253fi
13254fi
1c710c3c 13255WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13256if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13258$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13259else
5213506e
RW
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261$as_echo "no" >&6; }
ca9f4b81 13262fi
1c710c3c 13263
5213506e 13264
e8b05380
PB
13265 fi
13266 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13267 done
13268fi
1c710c3c 13269
2693c0b0
PB
13270if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13271 set dummy windres
13272 if test $build = $target ; then
13273 WINDRES_FOR_TARGET="$2"
ca9f4b81 13274 else
2693c0b0 13275 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13276 fi
1c00b503
PB
13277else
13278 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13279fi
13280
d1f8db0c
PB
13281else
13282 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13283fi
13284
4977bab6 13285
901119ae
KT
13286
13287
13288if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13289 if test -n "$with_build_time_tools"; then
5213506e
RW
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13291$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13292 if test -x $with_build_time_tools/windmc; then
13293 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13294 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13296$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13297 else
5213506e
RW
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299$as_echo "no" >&6; }
901119ae
KT
13300 fi
13301 elif test $build != $host && test $have_gcc_for_target = yes; then
13302 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13303 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13304 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13305 fi
13306fi
13307if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13308 # Extract the first word of "windmc", so it can be a program name with args.
13309set dummy windmc; ac_word=$2
5213506e
RW
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311$as_echo_n "checking for $ac_word... " >&6; }
13312if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13313 $as_echo_n "(cached) " >&6
901119ae
KT
13314else
13315 case $WINDMC_FOR_TARGET in
13316 [\\/]* | ?:[\\/]*)
13317 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13318 ;;
13319 *)
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321for as_dir in $gcc_cv_tool_dirs
13322do
13323 IFS=$as_save_IFS
13324 test -z "$as_dir" && as_dir=.
5213506e
RW
13325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13327 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13329 break 2
13330 fi
13331done
5213506e
RW
13332 done
13333IFS=$as_save_IFS
901119ae
KT
13334
13335 ;;
13336esac
13337fi
13338WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13339if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13341$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13342else
5213506e
RW
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344$as_echo "no" >&6; }
901119ae
KT
13345fi
13346
5213506e 13347
901119ae
KT
13348fi
13349if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13350
13351
13352if test -n "$WINDMC_FOR_TARGET"; then
13353 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13354elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13355 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13356fi
13357
13358if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13359 for ncn_progname in windmc; do
13360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13361set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363$as_echo_n "checking for $ac_word... " >&6; }
13364if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13365 $as_echo_n "(cached) " >&6
901119ae
KT
13366else
13367 if test -n "$WINDMC_FOR_TARGET"; then
13368 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13369else
13370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371for as_dir in $PATH
13372do
13373 IFS=$as_save_IFS
13374 test -z "$as_dir" && as_dir=.
5213506e
RW
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13377 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13379 break 2
13380 fi
13381done
5213506e
RW
13382 done
13383IFS=$as_save_IFS
901119ae
KT
13384
13385fi
13386fi
13387WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13388if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13390$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13391else
5213506e
RW
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393$as_echo "no" >&6; }
901119ae
KT
13394fi
13395
5213506e 13396
901119ae
KT
13397 done
13398fi
13399
13400if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13401 for ncn_progname in windmc; do
5213506e
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13403$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13404 if test -x $with_build_time_tools/${ncn_progname}; then
13405 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407$as_echo "yes" >&6; }
901119ae
KT
13408 break
13409 else
5213506e
RW
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411$as_echo "no" >&6; }
901119ae
KT
13412 fi
13413 done
13414fi
13415
13416if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13417 for ncn_progname in windmc; do
13418 if test -n "$ncn_target_tool_prefix"; then
13419 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13420set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13422$as_echo_n "checking for $ac_word... " >&6; }
13423if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13424 $as_echo_n "(cached) " >&6
901119ae
KT
13425else
13426 if test -n "$WINDMC_FOR_TARGET"; then
13427 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13428else
13429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430for as_dir in $PATH
13431do
13432 IFS=$as_save_IFS
13433 test -z "$as_dir" && as_dir=.
5213506e
RW
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13436 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13438 break 2
13439 fi
13440done
5213506e
RW
13441 done
13442IFS=$as_save_IFS
901119ae
KT
13443
13444fi
13445fi
13446WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13447if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13449$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13450else
5213506e
RW
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452$as_echo "no" >&6; }
901119ae
KT
13453fi
13454
5213506e 13455
901119ae
KT
13456 fi
13457 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13459set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461$as_echo_n "checking for $ac_word... " >&6; }
13462if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13463 $as_echo_n "(cached) " >&6
901119ae
KT
13464else
13465 if test -n "$WINDMC_FOR_TARGET"; then
13466 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13467else
13468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469for as_dir in $PATH
13470do
13471 IFS=$as_save_IFS
13472 test -z "$as_dir" && as_dir=.
5213506e
RW
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13475 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13477 break 2
13478 fi
13479done
5213506e
RW
13480 done
13481IFS=$as_save_IFS
901119ae
KT
13482
13483fi
13484fi
13485WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13486if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13488$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13489else
5213506e
RW
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491$as_echo "no" >&6; }
901119ae
KT
13492fi
13493
5213506e 13494
901119ae
KT
13495 fi
13496 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13497 done
13498fi
13499
13500if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13501 set dummy windmc
13502 if test $build = $target ; then
13503 WINDMC_FOR_TARGET="$2"
13504 else
13505 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13506 fi
1c00b503
PB
13507else
13508 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13509fi
13510
13511else
13512 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13513fi
13514
13515
2abefe3d
PB
13516RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13517
5213506e
RW
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13519$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13520if test "x${build}" != "x${host}" ; then
e8b05380
PB
13521 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13522 # We already found the complete path
172e41aa 13523 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13525$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13526 else
13527 # Canadian cross, just use what we found
5213506e
RW
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13529$as_echo "pre-installed" >&6; }
e8b05380 13530 fi
2abefe3d
PB
13531else
13532 ok=yes
13533 case " ${configdirs} " in
13534 *" binutils "*) ;;
13535 *) ok=no ;;
13536 esac
1c710c3c 13537
2abefe3d
PB
13538 if test $ok = yes; then
13539 # An in-tree tool is available and we can use it
13540 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13542$as_echo "just compiled" >&6; }
e8b05380
PB
13543 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13544 # We already found the complete path
172e41aa 13545 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13547$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13548 elif test "x$target" = "x$host"; then
13549 # We can use an host tool
13550 AR_FOR_TARGET='$(AR)'
5213506e
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13552$as_echo "host tool" >&6; }
2abefe3d
PB
13553 else
13554 # We need a cross tool
5213506e
RW
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13556$as_echo "pre-installed" >&6; }
2abefe3d
PB
13557 fi
13558fi
0b0dc272 13559
5213506e
RW
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13561$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13562if test "x${build}" != "x${host}" ; then
e8b05380
PB
13563 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13564 # We already found the complete path
172e41aa 13565 ac_dir=`dirname $AS_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 *" gas "*) ;;
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 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
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$AS_FOR_TARGET" : "x/" > /dev/null; then
13586 # We already found the complete path
172e41aa 13587 ac_dir=`dirname $AS_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 AS_FOR_TARGET='$(AS)'
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 cc" >&5
13603$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13604if test "x${build}" != "x${host}" ; then
e8b05380
PB
13605 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13606 # We already found the complete path
172e41aa 13607 ac_dir=`dirname $CC_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 *" gcc "*) ;;
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 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
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$CC_FOR_TARGET" : "x/" > /dev/null; then
13628 # We already found the complete path
172e41aa 13629 ac_dir=`dirname $CC_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 CC_FOR_TARGET='$(CC)'
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 c++" >&5
13645$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13646if test "x${build}" != "x${host}" ; then
e8b05380
PB
13647 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13648 # We already found the complete path
172e41aa 13649 ac_dir=`dirname $CXX_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
13663 case ,${enable_languages}, in
13664 *,c++,*) ;;
13665 *) ok=no ;;
13666 esac
13667 if test $ok = yes; then
13668 # An in-tree tool is available and we can use it
9aff220f 13669 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
5213506e
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13671$as_echo "just compiled" >&6; }
e8b05380
PB
13672 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13673 # We already found the complete path
172e41aa 13674 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13676$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13677 elif test "x$target" = "x$host"; then
13678 # We can use an host tool
13679 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13681$as_echo "host tool" >&6; }
2abefe3d
PB
13682 else
13683 # We need a cross tool
5213506e
RW
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13685$as_echo "pre-installed" >&6; }
2abefe3d
PB
13686 fi
13687fi
0b0dc272 13688
5213506e
RW
13689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13690$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13691if test "x${build}" != "x${host}" ; then
e8b05380
PB
13692 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13693 # We already found the complete path
172e41aa 13694 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13696$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13697 else
13698 # Canadian cross, just use what we found
5213506e
RW
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13700$as_echo "pre-installed" >&6; }
e8b05380 13701 fi
2abefe3d
PB
13702else
13703 ok=yes
13704 case " ${configdirs} " in
13705 *" gcc "*) ;;
13706 *) ok=no ;;
13707 esac
13708 case ,${enable_languages}, in
13709 *,c++,*) ;;
13710 *) ok=no ;;
13711 esac
13712 if test $ok = yes; then
13713 # An in-tree tool is available and we can use it
13714 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'
5213506e
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13716$as_echo "just compiled" >&6; }
e8b05380
PB
13717 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13718 # We already found the complete path
172e41aa 13719 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13721$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13722 elif test "x$target" = "x$host"; then
13723 # We can use an host tool
13724 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13726$as_echo "host tool" >&6; }
2abefe3d
PB
13727 else
13728 # We need a cross tool
5213506e
RW
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13730$as_echo "pre-installed" >&6; }
2abefe3d
PB
13731 fi
13732fi
0b0dc272 13733
5213506e
RW
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13735$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13736if test "x${build}" != "x${host}" ; then
e8b05380
PB
13737 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13738 # We already found the complete path
172e41aa 13739 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13741$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13742 else
13743 # Canadian cross, just use what we found
5213506e
RW
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13745$as_echo "pre-installed" >&6; }
e8b05380 13746 fi
2abefe3d
PB
13747else
13748 ok=yes
13749 case " ${configdirs} " in
13750 *" binutils "*) ;;
13751 *) ok=no ;;
13752 esac
1c710c3c 13753
2abefe3d
PB
13754 if test $ok = yes; then
13755 # An in-tree tool is available and we can use it
13756 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
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$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13760 # We already found the complete path
172e41aa 13761 ac_dir=`dirname $DLLTOOL_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 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
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 gcc" >&5
13777$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13778if test "x${build}" != "x${host}" ; then
e8b05380
PB
13779 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13780 # We already found the complete path
172e41aa 13781 ac_dir=`dirname $GCC_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 *" gcc "*) ;;
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 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
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$GCC_FOR_TARGET" : "x/" > /dev/null; then
13802 # We already found the complete path
172e41aa 13803 ac_dir=`dirname $GCC_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 GCC_FOR_TARGET='$()'
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 gcj" >&5
13819$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13820if test "x${build}" != "x${host}" ; then
e8b05380
PB
13821 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13822 # We already found the complete path
172e41aa 13823 ac_dir=`dirname $GCJ_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
13837 case ,${enable_languages}, in
13838 *,java,*) ;;
13839 *) ok=no ;;
13840 esac
13841 if test $ok = yes; then
13842 # An in-tree tool is available and we can use it
13843 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13845$as_echo "just compiled" >&6; }
e8b05380
PB
13846 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13847 # We already found the complete path
172e41aa 13848 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13850$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13851 elif test "x$target" = "x$host"; then
13852 # We can use an host tool
13853 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13855$as_echo "host tool" >&6; }
2abefe3d
PB
13856 else
13857 # We need a cross tool
5213506e
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13859$as_echo "pre-installed" >&6; }
2abefe3d
PB
13860 fi
13861fi
0b0dc272 13862
5213506e
RW
13863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13864$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13865if test "x${build}" != "x${host}" ; then
e8b05380
PB
13866 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13867 # We already found the complete path
172e41aa 13868 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13870$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13871 else
13872 # Canadian cross, just use what we found
5213506e
RW
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13874$as_echo "pre-installed" >&6; }
e8b05380 13875 fi
2abefe3d
PB
13876else
13877 ok=yes
13878 case " ${configdirs} " in
13879 *" gcc "*) ;;
13880 *) ok=no ;;
13881 esac
13882 case ,${enable_languages}, in
13883 *,fortran,*) ;;
13884 *) ok=no ;;
13885 esac
13886 if test $ok = yes; then
13887 # An in-tree tool is available and we can use it
13888 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13890$as_echo "just compiled" >&6; }
e8b05380
PB
13891 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13892 # We already found the complete path
172e41aa 13893 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13895$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13896 elif test "x$target" = "x$host"; then
13897 # We can use an host tool
13898 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13900$as_echo "host tool" >&6; }
2abefe3d
PB
13901 else
13902 # We need a cross tool
5213506e
RW
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13904$as_echo "pre-installed" >&6; }
2abefe3d
PB
13905 fi
13906fi
0b0dc272 13907
632e2a07
ILT
13908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13909$as_echo_n "checking where to find the target gccgo... " >&6; }
13910if test "x${build}" != "x${host}" ; then
13911 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13912 # We already found the complete path
13913 ac_dir=`dirname $GOC_FOR_TARGET`
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13915$as_echo "pre-installed in $ac_dir" >&6; }
13916 else
13917 # Canadian cross, just use what we found
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13919$as_echo "pre-installed" >&6; }
13920 fi
13921else
13922 ok=yes
13923 case " ${configdirs} " in
13924 *" gcc "*) ;;
13925 *) ok=no ;;
13926 esac
13927 case ,${enable_languages}, in
13928 *,go,*) ;;
13929 *) ok=no ;;
13930 esac
13931 if test $ok = yes; then
13932 # An in-tree tool is available and we can use it
13933 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13935$as_echo "just compiled" >&6; }
13936 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13937 # We already found the complete path
13938 ac_dir=`dirname $GOC_FOR_TARGET`
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13940$as_echo "pre-installed in $ac_dir" >&6; }
13941 elif test "x$target" = "x$host"; then
13942 # We can use an host tool
13943 GOC_FOR_TARGET='$(GOC)'
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13945$as_echo "host tool" >&6; }
13946 else
13947 # We need a cross tool
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13949$as_echo "pre-installed" >&6; }
13950 fi
13951fi
13952
5213506e
RW
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13954$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13955if test "x${build}" != "x${host}" ; then
e8b05380
PB
13956 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13957 # We already found the complete path
172e41aa 13958 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13960$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13961 else
13962 # Canadian cross, just use what we found
5213506e
RW
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13964$as_echo "pre-installed" >&6; }
e8b05380 13965 fi
2abefe3d
PB
13966else
13967 ok=yes
13968 case " ${configdirs} " in
13969 *" ld "*) ;;
13970 *) ok=no ;;
13971 esac
1c710c3c 13972
2abefe3d
PB
13973 if test $ok = yes; then
13974 # An in-tree tool is available and we can use it
13975 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13977$as_echo "just compiled" >&6; }
e8b05380
PB
13978 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13979 # We already found the complete path
172e41aa 13980 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13982$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13983 elif test "x$target" = "x$host"; then
13984 # We can use an host tool
13985 LD_FOR_TARGET='$(LD)'
5213506e
RW
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13987$as_echo "host tool" >&6; }
2abefe3d
PB
13988 else
13989 # We need a cross tool
5213506e
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991$as_echo "pre-installed" >&6; }
2abefe3d
PB
13992 fi
13993fi
0b0dc272 13994
5213506e
RW
13995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13996$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13997if test "x${build}" != "x${host}" ; then
e8b05380
PB
13998 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13999 # We already found the complete path
172e41aa 14000 ac_dir=`dirname $LIPO_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 14008else
e8b05380
PB
14009 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14010 # We already found the complete path
172e41aa 14011 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14013$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14014 elif test "x$target" = "x$host"; then
2abefe3d
PB
14015 # We can use an host tool
14016 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14018$as_echo "host tool" >&6; }
2abefe3d
PB
14019 else
14020 # We need a cross tool
5213506e
RW
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14022$as_echo "pre-installed" >&6; }
2abefe3d
PB
14023 fi
14024fi
0b0dc272 14025
5213506e
RW
14026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14027$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14028if test "x${build}" != "x${host}" ; then
e8b05380
PB
14029 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14030 # We already found the complete path
172e41aa 14031 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14033$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14034 else
14035 # Canadian cross, just use what we found
5213506e
RW
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14037$as_echo "pre-installed" >&6; }
e8b05380 14038 fi
2abefe3d
PB
14039else
14040 ok=yes
14041 case " ${configdirs} " in
14042 *" binutils "*) ;;
14043 *) ok=no ;;
14044 esac
1c710c3c 14045
2abefe3d
PB
14046 if test $ok = yes; then
14047 # An in-tree tool is available and we can use it
14048 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14050$as_echo "just compiled" >&6; }
e8b05380
PB
14051 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14052 # We already found the complete path
172e41aa 14053 ac_dir=`dirname $NM_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; }
2abefe3d
PB
14056 elif test "x$target" = "x$host"; then
14057 # We can use an host tool
14058 NM_FOR_TARGET='$(NM)'
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 objdump" >&5
14069$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14070if test "x${build}" != "x${host}" ; then
e8b05380
PB
14071 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14072 # We already found the complete path
172e41aa 14073 ac_dir=`dirname $OBJDUMP_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 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
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$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14094 # We already found the complete path
172e41aa 14095 ac_dir=`dirname $OBJDUMP_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 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
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 ranlib" >&5
14111$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14112if test "x${build}" != "x${host}" ; then
e8b05380
PB
14113 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14114 # We already found the complete path
172e41aa 14115 ac_dir=`dirname $RANLIB_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 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
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$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14136 # We already found the complete path
172e41aa 14137 ac_dir=`dirname $RANLIB_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 RANLIB_FOR_TARGET='$(RANLIB)'
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
e7a82751
RM
14152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14153$as_echo_n "checking where to find the target readelf... " >&6; }
14154if test "x${build}" != "x${host}" ; then
14155 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14156 # We already found the complete path
14157 ac_dir=`dirname $READELF_FOR_TARGET`
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14159$as_echo "pre-installed in $ac_dir" >&6; }
14160 else
14161 # Canadian cross, just use what we found
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163$as_echo "pre-installed" >&6; }
14164 fi
14165else
14166 ok=yes
14167 case " ${configdirs} " in
14168 *" binutils "*) ;;
14169 *) ok=no ;;
14170 esac
14171
14172 if test $ok = yes; then
14173 # An in-tree tool is available and we can use it
14174 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14176$as_echo "just compiled" >&6; }
14177 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14178 # We already found the complete path
14179 ac_dir=`dirname $READELF_FOR_TARGET`
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14181$as_echo "pre-installed in $ac_dir" >&6; }
14182 elif test "x$target" = "x$host"; then
14183 # We can use an host tool
14184 READELF_FOR_TARGET='$(READELF)'
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14186$as_echo "host tool" >&6; }
14187 else
14188 # We need a cross tool
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14190$as_echo "pre-installed" >&6; }
14191 fi
14192fi
14193
5213506e
RW
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14195$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14196if test "x${build}" != "x${host}" ; then
e8b05380
PB
14197 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14198 # We already found the complete path
172e41aa 14199 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14201$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14202 else
14203 # Canadian cross, just use what we found
5213506e
RW
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205$as_echo "pre-installed" >&6; }
e8b05380 14206 fi
2abefe3d
PB
14207else
14208 ok=yes
14209 case " ${configdirs} " in
14210 *" binutils "*) ;;
14211 *) ok=no ;;
14212 esac
1c710c3c 14213
2abefe3d
PB
14214 if test $ok = yes; then
14215 # An in-tree tool is available and we can use it
455c8f48 14216 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14218$as_echo "just compiled" >&6; }
e8b05380
PB
14219 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14220 # We already found the complete path
172e41aa 14221 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14223$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14224 elif test "x$target" = "x$host"; then
14225 # We can use an host tool
14226 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14228$as_echo "host tool" >&6; }
2abefe3d
PB
14229 else
14230 # We need a cross tool
5213506e
RW
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14232$as_echo "pre-installed" >&6; }
2abefe3d
PB
14233 fi
14234fi
0b0dc272 14235
5213506e
RW
14236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14237$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14238if test "x${build}" != "x${host}" ; then
e8b05380
PB
14239 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14240 # We already found the complete path
172e41aa 14241 ac_dir=`dirname $WINDRES_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
14258 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
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$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14262 # We already found the complete path
172e41aa 14263 ac_dir=`dirname $WINDRES_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 WINDRES_FOR_TARGET='$(WINDRES)'
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 14275 fi
671aa708 14276fi
be912515 14277
5213506e
RW
14278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14279$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14280if test "x${build}" != "x${host}" ; then
14281 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14282 # We already found the complete path
14283 ac_dir=`dirname $WINDMC_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; }
901119ae
KT
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; }
901119ae
KT
14290 fi
14291else
14292 ok=yes
14293 case " ${configdirs} " in
14294 *" binutils "*) ;;
14295 *) ok=no ;;
14296 esac
14297
14298 if test $ok = yes; then
14299 # An in-tree tool is available and we can use it
14300 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14302$as_echo "just compiled" >&6; }
901119ae
KT
14303 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14304 # We already found the complete path
14305 ac_dir=`dirname $WINDMC_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; }
901119ae
KT
14308 elif test "x$target" = "x$host"; then
14309 # We can use an host tool
14310 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14312$as_echo "host tool" >&6; }
901119ae
KT
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; }
901119ae
KT
14317 fi
14318fi
14319
be912515
NN
14320
14321
2abefe3d 14322
0b0dc272 14323
671aa708
NN
14324# Certain tools may need extra flags.
14325AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14326RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14327NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14328
2abefe3d
PB
14329# When building target libraries, except in a Canadian cross, we use
14330# the same toolchain as the compiler we just built.
14331COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14332COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14333COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14334if test $host = $build; then
14335 case " $configdirs " in
14336 *" gcc "*)
14337 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14338 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14339 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14340 ;;
14341 esac
14342fi
14343
14344
14345
14346
14347
5213506e
RW
14348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14349$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14350# Check whether --enable-maintainer-mode was given.
14351if test "${enable_maintainer_mode+set}" = set; then :
14352 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14353else
14354 USE_MAINTAINER_MODE=no
5213506e
RW
14355fi
14356
14357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14358$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14359
14360
14361if test "$USE_MAINTAINER_MODE" = yes; then
14362 MAINTAINER_MODE_TRUE=
14363 MAINTAINER_MODE_FALSE='#'
14364else
14365 MAINTAINER_MODE_TRUE='#'
14366 MAINTAINER_MODE_FALSE=
1c710c3c 14367fi
ee03dc5e
AO
14368MAINT=$MAINTAINER_MODE_TRUE
14369
2805b53a
NN
14370# ---------------------
14371# GCC bootstrap support
14372# ---------------------
14373
14374# Stage specific cflags for build.
14375stage1_cflags="-g"
14376case $build in
14377 vax-*-*)
14378 case ${GCC} in
14379 yes) stage1_cflags="-g -Wa,-J" ;;
14380 *) stage1_cflags="-g -J" ;;
14381 esac ;;
2805b53a
NN
14382esac
14383
0b50988a 14384# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 14385if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
14386 saved_CFLAGS="$CFLAGS"
14387
14388 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14389 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14391$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
14393/* end confdefs.h. */
14394
9cc1244e
JJ
14395#if (__GNUC__ < 3) \
14396 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14397 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14398#error http://gcc.gnu.org/PR29382
14399#endif
14400
1c710c3c
DJ
14401int
14402main ()
14403{
14404
14405 ;
14406 return 0;
14407}
14408_ACEOF
5213506e
RW
14409if ac_fn_c_try_compile "$LINENO"; then :
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14411$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 14412else
5213506e
RW
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414$as_echo "no" >&6; }
1c710c3c 14415fi
5213506e 14416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
14417
14418 CFLAGS="$saved_CFLAGS"
14419fi
14420
14421
2805b53a 14422
8efea775 14423# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14424# Check whether --enable-stage1-checking was given.
14425if test "${enable_stage1_checking+set}" = set; then :
14426 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14427else
e643dc23 14428 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14429 stage1_checking=--enable-checking=yes,types
8efea775 14430else
e643dc23 14431 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14432fi
5213506e 14433fi
8efea775
PB
14434
14435
2aeb72e9 14436
5213506e
RW
14437# Enable -Werror in bootstrap stage2 and later.
14438# Check whether --enable-werror was given.
14439if test "${enable_werror+set}" = set; then :
14440 enableval=$enable_werror;
2805b53a 14441else
416cfb5e 14442 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14443 enable_werror=yes
88fceb68
PB
14444else
14445 enable_werror=no
14446fi
5213506e
RW
14447fi
14448
09a9c095
NN
14449case ${enable_werror} in
14450 yes) stage2_werror_flag="--enable-werror-always" ;;
14451 *) stage2_werror_flag="" ;;
2805b53a
NN
14452esac
14453
14454
78767fd9
ILT
14455# If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14456# --enable-build-with-cxx after stage1.
14457if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14458 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14459else
14460 POSTSTAGE1_CONFIGURE_FLAGS=
14461fi
14462
14463
f2689b09
SE
14464# Specify what files to not compare during bootstrap.
14465
14466compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14467case "$target" in
14468 hppa*64*-*-hpux*) ;;
14469 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14470esac
f61428ed
AO
14471case " $configdirs " in
14472*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14473esac
f2689b09
SE
14474
14475
5213506e
RW
14476ac_config_files="$ac_config_files Makefile"
14477
1c710c3c 14478cat >confcache <<\_ACEOF
671aa708
NN
14479# This file is a shell script that caches the results of configure
14480# tests run on this system so they can be shared between configure
1c710c3c
DJ
14481# scripts and configure runs, see configure's option --config-cache.
14482# It is not useful on other systems. If it contains results you don't
14483# want to keep, you may remove or edit it.
671aa708 14484#
1c710c3c
DJ
14485# config.status only pays attention to the cache file if you give it
14486# the --recheck option to rerun configure.
671aa708 14487#
1c710c3c
DJ
14488# `ac_cv_env_foo' variables (set or unset) will be overridden when
14489# loading this file, other *unset* `ac_cv_foo' will be assigned the
14490# following values.
14491
14492_ACEOF
14493
671aa708
NN
14494# The following way of writing the cache mishandles newlines in values,
14495# but we know of no workaround that is simple, portable, and efficient.
5213506e 14496# So, we kill variables containing newlines.
671aa708
NN
14497# Ultrix sh set writes to stderr and can't be redirected directly,
14498# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14499(
14500 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14501 eval ac_val=\$$ac_var
14502 case $ac_val in #(
14503 *${as_nl}*)
14504 case $ac_var in #(
14505 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14506$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14507 esac
14508 case $ac_var in #(
14509 _ | IFS | as_nl) ;; #(
14510 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14511 *) { eval $ac_var=; unset $ac_var;} ;;
14512 esac ;;
14513 esac
14514 done
14515
1c710c3c 14516 (set) 2>&1 |
5213506e
RW
14517 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14518 *${as_nl}ac_space=\ *)
14519 # `set' does not quote correctly, so add quotes: double-quote
14520 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14521 sed -n \
14522 "s/'/'\\\\''/g;
14523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14524 ;; #(
1c710c3c
DJ
14525 *)
14526 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14528 ;;
5213506e
RW
14529 esac |
14530 sort
14531) |
1c710c3c 14532 sed '
5213506e 14533 /^ac_cv_env_/b end
1c710c3c 14534 t clear
5213506e 14535 :clear
1c710c3c
DJ
14536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14537 t end
5213506e
RW
14538 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14539 :end' >>confcache
14540if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14541 if test -w "$cache_file"; then
14542 test "x$cache_file" != "x/dev/null" &&
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14544$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14545 cat confcache >$cache_file
671aa708 14546 else
5213506e
RW
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14548$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14549 fi
4977bab6 14550fi
671aa708 14551rm -f confcache
79c06341 14552
671aa708
NN
14553test "x$prefix" = xNONE && prefix=$ac_default_prefix
14554# Let make expand exec_prefix.
14555test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14556
671aa708
NN
14557# Transform confdefs.h into DEFS.
14558# Protect against shell expansion while executing Makefile rules.
14559# Protect against Makefile macro expansion.
1c710c3c
DJ
14560#
14561# If the first sed substitution is executed (which looks for macros that
5213506e 14562# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14563# look for a macro that doesn't take arguments.
5213506e
RW
14564ac_script='
14565:mline
14566/\\$/{
14567 N
14568 s,\\\n,,
14569 b mline
14570}
1c710c3c 14571t clear
5213506e
RW
14572:clear
14573s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14574t quote
5213506e 14575s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14576t quote
5213506e
RW
14577b any
14578:quote
14579s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14580s/\[/\\&/g
14581s/\]/\\&/g
14582s/\$/$$/g
14583H
14584:any
14585${
14586 g
14587 s/^\n//
14588 s/\n/ /g
14589 p
14590}
14591'
14592DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14593
14594
14595ac_libobjs=
14596ac_ltlibobjs=
14597for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14598 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14599 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14600 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14601 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14602 # will be set to the directory where LIBOBJS objects are built.
14603 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14604 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14605done
14606LIBOBJS=$ac_libobjs
fb0103e5 14607
1c710c3c 14608LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14609
af71363e 14610
1c710c3c
DJ
14611
14612: ${CONFIG_STATUS=./config.status}
5213506e 14613ac_write_fail=0
1c710c3c
DJ
14614ac_clean_files_save=$ac_clean_files
14615ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14616{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14617$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14618as_write_fail=0
14619cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14620#! $SHELL
14621# Generated by $as_me.
671aa708 14622# Run this file to recreate the current configuration.
671aa708 14623# Compiler output produced by configure, useful for debugging
1c710c3c 14624# configure, is in config.log if it exists.
0b0dc272 14625
1c710c3c
DJ
14626debug=false
14627ac_cs_recheck=false
14628ac_cs_silent=false
1c710c3c 14629
5213506e
RW
14630SHELL=\${CONFIG_SHELL-$SHELL}
14631export SHELL
14632_ASEOF
14633cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14634## -------------------- ##
14635## M4sh Initialization. ##
14636## -------------------- ##
14637
14638# Be more Bourne compatible
14639DUALCASE=1; export DUALCASE # for MKS sh
14640if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14641 emulate sh
14642 NULLCMD=:
5213506e 14643 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14644 # is contrary to our usage. Disable this feature.
14645 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14646 setopt NO_GLOB_SUBST
14647else
14648 case `(set -o) 2>/dev/null` in #(
14649 *posix*) :
14650 set -o posix ;; #(
14651 *) :
14652 ;;
14653esac
1c710c3c 14654fi
1c710c3c 14655
5213506e
RW
14656
14657as_nl='
14658'
14659export as_nl
14660# Printing a long string crashes Solaris 7 /usr/bin/printf.
14661as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14662as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14663as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14664# Prefer a ksh shell builtin over an external printf program on Solaris,
14665# but without wasting forks for bash or zsh.
14666if test -z "$BASH_VERSION$ZSH_VERSION" \
14667 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14668 as_echo='print -r --'
14669 as_echo_n='print -rn --'
14670elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14671 as_echo='printf %s\n'
14672 as_echo_n='printf %s'
14673else
14674 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14675 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14676 as_echo_n='/usr/ucb/echo -n'
14677 else
14678 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14679 as_echo_n_body='eval
14680 arg=$1;
14681 case $arg in #(
14682 *"$as_nl"*)
14683 expr "X$arg" : "X\\(.*\\)$as_nl";
14684 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14685 esac;
14686 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14687 '
14688 export as_echo_n_body
14689 as_echo_n='sh -c $as_echo_n_body as_echo'
14690 fi
14691 export as_echo_body
14692 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14693fi
14694
5213506e
RW
14695# The user is always right.
14696if test "${PATH_SEPARATOR+set}" != set; then
14697 PATH_SEPARATOR=:
14698 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14699 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14700 PATH_SEPARATOR=';'
14701 }
14702fi
14703
14704
14705# IFS
14706# We need space, tab and new line, in precisely that order. Quoting is
14707# there to prevent editors from complaining about space-tab.
14708# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14709# splitting by setting IFS to empty value.)
14710IFS=" "" $as_nl"
14711
14712# Find who we are. Look in the path if we contain no directory separator.
14713case $0 in #((
14714 *[\\/]* ) as_myself=$0 ;;
14715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14716for as_dir in $PATH
14717do
14718 IFS=$as_save_IFS
14719 test -z "$as_dir" && as_dir=.
14720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14721 done
14722IFS=$as_save_IFS
14723
14724 ;;
14725esac
14726# We did not find ourselves, most probably we were run as `sh COMMAND'
14727# in which case we are not to be found in the path.
14728if test "x$as_myself" = x; then
14729 as_myself=$0
14730fi
14731if test ! -f "$as_myself"; then
14732 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14733 exit 1
14734fi
1c710c3c 14735
5213506e
RW
14736# Unset variables that we do not need and which cause bugs (e.g. in
14737# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14738# suppresses any "Segmentation fault" message there. '((' could
14739# trigger a bug in pdksh 5.2.14.
14740for as_var in BASH_ENV ENV MAIL MAILPATH
14741do eval test x\${$as_var+set} = xset \
14742 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14743done
1c710c3c
DJ
14744PS1='$ '
14745PS2='> '
14746PS4='+ '
14747
14748# NLS nuisances.
5213506e
RW
14749LC_ALL=C
14750export LC_ALL
14751LANGUAGE=C
14752export LANGUAGE
14753
14754# CDPATH.
14755(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14756
14757
14758# as_fn_error ERROR [LINENO LOG_FD]
14759# ---------------------------------
14760# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14761# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14762# script with status $?, using 1 if that was 0.
14763as_fn_error ()
14764{
14765 as_status=$?; test $as_status -eq 0 && as_status=1
14766 if test "$3"; then
14767 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14768 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14769 fi
5213506e
RW
14770 $as_echo "$as_me: error: $1" >&2
14771 as_fn_exit $as_status
14772} # as_fn_error
14773
14774
14775# as_fn_set_status STATUS
14776# -----------------------
14777# Set $? to STATUS, without forking.
14778as_fn_set_status ()
14779{
14780 return $1
14781} # as_fn_set_status
14782
14783# as_fn_exit STATUS
14784# -----------------
14785# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14786as_fn_exit ()
14787{
14788 set +e
14789 as_fn_set_status $1
14790 exit $1
14791} # as_fn_exit
14792
14793# as_fn_unset VAR
14794# ---------------
14795# Portably unset VAR.
14796as_fn_unset ()
14797{
14798 { eval $1=; unset $1;}
14799}
14800as_unset=as_fn_unset
14801# as_fn_append VAR VALUE
14802# ----------------------
14803# Append the text in VALUE to the end of the definition contained in VAR. Take
14804# advantage of any shell optimizations that allow amortized linear growth over
14805# repeated appends, instead of the typical quadratic growth present in naive
14806# implementations.
14807if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14808 eval 'as_fn_append ()
14809 {
14810 eval $1+=\$2
14811 }'
14812else
14813 as_fn_append ()
14814 {
14815 eval $1=\$$1\$2
14816 }
14817fi # as_fn_append
14818
14819# as_fn_arith ARG...
14820# ------------------
14821# Perform arithmetic evaluation on the ARGs, and store the result in the
14822# global $as_val. Take advantage of shells that can avoid forks. The arguments
14823# must be portable across $(()) and expr.
14824if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14825 eval 'as_fn_arith ()
14826 {
14827 as_val=$(( $* ))
14828 }'
14829else
14830 as_fn_arith ()
14831 {
14832 as_val=`expr "$@" || test $? -eq 1`
14833 }
14834fi # as_fn_arith
14835
1c710c3c 14836
5213506e
RW
14837if expr a : '\(a\)' >/dev/null 2>&1 &&
14838 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14839 as_expr=expr
14840else
14841 as_expr=false
14842fi
14843
5213506e 14844if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14845 as_basename=basename
14846else
14847 as_basename=false
14848fi
14849
5213506e
RW
14850if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14851 as_dirname=dirname
14852else
14853 as_dirname=false
14854fi
1c710c3c 14855
5213506e 14856as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14857$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14858 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14859 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14860$as_echo X/"$0" |
14861 sed '/^.*\/\([^/][^/]*\)\/*$/{
14862 s//\1/
14863 q
14864 }
14865 /^X\/\(\/\/\)$/{
14866 s//\1/
14867 q
14868 }
14869 /^X\/\(\/\).*/{
14870 s//\1/
14871 q
14872 }
14873 s/.*/./; q'`
2aeb72e9 14874
2aeb72e9
DD
14875# Avoid depending upon Character Ranges.
14876as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14877as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14878as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14879as_cr_digits='0123456789'
14880as_cr_alnum=$as_cr_Letters$as_cr_digits
14881
5213506e
RW
14882ECHO_C= ECHO_N= ECHO_T=
14883case `echo -n x` in #(((((
14884-n*)
14885 case `echo 'xy\c'` in
14886 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14887 xy) ECHO_C='\c';;
14888 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14889 ECHO_T=' ';;
14890 esac;;
14891*)
14892 ECHO_N='-n';;
1c710c3c
DJ
14893esac
14894
5213506e
RW
14895rm -f conf$$ conf$$.exe conf$$.file
14896if test -d conf$$.dir; then
14897 rm -f conf$$.dir/conf$$.file
1c710c3c 14898else
5213506e
RW
14899 rm -f conf$$.dir
14900 mkdir conf$$.dir 2>/dev/null
1c710c3c 14901fi
5213506e
RW
14902if (echo >conf$$.file) 2>/dev/null; then
14903 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14904 as_ln_s='ln -s'
5213506e
RW
14905 # ... but there are two gotchas:
14906 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14907 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14908 # In both cases, we have to default to `cp -p'.
14909 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14910 as_ln_s='cp -p'
14911 elif ln conf$$.file conf$$ 2>/dev/null; then
14912 as_ln_s=ln
14913 else
14914 as_ln_s='cp -p'
2aeb72e9 14915 fi
1c710c3c
DJ
14916else
14917 as_ln_s='cp -p'
14918fi
5213506e
RW
14919rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14920rmdir conf$$.dir 2>/dev/null
14921
14922
14923# as_fn_mkdir_p
14924# -------------
14925# Create "$as_dir" as a directory, including parents if necessary.
14926as_fn_mkdir_p ()
14927{
14928
14929 case $as_dir in #(
14930 -*) as_dir=./$as_dir;;
14931 esac
14932 test -d "$as_dir" || eval $as_mkdir_p || {
14933 as_dirs=
14934 while :; do
14935 case $as_dir in #(
14936 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14937 *) as_qdir=$as_dir;;
14938 esac
14939 as_dirs="'$as_qdir' $as_dirs"
14940 as_dir=`$as_dirname -- "$as_dir" ||
14941$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14942 X"$as_dir" : 'X\(//\)[^/]' \| \
14943 X"$as_dir" : 'X\(//\)$' \| \
14944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14945$as_echo X"$as_dir" |
14946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14947 s//\1/
14948 q
14949 }
14950 /^X\(\/\/\)[^/].*/{
14951 s//\1/
14952 q
14953 }
14954 /^X\(\/\/\)$/{
14955 s//\1/
14956 q
14957 }
14958 /^X\(\/\).*/{
14959 s//\1/
14960 q
14961 }
14962 s/.*/./; q'`
14963 test -d "$as_dir" && break
14964 done
14965 test -z "$as_dirs" || eval "mkdir $as_dirs"
14966 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14967
1c710c3c 14968
5213506e 14969} # as_fn_mkdir_p
1c710c3c 14970if mkdir -p . 2>/dev/null; then
5213506e 14971 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14972else
14973 test -d ./-p && rmdir ./-p
14974 as_mkdir_p=false
14975fi
14976
5213506e
RW
14977if test -x / >/dev/null 2>&1; then
14978 as_test_x='test -x'
14979else
14980 if ls -dL / >/dev/null 2>&1; then
14981 as_ls_L_option=L
14982 else
14983 as_ls_L_option=
14984 fi
14985 as_test_x='
14986 eval sh -c '\''
14987 if test -d "$1"; then
14988 test -d "$1/.";
14989 else
14990 case $1 in #(
14991 -*)set "./$1";;
14992 esac;
14993 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14994 ???[sx]*):;;*)false;;esac;fi
14995 '\'' sh
14996 '
14997fi
14998as_executable_p=$as_test_x
1c710c3c
DJ
14999
15000# Sed expression to map a string onto a valid CPP name.
15001as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15002
15003# Sed expression to map a string onto a valid variable name.
15004as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15005
15006
1c710c3c 15007exec 6>&1
5213506e
RW
15008## ----------------------------------- ##
15009## Main body of $CONFIG_STATUS script. ##
15010## ----------------------------------- ##
15011_ASEOF
15012test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15013
15014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15015# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15016# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15017# values after options handling.
15018ac_log="
1c710c3c 15019This file was extended by $as_me, which was
5213506e 15020generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15021
15022 CONFIG_FILES = $CONFIG_FILES
15023 CONFIG_HEADERS = $CONFIG_HEADERS
15024 CONFIG_LINKS = $CONFIG_LINKS
15025 CONFIG_COMMANDS = $CONFIG_COMMANDS
15026 $ $0 $@
15027
5213506e
RW
15028on `(hostname || uname -n) 2>/dev/null | sed 1q`
15029"
15030
1c710c3c
DJ
15031_ACEOF
15032
5213506e
RW
15033case $ac_config_files in *"
15034"*) set x $ac_config_files; shift; ac_config_files=$*;;
15035esac
1c710c3c 15036
2aeb72e9 15037
2aeb72e9 15038
5213506e
RW
15039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15040# Files that config.status was made for.
15041config_files="$ac_config_files"
1c710c3c 15042
5213506e 15043_ACEOF
2aeb72e9 15044
5213506e 15045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15046ac_cs_usage="\
5213506e
RW
15047\`$as_me' instantiates files and other configuration actions
15048from templates according to the current configuration. Unless the files
15049and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15050
5213506e 15051Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15052
15053 -h, --help print this help, then exit
5213506e
RW
15054 -V, --version print version number and configuration settings, then exit
15055 -q, --quiet, --silent
15056 do not print progress messages
1c710c3c
DJ
15057 -d, --debug don't remove temporary files
15058 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15059 --file=FILE[:TEMPLATE]
15060 instantiate the configuration file FILE
1c710c3c
DJ
15061
15062Configuration files:
15063$config_files
15064
5213506e 15065Report bugs to the package provider."
2aeb72e9 15066
5213506e
RW
15067_ACEOF
15068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15069ac_cs_version="\\
15070config.status
5213506e
RW
15071configured by $0, generated by GNU Autoconf 2.64,
15072 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15073
5213506e 15074Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15075This config.status script is free software; the Free Software Foundation
15076gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15077
15078ac_pwd='$ac_pwd'
15079srcdir='$srcdir'
15080INSTALL='$INSTALL'
87264276 15081AWK='$AWK'
5213506e 15082test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15083_ACEOF
15084
5213506e
RW
15085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15086# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15087ac_need_defaults=:
15088while test $# != 0
a4b9e93e 15089do
1c710c3c
DJ
15090 case $1 in
15091 --*=*)
5213506e
RW
15092 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15093 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15094 ac_shift=:
15095 ;;
5213506e 15096 *)
1c710c3c
DJ
15097 ac_option=$1
15098 ac_optarg=$2
15099 ac_shift=shift
15100 ;;
1c710c3c
DJ
15101 esac
15102
15103 case $ac_option in
15104 # Handling of the options.
671aa708 15105 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15106 ac_cs_recheck=: ;;
5213506e
RW
15107 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15108 $as_echo "$ac_cs_version"; exit ;;
15109 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15110 debug=: ;;
15111 --file | --fil | --fi | --f )
15112 $ac_shift
5213506e
RW
15113 case $ac_optarg in
15114 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15115 esac
15116 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15117 ac_need_defaults=false;;
5213506e
RW
15118 --he | --h | --help | --hel | -h )
15119 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15121 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15122 ac_cs_silent=: ;;
15123
15124 # This is an error.
5213506e
RW
15125 -*) as_fn_error "unrecognized option: \`$1'
15126Try \`$0 --help' for more information." ;;
1c710c3c 15127
5213506e
RW
15128 *) as_fn_append ac_config_targets " $1"
15129 ac_need_defaults=false ;;
1c710c3c 15130
0b0dc272 15131 esac
1c710c3c 15132 shift
0b0dc272
AM
15133done
15134
1c710c3c 15135ac_configure_extra_args=
0b0dc272 15136
1c710c3c
DJ
15137if $ac_cs_silent; then
15138 exec 6>/dev/null
15139 ac_configure_extra_args="$ac_configure_extra_args --silent"
15140fi
0b0dc272 15141
1c710c3c 15142_ACEOF
5213506e 15143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15144if \$ac_cs_recheck; then
5213506e
RW
15145 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15146 shift
15147 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15148 CONFIG_SHELL='$SHELL'
15149 export CONFIG_SHELL
15150 exec "\$@"
1c710c3c
DJ
15151fi
15152
15153_ACEOF
5213506e
RW
15154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15155exec 5>>config.log
15156{
15157 echo
15158 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15159## Running $as_me. ##
15160_ASBOX
15161 $as_echo "$ac_log"
15162} >&5
1c710c3c 15163
5213506e
RW
15164_ACEOF
15165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15166#
15167# INIT-COMMANDS
15168#
15169extrasub_build="$extrasub_build"
15170 extrasub_host="$extrasub_host"
15171 extrasub_target="$extrasub_target"
15172
5213506e 15173_ACEOF
1c710c3c 15174
5213506e 15175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15176
5213506e 15177# Handling of arguments.
1c710c3c
DJ
15178for ac_config_target in $ac_config_targets
15179do
5213506e
RW
15180 case $ac_config_target in
15181 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15182
15183 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15184 esac
15185done
15186
5213506e 15187
1c710c3c
DJ
15188# If the user did not use the arguments to specify the items to instantiate,
15189# then the envvar interface is used. Set only those that are not.
15190# We use the long form for the default assignment because of an extremely
15191# bizarre bug on SunOS 4.1.3.
15192if $ac_need_defaults; then
15193 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15194fi
15195
15196# Have a temporary directory for convenience. Make it in the build tree
5213506e 15197# simply because there is no reason against having it here, and in addition,
1c710c3c 15198# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15199# Hook for its removal unless debugging.
15200# Note that there is a small window in which the directory will not be cleaned:
15201# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15202$debug ||
15203{
5213506e
RW
15204 tmp=
15205 trap 'exit_status=$?
15206 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15207' 0
15208 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15209}
1c710c3c
DJ
15210# Create a (secure) tmp directory for tmp files.
15211
15212{
5213506e 15213 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15214 test -n "$tmp" && test -d "$tmp"
15215} ||
15216{
5213506e
RW
15217 tmp=./conf$$-$RANDOM
15218 (umask 077 && mkdir "$tmp")
15219} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15220
15221# Set up the scripts for CONFIG_FILES section.
15222# No need to generate them if there are no CONFIG_FILES.
15223# This happens for instance with `./config.status config.h'.
15224if test -n "$CONFIG_FILES"; then
15225
15226if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15227 ac_cs_awk_getline=:
15228 ac_cs_awk_pipe_init=
15229 ac_cs_awk_read_file='
15230 while ((getline aline < (F[key])) > 0)
15231 print(aline)
15232 close(F[key])'
15233 ac_cs_awk_pipe_fini=
15234else
15235 ac_cs_awk_getline=false
15236 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15237 ac_cs_awk_read_file='
15238 print "|#_!!_#|"
15239 print "cat " F[key] " &&"
15240 '$ac_cs_awk_pipe_init
15241 # The final `:' finishes the AND list.
15242 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15243fi
15244ac_cr=`echo X | tr X '\015'`
15245# On cygwin, bash can eat \r inside `` if the user requested igncr.
15246# But we know of no other shell where ac_cr would be empty at this
15247# point, so we can use a bashism as a fallback.
15248if test "x$ac_cr" = x; then
15249 eval ac_cr=\$\'\\r\'
15250fi
15251ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15252if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15253 ac_cs_awk_cr='\r'
15254else
15255 ac_cs_awk_cr=$ac_cr
15256fi
15257
15258echo 'BEGIN {' >"$tmp/subs1.awk" &&
15259_ACEOF
15260
15261# Create commands to substitute file output variables.
1c710c3c 15262{
5213506e
RW
15263 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15264 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15265 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15266 echo "_ACAWK" &&
15267 echo "_ACEOF"
15268} >conf$$files.sh &&
15269. ./conf$$files.sh ||
15270 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15271rm -f conf$$files.sh
1c710c3c 15272
5213506e
RW
15273{
15274 echo "cat >conf$$subs.awk <<_ACEOF" &&
15275 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15276 echo "_ACEOF"
15277} >conf$$subs.sh ||
15278 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15279ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15280ac_delim='%!_!# '
15281for ac_last_try in false false false false false :; do
15282 . ./conf$$subs.sh ||
15283 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15284
15285 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15286 if test $ac_delim_n = $ac_delim_num; then
15287 break
15288 elif $ac_last_try; then
15289 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15290 else
15291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15292 fi
15293done
15294rm -f conf$$subs.sh
15295
15296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15297cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15298_ACEOF
5213506e
RW
15299sed -n '
15300h
15301s/^/S["/; s/!.*/"]=/
15302p
15303g
15304s/^[^!]*!//
15305:repl
15306t repl
15307s/'"$ac_delim"'$//
15308t delim
15309:nl
15310h
15311s/\(.\{148\}\).*/\1/
15312t more1
15313s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15314p
15315n
15316b repl
15317:more1
15318s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15319p
15320g
15321s/.\{148\}//
15322t nl
15323:delim
15324h
15325s/\(.\{148\}\).*/\1/
15326t more2
15327s/["\\]/\\&/g; s/^/"/; s/$/"/
15328p
15329b
15330:more2
15331s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15332p
15333g
15334s/.\{148\}//
15335t delim
15336' <conf$$subs.awk | sed '
15337/^[^""]/{
15338 N
15339 s/\n//
15340}
15341' >>$CONFIG_STATUS || ac_write_fail=1
15342rm -f conf$$subs.awk
15343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15344_ACAWK
15345cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15346 for (key in S) S_is_set[key] = 1
15347 FS = "\a"
15348 \$ac_cs_awk_pipe_init
15349}
15350{
15351 line = $ 0
15352 nfields = split(line, field, "@")
15353 substed = 0
15354 len = length(field[1])
15355 for (i = 2; i < nfields; i++) {
15356 key = field[i]
15357 keylen = length(key)
15358 if (S_is_set[key]) {
15359 value = S[key]
15360 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15361 len += length(value) + length(field[++i])
15362 substed = 1
15363 } else
15364 len += 1 + keylen
15365 }
15366 if (nfields == 3 && !substed) {
15367 key = field[2]
15368 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15369 \$ac_cs_awk_read_file
15370 next
15371 }
15372 }
15373 print line
15374}
15375\$ac_cs_awk_pipe_fini
15376_ACAWK
15377_ACEOF
15378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15379if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15380 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15381else
15382 cat
15383fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15384 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15385_ACEOF
15386
15387# VPATH may cause trouble with some makes, so we remove $(srcdir),
15388# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15389# trailing colons and then remove the whole line if VPATH becomes empty
15390# (actually we leave an empty line to preserve line numbers).
15391if test "x$srcdir" = x.; then
15392 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15393s/:*\$(srcdir):*/:/
15394s/:*\${srcdir}:*/:/
15395s/:*@srcdir@:*/:/
15396s/^\([^=]*=[ ]*\):*/\1/
15397s/:*$//
15398s/^[^=]*=[ ]*$//
15399}'
15400fi
2aeb72e9 15401
5213506e
RW
15402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15403fi # test -n "$CONFIG_FILES"
2aeb72e9 15404
1c710c3c 15405
5213506e
RW
15406eval set X " :F $CONFIG_FILES "
15407shift
15408for ac_tag
15409do
15410 case $ac_tag in
15411 :[FHLC]) ac_mode=$ac_tag; continue;;
15412 esac
15413 case $ac_mode$ac_tag in
15414 :[FHL]*:*);;
15415 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15416 :[FH]-) ac_tag=-:-;;
15417 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15418 esac
15419 ac_save_IFS=$IFS
15420 IFS=:
15421 set x $ac_tag
15422 IFS=$ac_save_IFS
15423 shift
15424 ac_file=$1
15425 shift
79c06341 15426
5213506e
RW
15427 case $ac_mode in
15428 :L) ac_source=$1;;
15429 :[FH])
15430 ac_file_inputs=
15431 for ac_f
15432 do
15433 case $ac_f in
15434 -) ac_f="$tmp/stdin";;
15435 *) # Look for the file first in the build tree, then in the source tree
15436 # (if the path is not absolute). The absolute path cannot be DOS-style,
15437 # because $ac_f cannot contain `:'.
15438 test -f "$ac_f" ||
15439 case $ac_f in
15440 [\\/$]*) false;;
15441 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15442 esac ||
15443 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15444 esac
15445 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15446 as_fn_append ac_file_inputs " '$ac_f'"
15447 done
1c710c3c 15448
5213506e
RW
15449 # Let's still pretend it is `configure' which instantiates (i.e., don't
15450 # use $as_me), people would be surprised to read:
15451 # /* config.h. Generated by config.status. */
15452 configure_input='Generated from '`
15453 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15454 `' by configure.'
15455 if test x"$ac_file" != x-; then
15456 configure_input="$ac_file. $configure_input"
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15458$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15459 fi
5213506e
RW
15460 # Neutralize special characters interpreted by sed in replacement strings.
15461 case $configure_input in #(
15462 *\&* | *\|* | *\\* )
15463 ac_sed_conf_input=`$as_echo "$configure_input" |
15464 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15465 *) ac_sed_conf_input=$configure_input;;
15466 esac
11a67599 15467
5213506e
RW
15468 case $ac_tag in
15469 *:-:* | *:-) cat >"$tmp/stdin" \
15470 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15471 esac
15472 ;;
11a67599
ZW
15473 esac
15474
5213506e 15475 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15476$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15477 X"$ac_file" : 'X\(//\)[^/]' \| \
15478 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15480$as_echo X"$ac_file" |
15481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15482 s//\1/
15483 q
15484 }
15485 /^X\(\/\/\)[^/].*/{
15486 s//\1/
15487 q
15488 }
15489 /^X\(\/\/\)$/{
15490 s//\1/
15491 q
15492 }
15493 /^X\(\/\).*/{
15494 s//\1/
15495 q
15496 }
15497 s/.*/./; q'`
15498 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15499 ac_builddir=.
0b0dc272 15500
5213506e
RW
15501case "$ac_dir" in
15502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15503*)
15504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15505 # A ".." for each directory in $ac_dir_suffix.
15506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15507 case $ac_top_builddir_sub in
15508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15510 esac ;;
15511esac
15512ac_abs_top_builddir=$ac_pwd
15513ac_abs_builddir=$ac_pwd$ac_dir_suffix
15514# for backward compatibility:
15515ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15516
15517case $srcdir in
5213506e 15518 .) # We are building in place.
1c710c3c 15519 ac_srcdir=.
5213506e
RW
15520 ac_top_srcdir=$ac_top_builddir_sub
15521 ac_abs_top_srcdir=$ac_pwd ;;
15522 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15523 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15524 ac_top_srcdir=$srcdir
15525 ac_abs_top_srcdir=$srcdir ;;
15526 *) # Relative name.
15527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15528 ac_top_srcdir=$ac_top_build_prefix$srcdir
15529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15530esac
5213506e 15531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15532
0b0dc272 15533
5213506e
RW
15534 case $ac_mode in
15535 :F)
15536 #
15537 # CONFIG_FILE
15538 #
1c710c3c
DJ
15539
15540 case $INSTALL in
15541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15542 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15543 esac
5213506e 15544_ACEOF
11a67599 15545
5213506e
RW
15546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15547# If the template does not know about datarootdir, expand it.
15548# FIXME: This hack should be removed a few years after 2.60.
15549ac_datarootdir_hack=; ac_datarootdir_seen=
15550ac_sed_dataroot='
15551/datarootdir/ {
15552 p
15553 q
15554}
15555/@datadir@/p
15556/@docdir@/p
15557/@infodir@/p
15558/@localedir@/p
15559/@mandir@/p'
15560case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15561*datarootdir*) ac_datarootdir_seen=yes;;
15562*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15564$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15565_ACEOF
5213506e
RW
15566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15567 ac_datarootdir_hack='
15568 s&@datadir@&$datadir&g
15569 s&@docdir@&$docdir&g
15570 s&@infodir@&$infodir&g
15571 s&@localedir@&$localedir&g
15572 s&@mandir@&$mandir&g
15573 s&\\\${datarootdir}&$datarootdir&g' ;;
15574esac
15575_ACEOF
15576
15577# Neutralize VPATH when `$srcdir' = `.'.
15578# Shell code in configure.ac might set extrasub.
15579# FIXME: do we really want to maintain this feature?
15580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15581ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15582$extrasub
15583_ACEOF
5213506e 15584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15585:t
15586/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15587s|@configure_input@|$ac_sed_conf_input|;t t
15588s&@top_builddir@&$ac_top_builddir_sub&;t t
15589s&@top_build_prefix@&$ac_top_build_prefix&;t t
15590s&@srcdir@&$ac_srcdir&;t t
15591s&@abs_srcdir@&$ac_abs_srcdir&;t t
15592s&@top_srcdir@&$ac_top_srcdir&;t t
15593s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15594s&@builddir@&$ac_builddir&;t t
15595s&@abs_builddir@&$ac_abs_builddir&;t t
15596s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15597s&@INSTALL@&$ac_INSTALL&;t t
15598$ac_datarootdir_hack
15599"
15600eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15601if $ac_cs_awk_getline; then
15602 $AWK -f "$tmp/subs.awk"
15603else
15604 $AWK -f "$tmp/subs.awk" | $SHELL
15605fi >$tmp/out \
15606 || as_fn_error "could not create $ac_file" "$LINENO" 5
15607
15608test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15609 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15612which seems to be undefined. Please make sure it is defined." >&5
15613$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15614which seems to be undefined. Please make sure it is defined." >&2;}
15615
15616 rm -f "$tmp/stdin"
15617 case $ac_file in
15618 -) cat "$tmp/out" && rm -f "$tmp/out";;
15619 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15620 esac \
15621 || as_fn_error "could not create $ac_file" "$LINENO" 5
15622 ;;
11a67599 15623
11a67599 15624
79c06341 15625
5213506e
RW
15626 esac
15627
3e54529c
RW
15628
15629 case $ac_file$ac_mode in
15630 "Makefile":F) sed "$extrasub_build" Makefile |
15631 sed "$extrasub_host" |
15632 sed "$extrasub_target" > mf$$
15633 mv -f mf$$ Makefile ;;
15634
15635 esac
5213506e
RW
15636done # for ac_tag
15637
15638
15639as_fn_exit 0
1c710c3c 15640_ACEOF
1c710c3c
DJ
15641ac_clean_files=$ac_clean_files_save
15642
5213506e
RW
15643test $ac_write_fail = 0 ||
15644 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15645
1c710c3c
DJ
15646
15647# configure is writing to config.log, and then calls config.status.
15648# config.status does its own redirection, appending to config.log.
15649# Unfortunately, on DOS this fails, as config.log is still kept open
15650# by configure, so config.status won't be able to write to it; its
15651# output is simply discarded. So we exec the FD to /dev/null,
15652# effectively closing config.log, so it can be properly (re)opened and
15653# appended to by config.status. When coming back to configure, we
15654# need to make the FD available again.
15655if test "$no_create" != yes; then
15656 ac_cs_success=:
15657 ac_config_status_args=
15658 test "$silent" = yes &&
15659 ac_config_status_args="$ac_config_status_args --quiet"
15660 exec 5>/dev/null
15661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15662 exec 5>>config.log
15663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15664 # would make configure fail if this is the last instruction.
5213506e
RW
15665 $ac_cs_success || as_fn_exit $?
15666fi
15667if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15669$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15670fi
79c06341 15671