]> gcc.gnu.org Git - gcc.git/blame - configure
re PR bootstrap/44335 (gcc-4.6-20100529 java bootstrap failure on arm-linux-gnueabi)
[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
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
581GFORTRAN_FOR_TARGET
582GCJ_FOR_TARGET
583GCC_FOR_TARGET
584CXX_FOR_TARGET
585CC_FOR_TARGET
586OBJDUMP
587OBJCOPY
588WINDMC
589WINDRES
590STRIP
591RANLIB
592NM
593LIPO
594LD
595DLLTOOL
596AS
597AR
598RUNTEST
599EXPECT
600MAKEINFO
601FLEX
602LEX
603M4
604BISON
605YACC
606config_shell
607WINDRES_FOR_BUILD
608WINDMC_FOR_BUILD
609RANLIB_FOR_BUILD
610NM_FOR_BUILD
611LD_FOR_BUILD
612LDFLAGS_FOR_BUILD
613GFORTRAN_FOR_BUILD
614GCJ_FOR_BUILD
615DLLTOOL_FOR_BUILD
616CXX_FOR_BUILD
617CXXFLAGS_FOR_BUILD
618CFLAGS_FOR_BUILD
619CC_FOR_BUILD
620AS_FOR_BUILD
621AR_FOR_BUILD
aae29963 622target_configdirs
5213506e 623configdirs
5213506e 624build_configdirs
5213506e
RW
625INSTALL_GDB_TK
626GDB_TK
627CONFIGURE_GDB_TK
628build_tooldir
629tooldir
630GCC_SHLIB_SUBDIR
631RPATH_ENVVAR
ffedf511
RW
632target_configargs
633host_configargs
634build_configargs
e12c4094 635BUILD_CONFIG
5213506e
RW
636CXXFLAGS_FOR_TARGET
637CFLAGS_FOR_TARGET
638DEBUG_PREFIX_CFLAGS_FOR_TARGET
639SYSROOT_CFLAGS_FOR_TARGET
640stage1_languages
d7f09764 641extra_host_libiberty_configure_flags
5213506e
RW
642clooginc
643clooglibs
644pplinc
645ppllibs
5213506e 646poststage1_ldflags
ed2eaa9f 647poststage1_libs
5213506e
RW
648stage1_libs
649stage1_ldflags
650extra_mpc_mpfr_configure_flags
651extra_mpc_gmp_configure_flags
652extra_mpfr_configure_flags
653gmpinc
654gmplibs
655do_compare
656GNATMAKE
657GNATBIND
658ac_ct_CXX
659CXXFLAGS
660CXX
661OBJEXT
662EXEEXT
663ac_ct_CC
664CPPFLAGS
665LDFLAGS
666CFLAGS
667CC
668target_subdir
669host_subdir
670build_subdir
671build_libsubdir
87264276
PB
672AWK
673SED
5213506e
RW
674LN_S
675LN
676INSTALL_DATA
677INSTALL_SCRIPT
678INSTALL_PROGRAM
679target_os
680target_vendor
681target_cpu
682target
683host_os
684host_vendor
685host_cpu
686host
687target_noncanonical
688host_noncanonical
689build_noncanonical
690build_os
691build_vendor
692build_cpu
693build
694TOPLEVEL_CONFIGURE_ARGUMENTS
695target_alias
696host_alias
697build_alias
698LIBS
699ECHO_T
700ECHO_N
701ECHO_C
702DEFS
703mandir
704localedir
705libdir
706psdir
707pdfdir
708dvidir
709htmldir
710infodir
711docdir
712oldincludedir
713includedir
714localstatedir
715sharedstatedir
716sysconfdir
717datadir
718datarootdir
719libexecdir
720sbindir
721bindir
722program_transform_name
723prefix
724exec_prefix
725PACKAGE_URL
726PACKAGE_BUGREPORT
727PACKAGE_STRING
728PACKAGE_VERSION
729PACKAGE_TARNAME
730PACKAGE_NAME
731PATH_SEPARATOR
732SHELL'
733ac_subst_files='serialization_dependencies
734host_makefile_frag
735target_makefile_frag
736alphaieee_frag
737ospace_frag'
738ac_user_opts='
739enable_option_checking
740with_build_libsubdir
741enable_gold
742enable_libada
743enable_libssp
744enable_build_with_cxx
745with_mpc
746with_mpc_include
747with_mpc_lib
748with_mpfr_dir
749with_mpfr
750with_mpfr_include
751with_mpfr_lib
752with_gmp_dir
753with_gmp
754with_gmp_include
755with_gmp_lib
756with_host_libstdcxx
757with_stage1_ldflags
758with_stage1_libs
5213506e 759with_boot_libs
ed2eaa9f 760with_boot_ldflags
5213506e
RW
761with_ppl
762with_ppl_include
763with_ppl_lib
764enable_ppl_version_check
765with_cloog
766with_cloog_include
767with_cloog_lib
768enable_cloog_version_check
d7f09764 769enable_lto
5213506e
RW
770enable_stage1_languages
771enable_objc_gc
772with_build_sysroot
773with_debug_prefix_map
774enable_bootstrap
5646b7b9 775with_build_config
5213506e
RW
776enable_serial_configure
777with_build_time_tools
778enable_maintainer_mode
779enable_stage1_checking
780enable_werror
5213506e
RW
781'
782 ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
788LIBS
789CPPFLAGS
790CXX
791CXXFLAGS
792CCC
ffedf511
RW
793build_configargs
794host_configargs
795target_configargs
5213506e
RW
796AR
797AS
798DLLTOOL
799LD
800LIPO
801NM
802RANLIB
803STRIP
804WINDRES
805WINDMC
806OBJCOPY
807OBJDUMP
808CC_FOR_TARGET
809CXX_FOR_TARGET
810GCC_FOR_TARGET
811GCJ_FOR_TARGET
812GFORTRAN_FOR_TARGET
813AR_FOR_TARGET
814AS_FOR_TARGET
815DLLTOOL_FOR_TARGET
816LD_FOR_TARGET
817LIPO_FOR_TARGET
818NM_FOR_TARGET
819OBJDUMP_FOR_TARGET
820RANLIB_FOR_TARGET
821STRIP_FOR_TARGET
822WINDRES_FOR_TARGET
823WINDMC_FOR_TARGET'
824
671aa708
NN
825
826# Initialize some variables set by options.
1c710c3c
DJ
827ac_init_help=
828ac_init_version=false
5213506e
RW
829ac_unrecognized_opts=
830ac_unrecognized_sep=
671aa708
NN
831# The variables have the same names as the options, with
832# dashes changed to underlines.
1c710c3c 833cache_file=/dev/null
671aa708 834exec_prefix=NONE
671aa708 835no_create=
671aa708
NN
836no_recursion=
837prefix=NONE
838program_prefix=NONE
839program_suffix=NONE
840program_transform_name=s,x,x,
841silent=
842site=
843srcdir=
671aa708
NN
844verbose=
845x_includes=NONE
846x_libraries=NONE
1c710c3c
DJ
847
848# Installation directory options.
849# These are left unexpanded so users can "make install exec_prefix=/foo"
850# and all the variables that are supposed to be based on exec_prefix
851# by default will actually change.
852# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 853# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
854bindir='${exec_prefix}/bin'
855sbindir='${exec_prefix}/sbin'
856libexecdir='${exec_prefix}/libexec'
5213506e
RW
857datarootdir='${prefix}/share'
858datadir='${datarootdir}'
671aa708
NN
859sysconfdir='${prefix}/etc'
860sharedstatedir='${prefix}/com'
861localstatedir='${prefix}/var'
671aa708
NN
862includedir='${prefix}/include'
863oldincludedir='/usr/include'
5213506e
RW
864docdir='${datarootdir}/doc/${PACKAGE}'
865infodir='${datarootdir}/info'
866htmldir='${docdir}'
867dvidir='${docdir}'
868pdfdir='${docdir}'
869psdir='${docdir}'
870libdir='${exec_prefix}/lib'
871localedir='${datarootdir}/locale'
872mandir='${datarootdir}/man'
79c06341 873
671aa708 874ac_prev=
5213506e 875ac_dashdash=
671aa708
NN
876for ac_option
877do
671aa708
NN
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
5213506e 880 eval $ac_prev=\$ac_option
671aa708
NN
881 ac_prev=
882 continue
883 fi
79c06341 884
5213506e
RW
885 case $ac_option in
886 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *) ac_optarg=yes ;;
888 esac
671aa708
NN
889
890 # Accept the important Cygnus configure options, so we can diagnose typos.
891
5213506e
RW
892 case $ac_dashdash$ac_option in
893 --)
894 ac_dashdash=yes ;;
671aa708
NN
895
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 ac_prev=bindir ;;
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 899 bindir=$ac_optarg ;;
671aa708
NN
900
901 -build | --build | --buil | --bui | --bu)
1c710c3c 902 ac_prev=build_alias ;;
671aa708 903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 904 build_alias=$ac_optarg ;;
671aa708
NN
905
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
911 cache_file=$ac_optarg ;;
912
913 --config-cache | -C)
914 cache_file=config.cache ;;
671aa708 915
5213506e 916 -datadir | --datadir | --datadi | --datad)
671aa708 917 ac_prev=datadir ;;
5213506e 918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 919 datadir=$ac_optarg ;;
671aa708 920
5213506e
RW
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
927
671aa708 928 -disable-* | --disable-*)
5213506e 929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 930 # Reject names that are not valid shell variable names.
5213506e
RW
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937"enable_$ac_useropt"
938"*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=no ;;
943
944 -docdir | --docdir | --docdi | --doc | --do)
945 ac_prev=docdir ;;
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 docdir=$ac_optarg ;;
948
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 ac_prev=dvidir ;;
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 dvidir=$ac_optarg ;;
671aa708
NN
953
954 -enable-* | --enable-*)
5213506e 955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 956 # Reject names that are not valid shell variable names.
5213506e
RW
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963"enable_$ac_useropt"
964"*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
2aeb72e9 967 esac
5213506e 968 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
969
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
1c710c3c 977 exec_prefix=$ac_optarg ;;
671aa708
NN
978
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
982
1c710c3c
DJ
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
671aa708
NN
989
990 -host | --host | --hos | --ho)
1c710c3c 991 ac_prev=host_alias ;;
671aa708 992 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 993 host_alias=$ac_optarg ;;
671aa708 994
5213506e
RW
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1000
671aa708
NN
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1006 includedir=$ac_optarg ;;
671aa708
NN
1007
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1011 infodir=$ac_optarg ;;
671aa708
NN
1012
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1016 libdir=$ac_optarg ;;
671aa708
NN
1017
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1023 libexecdir=$ac_optarg ;;
671aa708 1024
5213506e
RW
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1029
671aa708 1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1031 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1035 localstatedir=$ac_optarg ;;
671aa708
NN
1036
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1040 mandir=$ac_optarg ;;
671aa708
NN
1041
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1045
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1047 | --no-cr | --no-c | -n)
671aa708
NN
1048 no_create=yes ;;
1049
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1053
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1061 oldincludedir=$ac_optarg ;;
671aa708
NN
1062
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1066 prefix=$ac_optarg ;;
671aa708
NN
1067
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1073 program_prefix=$ac_optarg ;;
671aa708
NN
1074
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1080 program_suffix=$ac_optarg ;;
671aa708
NN
1081
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1097 program_transform_name=$ac_optarg ;;
671aa708 1098
5213506e
RW
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1103
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1108
671aa708
NN
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1112
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114 ac_prev=sbindir ;;
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116 | --sbi=* | --sb=*)
1c710c3c 1117 sbindir=$ac_optarg ;;
671aa708
NN
1118
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1122 | --sha | --sh)
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127 | --sha=* | --sh=*)
1c710c3c 1128 sharedstatedir=$ac_optarg ;;
671aa708
NN
1129
1130 -site | --site | --sit)
1131 ac_prev=site ;;
1132 -site=* | --site=* | --sit=*)
1c710c3c 1133 site=$ac_optarg ;;
671aa708
NN
1134
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136 ac_prev=srcdir ;;
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1138 srcdir=$ac_optarg ;;
671aa708
NN
1139
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1145 sysconfdir=$ac_optarg ;;
671aa708
NN
1146
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1148 ac_prev=target_alias ;;
671aa708 1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1150 target_alias=$ac_optarg ;;
671aa708
NN
1151
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 verbose=yes ;;
1154
1c710c3c
DJ
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
671aa708
NN
1157
1158 -with-* | --with-*)
5213506e 1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1160 # Reject names that are not valid shell variable names.
5213506e
RW
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167"with_$ac_useropt"
1168"*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
2aeb72e9 1171 esac
5213506e 1172 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1173
1174 -without-* | --without-*)
5213506e 1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1176 # Reject names that are not valid shell variable names.
5213506e
RW
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183"with_$ac_useropt"
1184"*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=no ;;
671aa708
NN
1189
1190 --x)
1191 # Obsolete; use --with-x.
1192 with_x=yes ;;
1193
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1199 x_includes=$ac_optarg ;;
671aa708
NN
1200
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1206 x_libraries=$ac_optarg ;;
671aa708 1207
5213506e
RW
1208 -*) as_fn_error "unrecognized option: \`$ac_option'
1209Try \`$0 --help' for more information."
671aa708
NN
1210 ;;
1211
1c710c3c
DJ
1212 *=*)
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
5213506e
RW
1215 case $ac_envvar in #(
1216 '' | [0-9]* | *[!_$as_cr_alnum]* )
1217 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1218 esac
1219 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1220 export $ac_envvar ;;
1221
671aa708 1222 *)
1c710c3c 1223 # FIXME: should be removed in autoconf 3.0.
5213506e 1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1227 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1228 ;;
1229
1230 esac
1231done
1232
1233if test -n "$ac_prev"; then
1c710c3c 1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1235 as_fn_error "missing argument to $ac_option"
af71363e 1236fi
af71363e 1237
5213506e
RW
1238if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1240 no) ;;
1241 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1243 esac
5213506e 1244fi
2aeb72e9 1245
5213506e
RW
1246# Check all directory arguments for consistency.
1247for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
2aeb72e9 1251do
5213506e
RW
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1254 case $ac_val in
1255 */ )
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1258 esac
1259 # Be sure to have absolute directory names.
2aeb72e9 1260 case $ac_val in
5213506e
RW
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1263 esac
5213506e 1264 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1265done
1266
1c710c3c
DJ
1267# There might be people who depend on the old broken behavior: `$host'
1268# used to hold the argument of --host etc.
1269# FIXME: To remove some day.
1270build=$build_alias
1271host=$host_alias
1272target=$target_alias
0b0dc272 1273
1c710c3c
DJ
1274# FIXME: To remove some day.
1275if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
5213506e 1278 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1279 If a cross compiler is detected then cross compile mode will be used." >&2
1280 elif test "x$build_alias" != "x$host_alias"; then
1281 cross_compiling=yes
1282 fi
1283fi
1284
1285ac_tool_prefix=
1286test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288test "$silent" = yes && exec 6>/dev/null
671aa708 1289
671aa708 1290
5213506e
RW
1291ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292ac_ls_di=`ls -di .` &&
1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 as_fn_error "working directory cannot be determined"
1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 as_fn_error "pwd does not report name of working directory"
1297
1298
671aa708
NN
1299# Find the source files, if location was not specified.
1300if test -z "$srcdir"; then
1301 ac_srcdir_defaulted=yes
5213506e
RW
1302 # Try the directory containing this script, then the parent directory.
1303 ac_confdir=`$as_dirname -- "$as_myself" ||
1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305 X"$as_myself" : 'X\(//\)[^/]' \| \
1306 X"$as_myself" : 'X\(//\)$' \| \
1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308$as_echo X"$as_myself" |
1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)[^/].*/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\).*/{
1322 s//\1/
1323 q
1324 }
1325 s/.*/./; q'`
671aa708 1326 srcdir=$ac_confdir
5213506e 1327 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1328 srcdir=..
1329 fi
1330else
1331 ac_srcdir_defaulted=no
1332fi
5213506e
RW
1333if test ! -r "$srcdir/$ac_unique_file"; then
1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1336fi
1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338ac_abs_confdir=`(
1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1340 pwd)`
1341# When building in place, set srcdir=.
1342if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 srcdir=.
1344fi
1345# Remove unnecessary trailing slashes from srcdir.
1346# Double slashes in file names in object file debugging info
1347# mess up M-x gdb in Emacs.
1348case $srcdir in
1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350esac
87841584
AM
1351case $srcdir in
1352 *" "*)
1353 as_fn_error "path to source, $srcdir, contains spaces"
1354 ;;
1355esac
ac9e6043
RW
1356ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1357
5213506e
RW
1358for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363done
1c710c3c
DJ
1364
1365#
1366# Report the --help message.
1367#
1368if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372\`configure' configures this package to adapt to many kinds of systems.
1373
1374Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379Defaults for the options are specified in brackets.
1380
1381Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1c710c3c
DJ
1392Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1394 [$ac_default_prefix]
1c710c3c 1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1396 [PREFIX]
1c710c3c
DJ
1397
1398By default, \`make install' will install all the files in
1399\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401for instance \`--prefix=\$HOME'.
1402
1403For better control, use the options below.
1404
1405Fine tuning of the installation directories:
5213506e
RW
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1425_ACEOF
1426
1427 cat <<\_ACEOF
1428
1429Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 --target=TARGET configure for building compilers for TARGET [HOST]
1438_ACEOF
1439fi
1440
1441if test -n "$ac_init_help"; then
1442
1443 cat <<\_ACEOF
1444
1445Optional Features:
5213506e 1446 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
38e3d868 1449 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
30b74385
RW
1450 --enable-libada build libada directory
1451 --enable-libssp build libssp directory
00020c16 1452 --enable-build-with-cxx build with C++ compiler instead of C compiler
d789184e
SP
1453 --disable-ppl-version-check disable check for PPL version
1454 --disable-cloog-version-check disable check for CLooG version
d7f09764 1455 --enable-lto enable link time optimization support
30b74385 1456 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 1457 stage1. Mostly useful for compiler development.
30b74385
RW
1458 --enable-objc-gc enable use of Boehm's garbage collector with the
1459 GNU Objective-C runtime
1460 --enable-bootstrap enable bootstrapping [yes if native build]
1461 --enable-serial-[{host,target,build}-]configure
1462 force sequential configuration of
1c710c3c 1463 sub-packages for the host, target or build
30b74385 1464 machine, or all sub-packages
1c710c3c
DJ
1465 --enable-maintainer-mode enable make rules and dependencies not useful
1466 (and sometimes confusing) to the casual installer
30b74385
RW
1467 --enable-stage1-checking[=all] choose additional checking for stage1
1468 of the compiler
1c710c3c
DJ
1469 --enable-werror enable -Werror in bootstrap stage2 and later
1470
1471Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-build-libsubdir=DIR Directory where to find libraries for build system
acd26225
KG
1475 --with-mpc=PATH specify prefix directory for installed MPC package.
1476 Equivalent to --with-mpc-include=PATH/include
1477 plus --with-mpc-lib=PATH/lib
1478 --with-mpc-include=PATH
1479 specify directory for installed MPC include files
1480 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1481 --with-mpfr-dir=PATH this option has been REMOVED
1482 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
1483 Equivalent to --with-mpfr-include=PATH/include
1484 plus --with-mpfr-lib=PATH/lib
1485 --with-mpfr-include=PATH
30b74385
RW
1486 specify directory for installed MPFR include files
1487 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1488 --with-gmp-dir=PATH this option has been REMOVED
1489 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
1490 Equivalent to --with-gmp-include=PATH/include
1491 plus --with-gmp-lib=PATH/lib
30b74385
RW
1492 --with-gmp-include=PATH specify directory for installed GMP include files
1493 --with-gmp-lib=PATH specify directory for the installed GMP library
f38095f3
JM
1494 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1495 when linking with PPL
00020c16
ILT
1496 --with-stage1-ldflags=FLAGS Linker flags for stage1
1497 -with-stage1-libs=LIBS Libraries for stage1
00020c16 1498 --with-boot-libs=LIBS Libraries for stage2 and later
ed2eaa9f 1499 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
f8bf9252
SP
1500 --with-ppl=PATH Specify prefix directory for the installed PPL package
1501 Equivalent to --with-ppl-include=PATH/include
1502 plus --with-ppl-lib=PATH/lib
1503 --with-ppl-include=PATH Specify directory for installed PPL include files
1504 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d789184e 1505 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
f8bf9252
SP
1506 Equivalent to --with-cloog-include=PATH/include
1507 plus --with-cloog-lib=PATH/lib
d789184e
SP
1508 --with-cloog-include=PATH Specify directory for installed CLooG include files
1509 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
30b74385 1510 --with-build-sysroot=SYSROOT
1c710c3c 1511 use sysroot as the system root during the build
c8aea42c
PB
1512 --with-debug-prefix-map='A=B C=D ...'
1513 map A to B, C to D ... in debug information
5646b7b9
AO
1514--with-build-config='NAME NAME2...'
1515 Use config/NAME.mk build configuration
30b74385 1516 --with-build-time-tools=PATH
1c710c3c 1517 use given path to find target tools during the build
1c710c3c
DJ
1518
1519Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
5213506e
RW
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1527 CXX C++ compiler command
1528 CXXFLAGS C++ compiler flags
ffedf511
RW
1529 build_configargs
1530 additional configure arguments for build directories
1531 host_configargs
1532 additional configure arguments for host directories
1533 target_configargs
1534 additional configure arguments for target directories
278a7a38
AO
1535 AR AR for the host
1536 AS AS for the host
1537 DLLTOOL DLLTOOL for the host
1538 LD LD for the host
1539 LIPO LIPO for the host
1540 NM NM for the host
1541 RANLIB RANLIB for the host
1542 STRIP STRIP for the host
1543 WINDRES WINDRES for the host
901119ae 1544 WINDMC WINDMC for the host
278a7a38
AO
1545 OBJCOPY OBJCOPY for the host
1546 OBJDUMP OBJDUMP for the host
1547 CC_FOR_TARGET
1548 CC for the target
1549 CXX_FOR_TARGET
1550 CXX for the target
1551 GCC_FOR_TARGET
1552 GCC for the target
1553 GCJ_FOR_TARGET
1554 GCJ for the target
1555 GFORTRAN_FOR_TARGET
1556 GFORTRAN for the target
1557 AR_FOR_TARGET
1558 AR for the target
1559 AS_FOR_TARGET
1560 AS for the target
1561 DLLTOOL_FOR_TARGET
1562 DLLTOOL for the target
1563 LD_FOR_TARGET
1564 LD for the target
1565 LIPO_FOR_TARGET
1566 LIPO for the target
1567 NM_FOR_TARGET
1568 NM for the target
1569 OBJDUMP_FOR_TARGET
1570 OBJDUMP for the target
1571 RANLIB_FOR_TARGET
1572 RANLIB for the target
1573 STRIP_FOR_TARGET
1574 STRIP for the target
1575 WINDRES_FOR_TARGET
1576 WINDRES for the target
901119ae
KT
1577 WINDMC_FOR_TARGET
1578 WINDMC for the target
1c710c3c
DJ
1579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
5213506e 1583Report bugs to the package provider.
1c710c3c 1584_ACEOF
5213506e 1585ac_status=$?
1c710c3c
DJ
1586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
1c710c3c 1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593 continue
1c710c3c
DJ
1594 ac_builddir=.
1595
5213506e
RW
1596case "$ac_dir" in
1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598*)
1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600 # A ".." for each directory in $ac_dir_suffix.
1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602 case $ac_top_builddir_sub in
1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605 esac ;;
1606esac
1607ac_abs_top_builddir=$ac_pwd
1608ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609# for backward compatibility:
1610ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1611
1612case $srcdir in
5213506e 1613 .) # We are building in place.
1c710c3c 1614 ac_srcdir=.
5213506e
RW
1615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1618 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1619 ac_top_srcdir=$srcdir
1620 ac_abs_top_srcdir=$srcdir ;;
1621 *) # Relative name.
1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1625esac
5213506e
RW
1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628 cd "$ac_dir" || { ac_status=$?; continue; }
1629 # Check for guested configure.
1630 if test -f "$ac_srcdir/configure.gnu"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633 elif test -f "$ac_srcdir/configure"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1636 else
5213506e
RW
1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638 fi || ac_status=$?
1639 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1640 done
1641fi
1642
5213506e 1643test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1644if $ac_init_version; then
1645 cat <<\_ACEOF
5213506e
RW
1646configure
1647generated by GNU Autoconf 2.64
1c710c3c 1648
5213506e 1649Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1650This configure script is free software; the Free Software Foundation
1651gives unlimited permission to copy, distribute and modify it.
1652_ACEOF
5213506e 1653 exit
0b0dc272 1654fi
5213506e
RW
1655
1656## ------------------------ ##
1657## Autoconf initialization. ##
1658## ------------------------ ##
1659
1660# ac_fn_c_try_compile LINENO
1661# --------------------------
1662# Try to compile conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_compile ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext
1667 if { { ac_try="$ac_compile"
1668case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_compile") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest.$ac_objext; then :
1686 ac_retval=0
1687else
1688 $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692fi
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694 return $ac_retval
1695
1696} # ac_fn_c_try_compile
1697
1698# ac_fn_cxx_try_compile LINENO
1699# ----------------------------
1700# Try to compile conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_cxx_try_compile ()
1702{
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 rm -f conftest.$ac_objext
1705 if { { ac_try="$ac_compile"
1706case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_compile") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_cxx_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest.$ac_objext; then :
1724 ac_retval=0
1725else
1726 $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730fi
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1733
1734} # ac_fn_cxx_try_compile
1735
1736# ac_fn_c_try_link LINENO
1737# -----------------------
1738# Try to link conftest.$ac_ext, and return whether this succeeded.
1739ac_fn_c_try_link ()
1740{
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 rm -f conftest.$ac_objext conftest$ac_exeext
1743 if { { ac_try="$ac_link"
1744case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1756 fi
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && {
1759 test -z "$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 } && test -s conftest$ac_exeext && {
1762 test "$cross_compiling" = yes ||
1763 $as_test_x conftest$ac_exeext
1764 }; then :
1765 ac_retval=0
1766else
1767 $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1
1771fi
1772 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1773 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1774 # interfere with the next link command; also delete a directory that is
1775 # left behind by Apple's compiler. We do this before executing the actions.
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778 return $ac_retval
1779
1780} # ac_fn_c_try_link
1781cat >config.log <<_ACEOF
1c710c3c
DJ
1782This file contains any messages produced by compilers while
1783running configure, to aid debugging if configure makes a mistake.
1784
1785It was created by $as_me, which was
5213506e 1786generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1787
1788 $ $0 $@
1789
1790_ACEOF
5213506e 1791exec 5>>config.log
1c710c3c
DJ
1792{
1793cat <<_ASUNAME
1794## --------- ##
1795## Platform. ##
1796## --------- ##
1797
1798hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1799uname -m = `(uname -m) 2>/dev/null || echo unknown`
1800uname -r = `(uname -r) 2>/dev/null || echo unknown`
1801uname -s = `(uname -s) 2>/dev/null || echo unknown`
1802uname -v = `(uname -v) 2>/dev/null || echo unknown`
1803
1804/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1805/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1806
1807/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1808/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1809/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1810/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1811/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1812/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1813/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1814
1815_ASUNAME
1816
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
5213506e
RW
1822 $as_echo "PATH: $as_dir"
1823 done
1824IFS=$as_save_IFS
1c710c3c
DJ
1825
1826} >&5
1827
1828cat >&5 <<_ACEOF
1829
1830
1831## ----------- ##
1832## Core tests. ##
1833## ----------- ##
1834
1835_ACEOF
1836
1837
1838# Keep a trace of the command line.
1839# Strip out --no-create and --no-recursion so they do not pile up.
1840# Strip out --silent because we don't want to record it for future runs.
1841# Also quote any args containing shell meta-characters.
1842# Make two passes to allow for proper duplicate-argument suppression.
1843ac_configure_args=
1844ac_configure_args0=
1845ac_configure_args1=
1c710c3c
DJ
1846ac_must_keep_next=false
1847for ac_pass in 1 2
1848do
1849 for ac_arg
1850 do
1851 case $ac_arg in
1852 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1853 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1854 | -silent | --silent | --silen | --sile | --sil)
1855 continue ;;
5213506e
RW
1856 *\'*)
1857 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1858 esac
1859 case $ac_pass in
5213506e 1860 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1861 2)
5213506e 1862 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1863 if test $ac_must_keep_next = true; then
1864 ac_must_keep_next=false # Got value, back to normal.
1865 else
1866 case $ac_arg in
1867 *=* | --config-cache | -C | -disable-* | --disable-* \
1868 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1869 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1870 | -with-* | --with-* | -without-* | --without-* | --x)
1871 case "$ac_configure_args0 " in
1872 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1873 esac
1874 ;;
1875 -* ) ac_must_keep_next=true ;;
1876 esac
1877 fi
5213506e 1878 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1879 ;;
1880 esac
1881 done
1882done
5213506e
RW
1883{ ac_configure_args0=; unset ac_configure_args0;}
1884{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1885
1886# When interrupted or exit'd, cleanup temporary files, and complete
1887# config.log. We remove comments because anyway the quotes in there
1888# would cause problems or look ugly.
5213506e
RW
1889# WARNING: Use '\'' to represent an apostrophe within the trap.
1890# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1891trap 'exit_status=$?
1892 # Save into config.log some information that might help in debugging.
1893 {
1894 echo
1895
1896 cat <<\_ASBOX
1897## ---------------- ##
1898## Cache variables. ##
1899## ---------------- ##
1900_ASBOX
1901 echo
1902 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1903(
1904 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1905 eval ac_val=\$$ac_var
1906 case $ac_val in #(
1907 *${as_nl}*)
1908 case $ac_var in #(
1909 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1910$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1911 esac
1912 case $ac_var in #(
1913 _ | IFS | as_nl) ;; #(
1914 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1915 *) { eval $ac_var=; unset $ac_var;} ;;
1916 esac ;;
1917 esac
1918 done
1c710c3c 1919 (set) 2>&1 |
5213506e
RW
1920 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1921 *${as_nl}ac_space=\ *)
1c710c3c 1922 sed -n \
5213506e
RW
1923 "s/'\''/'\''\\\\'\'''\''/g;
1924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1925 ;; #(
1c710c3c 1926 *)
5213506e 1927 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 1928 ;;
5213506e
RW
1929 esac |
1930 sort
1931)
1c710c3c
DJ
1932 echo
1933
1934 cat <<\_ASBOX
1935## ----------------- ##
1936## Output variables. ##
1937## ----------------- ##
1938_ASBOX
1939 echo
1940 for ac_var in $ac_subst_vars
1941 do
5213506e
RW
1942 eval ac_val=\$$ac_var
1943 case $ac_val in
1944 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945 esac
1946 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1947 done | sort
1948 echo
1949
1950 if test -n "$ac_subst_files"; then
1951 cat <<\_ASBOX
5213506e
RW
1952## ------------------- ##
1953## File substitutions. ##
1954## ------------------- ##
1c710c3c
DJ
1955_ASBOX
1956 echo
1957 for ac_var in $ac_subst_files
1958 do
5213506e
RW
1959 eval ac_val=\$$ac_var
1960 case $ac_val in
1961 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962 esac
1963 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1964 done | sort
1965 echo
1966 fi
1967
1968 if test -s confdefs.h; then
1969 cat <<\_ASBOX
1970## ----------- ##
1971## confdefs.h. ##
1972## ----------- ##
1973_ASBOX
1974 echo
5213506e 1975 cat confdefs.h
1c710c3c
DJ
1976 echo
1977 fi
1978 test "$ac_signal" != 0 &&
5213506e
RW
1979 $as_echo "$as_me: caught signal $ac_signal"
1980 $as_echo "$as_me: exit $exit_status"
1c710c3c 1981 } >&5
5213506e
RW
1982 rm -f core *.core core.conftest.* &&
1983 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1984 exit $exit_status
5213506e 1985' 0
1c710c3c 1986for ac_signal in 1 2 13 15; do
5213506e 1987 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
1988done
1989ac_signal=0
1990
1991# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
1992rm -f -r conftest* confdefs.h
1993
1994$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
1995
1996# Predefined preprocessor variables.
1997
1998cat >>confdefs.h <<_ACEOF
1999#define PACKAGE_NAME "$PACKAGE_NAME"
2000_ACEOF
2001
1c710c3c
DJ
2002cat >>confdefs.h <<_ACEOF
2003#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2004_ACEOF
2005
1c710c3c
DJ
2006cat >>confdefs.h <<_ACEOF
2007#define PACKAGE_VERSION "$PACKAGE_VERSION"
2008_ACEOF
0b0dc272 2009
1c710c3c
DJ
2010cat >>confdefs.h <<_ACEOF
2011#define PACKAGE_STRING "$PACKAGE_STRING"
2012_ACEOF
2013
1c710c3c
DJ
2014cat >>confdefs.h <<_ACEOF
2015#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2016_ACEOF
2017
5213506e
RW
2018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_URL "$PACKAGE_URL"
2020_ACEOF
2021
1c710c3c
DJ
2022
2023# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2024# Prefer an explicitly selected file to automatically selected ones.
2025ac_site_file1=NONE
2026ac_site_file2=NONE
2027if test -n "$CONFIG_SITE"; then
2028 ac_site_file1=$CONFIG_SITE
2029elif test "x$prefix" != xNONE; then
2030 ac_site_file1=$prefix/share/config.site
2031 ac_site_file2=$prefix/etc/config.site
2032else
2033 ac_site_file1=$ac_default_prefix/share/config.site
2034 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2035fi
5213506e
RW
2036for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2037do
2038 test "x$ac_site_file" = xNONE && continue
671aa708 2039 if test -r "$ac_site_file"; then
5213506e
RW
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2041$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2042 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2043 . "$ac_site_file"
2044 fi
2045done
2046
2047if test -r "$cache_file"; then
1c710c3c
DJ
2048 # Some versions of bash will fail to source /dev/null (special
2049 # files actually), so we avoid doing that.
2050 if test -f "$cache_file"; then
5213506e
RW
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2052$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2053 case $cache_file in
5213506e
RW
2054 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2055 *) . "./$cache_file";;
1c710c3c
DJ
2056 esac
2057 fi
671aa708 2058else
5213506e
RW
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2060$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2061 >$cache_file
2062fi
2063
2064# Check that the precious variables saved in the cache have kept the same
2065# value.
2066ac_cache_corrupted=false
5213506e 2067for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2068 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2069 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2070 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2071 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2072 case $ac_old_set,$ac_new_set in
2073 set,)
5213506e
RW
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2075$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2076 ac_cache_corrupted=: ;;
2077 ,set)
5213506e
RW
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2079$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2080 ac_cache_corrupted=: ;;
2081 ,);;
2082 *)
2083 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2084 # differences in whitespace do not lead to failure.
2085 ac_old_val_w=`echo x $ac_old_val`
2086 ac_new_val_w=`echo x $ac_new_val`
2087 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2089$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2090 ac_cache_corrupted=:
2091 else
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2093$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2094 eval $ac_var=\$ac_old_val
2095 fi
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2097$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2099$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2100 fi;;
2101 esac
2102 # Pass precious variables to config.status.
2103 if test "$ac_new_set" = set; then
2104 case $ac_new_val in
5213506e 2105 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2106 *) ac_arg=$ac_var=$ac_new_val ;;
2107 esac
2108 case " $ac_configure_args " in
2109 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2110 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2111 esac
2112 fi
2113done
2114if $ac_cache_corrupted; then
5213506e
RW
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2118$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2119 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2120fi
5213506e
RW
2121## -------------------- ##
2122## Main body of script. ##
2123## -------------------- ##
671aa708 2124
2aeb72e9
DD
2125ac_ext=c
2126ac_cpp='$CPP $CPPFLAGS'
2127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130
1c710c3c
DJ
2131
2132
2133
1c710c3c
DJ
2134
2135
0115d4a3 2136
1c710c3c 2137
ad33ff57
RW
2138
2139progname=$0
2140# if PWD already has a value, it is probably wrong.
2141if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2142
2143# Export original configure arguments for use by sub-configures.
2144# Quote arguments with shell meta charatcers.
2145TOPLEVEL_CONFIGURE_ARGUMENTS=
2146set -- "$progname" "$@"
2147for ac_arg
2148do
2149 case "$ac_arg" in
2150 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2151 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2152 # if the argument is of the form -foo=baz, quote the baz part only
2153 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2154 *) ;;
2155 esac
2156 # Add the quoted argument to the list.
2157 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2158done
2159if test "$silent" = yes; then
2160 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2161fi
2162# Remove the initial space we just introduced and, as these will be
2163# expanded by make, quote '$'.
2164TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2165
1c710c3c
DJ
2166
2167# Find the build, host, and target systems.
671aa708 2168ac_aux_dir=
5213506e
RW
2169for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2170 for ac_t in install-sh install.sh shtool; do
2171 if test -f "$ac_dir/$ac_t"; then
2172 ac_aux_dir=$ac_dir
2173 ac_install_sh="$ac_aux_dir/$ac_t -c"
2174 break 2
2175 fi
2176 done
671aa708
NN
2177done
2178if test -z "$ac_aux_dir"; then
5213506e 2179 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2180fi
5213506e
RW
2181
2182# These three variables are undocumented and unsupported,
2183# and are intended to be withdrawn in a future Autoconf release.
2184# They can cause serious problems if a builder's source tree is in a directory
2185# whose full name contains unusual characters.
2186ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2187ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2188ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2189
671aa708 2190
1c710c3c 2191# Make sure we can run config.sub.
5213506e
RW
2192$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2193 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2194
2195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2196$as_echo_n "checking build system type... " >&6; }
2197if test "${ac_cv_build+set}" = set; then :
2198 $as_echo_n "(cached) " >&6
2199else
2200 ac_build_alias=$build_alias
2201test "x$ac_build_alias" = x &&
2202 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2203test "x$ac_build_alias" = x &&
2204 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2205ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2206 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2207
2208fi
2209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2210$as_echo "$ac_cv_build" >&6; }
2211case $ac_cv_build in
2212*-*-*) ;;
2213*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2214esac
1c710c3c 2215build=$ac_cv_build
5213506e
RW
2216ac_save_IFS=$IFS; IFS='-'
2217set x $ac_cv_build
2218shift
2219build_cpu=$1
2220build_vendor=$2
2221shift; shift
2222# Remember, the first character of IFS is used to create $*,
2223# except with old shells:
2224build_os=$*
2225IFS=$ac_save_IFS
2226case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2227
671aa708 2228
1c710c3c
DJ
2229 case ${build_alias} in
2230 "") build_noncanonical=${build} ;;
2231 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2232esac
2233
2234
af71363e 2235
1c710c3c
DJ
2236 case ${host_alias} in
2237 "") host_noncanonical=${build_noncanonical} ;;
2238 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2239esac
2240
af71363e 2241
1c710c3c
DJ
2242
2243 case ${target_alias} in
2244 "") target_noncanonical=${host_noncanonical} ;;
2245 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2246esac
2247
af71363e 2248
1c710c3c
DJ
2249
2250
2251test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2252 test "$program_prefix$program_suffix$program_transform_name" = \
2253 NONENONEs,x,x, &&
1c710c3c 2254 program_transform_name=s,y,y,
af71363e 2255
5213506e
RW
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2257$as_echo_n "checking host system type... " >&6; }
2258if test "${ac_cv_host+set}" = set; then :
2259 $as_echo_n "(cached) " >&6
af71363e 2260else
5213506e
RW
2261 if test "x$host_alias" = x; then
2262 ac_cv_host=$ac_cv_build
2263else
2264 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2265 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2266fi
1c710c3c 2267
af71363e 2268fi
5213506e
RW
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2270$as_echo "$ac_cv_host" >&6; }
2271case $ac_cv_host in
2272*-*-*) ;;
2273*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2274esac
1c710c3c 2275host=$ac_cv_host
5213506e
RW
2276ac_save_IFS=$IFS; IFS='-'
2277set x $ac_cv_host
2278shift
2279host_cpu=$1
2280host_vendor=$2
2281shift; shift
2282# Remember, the first character of IFS is used to create $*,
2283# except with old shells:
2284host_os=$*
2285IFS=$ac_save_IFS
2286case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2287
2288
5213506e
RW
2289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2290$as_echo_n "checking target system type... " >&6; }
2291if test "${ac_cv_target+set}" = set; then :
2292 $as_echo_n "(cached) " >&6
1c710c3c 2293else
5213506e
RW
2294 if test "x$target_alias" = x; then
2295 ac_cv_target=$ac_cv_host
2296else
2297 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2298 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2299fi
1c710c3c
DJ
2300
2301fi
5213506e
RW
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2303$as_echo "$ac_cv_target" >&6; }
2304case $ac_cv_target in
2305*-*-*) ;;
2306*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2307esac
1c710c3c 2308target=$ac_cv_target
5213506e
RW
2309ac_save_IFS=$IFS; IFS='-'
2310set x $ac_cv_target
2311shift
2312target_cpu=$1
2313target_vendor=$2
2314shift; shift
2315# Remember, the first character of IFS is used to create $*,
2316# except with old shells:
2317target_os=$*
2318IFS=$ac_save_IFS
2319case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2320
2321
2322# The aliases save the names the user supplied, while $host etc.
2323# will get canonicalized.
2324test -n "$target_alias" &&
2325 test "$program_prefix$program_suffix$program_transform_name" = \
2326 NONENONEs,x,x, &&
2327 program_prefix=${target_alias}-
5213506e 2328
671aa708 2329test "$program_prefix" != NONE &&
5213506e 2330 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2331# Use a double $ so make ignores it.
2332test "$program_suffix" != NONE &&
5213506e
RW
2333 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2334# Double any \ or $.
1c710c3c 2335# By default was `s,x,x', remove it if useless.
5213506e
RW
2336ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2337program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2338
671aa708
NN
2339
2340
775956d0
NN
2341# Get 'install' or 'install-sh' and its variants.
2342# Find a good install program. We prefer a C program (faster),
2343# so one script is as good as another. But avoid the broken or
2344# incompatible versions:
2345# SysV /etc/install, /usr/sbin/install
2346# SunOS /usr/etc/install
2347# IRIX /sbin/install
2348# AIX /bin/install
1c710c3c 2349# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2350# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2351# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2352# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2353# OS/2's system install, which has a completely different semantic
775956d0 2354# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2355# Reject install programs that cannot install multiple files.
5213506e
RW
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2357$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2358if test -z "$INSTALL"; then
5213506e
RW
2359if test "${ac_cv_path_install+set}" = set; then :
2360 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2361else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
5213506e
RW
2367 # Account for people who put trailing slashes in PATH elements.
2368case $as_dir/ in #((
2369 ./ | .// | /[cC]/* | \
1c710c3c 2370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2371 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2372 /usr/ucb/* ) ;;
2373 *)
2374 # OSF1 and SCO ODT 3.0 have their own names for install.
2375 # Don't use installbsd from OSF since it installs stuff as root
2376 # by default.
2377 for ac_prog in ginstall scoinst install; do
2378 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2379 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2380 if test $ac_prog = install &&
1c710c3c 2381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2382 # AIX install. It has an incompatible calling convention.
2383 :
1c710c3c
DJ
2384 elif test $ac_prog = install &&
2385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386 # program-specific install script used by HP pwplus--don't use.
2387 :
775956d0 2388 else
38d24731
RW
2389 rm -rf conftest.one conftest.two conftest.dir
2390 echo one > conftest.one
2391 echo two > conftest.two
2392 mkdir conftest.dir
2393 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2394 test -s conftest.one && test -s conftest.two &&
2395 test -s conftest.dir/conftest.one &&
2396 test -s conftest.dir/conftest.two
2397 then
2398 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2399 break 3
2400 fi
775956d0
NN
2401 fi
2402 fi
2403 done
1c710c3c
DJ
2404 done
2405 ;;
2406esac
5213506e
RW
2407
2408 done
2409IFS=$as_save_IFS
1c710c3c 2410
38d24731 2411rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2412
2413fi
2414 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2415 INSTALL=$ac_cv_path_install
775956d0 2416 else
38d24731
RW
2417 # As a last resort, use the slow shell script. Don't cache a
2418 # value for INSTALL within a source directory, because that will
775956d0 2419 # break other packages using the cache if that directory is
38d24731 2420 # removed, or if the value is a relative name.
1c710c3c 2421 INSTALL=$ac_install_sh
775956d0
NN
2422 fi
2423fi
5213506e
RW
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2425$as_echo "$INSTALL" >&6; }
775956d0
NN
2426
2427# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2428# It thinks the first close brace ends the variable substitution.
2429test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2430
1c710c3c 2431test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2432
2433test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2434
5213506e
RW
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2436$as_echo_n "checking whether ln works... " >&6; }
2437if test "${acx_cv_prog_LN+set}" = set; then :
2438 $as_echo_n "(cached) " >&6
ad6717df
PB
2439else
2440 rm -f conftestdata_t
2441echo >conftestdata_f
2442if ln conftestdata_f conftestdata_t 2>/dev/null
2443then
2444 acx_cv_prog_LN=ln
2445else
2446 acx_cv_prog_LN=no
2447fi
2448rm -f conftestdata_f conftestdata_t
2449
2450fi
2451if test $acx_cv_prog_LN = no; then
2452 LN="cp"
5213506e
RW
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2454$as_echo "no, using $LN" >&6; }
ad6717df
PB
2455else
2456 LN="$acx_cv_prog_LN"
5213506e
RW
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2458$as_echo "yes" >&6; }
ad6717df
PB
2459fi
2460
5213506e
RW
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2462$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2463LN_S=$as_ln_s
2464if test "$LN_S" = "ln -s"; then
5213506e
RW
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2466$as_echo "yes" >&6; }
fb0103e5 2467else
5213506e
RW
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2469$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2470fi
2471
87264276
PB
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2473$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2474if test "${ac_cv_path_SED+set}" = set; then :
2475 $as_echo_n "(cached) " >&6
2476else
2477 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2478 for ac_i in 1 2 3 4 5 6 7; do
2479 ac_script="$ac_script$as_nl$ac_script"
2480 done
2481 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2482 { ac_script=; unset ac_script;}
2483 if test -z "$SED"; then
2484 ac_path_SED_found=false
2485 # Loop through the user's path and test for each of PROGNAME-LIST
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH
2488do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_prog in sed gsed; do
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2494 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2495# Check for GNU ac_path_SED and select it if it is found.
2496 # Check for GNU $ac_path_SED
2497case `"$ac_path_SED" --version 2>&1` in
2498*GNU*)
2499 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2500*)
2501 ac_count=0
2502 $as_echo_n 0123456789 >"conftest.in"
2503 while :
2504 do
2505 cat "conftest.in" "conftest.in" >"conftest.tmp"
2506 mv "conftest.tmp" "conftest.in"
2507 cp "conftest.in" "conftest.nl"
2508 $as_echo '' >> "conftest.nl"
2509 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2511 as_fn_arith $ac_count + 1 && ac_count=$as_val
2512 if test $ac_count -gt ${ac_path_SED_max-0}; then
2513 # Best one so far, save it but keep looking for a better one
2514 ac_cv_path_SED="$ac_path_SED"
2515 ac_path_SED_max=$ac_count
2516 fi
2517 # 10*(2^10) chars as input seems more than enough
2518 test $ac_count -gt 10 && break
2519 done
2520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2521esac
2522
2523 $ac_path_SED_found && break 3
2524 done
2525 done
2526 done
2527IFS=$as_save_IFS
2528 if test -z "$ac_cv_path_SED"; then
2529 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2530 fi
2531else
2532 ac_cv_path_SED=$SED
2533fi
2534
2535fi
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2537$as_echo "$ac_cv_path_SED" >&6; }
2538 SED="$ac_cv_path_SED"
2539 rm -f conftest.sed
2540
2541for ac_prog in gawk mawk nawk awk
2542do
2543 # Extract the first word of "$ac_prog", so it can be a program name with args.
2544set dummy $ac_prog; ac_word=$2
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2546$as_echo_n "checking for $ac_word... " >&6; }
2547if test "${ac_cv_prog_AWK+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
2549else
2550 if test -n "$AWK"; then
2551 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2552else
2553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554for as_dir in $PATH
2555do
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560 ac_cv_prog_AWK="$ac_prog"
2561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 break 2
2563 fi
2564done
2565 done
2566IFS=$as_save_IFS
2567
2568fi
2569fi
2570AWK=$ac_cv_prog_AWK
2571if test -n "$AWK"; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2573$as_echo "$AWK" >&6; }
2574else
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2576$as_echo "no" >&6; }
2577fi
2578
2579
2580 test -n "$AWK" && break
2581done
2582
775956d0 2583
79c06341 2584### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
2585### If we are on Windows, search for the shell. This will permit people
2586### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2587### without also having to set CONFIG_SHELL. This code will work when
2588### using bash, which sets OSTYPE.
2589case "${OSTYPE}" in
2590*win32*)
671aa708
NN
2591 if test x${CONFIG_SHELL} = x ; then
2592 if test ! -f /bin/sh ; then
2593 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
2594 CONFIG_SHELL=${SHELL}
2595 export CONFIG_SHELL
2596 else
2597 for prog in sh sh.exe bash bash.exe; do
2598 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2599 for dir in $PATH; do
2600 test -z "$dir" && dir=.
2601 if test -f $dir/$prog; then
2602 CONFIG_SHELL=$dir/$prog
2603 export CONFIG_SHELL
2604 break
2605 fi
2606 done
2607 IFS="$save_ifs"
2608 test -n "${CONFIG_SHELL}" && break
2609 done
2610 fi
2611 fi
2612 fi
2613 ;;
2614esac
2615
2616config_shell=${CONFIG_SHELL-/bin/sh}
2617
671aa708 2618moveifchange=${srcdir}/move-if-change
79c06341 2619
ee6a22df
L
2620srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2621
2622# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2623# a relative path.
2624if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2625 INSTALL="${srcpwd}/install-sh -c"
2626fi
2627
671aa708
NN
2628# Set srcdir to "." if that's what it is.
2629# This is important for multilib support.
2630pwd=`${PWDCMD-pwd}`
671aa708
NN
2631if test "${pwd}" = "${srcpwd}" ; then
2632 srcdir=.
79c06341
JL
2633fi
2634
671aa708 2635topsrcdir=$srcpwd
5d4a5ee6 2636
671aa708 2637extra_host_args=
afabd8e6 2638
671aa708
NN
2639### To add a new directory to the tree, first choose whether it is a target
2640### or a host dependent tool. Then put it into the appropriate list
2641### (library or tools, host or target), doing a dependency sort.
79c06341 2642
1c710c3c 2643# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2644# configdirs, or target_configdirs; see the serialization section below.
79c06341 2645
1c710c3c
DJ
2646# Dependency sorting is only needed when *configuration* must be done in
2647# a particular order. In all cases a dependency should be specified in
671aa708 2648# the Makefile, whether or not it's implicitly specified here.
79c06341 2649
671aa708
NN
2650# Double entries in build_configdirs, configdirs, or target_configdirs may
2651# cause circular dependencies and break everything horribly.
79c06341 2652
23f6b2f9
PB
2653# these library is used by various programs built for the build
2654# environment
2655#
2656build_libs="build-libiberty"
2657
2658# these tools are built for the build environment
71b5d516 2659build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2660
671aa708
NN
2661# these libraries are used by various programs built for the host environment
2662#
f61428ed 2663host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
671aa708 2664
671aa708
NN
2665# these tools are built for the host environment
2666# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2667# know that we are building the simulator.
2668# binutils, gas and ld appear in that order because it makes sense to run
2669# "make check" in that particular order.
38e3d868 2670# If --enable-gold is used, "gold" may replace "ld".
8c32c9f0 2671host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
2672
2673# libgcj represents the runtime libraries only used by gcj.
2674libgcj="target-libffi \
671aa708
NN
2675 target-zlib \
2676 target-qthreads \
2677 target-libjava"
2678
2679# these libraries are built for the target environment, and are built after
2680# the host libraries and the host tools (which may be a cross compiler)
2681#
291f172e
DJ
2682target_libraries="target-libgcc \
2683 target-libiberty \
671aa708
NN
2684 target-libgloss \
2685 target-newlib \
6d3b5aea 2686 target-libgomp \
cb543528 2687 target-libstdc++-v3 \
6de9cd9a 2688 target-libmudflap \
77008252 2689 target-libssp \
6de9cd9a 2690 target-libgfortran \
7cd0cf9c 2691 target-boehm-gc \
77d187bc 2692 ${libgcj} \
d9cdb878 2693 target-libobjc \
6d3b5aea 2694 target-libada"
671aa708 2695
4dbda6f0
NN
2696# these tools are built using the target libraries, and are intended to
2697# run only in the target environment
671aa708 2698#
4dbda6f0 2699# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
2700# list belongs in this list. those programs are also very likely
2701# candidates for the "native_only" list which follows
2702#
97286f7f 2703target_tools="target-examples target-groff target-gperf target-rda"
79c06341 2704
671aa708 2705################################################################################
79c06341 2706
671aa708
NN
2707## All tools belong in one of the four categories, and are assigned above
2708## We assign ${configdirs} this way to remove all embedded newlines. This
2709## is important because configure will choke if they ever get through.
2710## ${configdirs} is directories we build using the host tools.
2711## ${target_configdirs} is directories we build using the target tools.
671aa708 2712configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2713target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2714build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2715
ac9e6043
RW
2716
2717
671aa708 2718################################################################################
79c06341 2719
671aa708 2720srcname="gnu development package"
79c06341 2721
671aa708
NN
2722# This gets set non-empty for some net releases of packages.
2723appdirs=""
79c06341 2724
671aa708
NN
2725# Define is_cross_compiler to save on calls to 'test'.
2726is_cross_compiler=
2727if test x"${host}" = x"${target}" ; then
2728 is_cross_compiler=no
79c06341 2729else
671aa708 2730 is_cross_compiler=yes
1c710c3c 2731fi
79c06341 2732
b4acb5ef 2733# Find the build and target subdir names.
8b87bb96 2734
2e9e6f68
DJ
2735# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2736# have matching libraries, they should use host libraries: Makefile.tpl
2737# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2738# However, they still use the build modules, because the corresponding
2739# host modules (e.g. bison) are only built for the host when bootstrap
2740# finishes. So:
2741# - build_subdir is where we find build modules, and never changes.
2742# - build_libsubdir is where we find build libraries, and can be overridden.
2743
2744# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2745build_subdir="build-${build_noncanonical}"
1c710c3c 2746
5213506e
RW
2747# Check whether --with-build-libsubdir was given.
2748if test "${with_build_libsubdir+set}" = set; then :
2749 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2750else
2751 build_libsubdir="$build_subdir"
5213506e
RW
2752fi
2753
215c351a
PB
2754# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2755if ( test $srcdir = . && test -d gcc ) \
2756 || test -d $srcdir/../host-${host_noncanonical}; then
2757 host_subdir="host-${host_noncanonical}"
2758else
2759 host_subdir=.
2760fi
8b87bb96
NN
2761# No prefix.
2762target_subdir=${target_noncanonical}
1c710c3c 2763
0db770bd
RW
2764# Be sure to cover against remnants of an in-tree build.
2765if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2766 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2767Use a pristine source tree when building in a separate tree" "$LINENO" 5
2768fi
79c06341 2769
671aa708
NN
2770# Skipdirs are removed silently.
2771skipdirs=
2772# Noconfigdirs are removed loudly.
2773noconfigdirs=""
79c06341 2774
671aa708
NN
2775use_gnu_ld=
2776# Make sure we don't let GNU ld be added if we didn't want it.
2777if test x$with_gnu_ld = xno ; then
2778 use_gnu_ld=no
5afab7ad 2779 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2780fi
2781
671aa708
NN
2782use_gnu_as=
2783# Make sure we don't let GNU as be added if we didn't want it.
2784if test x$with_gnu_as = xno ; then
2785 use_gnu_as=no
2786 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2787fi
2788
d7f09764
DN
2789use_included_zlib=
2790# Make sure we don't let ZLIB be added if we didn't want it.
2791if test x$with_system_zlib = xyes ; then
2792 use_included_zlib=no
2793 noconfigdirs="$noconfigdirs zlib"
2794fi
2795
1c710c3c 2796# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2797# it's not even worth trying to configure, much less build, that tool.
79c06341 2798
671aa708
NN
2799case ${with_x} in
2800 yes | "") ;; # the default value for this tree is that X11 is available
2801 no)
b4f96efe 2802 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2803 # We won't be able to build gdbtk without X.
1c710c3c 2804 enable_gdbtk=no
671aa708
NN
2805 ;;
2806 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2807esac
79c06341 2808
671aa708 2809# Some tools are only suitable for building in a "native" situation.
1c710c3c 2810# Remove these if host!=target.
9e299237 2811native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 2812
671aa708
NN
2813# Similarly, some are only suitable for cross toolchains.
2814# Remove these if host=target.
2815cross_only="target-libgloss target-newlib target-opcodes"
2816
2817case $is_cross_compiler in
2818 no) skipdirs="${skipdirs} ${cross_only}" ;;
2819 yes) skipdirs="${skipdirs} ${native_only}" ;;
2820esac
79c06341 2821
671aa708
NN
2822# If both --with-headers and --with-libs are specified, default to
2823# --without-newlib.
ee6a22df
L
2824if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2825 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2826 if test x"${with_newlib}" = x ; then
2827 with_newlib=no
2828 fi
79c06341
JL
2829fi
2830
671aa708
NN
2831# Recognize --with-newlib/--without-newlib.
2832case ${with_newlib} in
2833 no) skipdirs="${skipdirs} target-newlib" ;;
2834 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2835esac
79c06341 2836
5afab7ad 2837# Handle --enable-gold.
38e3d868
RM
2838# --enable-gold Build only gold
2839# --disable-gold [default] Build only ld
2840# --enable-gold=both Build both gold and ld, ld is default
2841# --enable-gold=both/ld Same
2842# --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
5afab7ad 2843
5213506e
RW
2844# Check whether --enable-gold was given.
2845if test "${enable_gold+set}" = set; then :
2846 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2847else
2848 ENABLE_GOLD=no
5213506e
RW
2849fi
2850
38e3d868
RM
2851 case "${ENABLE_GOLD}" in
2852 yes|both|both/gold|both/ld)
2853 # Check for ELF target.
2854 is_elf=no
2855 case "${target}" in
2856 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2857 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2858 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2859 case "${target}" in
2860 *-*-linux*aout* | *-*-linux*oldld*)
2861 ;;
2862 *)
2863 is_elf=yes
2864 ;;
2865 esac
2866 esac
2867
2868 if test "$is_elf" = "yes"; then
2869 # Check for target supported by gold.
5afab7ad 2870 case "${target}" in
38e3d868
RM
2871 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2872 case "${ENABLE_GOLD}" in
2873 both*)
2874 configdirs="$configdirs gold"
2875 ;;
2876 *)
86dfbd58 2877 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
38e3d868
RM
2878 ;;
2879 esac
2880 ENABLE_GOLD=yes
5afab7ad
ILT
2881 ;;
2882 esac
38e3d868
RM
2883 fi
2884 ;;
2885 no)
2886 ;;
2887 *)
2888 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2889 ;;
5afab7ad
ILT
2890 esac
2891
671aa708 2892# Configure extra directories which are host specific
79c06341 2893
671aa708
NN
2894case "${host}" in
2895 *-cygwin*)
2896 configdirs="$configdirs libtermcap" ;;
2897esac
79c06341 2898
4fab7234
HPN
2899# A target can indicate whether a language isn't supported for some reason.
2900# Only spaces may be used in this macro; not newlines or tabs.
2901unsupported_languages=
2902
1c710c3c 2903# Remove more programs from consideration, based on the host or
671aa708
NN
2904# target this usually means that a port of the program doesn't
2905# exist yet.
ec8d6ddc 2906
671aa708
NN
2907case "${host}" in
2908 hppa*64*-*-*)
2909 noconfigdirs="$noconfigdirs byacc"
2910 ;;
f2a0e225 2911 i[3456789]86-*-vsta)
b4f96efe 2912 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2913 ;;
f2a0e225 2914 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2915 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2916 ;;
95af8923
KT
2917 x86_64-*-mingw*)
2918 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2919 ;;
f2a0e225 2920 i[3456789]86-*-mingw32*)
b4f96efe 2921 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2922 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2923 ;;
f2a0e225 2924 i[3456789]86-*-beos*)
b4f96efe 2925 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2926 ;;
671aa708 2927 *-*-cygwin*)
a22c2d8d 2928 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2929 ;;
2930 *-*-netbsd*)
a22c2d8d 2931 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2932 ;;
2933 ppc*-*-pe)
b4f96efe 2934 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2935 ;;
2936 powerpc-*-beos*)
b4f96efe 2937 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2938 ;;
671aa708 2939esac
ec8d6ddc 2940
6de9cd9a 2941
5213506e
RW
2942# Check whether --enable-libada was given.
2943if test "${enable_libada+set}" = set; then :
2944 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
2945else
2946 ENABLE_LIBADA=yes
5213506e
RW
2947fi
2948
d9cdb878 2949if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2950 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2951fi
2952
5213506e
RW
2953# Check whether --enable-libssp was given.
2954if test "${enable_libssp+set}" = set; then :
2955 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
2956else
2957 ENABLE_LIBSSP=yes
5213506e
RW
2958fi
2959
ef0087a7 2960
671aa708
NN
2961# Save it here so that, even in case of --enable-libgcj, if the Java
2962# front-end isn't enabled, we still get libgcj disabled.
2963libgcj_saved=$libgcj
2964case $enable_libgcj in
2965yes)
2966 # If we reset it here, it won't get added to noconfigdirs in the
2967 # target-specific build rules, so it will be forcibly enabled
2968 # (unless the Java language itself isn't enabled).
2969 libgcj=
2970 ;;
2971no)
2972 # Make sure we get it printed in the list of not supported target libs.
2973 noconfigdirs="$noconfigdirs ${libgcj}"
2974 ;;
2975esac
ec8d6ddc 2976
6de9cd9a 2977
27079765
AH
2978# Disable libmudflap on some systems.
2979if test x$enable_libmudflap = x ; then
dfcada9a 2980 case "${target}" in
416ac4d4 2981 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 2982 # Enable libmudflap by default in GNU and friends.
dfcada9a 2983 ;;
a3e8d8b4
LR
2984 *-*-freebsd*)
2985 # Enable libmudflap by default in FreeBSD.
2986 ;;
dfcada9a
MM
2987 *)
2988 # Disable it by default everywhere else.
2989 noconfigdirs="$noconfigdirs target-libmudflap"
2990 ;;
2991 esac
27079765 2992fi
6de9cd9a 2993
27079765
AH
2994# Disable libgomp on non POSIX hosted systems.
2995if test x$enable_libgomp = x ; then
953ff289
DN
2996 # Enable libgomp by default on hosted POSIX systems.
2997 case "${target}" in
416ac4d4 2998 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
2999 ;;
3000 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3001 ;;
04879af3 3002 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 3003 ;;
cac90078 3004 *-*-darwin* | *-*-aix*)
953ff289
DN
3005 ;;
3006 *)
3007 noconfigdirs="$noconfigdirs target-libgomp"
3008 ;;
3009 esac
27079765 3010fi
953ff289 3011
c03353e2
RIL
3012# Default libgloss CPU subdirectory.
3013libgloss_dir="$target_cpu"
6de9cd9a 3014
671aa708
NN
3015case "${target}" in
3016 *-*-chorusos)
cb253473 3017 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3018 ;;
75eeae1a 3019 powerpc-*-darwin*)
e1514c3f 3020 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3021 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3022 ;;
354ebf88
RW
3023 i[3456789]86-*-darwin*)
3024 noconfigdirs="$noconfigdirs ld gprof"
3025 noconfigdirs="$noconfigdirs sim target-rda"
3026 ;;
3027 x86_64-*-darwin[912]*)
0db3a858
TG
3028 noconfigdirs="$noconfigdirs ld gas gprof"
3029 noconfigdirs="$noconfigdirs sim target-rda"
3030 ;;
42c1cd8a
AT
3031 *-*-darwin*)
3032 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3033 noconfigdirs="$noconfigdirs sim target-rda"
3034 noconfigdirs="$noconfigdirs ${libgcj}"
3035 ;;
671aa708 3036 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 3037 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3038 ;;
c3f84f61 3039 *-*-freebsd*)
6de9cd9a
DN
3040 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3041 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3042 && test -f /usr/local/include/gmp.h; then
3043 with_gmp=/usr/local
3044 fi
3045
3046 # Skip some stuff that's unsupported on some FreeBSD configurations.
3047 case "${target}" in
3048 i*86-*-*) ;;
3049 alpha*-*-*) ;;
f3f623ae 3050 x86_64-*-*) ;;
6de9cd9a 3051 *)
cb253473 3052 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
3053 ;;
3054 esac
3055 ;;
ef4e7569
US
3056 *-*-kaos*)
3057 # Remove unsupported stuff on all kaOS configurations.
cb253473 3058 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
3059 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3060 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3061 noconfigdirs="$noconfigdirs target-libgloss"
3062 ;;
671aa708
NN
3063 *-*-netbsd*)
3064 # Skip some stuff on all NetBSD configurations.
3065 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3066
3067 # Skip some stuff that's unsupported on some NetBSD configurations.
3068 case "${target}" in
3069 i*86-*-netbsdelf*) ;;
0590b963 3070 arm*-*-netbsdelf*) ;;
671aa708 3071 *)
cb253473 3072 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3073 ;;
3074 esac
3075 ;;
61fec9ff 3076 *-*-netware*)
cb253473 3077 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
3078 ;;
3079 *-*-rtems*)
e4522f78 3080 skipdirs="${skipdirs} target-libiberty"
cb253473 3081 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3082 ;;
a8ba31f2
EC
3083 # The tpf target doesn't support gdb yet.
3084 *-*-tpf*)
cb253473 3085 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 3086 ;;
5785c0ed 3087 *-*-uclinux*)
cb253473 3088 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 3089 ;;
671aa708 3090 *-*-vxworks*)
cb253473 3091 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
3092 ;;
3093 alpha*-dec-osf*)
3094 # ld works, but does not support shared libraries.
3095 # newlib is not 64 bit ready. I'm not sure about fileutils.
3096 # gas doesn't generate exception information.
3097 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3098 ;;
3099 alpha*-*-*vms*)
8406cb62 3100 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708
NN
3101 ;;
3102 alpha*-*-linux*)
3103 # newlib is not 64 bit ready
3104 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3105 ;;
671aa708
NN
3106 alpha*-*-*)
3107 # newlib is not 64 bit ready
cb253473 3108 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3109 ;;
33952f6f 3110 am33_2.0-*-linux*)
cb253473 3111 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 3112 ;;
671aa708 3113 sh-*-linux*)
cb253473 3114 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 3115 ;;
671aa708 3116 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 3117 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3118 noconfigdirs="$noconfigdirs target-examples"
3119 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 3120 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3121 noconfigdirs="$noconfigdirs expect dejagnu"
3122 # the C++ libraries don't build on top of CE's C libraries
cb543528 3123 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
3124 noconfigdirs="$noconfigdirs target-newlib"
3125 case "${host}" in
3126 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 3127 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
3128 ;;
3129 esac
c03353e2 3130 libgloss_dir=wince
671aa708
NN
3131 ;;
3132 arc-*-*)
cb253473 3133 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3134 ;;
ee6a22df 3135 arm-semi-aof )
ee6a22df 3136 ;;
671aa708 3137 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 3138 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3139 libgloss_dir=arm
671aa708 3140 ;;
b3f8d95d 3141 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 3142 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 3143 libgloss_dir=arm
671aa708 3144 ;;
077fc835 3145 arm*-*-linux-gnueabi)
c4e9bf2b 3146 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
3147 case ${with_newlib} in
3148 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3149 esac
c03353e2 3150 libgloss_dir=arm
077fc835 3151 ;;
972974fc 3152 arm*-*-symbianelf*)
cb253473 3153 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 3154 libgloss_dir=arm
972974fc 3155 ;;
671aa708 3156 arm-*-pe*)
cb253473 3157 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3158 ;;
671aa708 3159 thumb-*-coff)
cb253473 3160 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3161 ;;
3162 thumb-*-elf)
cb253473 3163 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3164 ;;
671aa708 3165 thumb-*-pe)
cb253473 3166 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3167 ;;
3168 arm-*-riscix*)
cb253473 3169 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
3170 ;;
3171 avr-*-*)
ac3949d9 3172 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 3173 ;;
6b65a26d 3174 bfin-*-*)
1c3c9f12
JZ
3175 unsupported_languages="$unsupported_languages java"
3176 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
61efc800 3177 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
3178 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3179 fi
3180 ;;
671aa708 3181 c4x-*-* | tic4x-*-*)
cb253473 3182 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3183 ;;
3184 c54x*-*-* | tic54x-*-*)
cb253473 3185 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 3186 ;;
c993ae60
SR
3187 cr16-*-*)
3188 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3189 ;;
40d64b5a 3190 cris-*-* | crisv32-*-*)
4fab7234 3191 unsupported_languages="$unsupported_languages java"
40d64b5a 3192 case "${target}" in
c2e0d3a9 3193 *-*-aout)
7f26dfa3 3194 unsupported_languages="$unsupported_languages fortran"
4fab7234 3195 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 3196 *-*-elf)
789ec619 3197 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 3198 *-*-linux*)
789ec619 3199 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 3200 *)
7f26dfa3 3201 unsupported_languages="$unsupported_languages fortran"
cb253473 3202 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 3203 esac
c03353e2 3204 libgloss_dir=cris
671aa708 3205 ;;
25b656e7 3206 crx-*-*)
cb253473 3207 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 3208 ;;
671aa708 3209 d10v-*-*)
cb253473 3210 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3211 ;;
3212 d30v-*-*)
cb253473 3213 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 3214 ;;
c03353e2
RIL
3215 ep9312-*-elf | ep9312-*-coff)
3216 libgloss_dir=arm
3217 ;;
671aa708 3218 fr30-*-elf*)
cb253473 3219 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3220 ;;
3221 frv-*-*)
cb253473 3222 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3223 ;;
55f2d967
AG
3224 moxie-*-*)
3225 noconfigdirs="$noconfigdirs ${libgcj}"
3226 noconfigdirs="$noconfigdirs gprof"
3227 ;;
671aa708 3228 h8300*-*-*)
cb253473 3229 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3230 ;;
3231 h8500-*-*)
cb253473 3232 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3233 ;;
ee6a22df 3234 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3235 ;;
671aa708
NN
3236 hppa*64*-*-linux* | parisc*64*-*-linux*)
3237 # In this case, it's because the hppa64-linux target is for
3238 # the kernel only at this point and has no libc, and thus no
3239 # headers, crt*.o, etc., all of which are needed by these.
3240 noconfigdirs="$noconfigdirs target-zlib"
3241 ;;
3e732ba0
JDA
3242 parisc*-*-linux* | hppa*-*-linux*)
3243 ;;
671aa708 3244 hppa*-*-*elf* | \
671aa708
NN
3245 hppa*-*-lites* | \
3246 hppa*-*-openbsd* | \
3247 hppa*64*-*-*)
cb253473 3248 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3249 ;;
2a332582
JDA
3250 hppa*-hp-hpux11*)
3251 noconfigdirs="$noconfigdirs ld shellutils"
3252 ;;
c03353e2
RIL
3253 hppa*-*-pro*)
3254 libgloss_dir=pa
3255 ;;
671aa708
NN
3256 hppa*-*-*)
3257 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3258 # build on HP-UX 10.20.
cb253473 3259 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 3260 ;;
fb87ad5d 3261 i960-*-*)
cb253473 3262 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 3263 ;;
671aa708
NN
3264 ia64*-*-elf*)
3265 # No gdb support yet.
b4f96efe 3266 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
3267 ;;
3268 ia64*-**-hpux*)
3269 # No gdb or ld support yet.
cb253473 3270 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 3271 ;;
52535a64
DR
3272 ia64*-*-*vms*)
3273 # No gdb or ld support yet.
3274 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3275 ;;
ee6a22df 3276 i370-*-opened*)
ee6a22df 3277 ;;
f2a0e225 3278 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 3279 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3280 libgloss_dir=i386
671aa708 3281 ;;
f2a0e225 3282 i[3456789]86-*-linux*)
671aa708
NN
3283 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3284 # not build java stuff by default.
3285 case "${target}" in
3286 *-*-*libc1*)
cb253473 3287 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
3288 esac
3289
3290 # This section makes it possible to build newlib natively on linux.
3291 # If we are using a cross compiler then don't configure newlib.
3292 if test x${is_cross_compiler} != xno ; then
3aa83176 3293 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
3294 fi
3295 noconfigdirs="$noconfigdirs target-libgloss"
3296 # If we are not using a cross compiler, do configure newlib.
3297 # Note however, that newlib will only be configured in this situation
3298 # if the --with-newlib option has been given, because otherwise
3299 # 'target-newlib' will appear in skipdirs.
3300 ;;
ef4c4300
KT
3301 i[3456789]86-w64-mingw*)
3302 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3303 ;;
3304 i[3456789]86-*-mingw*)
b91f0a41
CV
3305 target_configdirs="$target_configdirs target-winsup"
3306 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3307 ;;
95af8923 3308 x86_64-*-mingw*)
95af8923 3309 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3310 ;;
671aa708
NN
3311 *-*-cygwin*)
3312 target_configdirs="$target_configdirs target-libtermcap target-winsup"
449223af 3313 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
801e2270 3314 # always build newlib if winsup directory is present.
b91f0a41 3315 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3316 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3317 elif test -d "$srcdir/newlib"; then
b91f0a41 3318 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3319 fi
1c710c3c 3320 ;;
ee6a22df
L
3321 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3322 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 3323 ;;
f2a0e225 3324 i[3456789]86-*-pe)
cb253473 3325 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3326 ;;
f2a0e225 3327 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3328 # The linker does not yet know about weak symbols in COFF,
3329 # and is not configured to handle mixed ELF and COFF.
cb253473 3330 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 3331 ;;
f2a0e225 3332 i[3456789]86-*-sco*)
cb253473 3333 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3334 ;;
f2a0e225 3335 i[3456789]86-*-solaris2*)
671aa708
NN
3336 noconfigdirs="$noconfigdirs target-libgloss"
3337 ;;
f2a0e225 3338 i[3456789]86-*-sysv4*)
cb253473 3339 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3340 ;;
f2a0e225 3341 i[3456789]86-*-beos*)
cb253473 3342 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 3343 ;;
d1f8db0c
PB
3344 i[3456789]86-*-rdos*)
3345 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3346 ;;
fb87ad5d 3347 m32r-*-*)
cb253473 3348 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 3349 ;;
671aa708 3350 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 3351 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 3352 libgloss_dir=m68hc11
671aa708
NN
3353 ;;
3354 m68k-*-elf*)
cb253473 3355 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3356 ;;
3357 m68k-*-coff*)
cb253473 3358 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3359 ;;
c03353e2
RIL
3360 m68*-*-* | fido-*-*)
3361 libgloss_dir=m68k
3362 ;;
671aa708
NN
3363 mcore-*-pe*)
3364 # The EPOC C++ environment does not support exceptions or rtti,
3365 # and so building libstdc++-v3 tends not to always work.
3366 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367 ;;
3368 mmix-*-*)
4fab7234 3369 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 3370 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
3371 ;;
3372 mn10200-*-*)
cb253473 3373 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3374 ;;
3375 mn10300-*-*)
cb253473 3376 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3377 ;;
ab34901f 3378 mt-*-*)
79dd769c
AH
3379 noconfigdirs="$noconfigdirs sim"
3380 ;;
671aa708
NN
3381 powerpc-*-aix*)
3382 # copied from rs6000-*-* entry
a891a473 3383 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3384 ;;
3385 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3386 target_configdirs="$target_configdirs target-winsup"
cb253473 3387 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
3388 # always build newlib.
3389 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3390 ;;
3391 # This is temporary until we can link against shared libraries
3392 powerpcle-*-solaris*)
cb253473 3393 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 3394 libgloss_dir=rs6000
671aa708
NN
3395 ;;
3396 powerpc-*-beos*)
cb253473 3397 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 3398 ;;
671aa708 3399 powerpc-*-eabi)
cb253473 3400 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3401 libgloss_dir=rs6000
ee6a22df
L
3402 ;;
3403 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 3404 libgloss_dir=rs6000
671aa708 3405 ;;
671aa708 3406 rs6000-*-lynxos*)
cb253473 3407 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
3408 ;;
3409 rs6000-*-aix*)
a891a473 3410 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3411 ;;
3412 rs6000-*-*)
cb253473 3413 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
3414 ;;
3415 m68k-apollo-*)
cb253473 3416 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 3417 ;;
ca9fe997 3418 microblaze*)
80920132 3419 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
ca9fe997 3420 ;;
d9dced13
RS
3421 mips*-sde-elf*)
3422 skipdirs="$skipdirs target-libiberty"
3423 noconfigdirs="$noconfigdirs ${libgcj}"
3424 if test x$with_newlib = xyes; then
3425 noconfigdirs="$noconfigdirs gprof"
3426 fi
3427 libgloss_dir=mips
3428 ;;
671aa708 3429 mips*-*-irix5*)
cb253473 3430 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
3431 ;;
3432 mips*-*-irix6*)
671aa708
NN
3433 # Linking libjava exceeds command-line length limits on at least
3434 # IRIX 6.2, but not on IRIX 6.5.
3435 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3436 # <oldham@codesourcery.com>
cb253473 3437 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3438 ;;
671aa708 3439 mips*-*-bsd*)
cb253473 3440 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3441 ;;
671aa708
NN
3442 mips*-*-linux*)
3443 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3444 ;;
3445 mips*-*-*)
cb253473 3446 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 3447 libgloss_dir=mips
671aa708
NN
3448 ;;
3449 romp-*-*)
cb253473 3450 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 3451 ;;
669f01d8 3452 sh-*-* | sh64-*-*)
671aa708 3453 case "${host}" in
f2a0e225
KC
3454 i[3456789]86-*-vsta) ;; # don't add gprof back in
3455 i[3456789]86-*-go32*) ;; # don't add gprof back in
3456 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
3457 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3458 esac
ea2002ba
CB
3459 case "${target}" in
3460 sh*-*-elf)
3461 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3462 *)
3463 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3464 esac
671aa708 3465 ;;
c03353e2
RIL
3466 sparclet-*-aout* | sparc86x-*-*)
3467 libgloss_dir=sparc
3468 ;;
671aa708 3469 sparc-*-elf*)
cb253473 3470 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3471 ;;
3472 sparc64-*-elf*)
cb253473 3473 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3474 libgloss_dir=sparc
671aa708
NN
3475 ;;
3476 sparclite-*-*)
cb253473 3477 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3478 libgloss_dir=sparc
671aa708
NN
3479 ;;
3480 sparc-*-sunos4*)
cb253473 3481 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3482 if test x${is_cross_compiler} != xno ; then
3483 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3484 else
3485 use_gnu_ld=no
3486 fi
3487 ;;
bba5e0ca 3488 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 3489 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 3490 ;;
671aa708
NN
3491 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3492 ;;
b42f0d7e
JM
3493 tic6x-*-*)
3494 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3495 ;;
671aa708 3496 v810-*-*)
cb253473 3497 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708 3498 ;;
223a9d64 3499 v850*-*-*)
d4c1abb3 3500 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3501 ;;
3502 vax-*-vms)
cb253473 3503 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
3504 ;;
3505 vax-*-*)
cb253473 3506 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3507 ;;
aa12a573 3508 xtensa*-*-*)
cb253473 3509 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 3510 ;;
671aa708 3511 ip2k-*-*)
cb253473 3512 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 3513 ;;
416ac4d4 3514 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
3515 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3516 ;;
3517 *-*-lynxos*)
cb253473 3518 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 3519 ;;
671aa708 3520 *-*-*)
cb253473 3521 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3522 ;;
3523esac
79c06341 3524
671aa708
NN
3525# If we aren't building newlib, then don't build libgloss, since libgloss
3526# depends upon some newlib header files.
3527case "${noconfigdirs}" in
3528 *target-libgloss*) ;;
3529 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3530esac
3531
671aa708
NN
3532# Work in distributions that contain no compiler tools, like Autoconf.
3533tentative_cc=""
3534host_makefile_frag=/dev/null
3535if test -d ${srcdir}/config ; then
3536case "${host}" in
3537 m68k-hp-hpux*)
3538 # Avoid "too much defining" errors from HPUX compiler.
3539 tentative_cc="cc -Wp,-H256000"
3540 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3541 # If it's HP/UX ar, this should be harmless.
3542 RANLIB="ar ts"
3543 ;;
3544 m68k-apollo-sysv*)
3545 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3546 ;;
3547 m68k-apollo-bsd*)
3548 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3549 # chokes on bfd, the compiler won't let you assign integers to enums, and
3550 # other problems. Defining CC to gcc is a questionable way to say "don't use
3551 # the apollo compiler" (the preferred version of GCC could be called cc,
3552 # or whatever), but I'm not sure leaving CC as cc is any better...
3553 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3554 # Used to have BISON=yacc.
3555 tentative_cc=gcc
3556 ;;
3557 m88k-dg-dgux*)
3558 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
3559 ;;
3560 m88k-harris-cxux*)
3561 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3562 tentative_cc="cc -Xa"
3563 host_makefile_frag="config/mh-cxux"
3564 ;;
3565 m88k-motorola-sysv*)
3566 ;;
3567 mips*-dec-ultrix*)
3568 tentative_cc="cc -Wf,-XNg1000"
3569 host_makefile_frag="config/mh-decstation"
3570 ;;
3571 mips*-nec-sysv4*)
3572 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3573 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3574 host_makefile_frag="config/mh-necv4"
3575 ;;
3576 mips*-sgi-irix4*)
3577 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3578 # environment. Also bump switch table size so that cp-parse will
3579 # compile. Bump string length limit so linker builds.
3580 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3581 ;;
3582 mips*-*-sysv4*)
3583 host_makefile_frag="config/mh-sysv4"
3584 ;;
3585 mips*-*-sysv*)
3586 # This is for a MIPS running RISC/os 4.52C.
3587
3588 # This is needed for GDB, but needs to be in the top-level make because
3589 # if a library is compiled with the bsd headers and gets linked with the
3590 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3591 # a different size).
3592 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3593 # known except to select the sysv environment. Could we use /proc instead?
3594 # These "sysv environments" and "bsd environments" often end up being a pain.
3595 #
3596 # This is not part of CFLAGS because perhaps not all C compilers have this
3597 # option.
3598 tentative_cc="cc -systype sysv"
3599 ;;
3600 i370-ibm-opened*)
3601 tentative_cc="c89"
3602 ;;
f2a0e225 3603 i[3456789]86-*-sysv5*)
671aa708
NN
3604 host_makefile_frag="config/mh-sysv5"
3605 ;;
f2a0e225 3606 i[3456789]86-*-dgux*)
671aa708
NN
3607 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3608 host_makefile_frag="config/mh-dgux386"
3609 ;;
f2a0e225 3610 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
3611 # The MetaWare compiler will generate a copyright message unless you
3612 # turn it off by adding the -Hnocopyr flag.
3613 tentative_cc="cc -Hnocopyr"
3614 ;;
f2a0e225 3615 i[3456789]86-ncr-sysv4*)
671aa708
NN
3616 # for an NCR 3000 (i486/SVR4) system.
3617 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3618 # This compiler not only emits obnoxious copyright messages every time
3619 # you run it, but it chokes and dies on a whole bunch of GNU source
3620 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3621 tentative_cc="/usr/ccs/ATT/cc"
3622 host_makefile_frag="config/mh-ncr3000"
3623 ;;
f2a0e225 3624 i[3456789]86-*-sco3.2v5*)
671aa708 3625 ;;
f2a0e225 3626 i[3456789]86-*-sco*)
671aa708
NN
3627 # The native C compiler botches some simple uses of const. Unfortunately,
3628 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3629 tentative_cc="cc -Dconst="
3630 host_makefile_frag="config/mh-sco"
3631 ;;
f2a0e225 3632 i[3456789]86-*-udk*)
671aa708
NN
3633 host_makefile_frag="config/mh-sysv5"
3634 ;;
f2a0e225 3635 i[3456789]86-*-solaris2*)
671aa708
NN
3636 host_makefile_frag="config/mh-sysv4"
3637 ;;
f2a0e225 3638 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3639 host_makefile_frag="config/mh-djgpp"
3640 ;;
3641 *-cygwin*)
2a79c47f 3642
5213506e
RW
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3644$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3645echo a >cygwin-cat-check
e25a8c82 3646if test `cat cygwin-cat-check` = a ; then
2a79c47f 3647 rm cygwin-cat-check
5213506e
RW
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649$as_echo "yes" >&6; }
2a79c47f
NC
3650else
3651 rm cygwin-cat-check
5213506e
RW
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653$as_echo "no" >&6; }
3654 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3655 Please either mount the build directory in binary mode or run the following
3656 commands before running any configure script:
3657set -o igncr
3658export SHELLOPTS
5213506e 3659 " "$LINENO" 5
2a79c47f
NC
3660fi
3661
671aa708
NN
3662 host_makefile_frag="config/mh-cygwin"
3663 ;;
c53a18d3 3664 *-mingw*)
1f5a6b84 3665 host_makefile_frag="config/mh-mingw"
95af8923 3666 ;;
671aa708
NN
3667 *-interix*)
3668 host_makefile_frag="config/mh-interix"
3669 ;;
3670 vax-*-ultrix2*)
3671 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3672 tentative_cc=gcc
3673 ;;
3674 *-*-solaris2*)
3675 host_makefile_frag="config/mh-solaris"
3676 ;;
3677 m68k-sun-sunos*)
3678 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3679 # without overflowing the jump tables (-J says to use a 32 bit table)
3680 tentative_cc="cc -J"
3681 ;;
efd41714 3682 hppa*-hp-hpux10*)
671aa708 3683 tentative_cc="cc -Wp,-H256000"
efd41714 3684 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3685 ;;
efd41714
PB
3686 hppa*-hp-hpux* | hppa*-*-hiux*)
3687 tentative_cc="cc -Wp,-H256000"
3688 host_makefile_frag="config/mh-pa"
3689 ;;
3690 hppa*-*)
3691 host_makefile_frag="config/mh-pa"
3692 ;;
3693 *-hp-hpux* | *-*-hiux*)
671aa708
NN
3694 tentative_cc="cc -Wp,-H256000"
3695 ;;
3696 rs6000-*-lynxos*)
3697 # /bin/cc is less than useful for our purposes. Always use GCC
3698 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3699 host_makefile_frag="config/mh-lynxrs6k"
3700 ;;
45f366ab 3701 powerpc-*-darwin*)
be8fff81
RB
3702 host_makefile_frag="config/mh-ppc-darwin"
3703 ;;
d19bca38
PB
3704 powerpc-*-aix*)
3705 host_makefile_frag="config/mh-ppc-aix"
3706 ;;
3707 rs6000-*-aix*)
3708 host_makefile_frag="config/mh-ppc-aix"
3709 ;;
671aa708
NN
3710 *-*-lynxos*)
3711 # /bin/cc is less than useful for our purposes. Always use GCC
3712 tentative_cc="/bin/gcc"
3713 ;;
3714 *-*-sysv4*)
3715 host_makefile_frag="config/mh-sysv4"
3716 ;;
95c53c62
RS
3717 # This is placed last to prevent interfering with the cases above.
3718 i[3456789]86-*-*)
3719 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3720 host_makefile_frag="config/mh-x86omitfp"
3721 ;;
671aa708
NN
3722esac
3723fi
3724
55ffb5ed
NN
3725# If we aren't going to be using gcc, see if we can extract a definition
3726# of CC from the fragment.
3727# Actually, use the 'pre-extracted' version above.
3728if test -z "${CC}" && test "${build}" = "${host}" ; then
3729 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3730 found=
3731 for dir in $PATH; do
3732 test -z "$dir" && dir=.
3733 if test -f $dir/gcc; then
3734 found=yes
3735 break
3736 fi
3737 done
3738 IFS="$save_ifs"
3739 if test -z "${found}" && test -n "${tentative_cc}" ; then
3740 CC=$tentative_cc
3741 fi
3742fi
3743
3744if test "${build}" != "${host}" ; then
0999159b
PB
3745 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3746 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3747 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3748 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3749 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3750 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3751 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3752 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3753 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3754 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3755 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3756 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3757else
3758 AR_FOR_BUILD="\$(AR)"
3759 AS_FOR_BUILD="\$(AS)"
fb0103e5 3760 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3761 CXX_FOR_BUILD="\$(CXX)"
3762 GCJ_FOR_BUILD="\$(GCJ)"
3763 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3764 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3765 LD_FOR_BUILD="\$(LD)"
3766 NM_FOR_BUILD="\$(NM)"
3767 RANLIB_FOR_BUILD="\$(RANLIB)"
3768 WINDRES_FOR_BUILD="\$(WINDRES)"
3769 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3770fi
3771
3772ac_ext=c
1c710c3c
DJ
3773ac_cpp='$CPP $CPPFLAGS'
3774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777if test -n "$ac_tool_prefix"; then
3778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3779set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781$as_echo_n "checking for $ac_word... " >&6; }
3782if test "${ac_cv_prog_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3784else
3785 if test -n "$CC"; then
3786 ac_cv_prog_CC="$CC" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
5213506e
RW
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3797 break 2
3798 fi
3799done
5213506e
RW
3800 done
3801IFS=$as_save_IFS
1c710c3c
DJ
3802
3803fi
3804fi
3805CC=$ac_cv_prog_CC
3806if test -n "$CC"; then
5213506e
RW
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808$as_echo "$CC" >&6; }
1c710c3c 3809else
5213506e
RW
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811$as_echo "no" >&6; }
1c710c3c
DJ
3812fi
3813
5213506e 3814
1c710c3c
DJ
3815fi
3816if test -z "$ac_cv_prog_CC"; then
3817 ac_ct_CC=$CC
fb0103e5
RG
3818 # Extract the first word of "gcc", so it can be a program name with args.
3819set dummy gcc; ac_word=$2
5213506e
RW
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821$as_echo_n "checking for $ac_word... " >&6; }
3822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3824else
3825 if test -n "$ac_ct_CC"; then
3826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3827else
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
5213506e
RW
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3835 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3837 break 2
3838 fi
3839done
5213506e
RW
3840 done
3841IFS=$as_save_IFS
1c710c3c
DJ
3842
3843fi
3844fi
3845ac_ct_CC=$ac_cv_prog_ac_ct_CC
3846if test -n "$ac_ct_CC"; then
5213506e
RW
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3848$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3849else
5213506e
RW
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851$as_echo "no" >&6; }
1c710c3c
DJ
3852fi
3853
5213506e
RW
3854 if test "x$ac_ct_CC" = x; then
3855 CC=""
3856 else
3857 case $cross_compiling:$ac_tool_warned in
3858yes:)
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3861ac_tool_warned=yes ;;
3862esac
3863 CC=$ac_ct_CC
3864 fi
1c710c3c
DJ
3865else
3866 CC="$ac_cv_prog_CC"
3867fi
3868
3869if test -z "$CC"; then
5213506e
RW
3870 if test -n "$ac_tool_prefix"; then
3871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3872set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874$as_echo_n "checking for $ac_word... " >&6; }
3875if test "${ac_cv_prog_CC+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3877else
3878 if test -n "$CC"; then
3879 ac_cv_prog_CC="$CC" # Let the user override the test.
3880else
1c710c3c
DJ
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
3883do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
5213506e
RW
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3888 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3890 break 2
3891 fi
3892done
5213506e
RW
3893 done
3894IFS=$as_save_IFS
1c710c3c 3895
0b0dc272 3896fi
0b0dc272 3897fi
1c710c3c 3898CC=$ac_cv_prog_CC
af71363e 3899if test -n "$CC"; then
5213506e
RW
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3901$as_echo "$CC" >&6; }
2aeb72e9 3902else
5213506e
RW
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904$as_echo "no" >&6; }
2aeb72e9
DD
3905fi
3906
2aeb72e9 3907
5213506e 3908 fi
1c710c3c 3909fi
55ffb5ed
NN
3910if test -z "$CC"; then
3911 # Extract the first word of "cc", so it can be a program name with args.
3912set dummy cc; ac_word=$2
5213506e
RW
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914$as_echo_n "checking for $ac_word... " >&6; }
3915if test "${ac_cv_prog_CC+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3917else
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
3920else
0b0dc272 3921 ac_prog_rejected=no
1c710c3c
DJ
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
5213506e
RW
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3930 ac_prog_rejected=yes
3931 continue
3932 fi
3933 ac_cv_prog_CC="cc"
5213506e 3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3935 break 2
3936 fi
3937done
5213506e
RW
3938 done
3939IFS=$as_save_IFS
1c710c3c 3940
55ffb5ed
NN
3941if test $ac_prog_rejected = yes; then
3942 # We found a bogon in the path, so make sure we never use it.
3943 set dummy $ac_cv_prog_CC
3944 shift
1c710c3c 3945 if test $# != 0; then
55ffb5ed
NN
3946 # We chose a different compiler from the bogus one.
3947 # However, it has the same basename, so the bogon will be chosen
3948 # first if we set CC to just the basename; use the full file name.
3949 shift
1c710c3c 3950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3951 fi
3952fi
3953fi
3954fi
1c710c3c 3955CC=$ac_cv_prog_CC
55ffb5ed 3956if test -n "$CC"; then
5213506e
RW
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3958$as_echo "$CC" >&6; }
55ffb5ed 3959else
5213506e
RW
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
55ffb5ed
NN
3962fi
3963
5213506e 3964
1c710c3c
DJ
3965fi
3966if test -z "$CC"; then
3967 if test -n "$ac_tool_prefix"; then
5213506e 3968 for ac_prog in cl.exe
1c710c3c
DJ
3969 do
3970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973$as_echo_n "checking for $ac_word... " >&6; }
3974if test "${ac_cv_prog_CC+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3976else
3977 if test -n "$CC"; then
3978 ac_cv_prog_CC="$CC" # Let the user override the test.
3979else
1c710c3c
DJ
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
5213506e
RW
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3989 break 2
3990 fi
3991done
5213506e
RW
3992 done
3993IFS=$as_save_IFS
1c710c3c 3994
55ffb5ed
NN
3995fi
3996fi
1c710c3c 3997CC=$ac_cv_prog_CC
55ffb5ed 3998if test -n "$CC"; then
5213506e
RW
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4000$as_echo "$CC" >&6; }
a4b9e93e 4001else
5213506e
RW
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003$as_echo "no" >&6; }
fb0103e5 4004fi
af71363e 4005
5213506e 4006
1c710c3c
DJ
4007 test -n "$CC" && break
4008 done
af71363e 4009fi
1c710c3c
DJ
4010if test -z "$CC"; then
4011 ac_ct_CC=$CC
5213506e 4012 for ac_prog in cl.exe
1c710c3c
DJ
4013do
4014 # Extract the first word of "$ac_prog", so it can be a program name with args.
4015set dummy $ac_prog; ac_word=$2
5213506e
RW
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017$as_echo_n "checking for $ac_word... " >&6; }
4018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4019 $as_echo_n "(cached) " >&6
0b0dc272 4020else
1c710c3c
DJ
4021 if test -n "$ac_ct_CC"; then
4022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4023else
1c710c3c
DJ
4024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in $PATH
4026do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
5213506e
RW
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4031 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4033 break 2
4034 fi
4035done
5213506e
RW
4036 done
4037IFS=$as_save_IFS
1c710c3c 4038
af71363e
AS
4039fi
4040fi
1c710c3c
DJ
4041ac_ct_CC=$ac_cv_prog_ac_ct_CC
4042if test -n "$ac_ct_CC"; then
5213506e
RW
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4044$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4045else
5213506e
RW
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047$as_echo "no" >&6; }
af71363e 4048fi
0b0dc272 4049
5213506e 4050
1c710c3c
DJ
4051 test -n "$ac_ct_CC" && break
4052done
4053
5213506e
RW
4054 if test "x$ac_ct_CC" = x; then
4055 CC=""
4056 else
4057 case $cross_compiling:$ac_tool_warned in
4058yes:)
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061ac_tool_warned=yes ;;
4062esac
4063 CC=$ac_ct_CC
4064 fi
1c710c3c
DJ
4065fi
4066
4067fi
4068
4069
5213506e
RW
4070test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072as_fn_error "no acceptable C compiler found in \$PATH
4073See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4074
4075# Provide some information about the compiler.
5213506e
RW
4076$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4077set X $ac_compile
4078ac_compiler=$2
4079for ac_option in --version -v -V -qversion; do
4080 { { ac_try="$ac_compiler $ac_option >&5"
4081case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084esac
4085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086$as_echo "$ac_try_echo"; } >&5
4087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4088 ac_status=$?
5213506e
RW
4089 if test -s conftest.err; then
4090 sed '10a\
4091... rest of stderr output deleted ...
4092 10q' conftest.err >conftest.er1
4093 cat conftest.er1 >&5
4094 rm -f conftest.er1 conftest.err
4095 fi
4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097 test $ac_status = 0; }
4098done
1c710c3c 4099
5213506e 4100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4101/* end confdefs.h. */
4102
4103int
4104main ()
4105{
4106
4107 ;
4108 return 0;
4109}
4110_ACEOF
4111ac_clean_files_save=$ac_clean_files
5213506e 4112ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4113# Try to create an executable without -o first, disregard a.out.
4114# It will help us diagnose broken compilers, and finding out an intuition
4115# of exeext.
5213506e
RW
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4117$as_echo_n "checking for C compiler default output file name... " >&6; }
4118ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4119
4120# The possible output files:
4121ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4122
4123ac_rmfiles=
4124for ac_file in $ac_files
4125do
4126 case $ac_file in
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4129 esac
4130done
4131rm -f $ac_rmfiles
4132
4133if { { ac_try="$ac_link_default"
4134case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
4138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4139$as_echo "$ac_try_echo"; } >&5
4140 (eval "$ac_link_default") 2>&5
1c710c3c 4141 ac_status=$?
5213506e
RW
4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143 test $ac_status = 0; }; then :
4144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4145# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4146# in a Makefile. We should not override ac_cv_exeext if it was cached,
4147# so that the user can short-circuit this test for compilers unknown to
4148# Autoconf.
4149for ac_file in $ac_files ''
1c710c3c
DJ
4150do
4151 test -f "$ac_file" || continue
4152 case $ac_file in
5213506e 4153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4154 ;;
4155 [ab].out )
4156 # We found the default executable, but exeext='' is most
4157 # certainly right.
4158 break;;
4159 *.* )
5213506e
RW
4160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4161 then :; else
4162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4163 fi
4164 # We set ac_cv_exeext here because the later test for it is not
4165 # safe: cross compilers may not add the suffix if given an `-o'
4166 # argument, so we may need to know it at that point already.
4167 # Even if this section looks crufty: it has the advantage of
4168 # actually working.
1c710c3c
DJ
4169 break;;
4170 * )
4171 break;;
4172 esac
4173done
5213506e
RW
4174test "$ac_cv_exeext" = no && ac_cv_exeext=
4175
1c710c3c 4176else
5213506e
RW
4177 ac_file=''
4178fi
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4180$as_echo "$ac_file" >&6; }
4181if test -z "$ac_file"; then :
4182 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4183sed 's/^/| /' conftest.$ac_ext >&5
4184
5213506e
RW
4185{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187{ as_fn_set_status 77
4188as_fn_error "C compiler cannot create executables
4189See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4190fi
1c710c3c 4191ac_exeext=$ac_cv_exeext
1c710c3c 4192
5213506e 4193# Check that the compiler produces executables we can run. If not, either
1c710c3c 4194# the compiler is broken, or we cross compile.
5213506e
RW
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4196$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4197# If not cross compiling, check that we can run a simple program.
4198if test "$cross_compiling" != yes; then
4199 if { ac_try='./$ac_file'
5213506e
RW
4200 { { case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203esac
4204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205$as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_try") 2>&5
1c710c3c 4207 ac_status=$?
5213506e
RW
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; }; then
1c710c3c
DJ
4210 cross_compiling=no
4211 else
4212 if test "$cross_compiling" = maybe; then
4213 cross_compiling=yes
4214 else
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 run C compiled programs.
1c710c3c 4218If you meant to cross compile, use \`--host'.
5213506e 4219See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4220 fi
4221 fi
4222fi
5213506e
RW
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4224$as_echo "yes" >&6; }
1c710c3c 4225
5213506e 4226rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4227ac_clean_files=$ac_clean_files_save
5213506e 4228# Check that the compiler produces executables we can run. If not, either
1c710c3c 4229# the compiler is broken, or we cross compile.
5213506e
RW
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4231$as_echo_n "checking whether we are cross compiling... " >&6; }
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4233$as_echo "$cross_compiling" >&6; }
4234
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4236$as_echo_n "checking for suffix of executables... " >&6; }
4237if { { ac_try="$ac_link"
4238case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243$as_echo "$ac_try_echo"; } >&5
4244 (eval "$ac_link") 2>&5
1c710c3c 4245 ac_status=$?
5213506e
RW
4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }; then :
1c710c3c
DJ
4248 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4249# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4250# work properly (i.e., refer to `conftest.exe'), while it won't with
4251# `rm'.
4252for ac_file in conftest.exe conftest conftest.*; do
4253 test -f "$ac_file" || continue
4254 case $ac_file in
5213506e 4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4257 break;;
4258 * ) break;;
4259 esac
4260done
af71363e 4261else
5213506e
RW
4262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4264as_fn_error "cannot compute suffix of executables: cannot compile and link
4265See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4266fi
1c710c3c 4267rm -f conftest$ac_cv_exeext
5213506e
RW
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4269$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4270
4271rm -f conftest.$ac_ext
4272EXEEXT=$ac_cv_exeext
4273ac_exeext=$EXEEXT
5213506e
RW
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4275$as_echo_n "checking for suffix of object files... " >&6; }
4276if test "${ac_cv_objext+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
1c710c3c 4278else
5213506e 4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4280/* end confdefs.h. */
4281
4282int
4283main ()
4284{
4285
4286 ;
4287 return 0;
4288}
4289_ACEOF
4290rm -f conftest.o conftest.obj
5213506e
RW
4291if { { ac_try="$ac_compile"
4292case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297$as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_compile") 2>&5
1c710c3c 4299 ac_status=$?
5213506e
RW
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }; then :
4302 for ac_file in conftest.o conftest.obj conftest.*; do
4303 test -f "$ac_file" || continue;
1c710c3c 4304 case $ac_file in
5213506e 4305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4307 break;;
4308 esac
4309done
4310else
5213506e 4311 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
5213506e
RW
4314{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316as_fn_error "cannot compute suffix of object files: cannot compile
4317See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4318fi
1c710c3c
DJ
4319rm -f conftest.$ac_cv_objext conftest.$ac_ext
4320fi
5213506e
RW
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4322$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4323OBJEXT=$ac_cv_objext
4324ac_objext=$OBJEXT
5213506e
RW
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4326$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4327if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
1c710c3c 4329else
5213506e 4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4331/* end confdefs.h. */
4332
4333int
4334main ()
4335{
4336#ifndef __GNUC__
4337 choke me
4338#endif
4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
5213506e 4344if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4345 ac_compiler_gnu=yes
4346else
5213506e 4347 ac_compiler_gnu=no
1c710c3c 4348fi
5213506e 4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4350ac_cv_c_compiler_gnu=$ac_compiler_gnu
4351
4352fi
5213506e
RW
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4354$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4355if test $ac_compiler_gnu = yes; then
4356 GCC=yes
4357else
4358 GCC=
4359fi
1c710c3c
DJ
4360ac_test_CFLAGS=${CFLAGS+set}
4361ac_save_CFLAGS=$CFLAGS
5213506e
RW
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4363$as_echo_n "checking whether $CC accepts -g... " >&6; }
4364if test "${ac_cv_prog_cc_g+set}" = set; then :
4365 $as_echo_n "(cached) " >&6
4366else
4367 ac_save_c_werror_flag=$ac_c_werror_flag
4368 ac_c_werror_flag=yes
4369 ac_cv_prog_cc_g=no
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4372/* end confdefs.h. */
4373
4374int
4375main ()
4376{
4377
4378 ;
4379 return 0;
4380}
4381_ACEOF
5213506e 4382if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4383 ac_cv_prog_cc_g=yes
4384else
5213506e
RW
4385 CFLAGS=""
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387/* end confdefs.h. */
4388
4389int
4390main ()
4391{
4392
4393 ;
4394 return 0;
4395}
4396_ACEOF
4397if ac_fn_c_try_compile "$LINENO"; then :
4398
4399else
4400 ac_c_werror_flag=$ac_save_c_werror_flag
4401 CFLAGS="-g"
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403/* end confdefs.h. */
af71363e 4404
5213506e
RW
4405int
4406main ()
4407{
4408
4409 ;
4410 return 0;
4411}
4412_ACEOF
4413if ac_fn_c_try_compile "$LINENO"; then :
4414 ac_cv_prog_cc_g=yes
4415fi
4416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4417fi
5213506e 4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4419fi
5213506e
RW
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_c_werror_flag=$ac_save_c_werror_flag
4422fi
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4424$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4425if test "$ac_test_CFLAGS" = set; then
1c710c3c 4426 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4427elif test $ac_cv_prog_cc_g = yes; then
4428 if test "$GCC" = yes; then
4429 CFLAGS="-g -O2"
4430 else
4431 CFLAGS="-g"
4432 fi
4433else
4434 if test "$GCC" = yes; then
4435 CFLAGS="-O2"
4436 else
4437 CFLAGS=
4438 fi
4439fi
5213506e
RW
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4441$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4442if test "${ac_cv_prog_cc_c89+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
1c710c3c 4444else
5213506e 4445 ac_cv_prog_cc_c89=no
1c710c3c 4446ac_save_CC=$CC
5213506e 4447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4448/* end confdefs.h. */
4449#include <stdarg.h>
4450#include <stdio.h>
4451#include <sys/types.h>
4452#include <sys/stat.h>
4453/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4454struct buf { int x; };
4455FILE * (*rcsopen) (struct buf *, struct stat *, int);
4456static char *e (p, i)
4457 char **p;
4458 int i;
4459{
4460 return p[i];
4461}
4462static char *f (char * (*g) (char **, int), char **p, ...)
4463{
4464 char *s;
4465 va_list v;
4466 va_start (v,p);
4467 s = g (p, va_arg (v,int));
4468 va_end (v);
4469 return s;
4470}
4471
4472/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4473 function prototypes and stuff, but not '\xHH' hex character constants.
4474 These don't provoke an error unfortunately, instead are silently treated
5213506e 4475 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4477 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4478 that's true only with -std. */
1c710c3c
DJ
4479int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4480
5213506e
RW
4481/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4482 inside strings and character constants. */
4483#define FOO(x) 'x'
4484int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4485
1c710c3c
DJ
4486int test (int i, double x);
4487struct s1 {int (*f) (int a);};
4488struct s2 {int (*f) (double a);};
4489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4490int argc;
4491char **argv;
4492int
4493main ()
4494{
4495return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4496 ;
4497 return 0;
4498}
4499_ACEOF
5213506e
RW
4500for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4501 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4502do
4503 CC="$ac_save_CC $ac_arg"
5213506e
RW
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4506fi
5213506e
RW
4507rm -f core conftest.err conftest.$ac_objext
4508 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4509done
5213506e 4510rm -f conftest.$ac_ext
1c710c3c
DJ
4511CC=$ac_save_CC
4512
4513fi
5213506e
RW
4514# AC_CACHE_VAL
4515case "x$ac_cv_prog_cc_c89" in
4516 x)
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4518$as_echo "none needed" >&6; } ;;
4519 xno)
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4521$as_echo "unsupported" >&6; } ;;
1c710c3c 4522 *)
5213506e
RW
4523 CC="$CC $ac_cv_prog_cc_c89"
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4525$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4526esac
5213506e 4527if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4528
2aeb72e9
DD
4529fi
4530
2aeb72e9
DD
4531ac_ext=c
4532ac_cpp='$CPP $CPPFLAGS'
4533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
5213506e 4537ac_ext=cpp
2aeb72e9
DD
4538ac_cpp='$CXXCPP $CPPFLAGS'
4539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4542if test -z "$CXX"; then
4543 if test -n "$CCC"; then
4544 CXX=$CCC
4545 else
4546 if test -n "$ac_tool_prefix"; then
4547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4548 do
4549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552$as_echo_n "checking for $ac_word... " >&6; }
4553if test "${ac_cv_prog_CXX+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4555else
4556 if test -n "$CXX"; then
4557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4558else
4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560for as_dir in $PATH
4561do
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
5213506e
RW
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4566 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4568 break 2
4569 fi
4570done
5213506e
RW
4571 done
4572IFS=$as_save_IFS
55ffb5ed 4573
c3a86da9
DJ
4574fi
4575fi
4576CXX=$ac_cv_prog_CXX
4577if test -n "$CXX"; then
5213506e
RW
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4579$as_echo "$CXX" >&6; }
c3a86da9 4580else
5213506e
RW
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582$as_echo "no" >&6; }
c3a86da9
DJ
4583fi
4584
5213506e 4585
c3a86da9
DJ
4586 test -n "$CXX" && break
4587 done
4588fi
4589if test -z "$CXX"; then
4590 ac_ct_CXX=$CXX
5213506e 4591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4592do
4593 # Extract the first word of "$ac_prog", so it can be a program name with args.
4594set dummy $ac_prog; ac_word=$2
5213506e
RW
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596$as_echo_n "checking for $ac_word... " >&6; }
4597if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4599else
4600 if test -n "$ac_ct_CXX"; then
4601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
5213506e
RW
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4610 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4612 break 2
4613 fi
4614done
5213506e
RW
4615 done
4616IFS=$as_save_IFS
c3a86da9
DJ
4617
4618fi
4619fi
4620ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621if test -n "$ac_ct_CXX"; then
5213506e
RW
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4623$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4624else
5213506e
RW
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626$as_echo "no" >&6; }
c3a86da9
DJ
4627fi
4628
5213506e 4629
c3a86da9
DJ
4630 test -n "$ac_ct_CXX" && break
4631done
c3a86da9 4632
5213506e
RW
4633 if test "x$ac_ct_CXX" = x; then
4634 CXX="g++"
4635 else
4636 case $cross_compiling:$ac_tool_warned in
4637yes:)
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640ac_tool_warned=yes ;;
4641esac
4642 CXX=$ac_ct_CXX
4643 fi
c3a86da9
DJ
4644fi
4645
5213506e
RW
4646 fi
4647fi
c3a86da9 4648# Provide some information about the compiler.
5213506e
RW
4649$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4650set X $ac_compile
4651ac_compiler=$2
4652for ac_option in --version -v -V -qversion; do
4653 { { ac_try="$ac_compiler $ac_option >&5"
4654case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657esac
4658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659$as_echo "$ac_try_echo"; } >&5
4660 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4661 ac_status=$?
5213506e
RW
4662 if test -s conftest.err; then
4663 sed '10a\
4664... rest of stderr output deleted ...
4665 10q' conftest.err >conftest.er1
4666 cat conftest.er1 >&5
4667 rm -f conftest.er1 conftest.err
4668 fi
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }
4671done
c3a86da9 4672
5213506e
RW
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4674$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4675if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
c3a86da9 4677else
5213506e 4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4679/* end confdefs.h. */
4680
4681int
4682main ()
4683{
4684#ifndef __GNUC__
4685 choke me
4686#endif
4687
4688 ;
4689 return 0;
4690}
4691_ACEOF
5213506e 4692if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4693 ac_compiler_gnu=yes
4694else
5213506e 4695 ac_compiler_gnu=no
c3a86da9 4696fi
5213506e 4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4698ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4699
4700fi
5213506e
RW
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4702$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4703if test $ac_compiler_gnu = yes; then
4704 GXX=yes
4705else
4706 GXX=
4707fi
c3a86da9
DJ
4708ac_test_CXXFLAGS=${CXXFLAGS+set}
4709ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4711$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4712if test "${ac_cv_prog_cxx_g+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
4714else
4715 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4716 ac_cxx_werror_flag=yes
4717 ac_cv_prog_cxx_g=no
4718 CXXFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4720/* end confdefs.h. */
4721
4722int
4723main ()
4724{
4725
4726 ;
4727 return 0;
4728}
4729_ACEOF
5213506e 4730if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4731 ac_cv_prog_cxx_g=yes
4732else
5213506e
RW
4733 CXXFLAGS=""
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4735/* end confdefs.h. */
5213506e 4736
c3a86da9
DJ
4737int
4738main ()
4739{
5213506e 4740
c3a86da9
DJ
4741 ;
4742 return 0;
4743}
4744_ACEOF
5213506e 4745if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4746
5213506e
RW
4747else
4748 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4749 CXXFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4751/* end confdefs.h. */
5213506e 4752
c3a86da9
DJ
4753int
4754main ()
4755{
5213506e 4756
c3a86da9
DJ
4757 ;
4758 return 0;
4759}
4760_ACEOF
5213506e
RW
4761if ac_fn_cxx_try_compile "$LINENO"; then :
4762 ac_cv_prog_cxx_g=yes
11a67599 4763fi
5213506e
RW
4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765fi
4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767fi
4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4770fi
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4772$as_echo "$ac_cv_prog_cxx_g" >&6; }
4773if test "$ac_test_CXXFLAGS" = set; then
4774 CXXFLAGS=$ac_save_CXXFLAGS
4775elif test $ac_cv_prog_cxx_g = yes; then
4776 if test "$GXX" = yes; then
4777 CXXFLAGS="-g -O2"
4778 else
4779 CXXFLAGS="-g"
4780 fi
4781else
4782 if test "$GXX" = yes; then
4783 CXXFLAGS="-O2"
4784 else
4785 CXXFLAGS=
4786 fi
c3a86da9 4787fi
c3a86da9
DJ
4788ac_ext=c
4789ac_cpp='$CPP $CPPFLAGS'
4790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794
4795# We must set the default linker to the linker used by gcc for the correct
4796# operation of libtool. If LD is not defined and we are using gcc, try to
4797# set the LD default to the ld used by gcc.
4798if test -z "$LD"; then
4799 if test "$GCC" = yes; then
4800 case $build in
4801 *-*-mingw*)
4802 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4803 *)
4804 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4805 esac
4806 case $gcc_prog_ld in
4807 # Accept absolute paths.
4808 [\\/]* | [A-Za-z]:[\\/]*)
4809 LD="$gcc_prog_ld" ;;
4810 esac
4811 fi
23f6b2f9
PB
4812fi
4813
23f6b2f9
PB
4814
4815
55ffb5ed 4816
1c710c3c
DJ
4817if test -n "$ac_tool_prefix"; then
4818 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4819set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821$as_echo_n "checking for $ac_word... " >&6; }
4822if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4824else
4825 if test -n "$GNATBIND"; then
4826 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4827else
1c710c3c
DJ
4828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
5213506e
RW
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4835 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4837 break 2
4838 fi
4839done
5213506e
RW
4840 done
4841IFS=$as_save_IFS
1c710c3c 4842
55ffb5ed
NN
4843fi
4844fi
1c710c3c 4845GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4846if test -n "$GNATBIND"; then
5213506e
RW
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4848$as_echo "$GNATBIND" >&6; }
55ffb5ed 4849else
5213506e
RW
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
55ffb5ed
NN
4852fi
4853
5213506e 4854
1c710c3c 4855fi
55ffb5ed 4856if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4857 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4858 # Extract the first word of "gnatbind", so it can be a program name with args.
4859set dummy gnatbind; ac_word=$2
5213506e
RW
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861$as_echo_n "checking for $ac_word... " >&6; }
4862if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
55ffb5ed 4864else
1c710c3c
DJ
4865 if test -n "$ac_ct_GNATBIND"; then
4866 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4867else
1c710c3c
DJ
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
5213506e
RW
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4875 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4877 break 2
4878 fi
4879done
5213506e
RW
4880 done
4881IFS=$as_save_IFS
1c710c3c 4882
55ffb5ed
NN
4883fi
4884fi
1c710c3c
DJ
4885ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4886if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4888$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4889else
5213506e
RW
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891$as_echo "no" >&6; }
55ffb5ed
NN
4892fi
4893
5213506e
RW
4894 if test "x$ac_ct_GNATBIND" = x; then
4895 GNATBIND="no"
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898yes:)
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901ac_tool_warned=yes ;;
4902esac
4903 GNATBIND=$ac_ct_GNATBIND
4904 fi
55ffb5ed 4905else
1c710c3c 4906 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4907fi
4908
1c710c3c
DJ
4909if test -n "$ac_tool_prefix"; then
4910 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4911set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913$as_echo_n "checking for $ac_word... " >&6; }
4914if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
5305be7e
RG
4916else
4917 if test -n "$GNATMAKE"; then
4918 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4919else
1c710c3c
DJ
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
5213506e
RW
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4927 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4929 break 2
4930 fi
4931done
5213506e
RW
4932 done
4933IFS=$as_save_IFS
1c710c3c 4934
5305be7e
RG
4935fi
4936fi
1c710c3c 4937GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4938if test -n "$GNATMAKE"; then
5213506e
RW
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4940$as_echo "$GNATMAKE" >&6; }
5305be7e 4941else
5213506e
RW
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943$as_echo "no" >&6; }
5305be7e
RG
4944fi
4945
5213506e 4946
1c710c3c 4947fi
5305be7e 4948if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4949 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4950 # Extract the first word of "gnatmake", so it can be a program name with args.
4951set dummy gnatmake; ac_word=$2
5213506e
RW
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953$as_echo_n "checking for $ac_word... " >&6; }
4954if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
5305be7e 4956else
1c710c3c
DJ
4957 if test -n "$ac_ct_GNATMAKE"; then
4958 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4959else
1c710c3c
DJ
4960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961for as_dir in $PATH
4962do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
5213506e
RW
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4967 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4969 break 2
4970 fi
4971done
5213506e
RW
4972 done
4973IFS=$as_save_IFS
1c710c3c 4974
5305be7e
RG
4975fi
4976fi
1c710c3c
DJ
4977ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4978if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4980$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 4981else
5213506e
RW
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983$as_echo "no" >&6; }
5305be7e
RG
4984fi
4985
5213506e
RW
4986 if test "x$ac_ct_GNATMAKE" = x; then
4987 GNATMAKE="no"
4988 else
4989 case $cross_compiling:$ac_tool_warned in
4990yes:)
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993ac_tool_warned=yes ;;
4994esac
4995 GNATMAKE=$ac_ct_GNATMAKE
4996 fi
5305be7e 4997else
1c710c3c 4998 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4999fi
5000
5213506e
RW
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5002$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5003if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5005else
5006 cat >conftest.adb <<EOF
5007procedure conftest is begin null; end conftest;
5008EOF
5009acx_cv_cc_gcc_supports_ada=no
5010# There is a bug in old released versions of GCC which causes the
5011# driver to exit successfully when the appropriate language module
5012# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5013# Therefore we must check for the error message as well as an
5014# unsuccessful exit.
1db673ca
RO
5015# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5016# given a .adb file, but produce no object file. So we must check
5017# if an object file was really produced to guard against this.
55ffb5ed 5018errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5019if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5020 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5021fi
5022rm -f conftest.*
5023fi
5213506e
RW
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5025$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5026
5305be7e 5027if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5028 have_gnat=yes
5029else
5030 have_gnat=no
5031fi
5032
5213506e
RW
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5034$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5035if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
a76494aa
PB
5037else
5038 echo abfoo >t1
5039 echo cdfoo >t2
5040 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5041 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5042 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5043 :
5044 else
5045 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5046 fi
5047 fi
a76494aa
PB
5048 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5049 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5050 :
a76494aa
PB
5051 else
5052 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5053 fi
5054 fi
5055 rm t1 t2
5056
5057fi
5213506e
RW
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5059$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5060do_compare="$gcc_cv_prog_cmp_skip"
5061
5062
55ffb5ed 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
592c90ff
KG
5073# Used for setting $lt_cv_objdir
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5075$as_echo_n "checking for objdir... " >&6; }
5076if test "${lt_cv_objdir+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5078else
5079 rm -f .libs 2>/dev/null
5080mkdir .libs 2>/dev/null
5081if test -d .libs; then
5082 lt_cv_objdir=.libs
5083else
5084 # MS-DOS does not allow filenames that begin with a dot.
5085 lt_cv_objdir=_libs
5086fi
5087rmdir .libs 2>/dev/null
5088fi
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5090$as_echo "$lt_cv_objdir" >&6; }
5091objdir=$lt_cv_objdir
5092
5093
5094
5095
5096
5097cat >>confdefs.h <<_ACEOF
5098#define LT_OBJDIR "$lt_cv_objdir/"
5099_ACEOF
5100
5101
5102
acd26225 5103# Check for GMP, MPFR and MPC
3a5729ea 5104gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5105gmpinc=
e69bf64b 5106have_gmp=no
acd26225
KG
5107
5108# Specify a location for mpc
5109# check for this first so it ends up on the link line before mpfr.
5110
5213506e
RW
5111# Check whether --with-mpc was given.
5112if test "${with_mpc+set}" = set; then :
5113 withval=$with_mpc;
5114fi
acd26225 5115
acd26225 5116
5213506e
RW
5117# Check whether --with-mpc_include was given.
5118if test "${with_mpc_include+set}" = set; then :
5119 withval=$with_mpc_include;
5120fi
acd26225 5121
acd26225 5122
5213506e
RW
5123# Check whether --with-mpc_lib was given.
5124if test "${with_mpc_lib+set}" = set; then :
5125 withval=$with_mpc_lib;
5126fi
acd26225 5127
acd26225
KG
5128
5129if test "x$with_mpc" != x; then
3a5729ea
KG
5130 gmplibs="-L$with_mpc/lib $gmplibs"
5131 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5132fi
5133if test "x$with_mpc_include" != x; then
3a5729ea 5134 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5135fi
5136if test "x$with_mpc_lib" != x; then
3a5729ea 5137 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5138fi
5139if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5140 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5141 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5142 # Do not test the mpc version. Assume that it is sufficient, since
5143 # it is in the source tree, and the library has not been built yet
5144 # but it would be included on the link line in the version check below
5145 # hence making the test fail.
3a5729ea 5146 have_gmp=yes
acd26225 5147fi
e69bf64b 5148
bebf829d
PB
5149# Specify a location for mpfr
5150# check for this first so it ends up on the link line before gmp.
1c710c3c 5151
5213506e
RW
5152# Check whether --with-mpfr-dir was given.
5153if test "${with_mpfr_dir+set}" = set; then :
5154 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5155Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5156fi
5157
bebf829d
PB
5158
5159
5213506e
RW
5160# Check whether --with-mpfr was given.
5161if test "${with_mpfr+set}" = set; then :
5162 withval=$with_mpfr;
5163fi
1c710c3c 5164
bebf829d 5165
5213506e
RW
5166# Check whether --with-mpfr_include was given.
5167if test "${with_mpfr_include+set}" = set; then :
5168 withval=$with_mpfr_include;
5169fi
1c710c3c 5170
8a877c9c 5171
5213506e
RW
5172# Check whether --with-mpfr_lib was given.
5173if test "${with_mpfr_lib+set}" = set; then :
5174 withval=$with_mpfr_lib;
5175fi
8a877c9c 5176
bebf829d
PB
5177
5178if test "x$with_mpfr" != x; then
5179 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5180 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5181fi
8a877c9c 5182if test "x$with_mpfr_include" != x; then
3a5729ea 5183 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5184fi
5185if test "x$with_mpfr_lib" != x; then
5186 gmplibs="-L$with_mpfr_lib $gmplibs"
5187fi
e69bf64b 5188if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
592c90ff 5189 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
e69bf64b 5190 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
592c90ff 5191 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
e69bf64b
PB
5192 # Do not test the mpfr version. Assume that it is sufficient, since
5193 # it is in the source tree, and the library has not been built yet
5194 # but it would be included on the link line in the version check below
5195 # hence making the test fail.
5196 have_gmp=yes
5197fi
bebf829d 5198
6de9cd9a 5199# Specify a location for gmp
1c710c3c 5200
5213506e
RW
5201# Check whether --with-gmp-dir was given.
5202if test "${with_gmp_dir+set}" = set; then :
5203 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5204Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5205fi
5206
6de9cd9a 5207
6de9cd9a 5208
5213506e
RW
5209# Check whether --with-gmp was given.
5210if test "${with_gmp+set}" = set; then :
5211 withval=$with_gmp;
5212fi
1c710c3c 5213
6de9cd9a 5214
5213506e
RW
5215# Check whether --with-gmp_include was given.
5216if test "${with_gmp_include+set}" = set; then :
5217 withval=$with_gmp_include;
5218fi
1c710c3c 5219
8a877c9c 5220
5213506e
RW
5221# Check whether --with-gmp_lib was given.
5222if test "${with_gmp_lib+set}" = set; then :
5223 withval=$with_gmp_lib;
5224fi
8a877c9c
KG
5225
5226
6de9cd9a 5227
bebf829d
PB
5228if test "x$with_gmp" != x; then
5229 gmplibs="-L$with_gmp/lib $gmplibs"
5230 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5231fi
8a877c9c
KG
5232if test "x$with_gmp_include" != x; then
5233 gmpinc="-I$with_gmp_include $gmpinc"
5234fi
5235if test "x$with_gmp_lib" != x; then
5236 gmplibs="-L$with_gmp_lib $gmplibs"
5237fi
e69bf64b 5238if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5239 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5240 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5241 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5242 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e69bf64b
PB
5243 # Do not test the gmp version. Assume that it is sufficient, since
5244 # it is in the source tree, and the library has not been built yet
5245 # but it would be included on the link line in the version check below
5246 # hence making the test fail.
5247 have_gmp=yes
5248fi
6de9cd9a 5249
d943d7c4 5250if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5251 have_gmp=yes
5252 saved_CFLAGS="$CFLAGS"
5253 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5254 # Check for the recommended and required versions of GMP.
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5256$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5257
5258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5259/* end confdefs.h. */
5260#include "gmp.h"
5261int
5262main ()
5263{
5264
5265 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5266 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5267 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5268 choke me
5269 #endif
5270
5271 ;
5272 return 0;
5273}
5274_ACEOF
5275if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5277/* end confdefs.h. */
362c6d2f 5278#include <gmp.h>
1c710c3c
DJ
5279int
5280main ()
5281{
6de9cd9a 5282
362c6d2f
KG
5283 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5284 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5285 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5286 choke me
5287 #endif
1c710c3c
DJ
5288
5289 ;
5290 return 0;
5291}
5292_ACEOF
5213506e
RW
5293if ac_fn_c_try_compile "$LINENO"; then :
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5295$as_echo "yes" >&6; }
362c6d2f
KG
5296else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5298$as_echo "buggy but acceptable" >&6; }
5299fi
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5301else
5213506e
RW
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5304fi
5213506e 5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5306
acd26225 5307 # If we have GMP, check the MPFR version.
e69bf64b 5308 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5309 # Check for the recommended and required versions of MPFR.
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5311$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5313/* end confdefs.h. */
70ec446f 5314#include <gmp.h>
e69bf64b 5315 #include <mpfr.h>
1c710c3c
DJ
5316int
5317main ()
5318{
e48d66a9 5319
a3337ea2 5320 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5321 choke me
5322 #endif
1c710c3c
DJ
5323
5324 ;
5325 return 0;
5326}
5327_ACEOF
5213506e
RW
5328if ac_fn_c_try_compile "$LINENO"; then :
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5330/* end confdefs.h. */
a3993f33 5331#include <gmp.h>
e69bf64b 5332 #include <mpfr.h>
1c710c3c
DJ
5333int
5334main ()
5335{
a3993f33 5336
362c6d2f 5337 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5338 choke me
5339 #endif
acd26225
KG
5340
5341 ;
5342 return 0;
5343}
5344_ACEOF
5213506e
RW
5345if ac_fn_c_try_compile "$LINENO"; then :
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5347$as_echo "yes" >&6; }
acd26225 5348else
5213506e
RW
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5350$as_echo "buggy but acceptable" >&6; }
acd26225 5351fi
5213506e 5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5353else
5213506e
RW
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355$as_echo "no" >&6; }; have_gmp=no
acd26225 5356fi
5213506e 5357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5358 fi
5359
5360 # Check for the MPC header version.
3a5729ea 5361 if test x"$have_gmp" = xyes ; then
362c6d2f 5362 # Check for the recommended and required versions of MPC.
5213506e
RW
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5364$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5366/* end confdefs.h. */
5367#include <mpc.h>
5368int
5369main ()
5370{
5371
362c6d2f
KG
5372 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5373 choke me
5374 #endif
5375
5376 ;
5377 return 0;
5378}
5379_ACEOF
5380if ac_fn_c_try_compile "$LINENO"; then :
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h. */
5383#include <mpc.h>
5384int
5385main ()
5386{
5387
5388 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5389 choke me
5390 #endif
5391
5392 ;
5393 return 0;
5394}
5395_ACEOF
5213506e
RW
5396if ac_fn_c_try_compile "$LINENO"; then :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5398$as_echo "yes" >&6; }
362c6d2f
KG
5399else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5401$as_echo "buggy but acceptable" >&6; }
5402fi
5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5404else
5213506e 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5406$as_echo "no" >&6; }; have_gmp=no
acd26225 5407fi
5213506e 5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5409 fi
5410
5411 # Now check the MPFR library.
5412 if test x"$have_gmp" = xyes; then
5413 saved_LIBS="$LIBS"
5414 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5416$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5418/* end confdefs.h. */
3a5729ea 5419#include <mpc.h>
acd26225
KG
5420int
5421main ()
5422{
5423
5424 mpfr_t n;
5425 mpfr_t x;
3a5729ea 5426 mpc_t c;
acd26225
KG
5427 int t;
5428 mpfr_init (n);
5429 mpfr_init (x);
5430 mpfr_atan2 (n, n, x, GMP_RNDN);
5431 mpfr_erfc (n, x, GMP_RNDN);
5432 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5433 mpfr_clear(n);
5434 mpfr_clear(x);
5435 mpc_init2 (c, 53);
5436 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5437 mpc_cosh (c, c, MPC_RNDNN);
5438 mpc_pow (c, c, c, MPC_RNDNN);
5439 mpc_acosh (c, c, MPC_RNDNN);
5440 mpc_clear (c);
1c710c3c
DJ
5441
5442 ;
5443 return 0;
5444}
5445_ACEOF
5213506e
RW
5446if ac_fn_c_try_link "$LINENO"; then :
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448$as_echo "yes" >&6; }
1c710c3c 5449else
5213506e
RW
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5452fi
5213506e
RW
5453rm -f core conftest.err conftest.$ac_objext \
5454 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5455 LIBS="$saved_LIBS"
5456 fi
5457
e69bf64b 5458 CFLAGS="$saved_CFLAGS"
6de9cd9a 5459
362c6d2f
KG
5460# The library versions listed in the error message below should match
5461# the HARD-minimums enforced above.
e69bf64b 5462 if test x$have_gmp != xyes; then
362c6d2f 5463 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
3a5729ea
KG
5464Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5465their locations. Source code for these libraries can be found at
5466their respective hosting sites as well as at
5467ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5468http://gcc.gnu.org/install/prerequisites.html for additional info. If
5469you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5470make sure that you have installed both the libraries and the header
5471files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5472 fi
70ec446f
KG
5473fi
5474
acd26225
KG
5475# Flags needed for both GMP, MPFR and/or MPC.
5476
5477
6de9cd9a
DN
5478
5479
5480
9e3eba15 5481
f38095f3
JM
5482# Allow host libstdc++ to be specified for static linking with PPL.
5483
5213506e
RW
5484# Check whether --with-host-libstdcxx was given.
5485if test "${with_host_libstdcxx+set}" = set; then :
5486 withval=$with_host_libstdcxx;
5487fi
f38095f3 5488
f38095f3
JM
5489
5490case $with_host_libstdcxx in
5491 no|yes)
5213506e 5492 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5493 ;;
5494esac
f8bf9252 5495
00020c16
ILT
5496# Linker flags to use for stage1 or when not boostrapping.
5497
5213506e
RW
5498# Check whether --with-stage1-ldflags was given.
5499if test "${with_stage1_ldflags+set}" = set; then :
5500 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5501 stage1_ldflags=
5502 else
5503 stage1_ldflags=$withval
5504 fi
5505else
5506 stage1_ldflags=
5213506e
RW
5507fi
5508
00020c16
ILT
5509
5510
5511# Libraries to use for stage1 or when not bootstrapping.
5512
5213506e
RW
5513# Check whether --with-stage1-libs was given.
5514if test "${with_stage1_libs+set}" = set; then :
5515 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5516 stage1_libs=
5517 else
5518 stage1_libs=$withval
5519 fi
5520else
5521 stage1_libs=$with_host_libstdcxx
5213506e
RW
5522fi
5523
00020c16
ILT
5524
5525
00020c16
ILT
5526# Libraries to use for stage2 and later builds. This defaults to the
5527# argument passed to --with-host-libstdcxx.
5528
5213506e
RW
5529# Check whether --with-boot-libs was given.
5530if test "${with_boot_libs+set}" = set; then :
5531 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5532 poststage1_libs=
5533 else
5534 poststage1_libs=$withval
5535 fi
5536else
00020c16 5537 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5538fi
5539
00020c16
ILT
5540
5541
ed2eaa9f
ILT
5542# Linker flags to use for stage2 and later builds.
5543
5544# Check whether --with-boot-ldflags was given.
5545if test "${with_boot_ldflags+set}" = set; then :
5546 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5547 poststage1_ldflags=
5548 else
5549 poststage1_ldflags=$withval
5550 fi
5551else
5552 poststage1_ldflags=
5553 # With --enable-build-with-cxx, default to linking libstdc++ and
5554 # libgcc statically. But if the user explicitly specified the
5555 # libraries to use, trust that they are doing what they want.
5556 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5557 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5558 fi
5559fi
5560
5561
5562
f8bf9252 5563# Check for PPL
00020c16 5564ppllibs=" -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5565pplinc=
5566
5567
5213506e
RW
5568# Check whether --with-ppl was given.
5569if test "${with_ppl+set}" = set; then :
5570 withval=$with_ppl;
5213506e 5571fi
f8bf9252 5572
f8bf9252 5573
5213506e
RW
5574# Check whether --with-ppl_include was given.
5575if test "${with_ppl_include+set}" = set; then :
5576 withval=$with_ppl_include;
5577fi
5578
f8bf9252 5579
5213506e
RW
5580# Check whether --with-ppl_lib was given.
5581if test "${with_ppl_lib+set}" = set; then :
5582 withval=$with_ppl_lib;
5583fi
f8bf9252 5584
f8bf9252 5585
53095c56
SP
5586case $with_ppl in
5587 no)
5588 ppllibs=
5589 ;;
f61428ed 5590 "" | yes)
ad0abd3c 5591 ;;
53095c56 5592 *)
00020c16 5593 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
53095c56 5594 pplinc="-I$with_ppl/include $pplinc"
53095c56
SP
5595 ;;
5596esac
f8bf9252
SP
5597if test "x$with_ppl_include" != x; then
5598 pplinc="-I$with_ppl_include $pplinc"
5599fi
5600if test "x$with_ppl_lib" != x; then
00020c16 5601 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5602fi
5603if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
592c90ff 5604 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
f61428ed
AO
5605 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5606 enable_ppl_version_check=no
f8bf9252
SP
5607fi
5608
5213506e
RW
5609# Check whether --enable-ppl-version-check was given.
5610if test "${enable_ppl_version_check+set}" = set; then :
5611 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
d789184e
SP
5612else
5613 ENABLE_PPL_CHECK=yes
5213506e
RW
5614fi
5615
f8bf9252 5616
ad0abd3c 5617if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
d789184e
SP
5618 saved_CFLAGS="$CFLAGS"
5619 CFLAGS="$CFLAGS $pplinc $gmpinc"
f1af9e5f
SP
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5621$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5213506e 5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5623/* end confdefs.h. */
5624#include "ppl_c.h"
5625int
5626main ()
5627{
5628
f1af9e5f 5629 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
d789184e
SP
5630 choke me
5631 #endif
f8bf9252
SP
5632
5633 ;
5634 return 0;
5635}
5636_ACEOF
5213506e
RW
5637if ac_fn_c_try_compile "$LINENO"; then :
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5639$as_echo "yes" >&6; }
f8bf9252 5640else
5213506e 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ed3a56f3 5642$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
f8bf9252 5643fi
5213506e 5644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5645 CFLAGS="$saved_CFLAGS"
5646fi
5647
5648# Flags needed for PPL
5649
5650
f8bf9252 5651
f8bf9252 5652
d789184e 5653# Check for CLOOG
23d9794a 5654clooglibs=" -lcloog "
d789184e
SP
5655clooginc=" -DCLOOG_PPL_BACKEND "
5656
5657
5213506e
RW
5658# Check whether --with-cloog was given.
5659if test "${with_cloog+set}" = set; then :
5660 withval=$with_cloog;
5213506e
RW
5661fi
5662
d789184e 5663
5213506e
RW
5664# Check whether --with-cloog_include was given.
5665if test "${with_cloog_include+set}" = set; then :
5666 withval=$with_cloog_include;
5667fi
d789184e 5668
d789184e 5669
5213506e
RW
5670# Check whether --with-cloog_lib was given.
5671if test "${with_cloog_lib+set}" = set; then :
5672 withval=$with_cloog_lib;
5673fi
d789184e 5674
d789184e 5675
17e72e5d 5676if test "x$with_ppl" = "xno"; then
ad0abd3c
RG
5677 with_cloog=no
5678fi
5679
53095c56
SP
5680case $with_cloog in
5681 no)
5682 clooglibs=
5683 clooginc=
5684 ;;
f61428ed 5685 "" | yes)
ad0abd3c 5686 ;;
53095c56
SP
5687 *)
5688 clooglibs="-L$with_cloog/lib -lcloog"
5689 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
53095c56
SP
5690 ;;
5691esac
d789184e
SP
5692if test "x$with_cloog_include" != x; then
5693 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5694fi
5695if test "x$with_cloog_lib" != x; then
5696 clooglibs="-L$with_cloog_lib -lcloog"
d789184e
SP
5697fi
5698if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
592c90ff 5699 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
d789184e 5700 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
f61428ed 5701 enable_cloog_version_check=no
d789184e
SP
5702fi
5703
5213506e
RW
5704# Check whether --enable-cloog-version-check was given.
5705if test "${enable_cloog_version_check+set}" = set; then :
5706 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
d789184e
SP
5707else
5708 ENABLE_CLOOG_CHECK=yes
5213506e
RW
5709fi
5710
d789184e 5711
ad0abd3c 5712if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
d789184e
SP
5713 saved_CFLAGS="$CFLAGS"
5714 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
f264ed56
SP
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5716$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5213506e 5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5718/* end confdefs.h. */
5719#include "cloog/cloog.h"
5720int
5721main ()
5722{
5723
f264ed56 5724 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
d789184e
SP
5725 choke me
5726 #endif
f8bf9252
SP
5727
5728 ;
5729 return 0;
5730}
5731_ACEOF
0333b9a6
SP
5732if ac_fn_c_try_compile "$LINENO"; then :
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h. */
5735#include "cloog/cloog.h"
5736int
5737main ()
5738{
5739
5740 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
5741 choke me
5742 #endif
5743
5744 ;
5745 return 0;
5746}
5747_ACEOF
5213506e
RW
5748if ac_fn_c_try_compile "$LINENO"; then :
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5750$as_echo "yes" >&6; }
0333b9a6
SP
5751else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5753$as_echo "buggy but acceptable" >&6; }
5754fi
5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8bf9252 5756else
5213506e
RW
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758$as_echo "no" >&6; }; clooglibs= ; clooginc=
f8bf9252 5759fi
5213506e 5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5761 CFLAGS="$saved_CFLAGS"
5762fi
f8bf9252
SP
5763
5764# Flags needed for CLOOG
5765
5766
5767
d7f09764
DN
5768# Check for LTO support.
5769# Check whether --enable-lto was given.
5770if test "${enable_lto+set}" = set; then :
5771 enableval=$enable_lto; enable_lto=$enableval
5772else
5773 enable_lto=yes; default_enable_lto=yes
5774fi
5775
5776
7413962d 5777
9a02962b
DK
5778
5779
5780target_elf=no
5781case $target in
5782 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5783 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
5784 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5785 target_elf=no
5786 ;;
5787 *)
5788 target_elf=yes
5789 ;;
5790esac
5791
5792if test $target_elf = yes; then :
48215350
DK
5793 # ELF platforms build the lto-plugin always.
5794 build_lto_plugin=yes
9a02962b 5795
9a02962b
DK
5796else
5797 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 5798 case $target in
1cd0b716 5799 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
48215350 5800 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
5801 *) enable_lto=no ;;
5802 esac
9a02962b 5803 else
db50fe7d
IS
5804 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5805 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
5806 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5807 # warn during gcc/ subconfigure; unless you're bootstrapping with
5808 # -flto it won't be needed until after installation anyway.
5809 case $target in
1cd0b716 5810 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
5811 *) if test x"$enable_lto" = x"yes"; then
5812 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5813 fi
5814 ;;
5815 esac
5816 fi
1cd0b716 5817 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 5818 # Build it unless LTO was explicitly disabled.
1cd0b716 5819 case $target in
48215350 5820 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
5821 *) ;;
5822 esac
48215350 5823
9a02962b
DK
5824fi
5825
d7f09764 5826
f8bf9252 5827
1e0f07d3 5828# By default, C is the only stage 1 language.
e1888513 5829stage1_languages=,c,
2805b53a 5830
00020c16 5831# Target libraries that we bootstrap.
ad1e5170 5832bootstrap_target_libs=,target-libgcc,
00020c16 5833
55ffb5ed
NN
5834# Figure out what language subdirectories are present.
5835# Look if the user specified --enable-languages="..."; if not, use
5836# the environment variable $LANGUAGES if defined. $LANGUAGES might
5837# go away some day.
5838# NB: embedded tabs in this IF block -- do not untabify
5839if test -d ${srcdir}/gcc; then
5840 if test x"${enable_languages+set}" != xset; then
5841 if test x"${LANGUAGES+set}" = xset; then
5842 enable_languages="${LANGUAGES}"
5843 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5844 else
5845 enable_languages=all
5846 fi
5847 else
5848 if test x"${enable_languages}" = x ||
5849 test x"${enable_languages}" = xyes;
5850 then
5851 echo configure.in: --enable-languages needs at least one language argument 1>&2
5852 exit 1
5853 fi
5854 fi
5855 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5856
7f26dfa3
FXC
5857 # 'f95' is the old name for the 'fortran' language. We issue a warning
5858 # and make the substitution.
5859 case ,${enable_languages}, in
5860 *,f95,*)
5861 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5862 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5863 ;;
5864 esac
5865
55ffb5ed
NN
5866 # First scan to see if an enabled language requires some other language.
5867 # We assume that a given config-lang.in will list all the language
5868 # front ends it requires, even if some are required indirectly.
5869 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5870 case ${lang_frag} in
5871 ..) ;;
5872 # The odd quoting in the next line works around
5873 # an apparent bug in bash 1.12 on linux.
5874 ${srcdir}/gcc/[*]/config-lang.in) ;;
5875 *)
5876 # From the config-lang.in, get $language, $lang_requires
5877 language=
5878 lang_requires=
5879 . ${lang_frag}
5880 for other in ${lang_requires} ; do
5881 case ,${enable_languages}, in
5882 *,$other,*) ;;
5883 *,all,*) ;;
5884 *,$language,*)
5885 echo " \`$other' language required by \`$language'; enabling" 1>&2
5886 enable_languages="${enable_languages},${other}"
5887 ;;
5888 esac
5889 done
5890 ;;
5891 esac
5892 done
5893
e1888513 5894 new_enable_languages=,c,
d7f09764
DN
5895
5896 # If LTO is enabled, add the LTO front end.
5897 extra_host_libiberty_configure_flags=
5898 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
5899 case ,${enable_languages}, in
5900 *,lto,*) ;;
5901 *) enable_languages="${enable_languages},lto" ;;
5902 esac
1cd0b716 5903 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
5904 configdirs="$configdirs lto-plugin"
5905 extra_host_libiberty_configure_flags=--enable-shared
5906 fi
5907 fi
5908
5909
55ffb5ed 5910 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 5911 potential_languages=,c,
55ffb5ed
NN
5912
5913 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5914 case ${lang_frag} in
5915 ..) ;;
5916 # The odd quoting in the next line works around
5917 # an apparent bug in bash 1.12 on linux.
5918 ${srcdir}/gcc/[*]/config-lang.in) ;;
5919 *)
1c710c3c 5920 # From the config-lang.in, get $language, $target_libs,
2805b53a 5921 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
5922 language=
5923 target_libs=
5924 lang_dirs=
1546bb64 5925 subdir_requires=
e1888513
PB
5926 boot_language=no
5927 build_by_default=yes
55ffb5ed 5928 . ${lang_frag}
e1888513
PB
5929 if test x${language} = x; then
5930 echo "${lang_frag} doesn't set \$language." 1>&2
5931 exit 1
5932 fi
5933
f61428ed
AO
5934 if test "$language" = "c++" \
5935 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
00020c16
ILT
5936 boot_language=yes
5937 fi
5938
e1888513
PB
5939 case ,${enable_languages}, in
5940 *,${language},*)
55ffb5ed
NN
5941 # Language was explicitly selected; include it.
5942 add_this_lang=yes
5943 ;;
e1888513
PB
5944 *,all,*)
5945 # 'all' was selected, select it if it is a default language
5946 add_this_lang=${build_by_default}
55ffb5ed
NN
5947 ;;
5948 *)
5949 add_this_lang=no
5950 ;;
5951 esac
6de9cd9a 5952
1546bb64 5953 # Disable languages that need other directories if these aren't available.
95695ad3 5954 for i in $subdir_requires; do
b6348cb3 5955 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
5956 case ,${enable_languages}, in
5957 *,${language},*)
5958 # Specifically requested language; tell them.
5213506e 5959 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
5960 ;;
5961 *)
5962 # Silently disable.
e1888513 5963 add_this_lang=unsupported
1546bb64
PB
5964 ;;
5965 esac
5966 done
5967
e1888513
PB
5968 # Disable Ada if no preexisting GNAT is available.
5969 case ,${enable_languages},:${language}:${have_gnat} in
5970 *,${language},*:ada:no)
5971 # Specifically requested language; tell them.
5213506e 5972 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
5973 ;;
5974 *:ada:no)
5975 # Silently disable.
5976 add_this_lang=unsupported
5977 ;;
5978 esac
5979
4fab7234
HPN
5980 # Disable a language that is unsupported by the target.
5981 case " $unsupported_languages " in
5982 *" $language "*)
e1888513 5983 add_this_lang=unsupported
4fab7234
HPN
5984 ;;
5985 esac
5986
6de9cd9a 5987 case $add_this_lang in
e1888513 5988 unsupported)
55ffb5ed 5989 # Remove language-dependent dirs.
2805b53a
NN
5990 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5991 ;;
e1888513
PB
5992 no)
5993 # Remove language-dependent dirs; still show language as supported.
5994 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5995 potential_languages="${potential_languages}${language},"
5996 ;;
5997 yes)
5998 new_enable_languages="${new_enable_languages}${language},"
5999 potential_languages="${potential_languages}${language},"
2805b53a 6000 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
ab9dcd0c
RW
6001 case "${boot_language}:,$enable_stage1_languages," in
6002 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6003 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6004 case ",$stage1_languages," in
6005 *,$language,* | ,yes, | ,all,) ;;
6006 *) stage1_languages="${stage1_languages}${language}," ;;
6007 esac
00020c16
ILT
6008 # We need to bootstrap any supporting libraries.
6009 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6010 ;;
6011 esac
6012 ;;
55ffb5ed
NN
6013 esac
6014 ;;
6015 esac
6016 done
6017
5213506e
RW
6018 # Check whether --enable-stage1-languages was given.
6019if test "${enable_stage1_languages+set}" = set; then :
6020 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6021 ,no,|,,)
6022 # Set it to something that will have no effect in the loop below
6023 enable_stage1_languages=c ;;
6024 ,yes,)
6025 enable_stage1_languages=`echo $new_enable_languages | \
6026 sed -e "s/^,//" -e "s/,$//" ` ;;
6027 *,all,*)
6028 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6029 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6030 esac
6031
6032 # Add "good" languages from enable_stage1_languages to stage1_languages,
6033 # while "bad" languages go in missing_languages. Leave no duplicates.
6034 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6035 case $potential_languages in
6036 *,$i,*)
6037 case $stage1_languages in
6038 *,$i,*) ;;
6039 *) stage1_languages="$stage1_languages$i," ;;
6040 esac ;;
6041 *)
6042 case $missing_languages in
6043 *,$i,*) ;;
6044 *) missing_languages="$missing_languages$i," ;;
6045 esac ;;
6046 esac
6047 done
5213506e
RW
6048fi
6049
e1888513
PB
6050
6051 # Remove leading/trailing commas that were added for simplicity
6052 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6053 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6054 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6055 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6056
55ffb5ed 6057 if test "x$missing_languages" != x; then
5213506e 6058 as_fn_error "
0cf085e4 6059The following requested languages could not be built: ${missing_languages}
5213506e 6060Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6061 fi
55ffb5ed
NN
6062 if test "x$new_enable_languages" != "x$enable_languages"; then
6063 echo The following languages will be built: ${new_enable_languages}
e1888513 6064 enable_languages="$new_enable_languages"
55ffb5ed 6065 fi
e1888513 6066
1c710c3c 6067
b2eaac4a 6068 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6069fi
6070
27079765
AH
6071# Handle --disable-<component> generically.
6072for dir in $configdirs $build_configdirs $target_configdirs ; do
6073 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6074 varname=`echo $dirname | sed -e s/+/_/g`
6075 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6076 noconfigdirs="$noconfigdirs $dir"
6077 fi
6078done
6079
7cd0cf9c 6080# Check for Boehm's garbage collector
5213506e
RW
6081# Check whether --enable-objc-gc was given.
6082if test "${enable_objc_gc+set}" = set; then :
6083 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6084 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6085 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6086 ;;
6087esac
5213506e
RW
6088fi
6089
7cd0cf9c
DA
6090
6091# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6092case ,${enable_languages},:${enable_objc_gc} in
6093 *,objc,*:yes)
7cd0cf9c
DA
6094 # Keep target-boehm-gc if requested for Objective-C.
6095 ;;
7cd0cf9c 6096 *)
2a79fd67
DA
6097 # Otherwise remove target-boehm-gc depending on target-libjava.
6098 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6099 noconfigdirs="$noconfigdirs target-boehm-gc"
6100 fi
7cd0cf9c
DA
6101 ;;
6102esac
6103
ee6a22df
L
6104# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6105# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6106# If we have the source for $noconfigdirs entries, add them to $notsupp.
6107
6108notsupp=""
6109for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6110 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6111 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6112 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6113 if test -r $srcdir/$dirname/configure ; then
6114 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6115 true
6116 else
6117 notsupp="$notsupp $dir"
6118 fi
6119 fi
6120 fi
ee6a22df
L
6121 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6122 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6123 if test -r $srcdir/$dirname/configure ; then
6124 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6125 true
6126 else
6127 notsupp="$notsupp $dir"
6128 fi
6129 fi
6130 fi
55ffb5ed
NN
6131 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6132 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6133 if test -r $srcdir/$dirname/configure ; then
6134 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6135 true
6136 else
6137 notsupp="$notsupp $dir"
6138 fi
6139 fi
6140 fi
6141done
6142
6143# Sometimes the tools are distributed with libiberty but with no other
6144# libraries. In that case, we don't want to build target-libiberty.
54fdc474 6145# Don't let libgcc imply libiberty either.
55ffb5ed 6146if test -n "${target_configdirs}" ; then
54fdc474 6147 libgcc=
55ffb5ed
NN
6148 others=
6149 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
6150 if test "$i" = "libgcc"; then
6151 libgcc=target-libgcc
6152 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
6153 if test -r $srcdir/$i/configure ; then
6154 others=yes;
6155 break;
6156 fi
6157 fi
6158 done
6159 if test -z "${others}" ; then
54fdc474 6160 target_configdirs=$libgcc
55ffb5ed
NN
6161 fi
6162fi
6163
6164# Quietly strip out all directories which aren't configurable in this tree.
6165# This relies on all configurable subdirectories being autoconfiscated, which
6166# is now the case.
23f6b2f9
PB
6167build_configdirs_all="$build_configdirs"
6168build_configdirs=
6169for i in ${build_configdirs_all} ; do
1c710c3c 6170 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6171 if test -f ${srcdir}/$j/configure ; then
6172 build_configdirs="${build_configdirs} $i"
6173 fi
6174done
6175
55ffb5ed
NN
6176configdirs_all="$configdirs"
6177configdirs=
6178for i in ${configdirs_all} ; do
6179 if test -f ${srcdir}/$i/configure ; then
6180 configdirs="${configdirs} $i"
6181 fi
6182done
23f6b2f9 6183
55ffb5ed
NN
6184target_configdirs_all="$target_configdirs"
6185target_configdirs=
6186for i in ${target_configdirs_all} ; do
1c710c3c 6187 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6188 if test -f ${srcdir}/$j/configure ; then
6189 target_configdirs="${target_configdirs} $i"
6190 fi
6191done
6192
6193# Produce a warning message for the subdirs we can't configure.
6194# This isn't especially interesting in the Cygnus tree, but in the individual
6195# FSF releases, it's important to let people know when their machine isn't
6196# supported by the one or two programs in a package.
6197
6198if test -n "${notsupp}" && test -z "${norecursion}" ; then
6199 # If $appdirs is non-empty, at least one of those directories must still
6200 # be configured, or we error out. (E.g., if the gas release supports a
6201 # specified target in some subdirs but not the gas subdir, we shouldn't
6202 # pretend that all is well.)
6203 if test -n "$appdirs" ; then
6204 for dir in $appdirs ; do
6205 if test -r $dir/Makefile.in ; then
6206 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6207 appdirs=""
6208 break
6209 fi
23f6b2f9 6210 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6211 appdirs=""
6212 break
6213 fi
6214 fi
6215 done
6216 if test -n "$appdirs" ; then
6217 echo "*** This configuration is not supported by this package." 1>&2
6218 exit 1
6219 fi
6220 fi
6221 # Okay, some application will build, or we don't care to check. Still
6222 # notify of subdirs not getting built.
6223 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6224 echo " ${notsupp}" 1>&2
6225 echo " (Any other directories should still work fine.)" 1>&2
6226fi
6227
6228case "$host" in
6229 *msdosdjgpp*)
6230 enable_gdbtk=no ;;
6231esac
6232
c3a86da9
DJ
6233# To find our prefix, in gcc_cv_tool_prefix.
6234
6235# The user is always right.
6236if test "${PATH_SEPARATOR+set}" != set; then
6237 echo "#! /bin/sh" >conf$$.sh
6238 echo "exit 0" >>conf$$.sh
6239 chmod +x conf$$.sh
6240 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6241 PATH_SEPARATOR=';'
6242 else
6243 PATH_SEPARATOR=:
6244 fi
6245 rm -f conf$$.sh
6246fi
6247
6248
6249
6250if test "x$exec_prefix" = xNONE; then
6251 if test "x$prefix" = xNONE; then
6252 gcc_cv_tool_prefix=$ac_default_prefix
6253 else
6254 gcc_cv_tool_prefix=$prefix
6255 fi
6256else
6257 gcc_cv_tool_prefix=$exec_prefix
6258fi
6259
6260# If there is no compiler in the tree, use the PATH only. In any
6261# case, if there is no compiler in the tree nobody should use
6262# AS_FOR_TARGET and LD_FOR_TARGET.
6263if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6264 gcc_version=`cat $srcdir/gcc/BASE-VER`
6265 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6266 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6267 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6268 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6269 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6270 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6271else
6272 gcc_cv_tool_dirs=
6273fi
6274
6275if test x$build = x$target && test -n "$md_exec_prefix"; then
6276 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6277fi
6278
6279
6280
55ffb5ed
NN
6281copy_dirs=
6282
1c710c3c 6283
5213506e
RW
6284# Check whether --with-build-sysroot was given.
6285if test "${with_build_sysroot+set}" = set; then :
6286 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6287 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6288 fi
6289else
6290 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6291fi
526635cb
MM
6292
6293
c8aea42c 6294
5213506e
RW
6295
6296# Check whether --with-debug-prefix-map was given.
6297if test "${with_debug_prefix_map+set}" = set; then :
6298 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6299 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6300 for debug_map in $withval; do
6301 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6302 done
6303 fi
6304else
6305 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6306fi
6307
c8aea42c
PB
6308
6309
1c8bd6a3
PB
6310# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6311# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6312# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6313# We want to ensure that TARGET libraries (which we know are built with
6314# gcc) are built with "-O2 -g", so include those options when setting
6315# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6316if test "x$CFLAGS_FOR_TARGET" = x; then
6317 CFLAGS_FOR_TARGET=$CFLAGS
6318 case " $CFLAGS " in
6319 *" -O2 "*) ;;
6320 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6321 esac
6322 case " $CFLAGS " in
6323 *" -g "* | *" -g3 "*) ;;
6324 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6325 esac
6326fi
6327
6328
6329if test "x$CXXFLAGS_FOR_TARGET" = x; then
6330 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6331 case " $CXXFLAGS " in
6332 *" -O2 "*) ;;
6333 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6334 esac
6335 case " $CXXFLAGS " in
6336 *" -g "* | *" -g3 "*) ;;
6337 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6338 esac
6339fi
6340
6341
55ffb5ed
NN
6342# Handle --with-headers=XXX. If the value is not "yes", the contents of
6343# the named directory are copied to $(tooldir)/sys-include.
6344if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6345 if test x${is_cross_compiler} = xno ; then
6346 echo 1>&2 '***' --with-headers is only supported when cross compiling
6347 exit 1
6348 fi
6349 if test x"${with_headers}" != xyes ; then
c3a86da9 6350 x=${gcc_cv_tool_prefix}
1c710c3c 6351 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6352 fi
6353fi
6354
6355# Handle --with-libs=XXX. If the value is not "yes", the contents of
6356# the name directories are copied to $(tooldir)/lib. Multiple directories
6357# are permitted.
6358if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6359 if test x${is_cross_compiler} = xno ; then
6360 echo 1>&2 '***' --with-libs is only supported when cross compiling
6361 exit 1
6362 fi
6363 if test x"${with_libs}" != xyes ; then
6364 # Copy the libraries in reverse order, so that files in the first named
6365 # library override files in subsequent libraries.
c3a86da9 6366 x=${gcc_cv_tool_prefix}
55ffb5ed 6367 for l in ${with_libs}; do
1c710c3c 6368 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6369 done
6370 fi
6371fi
6372
d7f09764 6373# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6374#
6375# This is done by determining whether or not the appropriate directory
6376# is available, and by checking whether or not specific configurations
6377# have requested that this magic not happen.
1c710c3c
DJ
6378#
6379# The command line options always override the explicit settings in
e8b05380
PB
6380# configure.in, and the settings in configure.in override this magic.
6381#
1c710c3c 6382# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6383# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6384# --without-gnu-ld options for the configure script. Similarly, if
6385# the default is to use the included zlib and you don't want to do that,
6386# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6387
6388if test x${use_gnu_as} = x &&
6389 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6390 with_gnu_as=yes
6391 extra_host_args="$extra_host_args --with-gnu-as"
6392fi
6393
6394if test x${use_gnu_ld} = x &&
5afab7ad 6395 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6396 with_gnu_ld=yes
6397 extra_host_args="$extra_host_args --with-gnu-ld"
6398fi
6399
d7f09764
DN
6400if test x${use_included_zlib} = x &&
6401 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6402 :
6403else
6404 with_system_zlib=yes
6405 extra_host_args="$extra_host_args --with-system-zlib"
6406fi
6407
e8b05380
PB
6408# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6409# can detect this case.
6410
6411if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6412 with_newlib=yes
6413 extra_host_args="$extra_host_args --with-newlib"
6414fi
6415
55ffb5ed
NN
6416# Handle ${copy_dirs}
6417set fnord ${copy_dirs}
6418shift
6419while test $# != 0 ; do
6420 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6421 :
6422 else
6423 echo Copying $1 to $2
6424
6425 # Use the install script to create the directory and all required
6426 # parent directories.
6427 if test -d $2 ; then
6428 :
6429 else
6430 echo >config.temp
6431 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6432 fi
6433
6434 # Copy the directory, assuming we have tar.
6435 # FIXME: Should we use B in the second tar? Not all systems support it.
6436 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6437
6438 # It is the responsibility of the user to correctly adjust all
6439 # symlinks. If somebody can figure out how to handle them correctly
6440 # here, feel free to add the code.
6441
6442 echo $1 > $2/COPIED
6443 fi
6444 shift; shift
6445done
6446
e8b05380
PB
6447# Determine a target-dependent exec_prefix that the installed
6448# gcc will search in. Keep this list sorted by triplet, with
6449# the *-*-osname triplets last.
6450md_exec_prefix=
6451case "${target}" in
6452 alpha*-*-*vms*)
6453 md_exec_prefix=/gnu/lib/gcc-lib
6454 ;;
30b74385 6455 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6456 md_exec_prefix=/dev/env/DJDIR/bin
6457 ;;
30b74385 6458 i[34567]86-*-sco3.2v5*)
e8b05380
PB
6459 if test $with_gnu_as = yes; then
6460 md_exec_prefix=/usr/gnu/bin
6461 else
6462 md_exec_prefix=/usr/ccs/bin/elf
6463 fi
6464 ;;
6465
6466 mn10300-*-* | \
6467 powerpc-*-chorusos* | \
6468 powerpc*-*-eabi* | \
6469 powerpc*-*-sysv* | \
6470 powerpc*-*-kaos* | \
6471 s390x-ibm-tpf*)
6472 md_exec_prefix=/usr/ccs/bin
6473 ;;
6474 sparc64-*-elf*)
6475 ;;
6476 v850*-*-*)
6477 md_exec_prefix=/usr/ccs/bin
6478 ;;
aa12a573 6479 xtensa*-*-elf*)
e8b05380
PB
6480 ;;
6481
6482 *-*-beos* | \
6483 *-*-elf* | \
6484 *-*-hpux* | \
6485 *-*-netware* | \
6486 *-*-nto-qnx* | \
6487 *-*-rtems* | \
6488 *-*-solaris2* | \
30b74385 6489 *-*-sysv[45]* | \
e8b05380
PB
6490 *-*-vxworks* | \
6491 *-wrs-windiss)
6492 md_exec_prefix=/usr/ccs/bin
6493 ;;
6494esac
6495
671aa708
NN
6496extra_arflags_for_target=
6497extra_nmflags_for_target=
6498extra_ranlibflags_for_target=
6499target_makefile_frag=/dev/null
6500case "${target}" in
3e19841a
PB
6501 mep*-*-*)
6502 target_makefile_frag="config/mt-mep"
6503 ;;
58e24147
AM
6504 spu-*-*)
6505 target_makefile_frag="config/mt-spu"
6506 ;;
4bf6c438
RS
6507 mips*-sde-elf*)
6508 target_makefile_frag="config/mt-sde"
6509 ;;
1ec3b87b
RS
6510 mipsisa*-*-elfoabi*)
6511 target_makefile_frag="config/mt-mips-elfoabi"
6512 ;;
08d0963a
RS
6513 mips*-*-*linux* | mips*-*-gnu*)
6514 target_makefile_frag="config/mt-mips-gnu"
6515 ;;
61fec9ff 6516 *-*-netware*)
671aa708
NN
6517 target_makefile_frag="config/mt-netware"
6518 ;;
416ac4d4 6519 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6520 target_makefile_frag="config/mt-gnu"
671aa708
NN
6521 ;;
6522 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6523 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6524 # commands to handle both 32-bit and 64-bit objects. These flags are
6525 # harmless if we're using GNU nm or ar.
6526 extra_arflags_for_target=" -X32_64"
6527 extra_nmflags_for_target=" -B -X32_64"
6528 ;;
0aeb3cc6
JH
6529 *-*-darwin[3-9]*)
6530 # ranlib before Darwin10 requires the -c flag to look at common symbols.
671aa708
NN
6531 extra_ranlibflags_for_target=" -c"
6532 ;;
6533 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6534 target_makefile_frag="config/mt-wince"
6535 ;;
6536esac
6537
6538alphaieee_frag=/dev/null
6539case $target in
6540 alpha*-*-*)
6541 # This just makes sure to use the -mieee option to build target libs.
6542 # This should probably be set individually by each library.
6543 alphaieee_frag="config/mt-alphaieee"
6544 ;;
6545esac
6546
6547# If --enable-target-optspace always use -Os instead of -O2 to build
6548# the target libraries, similarly if it is not specified, use -Os
6549# on selected platforms.
6550ospace_frag=/dev/null
6551case "${enable_target_optspace}:${target}" in
6552 yes:*)
6553 ospace_frag="config/mt-ospace"
6554 ;;
6555 :d30v-*)
6556 ospace_frag="config/mt-d30v"
6557 ;;
6558 :m32r-* | :d10v-* | :fr30-*)
6559 ospace_frag="config/mt-ospace"
6560 ;;
6561 no:* | :*)
6562 ;;
6563 *)
6564 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6565 ;;
6566esac
6567
671aa708
NN
6568# Default to using --with-stabs for certain targets.
6569if test x${with_stabs} = x ; then
6570 case "${target}" in
89a95129 6571 mips*-*-irix[56]*)
671aa708
NN
6572 ;;
6573 mips*-*-* | alpha*-*-osf*)
6574 with_stabs=yes;
6575 extra_host_args="${extra_host_args} --with-stabs"
6576 ;;
6577 esac
6578fi
6579
6580# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6581# them automatically.
6582case "${host}" in
1c710c3c 6583 hppa*64*-*-hpux11*)
671aa708
NN
6584 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6585 ;;
6586esac
6587
671aa708
NN
6588# Some systems (e.g., one of the i386-aix systems the gas testers are
6589# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6590tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6591build_tooldir=${tooldir}
6592
671aa708
NN
6593# Create a .gdbinit file which runs the one in srcdir
6594# and tells GDB to look there for source files.
6595
6596if test -r ${srcdir}/.gdbinit ; then
6597 case ${srcdir} in
6598 .) ;;
6599 *) cat > ./.gdbinit <<EOF
6600# ${NO_EDIT}
6601dir ${srcdir}
6602dir .
6603source ${srcdir}/.gdbinit
6604EOF
6605 ;;
6606 esac
6607fi
6608
671aa708
NN
6609# Make sure that the compiler is able to generate an executable. If it
6610# can't, we are probably in trouble. We don't care whether we can run the
6611# executable--we might be using a cross compiler--we only care whether it
6612# can be created. At this point the main configure script has set CC.
6613we_are_ok=no
6614echo "int main () { return 0; }" > conftest.c
6615${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6616if test $? = 0 ; then
6617 if test -s conftest || test -s conftest.exe ; then
6618 we_are_ok=yes
6619 fi
1c710c3c 6620fi
671aa708
NN
6621case $we_are_ok in
6622 no)
6623 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6624 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6625 rm -f conftest*
6626 exit 1
6627 ;;
6628esac
6629rm -f conftest*
6630
6631# The Solaris /usr/ucb/cc compiler does not appear to work.
6632case "${host}" in
6633 sparc-sun-solaris2*)
6634 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6635 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6636 could_use=
6637 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6638 if test -d /opt/cygnus/bin ; then
6639 if test "$could_use" = "" ; then
6640 could_use="/opt/cygnus/bin"
6641 else
6642 could_use="$could_use or /opt/cygnus/bin"
6643 fi
6644 fi
6645 if test "$could_use" = "" ; then
6646 echo "Warning: compilation may fail because you're using"
6647 echo "/usr/ucb/cc. You should change your PATH or CC "
6648 echo "variable and rerun configure."
6649 else
6650 echo "Warning: compilation may fail because you're using"
6651 echo "/usr/ucb/cc, when you should use the C compiler from"
6652 echo "$could_use. You should change your"
6653 echo "PATH or CC variable and rerun configure."
6654 fi
6655 fi
6656 ;;
6657esac
6658
d89f0ad6 6659# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6660case "${host}" in
6661 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 6662 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6663 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6664 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6665esac
6666
d89f0ad6
AL
6667# On systems where the dynamic library environment variable is PATH,
6668# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6669# built executables to PATH.
6670if test "$RPATH_ENVVAR" = PATH; then
6671 GCC_SHLIB_SUBDIR=/shlib
6672else
6673 GCC_SHLIB_SUBDIR=
6674fi
6675
671aa708
NN
6676# Record target_configdirs and the configure arguments for target and
6677# build configuration in Makefile.
6678target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6679build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6680
ad1e5170
JR
6681# If we are building libgomp, bootstrap it.
6682if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6683 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6684fi
6685
671aa708
NN
6686# Determine whether gdb needs tk/tcl or not.
6687# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6688# and in that case we want gdb to be built without tk. Ugh!
6689# In fact I believe gdb is the *only* package directly dependent on tk,
6690# so we should be able to put the 'maybe's in unconditionally and
6691# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6692# 100% sure that that's safe though.
e914a571 6693
b4f96efe 6694gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6695case "$enable_gdbtk" in
6696 no)
6697 GDB_TK="" ;;
e914a571
AC
6698 yes)
6699 GDB_TK="${gdb_tk}" ;;
671aa708 6700 *)
e914a571
AC
6701 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6702 # distro. Eventually someone will fix this and move Insight, nee
6703 # gdbtk to a separate directory.
6704 if test -d ${srcdir}/gdb/gdbtk ; then
6705 GDB_TK="${gdb_tk}"
6706 else
6707 GDB_TK=""
6708 fi
6709 ;;
671aa708 6710esac
ef9db8d5
DJ
6711CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6712INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6713
60975492 6714# Strip out unwanted targets.
8b87bb96
NN
6715
6716# While at that, we remove Makefiles if we were started for recursive
6717# configuration, so that the top-level Makefile reconfigures them,
6718# like we used to do when configure itself was recursive.
8b87bb96 6719
3e54529c
RW
6720# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6721# but now we're fixing up the Makefile ourselves with the additional
6722# commands passed to AC_CONFIG_FILES. Use separate variables
6723# extrasub-{build,host,target} not because there is any reason to split
6724# the substitutions up that way, but only to remain below the limit of
6725# 99 commands in a script, for HP-UX sed.
6726# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6727
5213506e
RW
6728# Check whether --enable-bootstrap was given.
6729if test "${enable_bootstrap+set}" = set; then :
6730 enableval=$enable_bootstrap;
f516a7da 6731else
ce521a9c 6732 enable_bootstrap=default
5213506e
RW
6733fi
6734
f516a7da 6735
ce521a9c
PB
6736# Issue errors and warnings for invalid/strange bootstrap combinations.
6737case "$configdirs" in
6738 *gcc*) have_compiler=yes ;;
6739 *) have_compiler=no ;;
6740esac
6741
6742case "$have_compiler:$host:$target:$enable_bootstrap" in
6743 *:*:*:no) ;;
6744
1ca26cd2 6745 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
6746 # and we are in a native configuration.
6747 yes:$build:$build:default)
1ca26cd2 6748 enable_bootstrap=yes ;;
ce521a9c
PB
6749
6750 *:*:*:default)
6751 enable_bootstrap=no ;;
6752
6753 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 6754 yes:$build:$build:yes)
ce521a9c
PB
6755 ;;
6756
6757 # Other configurations, but we have a compiler. Assume the user knows
6758 # what he's doing.
2d309510 6759 yes:*:*:yes)
5213506e
RW
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6761$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
6762 ;;
6763
6764 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 6765 no:*:*:yes)
5213506e 6766 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ce521a9c
PB
6767
6768 # Fail if wrong command line
6769 *)
5213506e 6770 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
ce521a9c
PB
6771 ;;
6772esac
6773
ca6d0d62
RW
6774case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6775 *,c++,*:yes:yes) ;;
6776 *:yes:yes)
6777 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6778 ;;
6779esac
6780
79cd2b23
RW
6781case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6782 yes:yes:*\ gold\ *:*,c++,*) ;;
6783 yes:yes:*\ gold\ *:*)
6784 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6785 ;;
6786esac
6787
ce521a9c 6788# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 6789case $enable_bootstrap in
f516a7da 6790 yes)
e12c4094
AO
6791 bootstrap_suffix=bootstrap
6792 BUILD_CONFIG=bootstrap-debug
6793 ;;
f516a7da 6794 no)
e12c4094
AO
6795 bootstrap_suffix=no-bootstrap
6796 BUILD_CONFIG=
6797 ;;
f516a7da
PB
6798esac
6799
e12c4094
AO
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6801$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
6802
6803
6804# Check whether --with-build-config was given.
6805if test "${with_build_config+set}" = set; then :
6806 withval=$with_build_config; case $with_build_config in
6807 yes) with_build_config= ;;
6808 no) with_build_config= BUILD_CONFIG= ;;
6809 esac
6810fi
6811
6812
e12c4094
AO
6813if test "x${with_build_config}" != x; then
6814 BUILD_CONFIG=$with_build_config
6815else
6816 case $BUILD_CONFIG in
6817 bootstrap-debug)
6818 if echo "int f (void) { return 0; }" > conftest.c &&
6819 ${CC} -c conftest.c &&
6820 mv conftest.o conftest.o.g0 &&
6821 ${CC} -c -g conftest.c &&
6822 mv conftest.o conftest.o.g &&
615c8ffa 6823 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
6824 :
6825 else
6826 BUILD_CONFIG=
6827 fi
6828 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6829 ;;
6830 esac
6831fi
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6833$as_echo "$BUILD_CONFIG" >&6; }
6834
6835
3e54529c 6836extrasub_build=
23f6b2f9 6837for module in ${build_configdirs} ; do
5607edfd
PB
6838 if test -z "${no_recursion}" \
6839 && test -f ${build_subdir}/${module}/Makefile; then
6840 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6841 rm -f ${build_subdir}/${module}/Makefile
6842 fi
3e54529c 6843 extrasub_build="$extrasub_build
5607edfd
PB
6844/^@if build-$module\$/d
6845/^@endif build-$module\$/d
6846/^@if build-$module-$bootstrap_suffix\$/d
6847/^@endif build-$module-$bootstrap_suffix\$/d"
6848done
3e54529c 6849extrasub_host=
5607edfd 6850for module in ${configdirs} ; do
a6fbc1e2 6851 if test -z "${no_recursion}"; then
f063a9ed 6852 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
6853 if test -f ${file}; then
6854 echo 1>&2 "*** removing ${file} to force reconfigure"
6855 rm -f ${file}
6856 fi
6857 done
5607edfd 6858 fi
3e54529c 6859 extrasub_host="$extrasub_host
5607edfd
PB
6860/^@if $module\$/d
6861/^@endif $module\$/d
6862/^@if $module-$bootstrap_suffix\$/d
6863/^@endif $module-$bootstrap_suffix\$/d"
6864done
3e54529c 6865extrasub_target=
5607edfd
PB
6866for module in ${target_configdirs} ; do
6867 if test -z "${no_recursion}" \
6868 && test -f ${target_subdir}/${module}/Makefile; then
6869 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6870 rm -f ${target_subdir}/${module}/Makefile
6871 fi
00020c16
ILT
6872
6873 # We only bootstrap target libraries listed in bootstrap_target_libs.
6874 case $bootstrap_target_libs in
6875 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6876 *) target_bootstrap_suffix=no-bootstrap ;;
6877 esac
6878
3e54529c 6879 extrasub_target="$extrasub_target
5607edfd
PB
6880/^@if target-$module\$/d
6881/^@endif target-$module\$/d
00020c16
ILT
6882/^@if target-$module-$target_bootstrap_suffix\$/d
6883/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
6884done
6885
3e54529c
RW
6886# Do the final fixup along with target modules.
6887extrasub_target="$extrasub_target
60975492 6888/^@if /,/^@endif /d"
671aa708
NN
6889
6890# Create the serialization dependencies. This uses a temporary file.
6891
5213506e
RW
6892# Check whether --enable-serial-configure was given.
6893if test "${enable_serial_configure+set}" = set; then :
6894 enableval=$enable_serial_configure;
6895fi
ade82b16
AO
6896
6897
bf1d3e81
NN
6898case ${enable_serial_configure} in
6899 yes)
6900 enable_serial_build_configure=yes
6901 enable_serial_host_configure=yes
6902 enable_serial_target_configure=yes
6903 ;;
6904esac
6905
671aa708
NN
6906# These force 'configure's to be done one at a time, to avoid problems
6907# with contention over a shared config.cache.
6908rm -f serdep.tmp
ade82b16 6909echo '# serdep.tmp' > serdep.tmp
671aa708 6910olditem=
bf1d3e81 6911test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
6912for item in ${build_configdirs} ; do
6913 case ${olditem} in
6914 "") ;;
ade82b16 6915 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
6916 esac
6917 olditem=${item}
6918done
6919olditem=
bf1d3e81 6920test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
6921for item in ${configdirs} ; do
6922 case ${olditem} in
6923 "") ;;
ade82b16 6924 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
6925 esac
6926 olditem=${item}
6927done
6928olditem=
bf1d3e81 6929test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
6930for item in ${target_configdirs} ; do
6931 case ${olditem} in
6932 "") ;;
ade82b16 6933 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
6934 esac
6935 olditem=${item}
6936done
6937serialization_dependencies=serdep.tmp
6938
6939
ade82b16 6940# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 6941# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
6942# might not want to pass down to subconfigures. The exception being
6943# --cache-file=/dev/null, which is used to turn off the use of cache
6944# files altogether, and which should be passed on to subconfigures.
6945# Also strip program-prefix, program-suffix, and program-transform-name,
6946# so that we can pass down a consistent program-transform-name.
1c710c3c
DJ
6947baseargs=
6948keep_next=no
6949skip_next=no
6950eval "set -- $ac_configure_args"
44bfc3ac
DJ
6951for ac_arg
6952do
1c710c3c
DJ
6953 if test X"$skip_next" = X"yes"; then
6954 skip_next=no
6955 continue
6956 fi
6957 if test X"$keep_next" = X"yes"; then
6958 case $ac_arg in
6959 *\'*)
6960 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6961 esac
6962 baseargs="$baseargs '$ac_arg'"
6963 keep_next=no
6964 continue
6965 fi
6966
6967 # Handle separated arguments. Based on the logic generated by
6968 # autoconf 2.59.
6969 case $ac_arg in
6970 *=* | --config-cache | -C | -disable-* | --disable-* \
6971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6973 | -with-* | --with-* | -without-* | --without-* | --x)
6974 separate_arg=no
6975 ;;
6976 -*)
6977 separate_arg=yes
6978 ;;
6979 *)
6980 separate_arg=no
6981 ;;
6982 esac
6983
6984 case "$ac_arg" in
f1a036e4
NC
6985 --cache-file=/dev/null | \
6986 -cache-file=/dev/null )
6987 # Handled here to avoid the test to skip args below.
6988 baseargs="$baseargs '$ac_arg'"
6989 # Assert: $separate_arg should always be no.
6990 keep_next=$separate_arg
6991 ;;
1c710c3c
DJ
6992 --no*)
6993 continue
6994 ;;
6995 --c* | \
6996 --sr* | \
6997 --ho* | \
6998 --bu* | \
6999 --t* | \
7000 --program-* | \
7001 -cache_file* | \
7002 -srcdir* | \
7003 -host* | \
7004 -build* | \
7005 -target* | \
7006 -program-prefix* | \
7007 -program-suffix* | \
7008 -program-transform-name* )
7009 skip_next=$separate_arg
7010 continue
7011 ;;
7012 -*)
7013 # An option. Add it.
7014 case $ac_arg in
7015 *\'*)
7016 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7017 esac
7018 baseargs="$baseargs '$ac_arg'"
7019 keep_next=$separate_arg
7020 ;;
7021 *)
7022 # Either a variable assignment, or a nonopt (triplet). Don't
7023 # pass it down; let the Makefile handle this.
7024 continue
7025 ;;
7026 esac
7027done
7028# Remove the initial space we just introduced and, as these will be
7029# expanded by make, quote '$'.
7030baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7031
43bb47c2
DJ
7032# Add in --program-transform-name, after --program-prefix and
7033# --program-suffix have been applied to it. Autoconf has already
7034# doubled dollar signs and backslashes in program_transform_name; we want
7035# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7036# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7037# Also, because we want to override the logic in subdir configure scripts to
7038# choose program_transform_name, replace any s,x,x, with s,y,y,.
7039sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7040${program_transform_name}
7041EOF_SED
7042gcc_transform_name=`cat conftestsed.out`
7043rm -f conftestsed.out
7044baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7045if test "$silent" = yes; then
7046 baseargs="$baseargs --silent"
7047fi
0115d4a3 7048baseargs="$baseargs --disable-option-checking"
43bb47c2 7049
ffedf511
RW
7050# Record and document user additions to sub configure arguments.
7051
7052
7053
7054
671aa708
NN
7055# For the build-side libraries, we just need to pretend we're native,
7056# and not use the same cache file. Multilibs are neither needed nor
7057# desired.
ffedf511 7058build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7059
7060# For host modules, accept cache file option, or specification as blank.
7061case "${cache_file}" in
7062"") # empty
7063 cache_file_option="" ;;
7064/* | [A-Za-z]:[\\/]* ) # absolute path
7065 cache_file_option="--cache-file=${cache_file}" ;;
7066*) # relative path
7067 cache_file_option="--cache-file=../${cache_file}" ;;
7068esac
7069
09438bde
NN
7070# Host dirs don't like to share a cache file either, horribly enough.
7071# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7072host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7073
ffedf511 7074target_configargs="$target_configargs ${baseargs}"
671aa708
NN
7075
7076# Passing a --with-cross-host argument lets the target libraries know
7077# whether they are being built with a cross-compiler or being built
7078# native. However, it would be better to use other mechanisms to make the
7079# sorts of decisions they want to make on this basis. Please consider
7080# this option to be deprecated. FIXME.
7081if test x${is_cross_compiler} = xyes ; then
1c710c3c 7082 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7083fi
7084
dc683a3f
RW
7085# Default to --enable-multilib.
7086if test x${enable_multilib} = x ; then
671aa708 7087 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7088fi
671aa708
NN
7089
7090# Pass --with-newlib if appropriate. Note that target_configdirs has
7091# changed from the earlier setting of with_newlib.
7092if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7093 target_configargs="--with-newlib ${target_configargs}"
7094fi
7095
6b9eb62c
NN
7096# Different target subdirs use different values of certain variables
7097# (notably CXX). Worse, multilibs use *lots* of different values.
7098# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7099# it doesn't automatically accept command-line overrides of them.
7100# This means it's not safe for target subdirs to share a cache file,
7101# which is disgusting, but there you have it. Hopefully this can be
7102# fixed in future. It's still worthwhile to use a cache file for each
7103# directory. I think.
7104
bebcd931
MS
7105# Pass the appropriate --build, --host, --target and --cache-file arguments.
7106# We need to pass --target, as newer autoconf's requires consistency
7107# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7108target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7109
671aa708
NN
7110FLAGS_FOR_TARGET=
7111case " $target_configdirs " in
7112 *" newlib "*)
7113 case " $target_configargs " in
7114 *" --with-newlib "*)
7115 case "$target" in
5d571eaa
OS
7116 *-cygwin*)
7117 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'
7118 ;;
671aa708
NN
7119 esac
7120
7121 # If we're not building GCC, don't discard standard headers.
7122 if test -d ${srcdir}/gcc; then
7123 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7124
7125 if test "${build}" != "${host}"; then
7126 # On Canadian crosses, CC_FOR_TARGET will have already been set
7127 # by `configure', so we won't have an opportunity to add -Bgcc/
7128 # to it. This is right: we don't want to search that directory
7129 # for binaries, but we want the header files in there, so add
7130 # them explicitly.
215c351a 7131 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
7132
7133 # Someone might think of using the pre-installed headers on
7134 # Canadian crosses, in case the installed compiler is not fully
7135 # compatible with the compiler being built. In this case, it
7136 # would be better to flag an error than risking having
7137 # incompatible object files being constructed. We can't
7138 # guarantee that an error will be flagged, but let's hope the
7139 # compiler will do it, when presented with incompatible header
7140 # files.
7141 fi
7142 fi
7143
7144 case "${target}-${is_cross_compiler}" in
f2a0e225 7145 i[3456789]86-*-linux*-no)
671aa708
NN
7146 # Here host == target, so we don't need to build gcc,
7147 # so we don't want to discard standard headers.
7148 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7149 ;;
7150 *)
7151 # If we're building newlib, use its generic headers last, but search
7152 # for any libc-related directories first (so make it the last -B
7153 # switch).
7154 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
7155
7156 # If we're building libgloss, find the startup file, simulator library
7157 # and linker script.
7158 case " $target_configdirs " in
7159 *" libgloss "*)
7160 # Look for startup file, simulator library and maybe linker script.
7161 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7162 # Look for libnosys.a in case the target needs it.
7163 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7164 # Most targets have the linker script in the source directory.
7165 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7166 ;;
7167 esac
671aa708
NN
7168 ;;
7169 esac
7170 ;;
7171 esac
7172 ;;
7173esac
5d571eaa 7174
b91f0a41 7175case "$target" in
5d571eaa
OS
7176 x86_64-*mingw* | *-w64-mingw*)
7177 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7178 # however, use a symlink named 'mingw' in ${prefix} .
7179 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7180 ;;
7181 *-mingw*)
7182 # MinGW can't be handled as Cygwin above since it does not use newlib.
7183 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'
7184 ;;
b91f0a41 7185esac
671aa708 7186
6691a79e
ME
7187# Allow the user to override the flags for
7188# our build compiler if desired.
f019adc1
MF
7189if test x"${build}" = x"${host}" ; then
7190 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7191 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7192 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7193fi
6691a79e 7194
671aa708
NN
7195# On Canadian crosses, we'll be searching the right directories for
7196# the previously-installed cross compiler, so don't bother to add
7197# flags for directories within the install tree of the compiler
7198# being built; programs in there won't even run.
7199if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7200 # Search for pre-installed headers if nothing else fits.
9124bc53 7201 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
7202fi
7203
7204if test "x${use_gnu_ld}" = x &&
7205 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7206 # Arrange for us to find uninstalled linker scripts.
215c351a 7207 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7208fi
7209
e88a2c09
DD
7210# Search for other target-specific linker scripts and such.
7211case "${target}" in
3e19841a
PB
7212 mep*)
7213 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7214 ;;
e88a2c09
DD
7215esac
7216
671aa708 7217# Makefile fragments.
7b61653a
PE
7218for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7219do
7220 eval fragval=\$$frag
7221 if test $fragval != /dev/null; then
7222 eval $frag=${srcdir}/$fragval
7223 fi
7224done
671aa708
NN
7225
7226
7227
7228
7229
7230# Miscellanea: directories, flags, etc.
7231
7232
7233
7234
7235
7236
7237
d89f0ad6 7238
23f6b2f9 7239# Build module lists & subconfigure args.
671aa708
NN
7240
7241
7242
2abefe3d
PB
7243# Host module lists & subconfigure args.
7244
7245
7246
aae29963 7247
2abefe3d
PB
7248# Target module lists & subconfigure args.
7249
7250
7251
7252# Build tools.
7253
7254
7255
0999159b
PB
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
2abefe3d
PB
7270# Generate default definitions for YACC, M4, LEX and other programs that run
7271# on the build machine. These are used if the Makefile can't locate these
7272# programs in objdir.
7273MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7274
7275for ac_prog in 'bison -y' byacc yacc
7276do
1c710c3c 7277 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7278set dummy $ac_prog; ac_word=$2
5213506e
RW
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280$as_echo_n "checking for $ac_word... " >&6; }
7281if test "${ac_cv_prog_YACC+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
2abefe3d
PB
7283else
7284 if test -n "$YACC"; then
7285 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7286else
1c710c3c
DJ
7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
5213506e
RW
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7294 ac_cv_prog_YACC="$ac_prog"
5213506e 7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7296 break 2
7297 fi
7298done
5213506e
RW
7299 done
7300IFS=$as_save_IFS
1c710c3c 7301
2abefe3d
PB
7302fi
7303fi
1c710c3c 7304YACC=$ac_cv_prog_YACC
2abefe3d 7305if test -n "$YACC"; then
5213506e
RW
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7307$as_echo "$YACC" >&6; }
2abefe3d 7308else
5213506e
RW
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310$as_echo "no" >&6; }
2abefe3d
PB
7311fi
7312
5213506e 7313
1c710c3c 7314 test -n "$YACC" && break
2abefe3d
PB
7315done
7316test -n "$YACC" || YACC="$MISSING bison -y"
7317
7318case " $build_configdirs " in
7319 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7320 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7321esac
7322
7323for ac_prog in bison
7324do
1c710c3c 7325 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7326set dummy $ac_prog; ac_word=$2
5213506e
RW
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328$as_echo_n "checking for $ac_word... " >&6; }
7329if test "${ac_cv_prog_BISON+set}" = set; then :
7330 $as_echo_n "(cached) " >&6
2abefe3d
PB
7331else
7332 if test -n "$BISON"; then
7333 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7334else
1c710c3c
DJ
7335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336for as_dir in $PATH
7337do
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
5213506e
RW
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7342 ac_cv_prog_BISON="$ac_prog"
5213506e 7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7344 break 2
7345 fi
7346done
5213506e
RW
7347 done
7348IFS=$as_save_IFS
1c710c3c 7349
2abefe3d
PB
7350fi
7351fi
1c710c3c 7352BISON=$ac_cv_prog_BISON
2abefe3d 7353if test -n "$BISON"; then
5213506e
RW
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7355$as_echo "$BISON" >&6; }
2abefe3d 7356else
5213506e
RW
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358$as_echo "no" >&6; }
2abefe3d
PB
7359fi
7360
5213506e 7361
1c710c3c 7362 test -n "$BISON" && break
2abefe3d
PB
7363done
7364test -n "$BISON" || BISON="$MISSING bison"
7365
7366case " $build_configdirs " in
7367 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7368esac
7369
7370for ac_prog in gm4 gnum4 m4
7371do
1c710c3c 7372 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7373set dummy $ac_prog; ac_word=$2
5213506e
RW
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375$as_echo_n "checking for $ac_word... " >&6; }
7376if test "${ac_cv_prog_M4+set}" = set; then :
7377 $as_echo_n "(cached) " >&6
2abefe3d
PB
7378else
7379 if test -n "$M4"; then
7380 ac_cv_prog_M4="$M4" # Let the user override the test.
7381else
1c710c3c
DJ
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
5213506e
RW
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7389 ac_cv_prog_M4="$ac_prog"
5213506e 7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7391 break 2
7392 fi
7393done
5213506e
RW
7394 done
7395IFS=$as_save_IFS
1c710c3c 7396
2abefe3d
PB
7397fi
7398fi
1c710c3c 7399M4=$ac_cv_prog_M4
2abefe3d 7400if test -n "$M4"; then
5213506e
RW
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7402$as_echo "$M4" >&6; }
2abefe3d 7403else
5213506e
RW
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405$as_echo "no" >&6; }
2abefe3d
PB
7406fi
7407
5213506e 7408
1c710c3c 7409 test -n "$M4" && break
2abefe3d
PB
7410done
7411test -n "$M4" || M4="$MISSING m4"
7412
7413case " $build_configdirs " in
7414 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7415esac
7416
7417for ac_prog in flex lex
7418do
1c710c3c 7419 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7420set dummy $ac_prog; ac_word=$2
5213506e
RW
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422$as_echo_n "checking for $ac_word... " >&6; }
7423if test "${ac_cv_prog_LEX+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
2abefe3d
PB
7425else
7426 if test -n "$LEX"; then
7427 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7428else
1c710c3c
DJ
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
5213506e
RW
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7436 ac_cv_prog_LEX="$ac_prog"
5213506e 7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7438 break 2
7439 fi
7440done
5213506e
RW
7441 done
7442IFS=$as_save_IFS
1c710c3c 7443
2abefe3d
PB
7444fi
7445fi
1c710c3c 7446LEX=$ac_cv_prog_LEX
2abefe3d 7447if test -n "$LEX"; then
5213506e
RW
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7449$as_echo "$LEX" >&6; }
2abefe3d 7450else
5213506e
RW
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452$as_echo "no" >&6; }
2abefe3d
PB
7453fi
7454
5213506e 7455
1c710c3c 7456 test -n "$LEX" && break
2abefe3d
PB
7457done
7458test -n "$LEX" || LEX="$MISSING flex"
7459
7460case " $build_configdirs " in
7461 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7462 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7463esac
7464
7465for ac_prog in flex
7466do
1c710c3c 7467 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7468set dummy $ac_prog; ac_word=$2
5213506e
RW
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470$as_echo_n "checking for $ac_word... " >&6; }
7471if test "${ac_cv_prog_FLEX+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
2abefe3d
PB
7473else
7474 if test -n "$FLEX"; then
7475 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7476else
1c710c3c
DJ
7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
5213506e
RW
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7484 ac_cv_prog_FLEX="$ac_prog"
5213506e 7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7486 break 2
7487 fi
7488done
5213506e
RW
7489 done
7490IFS=$as_save_IFS
1c710c3c 7491
2abefe3d
PB
7492fi
7493fi
1c710c3c 7494FLEX=$ac_cv_prog_FLEX
2abefe3d 7495if test -n "$FLEX"; then
5213506e
RW
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7497$as_echo "$FLEX" >&6; }
2abefe3d 7498else
5213506e
RW
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500$as_echo "no" >&6; }
2abefe3d
PB
7501fi
7502
5213506e 7503
1c710c3c 7504 test -n "$FLEX" && break
2abefe3d
PB
7505done
7506test -n "$FLEX" || FLEX="$MISSING flex"
7507
7508case " $build_configdirs " in
7509 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7510esac
7511
7512for ac_prog in makeinfo
7513do
1c710c3c 7514 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7515set dummy $ac_prog; ac_word=$2
5213506e
RW
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517$as_echo_n "checking for $ac_word... " >&6; }
7518if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
2abefe3d
PB
7520else
7521 if test -n "$MAKEINFO"; then
7522 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7523else
1c710c3c
DJ
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
5213506e
RW
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7531 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7533 break 2
7534 fi
7535done
5213506e
RW
7536 done
7537IFS=$as_save_IFS
1c710c3c 7538
2abefe3d
PB
7539fi
7540fi
1c710c3c 7541MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7542if test -n "$MAKEINFO"; then
5213506e
RW
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7544$as_echo "$MAKEINFO" >&6; }
2abefe3d 7545else
5213506e
RW
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547$as_echo "no" >&6; }
2abefe3d
PB
7548fi
7549
5213506e 7550
1c710c3c 7551 test -n "$MAKEINFO" && break
2abefe3d
PB
7552done
7553test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7554
7555case " $build_configdirs " in
7556 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7557 *)
7558
d18ff35a 7559 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7560 # higher, else we use the "missing" dummy.
7561 if ${MAKEINFO} --version \
d18ff35a 7562 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7563 :
7564 else
7565 MAKEINFO="$MISSING makeinfo"
7566 fi
7567 ;;
7568
7569esac
671aa708 7570
2abefe3d 7571# FIXME: expect and dejagnu may become build tools?
671aa708 7572
2abefe3d
PB
7573for ac_prog in expect
7574do
1c710c3c 7575 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7576set dummy $ac_prog; ac_word=$2
5213506e
RW
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578$as_echo_n "checking for $ac_word... " >&6; }
7579if test "${ac_cv_prog_EXPECT+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
2abefe3d
PB
7581else
7582 if test -n "$EXPECT"; then
7583 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7584else
1c710c3c
DJ
7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
5213506e
RW
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7592 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7594 break 2
7595 fi
7596done
5213506e
RW
7597 done
7598IFS=$as_save_IFS
1c710c3c 7599
2abefe3d
PB
7600fi
7601fi
1c710c3c 7602EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7603if test -n "$EXPECT"; then
5213506e
RW
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7605$as_echo "$EXPECT" >&6; }
2abefe3d 7606else
5213506e
RW
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608$as_echo "no" >&6; }
2abefe3d 7609fi
671aa708 7610
5213506e 7611
1c710c3c 7612 test -n "$EXPECT" && break
2abefe3d
PB
7613done
7614test -n "$EXPECT" || EXPECT="expect"
671aa708 7615
2abefe3d
PB
7616case " $configdirs " in
7617 *" expect "*)
7618 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7619 ;;
7620esac
671aa708 7621
2abefe3d
PB
7622for ac_prog in runtest
7623do
1c710c3c 7624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7625set dummy $ac_prog; ac_word=$2
5213506e
RW
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627$as_echo_n "checking for $ac_word... " >&6; }
7628if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7629 $as_echo_n "(cached) " >&6
2abefe3d
PB
7630else
7631 if test -n "$RUNTEST"; then
7632 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7633else
1c710c3c
DJ
7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
5213506e
RW
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7641 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7643 break 2
7644 fi
7645done
5213506e
RW
7646 done
7647IFS=$as_save_IFS
1c710c3c 7648
2abefe3d
PB
7649fi
7650fi
1c710c3c 7651RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7652if test -n "$RUNTEST"; then
5213506e
RW
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7654$as_echo "$RUNTEST" >&6; }
2abefe3d 7655else
5213506e
RW
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657$as_echo "no" >&6; }
2abefe3d 7658fi
671aa708 7659
5213506e 7660
1c710c3c 7661 test -n "$RUNTEST" && break
2abefe3d
PB
7662done
7663test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7664
2abefe3d
PB
7665case " $configdirs " in
7666 *" dejagnu "*)
c394e891 7667 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7668 ;;
7669esac
671aa708
NN
7670
7671
671aa708 7672# Host tools.
ca9f4b81
AO
7673ncn_tool_prefix=
7674test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7675ncn_target_tool_prefix=
7676test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7677
278a7a38
AO
7678
7679
7680if test -n "$AR"; then
7681 ac_cv_prog_AR=$AR
7682elif test -n "$ac_cv_prog_AR"; then
7683 AR=$ac_cv_prog_AR
7684fi
7685
7686if test -n "$ac_cv_prog_AR"; then
7687 for ncn_progname in ar; do
7688 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7689set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691$as_echo_n "checking for $ac_word... " >&6; }
7692if test "${ac_cv_prog_AR+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
278a7a38
AO
7694else
7695 if test -n "$AR"; then
7696 ac_cv_prog_AR="$AR" # Let the user override the test.
7697else
7698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
5213506e
RW
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7705 ac_cv_prog_AR="${ncn_progname}"
5213506e 7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7707 break 2
7708 fi
7709done
5213506e
RW
7710 done
7711IFS=$as_save_IFS
278a7a38
AO
7712
7713fi
7714fi
7715AR=$ac_cv_prog_AR
7716if test -n "$AR"; then
5213506e
RW
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7718$as_echo "$AR" >&6; }
278a7a38 7719else
5213506e
RW
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721$as_echo "no" >&6; }
278a7a38
AO
7722fi
7723
5213506e 7724
278a7a38
AO
7725 done
7726fi
7727
7728for ncn_progname in ar; do
2693c0b0
PB
7729 if test -n "$ncn_tool_prefix"; then
7730 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7731set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733$as_echo_n "checking for $ac_word... " >&6; }
7734if test "${ac_cv_prog_AR+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7736else
7737 if test -n "$AR"; then
7738 ac_cv_prog_AR="$AR" # Let the user override the test.
7739else
1c710c3c
DJ
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
5213506e
RW
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7747 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7749 break 2
7750 fi
7751done
5213506e
RW
7752 done
7753IFS=$as_save_IFS
1c710c3c 7754
ca9f4b81
AO
7755fi
7756fi
1c710c3c 7757AR=$ac_cv_prog_AR
ca9f4b81 7758if test -n "$AR"; then
5213506e
RW
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7760$as_echo "$AR" >&6; }
ca9f4b81 7761else
5213506e
RW
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
ca9f4b81
AO
7764fi
7765
5213506e 7766
2693c0b0
PB
7767 fi
7768 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7770set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772$as_echo_n "checking for $ac_word... " >&6; }
7773if test "${ac_cv_prog_AR+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
ca9f4b81 7775else
2693c0b0 7776 if test -n "$AR"; then
af71363e
AS
7777 ac_cv_prog_AR="$AR" # Let the user override the test.
7778else
1c710c3c
DJ
7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
5213506e
RW
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7786 ac_cv_prog_AR="${ncn_progname}"
5213506e 7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7788 break 2
7789 fi
7790done
5213506e
RW
7791 done
7792IFS=$as_save_IFS
1c710c3c 7793
ca9f4b81
AO
7794fi
7795fi
1c710c3c 7796AR=$ac_cv_prog_AR
2693c0b0 7797if test -n "$AR"; then
5213506e
RW
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7799$as_echo "$AR" >&6; }
ca9f4b81 7800else
5213506e
RW
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802$as_echo "no" >&6; }
ca9f4b81 7803fi
1c710c3c 7804
5213506e 7805
2693c0b0
PB
7806 fi
7807 test -n "$ac_cv_prog_AR" && break
7808done
7809
7810if test -z "$ac_cv_prog_AR" ; then
7811 set dummy ar
7812 if test $build = $host ; then
7813 AR="$2"
ca9f4b81 7814 else
2693c0b0 7815 AR="${ncn_tool_prefix}$2"
ca9f4b81 7816 fi
ca9f4b81
AO
7817fi
7818
278a7a38
AO
7819
7820
7821if test -n "$AS"; then
7822 ac_cv_prog_AS=$AS
7823elif test -n "$ac_cv_prog_AS"; then
7824 AS=$ac_cv_prog_AS
7825fi
7826
7827if test -n "$ac_cv_prog_AS"; then
7828 for ncn_progname in as; do
7829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7830set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832$as_echo_n "checking for $ac_word... " >&6; }
7833if test "${ac_cv_prog_AS+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
278a7a38
AO
7835else
7836 if test -n "$AS"; then
7837 ac_cv_prog_AS="$AS" # Let the user override the test.
7838else
7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
5213506e
RW
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7846 ac_cv_prog_AS="${ncn_progname}"
5213506e 7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7848 break 2
7849 fi
7850done
5213506e
RW
7851 done
7852IFS=$as_save_IFS
278a7a38
AO
7853
7854fi
7855fi
7856AS=$ac_cv_prog_AS
7857if test -n "$AS"; then
5213506e
RW
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7859$as_echo "$AS" >&6; }
278a7a38 7860else
5213506e
RW
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
278a7a38
AO
7863fi
7864
5213506e 7865
278a7a38
AO
7866 done
7867fi
7868
7869for ncn_progname in as; do
2693c0b0
PB
7870 if test -n "$ncn_tool_prefix"; then
7871 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7872set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874$as_echo_n "checking for $ac_word... " >&6; }
7875if test "${ac_cv_prog_AS+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7877else
7878 if test -n "$AS"; then
7879 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 7880else
1c710c3c
DJ
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
5213506e
RW
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7888 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7890 break 2
7891 fi
7892done
5213506e
RW
7893 done
7894IFS=$as_save_IFS
1c710c3c 7895
ca9f4b81
AO
7896fi
7897fi
1c710c3c 7898AS=$ac_cv_prog_AS
ca9f4b81 7899if test -n "$AS"; then
5213506e
RW
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7901$as_echo "$AS" >&6; }
ca9f4b81 7902else
5213506e
RW
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904$as_echo "no" >&6; }
ca9f4b81
AO
7905fi
7906
5213506e 7907
2693c0b0
PB
7908 fi
7909 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7911set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913$as_echo_n "checking for $ac_word... " >&6; }
7914if test "${ac_cv_prog_AS+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
ca9f4b81 7916else
2693c0b0
PB
7917 if test -n "$AS"; then
7918 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 7919else
1c710c3c
DJ
7920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921for as_dir in $PATH
7922do
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
5213506e
RW
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7927 ac_cv_prog_AS="${ncn_progname}"
5213506e 7928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7929 break 2
7930 fi
7931done
5213506e
RW
7932 done
7933IFS=$as_save_IFS
1c710c3c 7934
ca9f4b81
AO
7935fi
7936fi
1c710c3c 7937AS=$ac_cv_prog_AS
2693c0b0 7938if test -n "$AS"; then
5213506e
RW
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7940$as_echo "$AS" >&6; }
ca9f4b81 7941else
5213506e
RW
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943$as_echo "no" >&6; }
ca9f4b81 7944fi
1c710c3c 7945
5213506e 7946
2693c0b0
PB
7947 fi
7948 test -n "$ac_cv_prog_AS" && break
7949done
7950
7951if test -z "$ac_cv_prog_AS" ; then
7952 set dummy as
7953 if test $build = $host ; then
7954 AS="$2"
ca9f4b81 7955 else
2693c0b0 7956 AS="${ncn_tool_prefix}$2"
ca9f4b81 7957 fi
ca9f4b81
AO
7958fi
7959
278a7a38
AO
7960
7961
7962if test -n "$DLLTOOL"; then
7963 ac_cv_prog_DLLTOOL=$DLLTOOL
7964elif test -n "$ac_cv_prog_DLLTOOL"; then
7965 DLLTOOL=$ac_cv_prog_DLLTOOL
7966fi
7967
7968if test -n "$ac_cv_prog_DLLTOOL"; then
7969 for ncn_progname in dlltool; do
7970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7971set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973$as_echo_n "checking for $ac_word... " >&6; }
7974if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
278a7a38
AO
7976else
7977 if test -n "$DLLTOOL"; then
7978 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7979else
7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
5213506e
RW
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7987 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7989 break 2
7990 fi
7991done
5213506e
RW
7992 done
7993IFS=$as_save_IFS
278a7a38
AO
7994
7995fi
7996fi
7997DLLTOOL=$ac_cv_prog_DLLTOOL
7998if test -n "$DLLTOOL"; then
5213506e
RW
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8000$as_echo "$DLLTOOL" >&6; }
278a7a38 8001else
5213506e
RW
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003$as_echo "no" >&6; }
278a7a38
AO
8004fi
8005
5213506e 8006
278a7a38
AO
8007 done
8008fi
8009
8010for ncn_progname in dlltool; do
2693c0b0
PB
8011 if test -n "$ncn_tool_prefix"; then
8012 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8013set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
8016if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8018else
8019 if test -n "$DLLTOOL"; then
8020 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8021else
1c710c3c
DJ
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
5213506e
RW
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8029 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8031 break 2
8032 fi
8033done
5213506e
RW
8034 done
8035IFS=$as_save_IFS
1c710c3c 8036
ca9f4b81
AO
8037fi
8038fi
1c710c3c 8039DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8040if test -n "$DLLTOOL"; then
5213506e
RW
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8042$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8043else
5213506e
RW
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
ca9f4b81
AO
8046fi
8047
5213506e 8048
2693c0b0
PB
8049 fi
8050 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8052set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054$as_echo_n "checking for $ac_word... " >&6; }
8055if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
ca9f4b81 8057else
2693c0b0
PB
8058 if test -n "$DLLTOOL"; then
8059 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8060else
1c710c3c
DJ
8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062for as_dir in $PATH
8063do
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
5213506e
RW
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8068 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8070 break 2
8071 fi
8072done
5213506e
RW
8073 done
8074IFS=$as_save_IFS
1c710c3c 8075
ca9f4b81
AO
8076fi
8077fi
1c710c3c 8078DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8079if test -n "$DLLTOOL"; then
5213506e
RW
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8081$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8082else
5213506e
RW
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084$as_echo "no" >&6; }
ca9f4b81 8085fi
1c710c3c 8086
5213506e 8087
2693c0b0
PB
8088 fi
8089 test -n "$ac_cv_prog_DLLTOOL" && break
8090done
8091
8092if test -z "$ac_cv_prog_DLLTOOL" ; then
8093 set dummy dlltool
8094 if test $build = $host ; then
8095 DLLTOOL="$2"
ca9f4b81 8096 else
2693c0b0 8097 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8098 fi
ca9f4b81
AO
8099fi
8100
278a7a38
AO
8101
8102
8103if test -n "$LD"; then
8104 ac_cv_prog_LD=$LD
8105elif test -n "$ac_cv_prog_LD"; then
8106 LD=$ac_cv_prog_LD
8107fi
8108
8109if test -n "$ac_cv_prog_LD"; then
8110 for ncn_progname in ld; do
8111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8112set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114$as_echo_n "checking for $ac_word... " >&6; }
8115if test "${ac_cv_prog_LD+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
278a7a38
AO
8117else
8118 if test -n "$LD"; then
8119 ac_cv_prog_LD="$LD" # Let the user override the test.
8120else
8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122for as_dir in $PATH
8123do
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
5213506e
RW
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8128 ac_cv_prog_LD="${ncn_progname}"
5213506e 8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8130 break 2
8131 fi
8132done
5213506e
RW
8133 done
8134IFS=$as_save_IFS
278a7a38
AO
8135
8136fi
8137fi
8138LD=$ac_cv_prog_LD
8139if test -n "$LD"; then
5213506e
RW
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8141$as_echo "$LD" >&6; }
278a7a38 8142else
5213506e
RW
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144$as_echo "no" >&6; }
278a7a38
AO
8145fi
8146
5213506e 8147
278a7a38
AO
8148 done
8149fi
8150
8151for ncn_progname in ld; do
2693c0b0
PB
8152 if test -n "$ncn_tool_prefix"; then
8153 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8154set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156$as_echo_n "checking for $ac_word... " >&6; }
8157if test "${ac_cv_prog_LD+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8159else
8160 if test -n "$LD"; then
8161 ac_cv_prog_LD="$LD" # Let the user override the test.
8162else
1c710c3c
DJ
8163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164for as_dir in $PATH
8165do
8166 IFS=$as_save_IFS
8167 test -z "$as_dir" && as_dir=.
5213506e
RW
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8170 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8172 break 2
8173 fi
8174done
5213506e
RW
8175 done
8176IFS=$as_save_IFS
1c710c3c 8177
ca9f4b81
AO
8178fi
8179fi
1c710c3c 8180LD=$ac_cv_prog_LD
ca9f4b81 8181if test -n "$LD"; then
5213506e
RW
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8183$as_echo "$LD" >&6; }
ca9f4b81 8184else
5213506e
RW
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186$as_echo "no" >&6; }
ca9f4b81
AO
8187fi
8188
5213506e 8189
2693c0b0
PB
8190 fi
8191 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8193set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195$as_echo_n "checking for $ac_word... " >&6; }
8196if test "${ac_cv_prog_LD+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
ca9f4b81 8198else
2693c0b0
PB
8199 if test -n "$LD"; then
8200 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8201else
1c710c3c
DJ
8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
5213506e
RW
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8209 ac_cv_prog_LD="${ncn_progname}"
5213506e 8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8211 break 2
8212 fi
8213done
5213506e
RW
8214 done
8215IFS=$as_save_IFS
1c710c3c 8216
ca9f4b81
AO
8217fi
8218fi
1c710c3c 8219LD=$ac_cv_prog_LD
2693c0b0 8220if test -n "$LD"; then
5213506e
RW
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8222$as_echo "$LD" >&6; }
ca9f4b81 8223else
5213506e
RW
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225$as_echo "no" >&6; }
ca9f4b81 8226fi
1c710c3c 8227
5213506e 8228
2693c0b0
PB
8229 fi
8230 test -n "$ac_cv_prog_LD" && break
8231done
8232
8233if test -z "$ac_cv_prog_LD" ; then
8234 set dummy ld
8235 if test $build = $host ; then
8236 LD="$2"
ca9f4b81 8237 else
2693c0b0 8238 LD="${ncn_tool_prefix}$2"
ca9f4b81 8239 fi
ca9f4b81
AO
8240fi
8241
278a7a38
AO
8242
8243
8244if test -n "$LIPO"; then
8245 ac_cv_prog_LIPO=$LIPO
8246elif test -n "$ac_cv_prog_LIPO"; then
8247 LIPO=$ac_cv_prog_LIPO
8248fi
8249
8250if test -n "$ac_cv_prog_LIPO"; then
8251 for ncn_progname in lipo; do
8252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8253set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255$as_echo_n "checking for $ac_word... " >&6; }
8256if test "${ac_cv_prog_LIPO+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
278a7a38
AO
8258else
8259 if test -n "$LIPO"; then
8260 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8261else
8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
5213506e
RW
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8269 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8271 break 2
8272 fi
8273done
5213506e
RW
8274 done
8275IFS=$as_save_IFS
278a7a38
AO
8276
8277fi
8278fi
8279LIPO=$ac_cv_prog_LIPO
8280if test -n "$LIPO"; then
5213506e
RW
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8282$as_echo "$LIPO" >&6; }
278a7a38 8283else
5213506e
RW
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285$as_echo "no" >&6; }
278a7a38
AO
8286fi
8287
5213506e 8288
278a7a38
AO
8289 done
8290fi
8291
8292for ncn_progname in lipo; do
2abefe3d
PB
8293 if test -n "$ncn_tool_prefix"; then
8294 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8295set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297$as_echo_n "checking for $ac_word... " >&6; }
8298if test "${ac_cv_prog_LIPO+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
2abefe3d
PB
8300else
8301 if test -n "$LIPO"; then
8302 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8303else
1c710c3c
DJ
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
5213506e
RW
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8311 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8313 break 2
8314 fi
8315done
5213506e
RW
8316 done
8317IFS=$as_save_IFS
1c710c3c 8318
2abefe3d
PB
8319fi
8320fi
1c710c3c 8321LIPO=$ac_cv_prog_LIPO
2abefe3d 8322if test -n "$LIPO"; then
5213506e
RW
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8324$as_echo "$LIPO" >&6; }
2abefe3d 8325else
5213506e
RW
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327$as_echo "no" >&6; }
2abefe3d
PB
8328fi
8329
5213506e 8330
2abefe3d
PB
8331 fi
8332 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8334set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336$as_echo_n "checking for $ac_word... " >&6; }
8337if test "${ac_cv_prog_LIPO+set}" = set; then :
8338 $as_echo_n "(cached) " >&6
2abefe3d
PB
8339else
8340 if test -n "$LIPO"; then
8341 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8342else
1c710c3c
DJ
8343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344for as_dir in $PATH
8345do
8346 IFS=$as_save_IFS
8347 test -z "$as_dir" && as_dir=.
5213506e
RW
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8350 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8352 break 2
8353 fi
8354done
5213506e
RW
8355 done
8356IFS=$as_save_IFS
1c710c3c 8357
2abefe3d
PB
8358fi
8359fi
1c710c3c 8360LIPO=$ac_cv_prog_LIPO
2abefe3d 8361if test -n "$LIPO"; then
5213506e
RW
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8363$as_echo "$LIPO" >&6; }
2abefe3d 8364else
5213506e
RW
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366$as_echo "no" >&6; }
2abefe3d 8367fi
1c710c3c 8368
5213506e 8369
2abefe3d
PB
8370 fi
8371 test -n "$ac_cv_prog_LIPO" && break
8372done
8373
8374if test -z "$ac_cv_prog_LIPO" ; then
8375 set dummy lipo
8376 if test $build = $host ; then
8377 LIPO="$2"
8378 else
8379 LIPO="${ncn_tool_prefix}$2"
8380 fi
8381fi
8382
278a7a38
AO
8383
8384
8385if test -n "$NM"; then
8386 ac_cv_prog_NM=$NM
8387elif test -n "$ac_cv_prog_NM"; then
8388 NM=$ac_cv_prog_NM
8389fi
8390
8391if test -n "$ac_cv_prog_NM"; then
8392 for ncn_progname in nm; do
8393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8394set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396$as_echo_n "checking for $ac_word... " >&6; }
8397if test "${ac_cv_prog_NM+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8399else
8400 if test -n "$NM"; then
8401 ac_cv_prog_NM="$NM" # Let the user override the test.
8402else
1c710c3c
DJ
8403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404for as_dir in $PATH
8405do
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
5213506e
RW
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8410 ac_cv_prog_NM="${ncn_progname}"
5213506e 8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8412 break 2
8413 fi
8414done
5213506e
RW
8415 done
8416IFS=$as_save_IFS
1c710c3c 8417
ca9f4b81
AO
8418fi
8419fi
1c710c3c 8420NM=$ac_cv_prog_NM
ca9f4b81 8421if test -n "$NM"; then
5213506e
RW
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8423$as_echo "$NM" >&6; }
ca9f4b81 8424else
5213506e
RW
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426$as_echo "no" >&6; }
ca9f4b81
AO
8427fi
8428
5213506e 8429
278a7a38
AO
8430 done
8431fi
8432
8433for ncn_progname in nm; do
8434 if test -n "$ncn_tool_prefix"; then
8435 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8436set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438$as_echo_n "checking for $ac_word... " >&6; }
8439if test "${ac_cv_prog_NM+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
ca9f4b81 8441else
2693c0b0
PB
8442 if test -n "$NM"; then
8443 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8444else
1c710c3c
DJ
8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446for as_dir in $PATH
8447do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
5213506e
RW
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8452 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8454 break 2
8455 fi
8456done
5213506e
RW
8457 done
8458IFS=$as_save_IFS
1c710c3c 8459
ca9f4b81
AO
8460fi
8461fi
1c710c3c 8462NM=$ac_cv_prog_NM
2693c0b0 8463if test -n "$NM"; then
5213506e
RW
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8465$as_echo "$NM" >&6; }
ca9f4b81 8466else
5213506e
RW
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }
ca9f4b81 8469fi
1c710c3c 8470
5213506e 8471
2693c0b0 8472 fi
278a7a38
AO
8473 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8475set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477$as_echo_n "checking for $ac_word... " >&6; }
8478if test "${ac_cv_prog_NM+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
278a7a38
AO
8480else
8481 if test -n "$NM"; then
8482 ac_cv_prog_NM="$NM" # Let the user override the test.
8483else
8484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
8486do
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
5213506e
RW
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8491 ac_cv_prog_NM="${ncn_progname}"
5213506e 8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8493 break 2
8494 fi
8495done
5213506e
RW
8496 done
8497IFS=$as_save_IFS
278a7a38
AO
8498
8499fi
8500fi
8501NM=$ac_cv_prog_NM
8502if test -n "$NM"; then
5213506e
RW
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8504$as_echo "$NM" >&6; }
278a7a38 8505else
5213506e
RW
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507$as_echo "no" >&6; }
278a7a38
AO
8508fi
8509
5213506e 8510
278a7a38
AO
8511 fi
8512 test -n "$ac_cv_prog_NM" && break
8513done
8514
8515if test -z "$ac_cv_prog_NM" ; then
8516 set dummy nm
8517 if test $build = $host ; then
8518 NM="$2"
8519 else
8520 NM="${ncn_tool_prefix}$2"
8521 fi
8522fi
8523
8524
8525
8526if test -n "$RANLIB"; then
8527 ac_cv_prog_RANLIB=$RANLIB
8528elif test -n "$ac_cv_prog_RANLIB"; then
8529 RANLIB=$ac_cv_prog_RANLIB
8530fi
8531
8532if test -n "$ac_cv_prog_RANLIB"; then
8533 for ncn_progname in ranlib; do
8534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8535set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
8538if test "${ac_cv_prog_RANLIB+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
278a7a38
AO
8540else
8541 if test -n "$RANLIB"; then
8542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
5213506e
RW
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8551 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8553 break 2
8554 fi
8555done
5213506e
RW
8556 done
8557IFS=$as_save_IFS
278a7a38
AO
8558
8559fi
8560fi
8561RANLIB=$ac_cv_prog_RANLIB
8562if test -n "$RANLIB"; then
5213506e
RW
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8564$as_echo "$RANLIB" >&6; }
278a7a38 8565else
5213506e
RW
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567$as_echo "no" >&6; }
278a7a38
AO
8568fi
8569
5213506e 8570
278a7a38
AO
8571 done
8572fi
ca9f4b81 8573
278a7a38 8574for ncn_progname in ranlib; do
2693c0b0
PB
8575 if test -n "$ncn_tool_prefix"; then
8576 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8577set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579$as_echo_n "checking for $ac_word... " >&6; }
8580if test "${ac_cv_prog_RANLIB+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8582else
8583 if test -n "$RANLIB"; then
8584 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8585else
1c710c3c
DJ
8586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587for as_dir in $PATH
8588do
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
5213506e
RW
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8593 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8595 break 2
8596 fi
8597done
5213506e
RW
8598 done
8599IFS=$as_save_IFS
1c710c3c 8600
ca9f4b81
AO
8601fi
8602fi
1c710c3c 8603RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8604if test -n "$RANLIB"; then
5213506e
RW
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8606$as_echo "$RANLIB" >&6; }
ca9f4b81 8607else
5213506e
RW
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609$as_echo "no" >&6; }
ca9f4b81
AO
8610fi
8611
5213506e 8612
2693c0b0
PB
8613 fi
8614 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8616set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618$as_echo_n "checking for $ac_word... " >&6; }
8619if test "${ac_cv_prog_RANLIB+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
ca9f4b81 8621else
2693c0b0
PB
8622 if test -n "$RANLIB"; then
8623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8624else
1c710c3c
DJ
8625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626for as_dir in $PATH
8627do
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
5213506e
RW
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8632 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8634 break 2
8635 fi
8636done
5213506e
RW
8637 done
8638IFS=$as_save_IFS
1c710c3c 8639
ca9f4b81
AO
8640fi
8641fi
1c710c3c 8642RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8643if test -n "$RANLIB"; then
5213506e
RW
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8645$as_echo "$RANLIB" >&6; }
ca9f4b81 8646else
5213506e
RW
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648$as_echo "no" >&6; }
ca9f4b81 8649fi
1c710c3c 8650
5213506e 8651
ca9f4b81 8652 fi
2693c0b0
PB
8653 test -n "$ac_cv_prog_RANLIB" && break
8654done
8655
8656if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8657 RANLIB="true"
ca9f4b81
AO
8658fi
8659
278a7a38
AO
8660
8661
8662if test -n "$STRIP"; then
8663 ac_cv_prog_STRIP=$STRIP
8664elif test -n "$ac_cv_prog_STRIP"; then
8665 STRIP=$ac_cv_prog_STRIP
8666fi
8667
8668if test -n "$ac_cv_prog_STRIP"; then
8669 for ncn_progname in strip; do
8670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8671set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673$as_echo_n "checking for $ac_word... " >&6; }
8674if test "${ac_cv_prog_STRIP+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
278a7a38
AO
8676else
8677 if test -n "$STRIP"; then
8678 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8679else
8680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681for as_dir in $PATH
8682do
8683 IFS=$as_save_IFS
8684 test -z "$as_dir" && as_dir=.
5213506e
RW
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8687 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8689 break 2
8690 fi
8691done
5213506e
RW
8692 done
8693IFS=$as_save_IFS
278a7a38
AO
8694
8695fi
8696fi
8697STRIP=$ac_cv_prog_STRIP
8698if test -n "$STRIP"; then
5213506e
RW
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8700$as_echo "$STRIP" >&6; }
278a7a38 8701else
5213506e
RW
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703$as_echo "no" >&6; }
278a7a38
AO
8704fi
8705
5213506e 8706
278a7a38
AO
8707 done
8708fi
8709
8710for ncn_progname in strip; do
2abefe3d
PB
8711 if test -n "$ncn_tool_prefix"; then
8712 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8713set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715$as_echo_n "checking for $ac_word... " >&6; }
8716if test "${ac_cv_prog_STRIP+set}" = set; then :
8717 $as_echo_n "(cached) " >&6
2abefe3d
PB
8718else
8719 if test -n "$STRIP"; then
8720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8721else
1c710c3c
DJ
8722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723for as_dir in $PATH
8724do
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
5213506e
RW
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8729 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8731 break 2
8732 fi
8733done
5213506e
RW
8734 done
8735IFS=$as_save_IFS
1c710c3c 8736
2abefe3d
PB
8737fi
8738fi
1c710c3c 8739STRIP=$ac_cv_prog_STRIP
2abefe3d 8740if test -n "$STRIP"; then
5213506e
RW
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8742$as_echo "$STRIP" >&6; }
2abefe3d 8743else
5213506e
RW
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745$as_echo "no" >&6; }
2abefe3d
PB
8746fi
8747
5213506e 8748
2abefe3d
PB
8749 fi
8750 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8752set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754$as_echo_n "checking for $ac_word... " >&6; }
8755if test "${ac_cv_prog_STRIP+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
2abefe3d
PB
8757else
8758 if test -n "$STRIP"; then
8759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8760else
1c710c3c
DJ
8761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762for as_dir in $PATH
8763do
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
5213506e
RW
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8768 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8770 break 2
8771 fi
8772done
5213506e
RW
8773 done
8774IFS=$as_save_IFS
1c710c3c 8775
2abefe3d
PB
8776fi
8777fi
1c710c3c 8778STRIP=$ac_cv_prog_STRIP
2abefe3d 8779if test -n "$STRIP"; then
5213506e
RW
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8781$as_echo "$STRIP" >&6; }
2abefe3d 8782else
5213506e
RW
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784$as_echo "no" >&6; }
2abefe3d 8785fi
1c710c3c 8786
5213506e 8787
2abefe3d
PB
8788 fi
8789 test -n "$ac_cv_prog_STRIP" && break
8790done
8791
8792if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 8793 STRIP="true"
2abefe3d
PB
8794fi
8795
278a7a38
AO
8796
8797
8798if test -n "$WINDRES"; then
8799 ac_cv_prog_WINDRES=$WINDRES
8800elif test -n "$ac_cv_prog_WINDRES"; then
8801 WINDRES=$ac_cv_prog_WINDRES
8802fi
8803
8804if test -n "$ac_cv_prog_WINDRES"; then
8805 for ncn_progname in windres; do
8806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8807set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809$as_echo_n "checking for $ac_word... " >&6; }
8810if test "${ac_cv_prog_WINDRES+set}" = set; then :
8811 $as_echo_n "(cached) " >&6
278a7a38
AO
8812else
8813 if test -n "$WINDRES"; then
8814 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8815else
8816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817for as_dir in $PATH
8818do
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
5213506e
RW
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8823 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8825 break 2
8826 fi
8827done
5213506e
RW
8828 done
8829IFS=$as_save_IFS
278a7a38
AO
8830
8831fi
8832fi
8833WINDRES=$ac_cv_prog_WINDRES
8834if test -n "$WINDRES"; then
5213506e
RW
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8836$as_echo "$WINDRES" >&6; }
278a7a38 8837else
5213506e
RW
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839$as_echo "no" >&6; }
278a7a38
AO
8840fi
8841
5213506e 8842
278a7a38
AO
8843 done
8844fi
8845
8846for ncn_progname in windres; do
2693c0b0
PB
8847 if test -n "$ncn_tool_prefix"; then
8848 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8849set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851$as_echo_n "checking for $ac_word... " >&6; }
8852if test "${ac_cv_prog_WINDRES+set}" = set; then :
8853 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8854else
8855 if test -n "$WINDRES"; then
8856 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8857else
1c710c3c
DJ
8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859for as_dir in $PATH
8860do
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
5213506e
RW
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8865 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8867 break 2
8868 fi
8869done
5213506e
RW
8870 done
8871IFS=$as_save_IFS
1c710c3c 8872
ca9f4b81
AO
8873fi
8874fi
1c710c3c 8875WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 8876if test -n "$WINDRES"; then
5213506e
RW
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8878$as_echo "$WINDRES" >&6; }
ca9f4b81 8879else
5213506e
RW
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881$as_echo "no" >&6; }
ca9f4b81
AO
8882fi
8883
5213506e 8884
2693c0b0
PB
8885 fi
8886 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8888set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890$as_echo_n "checking for $ac_word... " >&6; }
8891if test "${ac_cv_prog_WINDRES+set}" = set; then :
8892 $as_echo_n "(cached) " >&6
ca9f4b81 8893else
2693c0b0
PB
8894 if test -n "$WINDRES"; then
8895 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 8896else
1c710c3c
DJ
8897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898for as_dir in $PATH
8899do
8900 IFS=$as_save_IFS
8901 test -z "$as_dir" && as_dir=.
5213506e
RW
8902 for ac_exec_ext in '' $ac_executable_extensions; do
8903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8904 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 8905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8906 break 2
8907 fi
8908done
5213506e
RW
8909 done
8910IFS=$as_save_IFS
1c710c3c 8911
ca9f4b81
AO
8912fi
8913fi
1c710c3c 8914WINDRES=$ac_cv_prog_WINDRES
2693c0b0 8915if test -n "$WINDRES"; then
5213506e
RW
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8917$as_echo "$WINDRES" >&6; }
ca9f4b81 8918else
5213506e
RW
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920$as_echo "no" >&6; }
ca9f4b81 8921fi
1c710c3c 8922
5213506e 8923
2693c0b0
PB
8924 fi
8925 test -n "$ac_cv_prog_WINDRES" && break
8926done
8927
8928if test -z "$ac_cv_prog_WINDRES" ; then
8929 set dummy windres
8930 if test $build = $host ; then
8931 WINDRES="$2"
ca9f4b81 8932 else
2693c0b0 8933 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 8934 fi
ca9f4b81
AO
8935fi
8936
278a7a38
AO
8937
8938
901119ae
KT
8939if test -n "$WINDMC"; then
8940 ac_cv_prog_WINDMC=$WINDMC
8941elif test -n "$ac_cv_prog_WINDMC"; then
8942 WINDMC=$ac_cv_prog_WINDMC
8943fi
8944
8945if test -n "$ac_cv_prog_WINDMC"; then
8946 for ncn_progname in windmc; do
8947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8948set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950$as_echo_n "checking for $ac_word... " >&6; }
8951if test "${ac_cv_prog_WINDMC+set}" = set; then :
8952 $as_echo_n "(cached) " >&6
901119ae
KT
8953else
8954 if test -n "$WINDMC"; then
8955 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8956else
8957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958for as_dir in $PATH
8959do
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
5213506e
RW
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 8964 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
8966 break 2
8967 fi
8968done
5213506e
RW
8969 done
8970IFS=$as_save_IFS
901119ae
KT
8971
8972fi
8973fi
8974WINDMC=$ac_cv_prog_WINDMC
8975if test -n "$WINDMC"; then
5213506e
RW
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8977$as_echo "$WINDMC" >&6; }
901119ae 8978else
5213506e
RW
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980$as_echo "no" >&6; }
901119ae
KT
8981fi
8982
5213506e 8983
901119ae
KT
8984 done
8985fi
8986
8987for ncn_progname in windmc; do
8988 if test -n "$ncn_tool_prefix"; then
8989 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8990set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992$as_echo_n "checking for $ac_word... " >&6; }
8993if test "${ac_cv_prog_WINDMC+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
901119ae
KT
8995else
8996 if test -n "$WINDMC"; then
8997 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8998else
8999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000for as_dir in $PATH
9001do
9002 IFS=$as_save_IFS
9003 test -z "$as_dir" && as_dir=.
5213506e
RW
9004 for ac_exec_ext in '' $ac_executable_extensions; do
9005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9006 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9008 break 2
9009 fi
9010done
5213506e
RW
9011 done
9012IFS=$as_save_IFS
901119ae
KT
9013
9014fi
9015fi
9016WINDMC=$ac_cv_prog_WINDMC
9017if test -n "$WINDMC"; then
5213506e
RW
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9019$as_echo "$WINDMC" >&6; }
901119ae 9020else
5213506e
RW
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022$as_echo "no" >&6; }
901119ae
KT
9023fi
9024
5213506e 9025
901119ae
KT
9026 fi
9027 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9029set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031$as_echo_n "checking for $ac_word... " >&6; }
9032if test "${ac_cv_prog_WINDMC+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
901119ae
KT
9034else
9035 if test -n "$WINDMC"; then
9036 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9037else
9038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039for as_dir in $PATH
9040do
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
5213506e
RW
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9045 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9047 break 2
9048 fi
9049done
5213506e
RW
9050 done
9051IFS=$as_save_IFS
901119ae
KT
9052
9053fi
9054fi
9055WINDMC=$ac_cv_prog_WINDMC
9056if test -n "$WINDMC"; then
5213506e
RW
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9058$as_echo "$WINDMC" >&6; }
901119ae 9059else
5213506e
RW
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061$as_echo "no" >&6; }
901119ae
KT
9062fi
9063
5213506e 9064
901119ae
KT
9065 fi
9066 test -n "$ac_cv_prog_WINDMC" && break
9067done
9068
9069if test -z "$ac_cv_prog_WINDMC" ; then
9070 set dummy windmc
9071 if test $build = $host ; then
9072 WINDMC="$2"
9073 else
9074 WINDMC="${ncn_tool_prefix}$2"
9075 fi
9076fi
9077
9078
9079
278a7a38
AO
9080if test -n "$OBJCOPY"; then
9081 ac_cv_prog_OBJCOPY=$OBJCOPY
9082elif test -n "$ac_cv_prog_OBJCOPY"; then
9083 OBJCOPY=$ac_cv_prog_OBJCOPY
9084fi
9085
9086if test -n "$ac_cv_prog_OBJCOPY"; then
9087 for ncn_progname in objcopy; do
9088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9089set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091$as_echo_n "checking for $ac_word... " >&6; }
9092if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
278a7a38
AO
9094else
9095 if test -n "$OBJCOPY"; then
9096 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9097else
9098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099for as_dir in $PATH
9100do
9101 IFS=$as_save_IFS
9102 test -z "$as_dir" && as_dir=.
5213506e
RW
9103 for ac_exec_ext in '' $ac_executable_extensions; do
9104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9105 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9107 break 2
9108 fi
9109done
5213506e
RW
9110 done
9111IFS=$as_save_IFS
278a7a38
AO
9112
9113fi
9114fi
9115OBJCOPY=$ac_cv_prog_OBJCOPY
9116if test -n "$OBJCOPY"; then
5213506e
RW
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9118$as_echo "$OBJCOPY" >&6; }
278a7a38 9119else
5213506e
RW
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121$as_echo "no" >&6; }
278a7a38
AO
9122fi
9123
5213506e 9124
278a7a38
AO
9125 done
9126fi
9127
9128for ncn_progname in objcopy; do
2693c0b0
PB
9129 if test -n "$ncn_tool_prefix"; then
9130 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9131set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133$as_echo_n "checking for $ac_word... " >&6; }
9134if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9136else
9137 if test -n "$OBJCOPY"; then
9138 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9139else
1c710c3c
DJ
9140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141for as_dir in $PATH
9142do
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
5213506e
RW
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9147 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9149 break 2
9150 fi
9151done
5213506e
RW
9152 done
9153IFS=$as_save_IFS
1c710c3c 9154
ca9f4b81
AO
9155fi
9156fi
1c710c3c 9157OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9158if test -n "$OBJCOPY"; then
5213506e
RW
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9160$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9161else
5213506e
RW
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163$as_echo "no" >&6; }
ca9f4b81
AO
9164fi
9165
5213506e 9166
2693c0b0
PB
9167 fi
9168 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9170set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172$as_echo_n "checking for $ac_word... " >&6; }
9173if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9174 $as_echo_n "(cached) " >&6
ca9f4b81 9175else
2693c0b0
PB
9176 if test -n "$OBJCOPY"; then
9177 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9178else
1c710c3c
DJ
9179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180for as_dir in $PATH
9181do
9182 IFS=$as_save_IFS
9183 test -z "$as_dir" && as_dir=.
5213506e
RW
9184 for ac_exec_ext in '' $ac_executable_extensions; do
9185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9186 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9188 break 2
9189 fi
9190done
5213506e
RW
9191 done
9192IFS=$as_save_IFS
1c710c3c 9193
ca9f4b81
AO
9194fi
9195fi
1c710c3c 9196OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9197if test -n "$OBJCOPY"; then
5213506e
RW
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9199$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9200else
5213506e
RW
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202$as_echo "no" >&6; }
ca9f4b81 9203fi
1c710c3c 9204
5213506e 9205
2693c0b0
PB
9206 fi
9207 test -n "$ac_cv_prog_OBJCOPY" && break
9208done
9209
9210if test -z "$ac_cv_prog_OBJCOPY" ; then
9211 set dummy objcopy
9212 if test $build = $host ; then
9213 OBJCOPY="$2"
ca9f4b81 9214 else
2693c0b0 9215 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9216 fi
ca9f4b81
AO
9217fi
9218
278a7a38
AO
9219
9220
9221if test -n "$OBJDUMP"; then
9222 ac_cv_prog_OBJDUMP=$OBJDUMP
9223elif test -n "$ac_cv_prog_OBJDUMP"; then
9224 OBJDUMP=$ac_cv_prog_OBJDUMP
9225fi
9226
9227if test -n "$ac_cv_prog_OBJDUMP"; then
9228 for ncn_progname in objdump; do
9229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9230set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9232$as_echo_n "checking for $ac_word... " >&6; }
9233if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9234 $as_echo_n "(cached) " >&6
278a7a38
AO
9235else
9236 if test -n "$OBJDUMP"; then
9237 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9238else
9239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240for as_dir in $PATH
9241do
9242 IFS=$as_save_IFS
9243 test -z "$as_dir" && as_dir=.
5213506e
RW
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9246 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9248 break 2
9249 fi
9250done
5213506e
RW
9251 done
9252IFS=$as_save_IFS
278a7a38
AO
9253
9254fi
9255fi
9256OBJDUMP=$ac_cv_prog_OBJDUMP
9257if test -n "$OBJDUMP"; then
5213506e
RW
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9259$as_echo "$OBJDUMP" >&6; }
278a7a38 9260else
5213506e
RW
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262$as_echo "no" >&6; }
278a7a38
AO
9263fi
9264
5213506e 9265
278a7a38
AO
9266 done
9267fi
9268
9269for ncn_progname in objdump; do
2693c0b0
PB
9270 if test -n "$ncn_tool_prefix"; then
9271 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9272set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274$as_echo_n "checking for $ac_word... " >&6; }
9275if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9277else
9278 if test -n "$OBJDUMP"; then
9279 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9280else
1c710c3c
DJ
9281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282for as_dir in $PATH
9283do
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
5213506e
RW
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9288 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9290 break 2
9291 fi
9292done
5213506e
RW
9293 done
9294IFS=$as_save_IFS
1c710c3c 9295
ca9f4b81
AO
9296fi
9297fi
1c710c3c 9298OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9299if test -n "$OBJDUMP"; then
5213506e
RW
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9301$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9302else
5213506e
RW
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304$as_echo "no" >&6; }
ca9f4b81
AO
9305fi
9306
5213506e 9307
2693c0b0
PB
9308 fi
9309 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9311set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313$as_echo_n "checking for $ac_word... " >&6; }
9314if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9315 $as_echo_n "(cached) " >&6
ca9f4b81 9316else
2693c0b0
PB
9317 if test -n "$OBJDUMP"; then
9318 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9319else
1c710c3c
DJ
9320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321for as_dir in $PATH
9322do
9323 IFS=$as_save_IFS
9324 test -z "$as_dir" && as_dir=.
5213506e
RW
9325 for ac_exec_ext in '' $ac_executable_extensions; do
9326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9327 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9329 break 2
9330 fi
9331done
5213506e
RW
9332 done
9333IFS=$as_save_IFS
1c710c3c 9334
ca9f4b81
AO
9335fi
9336fi
1c710c3c 9337OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9338if test -n "$OBJDUMP"; then
5213506e
RW
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9340$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9341else
5213506e
RW
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343$as_echo "no" >&6; }
ca9f4b81 9344fi
1c710c3c 9345
5213506e 9346
2693c0b0
PB
9347 fi
9348 test -n "$ac_cv_prog_OBJDUMP" && break
9349done
9350
9351if test -z "$ac_cv_prog_OBJDUMP" ; then
9352 set dummy objdump
9353 if test $build = $host ; then
9354 OBJDUMP="$2"
ca9f4b81 9355 else
2693c0b0 9356 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9357 fi
ca9f4b81
AO
9358fi
9359
671aa708
NN
9360
9361
9362
9363
9364
2abefe3d 9365# Target tools.
1c710c3c 9366
5213506e
RW
9367# Check whether --with-build-time-tools was given.
9368if test "${with_build_time_tools+set}" = set; then :
9369 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9370 x/*) ;;
9371 *)
9372 with_build_time_tools=
5213506e
RW
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9374$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9375 ;;
9376 esac
ca9f4b81 9377else
e8b05380 9378 with_build_time_tools=
5213506e
RW
9379fi
9380
ca9f4b81 9381
278a7a38
AO
9382
9383
9384if test -n "$CC_FOR_TARGET"; then
9385 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9386elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9387 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9388fi
9389
9390if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9391 for ncn_progname in cc gcc; do
9392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9393set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395$as_echo_n "checking for $ac_word... " >&6; }
9396if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
278a7a38
AO
9398else
9399 if test -n "$CC_FOR_TARGET"; then
9400 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9401else
9402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403for as_dir in $PATH
9404do
9405 IFS=$as_save_IFS
9406 test -z "$as_dir" && as_dir=.
5213506e
RW
9407 for ac_exec_ext in '' $ac_executable_extensions; do
9408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9409 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9411 break 2
9412 fi
9413done
5213506e
RW
9414 done
9415IFS=$as_save_IFS
278a7a38
AO
9416
9417fi
9418fi
9419CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9420if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9422$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9423else
5213506e
RW
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425$as_echo "no" >&6; }
278a7a38
AO
9426fi
9427
5213506e 9428
278a7a38
AO
9429 done
9430fi
9431
9432if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9433 for ncn_progname in cc gcc; do
5213506e
RW
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9435$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9436 if test -x $with_build_time_tools/${ncn_progname}; then
9437 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9439$as_echo "yes" >&6; }
72a7ab82 9440 break
e8b05380 9441 else
5213506e
RW
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443$as_echo "no" >&6; }
72a7ab82
AP
9444 fi
9445 done
4de997d1
PB
9446fi
9447
e8b05380
PB
9448if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9449 for ncn_progname in cc gcc; do
9450 if test -n "$ncn_target_tool_prefix"; then
9451 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9452set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9454$as_echo_n "checking for $ac_word... " >&6; }
9455if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9456 $as_echo_n "(cached) " >&6
4de997d1
PB
9457else
9458 if test -n "$CC_FOR_TARGET"; then
9459 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9460else
1c710c3c
DJ
9461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462for as_dir in $PATH
9463do
9464 IFS=$as_save_IFS
9465 test -z "$as_dir" && as_dir=.
5213506e
RW
9466 for ac_exec_ext in '' $ac_executable_extensions; do
9467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9468 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9470 break 2
9471 fi
9472done
5213506e
RW
9473 done
9474IFS=$as_save_IFS
1c710c3c 9475
4de997d1
PB
9476fi
9477fi
1c710c3c 9478CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9479if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9481$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9482else
5213506e
RW
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484$as_echo "no" >&6; }
4de997d1
PB
9485fi
9486
5213506e 9487
e8b05380
PB
9488 fi
9489 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9491set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493$as_echo_n "checking for $ac_word... " >&6; }
9494if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9495 $as_echo_n "(cached) " >&6
4de997d1 9496else
2693c0b0
PB
9497 if test -n "$CC_FOR_TARGET"; then
9498 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9499else
1c710c3c
DJ
9500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501for as_dir in $PATH
9502do
9503 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=.
5213506e
RW
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9507 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9509 break 2
9510 fi
9511done
5213506e
RW
9512 done
9513IFS=$as_save_IFS
1c710c3c 9514
4de997d1
PB
9515fi
9516fi
1c710c3c 9517CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9518if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9520$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9521else
5213506e
RW
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523$as_echo "no" >&6; }
4de997d1 9524fi
1c710c3c 9525
5213506e 9526
e8b05380
PB
9527 fi
9528 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9529 done
9530fi
1c710c3c 9531
2693c0b0
PB
9532if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9533 set dummy cc gcc
9534 if test $build = $target ; then
9535 CC_FOR_TARGET="$2"
4de997d1 9536 else
2693c0b0 9537 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9538 fi
1c00b503
PB
9539else
9540 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9541fi
9542
278a7a38
AO
9543
9544
9545if test -n "$CXX_FOR_TARGET"; then
9546 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9547elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9548 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9549fi
9550
9551if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9552 for ncn_progname in c++ g++ cxx gxx; do
9553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9554set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556$as_echo_n "checking for $ac_word... " >&6; }
9557if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
278a7a38
AO
9559else
9560 if test -n "$CXX_FOR_TARGET"; then
9561 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9562else
9563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564for as_dir in $PATH
9565do
9566 IFS=$as_save_IFS
9567 test -z "$as_dir" && as_dir=.
5213506e
RW
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9570 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9572 break 2
9573 fi
9574done
5213506e
RW
9575 done
9576IFS=$as_save_IFS
278a7a38
AO
9577
9578fi
9579fi
9580CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9581if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9583$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9584else
5213506e
RW
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586$as_echo "no" >&6; }
278a7a38
AO
9587fi
9588
5213506e 9589
278a7a38
AO
9590 done
9591fi
9592
9593if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9594 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9596$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9597 if test -x $with_build_time_tools/${ncn_progname}; then
9598 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9600$as_echo "yes" >&6; }
e8b05380
PB
9601 break
9602 else
5213506e
RW
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604$as_echo "no" >&6; }
e8b05380
PB
9605 fi
9606 done
9607fi
9608
9609if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9610 for ncn_progname in c++ g++ cxx gxx; do
9611 if test -n "$ncn_target_tool_prefix"; then
9612 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9613set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9615$as_echo_n "checking for $ac_word... " >&6; }
9616if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9617 $as_echo_n "(cached) " >&6
4de997d1
PB
9618else
9619 if test -n "$CXX_FOR_TARGET"; then
9620 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9621else
1c710c3c
DJ
9622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623for as_dir in $PATH
9624do
9625 IFS=$as_save_IFS
9626 test -z "$as_dir" && as_dir=.
5213506e
RW
9627 for ac_exec_ext in '' $ac_executable_extensions; do
9628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9629 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9631 break 2
9632 fi
9633done
5213506e
RW
9634 done
9635IFS=$as_save_IFS
1c710c3c 9636
4de997d1
PB
9637fi
9638fi
1c710c3c 9639CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9640if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9642$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9643else
5213506e
RW
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645$as_echo "no" >&6; }
4de997d1
PB
9646fi
9647
5213506e 9648
e8b05380
PB
9649 fi
9650 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9652set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9654$as_echo_n "checking for $ac_word... " >&6; }
9655if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9656 $as_echo_n "(cached) " >&6
4de997d1 9657else
2693c0b0
PB
9658 if test -n "$CXX_FOR_TARGET"; then
9659 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9660else
1c710c3c
DJ
9661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662for as_dir in $PATH
9663do
9664 IFS=$as_save_IFS
9665 test -z "$as_dir" && as_dir=.
5213506e
RW
9666 for ac_exec_ext in '' $ac_executable_extensions; do
9667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9668 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9670 break 2
9671 fi
9672done
5213506e
RW
9673 done
9674IFS=$as_save_IFS
1c710c3c 9675
4de997d1
PB
9676fi
9677fi
1c710c3c 9678CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 9679if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9681$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9682else
5213506e
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684$as_echo "no" >&6; }
4de997d1 9685fi
1c710c3c 9686
5213506e 9687
e8b05380
PB
9688 fi
9689 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9690 done
9691fi
1c710c3c 9692
2693c0b0
PB
9693if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9694 set dummy c++ g++ cxx gxx
9695 if test $build = $target ; then
9696 CXX_FOR_TARGET="$2"
4de997d1 9697 else
2693c0b0 9698 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9699 fi
1c00b503
PB
9700else
9701 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
9702fi
9703
278a7a38
AO
9704
9705
9706if test -n "$GCC_FOR_TARGET"; then
9707 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9708elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9709 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9710fi
9711
9712if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9713 for ncn_progname in gcc; do
9714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9715set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717$as_echo_n "checking for $ac_word... " >&6; }
9718if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9719 $as_echo_n "(cached) " >&6
278a7a38
AO
9720else
9721 if test -n "$GCC_FOR_TARGET"; then
9722 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9723else
9724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725for as_dir in $PATH
9726do
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
5213506e
RW
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9731 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9733 break 2
9734 fi
9735done
5213506e
RW
9736 done
9737IFS=$as_save_IFS
278a7a38
AO
9738
9739fi
9740fi
9741GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9742if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9744$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 9745else
5213506e
RW
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747$as_echo "no" >&6; }
278a7a38
AO
9748fi
9749
5213506e 9750
278a7a38
AO
9751 done
9752fi
9753
9754if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9755 for ncn_progname in gcc; do
5213506e
RW
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9757$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9758 if test -x $with_build_time_tools/${ncn_progname}; then
9759 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9761$as_echo "yes" >&6; }
e8b05380
PB
9762 break
9763 else
5213506e
RW
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765$as_echo "no" >&6; }
e8b05380
PB
9766 fi
9767 done
9768fi
9769
9770if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9771 for ncn_progname in gcc; do
9772 if test -n "$ncn_target_tool_prefix"; then
9773 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9774set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776$as_echo_n "checking for $ac_word... " >&6; }
9777if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9778 $as_echo_n "(cached) " >&6
ca9f4b81 9779else
e8b05380
PB
9780 if test -n "$GCC_FOR_TARGET"; then
9781 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 9782else
1c710c3c
DJ
9783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in $PATH
9785do
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
5213506e
RW
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9790 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9792 break 2
9793 fi
9794done
5213506e
RW
9795 done
9796IFS=$as_save_IFS
1c710c3c 9797
ca9f4b81
AO
9798fi
9799fi
1c710c3c 9800GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 9801if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9803$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 9804else
5213506e
RW
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806$as_echo "no" >&6; }
ca9f4b81
AO
9807fi
9808
5213506e 9809
e8b05380
PB
9810 fi
9811 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9813set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815$as_echo_n "checking for $ac_word... " >&6; }
9816if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9817 $as_echo_n "(cached) " >&6
ca9f4b81 9818else
e8b05380
PB
9819 if test -n "$GCC_FOR_TARGET"; then
9820 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 9821else
1c710c3c
DJ
9822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
5213506e
RW
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9829 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9831 break 2
9832 fi
9833done
5213506e
RW
9834 done
9835IFS=$as_save_IFS
1c710c3c 9836
ca9f4b81
AO
9837fi
9838fi
1c710c3c 9839GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 9840if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9842$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 9843else
5213506e
RW
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845$as_echo "no" >&6; }
ca9f4b81 9846fi
1c710c3c 9847
5213506e 9848
e8b05380
PB
9849 fi
9850 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9851 done
9852fi
1c710c3c 9853
e8b05380
PB
9854if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9855 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
9856else
9857 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
9858fi
9859
278a7a38
AO
9860
9861
9862if test -n "$GCJ_FOR_TARGET"; then
9863 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9864elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9865 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9866fi
9867
9868if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9869 for ncn_progname in gcj; do
9870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9871set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873$as_echo_n "checking for $ac_word... " >&6; }
9874if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9875 $as_echo_n "(cached) " >&6
278a7a38
AO
9876else
9877 if test -n "$GCJ_FOR_TARGET"; then
9878 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9879else
9880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881for as_dir in $PATH
9882do
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
5213506e
RW
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9887 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9889 break 2
9890 fi
9891done
5213506e
RW
9892 done
9893IFS=$as_save_IFS
278a7a38
AO
9894
9895fi
9896fi
9897GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9898if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9900$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 9901else
5213506e
RW
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903$as_echo "no" >&6; }
278a7a38
AO
9904fi
9905
5213506e 9906
278a7a38
AO
9907 done
9908fi
9909
9910if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9911 for ncn_progname in gcj; do
5213506e
RW
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9913$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9914 if test -x $with_build_time_tools/${ncn_progname}; then
9915 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9917$as_echo "yes" >&6; }
e8b05380
PB
9918 break
9919 else
5213506e
RW
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921$as_echo "no" >&6; }
e8b05380
PB
9922 fi
9923 done
9924fi
9925
9926if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9927 for ncn_progname in gcj; do
9928 if test -n "$ncn_target_tool_prefix"; then
9929 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9930set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932$as_echo_n "checking for $ac_word... " >&6; }
9933if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9934 $as_echo_n "(cached) " >&6
e8b05380 9935else
fb0103e5
RG
9936 if test -n "$GCJ_FOR_TARGET"; then
9937 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9938else
1c710c3c
DJ
9939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940for as_dir in $PATH
9941do
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
5213506e
RW
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9946 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9948 break 2
9949 fi
9950done
5213506e
RW
9951 done
9952IFS=$as_save_IFS
1c710c3c 9953
e8b05380
PB
9954fi
9955fi
278a7a38
AO
9956GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9957if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9959$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 9960else
5213506e
RW
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962$as_echo "no" >&6; }
278a7a38
AO
9963fi
9964
5213506e 9965
278a7a38
AO
9966 fi
9967 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9969set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971$as_echo_n "checking for $ac_word... " >&6; }
9972if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
278a7a38
AO
9974else
9975 if test -n "$GCJ_FOR_TARGET"; then
9976 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9977else
9978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979for as_dir in $PATH
9980do
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
5213506e
RW
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9985 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9987 break 2
9988 fi
9989done
5213506e
RW
9990 done
9991IFS=$as_save_IFS
278a7a38
AO
9992
9993fi
9994fi
9995GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9996if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9998$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 9999else
5213506e
RW
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001$as_echo "no" >&6; }
278a7a38
AO
10002fi
10003
5213506e 10004
278a7a38
AO
10005 fi
10006 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10007 done
10008fi
10009
10010if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10011 set dummy gcj
10012 if test $build = $target ; then
10013 GCJ_FOR_TARGET="$2"
10014 else
10015 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10016 fi
1c00b503
PB
10017else
10018 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10019fi
10020
10021
10022
10023if test -n "$GFORTRAN_FOR_TARGET"; then
10024 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10025elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10026 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10027fi
10028
278a7a38
AO
10029if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10030 for ncn_progname in gfortran; do
10031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10032set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034$as_echo_n "checking for $ac_word... " >&6; }
10035if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
e8b05380 10037else
278a7a38
AO
10038 if test -n "$GFORTRAN_FOR_TARGET"; then
10039 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10040else
1c710c3c
DJ
10041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042for as_dir in $PATH
10043do
10044 IFS=$as_save_IFS
10045 test -z "$as_dir" && as_dir=.
5213506e
RW
10046 for ac_exec_ext in '' $ac_executable_extensions; do
10047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10048 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10050 break 2
10051 fi
10052done
5213506e
RW
10053 done
10054IFS=$as_save_IFS
1c710c3c 10055
e8b05380
PB
10056fi
10057fi
278a7a38
AO
10058GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10059if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10061$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10062else
5213506e
RW
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064$as_echo "no" >&6; }
e8b05380 10065fi
1c710c3c 10066
5213506e 10067
e8b05380
PB
10068 done
10069fi
1c710c3c 10070
278a7a38 10071if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10072 for ncn_progname in gfortran; do
5213506e
RW
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10074$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10075 if test -x $with_build_time_tools/${ncn_progname}; then
10076 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10078$as_echo "yes" >&6; }
e8b05380
PB
10079 break
10080 else
5213506e
RW
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082$as_echo "no" >&6; }
e8b05380
PB
10083 fi
10084 done
10085fi
10086
10087if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10088 for ncn_progname in gfortran; do
10089 if test -n "$ncn_target_tool_prefix"; then
10090 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10091set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093$as_echo_n "checking for $ac_word... " >&6; }
10094if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10095 $as_echo_n "(cached) " >&6
e8b05380
PB
10096else
10097 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10098 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10099else
10100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101for as_dir in $PATH
10102do
10103 IFS=$as_save_IFS
10104 test -z "$as_dir" && as_dir=.
5213506e
RW
10105 for ac_exec_ext in '' $ac_executable_extensions; do
10106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10107 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10109 break 2
10110 fi
10111done
5213506e
RW
10112 done
10113IFS=$as_save_IFS
1c710c3c 10114
e8b05380
PB
10115fi
10116fi
1c710c3c 10117GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10118if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10120$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10121else
5213506e
RW
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123$as_echo "no" >&6; }
e8b05380
PB
10124fi
10125
5213506e 10126
e8b05380
PB
10127 fi
10128 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10130set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132$as_echo_n "checking for $ac_word... " >&6; }
10133if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10134 $as_echo_n "(cached) " >&6
e8b05380
PB
10135else
10136 if test -n "$GFORTRAN_FOR_TARGET"; then
10137 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10138else
1c710c3c
DJ
10139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140for as_dir in $PATH
10141do
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
5213506e
RW
10144 for ac_exec_ext in '' $ac_executable_extensions; do
10145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10146 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10148 break 2
10149 fi
10150done
5213506e
RW
10151 done
10152IFS=$as_save_IFS
1c710c3c 10153
e8b05380
PB
10154fi
10155fi
1c710c3c 10156GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10157if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10159$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10160else
5213506e
RW
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162$as_echo "no" >&6; }
e8b05380 10163fi
1c710c3c 10164
5213506e 10165
e8b05380
PB
10166 fi
10167 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10168 done
10169fi
1c710c3c 10170
e8b05380
PB
10171if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10172 set dummy gfortran
2693c0b0 10173 if test $build = $target ; then
e8b05380 10174 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10175 else
e8b05380
PB
10176 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10177 fi
1c00b503
PB
10178else
10179 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10180fi
10181
10182
10183
e8b05380
PB
10184cat > conftest.c << \EOF
10185#ifdef __GNUC__
10186 gcc_yay;
10187#endif
10188EOF
10189if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10190 have_gcc_for_target=yes
10191else
10192 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10193 have_gcc_for_target=no
10194fi
10195rm conftest.c
10196
10197
10198
10199
10200if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10201 if test -n "$with_build_time_tools"; then
5213506e
RW
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10203$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10204 if test -x $with_build_time_tools/ar; then
10205 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10206 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10208$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10209 else
5213506e
RW
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211$as_echo "no" >&6; }
d1f8db0c 10212 fi
e8b05380
PB
10213 elif test $build != $host && test $have_gcc_for_target = yes; then
10214 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10215 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10216 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10217 fi
10218fi
3e19841a 10219if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10220 # Extract the first word of "ar", so it can be a program name with args.
10221set dummy ar; ac_word=$2
5213506e
RW
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223$as_echo_n "checking for $ac_word... " >&6; }
10224if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10225 $as_echo_n "(cached) " >&6
e8b05380 10226else
1c710c3c
DJ
10227 case $AR_FOR_TARGET in
10228 [\\/]* | ?:[\\/]*)
e8b05380
PB
10229 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10230 ;;
e8b05380 10231 *)
1c710c3c
DJ
10232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233for as_dir in $gcc_cv_tool_dirs
10234do
10235 IFS=$as_save_IFS
10236 test -z "$as_dir" && as_dir=.
5213506e
RW
10237 for ac_exec_ext in '' $ac_executable_extensions; do
10238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10239 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10241 break 2
10242 fi
10243done
5213506e
RW
10244 done
10245IFS=$as_save_IFS
1c710c3c 10246
e8b05380
PB
10247 ;;
10248esac
10249fi
1c710c3c 10250AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10251if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10253$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10254else
5213506e
RW
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256$as_echo "no" >&6; }
4de997d1
PB
10257fi
10258
5213506e 10259
e8b05380
PB
10260fi
10261if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10262
10263
10264if test -n "$AR_FOR_TARGET"; then
10265 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10266elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10267 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10268fi
10269
10270if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10271 for ncn_progname in ar; do
10272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10273set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275$as_echo_n "checking for $ac_word... " >&6; }
10276if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
278a7a38
AO
10278else
10279 if test -n "$AR_FOR_TARGET"; then
10280 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10281else
10282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283for as_dir in $PATH
10284do
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
5213506e
RW
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10289 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10291 break 2
10292 fi
10293done
5213506e
RW
10294 done
10295IFS=$as_save_IFS
278a7a38
AO
10296
10297fi
10298fi
10299AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10300if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10302$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10303else
5213506e
RW
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305$as_echo "no" >&6; }
278a7a38
AO
10306fi
10307
5213506e 10308
278a7a38
AO
10309 done
10310fi
10311
10312if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10313 for ncn_progname in ar; do
5213506e
RW
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10315$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10316 if test -x $with_build_time_tools/${ncn_progname}; then
10317 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10319$as_echo "yes" >&6; }
e8b05380
PB
10320 break
10321 else
5213506e
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323$as_echo "no" >&6; }
e8b05380
PB
10324 fi
10325 done
10326fi
10327
10328if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10329 for ncn_progname in ar; do
10330 if test -n "$ncn_target_tool_prefix"; then
10331 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10332set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334$as_echo_n "checking for $ac_word... " >&6; }
10335if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
4de997d1 10337else
e8b05380
PB
10338 if test -n "$AR_FOR_TARGET"; then
10339 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10340else
1c710c3c
DJ
10341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342for as_dir in $PATH
10343do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
5213506e
RW
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10348 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10350 break 2
10351 fi
10352done
5213506e
RW
10353 done
10354IFS=$as_save_IFS
1c710c3c 10355
4de997d1
PB
10356fi
10357fi
1c710c3c 10358AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10359if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10361$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10362else
5213506e
RW
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364$as_echo "no" >&6; }
4de997d1
PB
10365fi
10366
5213506e 10367
e8b05380
PB
10368 fi
10369 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10371set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373$as_echo_n "checking for $ac_word... " >&6; }
10374if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
e8b05380
PB
10376else
10377 if test -n "$AR_FOR_TARGET"; then
10378 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10379else
1c710c3c
DJ
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
5213506e
RW
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10387 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10389 break 2
10390 fi
10391done
5213506e
RW
10392 done
10393IFS=$as_save_IFS
1c710c3c 10394
e8b05380
PB
10395fi
10396fi
1c710c3c 10397AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10398if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10400$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10401else
5213506e
RW
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403$as_echo "no" >&6; }
e8b05380 10404fi
1c710c3c 10405
5213506e 10406
e8b05380
PB
10407 fi
10408 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10409 done
10410fi
1c710c3c 10411
e8b05380
PB
10412if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10413 set dummy ar
10414 if test $build = $target ; then
10415 AR_FOR_TARGET="$2"
10416 else
10417 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10418 fi
1c00b503
PB
10419else
10420 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10421fi
10422
d1f8db0c
PB
10423else
10424 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10425fi
10426
10427
10428
10429
10430if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10431 if test -n "$with_build_time_tools"; then
5213506e
RW
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10433$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10434 if test -x $with_build_time_tools/as; then
10435 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10436 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10438$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10439 else
5213506e
RW
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441$as_echo "no" >&6; }
d1f8db0c 10442 fi
e8b05380
PB
10443 elif test $build != $host && test $have_gcc_for_target = yes; then
10444 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10445 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10446 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10447 fi
10448fi
3e19841a 10449if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10450 # Extract the first word of "as", so it can be a program name with args.
10451set dummy as; ac_word=$2
5213506e
RW
10452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453$as_echo_n "checking for $ac_word... " >&6; }
10454if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10455 $as_echo_n "(cached) " >&6
e8b05380 10456else
1c710c3c
DJ
10457 case $AS_FOR_TARGET in
10458 [\\/]* | ?:[\\/]*)
e8b05380
PB
10459 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10460 ;;
e8b05380 10461 *)
1c710c3c
DJ
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463for as_dir in $gcc_cv_tool_dirs
10464do
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
5213506e
RW
10467 for ac_exec_ext in '' $ac_executable_extensions; do
10468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10469 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10471 break 2
10472 fi
10473done
5213506e
RW
10474 done
10475IFS=$as_save_IFS
1c710c3c 10476
e8b05380
PB
10477 ;;
10478esac
10479fi
1c710c3c 10480AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10481if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10483$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10484else
5213506e
RW
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486$as_echo "no" >&6; }
e8b05380
PB
10487fi
10488
5213506e 10489
e8b05380
PB
10490fi
10491if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10492
10493
10494if test -n "$AS_FOR_TARGET"; then
10495 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10496elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10497 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10498fi
10499
10500if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10501 for ncn_progname in as; do
10502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10503set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505$as_echo_n "checking for $ac_word... " >&6; }
10506if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
278a7a38
AO
10508else
10509 if test -n "$AS_FOR_TARGET"; then
10510 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10511else
10512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513for as_dir in $PATH
10514do
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
5213506e
RW
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10519 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10521 break 2
10522 fi
10523done
5213506e
RW
10524 done
10525IFS=$as_save_IFS
278a7a38
AO
10526
10527fi
10528fi
10529AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10530if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10532$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 10533else
5213506e
RW
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535$as_echo "no" >&6; }
278a7a38
AO
10536fi
10537
5213506e 10538
278a7a38
AO
10539 done
10540fi
10541
10542if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10543 for ncn_progname in as; do
5213506e
RW
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10545$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10546 if test -x $with_build_time_tools/${ncn_progname}; then
10547 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10549$as_echo "yes" >&6; }
e8b05380
PB
10550 break
10551 else
5213506e
RW
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553$as_echo "no" >&6; }
e8b05380
PB
10554 fi
10555 done
10556fi
10557
10558if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10559 for ncn_progname in as; do
10560 if test -n "$ncn_target_tool_prefix"; then
10561 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10562set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564$as_echo_n "checking for $ac_word... " >&6; }
10565if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10566 $as_echo_n "(cached) " >&6
e8b05380
PB
10567else
10568 if test -n "$AS_FOR_TARGET"; then
10569 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10570else
1c710c3c
DJ
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
5213506e
RW
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10578 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10580 break 2
10581 fi
10582done
5213506e
RW
10583 done
10584IFS=$as_save_IFS
1c710c3c 10585
e8b05380
PB
10586fi
10587fi
1c710c3c 10588AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 10589if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10591$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10592else
5213506e
RW
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594$as_echo "no" >&6; }
e8b05380
PB
10595fi
10596
5213506e 10597
e8b05380
PB
10598 fi
10599 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10601set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603$as_echo_n "checking for $ac_word... " >&6; }
10604if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10605 $as_echo_n "(cached) " >&6
4de997d1 10606else
e8b05380
PB
10607 if test -n "$AS_FOR_TARGET"; then
10608 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 10609else
1c710c3c
DJ
10610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611for as_dir in $PATH
10612do
10613 IFS=$as_save_IFS
10614 test -z "$as_dir" && as_dir=.
5213506e
RW
10615 for ac_exec_ext in '' $ac_executable_extensions; do
10616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10617 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10619 break 2
10620 fi
10621done
5213506e
RW
10622 done
10623IFS=$as_save_IFS
1c710c3c 10624
4de997d1
PB
10625fi
10626fi
1c710c3c 10627AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 10628if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10630$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 10631else
5213506e
RW
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633$as_echo "no" >&6; }
4de997d1 10634fi
1c710c3c 10635
5213506e 10636
e8b05380
PB
10637 fi
10638 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10639 done
10640fi
1c710c3c 10641
e8b05380
PB
10642if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10643 set dummy as
10644 if test $build = $target ; then
10645 AS_FOR_TARGET="$2"
10646 else
10647 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10648 fi
1c00b503
PB
10649else
10650 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 10651fi
2693c0b0 10652
d1f8db0c
PB
10653else
10654 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
10655fi
10656
e8b05380
PB
10657
10658
10659
10660if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10661 if test -n "$with_build_time_tools"; then
5213506e
RW
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10663$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10664 if test -x $with_build_time_tools/dlltool; then
10665 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10666 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10668$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 10669 else
5213506e
RW
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671$as_echo "no" >&6; }
d1f8db0c 10672 fi
e8b05380
PB
10673 elif test $build != $host && test $have_gcc_for_target = yes; then
10674 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
10675 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10676 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
10677 fi
10678fi
3e19841a 10679if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10680 # Extract the first word of "dlltool", so it can be a program name with args.
10681set dummy dlltool; ac_word=$2
5213506e
RW
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10683$as_echo_n "checking for $ac_word... " >&6; }
10684if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10685 $as_echo_n "(cached) " >&6
4de997d1 10686else
1c710c3c
DJ
10687 case $DLLTOOL_FOR_TARGET in
10688 [\\/]* | ?:[\\/]*)
e8b05380
PB
10689 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10690 ;;
e8b05380 10691 *)
1c710c3c
DJ
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693for as_dir in $gcc_cv_tool_dirs
10694do
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
5213506e
RW
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10699 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10701 break 2
10702 fi
10703done
5213506e
RW
10704 done
10705IFS=$as_save_IFS
1c710c3c 10706
e8b05380
PB
10707 ;;
10708esac
4de997d1 10709fi
1c710c3c 10710DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 10711if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10713$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 10714else
5213506e
RW
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716$as_echo "no" >&6; }
4de997d1
PB
10717fi
10718
5213506e 10719
e8b05380
PB
10720fi
10721if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
10722
10723
10724if test -n "$DLLTOOL_FOR_TARGET"; then
10725 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10726elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10727 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10728fi
10729
10730if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10731 for ncn_progname in dlltool; do
10732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10733set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735$as_echo_n "checking for $ac_word... " >&6; }
10736if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10737 $as_echo_n "(cached) " >&6
278a7a38
AO
10738else
10739 if test -n "$DLLTOOL_FOR_TARGET"; then
10740 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10741else
10742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743for as_dir in $PATH
10744do
10745 IFS=$as_save_IFS
10746 test -z "$as_dir" && as_dir=.
5213506e
RW
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10749 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10751 break 2
10752 fi
10753done
5213506e
RW
10754 done
10755IFS=$as_save_IFS
278a7a38
AO
10756
10757fi
10758fi
10759DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10760if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10762$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 10763else
5213506e
RW
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765$as_echo "no" >&6; }
278a7a38
AO
10766fi
10767
5213506e 10768
278a7a38
AO
10769 done
10770fi
10771
10772if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10773 for ncn_progname in dlltool; do
5213506e
RW
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10775$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10776 if test -x $with_build_time_tools/${ncn_progname}; then
10777 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10779$as_echo "yes" >&6; }
e8b05380
PB
10780 break
10781 else
5213506e
RW
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783$as_echo "no" >&6; }
e8b05380
PB
10784 fi
10785 done
10786fi
10787
10788if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10789 for ncn_progname in dlltool; do
10790 if test -n "$ncn_target_tool_prefix"; then
10791 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10792set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10794$as_echo_n "checking for $ac_word... " >&6; }
10795if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
4de997d1 10797else
e8b05380
PB
10798 if test -n "$DLLTOOL_FOR_TARGET"; then
10799 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 10800else
1c710c3c
DJ
10801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802for as_dir in $PATH
10803do
10804 IFS=$as_save_IFS
10805 test -z "$as_dir" && as_dir=.
5213506e
RW
10806 for ac_exec_ext in '' $ac_executable_extensions; do
10807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10808 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10810 break 2
10811 fi
10812done
5213506e
RW
10813 done
10814IFS=$as_save_IFS
1c710c3c 10815
4de997d1
PB
10816fi
10817fi
1c710c3c 10818DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 10819if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10821$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 10822else
5213506e
RW
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824$as_echo "no" >&6; }
4de997d1 10825fi
4de997d1 10826
5213506e 10827
e8b05380
PB
10828 fi
10829 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
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_DLLTOOL_FOR_TARGET+set}" = set; then :
10835 $as_echo_n "(cached) " >&6
4de997d1 10836else
e8b05380
PB
10837 if test -n "$DLLTOOL_FOR_TARGET"; then
10838 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 10839else
1c710c3c
DJ
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
1c710c3c 10847 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10849 break 2
10850 fi
10851done
5213506e
RW
10852 done
10853IFS=$as_save_IFS
1c710c3c 10854
4de997d1
PB
10855fi
10856fi
1c710c3c 10857DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 10858if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10860$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 10861else
5213506e
RW
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863$as_echo "no" >&6; }
4de997d1 10864fi
1c710c3c 10865
5213506e 10866
e8b05380
PB
10867 fi
10868 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10869 done
10870fi
1c710c3c 10871
e8b05380
PB
10872if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10873 set dummy dlltool
10874 if test $build = $target ; then
10875 DLLTOOL_FOR_TARGET="$2"
10876 else
10877 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10878 fi
1c00b503
PB
10879else
10880 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
10881fi
10882
d1f8db0c
PB
10883else
10884 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
10885fi
10886
4de997d1 10887
e8b05380
PB
10888
10889
10890if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10891 if test -n "$with_build_time_tools"; then
5213506e
RW
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10893$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10894 if test -x $with_build_time_tools/ld; then
10895 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10896 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10898$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 10899 else
5213506e
RW
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901$as_echo "no" >&6; }
d1f8db0c 10902 fi
e8b05380
PB
10903 elif test $build != $host && test $have_gcc_for_target = yes; then
10904 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
10905 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10906 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 10907 fi
e8b05380 10908fi
3e19841a 10909if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10910 # Extract the first word of "ld", so it can be a program name with args.
10911set dummy ld; ac_word=$2
5213506e
RW
10912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10913$as_echo_n "checking for $ac_word... " >&6; }
10914if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10915 $as_echo_n "(cached) " >&6
4de997d1 10916else
1c710c3c
DJ
10917 case $LD_FOR_TARGET in
10918 [\\/]* | ?:[\\/]*)
e8b05380
PB
10919 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10920 ;;
e8b05380 10921 *)
1c710c3c
DJ
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923for as_dir in $gcc_cv_tool_dirs
10924do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
5213506e
RW
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10929 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10931 break 2
10932 fi
10933done
5213506e
RW
10934 done
10935IFS=$as_save_IFS
1c710c3c 10936
e8b05380
PB
10937 ;;
10938esac
4de997d1 10939fi
1c710c3c 10940LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 10941if test -n "$LD_FOR_TARGET"; then
5213506e
RW
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10943$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 10944else
5213506e
RW
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946$as_echo "no" >&6; }
4de997d1 10947fi
2693c0b0 10948
5213506e 10949
e8b05380
PB
10950fi
10951if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
10952
10953
10954if test -n "$LD_FOR_TARGET"; then
10955 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10956elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10957 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10958fi
10959
10960if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10961 for ncn_progname in ld; do
10962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10963set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965$as_echo_n "checking for $ac_word... " >&6; }
10966if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
278a7a38
AO
10968else
10969 if test -n "$LD_FOR_TARGET"; then
10970 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10971else
10972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $PATH
10974do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
5213506e
RW
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10979 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10981 break 2
10982 fi
10983done
5213506e
RW
10984 done
10985IFS=$as_save_IFS
278a7a38
AO
10986
10987fi
10988fi
10989LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10990if test -n "$LD_FOR_TARGET"; then
5213506e
RW
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10992$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 10993else
5213506e
RW
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995$as_echo "no" >&6; }
278a7a38
AO
10996fi
10997
5213506e 10998
278a7a38
AO
10999 done
11000fi
11001
11002if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11003 for ncn_progname in ld; do
5213506e
RW
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11005$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11006 if test -x $with_build_time_tools/${ncn_progname}; then
11007 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11009$as_echo "yes" >&6; }
e8b05380
PB
11010 break
11011 else
5213506e
RW
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013$as_echo "no" >&6; }
e8b05380
PB
11014 fi
11015 done
ca9f4b81
AO
11016fi
11017
e8b05380
PB
11018if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11019 for ncn_progname in ld; do
11020 if test -n "$ncn_target_tool_prefix"; then
11021 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11022set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024$as_echo_n "checking for $ac_word... " >&6; }
11025if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
ca9f4b81 11027else
4de997d1
PB
11028 if test -n "$LD_FOR_TARGET"; then
11029 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11030else
1c710c3c
DJ
11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032for as_dir in $PATH
11033do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
5213506e
RW
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11038 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11040 break 2
11041 fi
11042done
5213506e
RW
11043 done
11044IFS=$as_save_IFS
1c710c3c 11045
ca9f4b81
AO
11046fi
11047fi
1c710c3c 11048LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11049if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11051$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11052else
5213506e
RW
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054$as_echo "no" >&6; }
ca9f4b81
AO
11055fi
11056
5213506e 11057
e8b05380
PB
11058 fi
11059 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 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_LD_FOR_TARGET+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
ca9f4b81 11066else
2693c0b0
PB
11067 if test -n "$LD_FOR_TARGET"; then
11068 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11069else
1c710c3c
DJ
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
1c710c3c 11077 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11079 break 2
11080 fi
11081done
5213506e
RW
11082 done
11083IFS=$as_save_IFS
1c710c3c 11084
ca9f4b81
AO
11085fi
11086fi
1c710c3c 11087LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11088if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11090$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11091else
5213506e
RW
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093$as_echo "no" >&6; }
ca9f4b81 11094fi
1c710c3c 11095
5213506e 11096
e8b05380
PB
11097 fi
11098 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11099 done
11100fi
1c710c3c 11101
2693c0b0
PB
11102if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11103 set dummy ld
11104 if test $build = $target ; then
11105 LD_FOR_TARGET="$2"
ca9f4b81 11106 else
2693c0b0 11107 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11108 fi
1c00b503
PB
11109else
11110 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11111fi
11112
d1f8db0c
PB
11113else
11114 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11115fi
11116
11117
11118
11119
11120if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11121 if test -n "$with_build_time_tools"; then
5213506e
RW
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11123$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11124 if test -x $with_build_time_tools/lipo; then
11125 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11126 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11128$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11129 else
5213506e
RW
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131$as_echo "no" >&6; }
d1f8db0c 11132 fi
e8b05380
PB
11133 elif test $build != $host && test $have_gcc_for_target = yes; then
11134 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11135 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11136 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11137 fi
11138fi
278a7a38
AO
11139if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11140 # Extract the first word of "lipo", so it can be a program name with args.
11141set dummy lipo; ac_word=$2
5213506e
RW
11142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11143$as_echo_n "checking for $ac_word... " >&6; }
11144if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
278a7a38
AO
11146else
11147 case $LIPO_FOR_TARGET in
11148 [\\/]* | ?:[\\/]*)
11149 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11150 ;;
11151 *)
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153for as_dir in $gcc_cv_tool_dirs
11154do
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
5213506e
RW
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11159 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11161 break 2
11162 fi
11163done
5213506e
RW
11164 done
11165IFS=$as_save_IFS
278a7a38
AO
11166
11167 ;;
11168esac
11169fi
11170LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11171if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11173$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11174else
5213506e
RW
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176$as_echo "no" >&6; }
278a7a38
AO
11177fi
11178
5213506e 11179
278a7a38
AO
11180fi
11181if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11182
11183
11184if test -n "$LIPO_FOR_TARGET"; then
11185 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11186elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11187 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11188fi
11189
11190if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11191 for ncn_progname in lipo; do
11192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11193set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195$as_echo_n "checking for $ac_word... " >&6; }
11196if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
e8b05380 11198else
278a7a38
AO
11199 if test -n "$LIPO_FOR_TARGET"; then
11200 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11201else
11202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203for as_dir in $PATH
1c710c3c
DJ
11204do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
5213506e
RW
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11209 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11211 break 2
11212 fi
11213done
5213506e
RW
11214 done
11215IFS=$as_save_IFS
1c710c3c 11216
e8b05380 11217fi
278a7a38
AO
11218fi
11219LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11220if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11222$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11223else
5213506e
RW
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225$as_echo "no" >&6; }
e8b05380
PB
11226fi
11227
5213506e 11228
278a7a38 11229 done
e8b05380 11230fi
278a7a38
AO
11231
11232if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11233 for ncn_progname in lipo; do
5213506e
RW
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11235$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11236 if test -x $with_build_time_tools/${ncn_progname}; then
11237 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11239$as_echo "yes" >&6; }
e8b05380
PB
11240 break
11241 else
5213506e
RW
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
e8b05380
PB
11244 fi
11245 done
11246fi
11247
11248if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11249 for ncn_progname in lipo; do
11250 if test -n "$ncn_target_tool_prefix"; then
11251 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11252set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11254$as_echo_n "checking for $ac_word... " >&6; }
11255if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11256 $as_echo_n "(cached) " >&6
040b1c5a
GK
11257else
11258 if test -n "$LIPO_FOR_TARGET"; then
11259 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11260else
1c710c3c
DJ
11261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262for as_dir in $PATH
11263do
11264 IFS=$as_save_IFS
11265 test -z "$as_dir" && as_dir=.
5213506e
RW
11266 for ac_exec_ext in '' $ac_executable_extensions; do
11267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11268 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11270 break 2
11271 fi
11272done
5213506e
RW
11273 done
11274IFS=$as_save_IFS
1c710c3c 11275
040b1c5a
GK
11276fi
11277fi
1c710c3c 11278LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11279if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11281$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11282else
5213506e
RW
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284$as_echo "no" >&6; }
040b1c5a
GK
11285fi
11286
5213506e 11287
e8b05380
PB
11288 fi
11289 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 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_LIPO_FOR_TARGET+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
040b1c5a
GK
11296else
11297 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11298 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11299else
1c710c3c
DJ
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
1c710c3c 11307 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11309 break 2
11310 fi
11311done
5213506e
RW
11312 done
11313IFS=$as_save_IFS
1c710c3c 11314
040b1c5a
GK
11315fi
11316fi
1c710c3c 11317LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11318if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11320$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11321else
5213506e
RW
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323$as_echo "no" >&6; }
040b1c5a 11324fi
1c710c3c 11325
5213506e 11326
e8b05380
PB
11327 fi
11328 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11329 done
11330fi
1c710c3c 11331
040b1c5a
GK
11332if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11333 set dummy lipo
11334 if test $build = $target ; then
11335 LIPO_FOR_TARGET="$2"
11336 else
11337 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11338 fi
1c00b503
PB
11339else
11340 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11341fi
11342
d1f8db0c
PB
11343else
11344 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11345fi
11346
11347
11348
11349
11350if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11351 if test -n "$with_build_time_tools"; then
5213506e
RW
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11353$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11354 if test -x $with_build_time_tools/nm; then
11355 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11356 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11358$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11359 else
5213506e
RW
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361$as_echo "no" >&6; }
d1f8db0c 11362 fi
e8b05380
PB
11363 elif test $build != $host && test $have_gcc_for_target = yes; then
11364 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11365 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11366 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11367 fi
11368fi
3e19841a 11369if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11370 # Extract the first word of "nm", so it can be a program name with args.
11371set dummy nm; ac_word=$2
5213506e
RW
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373$as_echo_n "checking for $ac_word... " >&6; }
11374if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11375 $as_echo_n "(cached) " >&6
e8b05380 11376else
1c710c3c
DJ
11377 case $NM_FOR_TARGET in
11378 [\\/]* | ?:[\\/]*)
e8b05380
PB
11379 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11380 ;;
e8b05380 11381 *)
1c710c3c
DJ
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383for as_dir in $gcc_cv_tool_dirs
11384do
11385 IFS=$as_save_IFS
11386 test -z "$as_dir" && as_dir=.
5213506e
RW
11387 for ac_exec_ext in '' $ac_executable_extensions; do
11388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11389 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11391 break 2
11392 fi
11393done
5213506e
RW
11394 done
11395IFS=$as_save_IFS
1c710c3c 11396
e8b05380
PB
11397 ;;
11398esac
11399fi
1c710c3c 11400NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11401if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11403$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11404else
5213506e
RW
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406$as_echo "no" >&6; }
e8b05380
PB
11407fi
11408
5213506e 11409
e8b05380
PB
11410fi
11411if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11412
11413
11414if test -n "$NM_FOR_TARGET"; then
11415 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11416elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11417 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11418fi
11419
11420if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11421 for ncn_progname in nm; do
11422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11423set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425$as_echo_n "checking for $ac_word... " >&6; }
11426if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
278a7a38
AO
11428else
11429 if test -n "$NM_FOR_TARGET"; then
11430 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11431else
11432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433for as_dir in $PATH
11434do
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
5213506e
RW
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11439 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11441 break 2
11442 fi
11443done
5213506e
RW
11444 done
11445IFS=$as_save_IFS
278a7a38
AO
11446
11447fi
11448fi
11449NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11450if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11452$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11453else
5213506e
RW
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455$as_echo "no" >&6; }
278a7a38
AO
11456fi
11457
5213506e 11458
278a7a38
AO
11459 done
11460fi
11461
11462if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11463 for ncn_progname in nm; do
5213506e
RW
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11465$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11466 if test -x $with_build_time_tools/${ncn_progname}; then
11467 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11469$as_echo "yes" >&6; }
e8b05380
PB
11470 break
11471 else
5213506e
RW
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473$as_echo "no" >&6; }
e8b05380
PB
11474 fi
11475 done
11476fi
11477
11478if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11479 for ncn_progname in nm; do
11480 if test -n "$ncn_target_tool_prefix"; then
11481 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11482set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484$as_echo_n "checking for $ac_word... " >&6; }
11485if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11486 $as_echo_n "(cached) " >&6
ca9f4b81 11487else
4de997d1
PB
11488 if test -n "$NM_FOR_TARGET"; then
11489 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11490else
1c710c3c
DJ
11491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492for as_dir in $PATH
11493do
11494 IFS=$as_save_IFS
11495 test -z "$as_dir" && as_dir=.
5213506e
RW
11496 for ac_exec_ext in '' $ac_executable_extensions; do
11497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11498 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11500 break 2
11501 fi
11502done
5213506e
RW
11503 done
11504IFS=$as_save_IFS
1c710c3c 11505
ca9f4b81
AO
11506fi
11507fi
1c710c3c 11508NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11509if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11511$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11512else
5213506e
RW
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514$as_echo "no" >&6; }
ca9f4b81
AO
11515fi
11516
5213506e 11517
e8b05380
PB
11518 fi
11519 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 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_NM_FOR_TARGET+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
ca9f4b81 11526else
2693c0b0
PB
11527 if test -n "$NM_FOR_TARGET"; then
11528 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11529else
1c710c3c
DJ
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
1c710c3c 11537 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11539 break 2
11540 fi
11541done
5213506e
RW
11542 done
11543IFS=$as_save_IFS
1c710c3c 11544
ca9f4b81
AO
11545fi
11546fi
1c710c3c 11547NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 11548if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11550$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11551else
5213506e
RW
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553$as_echo "no" >&6; }
ca9f4b81 11554fi
1c710c3c 11555
5213506e 11556
e8b05380
PB
11557 fi
11558 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11559 done
11560fi
1c710c3c 11561
2693c0b0
PB
11562if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11563 set dummy nm
11564 if test $build = $target ; then
11565 NM_FOR_TARGET="$2"
ca9f4b81 11566 else
2693c0b0 11567 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11568 fi
1c00b503
PB
11569else
11570 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
11571fi
11572
d1f8db0c
PB
11573else
11574 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
11575fi
11576
11577
11578
11579
11580if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11581 if test -n "$with_build_time_tools"; then
5213506e
RW
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11583$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11584 if test -x $with_build_time_tools/objdump; then
11585 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11586 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11588$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 11589 else
5213506e
RW
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591$as_echo "no" >&6; }
d1f8db0c 11592 fi
e8b05380
PB
11593 elif test $build != $host && test $have_gcc_for_target = yes; then
11594 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
11595 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11596 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
11597 fi
11598fi
3e19841a 11599if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11600 # Extract the first word of "objdump", so it can be a program name with args.
11601set dummy objdump; ac_word=$2
5213506e
RW
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603$as_echo_n "checking for $ac_word... " >&6; }
11604if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
e8b05380 11606else
1c710c3c
DJ
11607 case $OBJDUMP_FOR_TARGET in
11608 [\\/]* | ?:[\\/]*)
e8b05380
PB
11609 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11610 ;;
e8b05380 11611 *)
1c710c3c
DJ
11612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613for as_dir in $gcc_cv_tool_dirs
11614do
11615 IFS=$as_save_IFS
11616 test -z "$as_dir" && as_dir=.
5213506e
RW
11617 for ac_exec_ext in '' $ac_executable_extensions; do
11618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11619 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11621 break 2
11622 fi
11623done
5213506e
RW
11624 done
11625IFS=$as_save_IFS
1c710c3c 11626
e8b05380
PB
11627 ;;
11628esac
11629fi
1c710c3c 11630OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 11631if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11633$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 11634else
5213506e
RW
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636$as_echo "no" >&6; }
e8b05380
PB
11637fi
11638
5213506e 11639
e8b05380
PB
11640fi
11641if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
11642
11643
11644if test -n "$OBJDUMP_FOR_TARGET"; then
11645 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11646elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11647 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11648fi
11649
11650if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11651 for ncn_progname in objdump; do
11652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11653set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655$as_echo_n "checking for $ac_word... " >&6; }
11656if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
278a7a38
AO
11658else
11659 if test -n "$OBJDUMP_FOR_TARGET"; then
11660 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11661else
11662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663for as_dir in $PATH
11664do
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
5213506e
RW
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11669 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11671 break 2
11672 fi
11673done
5213506e
RW
11674 done
11675IFS=$as_save_IFS
278a7a38
AO
11676
11677fi
11678fi
11679OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11680if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11682$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 11683else
5213506e
RW
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685$as_echo "no" >&6; }
278a7a38
AO
11686fi
11687
5213506e 11688
278a7a38
AO
11689 done
11690fi
11691
11692if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11693 for ncn_progname in objdump; do
5213506e
RW
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11695$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11696 if test -x $with_build_time_tools/${ncn_progname}; then
11697 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11699$as_echo "yes" >&6; }
e8b05380
PB
11700 break
11701 else
5213506e
RW
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703$as_echo "no" >&6; }
e8b05380
PB
11704 fi
11705 done
11706fi
11707
11708if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11709 for ncn_progname in objdump; do
11710 if test -n "$ncn_target_tool_prefix"; then
11711 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11712set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714$as_echo_n "checking for $ac_word... " >&6; }
11715if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
d739199a
DJ
11717else
11718 if test -n "$OBJDUMP_FOR_TARGET"; then
11719 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11720else
1c710c3c
DJ
11721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722for as_dir in $PATH
11723do
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
5213506e
RW
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11728 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11730 break 2
11731 fi
11732done
5213506e
RW
11733 done
11734IFS=$as_save_IFS
1c710c3c 11735
d739199a
DJ
11736fi
11737fi
1c710c3c 11738OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 11739if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11741$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 11742else
5213506e
RW
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744$as_echo "no" >&6; }
d739199a
DJ
11745fi
11746
5213506e 11747
e8b05380
PB
11748 fi
11749 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 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_OBJDUMP_FOR_TARGET+set}" = set; then :
11755 $as_echo_n "(cached) " >&6
d739199a
DJ
11756else
11757 if test -n "$OBJDUMP_FOR_TARGET"; then
11758 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11759else
1c710c3c
DJ
11760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761for as_dir in $PATH
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
1c710c3c 11767 ac_cv_prog_OBJDUMP_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
d739199a
DJ
11775fi
11776fi
1c710c3c 11777OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 11778if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11780$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 11781else
5213506e
RW
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783$as_echo "no" >&6; }
d739199a 11784fi
1c710c3c 11785
5213506e 11786
e8b05380
PB
11787 fi
11788 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11789 done
11790fi
1c710c3c 11791
d739199a
DJ
11792if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11793 set dummy objdump
11794 if test $build = $target ; then
11795 OBJDUMP_FOR_TARGET="$2"
11796 else
11797 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11798 fi
1c00b503
PB
11799else
11800 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
11801fi
11802
d1f8db0c
PB
11803else
11804 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
11805fi
11806
11807
11808
11809
11810if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11811 if test -n "$with_build_time_tools"; then
5213506e
RW
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11813$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11814 if test -x $with_build_time_tools/ranlib; then
11815 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11816 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11818$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 11819 else
5213506e
RW
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821$as_echo "no" >&6; }
d1f8db0c 11822 fi
e8b05380
PB
11823 elif test $build != $host && test $have_gcc_for_target = yes; then
11824 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
11825 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11826 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
11827 fi
11828fi
3e19841a 11829if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11830 # Extract the first word of "ranlib", so it can be a program name with args.
11831set dummy ranlib; ac_word=$2
5213506e
RW
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833$as_echo_n "checking for $ac_word... " >&6; }
11834if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11835 $as_echo_n "(cached) " >&6
e8b05380 11836else
1c710c3c
DJ
11837 case $RANLIB_FOR_TARGET in
11838 [\\/]* | ?:[\\/]*)
e8b05380
PB
11839 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11840 ;;
e8b05380 11841 *)
1c710c3c
DJ
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843for as_dir in $gcc_cv_tool_dirs
11844do
11845 IFS=$as_save_IFS
11846 test -z "$as_dir" && as_dir=.
5213506e
RW
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11849 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11851 break 2
11852 fi
11853done
5213506e
RW
11854 done
11855IFS=$as_save_IFS
1c710c3c 11856
e8b05380
PB
11857 ;;
11858esac
11859fi
1c710c3c 11860RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 11861if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11863$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 11864else
5213506e
RW
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866$as_echo "no" >&6; }
e8b05380
PB
11867fi
11868
5213506e 11869
e8b05380
PB
11870fi
11871if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
11872
11873
11874if test -n "$RANLIB_FOR_TARGET"; then
11875 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11876elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11877 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11878fi
11879
11880if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11881 for ncn_progname in ranlib; do
11882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11883set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885$as_echo_n "checking for $ac_word... " >&6; }
11886if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
278a7a38
AO
11888else
11889 if test -n "$RANLIB_FOR_TARGET"; then
11890 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11891else
11892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893for as_dir in $PATH
11894do
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
5213506e
RW
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11899 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11901 break 2
11902 fi
11903done
5213506e
RW
11904 done
11905IFS=$as_save_IFS
278a7a38
AO
11906
11907fi
11908fi
11909RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11910if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11912$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 11913else
5213506e
RW
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915$as_echo "no" >&6; }
278a7a38
AO
11916fi
11917
5213506e 11918
278a7a38
AO
11919 done
11920fi
11921
11922if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11923 for ncn_progname in ranlib; do
5213506e
RW
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11925$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11926 if test -x $with_build_time_tools/${ncn_progname}; then
11927 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11929$as_echo "yes" >&6; }
e8b05380
PB
11930 break
11931 else
5213506e
RW
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933$as_echo "no" >&6; }
e8b05380
PB
11934 fi
11935 done
11936fi
11937
11938if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11939 for ncn_progname in ranlib; do
11940 if test -n "$ncn_target_tool_prefix"; then
11941 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 11942set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944$as_echo_n "checking for $ac_word... " >&6; }
11945if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11946 $as_echo_n "(cached) " >&6
ca9f4b81 11947else
4de997d1
PB
11948 if test -n "$RANLIB_FOR_TARGET"; then
11949 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 11950else
1c710c3c
DJ
11951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952for as_dir in $PATH
11953do
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
5213506e
RW
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11958 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11960 break 2
11961 fi
11962done
5213506e
RW
11963 done
11964IFS=$as_save_IFS
1c710c3c 11965
ca9f4b81
AO
11966fi
11967fi
1c710c3c 11968RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 11969if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11971$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 11972else
5213506e
RW
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974$as_echo "no" >&6; }
ca9f4b81
AO
11975fi
11976
5213506e 11977
e8b05380
PB
11978 fi
11979 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 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_RANLIB_FOR_TARGET+set}" = set; then :
11985 $as_echo_n "(cached) " >&6
ca9f4b81 11986else
2693c0b0
PB
11987 if test -n "$RANLIB_FOR_TARGET"; then
11988 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 11989else
1c710c3c
DJ
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
1c710c3c 11997 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11999 break 2
12000 fi
12001done
5213506e
RW
12002 done
12003IFS=$as_save_IFS
1c710c3c 12004
ca9f4b81
AO
12005fi
12006fi
1c710c3c 12007RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12008if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12010$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12011else
5213506e
RW
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013$as_echo "no" >&6; }
ca9f4b81 12014fi
1c710c3c 12015
5213506e 12016
e8b05380
PB
12017 fi
12018 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12019 done
12020fi
1c710c3c 12021
e8b05380
PB
12022if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12023 set dummy ranlib
12024 if test $build = $target ; then
12025 RANLIB_FOR_TARGET="$2"
12026 else
12027 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12028 fi
1c00b503
PB
12029else
12030 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12031fi
2693c0b0 12032
d1f8db0c
PB
12033else
12034 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12035fi
12036
e8b05380
PB
12037
12038
12039
12040if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12041 if test -n "$with_build_time_tools"; then
5213506e
RW
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12043$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12044 if test -x $with_build_time_tools/strip; then
12045 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12046 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12048$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12049 else
5213506e
RW
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051$as_echo "no" >&6; }
d1f8db0c 12052 fi
e8b05380
PB
12053 elif test $build != $host && test $have_gcc_for_target = yes; then
12054 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12055 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12056 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12057 fi
12058fi
3e19841a 12059if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12060 # Extract the first word of "strip", so it can be a program name with args.
12061set dummy strip; ac_word=$2
5213506e
RW
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12063$as_echo_n "checking for $ac_word... " >&6; }
12064if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12065 $as_echo_n "(cached) " >&6
e8b05380 12066else
1c710c3c
DJ
12067 case $STRIP_FOR_TARGET in
12068 [\\/]* | ?:[\\/]*)
e8b05380
PB
12069 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12070 ;;
e8b05380 12071 *)
1c710c3c
DJ
12072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073for as_dir in $gcc_cv_tool_dirs
12074do
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
5213506e
RW
12077 for ac_exec_ext in '' $ac_executable_extensions; do
12078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12079 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12081 break 2
12082 fi
12083done
5213506e
RW
12084 done
12085IFS=$as_save_IFS
1c710c3c 12086
e8b05380
PB
12087 ;;
12088esac
12089fi
1c710c3c 12090STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12091if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12093$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12094else
5213506e
RW
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096$as_echo "no" >&6; }
e8b05380
PB
12097fi
12098
5213506e 12099
e8b05380
PB
12100fi
12101if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12102
12103
12104if test -n "$STRIP_FOR_TARGET"; then
12105 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12106elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12107 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12108fi
12109
12110if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12111 for ncn_progname in strip; do
12112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12113set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115$as_echo_n "checking for $ac_word... " >&6; }
12116if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
278a7a38
AO
12118else
12119 if test -n "$STRIP_FOR_TARGET"; then
12120 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12121else
12122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123for as_dir in $PATH
12124do
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
5213506e
RW
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12129 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12131 break 2
12132 fi
12133done
5213506e
RW
12134 done
12135IFS=$as_save_IFS
278a7a38
AO
12136
12137fi
12138fi
12139STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12140if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12142$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12143else
5213506e
RW
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145$as_echo "no" >&6; }
278a7a38
AO
12146fi
12147
5213506e 12148
278a7a38
AO
12149 done
12150fi
12151
12152if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12153 for ncn_progname in strip; do
5213506e
RW
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12155$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12156 if test -x $with_build_time_tools/${ncn_progname}; then
12157 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12159$as_echo "yes" >&6; }
e8b05380
PB
12160 break
12161 else
5213506e
RW
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; }
e8b05380
PB
12164 fi
12165 done
12166fi
12167
12168if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12169 for ncn_progname in strip; do
12170 if test -n "$ncn_target_tool_prefix"; then
12171 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12172set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12174$as_echo_n "checking for $ac_word... " >&6; }
12175if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
af71363e
AS
12177else
12178 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12179 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12180else
12181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182for as_dir in $PATH
12183do
12184 IFS=$as_save_IFS
12185 test -z "$as_dir" && as_dir=.
5213506e
RW
12186 for ac_exec_ext in '' $ac_executable_extensions; do
12187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12188 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12190 break 2
12191 fi
12192done
5213506e
RW
12193 done
12194IFS=$as_save_IFS
1c710c3c 12195
040b1c5a
GK
12196fi
12197fi
1c710c3c 12198STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12199if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12201$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12202else
5213506e
RW
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204$as_echo "no" >&6; }
040b1c5a
GK
12205fi
12206
5213506e 12207
e8b05380
PB
12208 fi
12209 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 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_STRIP_FOR_TARGET+set}" = set; then :
12215 $as_echo_n "(cached) " >&6
040b1c5a
GK
12216else
12217 if test -n "$STRIP_FOR_TARGET"; then
12218 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12219else
1c710c3c
DJ
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
1c710c3c 12227 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12229 break 2
12230 fi
12231done
5213506e
RW
12232 done
12233IFS=$as_save_IFS
1c710c3c 12234
040b1c5a
GK
12235fi
12236fi
1c710c3c 12237STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12238if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12240$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12241else
5213506e
RW
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243$as_echo "no" >&6; }
040b1c5a 12244fi
1c710c3c 12245
5213506e 12246
e8b05380
PB
12247 fi
12248 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12249 done
12250fi
1c710c3c 12251
040b1c5a
GK
12252if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12253 set dummy strip
12254 if test $build = $target ; then
12255 STRIP_FOR_TARGET="$2"
12256 else
12257 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12258 fi
1c00b503
PB
12259else
12260 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
12261fi
12262
d1f8db0c
PB
12263else
12264 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
12265fi
12266
12267
12268
12269
12270if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12271 if test -n "$with_build_time_tools"; then
5213506e
RW
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12273$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12274 if test -x $with_build_time_tools/windres; then
12275 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12276 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12278$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 12279 else
5213506e
RW
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281$as_echo "no" >&6; }
d1f8db0c 12282 fi
e8b05380
PB
12283 elif test $build != $host && test $have_gcc_for_target = yes; then
12284 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
12285 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12286 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
12287 fi
12288fi
3e19841a 12289if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12290 # Extract the first word of "windres", so it can be a program name with args.
12291set dummy windres; ac_word=$2
5213506e
RW
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293$as_echo_n "checking for $ac_word... " >&6; }
12294if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12295 $as_echo_n "(cached) " >&6
e8b05380 12296else
1c710c3c
DJ
12297 case $WINDRES_FOR_TARGET in
12298 [\\/]* | ?:[\\/]*)
e8b05380
PB
12299 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12300 ;;
e8b05380 12301 *)
1c710c3c
DJ
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303for as_dir in $gcc_cv_tool_dirs
12304do
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
5213506e
RW
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12309 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12311 break 2
12312 fi
12313done
5213506e
RW
12314 done
12315IFS=$as_save_IFS
1c710c3c 12316
e8b05380
PB
12317 ;;
12318esac
12319fi
1c710c3c 12320WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 12321if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12323$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 12324else
5213506e
RW
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326$as_echo "no" >&6; }
e8b05380
PB
12327fi
12328
5213506e 12329
e8b05380
PB
12330fi
12331if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
12332
12333
12334if test -n "$WINDRES_FOR_TARGET"; then
12335 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12336elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12337 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12338fi
12339
12340if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12341 for ncn_progname in windres; do
12342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12343set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345$as_echo_n "checking for $ac_word... " >&6; }
12346if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
278a7a38
AO
12348else
12349 if test -n "$WINDRES_FOR_TARGET"; then
12350 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12351else
12352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353for as_dir in $PATH
12354do
12355 IFS=$as_save_IFS
12356 test -z "$as_dir" && as_dir=.
5213506e
RW
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12359 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12361 break 2
12362 fi
12363done
5213506e
RW
12364 done
12365IFS=$as_save_IFS
278a7a38
AO
12366
12367fi
12368fi
12369WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12370if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12372$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 12373else
5213506e
RW
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375$as_echo "no" >&6; }
278a7a38
AO
12376fi
12377
5213506e 12378
278a7a38
AO
12379 done
12380fi
12381
12382if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12383 for ncn_progname in windres; do
5213506e
RW
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12385$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12386 if test -x $with_build_time_tools/${ncn_progname}; then
12387 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389$as_echo "yes" >&6; }
e8b05380
PB
12390 break
12391 else
5213506e
RW
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393$as_echo "no" >&6; }
e8b05380
PB
12394 fi
12395 done
12396fi
12397
12398if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12399 for ncn_progname in windres; do
12400 if test -n "$ncn_target_tool_prefix"; then
12401 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12402set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404$as_echo_n "checking for $ac_word... " >&6; }
12405if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
ca9f4b81 12407else
4de997d1
PB
12408 if test -n "$WINDRES_FOR_TARGET"; then
12409 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12410else
1c710c3c
DJ
12411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412for as_dir in $PATH
12413do
12414 IFS=$as_save_IFS
12415 test -z "$as_dir" && as_dir=.
5213506e
RW
12416 for ac_exec_ext in '' $ac_executable_extensions; do
12417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12418 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12420 break 2
12421 fi
12422done
5213506e
RW
12423 done
12424IFS=$as_save_IFS
1c710c3c 12425
ca9f4b81
AO
12426fi
12427fi
1c710c3c 12428WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 12429if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12431$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12432else
5213506e
RW
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434$as_echo "no" >&6; }
ca9f4b81
AO
12435fi
12436
5213506e 12437
e8b05380
PB
12438 fi
12439 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 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_WINDRES_FOR_TARGET+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
ca9f4b81 12446else
2693c0b0
PB
12447 if test -n "$WINDRES_FOR_TARGET"; then
12448 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12449else
1c710c3c
DJ
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
1c710c3c 12457 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12459 break 2
12460 fi
12461done
5213506e
RW
12462 done
12463IFS=$as_save_IFS
1c710c3c 12464
ca9f4b81
AO
12465fi
12466fi
1c710c3c 12467WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 12468if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12470$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12471else
5213506e
RW
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473$as_echo "no" >&6; }
ca9f4b81 12474fi
1c710c3c 12475
5213506e 12476
e8b05380
PB
12477 fi
12478 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12479 done
12480fi
1c710c3c 12481
2693c0b0
PB
12482if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12483 set dummy windres
12484 if test $build = $target ; then
12485 WINDRES_FOR_TARGET="$2"
ca9f4b81 12486 else
2693c0b0 12487 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12488 fi
1c00b503
PB
12489else
12490 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
12491fi
12492
d1f8db0c
PB
12493else
12494 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
12495fi
12496
4977bab6 12497
901119ae
KT
12498
12499
12500if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12501 if test -n "$with_build_time_tools"; then
5213506e
RW
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12503$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
12504 if test -x $with_build_time_tools/windmc; then
12505 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12506 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12508$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 12509 else
5213506e
RW
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511$as_echo "no" >&6; }
901119ae
KT
12512 fi
12513 elif test $build != $host && test $have_gcc_for_target = yes; then
12514 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
12515 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12516 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
12517 fi
12518fi
12519if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12520 # Extract the first word of "windmc", so it can be a program name with args.
12521set dummy windmc; ac_word=$2
5213506e
RW
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523$as_echo_n "checking for $ac_word... " >&6; }
12524if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12525 $as_echo_n "(cached) " >&6
901119ae
KT
12526else
12527 case $WINDMC_FOR_TARGET in
12528 [\\/]* | ?:[\\/]*)
12529 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12530 ;;
12531 *)
12532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533for as_dir in $gcc_cv_tool_dirs
12534do
12535 IFS=$as_save_IFS
12536 test -z "$as_dir" && as_dir=.
5213506e
RW
12537 for ac_exec_ext in '' $ac_executable_extensions; do
12538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12539 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12541 break 2
12542 fi
12543done
5213506e
RW
12544 done
12545IFS=$as_save_IFS
901119ae
KT
12546
12547 ;;
12548esac
12549fi
12550WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 12551if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12553$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12554else
5213506e
RW
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556$as_echo "no" >&6; }
901119ae
KT
12557fi
12558
5213506e 12559
901119ae
KT
12560fi
12561if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12562
12563
12564if test -n "$WINDMC_FOR_TARGET"; then
12565 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12566elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12567 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12568fi
12569
12570if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12571 for ncn_progname in windmc; do
12572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12573set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575$as_echo_n "checking for $ac_word... " >&6; }
12576if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
901119ae
KT
12578else
12579 if test -n "$WINDMC_FOR_TARGET"; then
12580 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12581else
12582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583for as_dir in $PATH
12584do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
5213506e
RW
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12589 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12591 break 2
12592 fi
12593done
5213506e
RW
12594 done
12595IFS=$as_save_IFS
901119ae
KT
12596
12597fi
12598fi
12599WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12600if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12602$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12603else
5213506e
RW
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605$as_echo "no" >&6; }
901119ae
KT
12606fi
12607
5213506e 12608
901119ae
KT
12609 done
12610fi
12611
12612if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12613 for ncn_progname in windmc; do
5213506e
RW
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12615$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
12616 if test -x $with_build_time_tools/${ncn_progname}; then
12617 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12619$as_echo "yes" >&6; }
901119ae
KT
12620 break
12621 else
5213506e
RW
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
901119ae
KT
12624 fi
12625 done
12626fi
12627
12628if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12629 for ncn_progname in windmc; do
12630 if test -n "$ncn_target_tool_prefix"; then
12631 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12632set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634$as_echo_n "checking for $ac_word... " >&6; }
12635if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12636 $as_echo_n "(cached) " >&6
901119ae
KT
12637else
12638 if test -n "$WINDMC_FOR_TARGET"; then
12639 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12640else
12641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642for as_dir in $PATH
12643do
12644 IFS=$as_save_IFS
12645 test -z "$as_dir" && as_dir=.
5213506e
RW
12646 for ac_exec_ext in '' $ac_executable_extensions; do
12647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12648 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12650 break 2
12651 fi
12652done
5213506e
RW
12653 done
12654IFS=$as_save_IFS
901119ae
KT
12655
12656fi
12657fi
12658WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12659if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12661$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12662else
5213506e
RW
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664$as_echo "no" >&6; }
901119ae
KT
12665fi
12666
5213506e 12667
901119ae
KT
12668 fi
12669 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12671set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
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_WINDMC_FOR_TARGET+set}" = set; then :
12675 $as_echo_n "(cached) " >&6
901119ae
KT
12676else
12677 if test -n "$WINDMC_FOR_TARGET"; then
12678 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_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=.
5213506e
RW
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
901119ae 12687 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 12688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12689 break 2
12690 fi
12691done
5213506e
RW
12692 done
12693IFS=$as_save_IFS
901119ae
KT
12694
12695fi
12696fi
12697WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12698if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12700$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12701else
5213506e
RW
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703$as_echo "no" >&6; }
901119ae
KT
12704fi
12705
5213506e 12706
901119ae
KT
12707 fi
12708 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12709 done
12710fi
12711
12712if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12713 set dummy windmc
12714 if test $build = $target ; then
12715 WINDMC_FOR_TARGET="$2"
12716 else
12717 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12718 fi
1c00b503
PB
12719else
12720 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
12721fi
12722
12723else
12724 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12725fi
12726
12727
2abefe3d
PB
12728RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12729
5213506e
RW
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12731$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 12732if test "x${build}" != "x${host}" ; then
e8b05380
PB
12733 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12734 # We already found the complete path
172e41aa 12735 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12737$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12738 else
12739 # Canadian cross, just use what we found
5213506e
RW
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12741$as_echo "pre-installed" >&6; }
e8b05380 12742 fi
2abefe3d
PB
12743else
12744 ok=yes
12745 case " ${configdirs} " in
12746 *" binutils "*) ;;
12747 *) ok=no ;;
12748 esac
1c710c3c 12749
2abefe3d
PB
12750 if test $ok = yes; then
12751 # An in-tree tool is available and we can use it
12752 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12754$as_echo "just compiled" >&6; }
e8b05380
PB
12755 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12756 # We already found the complete path
172e41aa 12757 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12759$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12760 elif test "x$target" = "x$host"; then
12761 # We can use an host tool
12762 AR_FOR_TARGET='$(AR)'
5213506e
RW
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12764$as_echo "host tool" >&6; }
2abefe3d
PB
12765 else
12766 # We need a cross tool
5213506e
RW
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12768$as_echo "pre-installed" >&6; }
2abefe3d
PB
12769 fi
12770fi
0b0dc272 12771
5213506e
RW
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12773$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 12774if test "x${build}" != "x${host}" ; then
e8b05380
PB
12775 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12776 # We already found the complete path
172e41aa 12777 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12779$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12780 else
12781 # Canadian cross, just use what we found
5213506e
RW
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12783$as_echo "pre-installed" >&6; }
e8b05380 12784 fi
2abefe3d
PB
12785else
12786 ok=yes
12787 case " ${configdirs} " in
12788 *" gas "*) ;;
12789 *) ok=no ;;
12790 esac
1c710c3c 12791
2abefe3d
PB
12792 if test $ok = yes; then
12793 # An in-tree tool is available and we can use it
12794 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12796$as_echo "just compiled" >&6; }
e8b05380
PB
12797 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12798 # We already found the complete path
172e41aa 12799 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12801$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12802 elif test "x$target" = "x$host"; then
12803 # We can use an host tool
12804 AS_FOR_TARGET='$(AS)'
5213506e
RW
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12806$as_echo "host tool" >&6; }
2abefe3d
PB
12807 else
12808 # We need a cross tool
5213506e
RW
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12810$as_echo "pre-installed" >&6; }
2abefe3d
PB
12811 fi
12812fi
0b0dc272 12813
5213506e
RW
12814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12815$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 12816if test "x${build}" != "x${host}" ; then
e8b05380
PB
12817 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12818 # We already found the complete path
172e41aa 12819 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12821$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12822 else
12823 # Canadian cross, just use what we found
5213506e
RW
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12825$as_echo "pre-installed" >&6; }
e8b05380 12826 fi
2abefe3d
PB
12827else
12828 ok=yes
12829 case " ${configdirs} " in
12830 *" gcc "*) ;;
12831 *) ok=no ;;
12832 esac
1c710c3c 12833
2abefe3d
PB
12834 if test $ok = yes; then
12835 # An in-tree tool is available and we can use it
12836 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12838$as_echo "just compiled" >&6; }
e8b05380
PB
12839 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12840 # We already found the complete path
172e41aa 12841 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12843$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12844 elif test "x$target" = "x$host"; then
12845 # We can use an host tool
12846 CC_FOR_TARGET='$(CC)'
5213506e
RW
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12848$as_echo "host tool" >&6; }
2abefe3d
PB
12849 else
12850 # We need a cross tool
5213506e
RW
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12852$as_echo "pre-installed" >&6; }
2abefe3d
PB
12853 fi
12854fi
0b0dc272 12855
5213506e
RW
12856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12857$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 12858if test "x${build}" != "x${host}" ; then
e8b05380
PB
12859 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12860 # We already found the complete path
172e41aa 12861 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12863$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12864 else
12865 # Canadian cross, just use what we found
5213506e
RW
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12867$as_echo "pre-installed" >&6; }
e8b05380 12868 fi
2abefe3d
PB
12869else
12870 ok=yes
12871 case " ${configdirs} " in
12872 *" gcc "*) ;;
12873 *) ok=no ;;
12874 esac
12875 case ,${enable_languages}, in
12876 *,c++,*) ;;
12877 *) ok=no ;;
12878 esac
12879 if test $ok = yes; then
12880 # An in-tree tool is available and we can use it
12881 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
5213506e
RW
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12883$as_echo "just compiled" >&6; }
e8b05380
PB
12884 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12885 # We already found the complete path
172e41aa 12886 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12888$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12889 elif test "x$target" = "x$host"; then
12890 # We can use an host tool
12891 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12893$as_echo "host tool" >&6; }
2abefe3d
PB
12894 else
12895 # We need a cross tool
5213506e
RW
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12897$as_echo "pre-installed" >&6; }
2abefe3d
PB
12898 fi
12899fi
0b0dc272 12900
5213506e
RW
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12902$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 12903if test "x${build}" != "x${host}" ; then
e8b05380
PB
12904 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12905 # We already found the complete path
172e41aa 12906 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12908$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12909 else
12910 # Canadian cross, just use what we found
5213506e
RW
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12912$as_echo "pre-installed" >&6; }
e8b05380 12913 fi
2abefe3d
PB
12914else
12915 ok=yes
12916 case " ${configdirs} " in
12917 *" gcc "*) ;;
12918 *) ok=no ;;
12919 esac
12920 case ,${enable_languages}, in
12921 *,c++,*) ;;
12922 *) ok=no ;;
12923 esac
12924 if test $ok = yes; then
12925 # An in-tree tool is available and we can use it
12926 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
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12928$as_echo "just compiled" >&6; }
e8b05380
PB
12929 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12930 # We already found the complete path
172e41aa 12931 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12933$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12934 elif test "x$target" = "x$host"; then
12935 # We can use an host tool
12936 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12938$as_echo "host tool" >&6; }
2abefe3d
PB
12939 else
12940 # We need a cross tool
5213506e
RW
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12942$as_echo "pre-installed" >&6; }
2abefe3d
PB
12943 fi
12944fi
0b0dc272 12945
5213506e
RW
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12947$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 12948if test "x${build}" != "x${host}" ; then
e8b05380
PB
12949 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12950 # We already found the complete path
172e41aa 12951 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12953$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12954 else
12955 # Canadian cross, just use what we found
5213506e
RW
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12957$as_echo "pre-installed" >&6; }
e8b05380 12958 fi
2abefe3d
PB
12959else
12960 ok=yes
12961 case " ${configdirs} " in
12962 *" binutils "*) ;;
12963 *) ok=no ;;
12964 esac
1c710c3c 12965
2abefe3d
PB
12966 if test $ok = yes; then
12967 # An in-tree tool is available and we can use it
12968 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12970$as_echo "just compiled" >&6; }
e8b05380
PB
12971 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12972 # We already found the complete path
172e41aa 12973 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12975$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12976 elif test "x$target" = "x$host"; then
12977 # We can use an host tool
12978 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12980$as_echo "host tool" >&6; }
2abefe3d
PB
12981 else
12982 # We need a cross tool
5213506e
RW
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12984$as_echo "pre-installed" >&6; }
2abefe3d
PB
12985 fi
12986fi
0b0dc272 12987
5213506e
RW
12988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12989$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 12990if test "x${build}" != "x${host}" ; then
e8b05380
PB
12991 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12992 # We already found the complete path
172e41aa 12993 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12995$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12996 else
12997 # Canadian cross, just use what we found
5213506e
RW
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12999$as_echo "pre-installed" >&6; }
e8b05380 13000 fi
2abefe3d
PB
13001else
13002 ok=yes
13003 case " ${configdirs} " in
13004 *" gcc "*) ;;
13005 *) ok=no ;;
13006 esac
1c710c3c 13007
2abefe3d
PB
13008 if test $ok = yes; then
13009 # An in-tree tool is available and we can use it
13010 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13012$as_echo "just compiled" >&6; }
e8b05380
PB
13013 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13014 # We already found the complete path
172e41aa 13015 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13017$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13018 elif test "x$target" = "x$host"; then
13019 # We can use an host tool
13020 GCC_FOR_TARGET='$()'
5213506e
RW
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13022$as_echo "host tool" >&6; }
2abefe3d
PB
13023 else
13024 # We need a cross tool
5213506e
RW
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13026$as_echo "pre-installed" >&6; }
2abefe3d
PB
13027 fi
13028fi
0b0dc272 13029
5213506e
RW
13030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13031$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13032if test "x${build}" != "x${host}" ; then
e8b05380
PB
13033 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13034 # We already found the complete path
172e41aa 13035 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13037$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13038 else
13039 # Canadian cross, just use what we found
5213506e
RW
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13041$as_echo "pre-installed" >&6; }
e8b05380 13042 fi
2abefe3d
PB
13043else
13044 ok=yes
13045 case " ${configdirs} " in
13046 *" gcc "*) ;;
13047 *) ok=no ;;
13048 esac
13049 case ,${enable_languages}, in
13050 *,java,*) ;;
13051 *) ok=no ;;
13052 esac
13053 if test $ok = yes; then
13054 # An in-tree tool is available and we can use it
13055 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13057$as_echo "just compiled" >&6; }
e8b05380
PB
13058 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13059 # We already found the complete path
172e41aa 13060 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13062$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13063 elif test "x$target" = "x$host"; then
13064 # We can use an host tool
13065 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13067$as_echo "host tool" >&6; }
2abefe3d
PB
13068 else
13069 # We need a cross tool
5213506e
RW
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13071$as_echo "pre-installed" >&6; }
2abefe3d
PB
13072 fi
13073fi
0b0dc272 13074
5213506e
RW
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13076$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13077if test "x${build}" != "x${host}" ; then
e8b05380
PB
13078 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13079 # We already found the complete path
172e41aa 13080 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13082$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13083 else
13084 # Canadian cross, just use what we found
5213506e
RW
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13086$as_echo "pre-installed" >&6; }
e8b05380 13087 fi
2abefe3d
PB
13088else
13089 ok=yes
13090 case " ${configdirs} " in
13091 *" gcc "*) ;;
13092 *) ok=no ;;
13093 esac
13094 case ,${enable_languages}, in
13095 *,fortran,*) ;;
13096 *) ok=no ;;
13097 esac
13098 if test $ok = yes; then
13099 # An in-tree tool is available and we can use it
13100 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13102$as_echo "just compiled" >&6; }
e8b05380
PB
13103 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13104 # We already found the complete path
172e41aa 13105 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13107$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13108 elif test "x$target" = "x$host"; then
13109 # We can use an host tool
13110 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13112$as_echo "host tool" >&6; }
2abefe3d
PB
13113 else
13114 # We need a cross tool
5213506e
RW
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13116$as_echo "pre-installed" >&6; }
2abefe3d
PB
13117 fi
13118fi
0b0dc272 13119
5213506e
RW
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13121$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13122if test "x${build}" != "x${host}" ; then
e8b05380
PB
13123 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13124 # We already found the complete path
172e41aa 13125 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13127$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13128 else
13129 # Canadian cross, just use what we found
5213506e
RW
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13131$as_echo "pre-installed" >&6; }
e8b05380 13132 fi
2abefe3d
PB
13133else
13134 ok=yes
13135 case " ${configdirs} " in
13136 *" ld "*) ;;
13137 *) ok=no ;;
13138 esac
1c710c3c 13139
2abefe3d
PB
13140 if test $ok = yes; then
13141 # An in-tree tool is available and we can use it
13142 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13144$as_echo "just compiled" >&6; }
e8b05380
PB
13145 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13146 # We already found the complete path
172e41aa 13147 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13149$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13150 elif test "x$target" = "x$host"; then
13151 # We can use an host tool
13152 LD_FOR_TARGET='$(LD)'
5213506e
RW
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13154$as_echo "host tool" >&6; }
2abefe3d
PB
13155 else
13156 # We need a cross tool
5213506e
RW
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13158$as_echo "pre-installed" >&6; }
2abefe3d
PB
13159 fi
13160fi
0b0dc272 13161
5213506e
RW
13162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13163$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13164if test "x${build}" != "x${host}" ; then
e8b05380
PB
13165 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13166 # We already found the complete path
172e41aa 13167 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13169$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13170 else
13171 # Canadian cross, just use what we found
5213506e
RW
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13173$as_echo "pre-installed" >&6; }
e8b05380 13174 fi
2abefe3d 13175else
e8b05380
PB
13176 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13177 # We already found the complete path
172e41aa 13178 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13180$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 13181 elif test "x$target" = "x$host"; then
2abefe3d
PB
13182 # We can use an host tool
13183 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13185$as_echo "host tool" >&6; }
2abefe3d
PB
13186 else
13187 # We need a cross tool
5213506e
RW
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13189$as_echo "pre-installed" >&6; }
2abefe3d
PB
13190 fi
13191fi
0b0dc272 13192
5213506e
RW
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13194$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13195if test "x${build}" != "x${host}" ; then
e8b05380
PB
13196 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13197 # We already found the complete path
172e41aa 13198 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13200$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13201 else
13202 # Canadian cross, just use what we found
5213506e
RW
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13204$as_echo "pre-installed" >&6; }
e8b05380 13205 fi
2abefe3d
PB
13206else
13207 ok=yes
13208 case " ${configdirs} " in
13209 *" binutils "*) ;;
13210 *) ok=no ;;
13211 esac
1c710c3c 13212
2abefe3d
PB
13213 if test $ok = yes; then
13214 # An in-tree tool is available and we can use it
13215 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13217$as_echo "just compiled" >&6; }
e8b05380
PB
13218 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13219 # We already found the complete path
172e41aa 13220 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13222$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13223 elif test "x$target" = "x$host"; then
13224 # We can use an host tool
13225 NM_FOR_TARGET='$(NM)'
5213506e
RW
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13227$as_echo "host tool" >&6; }
2abefe3d
PB
13228 else
13229 # We need a cross tool
5213506e
RW
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13231$as_echo "pre-installed" >&6; }
2abefe3d
PB
13232 fi
13233fi
0b0dc272 13234
5213506e
RW
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13236$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 13237if test "x${build}" != "x${host}" ; then
e8b05380
PB
13238 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13239 # We already found the complete path
172e41aa 13240 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13242$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13243 else
13244 # Canadian cross, just use what we found
5213506e
RW
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13246$as_echo "pre-installed" >&6; }
e8b05380 13247 fi
2abefe3d
PB
13248else
13249 ok=yes
13250 case " ${configdirs} " in
13251 *" binutils "*) ;;
13252 *) ok=no ;;
13253 esac
1c710c3c 13254
2abefe3d
PB
13255 if test $ok = yes; then
13256 # An in-tree tool is available and we can use it
13257 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13259$as_echo "just compiled" >&6; }
e8b05380
PB
13260 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13261 # We already found the complete path
172e41aa 13262 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13264$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13265 elif test "x$target" = "x$host"; then
13266 # We can use an host tool
13267 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13269$as_echo "host tool" >&6; }
2abefe3d
PB
13270 else
13271 # We need a cross tool
5213506e
RW
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13273$as_echo "pre-installed" >&6; }
2abefe3d
PB
13274 fi
13275fi
0b0dc272 13276
5213506e
RW
13277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13278$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 13279if test "x${build}" != "x${host}" ; then
e8b05380
PB
13280 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13281 # We already found the complete path
172e41aa 13282 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13284$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13285 else
13286 # Canadian cross, just use what we found
5213506e
RW
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13288$as_echo "pre-installed" >&6; }
e8b05380 13289 fi
2abefe3d
PB
13290else
13291 ok=yes
13292 case " ${configdirs} " in
13293 *" binutils "*) ;;
13294 *) ok=no ;;
13295 esac
1c710c3c 13296
2abefe3d
PB
13297 if test $ok = yes; then
13298 # An in-tree tool is available and we can use it
13299 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13301$as_echo "just compiled" >&6; }
e8b05380
PB
13302 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13303 # We already found the complete path
172e41aa 13304 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13306$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13307 elif test "x$target" = "x$host"; then
13308 # We can use an host tool
13309 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13311$as_echo "host tool" >&6; }
2abefe3d
PB
13312 else
13313 # We need a cross tool
5213506e
RW
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13315$as_echo "pre-installed" >&6; }
2abefe3d
PB
13316 fi
13317fi
0b0dc272 13318
5213506e
RW
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13320$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 13321if test "x${build}" != "x${host}" ; then
e8b05380
PB
13322 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13323 # We already found the complete path
172e41aa 13324 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13326$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13327 else
13328 # Canadian cross, just use what we found
5213506e
RW
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13330$as_echo "pre-installed" >&6; }
e8b05380 13331 fi
2abefe3d
PB
13332else
13333 ok=yes
13334 case " ${configdirs} " in
13335 *" binutils "*) ;;
13336 *) ok=no ;;
13337 esac
1c710c3c 13338
2abefe3d
PB
13339 if test $ok = yes; then
13340 # An in-tree tool is available and we can use it
13341 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5213506e
RW
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13343$as_echo "just compiled" >&6; }
e8b05380
PB
13344 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13345 # We already found the complete path
172e41aa 13346 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13348$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13349 elif test "x$target" = "x$host"; then
13350 # We can use an host tool
13351 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13353$as_echo "host tool" >&6; }
2abefe3d
PB
13354 else
13355 # We need a cross tool
5213506e
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13357$as_echo "pre-installed" >&6; }
2abefe3d
PB
13358 fi
13359fi
0b0dc272 13360
5213506e
RW
13361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13362$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 13363if test "x${build}" != "x${host}" ; then
e8b05380
PB
13364 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13365 # We already found the complete path
172e41aa 13366 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13368$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13369 else
13370 # Canadian cross, just use what we found
5213506e
RW
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13372$as_echo "pre-installed" >&6; }
e8b05380 13373 fi
2abefe3d
PB
13374else
13375 ok=yes
13376 case " ${configdirs} " in
13377 *" binutils "*) ;;
13378 *) ok=no ;;
13379 esac
1c710c3c 13380
2abefe3d
PB
13381 if test $ok = yes; then
13382 # An in-tree tool is available and we can use it
13383 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13385$as_echo "just compiled" >&6; }
e8b05380
PB
13386 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13387 # We already found the complete path
172e41aa 13388 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13390$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13391 elif test "x$target" = "x$host"; then
13392 # We can use an host tool
13393 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13395$as_echo "host tool" >&6; }
2abefe3d
PB
13396 else
13397 # We need a cross tool
5213506e
RW
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13399$as_echo "pre-installed" >&6; }
2abefe3d 13400 fi
671aa708 13401fi
be912515 13402
5213506e
RW
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13404$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
13405if test "x${build}" != "x${host}" ; then
13406 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13407 # We already found the complete path
13408 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13410$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13411 else
13412 # Canadian cross, just use what we found
5213506e
RW
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13414$as_echo "pre-installed" >&6; }
901119ae
KT
13415 fi
13416else
13417 ok=yes
13418 case " ${configdirs} " in
13419 *" binutils "*) ;;
13420 *) ok=no ;;
13421 esac
13422
13423 if test $ok = yes; then
13424 # An in-tree tool is available and we can use it
13425 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13427$as_echo "just compiled" >&6; }
901119ae
KT
13428 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13429 # We already found the complete path
13430 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13432$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13433 elif test "x$target" = "x$host"; then
13434 # We can use an host tool
13435 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13437$as_echo "host tool" >&6; }
901119ae
KT
13438 else
13439 # We need a cross tool
5213506e
RW
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13441$as_echo "pre-installed" >&6; }
901119ae
KT
13442 fi
13443fi
13444
be912515
NN
13445
13446
2abefe3d 13447
0b0dc272 13448
671aa708
NN
13449# Certain tools may need extra flags.
13450AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13451RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13452NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13453
2abefe3d
PB
13454# When building target libraries, except in a Canadian cross, we use
13455# the same toolchain as the compiler we just built.
13456COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13457COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13458COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13459if test $host = $build; then
13460 case " $configdirs " in
13461 *" gcc "*)
13462 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13463 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13464 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13465 ;;
13466 esac
13467fi
13468
13469
13470
13471
13472
5213506e
RW
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13474$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13475# Check whether --enable-maintainer-mode was given.
13476if test "${enable_maintainer_mode+set}" = set; then :
13477 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
13478else
13479 USE_MAINTAINER_MODE=no
5213506e
RW
13480fi
13481
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13483$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
13484
13485
13486if test "$USE_MAINTAINER_MODE" = yes; then
13487 MAINTAINER_MODE_TRUE=
13488 MAINTAINER_MODE_FALSE='#'
13489else
13490 MAINTAINER_MODE_TRUE='#'
13491 MAINTAINER_MODE_FALSE=
1c710c3c 13492fi
ee03dc5e
AO
13493MAINT=$MAINTAINER_MODE_TRUE
13494
2805b53a
NN
13495# ---------------------
13496# GCC bootstrap support
13497# ---------------------
13498
13499# Stage specific cflags for build.
13500stage1_cflags="-g"
13501case $build in
13502 vax-*-*)
13503 case ${GCC} in
13504 yes) stage1_cflags="-g -Wa,-J" ;;
13505 *) stage1_cflags="-g -J" ;;
13506 esac ;;
2805b53a
NN
13507esac
13508
0b50988a 13509# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 13510if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
13511 saved_CFLAGS="$CFLAGS"
13512
13513 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13514 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13516$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
13518/* end confdefs.h. */
13519
9cc1244e
JJ
13520#if (__GNUC__ < 3) \
13521 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13522 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13523#error http://gcc.gnu.org/PR29382
13524#endif
13525
1c710c3c
DJ
13526int
13527main ()
13528{
13529
13530 ;
13531 return 0;
13532}
13533_ACEOF
5213506e
RW
13534if ac_fn_c_try_compile "$LINENO"; then :
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13536$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 13537else
5213506e
RW
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13539$as_echo "no" >&6; }
1c710c3c 13540fi
5213506e 13541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
13542
13543 CFLAGS="$saved_CFLAGS"
13544fi
13545
13546
2805b53a 13547
8efea775 13548# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
13549# Check whether --enable-stage1-checking was given.
13550if test "${enable_stage1_checking+set}" = set; then :
13551 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 13552else
e643dc23 13553 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 13554 stage1_checking=--enable-checking=yes,types
8efea775 13555else
e643dc23 13556 stage1_checking=--enable-checking=$enable_checking,types
8efea775 13557fi
5213506e 13558fi
8efea775
PB
13559
13560
2aeb72e9 13561
5213506e
RW
13562# Enable -Werror in bootstrap stage2 and later.
13563# Check whether --enable-werror was given.
13564if test "${enable_werror+set}" = set; then :
13565 enableval=$enable_werror;
2805b53a 13566else
416cfb5e 13567 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 13568 enable_werror=yes
88fceb68
PB
13569else
13570 enable_werror=no
13571fi
5213506e
RW
13572fi
13573
09a9c095
NN
13574case ${enable_werror} in
13575 yes) stage2_werror_flag="--enable-werror-always" ;;
13576 *) stage2_werror_flag="" ;;
2805b53a
NN
13577esac
13578
13579
f2689b09
SE
13580# Specify what files to not compare during bootstrap.
13581
13582compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13583case "$target" in
13584 hppa*64*-*-hpux*) ;;
13585 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13586esac
f61428ed
AO
13587case " $configdirs " in
13588*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13589esac
f2689b09
SE
13590
13591
5213506e
RW
13592ac_config_files="$ac_config_files Makefile"
13593
1c710c3c 13594cat >confcache <<\_ACEOF
671aa708
NN
13595# This file is a shell script that caches the results of configure
13596# tests run on this system so they can be shared between configure
1c710c3c
DJ
13597# scripts and configure runs, see configure's option --config-cache.
13598# It is not useful on other systems. If it contains results you don't
13599# want to keep, you may remove or edit it.
671aa708 13600#
1c710c3c
DJ
13601# config.status only pays attention to the cache file if you give it
13602# the --recheck option to rerun configure.
671aa708 13603#
1c710c3c
DJ
13604# `ac_cv_env_foo' variables (set or unset) will be overridden when
13605# loading this file, other *unset* `ac_cv_foo' will be assigned the
13606# following values.
13607
13608_ACEOF
13609
671aa708
NN
13610# The following way of writing the cache mishandles newlines in values,
13611# but we know of no workaround that is simple, portable, and efficient.
5213506e 13612# So, we kill variables containing newlines.
671aa708
NN
13613# Ultrix sh set writes to stderr and can't be redirected directly,
13614# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
13615(
13616 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13617 eval ac_val=\$$ac_var
13618 case $ac_val in #(
13619 *${as_nl}*)
13620 case $ac_var in #(
13621 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13622$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13623 esac
13624 case $ac_var in #(
13625 _ | IFS | as_nl) ;; #(
13626 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13627 *) { eval $ac_var=; unset $ac_var;} ;;
13628 esac ;;
13629 esac
13630 done
13631
1c710c3c 13632 (set) 2>&1 |
5213506e
RW
13633 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13634 *${as_nl}ac_space=\ *)
13635 # `set' does not quote correctly, so add quotes: double-quote
13636 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
13637 sed -n \
13638 "s/'/'\\\\''/g;
13639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 13640 ;; #(
1c710c3c
DJ
13641 *)
13642 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 13643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 13644 ;;
5213506e
RW
13645 esac |
13646 sort
13647) |
1c710c3c 13648 sed '
5213506e 13649 /^ac_cv_env_/b end
1c710c3c 13650 t clear
5213506e 13651 :clear
1c710c3c
DJ
13652 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13653 t end
5213506e
RW
13654 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13655 :end' >>confcache
13656if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13657 if test -w "$cache_file"; then
13658 test "x$cache_file" != "x/dev/null" &&
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13660$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 13661 cat confcache >$cache_file
671aa708 13662 else
5213506e
RW
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13664$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 13665 fi
4977bab6 13666fi
671aa708 13667rm -f confcache
79c06341 13668
671aa708
NN
13669test "x$prefix" = xNONE && prefix=$ac_default_prefix
13670# Let make expand exec_prefix.
13671test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 13672
671aa708
NN
13673# Transform confdefs.h into DEFS.
13674# Protect against shell expansion while executing Makefile rules.
13675# Protect against Makefile macro expansion.
1c710c3c
DJ
13676#
13677# If the first sed substitution is executed (which looks for macros that
5213506e 13678# take arguments), then branch to the quote section. Otherwise,
1c710c3c 13679# look for a macro that doesn't take arguments.
5213506e
RW
13680ac_script='
13681:mline
13682/\\$/{
13683 N
13684 s,\\\n,,
13685 b mline
13686}
1c710c3c 13687t clear
5213506e
RW
13688:clear
13689s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 13690t quote
5213506e 13691s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 13692t quote
5213506e
RW
13693b any
13694:quote
13695s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13696s/\[/\\&/g
13697s/\]/\\&/g
13698s/\$/$$/g
13699H
13700:any
13701${
13702 g
13703 s/^\n//
13704 s/\n/ /g
13705 p
13706}
13707'
13708DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
13709
13710
13711ac_libobjs=
13712ac_ltlibobjs=
13713for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13714 # 1. Remove the extension, and $U if already installed.
5213506e
RW
13715 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13716 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13717 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13718 # will be set to the directory where LIBOBJS objects are built.
13719 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13720 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
13721done
13722LIBOBJS=$ac_libobjs
fb0103e5 13723
1c710c3c 13724LTLIBOBJS=$ac_ltlibobjs
0b0dc272 13725
af71363e 13726
1c710c3c
DJ
13727
13728: ${CONFIG_STATUS=./config.status}
5213506e 13729ac_write_fail=0
1c710c3c
DJ
13730ac_clean_files_save=$ac_clean_files
13731ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13733$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13734as_write_fail=0
13735cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
13736#! $SHELL
13737# Generated by $as_me.
671aa708 13738# Run this file to recreate the current configuration.
671aa708 13739# Compiler output produced by configure, useful for debugging
1c710c3c 13740# configure, is in config.log if it exists.
0b0dc272 13741
1c710c3c
DJ
13742debug=false
13743ac_cs_recheck=false
13744ac_cs_silent=false
1c710c3c 13745
5213506e
RW
13746SHELL=\${CONFIG_SHELL-$SHELL}
13747export SHELL
13748_ASEOF
13749cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13750## -------------------- ##
13751## M4sh Initialization. ##
13752## -------------------- ##
13753
13754# Be more Bourne compatible
13755DUALCASE=1; export DUALCASE # for MKS sh
13756if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
13757 emulate sh
13758 NULLCMD=:
5213506e 13759 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
13760 # is contrary to our usage. Disable this feature.
13761 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
13762 setopt NO_GLOB_SUBST
13763else
13764 case `(set -o) 2>/dev/null` in #(
13765 *posix*) :
13766 set -o posix ;; #(
13767 *) :
13768 ;;
13769esac
1c710c3c 13770fi
1c710c3c 13771
5213506e
RW
13772
13773as_nl='
13774'
13775export as_nl
13776# Printing a long string crashes Solaris 7 /usr/bin/printf.
13777as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13778as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13779as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13780# Prefer a ksh shell builtin over an external printf program on Solaris,
13781# but without wasting forks for bash or zsh.
13782if test -z "$BASH_VERSION$ZSH_VERSION" \
13783 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13784 as_echo='print -r --'
13785 as_echo_n='print -rn --'
13786elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13787 as_echo='printf %s\n'
13788 as_echo_n='printf %s'
13789else
13790 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13791 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13792 as_echo_n='/usr/ucb/echo -n'
13793 else
13794 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13795 as_echo_n_body='eval
13796 arg=$1;
13797 case $arg in #(
13798 *"$as_nl"*)
13799 expr "X$arg" : "X\\(.*\\)$as_nl";
13800 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13801 esac;
13802 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13803 '
13804 export as_echo_n_body
13805 as_echo_n='sh -c $as_echo_n_body as_echo'
13806 fi
13807 export as_echo_body
13808 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
13809fi
13810
5213506e
RW
13811# The user is always right.
13812if test "${PATH_SEPARATOR+set}" != set; then
13813 PATH_SEPARATOR=:
13814 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13815 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13816 PATH_SEPARATOR=';'
13817 }
13818fi
13819
13820
13821# IFS
13822# We need space, tab and new line, in precisely that order. Quoting is
13823# there to prevent editors from complaining about space-tab.
13824# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13825# splitting by setting IFS to empty value.)
13826IFS=" "" $as_nl"
13827
13828# Find who we are. Look in the path if we contain no directory separator.
13829case $0 in #((
13830 *[\\/]* ) as_myself=$0 ;;
13831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832for as_dir in $PATH
13833do
13834 IFS=$as_save_IFS
13835 test -z "$as_dir" && as_dir=.
13836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13837 done
13838IFS=$as_save_IFS
13839
13840 ;;
13841esac
13842# We did not find ourselves, most probably we were run as `sh COMMAND'
13843# in which case we are not to be found in the path.
13844if test "x$as_myself" = x; then
13845 as_myself=$0
13846fi
13847if test ! -f "$as_myself"; then
13848 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13849 exit 1
13850fi
1c710c3c 13851
5213506e
RW
13852# Unset variables that we do not need and which cause bugs (e.g. in
13853# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13854# suppresses any "Segmentation fault" message there. '((' could
13855# trigger a bug in pdksh 5.2.14.
13856for as_var in BASH_ENV ENV MAIL MAILPATH
13857do eval test x\${$as_var+set} = xset \
13858 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13859done
1c710c3c
DJ
13860PS1='$ '
13861PS2='> '
13862PS4='+ '
13863
13864# NLS nuisances.
5213506e
RW
13865LC_ALL=C
13866export LC_ALL
13867LANGUAGE=C
13868export LANGUAGE
13869
13870# CDPATH.
13871(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13872
13873
13874# as_fn_error ERROR [LINENO LOG_FD]
13875# ---------------------------------
13876# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13877# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13878# script with status $?, using 1 if that was 0.
13879as_fn_error ()
13880{
13881 as_status=$?; test $as_status -eq 0 && as_status=1
13882 if test "$3"; then
13883 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13884 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 13885 fi
5213506e
RW
13886 $as_echo "$as_me: error: $1" >&2
13887 as_fn_exit $as_status
13888} # as_fn_error
13889
13890
13891# as_fn_set_status STATUS
13892# -----------------------
13893# Set $? to STATUS, without forking.
13894as_fn_set_status ()
13895{
13896 return $1
13897} # as_fn_set_status
13898
13899# as_fn_exit STATUS
13900# -----------------
13901# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13902as_fn_exit ()
13903{
13904 set +e
13905 as_fn_set_status $1
13906 exit $1
13907} # as_fn_exit
13908
13909# as_fn_unset VAR
13910# ---------------
13911# Portably unset VAR.
13912as_fn_unset ()
13913{
13914 { eval $1=; unset $1;}
13915}
13916as_unset=as_fn_unset
13917# as_fn_append VAR VALUE
13918# ----------------------
13919# Append the text in VALUE to the end of the definition contained in VAR. Take
13920# advantage of any shell optimizations that allow amortized linear growth over
13921# repeated appends, instead of the typical quadratic growth present in naive
13922# implementations.
13923if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13924 eval 'as_fn_append ()
13925 {
13926 eval $1+=\$2
13927 }'
13928else
13929 as_fn_append ()
13930 {
13931 eval $1=\$$1\$2
13932 }
13933fi # as_fn_append
13934
13935# as_fn_arith ARG...
13936# ------------------
13937# Perform arithmetic evaluation on the ARGs, and store the result in the
13938# global $as_val. Take advantage of shells that can avoid forks. The arguments
13939# must be portable across $(()) and expr.
13940if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13941 eval 'as_fn_arith ()
13942 {
13943 as_val=$(( $* ))
13944 }'
13945else
13946 as_fn_arith ()
13947 {
13948 as_val=`expr "$@" || test $? -eq 1`
13949 }
13950fi # as_fn_arith
13951
1c710c3c 13952
5213506e
RW
13953if expr a : '\(a\)' >/dev/null 2>&1 &&
13954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
13955 as_expr=expr
13956else
13957 as_expr=false
13958fi
13959
5213506e 13960if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
13961 as_basename=basename
13962else
13963 as_basename=false
13964fi
13965
5213506e
RW
13966if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13967 as_dirname=dirname
13968else
13969 as_dirname=false
13970fi
1c710c3c 13971
5213506e 13972as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
13973$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13974 X"$0" : 'X\(//\)$' \| \
5213506e
RW
13975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13976$as_echo X/"$0" |
13977 sed '/^.*\/\([^/][^/]*\)\/*$/{
13978 s//\1/
13979 q
13980 }
13981 /^X\/\(\/\/\)$/{
13982 s//\1/
13983 q
13984 }
13985 /^X\/\(\/\).*/{
13986 s//\1/
13987 q
13988 }
13989 s/.*/./; q'`
2aeb72e9 13990
2aeb72e9
DD
13991# Avoid depending upon Character Ranges.
13992as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13993as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13994as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13995as_cr_digits='0123456789'
13996as_cr_alnum=$as_cr_Letters$as_cr_digits
13997
5213506e
RW
13998ECHO_C= ECHO_N= ECHO_T=
13999case `echo -n x` in #(((((
14000-n*)
14001 case `echo 'xy\c'` in
14002 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14003 xy) ECHO_C='\c';;
14004 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14005 ECHO_T=' ';;
14006 esac;;
14007*)
14008 ECHO_N='-n';;
1c710c3c
DJ
14009esac
14010
5213506e
RW
14011rm -f conf$$ conf$$.exe conf$$.file
14012if test -d conf$$.dir; then
14013 rm -f conf$$.dir/conf$$.file
1c710c3c 14014else
5213506e
RW
14015 rm -f conf$$.dir
14016 mkdir conf$$.dir 2>/dev/null
1c710c3c 14017fi
5213506e
RW
14018if (echo >conf$$.file) 2>/dev/null; then
14019 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14020 as_ln_s='ln -s'
5213506e
RW
14021 # ... but there are two gotchas:
14022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14024 # In both cases, we have to default to `cp -p'.
14025 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14026 as_ln_s='cp -p'
14027 elif ln conf$$.file conf$$ 2>/dev/null; then
14028 as_ln_s=ln
14029 else
14030 as_ln_s='cp -p'
2aeb72e9 14031 fi
1c710c3c
DJ
14032else
14033 as_ln_s='cp -p'
14034fi
5213506e
RW
14035rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14036rmdir conf$$.dir 2>/dev/null
14037
14038
14039# as_fn_mkdir_p
14040# -------------
14041# Create "$as_dir" as a directory, including parents if necessary.
14042as_fn_mkdir_p ()
14043{
14044
14045 case $as_dir in #(
14046 -*) as_dir=./$as_dir;;
14047 esac
14048 test -d "$as_dir" || eval $as_mkdir_p || {
14049 as_dirs=
14050 while :; do
14051 case $as_dir in #(
14052 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14053 *) as_qdir=$as_dir;;
14054 esac
14055 as_dirs="'$as_qdir' $as_dirs"
14056 as_dir=`$as_dirname -- "$as_dir" ||
14057$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14058 X"$as_dir" : 'X\(//\)[^/]' \| \
14059 X"$as_dir" : 'X\(//\)$' \| \
14060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14061$as_echo X"$as_dir" |
14062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14063 s//\1/
14064 q
14065 }
14066 /^X\(\/\/\)[^/].*/{
14067 s//\1/
14068 q
14069 }
14070 /^X\(\/\/\)$/{
14071 s//\1/
14072 q
14073 }
14074 /^X\(\/\).*/{
14075 s//\1/
14076 q
14077 }
14078 s/.*/./; q'`
14079 test -d "$as_dir" && break
14080 done
14081 test -z "$as_dirs" || eval "mkdir $as_dirs"
14082 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14083
1c710c3c 14084
5213506e 14085} # as_fn_mkdir_p
1c710c3c 14086if mkdir -p . 2>/dev/null; then
5213506e 14087 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14088else
14089 test -d ./-p && rmdir ./-p
14090 as_mkdir_p=false
14091fi
14092
5213506e
RW
14093if test -x / >/dev/null 2>&1; then
14094 as_test_x='test -x'
14095else
14096 if ls -dL / >/dev/null 2>&1; then
14097 as_ls_L_option=L
14098 else
14099 as_ls_L_option=
14100 fi
14101 as_test_x='
14102 eval sh -c '\''
14103 if test -d "$1"; then
14104 test -d "$1/.";
14105 else
14106 case $1 in #(
14107 -*)set "./$1";;
14108 esac;
14109 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14110 ???[sx]*):;;*)false;;esac;fi
14111 '\'' sh
14112 '
14113fi
14114as_executable_p=$as_test_x
1c710c3c
DJ
14115
14116# Sed expression to map a string onto a valid CPP name.
14117as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14118
14119# Sed expression to map a string onto a valid variable name.
14120as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14121
14122
1c710c3c 14123exec 6>&1
5213506e
RW
14124## ----------------------------------- ##
14125## Main body of $CONFIG_STATUS script. ##
14126## ----------------------------------- ##
14127_ASEOF
14128test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14129
14130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14131# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14132# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14133# values after options handling.
14134ac_log="
1c710c3c 14135This file was extended by $as_me, which was
5213506e 14136generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14137
14138 CONFIG_FILES = $CONFIG_FILES
14139 CONFIG_HEADERS = $CONFIG_HEADERS
14140 CONFIG_LINKS = $CONFIG_LINKS
14141 CONFIG_COMMANDS = $CONFIG_COMMANDS
14142 $ $0 $@
14143
5213506e
RW
14144on `(hostname || uname -n) 2>/dev/null | sed 1q`
14145"
14146
1c710c3c
DJ
14147_ACEOF
14148
5213506e
RW
14149case $ac_config_files in *"
14150"*) set x $ac_config_files; shift; ac_config_files=$*;;
14151esac
1c710c3c 14152
2aeb72e9 14153
2aeb72e9 14154
5213506e
RW
14155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14156# Files that config.status was made for.
14157config_files="$ac_config_files"
1c710c3c 14158
5213506e 14159_ACEOF
2aeb72e9 14160
5213506e 14161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 14162ac_cs_usage="\
5213506e
RW
14163\`$as_me' instantiates files and other configuration actions
14164from templates according to the current configuration. Unless the files
14165and actions are specified as TAGs, all are instantiated by default.
1c710c3c 14166
5213506e 14167Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
14168
14169 -h, --help print this help, then exit
5213506e
RW
14170 -V, --version print version number and configuration settings, then exit
14171 -q, --quiet, --silent
14172 do not print progress messages
1c710c3c
DJ
14173 -d, --debug don't remove temporary files
14174 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
14175 --file=FILE[:TEMPLATE]
14176 instantiate the configuration file FILE
1c710c3c
DJ
14177
14178Configuration files:
14179$config_files
14180
5213506e 14181Report bugs to the package provider."
2aeb72e9 14182
5213506e
RW
14183_ACEOF
14184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
14185ac_cs_version="\\
14186config.status
5213506e
RW
14187configured by $0, generated by GNU Autoconf 2.64,
14188 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 14189
5213506e 14190Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
14191This config.status script is free software; the Free Software Foundation
14192gives unlimited permission to copy, distribute and modify it."
5213506e
RW
14193
14194ac_pwd='$ac_pwd'
14195srcdir='$srcdir'
14196INSTALL='$INSTALL'
87264276 14197AWK='$AWK'
5213506e 14198test -n "\$AWK" || AWK=awk
1c710c3c
DJ
14199_ACEOF
14200
5213506e
RW
14201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14202# The default lists apply if the user does not specify any file.
1c710c3c
DJ
14203ac_need_defaults=:
14204while test $# != 0
a4b9e93e 14205do
1c710c3c
DJ
14206 case $1 in
14207 --*=*)
5213506e
RW
14208 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14209 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
14210 ac_shift=:
14211 ;;
5213506e 14212 *)
1c710c3c
DJ
14213 ac_option=$1
14214 ac_optarg=$2
14215 ac_shift=shift
14216 ;;
1c710c3c
DJ
14217 esac
14218
14219 case $ac_option in
14220 # Handling of the options.
671aa708 14221 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 14222 ac_cs_recheck=: ;;
5213506e
RW
14223 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14224 $as_echo "$ac_cs_version"; exit ;;
14225 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
14226 debug=: ;;
14227 --file | --fil | --fi | --f )
14228 $ac_shift
5213506e
RW
14229 case $ac_optarg in
14230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14231 esac
14232 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 14233 ac_need_defaults=false;;
5213506e
RW
14234 --he | --h | --help | --hel | -h )
14235 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
14236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14237 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14238 ac_cs_silent=: ;;
14239
14240 # This is an error.
5213506e
RW
14241 -*) as_fn_error "unrecognized option: \`$1'
14242Try \`$0 --help' for more information." ;;
1c710c3c 14243
5213506e
RW
14244 *) as_fn_append ac_config_targets " $1"
14245 ac_need_defaults=false ;;
1c710c3c 14246
0b0dc272 14247 esac
1c710c3c 14248 shift
0b0dc272
AM
14249done
14250
1c710c3c 14251ac_configure_extra_args=
0b0dc272 14252
1c710c3c
DJ
14253if $ac_cs_silent; then
14254 exec 6>/dev/null
14255 ac_configure_extra_args="$ac_configure_extra_args --silent"
14256fi
0b0dc272 14257
1c710c3c 14258_ACEOF
5213506e 14259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 14260if \$ac_cs_recheck; then
5213506e
RW
14261 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14262 shift
14263 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14264 CONFIG_SHELL='$SHELL'
14265 export CONFIG_SHELL
14266 exec "\$@"
1c710c3c
DJ
14267fi
14268
14269_ACEOF
5213506e
RW
14270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14271exec 5>>config.log
14272{
14273 echo
14274 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14275## Running $as_me. ##
14276_ASBOX
14277 $as_echo "$ac_log"
14278} >&5
1c710c3c 14279
5213506e
RW
14280_ACEOF
14281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
14282#
14283# INIT-COMMANDS
14284#
14285extrasub_build="$extrasub_build"
14286 extrasub_host="$extrasub_host"
14287 extrasub_target="$extrasub_target"
14288
5213506e 14289_ACEOF
1c710c3c 14290
5213506e 14291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 14292
5213506e 14293# Handling of arguments.
1c710c3c
DJ
14294for ac_config_target in $ac_config_targets
14295do
5213506e
RW
14296 case $ac_config_target in
14297 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14298
14299 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
14300 esac
14301done
14302
5213506e 14303
1c710c3c
DJ
14304# If the user did not use the arguments to specify the items to instantiate,
14305# then the envvar interface is used. Set only those that are not.
14306# We use the long form for the default assignment because of an extremely
14307# bizarre bug on SunOS 4.1.3.
14308if $ac_need_defaults; then
14309 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14310fi
14311
14312# Have a temporary directory for convenience. Make it in the build tree
5213506e 14313# simply because there is no reason against having it here, and in addition,
1c710c3c 14314# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
14315# Hook for its removal unless debugging.
14316# Note that there is a small window in which the directory will not be cleaned:
14317# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
14318$debug ||
14319{
5213506e
RW
14320 tmp=
14321 trap 'exit_status=$?
14322 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14323' 0
14324 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 14325}
1c710c3c
DJ
14326# Create a (secure) tmp directory for tmp files.
14327
14328{
5213506e 14329 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
14330 test -n "$tmp" && test -d "$tmp"
14331} ||
14332{
5213506e
RW
14333 tmp=./conf$$-$RANDOM
14334 (umask 077 && mkdir "$tmp")
14335} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14336
14337# Set up the scripts for CONFIG_FILES section.
14338# No need to generate them if there are no CONFIG_FILES.
14339# This happens for instance with `./config.status config.h'.
14340if test -n "$CONFIG_FILES"; then
14341
14342if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14343 ac_cs_awk_getline=:
14344 ac_cs_awk_pipe_init=
14345 ac_cs_awk_read_file='
14346 while ((getline aline < (F[key])) > 0)
14347 print(aline)
14348 close(F[key])'
14349 ac_cs_awk_pipe_fini=
14350else
14351 ac_cs_awk_getline=false
14352 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14353 ac_cs_awk_read_file='
14354 print "|#_!!_#|"
14355 print "cat " F[key] " &&"
14356 '$ac_cs_awk_pipe_init
14357 # The final `:' finishes the AND list.
14358 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14359fi
14360ac_cr=`echo X | tr X '\015'`
14361# On cygwin, bash can eat \r inside `` if the user requested igncr.
14362# But we know of no other shell where ac_cr would be empty at this
14363# point, so we can use a bashism as a fallback.
14364if test "x$ac_cr" = x; then
14365 eval ac_cr=\$\'\\r\'
14366fi
14367ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14368if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14369 ac_cs_awk_cr='\r'
14370else
14371 ac_cs_awk_cr=$ac_cr
14372fi
14373
14374echo 'BEGIN {' >"$tmp/subs1.awk" &&
14375_ACEOF
14376
14377# Create commands to substitute file output variables.
1c710c3c 14378{
5213506e
RW
14379 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14380 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14381 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14382 echo "_ACAWK" &&
14383 echo "_ACEOF"
14384} >conf$$files.sh &&
14385. ./conf$$files.sh ||
14386 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14387rm -f conf$$files.sh
1c710c3c 14388
5213506e
RW
14389{
14390 echo "cat >conf$$subs.awk <<_ACEOF" &&
14391 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14392 echo "_ACEOF"
14393} >conf$$subs.sh ||
14394 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14395ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14396ac_delim='%!_!# '
14397for ac_last_try in false false false false false :; do
14398 . ./conf$$subs.sh ||
14399 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14400
14401 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14402 if test $ac_delim_n = $ac_delim_num; then
14403 break
14404 elif $ac_last_try; then
14405 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14406 else
14407 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14408 fi
14409done
14410rm -f conf$$subs.sh
14411
14412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14413cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 14414_ACEOF
5213506e
RW
14415sed -n '
14416h
14417s/^/S["/; s/!.*/"]=/
14418p
14419g
14420s/^[^!]*!//
14421:repl
14422t repl
14423s/'"$ac_delim"'$//
14424t delim
14425:nl
14426h
14427s/\(.\{148\}\).*/\1/
14428t more1
14429s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14430p
14431n
14432b repl
14433:more1
14434s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14435p
14436g
14437s/.\{148\}//
14438t nl
14439:delim
14440h
14441s/\(.\{148\}\).*/\1/
14442t more2
14443s/["\\]/\\&/g; s/^/"/; s/$/"/
14444p
14445b
14446:more2
14447s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14448p
14449g
14450s/.\{148\}//
14451t delim
14452' <conf$$subs.awk | sed '
14453/^[^""]/{
14454 N
14455 s/\n//
14456}
14457' >>$CONFIG_STATUS || ac_write_fail=1
14458rm -f conf$$subs.awk
14459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14460_ACAWK
14461cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14462 for (key in S) S_is_set[key] = 1
14463 FS = "\a"
14464 \$ac_cs_awk_pipe_init
14465}
14466{
14467 line = $ 0
14468 nfields = split(line, field, "@")
14469 substed = 0
14470 len = length(field[1])
14471 for (i = 2; i < nfields; i++) {
14472 key = field[i]
14473 keylen = length(key)
14474 if (S_is_set[key]) {
14475 value = S[key]
14476 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14477 len += length(value) + length(field[++i])
14478 substed = 1
14479 } else
14480 len += 1 + keylen
14481 }
14482 if (nfields == 3 && !substed) {
14483 key = field[2]
14484 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14485 \$ac_cs_awk_read_file
14486 next
14487 }
14488 }
14489 print line
14490}
14491\$ac_cs_awk_pipe_fini
14492_ACAWK
14493_ACEOF
14494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14495if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14496 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14497else
14498 cat
14499fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14500 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14501_ACEOF
14502
14503# VPATH may cause trouble with some makes, so we remove $(srcdir),
14504# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14505# trailing colons and then remove the whole line if VPATH becomes empty
14506# (actually we leave an empty line to preserve line numbers).
14507if test "x$srcdir" = x.; then
14508 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14509s/:*\$(srcdir):*/:/
14510s/:*\${srcdir}:*/:/
14511s/:*@srcdir@:*/:/
14512s/^\([^=]*=[ ]*\):*/\1/
14513s/:*$//
14514s/^[^=]*=[ ]*$//
14515}'
14516fi
2aeb72e9 14517
5213506e
RW
14518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14519fi # test -n "$CONFIG_FILES"
2aeb72e9 14520
1c710c3c 14521
5213506e
RW
14522eval set X " :F $CONFIG_FILES "
14523shift
14524for ac_tag
14525do
14526 case $ac_tag in
14527 :[FHLC]) ac_mode=$ac_tag; continue;;
14528 esac
14529 case $ac_mode$ac_tag in
14530 :[FHL]*:*);;
14531 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14532 :[FH]-) ac_tag=-:-;;
14533 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14534 esac
14535 ac_save_IFS=$IFS
14536 IFS=:
14537 set x $ac_tag
14538 IFS=$ac_save_IFS
14539 shift
14540 ac_file=$1
14541 shift
79c06341 14542
5213506e
RW
14543 case $ac_mode in
14544 :L) ac_source=$1;;
14545 :[FH])
14546 ac_file_inputs=
14547 for ac_f
14548 do
14549 case $ac_f in
14550 -) ac_f="$tmp/stdin";;
14551 *) # Look for the file first in the build tree, then in the source tree
14552 # (if the path is not absolute). The absolute path cannot be DOS-style,
14553 # because $ac_f cannot contain `:'.
14554 test -f "$ac_f" ||
14555 case $ac_f in
14556 [\\/$]*) false;;
14557 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14558 esac ||
14559 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14560 esac
14561 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14562 as_fn_append ac_file_inputs " '$ac_f'"
14563 done
1c710c3c 14564
5213506e
RW
14565 # Let's still pretend it is `configure' which instantiates (i.e., don't
14566 # use $as_me), people would be surprised to read:
14567 # /* config.h. Generated by config.status. */
14568 configure_input='Generated from '`
14569 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14570 `' by configure.'
14571 if test x"$ac_file" != x-; then
14572 configure_input="$ac_file. $configure_input"
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14574$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 14575 fi
5213506e
RW
14576 # Neutralize special characters interpreted by sed in replacement strings.
14577 case $configure_input in #(
14578 *\&* | *\|* | *\\* )
14579 ac_sed_conf_input=`$as_echo "$configure_input" |
14580 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14581 *) ac_sed_conf_input=$configure_input;;
14582 esac
11a67599 14583
5213506e
RW
14584 case $ac_tag in
14585 *:-:* | *:-) cat >"$tmp/stdin" \
14586 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14587 esac
14588 ;;
11a67599
ZW
14589 esac
14590
5213506e 14591 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
14592$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14593 X"$ac_file" : 'X\(//\)[^/]' \| \
14594 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
14595 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14596$as_echo X"$ac_file" |
14597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14598 s//\1/
14599 q
14600 }
14601 /^X\(\/\/\)[^/].*/{
14602 s//\1/
14603 q
14604 }
14605 /^X\(\/\/\)$/{
14606 s//\1/
14607 q
14608 }
14609 /^X\(\/\).*/{
14610 s//\1/
14611 q
14612 }
14613 s/.*/./; q'`
14614 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 14615 ac_builddir=.
0b0dc272 14616
5213506e
RW
14617case "$ac_dir" in
14618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14619*)
14620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14621 # A ".." for each directory in $ac_dir_suffix.
14622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14623 case $ac_top_builddir_sub in
14624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14626 esac ;;
14627esac
14628ac_abs_top_builddir=$ac_pwd
14629ac_abs_builddir=$ac_pwd$ac_dir_suffix
14630# for backward compatibility:
14631ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
14632
14633case $srcdir in
5213506e 14634 .) # We are building in place.
1c710c3c 14635 ac_srcdir=.
5213506e
RW
14636 ac_top_srcdir=$ac_top_builddir_sub
14637 ac_abs_top_srcdir=$ac_pwd ;;
14638 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 14639 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
14640 ac_top_srcdir=$srcdir
14641 ac_abs_top_srcdir=$srcdir ;;
14642 *) # Relative name.
14643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14644 ac_top_srcdir=$ac_top_build_prefix$srcdir
14645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 14646esac
5213506e 14647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 14648
0b0dc272 14649
5213506e
RW
14650 case $ac_mode in
14651 :F)
14652 #
14653 # CONFIG_FILE
14654 #
1c710c3c
DJ
14655
14656 case $INSTALL in
14657 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 14658 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 14659 esac
5213506e 14660_ACEOF
11a67599 14661
5213506e
RW
14662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14663# If the template does not know about datarootdir, expand it.
14664# FIXME: This hack should be removed a few years after 2.60.
14665ac_datarootdir_hack=; ac_datarootdir_seen=
14666ac_sed_dataroot='
14667/datarootdir/ {
14668 p
14669 q
14670}
14671/@datadir@/p
14672/@docdir@/p
14673/@infodir@/p
14674/@localedir@/p
14675/@mandir@/p'
14676case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14677*datarootdir*) ac_datarootdir_seen=yes;;
14678*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14680$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 14681_ACEOF
5213506e
RW
14682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14683 ac_datarootdir_hack='
14684 s&@datadir@&$datadir&g
14685 s&@docdir@&$docdir&g
14686 s&@infodir@&$infodir&g
14687 s&@localedir@&$localedir&g
14688 s&@mandir@&$mandir&g
14689 s&\\\${datarootdir}&$datarootdir&g' ;;
14690esac
14691_ACEOF
14692
14693# Neutralize VPATH when `$srcdir' = `.'.
14694# Shell code in configure.ac might set extrasub.
14695# FIXME: do we really want to maintain this feature?
14696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14697ac_sed_extra="$ac_vpsub
1c710c3c
DJ
14698$extrasub
14699_ACEOF
5213506e 14700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
14701:t
14702/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
14703s|@configure_input@|$ac_sed_conf_input|;t t
14704s&@top_builddir@&$ac_top_builddir_sub&;t t
14705s&@top_build_prefix@&$ac_top_build_prefix&;t t
14706s&@srcdir@&$ac_srcdir&;t t
14707s&@abs_srcdir@&$ac_abs_srcdir&;t t
14708s&@top_srcdir@&$ac_top_srcdir&;t t
14709s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14710s&@builddir@&$ac_builddir&;t t
14711s&@abs_builddir@&$ac_abs_builddir&;t t
14712s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14713s&@INSTALL@&$ac_INSTALL&;t t
14714$ac_datarootdir_hack
14715"
14716eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14717if $ac_cs_awk_getline; then
14718 $AWK -f "$tmp/subs.awk"
14719else
14720 $AWK -f "$tmp/subs.awk" | $SHELL
14721fi >$tmp/out \
14722 || as_fn_error "could not create $ac_file" "$LINENO" 5
14723
14724test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14725 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14726 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14728which seems to be undefined. Please make sure it is defined." >&5
14729$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14730which seems to be undefined. Please make sure it is defined." >&2;}
14731
14732 rm -f "$tmp/stdin"
14733 case $ac_file in
14734 -) cat "$tmp/out" && rm -f "$tmp/out";;
14735 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14736 esac \
14737 || as_fn_error "could not create $ac_file" "$LINENO" 5
14738 ;;
11a67599 14739
11a67599 14740
79c06341 14741
5213506e
RW
14742 esac
14743
3e54529c
RW
14744
14745 case $ac_file$ac_mode in
14746 "Makefile":F) sed "$extrasub_build" Makefile |
14747 sed "$extrasub_host" |
14748 sed "$extrasub_target" > mf$$
14749 mv -f mf$$ Makefile ;;
14750
14751 esac
5213506e
RW
14752done # for ac_tag
14753
14754
14755as_fn_exit 0
1c710c3c 14756_ACEOF
1c710c3c
DJ
14757ac_clean_files=$ac_clean_files_save
14758
5213506e
RW
14759test $ac_write_fail = 0 ||
14760 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14761
1c710c3c
DJ
14762
14763# configure is writing to config.log, and then calls config.status.
14764# config.status does its own redirection, appending to config.log.
14765# Unfortunately, on DOS this fails, as config.log is still kept open
14766# by configure, so config.status won't be able to write to it; its
14767# output is simply discarded. So we exec the FD to /dev/null,
14768# effectively closing config.log, so it can be properly (re)opened and
14769# appended to by config.status. When coming back to configure, we
14770# need to make the FD available again.
14771if test "$no_create" != yes; then
14772 ac_cs_success=:
14773 ac_config_status_args=
14774 test "$silent" = yes &&
14775 ac_config_status_args="$ac_config_status_args --quiet"
14776 exec 5>/dev/null
14777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14778 exec 5>>config.log
14779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14780 # would make configure fail if this is the last instruction.
5213506e
RW
14781 $ac_cs_success || as_fn_exit $?
14782fi
14783if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14785$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 14786fi
79c06341 14787
This page took 3.228405 seconds and 5 git commands to generate.