]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR tree-optimization/46077 (ICE in tree vectorization when compiling towns_audio...
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
1c710c3c 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
1c710c3c 263
5213506e
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
1c710c3c 410
2aeb72e9
DD
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 417
1c710c3c 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
0b0dc272 519
1c710c3c
DJ
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
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
f16e2237 768enable_cloog_backend
5213506e 769enable_cloog_version_check
d7f09764 770enable_lto
5213506e
RW
771enable_stage1_languages
772enable_objc_gc
773with_build_sysroot
774with_debug_prefix_map
775enable_bootstrap
5646b7b9 776with_build_config
5213506e
RW
777enable_serial_configure
778with_build_time_tools
779enable_maintainer_mode
780enable_stage1_checking
781enable_werror
5213506e
RW
782'
783 ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
789LIBS
790CPPFLAGS
791CXX
792CXXFLAGS
793CCC
ffedf511
RW
794build_configargs
795host_configargs
796target_configargs
5213506e
RW
797AR
798AS
799DLLTOOL
800LD
801LIPO
802NM
803RANLIB
804STRIP
805WINDRES
806WINDMC
807OBJCOPY
808OBJDUMP
809CC_FOR_TARGET
810CXX_FOR_TARGET
811GCC_FOR_TARGET
812GCJ_FOR_TARGET
813GFORTRAN_FOR_TARGET
814AR_FOR_TARGET
815AS_FOR_TARGET
816DLLTOOL_FOR_TARGET
817LD_FOR_TARGET
818LIPO_FOR_TARGET
819NM_FOR_TARGET
820OBJDUMP_FOR_TARGET
821RANLIB_FOR_TARGET
822STRIP_FOR_TARGET
823WINDRES_FOR_TARGET
824WINDMC_FOR_TARGET'
825
671aa708
NN
826
827# Initialize some variables set by options.
1c710c3c
DJ
828ac_init_help=
829ac_init_version=false
5213506e
RW
830ac_unrecognized_opts=
831ac_unrecognized_sep=
671aa708
NN
832# The variables have the same names as the options, with
833# dashes changed to underlines.
1c710c3c 834cache_file=/dev/null
671aa708 835exec_prefix=NONE
671aa708 836no_create=
671aa708
NN
837no_recursion=
838prefix=NONE
839program_prefix=NONE
840program_suffix=NONE
841program_transform_name=s,x,x,
842silent=
843site=
844srcdir=
671aa708
NN
845verbose=
846x_includes=NONE
847x_libraries=NONE
1c710c3c
DJ
848
849# Installation directory options.
850# These are left unexpanded so users can "make install exec_prefix=/foo"
851# and all the variables that are supposed to be based on exec_prefix
852# by default will actually change.
853# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 854# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
855bindir='${exec_prefix}/bin'
856sbindir='${exec_prefix}/sbin'
857libexecdir='${exec_prefix}/libexec'
5213506e
RW
858datarootdir='${prefix}/share'
859datadir='${datarootdir}'
671aa708
NN
860sysconfdir='${prefix}/etc'
861sharedstatedir='${prefix}/com'
862localstatedir='${prefix}/var'
671aa708
NN
863includedir='${prefix}/include'
864oldincludedir='/usr/include'
5213506e
RW
865docdir='${datarootdir}/doc/${PACKAGE}'
866infodir='${datarootdir}/info'
867htmldir='${docdir}'
868dvidir='${docdir}'
869pdfdir='${docdir}'
870psdir='${docdir}'
871libdir='${exec_prefix}/lib'
872localedir='${datarootdir}/locale'
873mandir='${datarootdir}/man'
79c06341 874
671aa708 875ac_prev=
5213506e 876ac_dashdash=
671aa708
NN
877for ac_option
878do
671aa708
NN
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
5213506e 881 eval $ac_prev=\$ac_option
671aa708
NN
882 ac_prev=
883 continue
884 fi
79c06341 885
5213506e
RW
886 case $ac_option in
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *) ac_optarg=yes ;;
889 esac
671aa708
NN
890
891 # Accept the important Cygnus configure options, so we can diagnose typos.
892
5213506e
RW
893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
671aa708
NN
896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 900 bindir=$ac_optarg ;;
671aa708
NN
901
902 -build | --build | --buil | --bui | --bu)
1c710c3c 903 ac_prev=build_alias ;;
671aa708 904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 905 build_alias=$ac_optarg ;;
671aa708
NN
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
671aa708 916
5213506e 917 -datadir | --datadir | --datadi | --datad)
671aa708 918 ac_prev=datadir ;;
5213506e 919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 920 datadir=$ac_optarg ;;
671aa708 921
5213506e
RW
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
671aa708 929 -disable-* | --disable-*)
5213506e 930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 931 # Reject names that are not valid shell variable names.
5213506e
RW
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938"enable_$ac_useropt"
939"*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=no ;;
944
945 -docdir | --docdir | --docdi | --doc | --do)
946 ac_prev=docdir ;;
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 docdir=$ac_optarg ;;
949
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 ac_prev=dvidir ;;
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 dvidir=$ac_optarg ;;
671aa708
NN
954
955 -enable-* | --enable-*)
5213506e 956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 957 # Reject names that are not valid shell variable names.
5213506e
RW
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964"enable_$ac_useropt"
965"*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
2aeb72e9 968 esac
5213506e 969 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
970
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
1c710c3c 978 exec_prefix=$ac_optarg ;;
671aa708
NN
979
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
982 with_gas=yes ;;
983
1c710c3c
DJ
984 -help | --help | --hel | --he | -h)
985 ac_init_help=long ;;
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
671aa708
NN
990
991 -host | --host | --hos | --ho)
1c710c3c 992 ac_prev=host_alias ;;
671aa708 993 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 994 host_alias=$ac_optarg ;;
671aa708 995
5213506e
RW
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 ac_prev=htmldir ;;
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 | --ht=*)
1000 htmldir=$ac_optarg ;;
1001
671aa708
NN
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1007 includedir=$ac_optarg ;;
671aa708
NN
1008
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 ac_prev=infodir ;;
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1012 infodir=$ac_optarg ;;
671aa708
NN
1013
1014 -libdir | --libdir | --libdi | --libd)
1015 ac_prev=libdir ;;
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1017 libdir=$ac_optarg ;;
671aa708
NN
1018
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1024 libexecdir=$ac_optarg ;;
671aa708 1025
5213506e
RW
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1030
671aa708 1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1032 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1036 localstatedir=$ac_optarg ;;
671aa708
NN
1037
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 ac_prev=mandir ;;
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1041 mandir=$ac_optarg ;;
671aa708
NN
1042
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1045 with_fp=no ;;
1046
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1048 | --no-cr | --no-c | -n)
671aa708
NN
1049 no_create=yes ;;
1050
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 no_recursion=yes ;;
1054
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1062 oldincludedir=$ac_optarg ;;
671aa708
NN
1063
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 ac_prev=prefix ;;
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1067 prefix=$ac_optarg ;;
671aa708
NN
1068
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1074 program_prefix=$ac_optarg ;;
671aa708
NN
1075
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1081 program_suffix=$ac_optarg ;;
671aa708
NN
1082
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1098 program_transform_name=$ac_optarg ;;
671aa708 1099
5213506e
RW
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 ac_prev=pdfdir ;;
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1104
1105 -psdir | --psdir | --psdi | --psd | --ps)
1106 ac_prev=psdir ;;
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108 psdir=$ac_optarg ;;
1109
671aa708
NN
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1112 silent=yes ;;
1113
1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 ac_prev=sbindir ;;
1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 | --sbi=* | --sb=*)
1c710c3c 1118 sbindir=$ac_optarg ;;
671aa708
NN
1119
1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1122 | --sharedst | --shareds | --shared | --share | --shar \
1123 | --sha | --sh)
1124 ac_prev=sharedstatedir ;;
1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 | --sha=* | --sh=*)
1c710c3c 1129 sharedstatedir=$ac_optarg ;;
671aa708
NN
1130
1131 -site | --site | --sit)
1132 ac_prev=site ;;
1133 -site=* | --site=* | --sit=*)
1c710c3c 1134 site=$ac_optarg ;;
671aa708
NN
1135
1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 ac_prev=srcdir ;;
1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1139 srcdir=$ac_optarg ;;
671aa708
NN
1140
1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1142 | --syscon | --sysco | --sysc | --sys | --sy)
1143 ac_prev=sysconfdir ;;
1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1146 sysconfdir=$ac_optarg ;;
671aa708
NN
1147
1148 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1149 ac_prev=target_alias ;;
671aa708 1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1151 target_alias=$ac_optarg ;;
671aa708
NN
1152
1153 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1154 verbose=yes ;;
1155
1c710c3c
DJ
1156 -version | --version | --versio | --versi | --vers | -V)
1157 ac_init_version=: ;;
671aa708
NN
1158
1159 -with-* | --with-*)
5213506e 1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1161 # Reject names that are not valid shell variable names.
5213506e
RW
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168"with_$ac_useropt"
1169"*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
2aeb72e9 1172 esac
5213506e 1173 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1174
1175 -without-* | --without-*)
5213506e 1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1177 # Reject names that are not valid shell variable names.
5213506e
RW
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184"with_$ac_useropt"
1185"*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=no ;;
671aa708
NN
1190
1191 --x)
1192 # Obsolete; use --with-x.
1193 with_x=yes ;;
1194
1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196 | --x-incl | --x-inc | --x-in | --x-i)
1197 ac_prev=x_includes ;;
1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1200 x_includes=$ac_optarg ;;
671aa708
NN
1201
1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204 ac_prev=x_libraries ;;
1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1207 x_libraries=$ac_optarg ;;
671aa708 1208
5213506e
RW
1209 -*) as_fn_error "unrecognized option: \`$ac_option'
1210Try \`$0 --help' for more information."
671aa708
NN
1211 ;;
1212
1c710c3c
DJ
1213 *=*)
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
5213506e
RW
1216 case $ac_envvar in #(
1217 '' | [0-9]* | *[!_$as_cr_alnum]* )
1218 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1219 esac
1220 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1221 export $ac_envvar ;;
1222
671aa708 1223 *)
1c710c3c 1224 # FIXME: should be removed in autoconf 3.0.
5213506e 1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1228 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1229 ;;
1230
1231 esac
1232done
1233
1234if test -n "$ac_prev"; then
1c710c3c 1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1236 as_fn_error "missing argument to $ac_option"
af71363e 1237fi
af71363e 1238
5213506e
RW
1239if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1241 no) ;;
1242 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1244 esac
5213506e 1245fi
2aeb72e9 1246
5213506e
RW
1247# Check all directory arguments for consistency.
1248for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir
2aeb72e9 1252do
5213506e
RW
1253 eval ac_val=\$$ac_var
1254 # Remove trailing slashes.
1255 case $ac_val in
1256 */ )
1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\$ac_val;;
1259 esac
1260 # Be sure to have absolute directory names.
2aeb72e9 1261 case $ac_val in
5213506e
RW
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1264 esac
5213506e 1265 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1266done
1267
1c710c3c
DJ
1268# There might be people who depend on the old broken behavior: `$host'
1269# used to hold the argument of --host etc.
1270# FIXME: To remove some day.
1271build=$build_alias
1272host=$host_alias
1273target=$target_alias
0b0dc272 1274
1c710c3c
DJ
1275# FIXME: To remove some day.
1276if test "x$host_alias" != x; then
1277 if test "x$build_alias" = x; then
1278 cross_compiling=maybe
5213506e 1279 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1280 If a cross compiler is detected then cross compile mode will be used." >&2
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1283 fi
1284fi
1285
1286ac_tool_prefix=
1287test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289test "$silent" = yes && exec 6>/dev/null
671aa708 1290
671aa708 1291
5213506e
RW
1292ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293ac_ls_di=`ls -di .` &&
1294ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error "working directory cannot be determined"
1296test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error "pwd does not report name of working directory"
1298
1299
671aa708
NN
1300# Find the source files, if location was not specified.
1301if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
5213506e
RW
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309$as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\).*/{
1323 s//\1/
1324 q
1325 }
1326 s/.*/./; q'`
671aa708 1327 srcdir=$ac_confdir
5213506e 1328 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1329 srcdir=..
1330 fi
1331else
1332 ac_srcdir_defaulted=no
1333fi
5213506e
RW
1334if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1337fi
1338ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1341 pwd)`
1342# When building in place, set srcdir=.
1343if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1345fi
1346# Remove unnecessary trailing slashes from srcdir.
1347# Double slashes in file names in object file debugging info
1348# mess up M-x gdb in Emacs.
1349case $srcdir in
1350*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351esac
87841584
AM
1352case $srcdir in
1353 *" "*)
1354 as_fn_error "path to source, $srcdir, contains spaces"
1355 ;;
1356esac
ac9e6043
RW
1357ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1358
5213506e
RW
1359for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364done
1c710c3c
DJ
1365
1366#
1367# Report the --help message.
1368#
1369if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373\`configure' configures this package to adapt to many kinds of systems.
1374
1375Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378VAR=VALUE. See below for descriptions of some of the useful variables.
1379
1380Defaults for the options are specified in brackets.
1381
1382Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392
1c710c3c
DJ
1393Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1395 [$ac_default_prefix]
1c710c3c 1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1397 [PREFIX]
1c710c3c
DJ
1398
1399By default, \`make install' will install all the files in
1400\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402for instance \`--prefix=\$HOME'.
1403
1404For better control, use the options below.
1405
1406Fine tuning of the installation directories:
5213506e
RW
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1426_ACEOF
1427
1428 cat <<\_ACEOF
1429
1430Program names:
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 --target=TARGET configure for building compilers for TARGET [HOST]
1439_ACEOF
1440fi
1441
1442if test -n "$ac_init_help"; then
1443
1444 cat <<\_ACEOF
1445
1446Optional Features:
5213506e 1447 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
38e3d868 1450 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
30b74385
RW
1451 --enable-libada build libada directory
1452 --enable-libssp build libssp directory
00020c16 1453 --enable-build-with-cxx build with C++ compiler instead of C compiler
d789184e 1454 --disable-ppl-version-check disable check for PPL version
f16e2237
TG
1455 --enable-cloog-backend=backend
1456 isl: The cloog.org isl backend
1457 ppl-legacy: The legacy ppl backend - default
1458 ppl: The cloog.org ppl backend
d32ef397
AS
1459 --disable-cloog-version-check
1460 disable check for CLooG version
d7f09764 1461 --enable-lto enable link time optimization support
30b74385 1462 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 1463 stage1. Mostly useful for compiler development.
30b74385
RW
1464 --enable-objc-gc enable use of Boehm's garbage collector with the
1465 GNU Objective-C runtime
1466 --enable-bootstrap enable bootstrapping [yes if native build]
1467 --enable-serial-[{host,target,build}-]configure
1468 force sequential configuration of
1c710c3c 1469 sub-packages for the host, target or build
30b74385 1470 machine, or all sub-packages
1c710c3c
DJ
1471 --enable-maintainer-mode enable make rules and dependencies not useful
1472 (and sometimes confusing) to the casual installer
30b74385
RW
1473 --enable-stage1-checking[=all] choose additional checking for stage1
1474 of the compiler
1c710c3c
DJ
1475 --enable-werror enable -Werror in bootstrap stage2 and later
1476
1477Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-build-libsubdir=DIR Directory where to find libraries for build system
acd26225
KG
1481 --with-mpc=PATH specify prefix directory for installed MPC package.
1482 Equivalent to --with-mpc-include=PATH/include
1483 plus --with-mpc-lib=PATH/lib
1484 --with-mpc-include=PATH
1485 specify directory for installed MPC include files
1486 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1487 --with-mpfr-dir=PATH this option has been REMOVED
1488 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
1489 Equivalent to --with-mpfr-include=PATH/include
1490 plus --with-mpfr-lib=PATH/lib
1491 --with-mpfr-include=PATH
30b74385
RW
1492 specify directory for installed MPFR include files
1493 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1494 --with-gmp-dir=PATH this option has been REMOVED
1495 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
1496 Equivalent to --with-gmp-include=PATH/include
1497 plus --with-gmp-lib=PATH/lib
30b74385
RW
1498 --with-gmp-include=PATH specify directory for installed GMP include files
1499 --with-gmp-lib=PATH specify directory for the installed GMP library
f38095f3
JM
1500 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1501 when linking with PPL
00020c16
ILT
1502 --with-stage1-ldflags=FLAGS Linker flags for stage1
1503 -with-stage1-libs=LIBS Libraries for stage1
00020c16 1504 --with-boot-libs=LIBS Libraries for stage2 and later
ed2eaa9f 1505 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
f8bf9252
SP
1506 --with-ppl=PATH Specify prefix directory for the installed PPL package
1507 Equivalent to --with-ppl-include=PATH/include
1508 plus --with-ppl-lib=PATH/lib
1509 --with-ppl-include=PATH Specify directory for installed PPL include files
1510 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d32ef397
AS
1511 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1512 package. Equivalent to
1513 --with-cloog-include=PATH/include plus
1514 --with-cloog-lib=PATH/lib
1515 --with-cloog-include=PATH
1516 Specify directory for installed CLooG include files
1517 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1518 library
30b74385 1519 --with-build-sysroot=SYSROOT
1c710c3c 1520 use sysroot as the system root during the build
c8aea42c
PB
1521 --with-debug-prefix-map='A=B C=D ...'
1522 map A to B, C to D ... in debug information
5646b7b9
AO
1523--with-build-config='NAME NAME2...'
1524 Use config/NAME.mk build configuration
30b74385 1525 --with-build-time-tools=PATH
1c710c3c 1526 use given path to find target tools during the build
1c710c3c
DJ
1527
1528Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
5213506e
RW
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1536 CXX C++ compiler command
1537 CXXFLAGS C++ compiler flags
ffedf511
RW
1538 build_configargs
1539 additional configure arguments for build directories
1540 host_configargs
1541 additional configure arguments for host directories
1542 target_configargs
1543 additional configure arguments for target directories
278a7a38
AO
1544 AR AR for the host
1545 AS AS for the host
1546 DLLTOOL DLLTOOL for the host
1547 LD LD for the host
1548 LIPO LIPO for the host
1549 NM NM for the host
1550 RANLIB RANLIB for the host
1551 STRIP STRIP for the host
1552 WINDRES WINDRES for the host
901119ae 1553 WINDMC WINDMC for the host
278a7a38
AO
1554 OBJCOPY OBJCOPY for the host
1555 OBJDUMP OBJDUMP for the host
1556 CC_FOR_TARGET
1557 CC for the target
1558 CXX_FOR_TARGET
1559 CXX for the target
1560 GCC_FOR_TARGET
1561 GCC for the target
1562 GCJ_FOR_TARGET
1563 GCJ for the target
1564 GFORTRAN_FOR_TARGET
1565 GFORTRAN for the target
1566 AR_FOR_TARGET
1567 AR for the target
1568 AS_FOR_TARGET
1569 AS for the target
1570 DLLTOOL_FOR_TARGET
1571 DLLTOOL for the target
1572 LD_FOR_TARGET
1573 LD for the target
1574 LIPO_FOR_TARGET
1575 LIPO for the target
1576 NM_FOR_TARGET
1577 NM for the target
1578 OBJDUMP_FOR_TARGET
1579 OBJDUMP for the target
1580 RANLIB_FOR_TARGET
1581 RANLIB for the target
1582 STRIP_FOR_TARGET
1583 STRIP for the target
1584 WINDRES_FOR_TARGET
1585 WINDRES for the target
901119ae
KT
1586 WINDMC_FOR_TARGET
1587 WINDMC for the target
1c710c3c
DJ
1588
1589Use these variables to override the choices made by `configure' or to help
1590it to find libraries and programs with nonstandard names/locations.
1591
5213506e 1592Report bugs to the package provider.
1c710c3c 1593_ACEOF
5213506e 1594ac_status=$?
1c710c3c
DJ
1595fi
1596
1597if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1c710c3c 1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
1c710c3c
DJ
1603 ac_builddir=.
1604
5213506e
RW
1605case "$ac_dir" in
1606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607*)
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615esac
1616ac_abs_top_builddir=$ac_pwd
1617ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618# for backward compatibility:
1619ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1620
1621case $srcdir in
5213506e 1622 .) # We are building in place.
1c710c3c 1623 ac_srcdir=.
5213506e
RW
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1627 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1634esac
5213506e
RW
1635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1645 else
5213506e
RW
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1649 done
1650fi
1651
5213506e 1652test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1653if $ac_init_version; then
1654 cat <<\_ACEOF
5213506e
RW
1655configure
1656generated by GNU Autoconf 2.64
1c710c3c 1657
5213506e 1658Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1659This configure script is free software; the Free Software Foundation
1660gives unlimited permission to copy, distribute and modify it.
1661_ACEOF
5213506e 1662 exit
0b0dc272 1663fi
5213506e
RW
1664
1665## ------------------------ ##
1666## Autoconf initialization. ##
1667## ------------------------ ##
1668
1669# ac_fn_c_try_compile LINENO
1670# --------------------------
1671# Try to compile conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_compile ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext
1676 if { { ac_try="$ac_compile"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1695 ac_retval=0
1696else
1697 $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701fi
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 return $ac_retval
1704
1705} # ac_fn_c_try_compile
1706
1707# ac_fn_cxx_try_compile LINENO
1708# ----------------------------
1709# Try to compile conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_cxx_try_compile ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_cxx_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734else
1735 $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=1
1739fi
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1742
1743} # ac_fn_cxx_try_compile
1744
1745# ac_fn_c_try_link LINENO
1746# -----------------------
1747# Try to link conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_c_try_link ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext conftest$ac_exeext
1752 if { { ac_try="$ac_link"
1753case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest$ac_exeext && {
1771 test "$cross_compiling" = yes ||
1772 $as_test_x conftest$ac_exeext
1773 }; then :
1774 ac_retval=0
1775else
1776 $as_echo "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=1
1780fi
1781 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783 # interfere with the next link command; also delete a directory that is
1784 # left behind by Apple's compiler. We do this before executing the actions.
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 return $ac_retval
1788
1789} # ac_fn_c_try_link
1790cat >config.log <<_ACEOF
1c710c3c
DJ
1791This file contains any messages produced by compilers while
1792running configure, to aid debugging if configure makes a mistake.
1793
1794It was created by $as_me, which was
5213506e 1795generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1796
1797 $ $0 $@
1798
1799_ACEOF
5213506e 1800exec 5>>config.log
1c710c3c
DJ
1801{
1802cat <<_ASUNAME
1803## --------- ##
1804## Platform. ##
1805## --------- ##
1806
1807hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1808uname -m = `(uname -m) 2>/dev/null || echo unknown`
1809uname -r = `(uname -r) 2>/dev/null || echo unknown`
1810uname -s = `(uname -s) 2>/dev/null || echo unknown`
1811uname -v = `(uname -v) 2>/dev/null || echo unknown`
1812
1813/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1814/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1815
1816/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1817/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1818/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1819/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1820/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1821/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1822/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1823
1824_ASUNAME
1825
1826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827for as_dir in $PATH
1828do
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
5213506e
RW
1831 $as_echo "PATH: $as_dir"
1832 done
1833IFS=$as_save_IFS
1c710c3c
DJ
1834
1835} >&5
1836
1837cat >&5 <<_ACEOF
1838
1839
1840## ----------- ##
1841## Core tests. ##
1842## ----------- ##
1843
1844_ACEOF
1845
1846
1847# Keep a trace of the command line.
1848# Strip out --no-create and --no-recursion so they do not pile up.
1849# Strip out --silent because we don't want to record it for future runs.
1850# Also quote any args containing shell meta-characters.
1851# Make two passes to allow for proper duplicate-argument suppression.
1852ac_configure_args=
1853ac_configure_args0=
1854ac_configure_args1=
1c710c3c
DJ
1855ac_must_keep_next=false
1856for ac_pass in 1 2
1857do
1858 for ac_arg
1859 do
1860 case $ac_arg in
1861 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1863 | -silent | --silent | --silen | --sile | --sil)
1864 continue ;;
5213506e
RW
1865 *\'*)
1866 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1867 esac
1868 case $ac_pass in
5213506e 1869 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1870 2)
5213506e 1871 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1872 if test $ac_must_keep_next = true; then
1873 ac_must_keep_next=false # Got value, back to normal.
1874 else
1875 case $ac_arg in
1876 *=* | --config-cache | -C | -disable-* | --disable-* \
1877 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1878 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1879 | -with-* | --with-* | -without-* | --without-* | --x)
1880 case "$ac_configure_args0 " in
1881 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1882 esac
1883 ;;
1884 -* ) ac_must_keep_next=true ;;
1885 esac
1886 fi
5213506e 1887 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1888 ;;
1889 esac
1890 done
1891done
5213506e
RW
1892{ ac_configure_args0=; unset ac_configure_args0;}
1893{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1894
1895# When interrupted or exit'd, cleanup temporary files, and complete
1896# config.log. We remove comments because anyway the quotes in there
1897# would cause problems or look ugly.
5213506e
RW
1898# WARNING: Use '\'' to represent an apostrophe within the trap.
1899# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1900trap 'exit_status=$?
1901 # Save into config.log some information that might help in debugging.
1902 {
1903 echo
1904
1905 cat <<\_ASBOX
1906## ---------------- ##
1907## Cache variables. ##
1908## ---------------- ##
1909_ASBOX
1910 echo
1911 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1912(
1913 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1914 eval ac_val=\$$ac_var
1915 case $ac_val in #(
1916 *${as_nl}*)
1917 case $ac_var in #(
1918 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1919$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1920 esac
1921 case $ac_var in #(
1922 _ | IFS | as_nl) ;; #(
1923 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1924 *) { eval $ac_var=; unset $ac_var;} ;;
1925 esac ;;
1926 esac
1927 done
1c710c3c 1928 (set) 2>&1 |
5213506e
RW
1929 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1930 *${as_nl}ac_space=\ *)
1c710c3c 1931 sed -n \
5213506e
RW
1932 "s/'\''/'\''\\\\'\'''\''/g;
1933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1934 ;; #(
1c710c3c 1935 *)
5213506e 1936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 1937 ;;
5213506e
RW
1938 esac |
1939 sort
1940)
1c710c3c
DJ
1941 echo
1942
1943 cat <<\_ASBOX
1944## ----------------- ##
1945## Output variables. ##
1946## ----------------- ##
1947_ASBOX
1948 echo
1949 for ac_var in $ac_subst_vars
1950 do
5213506e
RW
1951 eval ac_val=\$$ac_var
1952 case $ac_val in
1953 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954 esac
1955 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1956 done | sort
1957 echo
1958
1959 if test -n "$ac_subst_files"; then
1960 cat <<\_ASBOX
5213506e
RW
1961## ------------------- ##
1962## File substitutions. ##
1963## ------------------- ##
1c710c3c
DJ
1964_ASBOX
1965 echo
1966 for ac_var in $ac_subst_files
1967 do
5213506e
RW
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1973 done | sort
1974 echo
1975 fi
1976
1977 if test -s confdefs.h; then
1978 cat <<\_ASBOX
1979## ----------- ##
1980## confdefs.h. ##
1981## ----------- ##
1982_ASBOX
1983 echo
5213506e 1984 cat confdefs.h
1c710c3c
DJ
1985 echo
1986 fi
1987 test "$ac_signal" != 0 &&
5213506e
RW
1988 $as_echo "$as_me: caught signal $ac_signal"
1989 $as_echo "$as_me: exit $exit_status"
1c710c3c 1990 } >&5
5213506e
RW
1991 rm -f core *.core core.conftest.* &&
1992 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1993 exit $exit_status
5213506e 1994' 0
1c710c3c 1995for ac_signal in 1 2 13 15; do
5213506e 1996 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
1997done
1998ac_signal=0
1999
2000# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2001rm -f -r conftest* confdefs.h
2002
2003$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2004
2005# Predefined preprocessor variables.
2006
2007cat >>confdefs.h <<_ACEOF
2008#define PACKAGE_NAME "$PACKAGE_NAME"
2009_ACEOF
2010
1c710c3c
DJ
2011cat >>confdefs.h <<_ACEOF
2012#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2013_ACEOF
2014
1c710c3c
DJ
2015cat >>confdefs.h <<_ACEOF
2016#define PACKAGE_VERSION "$PACKAGE_VERSION"
2017_ACEOF
0b0dc272 2018
1c710c3c
DJ
2019cat >>confdefs.h <<_ACEOF
2020#define PACKAGE_STRING "$PACKAGE_STRING"
2021_ACEOF
2022
1c710c3c
DJ
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2025_ACEOF
2026
5213506e
RW
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_URL "$PACKAGE_URL"
2029_ACEOF
2030
1c710c3c
DJ
2031
2032# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2033# Prefer an explicitly selected file to automatically selected ones.
2034ac_site_file1=NONE
2035ac_site_file2=NONE
2036if test -n "$CONFIG_SITE"; then
2037 ac_site_file1=$CONFIG_SITE
2038elif test "x$prefix" != xNONE; then
2039 ac_site_file1=$prefix/share/config.site
2040 ac_site_file2=$prefix/etc/config.site
2041else
2042 ac_site_file1=$ac_default_prefix/share/config.site
2043 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2044fi
5213506e
RW
2045for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2046do
2047 test "x$ac_site_file" = xNONE && continue
671aa708 2048 if test -r "$ac_site_file"; then
5213506e
RW
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2050$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2051 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2052 . "$ac_site_file"
2053 fi
2054done
2055
2056if test -r "$cache_file"; then
1c710c3c
DJ
2057 # Some versions of bash will fail to source /dev/null (special
2058 # files actually), so we avoid doing that.
2059 if test -f "$cache_file"; then
5213506e
RW
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2061$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2062 case $cache_file in
5213506e
RW
2063 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2064 *) . "./$cache_file";;
1c710c3c
DJ
2065 esac
2066 fi
671aa708 2067else
5213506e
RW
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2069$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2070 >$cache_file
2071fi
2072
2073# Check that the precious variables saved in the cache have kept the same
2074# value.
2075ac_cache_corrupted=false
5213506e 2076for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2077 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2078 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2079 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2080 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2081 case $ac_old_set,$ac_new_set in
2082 set,)
5213506e
RW
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2084$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2085 ac_cache_corrupted=: ;;
2086 ,set)
5213506e
RW
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2088$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2089 ac_cache_corrupted=: ;;
2090 ,);;
2091 *)
2092 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2093 # differences in whitespace do not lead to failure.
2094 ac_old_val_w=`echo x $ac_old_val`
2095 ac_new_val_w=`echo x $ac_new_val`
2096 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2098$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2099 ac_cache_corrupted=:
2100 else
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2102$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2103 eval $ac_var=\$ac_old_val
2104 fi
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2106$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2108$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2109 fi;;
2110 esac
2111 # Pass precious variables to config.status.
2112 if test "$ac_new_set" = set; then
2113 case $ac_new_val in
5213506e 2114 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2115 *) ac_arg=$ac_var=$ac_new_val ;;
2116 esac
2117 case " $ac_configure_args " in
2118 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2119 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2120 esac
2121 fi
2122done
2123if $ac_cache_corrupted; then
5213506e
RW
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2127$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2128 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2129fi
5213506e
RW
2130## -------------------- ##
2131## Main body of script. ##
2132## -------------------- ##
671aa708 2133
2aeb72e9
DD
2134ac_ext=c
2135ac_cpp='$CPP $CPPFLAGS'
2136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139
1c710c3c
DJ
2140
2141
2142
1c710c3c
DJ
2143
2144
0115d4a3 2145
1c710c3c 2146
ad33ff57
RW
2147
2148progname=$0
2149# if PWD already has a value, it is probably wrong.
2150if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2151
2152# Export original configure arguments for use by sub-configures.
2153# Quote arguments with shell meta charatcers.
2154TOPLEVEL_CONFIGURE_ARGUMENTS=
2155set -- "$progname" "$@"
2156for ac_arg
2157do
2158 case "$ac_arg" in
2159 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2160 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2161 # if the argument is of the form -foo=baz, quote the baz part only
2162 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2163 *) ;;
2164 esac
2165 # Add the quoted argument to the list.
2166 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2167done
2168if test "$silent" = yes; then
2169 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2170fi
2171# Remove the initial space we just introduced and, as these will be
2172# expanded by make, quote '$'.
2173TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2174
1c710c3c
DJ
2175
2176# Find the build, host, and target systems.
671aa708 2177ac_aux_dir=
5213506e
RW
2178for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2179 for ac_t in install-sh install.sh shtool; do
2180 if test -f "$ac_dir/$ac_t"; then
2181 ac_aux_dir=$ac_dir
2182 ac_install_sh="$ac_aux_dir/$ac_t -c"
2183 break 2
2184 fi
2185 done
671aa708
NN
2186done
2187if test -z "$ac_aux_dir"; then
5213506e 2188 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2189fi
5213506e
RW
2190
2191# These three variables are undocumented and unsupported,
2192# and are intended to be withdrawn in a future Autoconf release.
2193# They can cause serious problems if a builder's source tree is in a directory
2194# whose full name contains unusual characters.
2195ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2196ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2197ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2198
671aa708 2199
1c710c3c 2200# Make sure we can run config.sub.
5213506e
RW
2201$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2202 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2203
2204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2205$as_echo_n "checking build system type... " >&6; }
2206if test "${ac_cv_build+set}" = set; then :
2207 $as_echo_n "(cached) " >&6
2208else
2209 ac_build_alias=$build_alias
2210test "x$ac_build_alias" = x &&
2211 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2212test "x$ac_build_alias" = x &&
2213 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2214ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2215 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2216
2217fi
2218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2219$as_echo "$ac_cv_build" >&6; }
2220case $ac_cv_build in
2221*-*-*) ;;
2222*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2223esac
1c710c3c 2224build=$ac_cv_build
5213506e
RW
2225ac_save_IFS=$IFS; IFS='-'
2226set x $ac_cv_build
2227shift
2228build_cpu=$1
2229build_vendor=$2
2230shift; shift
2231# Remember, the first character of IFS is used to create $*,
2232# except with old shells:
2233build_os=$*
2234IFS=$ac_save_IFS
2235case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2236
671aa708 2237
1c710c3c
DJ
2238 case ${build_alias} in
2239 "") build_noncanonical=${build} ;;
2240 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2241esac
2242
2243
af71363e 2244
1c710c3c
DJ
2245 case ${host_alias} in
2246 "") host_noncanonical=${build_noncanonical} ;;
2247 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2248esac
2249
af71363e 2250
1c710c3c
DJ
2251
2252 case ${target_alias} in
2253 "") target_noncanonical=${host_noncanonical} ;;
2254 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2255esac
2256
af71363e 2257
1c710c3c
DJ
2258
2259
2260test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2261 test "$program_prefix$program_suffix$program_transform_name" = \
2262 NONENONEs,x,x, &&
1c710c3c 2263 program_transform_name=s,y,y,
af71363e 2264
5213506e
RW
2265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2266$as_echo_n "checking host system type... " >&6; }
2267if test "${ac_cv_host+set}" = set; then :
2268 $as_echo_n "(cached) " >&6
af71363e 2269else
5213506e
RW
2270 if test "x$host_alias" = x; then
2271 ac_cv_host=$ac_cv_build
2272else
2273 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2274 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2275fi
1c710c3c 2276
af71363e 2277fi
5213506e
RW
2278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2279$as_echo "$ac_cv_host" >&6; }
2280case $ac_cv_host in
2281*-*-*) ;;
2282*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2283esac
1c710c3c 2284host=$ac_cv_host
5213506e
RW
2285ac_save_IFS=$IFS; IFS='-'
2286set x $ac_cv_host
2287shift
2288host_cpu=$1
2289host_vendor=$2
2290shift; shift
2291# Remember, the first character of IFS is used to create $*,
2292# except with old shells:
2293host_os=$*
2294IFS=$ac_save_IFS
2295case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2296
2297
5213506e
RW
2298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2299$as_echo_n "checking target system type... " >&6; }
2300if test "${ac_cv_target+set}" = set; then :
2301 $as_echo_n "(cached) " >&6
1c710c3c 2302else
5213506e
RW
2303 if test "x$target_alias" = x; then
2304 ac_cv_target=$ac_cv_host
2305else
2306 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2307 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2308fi
1c710c3c
DJ
2309
2310fi
5213506e
RW
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2312$as_echo "$ac_cv_target" >&6; }
2313case $ac_cv_target in
2314*-*-*) ;;
2315*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2316esac
1c710c3c 2317target=$ac_cv_target
5213506e
RW
2318ac_save_IFS=$IFS; IFS='-'
2319set x $ac_cv_target
2320shift
2321target_cpu=$1
2322target_vendor=$2
2323shift; shift
2324# Remember, the first character of IFS is used to create $*,
2325# except with old shells:
2326target_os=$*
2327IFS=$ac_save_IFS
2328case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2329
2330
2331# The aliases save the names the user supplied, while $host etc.
2332# will get canonicalized.
2333test -n "$target_alias" &&
2334 test "$program_prefix$program_suffix$program_transform_name" = \
2335 NONENONEs,x,x, &&
2336 program_prefix=${target_alias}-
5213506e 2337
671aa708 2338test "$program_prefix" != NONE &&
5213506e 2339 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2340# Use a double $ so make ignores it.
2341test "$program_suffix" != NONE &&
5213506e
RW
2342 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2343# Double any \ or $.
1c710c3c 2344# By default was `s,x,x', remove it if useless.
5213506e
RW
2345ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2346program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2347
671aa708
NN
2348
2349
775956d0
NN
2350# Get 'install' or 'install-sh' and its variants.
2351# Find a good install program. We prefer a C program (faster),
2352# so one script is as good as another. But avoid the broken or
2353# incompatible versions:
2354# SysV /etc/install, /usr/sbin/install
2355# SunOS /usr/etc/install
2356# IRIX /sbin/install
2357# AIX /bin/install
1c710c3c 2358# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2359# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2360# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2361# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2362# OS/2's system install, which has a completely different semantic
775956d0 2363# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2364# Reject install programs that cannot install multiple files.
5213506e
RW
2365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2366$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2367if test -z "$INSTALL"; then
5213506e
RW
2368if test "${ac_cv_path_install+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2370else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372for as_dir in $PATH
2373do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
5213506e
RW
2376 # Account for people who put trailing slashes in PATH elements.
2377case $as_dir/ in #((
2378 ./ | .// | /[cC]/* | \
1c710c3c 2379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2380 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2381 /usr/ucb/* ) ;;
2382 *)
2383 # OSF1 and SCO ODT 3.0 have their own names for install.
2384 # Don't use installbsd from OSF since it installs stuff as root
2385 # by default.
2386 for ac_prog in ginstall scoinst install; do
2387 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2388 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2389 if test $ac_prog = install &&
1c710c3c 2390 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2391 # AIX install. It has an incompatible calling convention.
2392 :
1c710c3c
DJ
2393 elif test $ac_prog = install &&
2394 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2395 # program-specific install script used by HP pwplus--don't use.
2396 :
775956d0 2397 else
38d24731
RW
2398 rm -rf conftest.one conftest.two conftest.dir
2399 echo one > conftest.one
2400 echo two > conftest.two
2401 mkdir conftest.dir
2402 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2403 test -s conftest.one && test -s conftest.two &&
2404 test -s conftest.dir/conftest.one &&
2405 test -s conftest.dir/conftest.two
2406 then
2407 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2408 break 3
2409 fi
775956d0
NN
2410 fi
2411 fi
2412 done
1c710c3c
DJ
2413 done
2414 ;;
2415esac
5213506e
RW
2416
2417 done
2418IFS=$as_save_IFS
1c710c3c 2419
38d24731 2420rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2421
2422fi
2423 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2424 INSTALL=$ac_cv_path_install
775956d0 2425 else
38d24731
RW
2426 # As a last resort, use the slow shell script. Don't cache a
2427 # value for INSTALL within a source directory, because that will
775956d0 2428 # break other packages using the cache if that directory is
38d24731 2429 # removed, or if the value is a relative name.
1c710c3c 2430 INSTALL=$ac_install_sh
775956d0
NN
2431 fi
2432fi
5213506e
RW
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2434$as_echo "$INSTALL" >&6; }
775956d0
NN
2435
2436# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2437# It thinks the first close brace ends the variable substitution.
2438test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2439
1c710c3c 2440test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2441
2442test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2443
5213506e
RW
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2445$as_echo_n "checking whether ln works... " >&6; }
2446if test "${acx_cv_prog_LN+set}" = set; then :
2447 $as_echo_n "(cached) " >&6
ad6717df
PB
2448else
2449 rm -f conftestdata_t
2450echo >conftestdata_f
2451if ln conftestdata_f conftestdata_t 2>/dev/null
2452then
2453 acx_cv_prog_LN=ln
2454else
2455 acx_cv_prog_LN=no
2456fi
2457rm -f conftestdata_f conftestdata_t
2458
2459fi
2460if test $acx_cv_prog_LN = no; then
2461 LN="cp"
5213506e
RW
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2463$as_echo "no, using $LN" >&6; }
ad6717df
PB
2464else
2465 LN="$acx_cv_prog_LN"
5213506e
RW
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2467$as_echo "yes" >&6; }
ad6717df
PB
2468fi
2469
5213506e
RW
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2471$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2472LN_S=$as_ln_s
2473if test "$LN_S" = "ln -s"; then
5213506e
RW
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2475$as_echo "yes" >&6; }
fb0103e5 2476else
5213506e
RW
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2478$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2479fi
2480
87264276
PB
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2482$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2483if test "${ac_cv_path_SED+set}" = set; then :
2484 $as_echo_n "(cached) " >&6
2485else
2486 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2487 for ac_i in 1 2 3 4 5 6 7; do
2488 ac_script="$ac_script$as_nl$ac_script"
2489 done
2490 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2491 { ac_script=; unset ac_script;}
2492 if test -z "$SED"; then
2493 ac_path_SED_found=false
2494 # Loop through the user's path and test for each of PROGNAME-LIST
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_prog in sed gsed; do
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2503 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2504# Check for GNU ac_path_SED and select it if it is found.
2505 # Check for GNU $ac_path_SED
2506case `"$ac_path_SED" --version 2>&1` in
2507*GNU*)
2508 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2509*)
2510 ac_count=0
2511 $as_echo_n 0123456789 >"conftest.in"
2512 while :
2513 do
2514 cat "conftest.in" "conftest.in" >"conftest.tmp"
2515 mv "conftest.tmp" "conftest.in"
2516 cp "conftest.in" "conftest.nl"
2517 $as_echo '' >> "conftest.nl"
2518 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2520 as_fn_arith $ac_count + 1 && ac_count=$as_val
2521 if test $ac_count -gt ${ac_path_SED_max-0}; then
2522 # Best one so far, save it but keep looking for a better one
2523 ac_cv_path_SED="$ac_path_SED"
2524 ac_path_SED_max=$ac_count
2525 fi
2526 # 10*(2^10) chars as input seems more than enough
2527 test $ac_count -gt 10 && break
2528 done
2529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2530esac
2531
2532 $ac_path_SED_found && break 3
2533 done
2534 done
2535 done
2536IFS=$as_save_IFS
2537 if test -z "$ac_cv_path_SED"; then
2538 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2539 fi
2540else
2541 ac_cv_path_SED=$SED
2542fi
2543
2544fi
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2546$as_echo "$ac_cv_path_SED" >&6; }
2547 SED="$ac_cv_path_SED"
2548 rm -f conftest.sed
2549
2550for ac_prog in gawk mawk nawk awk
2551do
2552 # Extract the first word of "$ac_prog", so it can be a program name with args.
2553set dummy $ac_prog; ac_word=$2
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555$as_echo_n "checking for $ac_word... " >&6; }
2556if test "${ac_cv_prog_AWK+set}" = set; then :
2557 $as_echo_n "(cached) " >&6
2558else
2559 if test -n "$AWK"; then
2560 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2561else
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_AWK="$ac_prog"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573done
2574 done
2575IFS=$as_save_IFS
2576
2577fi
2578fi
2579AWK=$ac_cv_prog_AWK
2580if test -n "$AWK"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2582$as_echo "$AWK" >&6; }
2583else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585$as_echo "no" >&6; }
2586fi
2587
2588
2589 test -n "$AWK" && break
2590done
2591
775956d0 2592
79c06341 2593### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
2594### If we are on Windows, search for the shell. This will permit people
2595### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2596### without also having to set CONFIG_SHELL. This code will work when
2597### using bash, which sets OSTYPE.
2598case "${OSTYPE}" in
2599*win32*)
671aa708
NN
2600 if test x${CONFIG_SHELL} = x ; then
2601 if test ! -f /bin/sh ; then
2602 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
2603 CONFIG_SHELL=${SHELL}
2604 export CONFIG_SHELL
2605 else
2606 for prog in sh sh.exe bash bash.exe; do
2607 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2608 for dir in $PATH; do
2609 test -z "$dir" && dir=.
2610 if test -f $dir/$prog; then
2611 CONFIG_SHELL=$dir/$prog
2612 export CONFIG_SHELL
2613 break
2614 fi
2615 done
2616 IFS="$save_ifs"
2617 test -n "${CONFIG_SHELL}" && break
2618 done
2619 fi
2620 fi
2621 fi
2622 ;;
2623esac
2624
2625config_shell=${CONFIG_SHELL-/bin/sh}
2626
671aa708 2627moveifchange=${srcdir}/move-if-change
79c06341 2628
ee6a22df
L
2629srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2630
2631# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2632# a relative path.
2633if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2634 INSTALL="${srcpwd}/install-sh -c"
2635fi
2636
671aa708
NN
2637# Set srcdir to "." if that's what it is.
2638# This is important for multilib support.
2639pwd=`${PWDCMD-pwd}`
671aa708
NN
2640if test "${pwd}" = "${srcpwd}" ; then
2641 srcdir=.
79c06341
JL
2642fi
2643
671aa708 2644topsrcdir=$srcpwd
5d4a5ee6 2645
671aa708 2646extra_host_args=
afabd8e6 2647
671aa708
NN
2648### To add a new directory to the tree, first choose whether it is a target
2649### or a host dependent tool. Then put it into the appropriate list
2650### (library or tools, host or target), doing a dependency sort.
79c06341 2651
1c710c3c 2652# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2653# configdirs, or target_configdirs; see the serialization section below.
79c06341 2654
1c710c3c
DJ
2655# Dependency sorting is only needed when *configuration* must be done in
2656# a particular order. In all cases a dependency should be specified in
671aa708 2657# the Makefile, whether or not it's implicitly specified here.
79c06341 2658
671aa708
NN
2659# Double entries in build_configdirs, configdirs, or target_configdirs may
2660# cause circular dependencies and break everything horribly.
79c06341 2661
23f6b2f9
PB
2662# these library is used by various programs built for the build
2663# environment
2664#
2665build_libs="build-libiberty"
2666
2667# these tools are built for the build environment
71b5d516 2668build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2669
671aa708
NN
2670# these libraries are used by various programs built for the host environment
2671#
f61428ed 2672host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
671aa708 2673
671aa708
NN
2674# these tools are built for the host environment
2675# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2676# know that we are building the simulator.
2677# binutils, gas and ld appear in that order because it makes sense to run
2678# "make check" in that particular order.
38e3d868 2679# If --enable-gold is used, "gold" may replace "ld".
8c32c9f0 2680host_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
2681
2682# libgcj represents the runtime libraries only used by gcj.
2683libgcj="target-libffi \
671aa708
NN
2684 target-zlib \
2685 target-qthreads \
2686 target-libjava"
2687
2688# these libraries are built for the target environment, and are built after
2689# the host libraries and the host tools (which may be a cross compiler)
2690#
291f172e
DJ
2691target_libraries="target-libgcc \
2692 target-libiberty \
671aa708
NN
2693 target-libgloss \
2694 target-newlib \
6d3b5aea 2695 target-libgomp \
cb543528 2696 target-libstdc++-v3 \
6de9cd9a 2697 target-libmudflap \
77008252 2698 target-libssp \
1ec601bf 2699 target-libquadmath \
6de9cd9a 2700 target-libgfortran \
7cd0cf9c 2701 target-boehm-gc \
77d187bc 2702 ${libgcj} \
d9cdb878 2703 target-libobjc \
6d3b5aea 2704 target-libada"
671aa708 2705
4dbda6f0
NN
2706# these tools are built using the target libraries, and are intended to
2707# run only in the target environment
671aa708 2708#
4dbda6f0 2709# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
2710# list belongs in this list. those programs are also very likely
2711# candidates for the "native_only" list which follows
2712#
97286f7f 2713target_tools="target-examples target-groff target-gperf target-rda"
79c06341 2714
671aa708 2715################################################################################
79c06341 2716
671aa708
NN
2717## All tools belong in one of the four categories, and are assigned above
2718## We assign ${configdirs} this way to remove all embedded newlines. This
2719## is important because configure will choke if they ever get through.
2720## ${configdirs} is directories we build using the host tools.
2721## ${target_configdirs} is directories we build using the target tools.
671aa708 2722configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2723target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2724build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2725
ac9e6043
RW
2726
2727
671aa708 2728################################################################################
79c06341 2729
671aa708 2730srcname="gnu development package"
79c06341 2731
671aa708
NN
2732# This gets set non-empty for some net releases of packages.
2733appdirs=""
79c06341 2734
671aa708
NN
2735# Define is_cross_compiler to save on calls to 'test'.
2736is_cross_compiler=
2737if test x"${host}" = x"${target}" ; then
2738 is_cross_compiler=no
79c06341 2739else
671aa708 2740 is_cross_compiler=yes
1c710c3c 2741fi
79c06341 2742
b4acb5ef 2743# Find the build and target subdir names.
8b87bb96 2744
2e9e6f68
DJ
2745# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2746# have matching libraries, they should use host libraries: Makefile.tpl
2747# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2748# However, they still use the build modules, because the corresponding
2749# host modules (e.g. bison) are only built for the host when bootstrap
2750# finishes. So:
2751# - build_subdir is where we find build modules, and never changes.
2752# - build_libsubdir is where we find build libraries, and can be overridden.
2753
2754# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2755build_subdir="build-${build_noncanonical}"
1c710c3c 2756
5213506e
RW
2757# Check whether --with-build-libsubdir was given.
2758if test "${with_build_libsubdir+set}" = set; then :
2759 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2760else
2761 build_libsubdir="$build_subdir"
5213506e
RW
2762fi
2763
215c351a
PB
2764# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2765if ( test $srcdir = . && test -d gcc ) \
2766 || test -d $srcdir/../host-${host_noncanonical}; then
2767 host_subdir="host-${host_noncanonical}"
2768else
2769 host_subdir=.
2770fi
8b87bb96
NN
2771# No prefix.
2772target_subdir=${target_noncanonical}
1c710c3c 2773
0db770bd
RW
2774# Be sure to cover against remnants of an in-tree build.
2775if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2776 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2777Use a pristine source tree when building in a separate tree" "$LINENO" 5
2778fi
79c06341 2779
671aa708
NN
2780# Skipdirs are removed silently.
2781skipdirs=
2782# Noconfigdirs are removed loudly.
2783noconfigdirs=""
79c06341 2784
671aa708
NN
2785use_gnu_ld=
2786# Make sure we don't let GNU ld be added if we didn't want it.
2787if test x$with_gnu_ld = xno ; then
2788 use_gnu_ld=no
5afab7ad 2789 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2790fi
2791
671aa708
NN
2792use_gnu_as=
2793# Make sure we don't let GNU as be added if we didn't want it.
2794if test x$with_gnu_as = xno ; then
2795 use_gnu_as=no
2796 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2797fi
2798
d7f09764
DN
2799use_included_zlib=
2800# Make sure we don't let ZLIB be added if we didn't want it.
2801if test x$with_system_zlib = xyes ; then
2802 use_included_zlib=no
2803 noconfigdirs="$noconfigdirs zlib"
2804fi
2805
1c710c3c 2806# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2807# it's not even worth trying to configure, much less build, that tool.
79c06341 2808
671aa708
NN
2809case ${with_x} in
2810 yes | "") ;; # the default value for this tree is that X11 is available
2811 no)
b4f96efe 2812 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2813 # We won't be able to build gdbtk without X.
1c710c3c 2814 enable_gdbtk=no
671aa708
NN
2815 ;;
2816 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2817esac
79c06341 2818
671aa708 2819# Some tools are only suitable for building in a "native" situation.
1c710c3c 2820# Remove these if host!=target.
9e299237 2821native_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 2822
671aa708
NN
2823# Similarly, some are only suitable for cross toolchains.
2824# Remove these if host=target.
2825cross_only="target-libgloss target-newlib target-opcodes"
2826
2827case $is_cross_compiler in
2828 no) skipdirs="${skipdirs} ${cross_only}" ;;
2829 yes) skipdirs="${skipdirs} ${native_only}" ;;
2830esac
79c06341 2831
671aa708
NN
2832# If both --with-headers and --with-libs are specified, default to
2833# --without-newlib.
ee6a22df
L
2834if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2835 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2836 if test x"${with_newlib}" = x ; then
2837 with_newlib=no
2838 fi
79c06341
JL
2839fi
2840
671aa708
NN
2841# Recognize --with-newlib/--without-newlib.
2842case ${with_newlib} in
2843 no) skipdirs="${skipdirs} target-newlib" ;;
2844 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2845esac
79c06341 2846
5afab7ad 2847# Handle --enable-gold.
38e3d868
RM
2848# --enable-gold Build only gold
2849# --disable-gold [default] Build only ld
2850# --enable-gold=both Build both gold and ld, ld is default
2851# --enable-gold=both/ld Same
2852# --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
5afab7ad 2853
5213506e
RW
2854# Check whether --enable-gold was given.
2855if test "${enable_gold+set}" = set; then :
2856 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2857else
2858 ENABLE_GOLD=no
5213506e
RW
2859fi
2860
38e3d868
RM
2861 case "${ENABLE_GOLD}" in
2862 yes|both|both/gold|both/ld)
2863 # Check for ELF target.
2864 is_elf=no
2865 case "${target}" in
2866 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2867 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2868 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2869 case "${target}" in
2870 *-*-linux*aout* | *-*-linux*oldld*)
2871 ;;
2872 *)
2873 is_elf=yes
2874 ;;
2875 esac
2876 esac
2877
2878 if test "$is_elf" = "yes"; then
2879 # Check for target supported by gold.
5afab7ad 2880 case "${target}" in
38e3d868
RM
2881 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2882 case "${ENABLE_GOLD}" in
2883 both*)
2884 configdirs="$configdirs gold"
2885 ;;
2886 *)
86dfbd58 2887 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
38e3d868
RM
2888 ;;
2889 esac
2890 ENABLE_GOLD=yes
5afab7ad
ILT
2891 ;;
2892 esac
38e3d868
RM
2893 fi
2894 ;;
2895 no)
2896 ;;
2897 *)
2898 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2899 ;;
5afab7ad
ILT
2900 esac
2901
671aa708 2902# Configure extra directories which are host specific
79c06341 2903
671aa708
NN
2904case "${host}" in
2905 *-cygwin*)
2906 configdirs="$configdirs libtermcap" ;;
2907esac
79c06341 2908
4fab7234
HPN
2909# A target can indicate whether a language isn't supported for some reason.
2910# Only spaces may be used in this macro; not newlines or tabs.
2911unsupported_languages=
2912
1c710c3c 2913# Remove more programs from consideration, based on the host or
671aa708
NN
2914# target this usually means that a port of the program doesn't
2915# exist yet.
ec8d6ddc 2916
671aa708
NN
2917case "${host}" in
2918 hppa*64*-*-*)
2919 noconfigdirs="$noconfigdirs byacc"
2920 ;;
f2a0e225 2921 i[3456789]86-*-vsta)
b4f96efe 2922 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2923 ;;
f2a0e225 2924 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2925 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2926 ;;
95af8923
KT
2927 x86_64-*-mingw*)
2928 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2929 ;;
f2a0e225 2930 i[3456789]86-*-mingw32*)
b4f96efe 2931 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2932 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2933 ;;
f2a0e225 2934 i[3456789]86-*-beos*)
b4f96efe 2935 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2936 ;;
671aa708 2937 *-*-cygwin*)
a22c2d8d 2938 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2939 ;;
2940 *-*-netbsd*)
a22c2d8d 2941 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2942 ;;
2943 ppc*-*-pe)
b4f96efe 2944 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2945 ;;
2946 powerpc-*-beos*)
b4f96efe 2947 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2948 ;;
671aa708 2949esac
ec8d6ddc 2950
6de9cd9a 2951
5213506e
RW
2952# Check whether --enable-libada was given.
2953if test "${enable_libada+set}" = set; then :
2954 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
2955else
2956 ENABLE_LIBADA=yes
5213506e
RW
2957fi
2958
d9cdb878 2959if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2960 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2961fi
2962
5213506e
RW
2963# Check whether --enable-libssp was given.
2964if test "${enable_libssp+set}" = set; then :
2965 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
2966else
2967 ENABLE_LIBSSP=yes
5213506e
RW
2968fi
2969
ef0087a7 2970
671aa708
NN
2971# Save it here so that, even in case of --enable-libgcj, if the Java
2972# front-end isn't enabled, we still get libgcj disabled.
2973libgcj_saved=$libgcj
2974case $enable_libgcj in
2975yes)
2976 # If we reset it here, it won't get added to noconfigdirs in the
2977 # target-specific build rules, so it will be forcibly enabled
2978 # (unless the Java language itself isn't enabled).
2979 libgcj=
2980 ;;
2981no)
2982 # Make sure we get it printed in the list of not supported target libs.
2983 noconfigdirs="$noconfigdirs ${libgcj}"
2984 ;;
2985esac
ec8d6ddc 2986
6de9cd9a 2987
27079765
AH
2988# Disable libmudflap on some systems.
2989if test x$enable_libmudflap = x ; then
dfcada9a 2990 case "${target}" in
416ac4d4 2991 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 2992 # Enable libmudflap by default in GNU and friends.
dfcada9a 2993 ;;
a3e8d8b4
LR
2994 *-*-freebsd*)
2995 # Enable libmudflap by default in FreeBSD.
2996 ;;
dfcada9a
MM
2997 *)
2998 # Disable it by default everywhere else.
2999 noconfigdirs="$noconfigdirs target-libmudflap"
3000 ;;
3001 esac
27079765 3002fi
6de9cd9a 3003
27079765
AH
3004# Disable libgomp on non POSIX hosted systems.
3005if test x$enable_libgomp = x ; then
953ff289
DN
3006 # Enable libgomp by default on hosted POSIX systems.
3007 case "${target}" in
416ac4d4 3008 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
3009 ;;
3010 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3011 ;;
04879af3 3012 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 3013 ;;
cac90078 3014 *-*-darwin* | *-*-aix*)
953ff289
DN
3015 ;;
3016 *)
3017 noconfigdirs="$noconfigdirs target-libgomp"
3018 ;;
3019 esac
27079765 3020fi
953ff289 3021
c03353e2
RIL
3022# Default libgloss CPU subdirectory.
3023libgloss_dir="$target_cpu"
6de9cd9a 3024
671aa708
NN
3025case "${target}" in
3026 *-*-chorusos)
cb253473 3027 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3028 ;;
75eeae1a 3029 powerpc-*-darwin*)
e1514c3f 3030 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3031 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3032 ;;
354ebf88
RW
3033 i[3456789]86-*-darwin*)
3034 noconfigdirs="$noconfigdirs ld gprof"
3035 noconfigdirs="$noconfigdirs sim target-rda"
3036 ;;
3037 x86_64-*-darwin[912]*)
0db3a858
TG
3038 noconfigdirs="$noconfigdirs ld gas gprof"
3039 noconfigdirs="$noconfigdirs sim target-rda"
3040 ;;
42c1cd8a
AT
3041 *-*-darwin*)
3042 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3043 noconfigdirs="$noconfigdirs sim target-rda"
3044 noconfigdirs="$noconfigdirs ${libgcj}"
3045 ;;
671aa708 3046 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 3047 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3048 ;;
c3f84f61 3049 *-*-freebsd*)
6de9cd9a
DN
3050 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3051 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3052 && test -f /usr/local/include/gmp.h; then
3053 with_gmp=/usr/local
3054 fi
3055
3056 # Skip some stuff that's unsupported on some FreeBSD configurations.
3057 case "${target}" in
3058 i*86-*-*) ;;
3059 alpha*-*-*) ;;
f3f623ae 3060 x86_64-*-*) ;;
6de9cd9a 3061 *)
cb253473 3062 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
3063 ;;
3064 esac
3065 ;;
ef4e7569
US
3066 *-*-kaos*)
3067 # Remove unsupported stuff on all kaOS configurations.
cb253473 3068 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
3069 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3070 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3071 noconfigdirs="$noconfigdirs target-libgloss"
3072 ;;
671aa708
NN
3073 *-*-netbsd*)
3074 # Skip some stuff on all NetBSD configurations.
3075 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3076
3077 # Skip some stuff that's unsupported on some NetBSD configurations.
3078 case "${target}" in
3079 i*86-*-netbsdelf*) ;;
0590b963 3080 arm*-*-netbsdelf*) ;;
671aa708 3081 *)
cb253473 3082 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3083 ;;
3084 esac
3085 ;;
61fec9ff 3086 *-*-netware*)
cb253473 3087 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
3088 ;;
3089 *-*-rtems*)
e4522f78 3090 skipdirs="${skipdirs} target-libiberty"
cb253473 3091 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3092 ;;
a8ba31f2
EC
3093 # The tpf target doesn't support gdb yet.
3094 *-*-tpf*)
cb253473 3095 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 3096 ;;
5785c0ed 3097 *-*-uclinux*)
cb253473 3098 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 3099 ;;
671aa708 3100 *-*-vxworks*)
cb253473 3101 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
3102 ;;
3103 alpha*-dec-osf*)
3104 # ld works, but does not support shared libraries.
3105 # newlib is not 64 bit ready. I'm not sure about fileutils.
3106 # gas doesn't generate exception information.
3107 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3108 ;;
3109 alpha*-*-*vms*)
8406cb62 3110 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708
NN
3111 ;;
3112 alpha*-*-linux*)
3113 # newlib is not 64 bit ready
3114 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3115 ;;
671aa708
NN
3116 alpha*-*-*)
3117 # newlib is not 64 bit ready
cb253473 3118 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3119 ;;
33952f6f 3120 am33_2.0-*-linux*)
cb253473 3121 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 3122 ;;
671aa708 3123 sh-*-linux*)
cb253473 3124 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 3125 ;;
671aa708 3126 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 3127 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3128 noconfigdirs="$noconfigdirs target-examples"
3129 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 3130 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3131 noconfigdirs="$noconfigdirs expect dejagnu"
3132 # the C++ libraries don't build on top of CE's C libraries
cb543528 3133 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
3134 noconfigdirs="$noconfigdirs target-newlib"
3135 case "${host}" in
3136 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 3137 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
3138 ;;
3139 esac
c03353e2 3140 libgloss_dir=wince
671aa708
NN
3141 ;;
3142 arc-*-*)
cb253473 3143 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3144 ;;
ee6a22df 3145 arm-semi-aof )
ee6a22df 3146 ;;
671aa708 3147 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 3148 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3149 libgloss_dir=arm
671aa708 3150 ;;
b3f8d95d 3151 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 3152 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 3153 libgloss_dir=arm
671aa708 3154 ;;
077fc835 3155 arm*-*-linux-gnueabi)
c4e9bf2b 3156 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
3157 case ${with_newlib} in
3158 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3159 esac
c03353e2 3160 libgloss_dir=arm
077fc835 3161 ;;
972974fc 3162 arm*-*-symbianelf*)
cb253473 3163 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 3164 libgloss_dir=arm
972974fc 3165 ;;
671aa708 3166 arm-*-pe*)
cb253473 3167 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3168 ;;
671aa708 3169 thumb-*-coff)
cb253473 3170 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3171 ;;
3172 thumb-*-elf)
cb253473 3173 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3174 ;;
671aa708 3175 thumb-*-pe)
cb253473 3176 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3177 ;;
3178 arm-*-riscix*)
cb253473 3179 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
3180 ;;
3181 avr-*-*)
ac3949d9 3182 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 3183 ;;
6b65a26d 3184 bfin-*-*)
1c3c9f12
JZ
3185 unsupported_languages="$unsupported_languages java"
3186 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
61efc800 3187 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
3188 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3189 fi
3190 ;;
671aa708 3191 c4x-*-* | tic4x-*-*)
cb253473 3192 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3193 ;;
3194 c54x*-*-* | tic54x-*-*)
cb253473 3195 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 3196 ;;
c993ae60
SR
3197 cr16-*-*)
3198 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3199 ;;
40d64b5a 3200 cris-*-* | crisv32-*-*)
4fab7234 3201 unsupported_languages="$unsupported_languages java"
40d64b5a 3202 case "${target}" in
c2e0d3a9 3203 *-*-aout)
7f26dfa3 3204 unsupported_languages="$unsupported_languages fortran"
4fab7234 3205 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 3206 *-*-elf)
789ec619 3207 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 3208 *-*-linux*)
789ec619 3209 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 3210 *)
7f26dfa3 3211 unsupported_languages="$unsupported_languages fortran"
cb253473 3212 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 3213 esac
c03353e2 3214 libgloss_dir=cris
671aa708 3215 ;;
25b656e7 3216 crx-*-*)
cb253473 3217 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 3218 ;;
671aa708 3219 d10v-*-*)
cb253473 3220 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3221 ;;
3222 d30v-*-*)
cb253473 3223 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 3224 ;;
c03353e2
RIL
3225 ep9312-*-elf | ep9312-*-coff)
3226 libgloss_dir=arm
3227 ;;
671aa708 3228 fr30-*-elf*)
cb253473 3229 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3230 ;;
3231 frv-*-*)
cb253473 3232 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3233 ;;
55f2d967
AG
3234 moxie-*-*)
3235 noconfigdirs="$noconfigdirs ${libgcj}"
3236 noconfigdirs="$noconfigdirs gprof"
3237 ;;
671aa708 3238 h8300*-*-*)
cb253473 3239 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3240 ;;
3241 h8500-*-*)
cb253473 3242 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3243 ;;
ee6a22df 3244 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3245 ;;
671aa708
NN
3246 hppa*64*-*-linux* | parisc*64*-*-linux*)
3247 # In this case, it's because the hppa64-linux target is for
3248 # the kernel only at this point and has no libc, and thus no
3249 # headers, crt*.o, etc., all of which are needed by these.
3250 noconfigdirs="$noconfigdirs target-zlib"
3251 ;;
3e732ba0
JDA
3252 parisc*-*-linux* | hppa*-*-linux*)
3253 ;;
671aa708 3254 hppa*-*-*elf* | \
671aa708
NN
3255 hppa*-*-lites* | \
3256 hppa*-*-openbsd* | \
3257 hppa*64*-*-*)
cb253473 3258 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3259 ;;
2a332582
JDA
3260 hppa*-hp-hpux11*)
3261 noconfigdirs="$noconfigdirs ld shellutils"
3262 ;;
c03353e2
RIL
3263 hppa*-*-pro*)
3264 libgloss_dir=pa
3265 ;;
671aa708
NN
3266 hppa*-*-*)
3267 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3268 # build on HP-UX 10.20.
cb253473 3269 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 3270 ;;
fb87ad5d 3271 i960-*-*)
cb253473 3272 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 3273 ;;
671aa708
NN
3274 ia64*-*-elf*)
3275 # No gdb support yet.
b4f96efe 3276 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
3277 ;;
3278 ia64*-**-hpux*)
3279 # No gdb or ld support yet.
cb253473 3280 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 3281 ;;
52535a64
DR
3282 ia64*-*-*vms*)
3283 # No gdb or ld support yet.
3284 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3285 ;;
ee6a22df 3286 i370-*-opened*)
ee6a22df 3287 ;;
f2a0e225 3288 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 3289 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3290 libgloss_dir=i386
671aa708 3291 ;;
f2a0e225 3292 i[3456789]86-*-linux*)
671aa708
NN
3293 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3294 # not build java stuff by default.
3295 case "${target}" in
3296 *-*-*libc1*)
cb253473 3297 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
3298 esac
3299
3300 # This section makes it possible to build newlib natively on linux.
3301 # If we are using a cross compiler then don't configure newlib.
3302 if test x${is_cross_compiler} != xno ; then
3aa83176 3303 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
3304 fi
3305 noconfigdirs="$noconfigdirs target-libgloss"
3306 # If we are not using a cross compiler, do configure newlib.
3307 # Note however, that newlib will only be configured in this situation
3308 # if the --with-newlib option has been given, because otherwise
3309 # 'target-newlib' will appear in skipdirs.
3310 ;;
ef4c4300
KT
3311 i[3456789]86-w64-mingw*)
3312 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3313 ;;
3314 i[3456789]86-*-mingw*)
b91f0a41
CV
3315 target_configdirs="$target_configdirs target-winsup"
3316 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3317 ;;
95af8923 3318 x86_64-*-mingw*)
95af8923 3319 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3320 ;;
671aa708
NN
3321 *-*-cygwin*)
3322 target_configdirs="$target_configdirs target-libtermcap target-winsup"
449223af 3323 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
801e2270 3324 # always build newlib if winsup directory is present.
b91f0a41 3325 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3326 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3327 elif test -d "$srcdir/newlib"; then
b91f0a41 3328 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3329 fi
1c710c3c 3330 ;;
ee6a22df
L
3331 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3332 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 3333 ;;
f2a0e225 3334 i[3456789]86-*-pe)
cb253473 3335 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3336 ;;
f2a0e225 3337 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3338 # The linker does not yet know about weak symbols in COFF,
3339 # and is not configured to handle mixed ELF and COFF.
cb253473 3340 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 3341 ;;
f2a0e225 3342 i[3456789]86-*-sco*)
cb253473 3343 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3344 ;;
f2a0e225 3345 i[3456789]86-*-solaris2*)
671aa708
NN
3346 noconfigdirs="$noconfigdirs target-libgloss"
3347 ;;
f2a0e225 3348 i[3456789]86-*-sysv4*)
cb253473 3349 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3350 ;;
f2a0e225 3351 i[3456789]86-*-beos*)
cb253473 3352 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 3353 ;;
d1f8db0c
PB
3354 i[3456789]86-*-rdos*)
3355 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3356 ;;
fb87ad5d 3357 m32r-*-*)
cb253473 3358 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 3359 ;;
671aa708 3360 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 3361 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 3362 libgloss_dir=m68hc11
671aa708
NN
3363 ;;
3364 m68k-*-elf*)
cb253473 3365 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3366 ;;
3367 m68k-*-coff*)
cb253473 3368 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3369 ;;
c03353e2
RIL
3370 m68*-*-* | fido-*-*)
3371 libgloss_dir=m68k
3372 ;;
671aa708
NN
3373 mcore-*-pe*)
3374 # The EPOC C++ environment does not support exceptions or rtti,
3375 # and so building libstdc++-v3 tends not to always work.
3376 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3377 ;;
3378 mmix-*-*)
4fab7234 3379 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 3380 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
3381 ;;
3382 mn10200-*-*)
cb253473 3383 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3384 ;;
3385 mn10300-*-*)
cb253473 3386 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3387 ;;
ab34901f 3388 mt-*-*)
79dd769c
AH
3389 noconfigdirs="$noconfigdirs sim"
3390 ;;
671aa708
NN
3391 powerpc-*-aix*)
3392 # copied from rs6000-*-* entry
a891a473 3393 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3394 ;;
3395 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3396 target_configdirs="$target_configdirs target-winsup"
cb253473 3397 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
3398 # always build newlib.
3399 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3400 ;;
3401 # This is temporary until we can link against shared libraries
3402 powerpcle-*-solaris*)
cb253473 3403 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 3404 libgloss_dir=rs6000
671aa708
NN
3405 ;;
3406 powerpc-*-beos*)
cb253473 3407 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 3408 ;;
671aa708 3409 powerpc-*-eabi)
cb253473 3410 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3411 libgloss_dir=rs6000
ee6a22df
L
3412 ;;
3413 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 3414 libgloss_dir=rs6000
671aa708 3415 ;;
671aa708 3416 rs6000-*-lynxos*)
cb253473 3417 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
3418 ;;
3419 rs6000-*-aix*)
a891a473 3420 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3421 ;;
3422 rs6000-*-*)
cb253473 3423 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
3424 ;;
3425 m68k-apollo-*)
cb253473 3426 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 3427 ;;
ca9fe997 3428 microblaze*)
80920132 3429 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
ca9fe997 3430 ;;
d9dced13
RS
3431 mips*-sde-elf*)
3432 skipdirs="$skipdirs target-libiberty"
3433 noconfigdirs="$noconfigdirs ${libgcj}"
3434 if test x$with_newlib = xyes; then
3435 noconfigdirs="$noconfigdirs gprof"
3436 fi
3437 libgloss_dir=mips
3438 ;;
671aa708 3439 mips*-*-irix5*)
cb253473 3440 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
3441 ;;
3442 mips*-*-irix6*)
671aa708
NN
3443 # Linking libjava exceeds command-line length limits on at least
3444 # IRIX 6.2, but not on IRIX 6.5.
3445 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3446 # <oldham@codesourcery.com>
cb253473 3447 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3448 ;;
671aa708 3449 mips*-*-bsd*)
cb253473 3450 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3451 ;;
671aa708
NN
3452 mips*-*-linux*)
3453 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3454 ;;
3455 mips*-*-*)
cb253473 3456 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 3457 libgloss_dir=mips
671aa708
NN
3458 ;;
3459 romp-*-*)
cb253473 3460 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 3461 ;;
669f01d8 3462 sh-*-* | sh64-*-*)
671aa708 3463 case "${host}" in
f2a0e225
KC
3464 i[3456789]86-*-vsta) ;; # don't add gprof back in
3465 i[3456789]86-*-go32*) ;; # don't add gprof back in
3466 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
3467 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3468 esac
ea2002ba
CB
3469 case "${target}" in
3470 sh*-*-elf)
3471 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3472 *)
3473 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3474 esac
671aa708 3475 ;;
c03353e2
RIL
3476 sparclet-*-aout* | sparc86x-*-*)
3477 libgloss_dir=sparc
3478 ;;
671aa708 3479 sparc-*-elf*)
cb253473 3480 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3481 ;;
3482 sparc64-*-elf*)
cb253473 3483 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3484 libgloss_dir=sparc
671aa708
NN
3485 ;;
3486 sparclite-*-*)
cb253473 3487 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3488 libgloss_dir=sparc
671aa708
NN
3489 ;;
3490 sparc-*-sunos4*)
cb253473 3491 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3492 if test x${is_cross_compiler} != xno ; then
3493 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3494 else
3495 use_gnu_ld=no
3496 fi
3497 ;;
bba5e0ca 3498 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 3499 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 3500 ;;
671aa708
NN
3501 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3502 ;;
b42f0d7e
JM
3503 tic6x-*-*)
3504 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3505 ;;
671aa708 3506 v810-*-*)
cb253473 3507 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708 3508 ;;
223a9d64 3509 v850*-*-*)
d4c1abb3 3510 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3511 ;;
3512 vax-*-vms)
cb253473 3513 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
3514 ;;
3515 vax-*-*)
cb253473 3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3517 ;;
aa12a573 3518 xtensa*-*-*)
cb253473 3519 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 3520 ;;
671aa708 3521 ip2k-*-*)
cb253473 3522 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 3523 ;;
416ac4d4 3524 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
3525 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3526 ;;
3527 *-*-lynxos*)
cb253473 3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 3529 ;;
671aa708 3530 *-*-*)
cb253473 3531 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3532 ;;
3533esac
79c06341 3534
671aa708
NN
3535# If we aren't building newlib, then don't build libgloss, since libgloss
3536# depends upon some newlib header files.
3537case "${noconfigdirs}" in
3538 *target-libgloss*) ;;
3539 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3540esac
3541
671aa708
NN
3542# Work in distributions that contain no compiler tools, like Autoconf.
3543tentative_cc=""
3544host_makefile_frag=/dev/null
3545if test -d ${srcdir}/config ; then
3546case "${host}" in
3547 m68k-hp-hpux*)
3548 # Avoid "too much defining" errors from HPUX compiler.
3549 tentative_cc="cc -Wp,-H256000"
3550 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3551 # If it's HP/UX ar, this should be harmless.
3552 RANLIB="ar ts"
3553 ;;
3554 m68k-apollo-sysv*)
3555 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3556 ;;
3557 m68k-apollo-bsd*)
3558 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3559 # chokes on bfd, the compiler won't let you assign integers to enums, and
3560 # other problems. Defining CC to gcc is a questionable way to say "don't use
3561 # the apollo compiler" (the preferred version of GCC could be called cc,
3562 # or whatever), but I'm not sure leaving CC as cc is any better...
3563 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3564 # Used to have BISON=yacc.
3565 tentative_cc=gcc
3566 ;;
3567 m88k-dg-dgux*)
3568 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
3569 ;;
3570 m88k-harris-cxux*)
3571 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3572 tentative_cc="cc -Xa"
3573 host_makefile_frag="config/mh-cxux"
3574 ;;
3575 m88k-motorola-sysv*)
3576 ;;
3577 mips*-dec-ultrix*)
3578 tentative_cc="cc -Wf,-XNg1000"
3579 host_makefile_frag="config/mh-decstation"
3580 ;;
3581 mips*-nec-sysv4*)
3582 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3583 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3584 host_makefile_frag="config/mh-necv4"
3585 ;;
3586 mips*-sgi-irix4*)
3587 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3588 # environment. Also bump switch table size so that cp-parse will
3589 # compile. Bump string length limit so linker builds.
3590 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3591 ;;
3592 mips*-*-sysv4*)
3593 host_makefile_frag="config/mh-sysv4"
3594 ;;
3595 mips*-*-sysv*)
3596 # This is for a MIPS running RISC/os 4.52C.
3597
3598 # This is needed for GDB, but needs to be in the top-level make because
3599 # if a library is compiled with the bsd headers and gets linked with the
3600 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3601 # a different size).
3602 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3603 # known except to select the sysv environment. Could we use /proc instead?
3604 # These "sysv environments" and "bsd environments" often end up being a pain.
3605 #
3606 # This is not part of CFLAGS because perhaps not all C compilers have this
3607 # option.
3608 tentative_cc="cc -systype sysv"
3609 ;;
3610 i370-ibm-opened*)
3611 tentative_cc="c89"
3612 ;;
f2a0e225 3613 i[3456789]86-*-sysv5*)
671aa708
NN
3614 host_makefile_frag="config/mh-sysv5"
3615 ;;
f2a0e225 3616 i[3456789]86-*-dgux*)
671aa708
NN
3617 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3618 host_makefile_frag="config/mh-dgux386"
3619 ;;
f2a0e225 3620 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
3621 # The MetaWare compiler will generate a copyright message unless you
3622 # turn it off by adding the -Hnocopyr flag.
3623 tentative_cc="cc -Hnocopyr"
3624 ;;
f2a0e225 3625 i[3456789]86-ncr-sysv4*)
671aa708
NN
3626 # for an NCR 3000 (i486/SVR4) system.
3627 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3628 # This compiler not only emits obnoxious copyright messages every time
3629 # you run it, but it chokes and dies on a whole bunch of GNU source
3630 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3631 tentative_cc="/usr/ccs/ATT/cc"
3632 host_makefile_frag="config/mh-ncr3000"
3633 ;;
f2a0e225 3634 i[3456789]86-*-sco3.2v5*)
671aa708 3635 ;;
f2a0e225 3636 i[3456789]86-*-sco*)
671aa708
NN
3637 # The native C compiler botches some simple uses of const. Unfortunately,
3638 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3639 tentative_cc="cc -Dconst="
3640 host_makefile_frag="config/mh-sco"
3641 ;;
f2a0e225 3642 i[3456789]86-*-udk*)
671aa708
NN
3643 host_makefile_frag="config/mh-sysv5"
3644 ;;
f2a0e225 3645 i[3456789]86-*-solaris2*)
671aa708
NN
3646 host_makefile_frag="config/mh-sysv4"
3647 ;;
f2a0e225 3648 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3649 host_makefile_frag="config/mh-djgpp"
3650 ;;
3651 *-cygwin*)
2a79c47f 3652
5213506e
RW
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3654$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3655echo a >cygwin-cat-check
e25a8c82 3656if test `cat cygwin-cat-check` = a ; then
2a79c47f 3657 rm cygwin-cat-check
5213506e
RW
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3659$as_echo "yes" >&6; }
2a79c47f
NC
3660else
3661 rm cygwin-cat-check
5213506e
RW
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663$as_echo "no" >&6; }
3664 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3665 Please either mount the build directory in binary mode or run the following
3666 commands before running any configure script:
3667set -o igncr
3668export SHELLOPTS
5213506e 3669 " "$LINENO" 5
2a79c47f
NC
3670fi
3671
671aa708
NN
3672 host_makefile_frag="config/mh-cygwin"
3673 ;;
c53a18d3 3674 *-mingw*)
1f5a6b84 3675 host_makefile_frag="config/mh-mingw"
95af8923 3676 ;;
671aa708
NN
3677 *-interix*)
3678 host_makefile_frag="config/mh-interix"
3679 ;;
3680 vax-*-ultrix2*)
3681 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3682 tentative_cc=gcc
3683 ;;
3684 *-*-solaris2*)
3685 host_makefile_frag="config/mh-solaris"
3686 ;;
3687 m68k-sun-sunos*)
3688 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3689 # without overflowing the jump tables (-J says to use a 32 bit table)
3690 tentative_cc="cc -J"
3691 ;;
efd41714 3692 hppa*-hp-hpux10*)
671aa708 3693 tentative_cc="cc -Wp,-H256000"
efd41714 3694 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3695 ;;
efd41714
PB
3696 hppa*-hp-hpux* | hppa*-*-hiux*)
3697 tentative_cc="cc -Wp,-H256000"
3698 host_makefile_frag="config/mh-pa"
3699 ;;
3700 hppa*-*)
3701 host_makefile_frag="config/mh-pa"
3702 ;;
3703 *-hp-hpux* | *-*-hiux*)
671aa708
NN
3704 tentative_cc="cc -Wp,-H256000"
3705 ;;
3706 rs6000-*-lynxos*)
3707 # /bin/cc is less than useful for our purposes. Always use GCC
3708 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3709 host_makefile_frag="config/mh-lynxrs6k"
3710 ;;
d8ed14ce
IS
3711 *-*-darwin*)
3712 host_makefile_frag="config/mh-darwin"
be8fff81 3713 ;;
d19bca38
PB
3714 powerpc-*-aix*)
3715 host_makefile_frag="config/mh-ppc-aix"
3716 ;;
3717 rs6000-*-aix*)
3718 host_makefile_frag="config/mh-ppc-aix"
3719 ;;
671aa708
NN
3720 *-*-lynxos*)
3721 # /bin/cc is less than useful for our purposes. Always use GCC
3722 tentative_cc="/bin/gcc"
3723 ;;
3724 *-*-sysv4*)
3725 host_makefile_frag="config/mh-sysv4"
3726 ;;
95c53c62
RS
3727 # This is placed last to prevent interfering with the cases above.
3728 i[3456789]86-*-*)
3729 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3730 host_makefile_frag="config/mh-x86omitfp"
3731 ;;
671aa708
NN
3732esac
3733fi
3734
55ffb5ed
NN
3735# If we aren't going to be using gcc, see if we can extract a definition
3736# of CC from the fragment.
3737# Actually, use the 'pre-extracted' version above.
3738if test -z "${CC}" && test "${build}" = "${host}" ; then
3739 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3740 found=
3741 for dir in $PATH; do
3742 test -z "$dir" && dir=.
3743 if test -f $dir/gcc; then
3744 found=yes
3745 break
3746 fi
3747 done
3748 IFS="$save_ifs"
3749 if test -z "${found}" && test -n "${tentative_cc}" ; then
3750 CC=$tentative_cc
3751 fi
3752fi
3753
3754if test "${build}" != "${host}" ; then
0999159b
PB
3755 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3756 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3757 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3758 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3759 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3760 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3761 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3762 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3763 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3764 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3765 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3766 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3767else
3768 AR_FOR_BUILD="\$(AR)"
3769 AS_FOR_BUILD="\$(AS)"
fb0103e5 3770 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3771 CXX_FOR_BUILD="\$(CXX)"
3772 GCJ_FOR_BUILD="\$(GCJ)"
3773 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3774 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3775 LD_FOR_BUILD="\$(LD)"
3776 NM_FOR_BUILD="\$(NM)"
3777 RANLIB_FOR_BUILD="\$(RANLIB)"
3778 WINDRES_FOR_BUILD="\$(WINDRES)"
3779 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3780fi
3781
3782ac_ext=c
1c710c3c
DJ
3783ac_cpp='$CPP $CPPFLAGS'
3784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3789set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791$as_echo_n "checking for $ac_word... " >&6; }
3792if test "${ac_cv_prog_CC+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3794else
3795 if test -n "$CC"; then
3796 ac_cv_prog_CC="$CC" # Let the user override the test.
3797else
3798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799for as_dir in $PATH
3800do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
5213506e
RW
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3807 break 2
3808 fi
3809done
5213506e
RW
3810 done
3811IFS=$as_save_IFS
1c710c3c
DJ
3812
3813fi
3814fi
3815CC=$ac_cv_prog_CC
3816if test -n "$CC"; then
5213506e
RW
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3818$as_echo "$CC" >&6; }
1c710c3c 3819else
5213506e
RW
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821$as_echo "no" >&6; }
1c710c3c
DJ
3822fi
3823
5213506e 3824
1c710c3c
DJ
3825fi
3826if test -z "$ac_cv_prog_CC"; then
3827 ac_ct_CC=$CC
fb0103e5
RG
3828 # Extract the first word of "gcc", so it can be a program name with args.
3829set dummy gcc; ac_word=$2
5213506e
RW
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831$as_echo_n "checking for $ac_word... " >&6; }
3832if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3834else
3835 if test -n "$ac_ct_CC"; then
3836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3837else
3838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839for as_dir in $PATH
3840do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
5213506e
RW
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3845 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3847 break 2
3848 fi
3849done
5213506e
RW
3850 done
3851IFS=$as_save_IFS
1c710c3c
DJ
3852
3853fi
3854fi
3855ac_ct_CC=$ac_cv_prog_ac_ct_CC
3856if test -n "$ac_ct_CC"; then
5213506e
RW
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3858$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3859else
5213506e
RW
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861$as_echo "no" >&6; }
1c710c3c
DJ
3862fi
3863
5213506e
RW
3864 if test "x$ac_ct_CC" = x; then
3865 CC=""
3866 else
3867 case $cross_compiling:$ac_tool_warned in
3868yes:)
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3871ac_tool_warned=yes ;;
3872esac
3873 CC=$ac_ct_CC
3874 fi
1c710c3c
DJ
3875else
3876 CC="$ac_cv_prog_CC"
3877fi
3878
3879if test -z "$CC"; then
5213506e
RW
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3882set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884$as_echo_n "checking for $ac_word... " >&6; }
3885if test "${ac_cv_prog_CC+set}" = set; then :
3886 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3887else
3888 if test -n "$CC"; then
3889 ac_cv_prog_CC="$CC" # Let the user override the test.
3890else
1c710c3c
DJ
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH
3893do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
5213506e
RW
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3898 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3900 break 2
3901 fi
3902done
5213506e
RW
3903 done
3904IFS=$as_save_IFS
1c710c3c 3905
0b0dc272 3906fi
0b0dc272 3907fi
1c710c3c 3908CC=$ac_cv_prog_CC
af71363e 3909if test -n "$CC"; then
5213506e
RW
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3911$as_echo "$CC" >&6; }
2aeb72e9 3912else
5213506e
RW
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914$as_echo "no" >&6; }
2aeb72e9
DD
3915fi
3916
2aeb72e9 3917
5213506e 3918 fi
1c710c3c 3919fi
55ffb5ed
NN
3920if test -z "$CC"; then
3921 # Extract the first word of "cc", so it can be a program name with args.
3922set dummy cc; ac_word=$2
5213506e
RW
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924$as_echo_n "checking for $ac_word... " >&6; }
3925if test "${ac_cv_prog_CC+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3927else
3928 if test -n "$CC"; then
3929 ac_cv_prog_CC="$CC" # Let the user override the test.
3930else
0b0dc272 3931 ac_prog_rejected=no
1c710c3c
DJ
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
5213506e
RW
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3940 ac_prog_rejected=yes
3941 continue
3942 fi
3943 ac_cv_prog_CC="cc"
5213506e 3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3945 break 2
3946 fi
3947done
5213506e
RW
3948 done
3949IFS=$as_save_IFS
1c710c3c 3950
55ffb5ed
NN
3951if test $ac_prog_rejected = yes; then
3952 # We found a bogon in the path, so make sure we never use it.
3953 set dummy $ac_cv_prog_CC
3954 shift
1c710c3c 3955 if test $# != 0; then
55ffb5ed
NN
3956 # We chose a different compiler from the bogus one.
3957 # However, it has the same basename, so the bogon will be chosen
3958 # first if we set CC to just the basename; use the full file name.
3959 shift
1c710c3c 3960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3961 fi
3962fi
3963fi
3964fi
1c710c3c 3965CC=$ac_cv_prog_CC
55ffb5ed 3966if test -n "$CC"; then
5213506e
RW
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968$as_echo "$CC" >&6; }
55ffb5ed 3969else
5213506e
RW
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971$as_echo "no" >&6; }
55ffb5ed
NN
3972fi
3973
5213506e 3974
1c710c3c
DJ
3975fi
3976if test -z "$CC"; then
3977 if test -n "$ac_tool_prefix"; then
5213506e 3978 for ac_prog in cl.exe
1c710c3c
DJ
3979 do
3980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3981set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983$as_echo_n "checking for $ac_word... " >&6; }
3984if test "${ac_cv_prog_CC+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3986else
3987 if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3989else
1c710c3c
DJ
3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991for as_dir in $PATH
3992do
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
5213506e
RW
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3999 break 2
4000 fi
4001done
5213506e
RW
4002 done
4003IFS=$as_save_IFS
1c710c3c 4004
55ffb5ed
NN
4005fi
4006fi
1c710c3c 4007CC=$ac_cv_prog_CC
55ffb5ed 4008if test -n "$CC"; then
5213506e
RW
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010$as_echo "$CC" >&6; }
a4b9e93e 4011else
5213506e
RW
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013$as_echo "no" >&6; }
fb0103e5 4014fi
af71363e 4015
5213506e 4016
1c710c3c
DJ
4017 test -n "$CC" && break
4018 done
af71363e 4019fi
1c710c3c
DJ
4020if test -z "$CC"; then
4021 ac_ct_CC=$CC
5213506e 4022 for ac_prog in cl.exe
1c710c3c
DJ
4023do
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025set dummy $ac_prog; ac_word=$2
5213506e
RW
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027$as_echo_n "checking for $ac_word... " >&6; }
4028if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
0b0dc272 4030else
1c710c3c
DJ
4031 if test -n "$ac_ct_CC"; then
4032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4033else
1c710c3c
DJ
4034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035for as_dir in $PATH
4036do
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
5213506e
RW
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4041 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4043 break 2
4044 fi
4045done
5213506e
RW
4046 done
4047IFS=$as_save_IFS
1c710c3c 4048
af71363e
AS
4049fi
4050fi
1c710c3c
DJ
4051ac_ct_CC=$ac_cv_prog_ac_ct_CC
4052if test -n "$ac_ct_CC"; then
5213506e
RW
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4054$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4055else
5213506e
RW
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057$as_echo "no" >&6; }
af71363e 4058fi
0b0dc272 4059
5213506e 4060
1c710c3c
DJ
4061 test -n "$ac_ct_CC" && break
4062done
4063
5213506e
RW
4064 if test "x$ac_ct_CC" = x; then
4065 CC=""
4066 else
4067 case $cross_compiling:$ac_tool_warned in
4068yes:)
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071ac_tool_warned=yes ;;
4072esac
4073 CC=$ac_ct_CC
4074 fi
1c710c3c
DJ
4075fi
4076
4077fi
4078
4079
5213506e
RW
4080test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082as_fn_error "no acceptable C compiler found in \$PATH
4083See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4084
4085# Provide some information about the compiler.
5213506e
RW
4086$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4087set X $ac_compile
4088ac_compiler=$2
4089for ac_option in --version -v -V -qversion; do
4090 { { ac_try="$ac_compiler $ac_option >&5"
4091case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094esac
4095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096$as_echo "$ac_try_echo"; } >&5
4097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4098 ac_status=$?
5213506e
RW
4099 if test -s conftest.err; then
4100 sed '10a\
4101... rest of stderr output deleted ...
4102 10q' conftest.err >conftest.er1
4103 cat conftest.er1 >&5
4104 rm -f conftest.er1 conftest.err
4105 fi
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }
4108done
1c710c3c 4109
5213506e 4110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4111/* end confdefs.h. */
4112
4113int
4114main ()
4115{
4116
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121ac_clean_files_save=$ac_clean_files
5213506e 4122ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4123# Try to create an executable without -o first, disregard a.out.
4124# It will help us diagnose broken compilers, and finding out an intuition
4125# of exeext.
5213506e
RW
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4127$as_echo_n "checking for C compiler default output file name... " >&6; }
4128ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4129
4130# The possible output files:
4131ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4132
4133ac_rmfiles=
4134for ac_file in $ac_files
4135do
4136 case $ac_file in
4137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4139 esac
4140done
4141rm -f $ac_rmfiles
4142
4143if { { ac_try="$ac_link_default"
4144case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147esac
4148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149$as_echo "$ac_try_echo"; } >&5
4150 (eval "$ac_link_default") 2>&5
1c710c3c 4151 ac_status=$?
5213506e
RW
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }; then :
4154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4155# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4156# in a Makefile. We should not override ac_cv_exeext if it was cached,
4157# so that the user can short-circuit this test for compilers unknown to
4158# Autoconf.
4159for ac_file in $ac_files ''
1c710c3c
DJ
4160do
4161 test -f "$ac_file" || continue
4162 case $ac_file in
5213506e 4163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4164 ;;
4165 [ab].out )
4166 # We found the default executable, but exeext='' is most
4167 # certainly right.
4168 break;;
4169 *.* )
5213506e
RW
4170 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4171 then :; else
4172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4173 fi
4174 # We set ac_cv_exeext here because the later test for it is not
4175 # safe: cross compilers may not add the suffix if given an `-o'
4176 # argument, so we may need to know it at that point already.
4177 # Even if this section looks crufty: it has the advantage of
4178 # actually working.
1c710c3c
DJ
4179 break;;
4180 * )
4181 break;;
4182 esac
4183done
5213506e
RW
4184test "$ac_cv_exeext" = no && ac_cv_exeext=
4185
1c710c3c 4186else
5213506e
RW
4187 ac_file=''
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4190$as_echo "$ac_file" >&6; }
4191if test -z "$ac_file"; then :
4192 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4193sed 's/^/| /' conftest.$ac_ext >&5
4194
5213506e
RW
4195{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197{ as_fn_set_status 77
4198as_fn_error "C compiler cannot create executables
4199See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4200fi
1c710c3c 4201ac_exeext=$ac_cv_exeext
1c710c3c 4202
5213506e 4203# Check that the compiler produces executables we can run. If not, either
1c710c3c 4204# the compiler is broken, or we cross compile.
5213506e
RW
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4206$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4207# If not cross compiling, check that we can run a simple program.
4208if test "$cross_compiling" != yes; then
4209 if { ac_try='./$ac_file'
5213506e
RW
4210 { { case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213esac
4214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215$as_echo "$ac_try_echo"; } >&5
4216 (eval "$ac_try") 2>&5
1c710c3c 4217 ac_status=$?
5213506e
RW
4218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219 test $ac_status = 0; }; }; then
1c710c3c
DJ
4220 cross_compiling=no
4221 else
4222 if test "$cross_compiling" = maybe; then
4223 cross_compiling=yes
4224 else
5213506e
RW
4225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227as_fn_error "cannot run C compiled programs.
1c710c3c 4228If you meant to cross compile, use \`--host'.
5213506e 4229See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4230 fi
4231 fi
4232fi
5213506e
RW
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4234$as_echo "yes" >&6; }
1c710c3c 4235
5213506e 4236rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4237ac_clean_files=$ac_clean_files_save
5213506e 4238# Check that the compiler produces executables we can run. If not, either
1c710c3c 4239# the compiler is broken, or we cross compile.
5213506e
RW
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4241$as_echo_n "checking whether we are cross compiling... " >&6; }
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4243$as_echo "$cross_compiling" >&6; }
4244
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4246$as_echo_n "checking for suffix of executables... " >&6; }
4247if { { ac_try="$ac_link"
4248case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4251esac
4252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253$as_echo "$ac_try_echo"; } >&5
4254 (eval "$ac_link") 2>&5
1c710c3c 4255 ac_status=$?
5213506e
RW
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }; then :
1c710c3c
DJ
4258 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4259# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4260# work properly (i.e., refer to `conftest.exe'), while it won't with
4261# `rm'.
4262for ac_file in conftest.exe conftest conftest.*; do
4263 test -f "$ac_file" || continue
4264 case $ac_file in
5213506e 4265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4266 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4267 break;;
4268 * ) break;;
4269 esac
4270done
af71363e 4271else
5213506e
RW
4272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4274as_fn_error "cannot compute suffix of executables: cannot compile and link
4275See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4276fi
1c710c3c 4277rm -f conftest$ac_cv_exeext
5213506e
RW
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4279$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4280
4281rm -f conftest.$ac_ext
4282EXEEXT=$ac_cv_exeext
4283ac_exeext=$EXEEXT
5213506e
RW
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4285$as_echo_n "checking for suffix of object files... " >&6; }
4286if test "${ac_cv_objext+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
1c710c3c 4288else
5213506e 4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4290/* end confdefs.h. */
4291
4292int
4293main ()
4294{
4295
4296 ;
4297 return 0;
4298}
4299_ACEOF
4300rm -f conftest.o conftest.obj
5213506e
RW
4301if { { ac_try="$ac_compile"
4302case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305esac
4306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307$as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_compile") 2>&5
1c710c3c 4309 ac_status=$?
5213506e
RW
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }; then :
4312 for ac_file in conftest.o conftest.obj conftest.*; do
4313 test -f "$ac_file" || continue;
1c710c3c 4314 case $ac_file in
5213506e 4315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4317 break;;
4318 esac
4319done
4320else
5213506e 4321 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
5213506e
RW
4324{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326as_fn_error "cannot compute suffix of object files: cannot compile
4327See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4328fi
1c710c3c
DJ
4329rm -f conftest.$ac_cv_objext conftest.$ac_ext
4330fi
5213506e
RW
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4332$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4333OBJEXT=$ac_cv_objext
4334ac_objext=$OBJEXT
5213506e
RW
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4336$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4337if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
1c710c3c 4339else
5213506e 4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4341/* end confdefs.h. */
4342
4343int
4344main ()
4345{
4346#ifndef __GNUC__
4347 choke me
4348#endif
4349
4350 ;
4351 return 0;
4352}
4353_ACEOF
5213506e 4354if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4355 ac_compiler_gnu=yes
4356else
5213506e 4357 ac_compiler_gnu=no
1c710c3c 4358fi
5213506e 4359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4360ac_cv_c_compiler_gnu=$ac_compiler_gnu
4361
4362fi
5213506e
RW
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4364$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4365if test $ac_compiler_gnu = yes; then
4366 GCC=yes
4367else
4368 GCC=
4369fi
1c710c3c
DJ
4370ac_test_CFLAGS=${CFLAGS+set}
4371ac_save_CFLAGS=$CFLAGS
5213506e
RW
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4373$as_echo_n "checking whether $CC accepts -g... " >&6; }
4374if test "${ac_cv_prog_cc_g+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4376else
4377 ac_save_c_werror_flag=$ac_c_werror_flag
4378 ac_c_werror_flag=yes
4379 ac_cv_prog_cc_g=no
4380 CFLAGS="-g"
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4382/* end confdefs.h. */
4383
4384int
4385main ()
4386{
4387
4388 ;
4389 return 0;
4390}
4391_ACEOF
5213506e 4392if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4393 ac_cv_prog_cc_g=yes
4394else
5213506e
RW
4395 CFLAGS=""
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397/* end confdefs.h. */
4398
4399int
4400main ()
4401{
4402
4403 ;
4404 return 0;
4405}
4406_ACEOF
4407if ac_fn_c_try_compile "$LINENO"; then :
4408
4409else
4410 ac_c_werror_flag=$ac_save_c_werror_flag
4411 CFLAGS="-g"
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h. */
af71363e 4414
5213506e
RW
4415int
4416main ()
4417{
4418
4419 ;
4420 return 0;
4421}
4422_ACEOF
4423if ac_fn_c_try_compile "$LINENO"; then :
4424 ac_cv_prog_cc_g=yes
4425fi
4426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4427fi
5213506e 4428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4429fi
5213506e
RW
4430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 ac_c_werror_flag=$ac_save_c_werror_flag
4432fi
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4434$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4435if test "$ac_test_CFLAGS" = set; then
1c710c3c 4436 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4437elif test $ac_cv_prog_cc_g = yes; then
4438 if test "$GCC" = yes; then
4439 CFLAGS="-g -O2"
4440 else
4441 CFLAGS="-g"
4442 fi
4443else
4444 if test "$GCC" = yes; then
4445 CFLAGS="-O2"
4446 else
4447 CFLAGS=
4448 fi
4449fi
5213506e
RW
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4451$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4452if test "${ac_cv_prog_cc_c89+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
1c710c3c 4454else
5213506e 4455 ac_cv_prog_cc_c89=no
1c710c3c 4456ac_save_CC=$CC
5213506e 4457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4458/* end confdefs.h. */
4459#include <stdarg.h>
4460#include <stdio.h>
4461#include <sys/types.h>
4462#include <sys/stat.h>
4463/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4464struct buf { int x; };
4465FILE * (*rcsopen) (struct buf *, struct stat *, int);
4466static char *e (p, i)
4467 char **p;
4468 int i;
4469{
4470 return p[i];
4471}
4472static char *f (char * (*g) (char **, int), char **p, ...)
4473{
4474 char *s;
4475 va_list v;
4476 va_start (v,p);
4477 s = g (p, va_arg (v,int));
4478 va_end (v);
4479 return s;
4480}
4481
4482/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4483 function prototypes and stuff, but not '\xHH' hex character constants.
4484 These don't provoke an error unfortunately, instead are silently treated
5213506e 4485 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4487 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4488 that's true only with -std. */
1c710c3c
DJ
4489int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4490
5213506e
RW
4491/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4492 inside strings and character constants. */
4493#define FOO(x) 'x'
4494int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4495
1c710c3c
DJ
4496int test (int i, double x);
4497struct s1 {int (*f) (int a);};
4498struct s2 {int (*f) (double a);};
4499int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4500int argc;
4501char **argv;
4502int
4503main ()
4504{
4505return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4506 ;
4507 return 0;
4508}
4509_ACEOF
5213506e
RW
4510for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4511 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4512do
4513 CC="$ac_save_CC $ac_arg"
5213506e
RW
4514 if ac_fn_c_try_compile "$LINENO"; then :
4515 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4516fi
5213506e
RW
4517rm -f core conftest.err conftest.$ac_objext
4518 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4519done
5213506e 4520rm -f conftest.$ac_ext
1c710c3c
DJ
4521CC=$ac_save_CC
4522
4523fi
5213506e
RW
4524# AC_CACHE_VAL
4525case "x$ac_cv_prog_cc_c89" in
4526 x)
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4528$as_echo "none needed" >&6; } ;;
4529 xno)
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4531$as_echo "unsupported" >&6; } ;;
1c710c3c 4532 *)
5213506e
RW
4533 CC="$CC $ac_cv_prog_cc_c89"
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4535$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4536esac
5213506e 4537if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4538
2aeb72e9
DD
4539fi
4540
2aeb72e9
DD
4541ac_ext=c
4542ac_cpp='$CPP $CPPFLAGS'
4543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546
5213506e 4547ac_ext=cpp
2aeb72e9
DD
4548ac_cpp='$CXXCPP $CPPFLAGS'
4549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4552if test -z "$CXX"; then
4553 if test -n "$CCC"; then
4554 CXX=$CCC
4555 else
4556 if test -n "$ac_tool_prefix"; then
4557 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4558 do
4559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4560set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562$as_echo_n "checking for $ac_word... " >&6; }
4563if test "${ac_cv_prog_CXX+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4565else
4566 if test -n "$CXX"; then
4567 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4568else
4569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570for as_dir in $PATH
4571do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
5213506e
RW
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4576 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4578 break 2
4579 fi
4580done
5213506e
RW
4581 done
4582IFS=$as_save_IFS
55ffb5ed 4583
c3a86da9
DJ
4584fi
4585fi
4586CXX=$ac_cv_prog_CXX
4587if test -n "$CXX"; then
5213506e
RW
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4589$as_echo "$CXX" >&6; }
c3a86da9 4590else
5213506e
RW
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592$as_echo "no" >&6; }
c3a86da9
DJ
4593fi
4594
5213506e 4595
c3a86da9
DJ
4596 test -n "$CXX" && break
4597 done
4598fi
4599if test -z "$CXX"; then
4600 ac_ct_CXX=$CXX
5213506e 4601 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4602do
4603 # Extract the first word of "$ac_prog", so it can be a program name with args.
4604set dummy $ac_prog; ac_word=$2
5213506e
RW
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606$as_echo_n "checking for $ac_word... " >&6; }
4607if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4609else
4610 if test -n "$ac_ct_CXX"; then
4611 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4612else
4613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
5213506e
RW
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4620 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4622 break 2
4623 fi
4624done
5213506e
RW
4625 done
4626IFS=$as_save_IFS
c3a86da9
DJ
4627
4628fi
4629fi
4630ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4631if test -n "$ac_ct_CXX"; then
5213506e
RW
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4633$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4634else
5213506e
RW
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636$as_echo "no" >&6; }
c3a86da9
DJ
4637fi
4638
5213506e 4639
c3a86da9
DJ
4640 test -n "$ac_ct_CXX" && break
4641done
c3a86da9 4642
5213506e
RW
4643 if test "x$ac_ct_CXX" = x; then
4644 CXX="g++"
4645 else
4646 case $cross_compiling:$ac_tool_warned in
4647yes:)
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4650ac_tool_warned=yes ;;
4651esac
4652 CXX=$ac_ct_CXX
4653 fi
c3a86da9
DJ
4654fi
4655
5213506e
RW
4656 fi
4657fi
c3a86da9 4658# Provide some information about the compiler.
5213506e
RW
4659$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4660set X $ac_compile
4661ac_compiler=$2
4662for ac_option in --version -v -V -qversion; do
4663 { { ac_try="$ac_compiler $ac_option >&5"
4664case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4667esac
4668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4669$as_echo "$ac_try_echo"; } >&5
4670 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4671 ac_status=$?
5213506e
RW
4672 if test -s conftest.err; then
4673 sed '10a\
4674... rest of stderr output deleted ...
4675 10q' conftest.err >conftest.er1
4676 cat conftest.er1 >&5
4677 rm -f conftest.er1 conftest.err
4678 fi
4679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4680 test $ac_status = 0; }
4681done
c3a86da9 4682
5213506e
RW
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4684$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4685if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
c3a86da9 4687else
5213506e 4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4689/* end confdefs.h. */
4690
4691int
4692main ()
4693{
4694#ifndef __GNUC__
4695 choke me
4696#endif
4697
4698 ;
4699 return 0;
4700}
4701_ACEOF
5213506e 4702if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4703 ac_compiler_gnu=yes
4704else
5213506e 4705 ac_compiler_gnu=no
c3a86da9 4706fi
5213506e 4707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4708ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4709
4710fi
5213506e
RW
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4712$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4713if test $ac_compiler_gnu = yes; then
4714 GXX=yes
4715else
4716 GXX=
4717fi
c3a86da9
DJ
4718ac_test_CXXFLAGS=${CXXFLAGS+set}
4719ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4721$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4722if test "${ac_cv_prog_cxx_g+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4724else
4725 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4726 ac_cxx_werror_flag=yes
4727 ac_cv_prog_cxx_g=no
4728 CXXFLAGS="-g"
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4730/* end confdefs.h. */
4731
4732int
4733main ()
4734{
4735
4736 ;
4737 return 0;
4738}
4739_ACEOF
5213506e 4740if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4741 ac_cv_prog_cxx_g=yes
4742else
5213506e
RW
4743 CXXFLAGS=""
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4745/* end confdefs.h. */
5213506e 4746
c3a86da9
DJ
4747int
4748main ()
4749{
5213506e 4750
c3a86da9
DJ
4751 ;
4752 return 0;
4753}
4754_ACEOF
5213506e 4755if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4756
5213506e
RW
4757else
4758 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4759 CXXFLAGS="-g"
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4761/* end confdefs.h. */
5213506e 4762
c3a86da9
DJ
4763int
4764main ()
4765{
5213506e 4766
c3a86da9
DJ
4767 ;
4768 return 0;
4769}
4770_ACEOF
5213506e
RW
4771if ac_fn_cxx_try_compile "$LINENO"; then :
4772 ac_cv_prog_cxx_g=yes
11a67599 4773fi
5213506e
RW
4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775fi
4776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777fi
4778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4780fi
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4782$as_echo "$ac_cv_prog_cxx_g" >&6; }
4783if test "$ac_test_CXXFLAGS" = set; then
4784 CXXFLAGS=$ac_save_CXXFLAGS
4785elif test $ac_cv_prog_cxx_g = yes; then
4786 if test "$GXX" = yes; then
4787 CXXFLAGS="-g -O2"
4788 else
4789 CXXFLAGS="-g"
4790 fi
4791else
4792 if test "$GXX" = yes; then
4793 CXXFLAGS="-O2"
4794 else
4795 CXXFLAGS=
4796 fi
c3a86da9 4797fi
c3a86da9
DJ
4798ac_ext=c
4799ac_cpp='$CPP $CPPFLAGS'
4800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803
4804
4805# We must set the default linker to the linker used by gcc for the correct
4806# operation of libtool. If LD is not defined and we are using gcc, try to
4807# set the LD default to the ld used by gcc.
4808if test -z "$LD"; then
4809 if test "$GCC" = yes; then
4810 case $build in
4811 *-*-mingw*)
4812 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4813 *)
4814 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4815 esac
4816 case $gcc_prog_ld in
4817 # Accept absolute paths.
4818 [\\/]* | [A-Za-z]:[\\/]*)
4819 LD="$gcc_prog_ld" ;;
4820 esac
4821 fi
23f6b2f9
PB
4822fi
4823
23f6b2f9
PB
4824
4825
55ffb5ed 4826
1c710c3c
DJ
4827if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4829set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831$as_echo_n "checking for $ac_word... " >&6; }
4832if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4834else
4835 if test -n "$GNATBIND"; then
4836 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4837else
1c710c3c
DJ
4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
5213506e
RW
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4845 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4847 break 2
4848 fi
4849done
5213506e
RW
4850 done
4851IFS=$as_save_IFS
1c710c3c 4852
55ffb5ed
NN
4853fi
4854fi
1c710c3c 4855GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4856if test -n "$GNATBIND"; then
5213506e
RW
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4858$as_echo "$GNATBIND" >&6; }
55ffb5ed 4859else
5213506e
RW
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861$as_echo "no" >&6; }
55ffb5ed
NN
4862fi
4863
5213506e 4864
1c710c3c 4865fi
55ffb5ed 4866if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4867 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4868 # Extract the first word of "gnatbind", so it can be a program name with args.
4869set dummy gnatbind; ac_word=$2
5213506e
RW
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871$as_echo_n "checking for $ac_word... " >&6; }
4872if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
55ffb5ed 4874else
1c710c3c
DJ
4875 if test -n "$ac_ct_GNATBIND"; then
4876 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4877else
1c710c3c
DJ
4878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879for as_dir in $PATH
4880do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
5213506e
RW
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4885 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4887 break 2
4888 fi
4889done
5213506e
RW
4890 done
4891IFS=$as_save_IFS
1c710c3c 4892
55ffb5ed
NN
4893fi
4894fi
1c710c3c
DJ
4895ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4896if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4898$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4899else
5213506e
RW
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901$as_echo "no" >&6; }
55ffb5ed
NN
4902fi
4903
5213506e
RW
4904 if test "x$ac_ct_GNATBIND" = x; then
4905 GNATBIND="no"
4906 else
4907 case $cross_compiling:$ac_tool_warned in
4908yes:)
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911ac_tool_warned=yes ;;
4912esac
4913 GNATBIND=$ac_ct_GNATBIND
4914 fi
55ffb5ed 4915else
1c710c3c 4916 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4917fi
4918
1c710c3c
DJ
4919if test -n "$ac_tool_prefix"; then
4920 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4921set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923$as_echo_n "checking for $ac_word... " >&6; }
4924if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
5305be7e
RG
4926else
4927 if test -n "$GNATMAKE"; then
4928 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4929else
1c710c3c
DJ
4930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931for as_dir in $PATH
4932do
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
5213506e
RW
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4937 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4939 break 2
4940 fi
4941done
5213506e
RW
4942 done
4943IFS=$as_save_IFS
1c710c3c 4944
5305be7e
RG
4945fi
4946fi
1c710c3c 4947GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4948if test -n "$GNATMAKE"; then
5213506e
RW
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4950$as_echo "$GNATMAKE" >&6; }
5305be7e 4951else
5213506e
RW
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953$as_echo "no" >&6; }
5305be7e
RG
4954fi
4955
5213506e 4956
1c710c3c 4957fi
5305be7e 4958if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4959 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4960 # Extract the first word of "gnatmake", so it can be a program name with args.
4961set dummy gnatmake; ac_word=$2
5213506e
RW
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963$as_echo_n "checking for $ac_word... " >&6; }
4964if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
5305be7e 4966else
1c710c3c
DJ
4967 if test -n "$ac_ct_GNATMAKE"; then
4968 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4969else
1c710c3c
DJ
4970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971for as_dir in $PATH
4972do
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
5213506e
RW
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4977 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4979 break 2
4980 fi
4981done
5213506e
RW
4982 done
4983IFS=$as_save_IFS
1c710c3c 4984
5305be7e
RG
4985fi
4986fi
1c710c3c
DJ
4987ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4988if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4990$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 4991else
5213506e
RW
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993$as_echo "no" >&6; }
5305be7e
RG
4994fi
4995
5213506e
RW
4996 if test "x$ac_ct_GNATMAKE" = x; then
4997 GNATMAKE="no"
4998 else
4999 case $cross_compiling:$ac_tool_warned in
5000yes:)
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5003ac_tool_warned=yes ;;
5004esac
5005 GNATMAKE=$ac_ct_GNATMAKE
5006 fi
5305be7e 5007else
1c710c3c 5008 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5009fi
5010
5213506e
RW
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5012$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5013if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5015else
5016 cat >conftest.adb <<EOF
5017procedure conftest is begin null; end conftest;
5018EOF
5019acx_cv_cc_gcc_supports_ada=no
5020# There is a bug in old released versions of GCC which causes the
5021# driver to exit successfully when the appropriate language module
5022# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5023# Therefore we must check for the error message as well as an
5024# unsuccessful exit.
1db673ca
RO
5025# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5026# given a .adb file, but produce no object file. So we must check
5027# if an object file was really produced to guard against this.
55ffb5ed 5028errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5029if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5030 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5031fi
5032rm -f conftest.*
5033fi
5213506e
RW
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5035$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5036
5305be7e 5037if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5038 have_gnat=yes
5039else
5040 have_gnat=no
5041fi
5042
5213506e
RW
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5044$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5045if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
a76494aa
PB
5047else
5048 echo abfoo >t1
5049 echo cdfoo >t2
5050 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5051 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5052 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5053 :
5054 else
5055 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5056 fi
5057 fi
a76494aa
PB
5058 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5059 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5060 :
a76494aa
PB
5061 else
5062 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5063 fi
5064 fi
5065 rm t1 t2
5066
5067fi
5213506e
RW
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5069$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5070do_compare="$gcc_cv_prog_cmp_skip"
5071
5072
55ffb5ed 5073
00020c16 5074# See if we are building gcc with C++.
5213506e
RW
5075# Check whether --enable-build-with-cxx was given.
5076if test "${enable_build_with_cxx+set}" = set; then :
5077 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
5078else
5079 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
5080fi
5081
00020c16 5082
592c90ff
KG
5083# Used for setting $lt_cv_objdir
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5085$as_echo_n "checking for objdir... " >&6; }
5086if test "${lt_cv_objdir+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088else
5089 rm -f .libs 2>/dev/null
5090mkdir .libs 2>/dev/null
5091if test -d .libs; then
5092 lt_cv_objdir=.libs
5093else
5094 # MS-DOS does not allow filenames that begin with a dot.
5095 lt_cv_objdir=_libs
5096fi
5097rmdir .libs 2>/dev/null
5098fi
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5100$as_echo "$lt_cv_objdir" >&6; }
5101objdir=$lt_cv_objdir
5102
5103
5104
5105
5106
5107cat >>confdefs.h <<_ACEOF
5108#define LT_OBJDIR "$lt_cv_objdir/"
5109_ACEOF
5110
5111
5112
acd26225 5113# Check for GMP, MPFR and MPC
3a5729ea 5114gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5115gmpinc=
e69bf64b 5116have_gmp=no
acd26225
KG
5117
5118# Specify a location for mpc
5119# check for this first so it ends up on the link line before mpfr.
5120
5213506e
RW
5121# Check whether --with-mpc was given.
5122if test "${with_mpc+set}" = set; then :
5123 withval=$with_mpc;
5124fi
acd26225 5125
acd26225 5126
9965e3cd 5127# Check whether --with-mpc-include was given.
5213506e
RW
5128if test "${with_mpc_include+set}" = set; then :
5129 withval=$with_mpc_include;
5130fi
acd26225 5131
acd26225 5132
9965e3cd 5133# Check whether --with-mpc-lib was given.
5213506e
RW
5134if test "${with_mpc_lib+set}" = set; then :
5135 withval=$with_mpc_lib;
5136fi
acd26225 5137
acd26225
KG
5138
5139if test "x$with_mpc" != x; then
3a5729ea
KG
5140 gmplibs="-L$with_mpc/lib $gmplibs"
5141 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5142fi
5143if test "x$with_mpc_include" != x; then
3a5729ea 5144 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5145fi
5146if test "x$with_mpc_lib" != x; then
3a5729ea 5147 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5148fi
5149if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5150 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5151 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5152 # Do not test the mpc version. Assume that it is sufficient, since
5153 # it is in the source tree, and the library has not been built yet
5154 # but it would be included on the link line in the version check below
5155 # hence making the test fail.
3a5729ea 5156 have_gmp=yes
acd26225 5157fi
e69bf64b 5158
bebf829d
PB
5159# Specify a location for mpfr
5160# check for this first so it ends up on the link line before gmp.
1c710c3c 5161
5213506e
RW
5162# Check whether --with-mpfr-dir was given.
5163if test "${with_mpfr_dir+set}" = set; then :
5164 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5165Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5166fi
5167
bebf829d
PB
5168
5169
5213506e
RW
5170# Check whether --with-mpfr was given.
5171if test "${with_mpfr+set}" = set; then :
5172 withval=$with_mpfr;
5173fi
1c710c3c 5174
bebf829d 5175
9965e3cd 5176# Check whether --with-mpfr-include was given.
5213506e
RW
5177if test "${with_mpfr_include+set}" = set; then :
5178 withval=$with_mpfr_include;
5179fi
1c710c3c 5180
8a877c9c 5181
9965e3cd 5182# Check whether --with-mpfr-lib was given.
5213506e
RW
5183if test "${with_mpfr_lib+set}" = set; then :
5184 withval=$with_mpfr_lib;
5185fi
8a877c9c 5186
bebf829d
PB
5187
5188if test "x$with_mpfr" != x; then
5189 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5190 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5191fi
8a877c9c 5192if test "x$with_mpfr_include" != x; then
3a5729ea 5193 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5194fi
5195if test "x$with_mpfr_lib" != x; then
5196 gmplibs="-L$with_mpfr_lib $gmplibs"
5197fi
e69bf64b 5198if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
592c90ff 5199 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
e69bf64b 5200 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
592c90ff 5201 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
e69bf64b
PB
5202 # Do not test the mpfr version. Assume that it is sufficient, since
5203 # it is in the source tree, and the library has not been built yet
5204 # but it would be included on the link line in the version check below
5205 # hence making the test fail.
5206 have_gmp=yes
5207fi
bebf829d 5208
6de9cd9a 5209# Specify a location for gmp
1c710c3c 5210
5213506e
RW
5211# Check whether --with-gmp-dir was given.
5212if test "${with_gmp_dir+set}" = set; then :
5213 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5214Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5215fi
5216
6de9cd9a 5217
6de9cd9a 5218
5213506e
RW
5219# Check whether --with-gmp was given.
5220if test "${with_gmp+set}" = set; then :
5221 withval=$with_gmp;
5222fi
1c710c3c 5223
6de9cd9a 5224
9965e3cd 5225# Check whether --with-gmp-include was given.
5213506e
RW
5226if test "${with_gmp_include+set}" = set; then :
5227 withval=$with_gmp_include;
5228fi
1c710c3c 5229
8a877c9c 5230
9965e3cd 5231# Check whether --with-gmp-lib was given.
5213506e
RW
5232if test "${with_gmp_lib+set}" = set; then :
5233 withval=$with_gmp_lib;
5234fi
8a877c9c
KG
5235
5236
6de9cd9a 5237
bebf829d
PB
5238if test "x$with_gmp" != x; then
5239 gmplibs="-L$with_gmp/lib $gmplibs"
5240 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5241fi
8a877c9c
KG
5242if test "x$with_gmp_include" != x; then
5243 gmpinc="-I$with_gmp_include $gmpinc"
5244fi
5245if test "x$with_gmp_lib" != x; then
5246 gmplibs="-L$with_gmp_lib $gmplibs"
5247fi
e69bf64b 5248if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5249 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5250 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5251 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5252 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e69bf64b
PB
5253 # Do not test the gmp version. Assume that it is sufficient, since
5254 # it is in the source tree, and the library has not been built yet
5255 # but it would be included on the link line in the version check below
5256 # hence making the test fail.
5257 have_gmp=yes
5258fi
6de9cd9a 5259
d943d7c4 5260if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5261 have_gmp=yes
5262 saved_CFLAGS="$CFLAGS"
5263 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5264 # Check for the recommended and required versions of GMP.
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5266$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5267
5268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5269/* end confdefs.h. */
5270#include "gmp.h"
5271int
5272main ()
5273{
5274
5275 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5276 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5277 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5278 choke me
5279 #endif
5280
5281 ;
5282 return 0;
5283}
5284_ACEOF
5285if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5287/* end confdefs.h. */
362c6d2f 5288#include <gmp.h>
1c710c3c
DJ
5289int
5290main ()
5291{
6de9cd9a 5292
362c6d2f
KG
5293 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5294 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5295 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5296 choke me
5297 #endif
1c710c3c
DJ
5298
5299 ;
5300 return 0;
5301}
5302_ACEOF
5213506e
RW
5303if ac_fn_c_try_compile "$LINENO"; then :
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5305$as_echo "yes" >&6; }
362c6d2f
KG
5306else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5308$as_echo "buggy but acceptable" >&6; }
5309fi
5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5311else
5213506e
RW
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5314fi
5213506e 5315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5316
acd26225 5317 # If we have GMP, check the MPFR version.
e69bf64b 5318 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5319 # Check for the recommended and required versions of MPFR.
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5321$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5323/* end confdefs.h. */
70ec446f 5324#include <gmp.h>
e69bf64b 5325 #include <mpfr.h>
1c710c3c
DJ
5326int
5327main ()
5328{
e48d66a9 5329
a3337ea2 5330 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5331 choke me
5332 #endif
1c710c3c
DJ
5333
5334 ;
5335 return 0;
5336}
5337_ACEOF
5213506e
RW
5338if ac_fn_c_try_compile "$LINENO"; then :
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5340/* end confdefs.h. */
a3993f33 5341#include <gmp.h>
e69bf64b 5342 #include <mpfr.h>
1c710c3c
DJ
5343int
5344main ()
5345{
a3993f33 5346
362c6d2f 5347 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5348 choke me
5349 #endif
acd26225
KG
5350
5351 ;
5352 return 0;
5353}
5354_ACEOF
5213506e
RW
5355if ac_fn_c_try_compile "$LINENO"; then :
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5357$as_echo "yes" >&6; }
acd26225 5358else
5213506e
RW
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5360$as_echo "buggy but acceptable" >&6; }
acd26225 5361fi
5213506e 5362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5363else
5213506e
RW
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365$as_echo "no" >&6; }; have_gmp=no
acd26225 5366fi
5213506e 5367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5368 fi
5369
5370 # Check for the MPC header version.
3a5729ea 5371 if test x"$have_gmp" = xyes ; then
362c6d2f 5372 # Check for the recommended and required versions of MPC.
5213506e
RW
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5374$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5376/* end confdefs.h. */
5377#include <mpc.h>
5378int
5379main ()
5380{
5381
362c6d2f
KG
5382 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5383 choke me
5384 #endif
5385
5386 ;
5387 return 0;
5388}
5389_ACEOF
5390if ac_fn_c_try_compile "$LINENO"; then :
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
5393#include <mpc.h>
5394int
5395main ()
5396{
5397
5398 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5399 choke me
5400 #endif
5401
5402 ;
5403 return 0;
5404}
5405_ACEOF
5213506e
RW
5406if ac_fn_c_try_compile "$LINENO"; then :
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5408$as_echo "yes" >&6; }
362c6d2f
KG
5409else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5411$as_echo "buggy but acceptable" >&6; }
5412fi
5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5414else
5213506e 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5416$as_echo "no" >&6; }; have_gmp=no
acd26225 5417fi
5213506e 5418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5419 fi
5420
5421 # Now check the MPFR library.
5422 if test x"$have_gmp" = xyes; then
5423 saved_LIBS="$LIBS"
5424 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5426$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5428/* end confdefs.h. */
3a5729ea 5429#include <mpc.h>
acd26225
KG
5430int
5431main ()
5432{
5433
5434 mpfr_t n;
5435 mpfr_t x;
3a5729ea 5436 mpc_t c;
acd26225
KG
5437 int t;
5438 mpfr_init (n);
5439 mpfr_init (x);
5440 mpfr_atan2 (n, n, x, GMP_RNDN);
5441 mpfr_erfc (n, x, GMP_RNDN);
5442 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5443 mpfr_clear(n);
5444 mpfr_clear(x);
5445 mpc_init2 (c, 53);
5446 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5447 mpc_cosh (c, c, MPC_RNDNN);
5448 mpc_pow (c, c, c, MPC_RNDNN);
5449 mpc_acosh (c, c, MPC_RNDNN);
5450 mpc_clear (c);
1c710c3c
DJ
5451
5452 ;
5453 return 0;
5454}
5455_ACEOF
5213506e
RW
5456if ac_fn_c_try_link "$LINENO"; then :
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458$as_echo "yes" >&6; }
1c710c3c 5459else
5213506e
RW
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5462fi
5213506e
RW
5463rm -f core conftest.err conftest.$ac_objext \
5464 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5465 LIBS="$saved_LIBS"
5466 fi
5467
e69bf64b 5468 CFLAGS="$saved_CFLAGS"
6de9cd9a 5469
362c6d2f
KG
5470# The library versions listed in the error message below should match
5471# the HARD-minimums enforced above.
e69bf64b 5472 if test x$have_gmp != xyes; then
362c6d2f 5473 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
3a5729ea
KG
5474Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5475their locations. Source code for these libraries can be found at
5476their respective hosting sites as well as at
5477ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5478http://gcc.gnu.org/install/prerequisites.html for additional info. If
5479you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5480make sure that you have installed both the libraries and the header
5481files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5482 fi
70ec446f
KG
5483fi
5484
acd26225
KG
5485# Flags needed for both GMP, MPFR and/or MPC.
5486
5487
6de9cd9a
DN
5488
5489
5490
9e3eba15 5491
f38095f3
JM
5492# Allow host libstdc++ to be specified for static linking with PPL.
5493
5213506e
RW
5494# Check whether --with-host-libstdcxx was given.
5495if test "${with_host_libstdcxx+set}" = set; then :
5496 withval=$with_host_libstdcxx;
5497fi
f38095f3 5498
f38095f3
JM
5499
5500case $with_host_libstdcxx in
5501 no|yes)
5213506e 5502 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5503 ;;
5504esac
f8bf9252 5505
00020c16
ILT
5506# Linker flags to use for stage1 or when not boostrapping.
5507
5213506e
RW
5508# Check whether --with-stage1-ldflags was given.
5509if test "${with_stage1_ldflags+set}" = set; then :
5510 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5511 stage1_ldflags=
5512 else
5513 stage1_ldflags=$withval
5514 fi
5515else
5516 stage1_ldflags=
5213506e
RW
5517fi
5518
00020c16
ILT
5519
5520
5521# Libraries to use for stage1 or when not bootstrapping.
5522
5213506e
RW
5523# Check whether --with-stage1-libs was given.
5524if test "${with_stage1_libs+set}" = set; then :
5525 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5526 stage1_libs=
5527 else
5528 stage1_libs=$withval
5529 fi
5530else
5531 stage1_libs=$with_host_libstdcxx
5213506e
RW
5532fi
5533
00020c16
ILT
5534
5535
00020c16
ILT
5536# Libraries to use for stage2 and later builds. This defaults to the
5537# argument passed to --with-host-libstdcxx.
5538
5213506e
RW
5539# Check whether --with-boot-libs was given.
5540if test "${with_boot_libs+set}" = set; then :
5541 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5542 poststage1_libs=
5543 else
5544 poststage1_libs=$withval
5545 fi
5546else
00020c16 5547 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5548fi
5549
00020c16
ILT
5550
5551
ed2eaa9f
ILT
5552# Linker flags to use for stage2 and later builds.
5553
5554# Check whether --with-boot-ldflags was given.
5555if test "${with_boot_ldflags+set}" = set; then :
5556 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5557 poststage1_ldflags=
5558 else
5559 poststage1_ldflags=$withval
5560 fi
5561else
5562 poststage1_ldflags=
5563 # With --enable-build-with-cxx, default to linking libstdc++ and
5564 # libgcc statically. But if the user explicitly specified the
5565 # libraries to use, trust that they are doing what they want.
5566 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5567 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5568 fi
5569fi
5570
5571
5572
f8bf9252 5573# Check for PPL
00020c16 5574ppllibs=" -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5575pplinc=
5576
5577
5213506e
RW
5578# Check whether --with-ppl was given.
5579if test "${with_ppl+set}" = set; then :
5580 withval=$with_ppl;
5213506e 5581fi
f8bf9252 5582
f8bf9252 5583
9965e3cd 5584# Check whether --with-ppl-include was given.
5213506e
RW
5585if test "${with_ppl_include+set}" = set; then :
5586 withval=$with_ppl_include;
5587fi
5588
f8bf9252 5589
9965e3cd 5590# Check whether --with-ppl-lib was given.
5213506e
RW
5591if test "${with_ppl_lib+set}" = set; then :
5592 withval=$with_ppl_lib;
5593fi
f8bf9252 5594
f8bf9252 5595
53095c56
SP
5596case $with_ppl in
5597 no)
5598 ppllibs=
5599 ;;
f61428ed 5600 "" | yes)
ad0abd3c 5601 ;;
53095c56 5602 *)
00020c16 5603 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
53095c56 5604 pplinc="-I$with_ppl/include $pplinc"
53095c56
SP
5605 ;;
5606esac
f8bf9252
SP
5607if test "x$with_ppl_include" != x; then
5608 pplinc="-I$with_ppl_include $pplinc"
5609fi
5610if test "x$with_ppl_lib" != x; then
00020c16 5611 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5612fi
5613if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
592c90ff 5614 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
5615 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5616 enable_ppl_version_check=no
f8bf9252
SP
5617fi
5618
5213506e
RW
5619# Check whether --enable-ppl-version-check was given.
5620if test "${enable_ppl_version_check+set}" = set; then :
5621 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
d789184e
SP
5622else
5623 ENABLE_PPL_CHECK=yes
5213506e
RW
5624fi
5625
f8bf9252 5626
ad0abd3c 5627if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
d789184e
SP
5628 saved_CFLAGS="$CFLAGS"
5629 CFLAGS="$CFLAGS $pplinc $gmpinc"
f1af9e5f
SP
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5631$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5213506e 5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5633/* end confdefs.h. */
5634#include "ppl_c.h"
5635int
5636main ()
5637{
5638
f1af9e5f 5639 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
d789184e
SP
5640 choke me
5641 #endif
f8bf9252
SP
5642
5643 ;
5644 return 0;
5645}
5646_ACEOF
5213506e
RW
5647if ac_fn_c_try_compile "$LINENO"; then :
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649$as_echo "yes" >&6; }
f8bf9252 5650else
5213506e 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ed3a56f3 5652$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
f8bf9252 5653fi
5213506e 5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5655 CFLAGS="$saved_CFLAGS"
5656fi
5657
5658# Flags needed for PPL
5659
5660
f8bf9252 5661
f8bf9252 5662
d789184e 5663# Check for CLOOG
d32ef397 5664
d789184e
SP
5665
5666
5213506e
RW
5667# Check whether --with-cloog was given.
5668if test "${with_cloog+set}" = set; then :
5669 withval=$with_cloog;
5213506e
RW
5670fi
5671
d789184e 5672
9965e3cd 5673# Check whether --with-cloog-include was given.
5213506e
RW
5674if test "${with_cloog_include+set}" = set; then :
5675 withval=$with_cloog_include;
5676fi
d789184e 5677
d789184e 5678
9965e3cd 5679# Check whether --with-cloog-lib was given.
5213506e
RW
5680if test "${with_cloog_lib+set}" = set; then :
5681 withval=$with_cloog_lib;
5682fi
d789184e 5683
d789184e 5684
f16e2237
TG
5685 # Check whether --enable-cloog-backend was given.
5686if test "${enable_cloog_backend+set}" = set; then :
5687 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5688 cloog_backend=isl
5689 elif test "x${enableval}" = "xppl"; then
5690 cloog_backend=ppl
5691 else
5692 cloog_backend=ppl-legacy
5693 fi
5694else
5695 cloog_backend=ppl-legacy
5696fi
5697
d32ef397
AS
5698 # Check whether --enable-cloog-version-check was given.
5699if test "${enable_cloog_version_check+set}" = set; then :
5700 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5701else
5702 ENABLE_CLOOG_CHECK=yes
5703fi
5704
5705
5706 # Initialize clooglibs and clooginc.
5707 case $with_cloog in
5708 no)
5709 clooglibs=
5710 clooginc=
5711 ;;
5712 "" | yes)
5713 ;;
5714 *)
5715 clooglibs="-L$with_cloog/lib"
5716 clooginc="-I$with_cloog/include"
5717 ;;
5718 esac
5719 if test "x${with_cloog_include}" != x ; then
5720 clooginc="-I$with_cloog_include"
5721 fi
5722 if test "x${with_cloog_lib}" != x; then
5723 clooglibs="-L$with_cloog_lib"
5724 fi
5725
5726
5727
5728
5729
17e72e5d 5730if test "x$with_ppl" = "xno"; then
ad0abd3c
RG
5731 with_cloog=no
5732fi
d32ef397
AS
5733if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5734 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5735 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5736 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5737fi
5738if test "x$with_cloog" != "xno"; then
ad0abd3c 5739
d32ef397
AS
5740
5741
5742 _cloog_saved_CFLAGS=$CFLAGS
5743 _cloog_saved_CPPFLAGS=$CPPFLAGS
5744 _cloog_saved_LDFLAGS=$LDFLAGS
5745 _cloog_saved_LIBS=$LIBS
5746
d32ef397
AS
5747 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5748
f16e2237 5749 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
0bb52d68 5750 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
f16e2237
TG
5751 LDFLAGS="${LDFLAGS} ${clooglibs}"
5752
5753 case $cloog_backend in
5754 "ppl-legacy")
5755 CFLAGS="${CFLAGS} ${pplinc}"
5756 LDFLAGS="${LDFLAGS} ${ppllibs}"
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5758$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
d32ef397
AS
5759if test "${gcc_cv_cloog_type+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761else
5762 LIBS="-lcloog ${_cloog_saved_LIBS}"
f16e2237 5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5764/* end confdefs.h. */
0bb52d68 5765#include "cloog/cloog.h"
d32ef397
AS
5766int
5767main ()
5768{
0bb52d68
TG
5769#ifndef CLOOG_PPL_BACKEND
5770 choke me
5771 #endif
d32ef397
AS
5772 ;
5773 return 0;
5774}
5775_ACEOF
5776if ac_fn_c_try_link "$LINENO"; then :
5777 gcc_cv_cloog_type="PPL Legacy"
5778else
f16e2237
TG
5779 gcc_cv_cloog_type=no
5780fi
5781rm -f core conftest.err conftest.$ac_objext \
5782 conftest$ac_exeext conftest.$ac_ext
5783fi
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5785$as_echo "$gcc_cv_cloog_type" >&6; }
5786 ;;
5787 "isl")
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5789$as_echo_n "checking for installed CLooG ISL... " >&6; }
5790if test "${gcc_cv_cloog_type+set}" = set; then :
5791 $as_echo_n "(cached) " >&6
5792else
5793 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5795/* end confdefs.h. */
0bb52d68 5796#include "cloog/cloog.h"
d32ef397
AS
5797int
5798main ()
5799{
5800cloog_version ()
5801 ;
5802 return 0;
5803}
5804_ACEOF
5805if ac_fn_c_try_link "$LINENO"; then :
f16e2237
TG
5806 gcc_cv_cloog_type="ISL"
5807else
5808 gcc_cv_cloog_type=no
5809fi
5810rm -f core conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5812fi
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5814$as_echo "$gcc_cv_cloog_type" >&6; }
5815 ;;
5816 "ppl")
5817 CFLAGS="${CFLAGS} ${pplinc}"
5818 LDFLAGS="${LDFLAGS} ${ppllibs}"
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5820$as_echo_n "checking for installed CLooG PPL... " >&6; }
5821if test "${gcc_cv_cloog_type+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
d32ef397
AS
5823else
5824 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
f16e2237 5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5826/* end confdefs.h. */
0bb52d68 5827#include "cloog/cloog.h"
f16e2237 5828 #include "cloog/ppl/cloog.h"
d32ef397
AS
5829int
5830main ()
5831{
5832cloog_version ()
5833 ;
5834 return 0;
5835}
5836_ACEOF
5837if ac_fn_c_try_link "$LINENO"; then :
f16e2237 5838 gcc_cv_cloog_type="PPL"
d32ef397
AS
5839else
5840 gcc_cv_cloog_type=no
d789184e 5841fi
d32ef397
AS
5842rm -f core conftest.err conftest.$ac_objext \
5843 conftest$ac_exeext conftest.$ac_ext
d789184e 5844fi
d32ef397
AS
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5846$as_echo "$gcc_cv_cloog_type" >&6; }
f16e2237
TG
5847 ;;
5848 *)
5849 gcc_cv_cloog_type=""
5850 esac
5213506e 5851
d32ef397
AS
5852 case $gcc_cv_cloog_type in
5853 "PPL Legacy")
0bb52d68 5854 clooginc="${clooginc}"
d32ef397
AS
5855 clooglibs="${clooglibs} -lcloog"
5856 cloog_org=no
5857 ;;
5858 "ISL")
5859 clooginc="${clooginc} ${_cloogorginc}"
5860 clooglibs="${clooglibs} -lcloog-isl"
5861 cloog_org=yes
5862 ;;
5863 "PPL")
5864 clooginc="${clooginc} ${_cloogorginc}"
5865 clooglibs="${clooglibs} -lcloog-ppl"
5866 cloog_org=yes
5867 ;;
5868 *)
5869 clooglibs=
5870 clooginc=
5871 cloog_org=
5872 ;;
5873 esac
d789184e 5874
d32ef397
AS
5875 LIBS=$_cloog_saved_LIBS
5876 CFLAGS=$_cloog_saved_CFLAGS
5877 CPPFLAGS=$_cloog_saved_CPPFLAGS
5878 LDFLAGS=$_cloog_saved_LDFLAGS
5879
5880
5881
5882
5883
5884 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5885 _cloog_saved_CFLAGS=$CFLAGS
5886 _cloog_saved_LDFLAGS=$LDFLAGS
5887
5888 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
27882098 5889 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
d32ef397
AS
5890
5891 if test "${cloog_org}" = yes ; then
aba2b02e
TG
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5893$as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
d32ef397
AS
5894if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5896else
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898/* end confdefs.h. */
5899#include "cloog/cloog.h"
5900int
5901main ()
5902{
5903#if CLOOG_VERSION_MAJOR != 0 \
5904 || CLOOG_VERSION_MINOR != 14 \
5905 || CLOOG_VERSION_REVISION < 0
5906 choke me
5907 #endif
5908 ;
5909 return 0;
5910}
5911_ACEOF
5912if ac_fn_c_try_compile "$LINENO"; then :
5913 gcc_cv_cloog_ct_0_14_0=yes
5914else
5915 gcc_cv_cloog_ct_0_14_0=no
5916fi
5917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918fi
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5920$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5921 elif test "${cloog_org}" = no ; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
f264ed56 5923$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
d32ef397
AS
5924if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926else
5213506e 5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5928/* end confdefs.h. */
5929#include "cloog/cloog.h"
5930int
5931main ()
5932{
d32ef397
AS
5933#if CLOOG_VERSION_MAJOR != 0 \
5934 || CLOOG_VERSION_MINOR != 15 \
5935 || CLOOG_VERSION_REVISION < 5
5936 choke me
5937 #endif
f8bf9252
SP
5938 ;
5939 return 0;
5940}
5941_ACEOF
0333b9a6
SP
5942if ac_fn_c_try_compile "$LINENO"; then :
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h. */
5945#include "cloog/cloog.h"
5946int
5947main ()
5948{
d32ef397
AS
5949#if CLOOG_VERSION_MAJOR != 0 \
5950 || CLOOG_VERSION_MINOR != 15 \
5951 || CLOOG_VERSION_REVISION < 9
5952 choke me
5953 #endif
0333b9a6
SP
5954 ;
5955 return 0;
5956}
5957_ACEOF
5213506e 5958if ac_fn_c_try_compile "$LINENO"; then :
d32ef397 5959 gcc_cv_cloog_ct_0_15_5=yes
0333b9a6 5960else
d32ef397 5961 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
0333b9a6
SP
5962fi
5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8bf9252 5964else
d32ef397 5965 gcc_cv_cloog_ct_0_15_5=no
f8bf9252 5966fi
5213506e 5967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e 5968fi
d32ef397
AS
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5970$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5971 fi
5972
5973 CFLAGS=$_cloog_saved_CFLAGS
5974 LDFLAGS=$_cloog_saved_LDFLAGS
5975 fi
f8bf9252 5976
f8bf9252
SP
5977
5978
5979
d32ef397
AS
5980
5981
5982
5983 if test "x${with_cloog}" != x \
5984 || test "x${with_cloog_include}" != x \
5985 || test "x${with_cloog_lib}" != x ; then
5986 graphite_requested=yes
5987 else
5988 graphite_requested=no
5989 fi
5990
5991
5992
5993 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5994 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5995 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5996 clooglibs=
5997 clooginc=
5998 fi
5999
6000 if test "${graphite_requested}" = yes \
6001 && test "x${clooglibs}" = x \
6002 && test "x${clooginc}" = x ; then
6003
6004 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6005 fi
6006
6007
6008fi
6009
d7f09764
DN
6010# Check for LTO support.
6011# Check whether --enable-lto was given.
6012if test "${enable_lto+set}" = set; then :
6013 enableval=$enable_lto; enable_lto=$enableval
6014else
6015 enable_lto=yes; default_enable_lto=yes
6016fi
6017
6018
7413962d 6019
9a02962b
DK
6020
6021
6022target_elf=no
6023case $target in
6024 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6025 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6026 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6027 target_elf=no
6028 ;;
6029 *)
6030 target_elf=yes
6031 ;;
6032esac
6033
6034if test $target_elf = yes; then :
48215350
DK
6035 # ELF platforms build the lto-plugin always.
6036 build_lto_plugin=yes
9a02962b 6037
9a02962b
DK
6038else
6039 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6040 case $target in
1cd0b716 6041 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
48215350 6042 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6043 *) enable_lto=no ;;
6044 esac
9a02962b 6045 else
db50fe7d
IS
6046 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6047 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6048 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6049 # warn during gcc/ subconfigure; unless you're bootstrapping with
6050 # -flto it won't be needed until after installation anyway.
6051 case $target in
1cd0b716 6052 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6053 *) if test x"$enable_lto" = x"yes"; then
6054 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6055 fi
6056 ;;
6057 esac
6058 fi
1cd0b716 6059 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6060 # Build it unless LTO was explicitly disabled.
1cd0b716 6061 case $target in
48215350 6062 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6063 *) ;;
6064 esac
48215350 6065
9a02962b
DK
6066fi
6067
d7f09764 6068
f8bf9252 6069
1e0f07d3 6070# By default, C is the only stage 1 language.
e1888513 6071stage1_languages=,c,
2805b53a 6072
00020c16 6073# Target libraries that we bootstrap.
ad1e5170 6074bootstrap_target_libs=,target-libgcc,
00020c16 6075
55ffb5ed
NN
6076# Figure out what language subdirectories are present.
6077# Look if the user specified --enable-languages="..."; if not, use
6078# the environment variable $LANGUAGES if defined. $LANGUAGES might
6079# go away some day.
6080# NB: embedded tabs in this IF block -- do not untabify
6081if test -d ${srcdir}/gcc; then
6082 if test x"${enable_languages+set}" != xset; then
6083 if test x"${LANGUAGES+set}" = xset; then
6084 enable_languages="${LANGUAGES}"
6085 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6086 else
6087 enable_languages=all
6088 fi
6089 else
6090 if test x"${enable_languages}" = x ||
6091 test x"${enable_languages}" = xyes;
6092 then
6093 echo configure.in: --enable-languages needs at least one language argument 1>&2
6094 exit 1
6095 fi
6096 fi
6097 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6098
7f26dfa3
FXC
6099 # 'f95' is the old name for the 'fortran' language. We issue a warning
6100 # and make the substitution.
6101 case ,${enable_languages}, in
6102 *,f95,*)
6103 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6104 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6105 ;;
6106 esac
6107
55ffb5ed
NN
6108 # First scan to see if an enabled language requires some other language.
6109 # We assume that a given config-lang.in will list all the language
6110 # front ends it requires, even if some are required indirectly.
6111 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6112 case ${lang_frag} in
6113 ..) ;;
6114 # The odd quoting in the next line works around
6115 # an apparent bug in bash 1.12 on linux.
6116 ${srcdir}/gcc/[*]/config-lang.in) ;;
6117 *)
69ecd18f
ILT
6118 # From the config-lang.in, get $language, $lang_requires, and
6119 # $lang_requires_boot_languages.
55ffb5ed
NN
6120 language=
6121 lang_requires=
69ecd18f 6122 lang_requires_boot_languages=
55ffb5ed 6123 . ${lang_frag}
69ecd18f 6124 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6125 case ,${enable_languages}, in
6126 *,$other,*) ;;
6127 *,all,*) ;;
6128 *,$language,*)
6129 echo " \`$other' language required by \`$language'; enabling" 1>&2
6130 enable_languages="${enable_languages},${other}"
6131 ;;
6132 esac
6133 done
69ecd18f
ILT
6134 for other in ${lang_requires_boot_languages} ; do
6135 if test "$other" != "c"; then
6136 case ,${enable_stage1_languages}, in
6137 *,$other,*) ;;
6138 *,all,*) ;;
6139 *)
6140 case ,${enable_languages}, in
6141 *,$language,*)
6142 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6143 enable_stage1_languages="$enable_stage1_languages,${other}"
6144 ;;
6145 esac
6146 ;;
6147 esac
6148 fi
6149 done
55ffb5ed
NN
6150 ;;
6151 esac
6152 done
6153
e1888513 6154 new_enable_languages=,c,
d7f09764
DN
6155
6156 # If LTO is enabled, add the LTO front end.
6157 extra_host_libiberty_configure_flags=
6158 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6159 case ,${enable_languages}, in
6160 *,lto,*) ;;
6161 *) enable_languages="${enable_languages},lto" ;;
6162 esac
1cd0b716 6163 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6164 configdirs="$configdirs lto-plugin"
6165 extra_host_libiberty_configure_flags=--enable-shared
6166 fi
6167 fi
6168
6169
55ffb5ed 6170 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6171 potential_languages=,c,
55ffb5ed
NN
6172
6173 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6174 case ${lang_frag} in
6175 ..) ;;
6176 # The odd quoting in the next line works around
6177 # an apparent bug in bash 1.12 on linux.
6178 ${srcdir}/gcc/[*]/config-lang.in) ;;
6179 *)
1c710c3c 6180 # From the config-lang.in, get $language, $target_libs,
2805b53a 6181 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6182 language=
6183 target_libs=
6184 lang_dirs=
1546bb64 6185 subdir_requires=
e1888513
PB
6186 boot_language=no
6187 build_by_default=yes
55ffb5ed 6188 . ${lang_frag}
e1888513
PB
6189 if test x${language} = x; then
6190 echo "${lang_frag} doesn't set \$language." 1>&2
6191 exit 1
6192 fi
6193
f61428ed
AO
6194 if test "$language" = "c++" \
6195 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
00020c16
ILT
6196 boot_language=yes
6197 fi
6198
e1888513
PB
6199 case ,${enable_languages}, in
6200 *,${language},*)
55ffb5ed
NN
6201 # Language was explicitly selected; include it.
6202 add_this_lang=yes
6203 ;;
e1888513
PB
6204 *,all,*)
6205 # 'all' was selected, select it if it is a default language
6206 add_this_lang=${build_by_default}
55ffb5ed
NN
6207 ;;
6208 *)
6209 add_this_lang=no
6210 ;;
6211 esac
6de9cd9a 6212
1546bb64 6213 # Disable languages that need other directories if these aren't available.
95695ad3 6214 for i in $subdir_requires; do
b6348cb3 6215 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6216 case ,${enable_languages}, in
6217 *,${language},*)
6218 # Specifically requested language; tell them.
5213506e 6219 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6220 ;;
6221 *)
6222 # Silently disable.
e1888513 6223 add_this_lang=unsupported
1546bb64
PB
6224 ;;
6225 esac
6226 done
6227
e1888513
PB
6228 # Disable Ada if no preexisting GNAT is available.
6229 case ,${enable_languages},:${language}:${have_gnat} in
6230 *,${language},*:ada:no)
6231 # Specifically requested language; tell them.
5213506e 6232 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6233 ;;
6234 *:ada:no)
6235 # Silently disable.
6236 add_this_lang=unsupported
6237 ;;
6238 esac
6239
4fab7234
HPN
6240 # Disable a language that is unsupported by the target.
6241 case " $unsupported_languages " in
6242 *" $language "*)
e1888513 6243 add_this_lang=unsupported
4fab7234
HPN
6244 ;;
6245 esac
6246
6de9cd9a 6247 case $add_this_lang in
e1888513 6248 unsupported)
55ffb5ed 6249 # Remove language-dependent dirs.
2805b53a
NN
6250 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6251 ;;
e1888513
PB
6252 no)
6253 # Remove language-dependent dirs; still show language as supported.
6254 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6255 potential_languages="${potential_languages}${language},"
6256 ;;
6257 yes)
6258 new_enable_languages="${new_enable_languages}${language},"
6259 potential_languages="${potential_languages}${language},"
2805b53a 6260 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
ab9dcd0c
RW
6261 case "${boot_language}:,$enable_stage1_languages," in
6262 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6263 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6264 case ",$stage1_languages," in
6265 *,$language,* | ,yes, | ,all,) ;;
6266 *) stage1_languages="${stage1_languages}${language}," ;;
6267 esac
00020c16
ILT
6268 # We need to bootstrap any supporting libraries.
6269 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6270 ;;
6271 esac
6272 ;;
55ffb5ed
NN
6273 esac
6274 ;;
6275 esac
6276 done
6277
5213506e
RW
6278 # Check whether --enable-stage1-languages was given.
6279if test "${enable_stage1_languages+set}" = set; then :
6280 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6281 ,no,|,,)
6282 # Set it to something that will have no effect in the loop below
6283 enable_stage1_languages=c ;;
6284 ,yes,)
6285 enable_stage1_languages=`echo $new_enable_languages | \
6286 sed -e "s/^,//" -e "s/,$//" ` ;;
6287 *,all,*)
6288 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6289 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6290 esac
6291
6292 # Add "good" languages from enable_stage1_languages to stage1_languages,
6293 # while "bad" languages go in missing_languages. Leave no duplicates.
6294 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6295 case $potential_languages in
6296 *,$i,*)
6297 case $stage1_languages in
6298 *,$i,*) ;;
6299 *) stage1_languages="$stage1_languages$i," ;;
6300 esac ;;
6301 *)
6302 case $missing_languages in
6303 *,$i,*) ;;
6304 *) missing_languages="$missing_languages$i," ;;
6305 esac ;;
6306 esac
6307 done
5213506e
RW
6308fi
6309
e1888513
PB
6310
6311 # Remove leading/trailing commas that were added for simplicity
6312 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6313 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6314 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6315 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6316
55ffb5ed 6317 if test "x$missing_languages" != x; then
5213506e 6318 as_fn_error "
0cf085e4 6319The following requested languages could not be built: ${missing_languages}
5213506e 6320Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6321 fi
55ffb5ed
NN
6322 if test "x$new_enable_languages" != "x$enable_languages"; then
6323 echo The following languages will be built: ${new_enable_languages}
e1888513 6324 enable_languages="$new_enable_languages"
55ffb5ed 6325 fi
e1888513 6326
1c710c3c 6327
b2eaac4a 6328 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6329fi
6330
27079765
AH
6331# Handle --disable-<component> generically.
6332for dir in $configdirs $build_configdirs $target_configdirs ; do
6333 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6334 varname=`echo $dirname | sed -e s/+/_/g`
6335 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6336 noconfigdirs="$noconfigdirs $dir"
6337 fi
6338done
6339
7cd0cf9c 6340# Check for Boehm's garbage collector
5213506e
RW
6341# Check whether --enable-objc-gc was given.
6342if test "${enable_objc_gc+set}" = set; then :
6343 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6344 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6345 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6346 ;;
6347esac
5213506e
RW
6348fi
6349
7cd0cf9c
DA
6350
6351# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6352case ,${enable_languages},:${enable_objc_gc} in
6353 *,objc,*:yes)
7cd0cf9c
DA
6354 # Keep target-boehm-gc if requested for Objective-C.
6355 ;;
7cd0cf9c 6356 *)
2a79fd67
DA
6357 # Otherwise remove target-boehm-gc depending on target-libjava.
6358 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6359 noconfigdirs="$noconfigdirs target-boehm-gc"
6360 fi
7cd0cf9c
DA
6361 ;;
6362esac
6363
ee6a22df
L
6364# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6365# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6366# If we have the source for $noconfigdirs entries, add them to $notsupp.
6367
6368notsupp=""
6369for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6370 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6371 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6372 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6373 if test -r $srcdir/$dirname/configure ; then
6374 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6375 true
6376 else
6377 notsupp="$notsupp $dir"
6378 fi
6379 fi
6380 fi
ee6a22df
L
6381 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6382 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6383 if test -r $srcdir/$dirname/configure ; then
6384 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6385 true
6386 else
6387 notsupp="$notsupp $dir"
6388 fi
6389 fi
6390 fi
55ffb5ed
NN
6391 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6392 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6393 if test -r $srcdir/$dirname/configure ; then
6394 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6395 true
6396 else
6397 notsupp="$notsupp $dir"
6398 fi
6399 fi
6400 fi
6401done
6402
6403# Sometimes the tools are distributed with libiberty but with no other
6404# libraries. In that case, we don't want to build target-libiberty.
54fdc474 6405# Don't let libgcc imply libiberty either.
55ffb5ed 6406if test -n "${target_configdirs}" ; then
54fdc474 6407 libgcc=
55ffb5ed
NN
6408 others=
6409 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
6410 if test "$i" = "libgcc"; then
6411 libgcc=target-libgcc
6412 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
6413 if test -r $srcdir/$i/configure ; then
6414 others=yes;
6415 break;
6416 fi
6417 fi
6418 done
6419 if test -z "${others}" ; then
54fdc474 6420 target_configdirs=$libgcc
55ffb5ed
NN
6421 fi
6422fi
6423
6424# Quietly strip out all directories which aren't configurable in this tree.
6425# This relies on all configurable subdirectories being autoconfiscated, which
6426# is now the case.
23f6b2f9
PB
6427build_configdirs_all="$build_configdirs"
6428build_configdirs=
6429for i in ${build_configdirs_all} ; do
1c710c3c 6430 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6431 if test -f ${srcdir}/$j/configure ; then
6432 build_configdirs="${build_configdirs} $i"
6433 fi
6434done
6435
55ffb5ed
NN
6436configdirs_all="$configdirs"
6437configdirs=
6438for i in ${configdirs_all} ; do
6439 if test -f ${srcdir}/$i/configure ; then
6440 configdirs="${configdirs} $i"
6441 fi
6442done
23f6b2f9 6443
55ffb5ed
NN
6444target_configdirs_all="$target_configdirs"
6445target_configdirs=
6446for i in ${target_configdirs_all} ; do
1c710c3c 6447 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6448 if test -f ${srcdir}/$j/configure ; then
6449 target_configdirs="${target_configdirs} $i"
6450 fi
6451done
6452
6453# Produce a warning message for the subdirs we can't configure.
6454# This isn't especially interesting in the Cygnus tree, but in the individual
6455# FSF releases, it's important to let people know when their machine isn't
6456# supported by the one or two programs in a package.
6457
6458if test -n "${notsupp}" && test -z "${norecursion}" ; then
6459 # If $appdirs is non-empty, at least one of those directories must still
6460 # be configured, or we error out. (E.g., if the gas release supports a
6461 # specified target in some subdirs but not the gas subdir, we shouldn't
6462 # pretend that all is well.)
6463 if test -n "$appdirs" ; then
6464 for dir in $appdirs ; do
6465 if test -r $dir/Makefile.in ; then
6466 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6467 appdirs=""
6468 break
6469 fi
23f6b2f9 6470 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6471 appdirs=""
6472 break
6473 fi
6474 fi
6475 done
6476 if test -n "$appdirs" ; then
6477 echo "*** This configuration is not supported by this package." 1>&2
6478 exit 1
6479 fi
6480 fi
6481 # Okay, some application will build, or we don't care to check. Still
6482 # notify of subdirs not getting built.
6483 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6484 echo " ${notsupp}" 1>&2
6485 echo " (Any other directories should still work fine.)" 1>&2
6486fi
6487
6488case "$host" in
6489 *msdosdjgpp*)
6490 enable_gdbtk=no ;;
6491esac
6492
c3a86da9
DJ
6493# To find our prefix, in gcc_cv_tool_prefix.
6494
6495# The user is always right.
6496if test "${PATH_SEPARATOR+set}" != set; then
6497 echo "#! /bin/sh" >conf$$.sh
6498 echo "exit 0" >>conf$$.sh
6499 chmod +x conf$$.sh
6500 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6501 PATH_SEPARATOR=';'
6502 else
6503 PATH_SEPARATOR=:
6504 fi
6505 rm -f conf$$.sh
6506fi
6507
6508
6509
6510if test "x$exec_prefix" = xNONE; then
6511 if test "x$prefix" = xNONE; then
6512 gcc_cv_tool_prefix=$ac_default_prefix
6513 else
6514 gcc_cv_tool_prefix=$prefix
6515 fi
6516else
6517 gcc_cv_tool_prefix=$exec_prefix
6518fi
6519
6520# If there is no compiler in the tree, use the PATH only. In any
6521# case, if there is no compiler in the tree nobody should use
6522# AS_FOR_TARGET and LD_FOR_TARGET.
6523if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6524 gcc_version=`cat $srcdir/gcc/BASE-VER`
6525 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6526 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6527 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6528 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6529 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6530 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6531else
6532 gcc_cv_tool_dirs=
6533fi
6534
6535if test x$build = x$target && test -n "$md_exec_prefix"; then
6536 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6537fi
6538
6539
6540
55ffb5ed
NN
6541copy_dirs=
6542
1c710c3c 6543
5213506e
RW
6544# Check whether --with-build-sysroot was given.
6545if test "${with_build_sysroot+set}" = set; then :
6546 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6547 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6548 fi
6549else
6550 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6551fi
526635cb
MM
6552
6553
c8aea42c 6554
5213506e
RW
6555
6556# Check whether --with-debug-prefix-map was given.
6557if test "${with_debug_prefix_map+set}" = set; then :
6558 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6559 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6560 for debug_map in $withval; do
6561 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6562 done
6563 fi
6564else
6565 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6566fi
6567
c8aea42c
PB
6568
6569
1c8bd6a3
PB
6570# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6571# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6572# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6573# We want to ensure that TARGET libraries (which we know are built with
6574# gcc) are built with "-O2 -g", so include those options when setting
6575# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6576if test "x$CFLAGS_FOR_TARGET" = x; then
6577 CFLAGS_FOR_TARGET=$CFLAGS
6578 case " $CFLAGS " in
6579 *" -O2 "*) ;;
6580 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6581 esac
6582 case " $CFLAGS " in
6583 *" -g "* | *" -g3 "*) ;;
6584 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6585 esac
6586fi
6587
6588
6589if test "x$CXXFLAGS_FOR_TARGET" = x; then
6590 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6591 case " $CXXFLAGS " in
6592 *" -O2 "*) ;;
6593 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6594 esac
6595 case " $CXXFLAGS " in
6596 *" -g "* | *" -g3 "*) ;;
6597 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6598 esac
6599fi
6600
6601
55ffb5ed
NN
6602# Handle --with-headers=XXX. If the value is not "yes", the contents of
6603# the named directory are copied to $(tooldir)/sys-include.
6604if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6605 if test x${is_cross_compiler} = xno ; then
6606 echo 1>&2 '***' --with-headers is only supported when cross compiling
6607 exit 1
6608 fi
6609 if test x"${with_headers}" != xyes ; then
c3a86da9 6610 x=${gcc_cv_tool_prefix}
1c710c3c 6611 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6612 fi
6613fi
6614
6615# Handle --with-libs=XXX. If the value is not "yes", the contents of
6616# the name directories are copied to $(tooldir)/lib. Multiple directories
6617# are permitted.
6618if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6619 if test x${is_cross_compiler} = xno ; then
6620 echo 1>&2 '***' --with-libs is only supported when cross compiling
6621 exit 1
6622 fi
6623 if test x"${with_libs}" != xyes ; then
6624 # Copy the libraries in reverse order, so that files in the first named
6625 # library override files in subsequent libraries.
c3a86da9 6626 x=${gcc_cv_tool_prefix}
55ffb5ed 6627 for l in ${with_libs}; do
1c710c3c 6628 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6629 done
6630 fi
6631fi
6632
d7f09764 6633# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6634#
6635# This is done by determining whether or not the appropriate directory
6636# is available, and by checking whether or not specific configurations
6637# have requested that this magic not happen.
1c710c3c
DJ
6638#
6639# The command line options always override the explicit settings in
e8b05380
PB
6640# configure.in, and the settings in configure.in override this magic.
6641#
1c710c3c 6642# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6643# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6644# --without-gnu-ld options for the configure script. Similarly, if
6645# the default is to use the included zlib and you don't want to do that,
6646# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6647
6648if test x${use_gnu_as} = x &&
6649 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6650 with_gnu_as=yes
6651 extra_host_args="$extra_host_args --with-gnu-as"
6652fi
6653
6654if test x${use_gnu_ld} = x &&
5afab7ad 6655 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6656 with_gnu_ld=yes
6657 extra_host_args="$extra_host_args --with-gnu-ld"
6658fi
6659
d7f09764
DN
6660if test x${use_included_zlib} = x &&
6661 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6662 :
6663else
6664 with_system_zlib=yes
6665 extra_host_args="$extra_host_args --with-system-zlib"
6666fi
6667
e8b05380
PB
6668# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6669# can detect this case.
6670
6671if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6672 with_newlib=yes
6673 extra_host_args="$extra_host_args --with-newlib"
6674fi
6675
55ffb5ed
NN
6676# Handle ${copy_dirs}
6677set fnord ${copy_dirs}
6678shift
6679while test $# != 0 ; do
6680 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6681 :
6682 else
6683 echo Copying $1 to $2
6684
6685 # Use the install script to create the directory and all required
6686 # parent directories.
6687 if test -d $2 ; then
6688 :
6689 else
6690 echo >config.temp
6691 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6692 fi
6693
6694 # Copy the directory, assuming we have tar.
6695 # FIXME: Should we use B in the second tar? Not all systems support it.
6696 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6697
6698 # It is the responsibility of the user to correctly adjust all
6699 # symlinks. If somebody can figure out how to handle them correctly
6700 # here, feel free to add the code.
6701
6702 echo $1 > $2/COPIED
6703 fi
6704 shift; shift
6705done
6706
e8b05380
PB
6707# Determine a target-dependent exec_prefix that the installed
6708# gcc will search in. Keep this list sorted by triplet, with
6709# the *-*-osname triplets last.
6710md_exec_prefix=
6711case "${target}" in
6712 alpha*-*-*vms*)
6713 md_exec_prefix=/gnu/lib/gcc-lib
6714 ;;
30b74385 6715 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6716 md_exec_prefix=/dev/env/DJDIR/bin
6717 ;;
30b74385 6718 i[34567]86-*-sco3.2v5*)
e8b05380
PB
6719 if test $with_gnu_as = yes; then
6720 md_exec_prefix=/usr/gnu/bin
6721 else
6722 md_exec_prefix=/usr/ccs/bin/elf
6723 fi
6724 ;;
6725
6726 mn10300-*-* | \
6727 powerpc-*-chorusos* | \
6728 powerpc*-*-eabi* | \
6729 powerpc*-*-sysv* | \
6730 powerpc*-*-kaos* | \
6731 s390x-ibm-tpf*)
6732 md_exec_prefix=/usr/ccs/bin
6733 ;;
6734 sparc64-*-elf*)
6735 ;;
6736 v850*-*-*)
6737 md_exec_prefix=/usr/ccs/bin
6738 ;;
aa12a573 6739 xtensa*-*-elf*)
e8b05380
PB
6740 ;;
6741
6742 *-*-beos* | \
6743 *-*-elf* | \
6744 *-*-hpux* | \
6745 *-*-netware* | \
6746 *-*-nto-qnx* | \
6747 *-*-rtems* | \
6748 *-*-solaris2* | \
30b74385 6749 *-*-sysv[45]* | \
e8b05380
PB
6750 *-*-vxworks* | \
6751 *-wrs-windiss)
6752 md_exec_prefix=/usr/ccs/bin
6753 ;;
6754esac
6755
671aa708
NN
6756extra_arflags_for_target=
6757extra_nmflags_for_target=
6758extra_ranlibflags_for_target=
6759target_makefile_frag=/dev/null
6760case "${target}" in
3e19841a
PB
6761 mep*-*-*)
6762 target_makefile_frag="config/mt-mep"
6763 ;;
58e24147
AM
6764 spu-*-*)
6765 target_makefile_frag="config/mt-spu"
6766 ;;
4bf6c438
RS
6767 mips*-sde-elf*)
6768 target_makefile_frag="config/mt-sde"
6769 ;;
1ec3b87b
RS
6770 mipsisa*-*-elfoabi*)
6771 target_makefile_frag="config/mt-mips-elfoabi"
6772 ;;
08d0963a
RS
6773 mips*-*-*linux* | mips*-*-gnu*)
6774 target_makefile_frag="config/mt-mips-gnu"
6775 ;;
61fec9ff 6776 *-*-netware*)
671aa708
NN
6777 target_makefile_frag="config/mt-netware"
6778 ;;
416ac4d4 6779 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6780 target_makefile_frag="config/mt-gnu"
671aa708
NN
6781 ;;
6782 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6783 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6784 # commands to handle both 32-bit and 64-bit objects. These flags are
6785 # harmless if we're using GNU nm or ar.
6786 extra_arflags_for_target=" -X32_64"
6787 extra_nmflags_for_target=" -B -X32_64"
6788 ;;
0aeb3cc6
JH
6789 *-*-darwin[3-9]*)
6790 # ranlib before Darwin10 requires the -c flag to look at common symbols.
671aa708
NN
6791 extra_ranlibflags_for_target=" -c"
6792 ;;
6793 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6794 target_makefile_frag="config/mt-wince"
6795 ;;
6796esac
6797
6798alphaieee_frag=/dev/null
6799case $target in
6800 alpha*-*-*)
6801 # This just makes sure to use the -mieee option to build target libs.
6802 # This should probably be set individually by each library.
6803 alphaieee_frag="config/mt-alphaieee"
6804 ;;
6805esac
6806
6807# If --enable-target-optspace always use -Os instead of -O2 to build
6808# the target libraries, similarly if it is not specified, use -Os
6809# on selected platforms.
6810ospace_frag=/dev/null
6811case "${enable_target_optspace}:${target}" in
6812 yes:*)
6813 ospace_frag="config/mt-ospace"
6814 ;;
6815 :d30v-*)
6816 ospace_frag="config/mt-d30v"
6817 ;;
6818 :m32r-* | :d10v-* | :fr30-*)
6819 ospace_frag="config/mt-ospace"
6820 ;;
6821 no:* | :*)
6822 ;;
6823 *)
6824 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6825 ;;
6826esac
6827
671aa708
NN
6828# Default to using --with-stabs for certain targets.
6829if test x${with_stabs} = x ; then
6830 case "${target}" in
89a95129 6831 mips*-*-irix[56]*)
671aa708
NN
6832 ;;
6833 mips*-*-* | alpha*-*-osf*)
6834 with_stabs=yes;
6835 extra_host_args="${extra_host_args} --with-stabs"
6836 ;;
6837 esac
6838fi
6839
6840# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6841# them automatically.
6842case "${host}" in
1c710c3c 6843 hppa*64*-*-hpux11*)
671aa708
NN
6844 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6845 ;;
6846esac
6847
671aa708
NN
6848# Some systems (e.g., one of the i386-aix systems the gas testers are
6849# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6850tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6851build_tooldir=${tooldir}
6852
671aa708
NN
6853# Create a .gdbinit file which runs the one in srcdir
6854# and tells GDB to look there for source files.
6855
6856if test -r ${srcdir}/.gdbinit ; then
6857 case ${srcdir} in
6858 .) ;;
6859 *) cat > ./.gdbinit <<EOF
6860# ${NO_EDIT}
6861dir ${srcdir}
6862dir .
6863source ${srcdir}/.gdbinit
6864EOF
6865 ;;
6866 esac
6867fi
6868
671aa708
NN
6869# Make sure that the compiler is able to generate an executable. If it
6870# can't, we are probably in trouble. We don't care whether we can run the
6871# executable--we might be using a cross compiler--we only care whether it
6872# can be created. At this point the main configure script has set CC.
6873we_are_ok=no
6874echo "int main () { return 0; }" > conftest.c
6875${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6876if test $? = 0 ; then
6877 if test -s conftest || test -s conftest.exe ; then
6878 we_are_ok=yes
6879 fi
1c710c3c 6880fi
671aa708
NN
6881case $we_are_ok in
6882 no)
6883 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6884 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6885 rm -f conftest*
6886 exit 1
6887 ;;
6888esac
6889rm -f conftest*
6890
6891# The Solaris /usr/ucb/cc compiler does not appear to work.
6892case "${host}" in
6893 sparc-sun-solaris2*)
6894 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6895 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6896 could_use=
6897 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6898 if test -d /opt/cygnus/bin ; then
6899 if test "$could_use" = "" ; then
6900 could_use="/opt/cygnus/bin"
6901 else
6902 could_use="$could_use or /opt/cygnus/bin"
6903 fi
6904 fi
6905 if test "$could_use" = "" ; then
6906 echo "Warning: compilation may fail because you're using"
6907 echo "/usr/ucb/cc. You should change your PATH or CC "
6908 echo "variable and rerun configure."
6909 else
6910 echo "Warning: compilation may fail because you're using"
6911 echo "/usr/ucb/cc, when you should use the C compiler from"
6912 echo "$could_use. You should change your"
6913 echo "PATH or CC variable and rerun configure."
6914 fi
6915 fi
6916 ;;
6917esac
6918
d89f0ad6 6919# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6920case "${host}" in
6921 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 6922 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6923 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6924 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6925esac
6926
d89f0ad6
AL
6927# On systems where the dynamic library environment variable is PATH,
6928# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6929# built executables to PATH.
6930if test "$RPATH_ENVVAR" = PATH; then
6931 GCC_SHLIB_SUBDIR=/shlib
6932else
6933 GCC_SHLIB_SUBDIR=
6934fi
6935
671aa708
NN
6936# Record target_configdirs and the configure arguments for target and
6937# build configuration in Makefile.
6938target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6939build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6940
ad1e5170
JR
6941# If we are building libgomp, bootstrap it.
6942if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6943 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6944fi
6945
671aa708
NN
6946# Determine whether gdb needs tk/tcl or not.
6947# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6948# and in that case we want gdb to be built without tk. Ugh!
6949# In fact I believe gdb is the *only* package directly dependent on tk,
6950# so we should be able to put the 'maybe's in unconditionally and
6951# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6952# 100% sure that that's safe though.
e914a571 6953
b4f96efe 6954gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6955case "$enable_gdbtk" in
6956 no)
6957 GDB_TK="" ;;
e914a571
AC
6958 yes)
6959 GDB_TK="${gdb_tk}" ;;
671aa708 6960 *)
e914a571
AC
6961 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6962 # distro. Eventually someone will fix this and move Insight, nee
6963 # gdbtk to a separate directory.
6964 if test -d ${srcdir}/gdb/gdbtk ; then
6965 GDB_TK="${gdb_tk}"
6966 else
6967 GDB_TK=""
6968 fi
6969 ;;
671aa708 6970esac
ef9db8d5
DJ
6971CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6972INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6973
60975492 6974# Strip out unwanted targets.
8b87bb96
NN
6975
6976# While at that, we remove Makefiles if we were started for recursive
6977# configuration, so that the top-level Makefile reconfigures them,
6978# like we used to do when configure itself was recursive.
8b87bb96 6979
3e54529c
RW
6980# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6981# but now we're fixing up the Makefile ourselves with the additional
6982# commands passed to AC_CONFIG_FILES. Use separate variables
6983# extrasub-{build,host,target} not because there is any reason to split
6984# the substitutions up that way, but only to remain below the limit of
6985# 99 commands in a script, for HP-UX sed.
6986# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6987
5213506e
RW
6988# Check whether --enable-bootstrap was given.
6989if test "${enable_bootstrap+set}" = set; then :
6990 enableval=$enable_bootstrap;
f516a7da 6991else
ce521a9c 6992 enable_bootstrap=default
5213506e
RW
6993fi
6994
f516a7da 6995
ce521a9c
PB
6996# Issue errors and warnings for invalid/strange bootstrap combinations.
6997case "$configdirs" in
6998 *gcc*) have_compiler=yes ;;
6999 *) have_compiler=no ;;
7000esac
7001
7002case "$have_compiler:$host:$target:$enable_bootstrap" in
7003 *:*:*:no) ;;
7004
1ca26cd2 7005 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
7006 # and we are in a native configuration.
7007 yes:$build:$build:default)
1ca26cd2 7008 enable_bootstrap=yes ;;
ce521a9c
PB
7009
7010 *:*:*:default)
7011 enable_bootstrap=no ;;
7012
7013 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 7014 yes:$build:$build:yes)
ce521a9c
PB
7015 ;;
7016
7017 # Other configurations, but we have a compiler. Assume the user knows
7018 # what he's doing.
2d309510 7019 yes:*:*:yes)
5213506e
RW
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7021$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
7022 ;;
7023
7024 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 7025 no:*:*:yes)
5213506e 7026 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ce521a9c
PB
7027
7028 # Fail if wrong command line
7029 *)
5213506e 7030 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
ce521a9c
PB
7031 ;;
7032esac
7033
ca6d0d62
RW
7034case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7035 *,c++,*:yes:yes) ;;
7036 *:yes:yes)
7037 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7038 ;;
7039esac
7040
79cd2b23
RW
7041case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7042 yes:yes:*\ gold\ *:*,c++,*) ;;
7043 yes:yes:*\ gold\ *:*)
7044 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7045 ;;
7046esac
7047
ce521a9c 7048# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 7049case $enable_bootstrap in
f516a7da 7050 yes)
e12c4094
AO
7051 bootstrap_suffix=bootstrap
7052 BUILD_CONFIG=bootstrap-debug
7053 ;;
f516a7da 7054 no)
e12c4094
AO
7055 bootstrap_suffix=no-bootstrap
7056 BUILD_CONFIG=
7057 ;;
f516a7da
PB
7058esac
7059
e12c4094
AO
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7061$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7062
7063
7064# Check whether --with-build-config was given.
7065if test "${with_build_config+set}" = set; then :
7066 withval=$with_build_config; case $with_build_config in
7067 yes) with_build_config= ;;
7068 no) with_build_config= BUILD_CONFIG= ;;
7069 esac
7070fi
7071
7072
e12c4094
AO
7073if test "x${with_build_config}" != x; then
7074 BUILD_CONFIG=$with_build_config
7075else
7076 case $BUILD_CONFIG in
7077 bootstrap-debug)
7078 if echo "int f (void) { return 0; }" > conftest.c &&
7079 ${CC} -c conftest.c &&
7080 mv conftest.o conftest.o.g0 &&
7081 ${CC} -c -g conftest.c &&
7082 mv conftest.o conftest.o.g &&
615c8ffa 7083 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
7084 :
7085 else
7086 BUILD_CONFIG=
7087 fi
7088 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7089 ;;
7090 esac
7091fi
7092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7093$as_echo "$BUILD_CONFIG" >&6; }
7094
7095
3e54529c 7096extrasub_build=
23f6b2f9 7097for module in ${build_configdirs} ; do
5607edfd
PB
7098 if test -z "${no_recursion}" \
7099 && test -f ${build_subdir}/${module}/Makefile; then
7100 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7101 rm -f ${build_subdir}/${module}/Makefile
7102 fi
3e54529c 7103 extrasub_build="$extrasub_build
5607edfd
PB
7104/^@if build-$module\$/d
7105/^@endif build-$module\$/d
7106/^@if build-$module-$bootstrap_suffix\$/d
7107/^@endif build-$module-$bootstrap_suffix\$/d"
7108done
3e54529c 7109extrasub_host=
5607edfd 7110for module in ${configdirs} ; do
a6fbc1e2 7111 if test -z "${no_recursion}"; then
f063a9ed 7112 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7113 if test -f ${file}; then
7114 echo 1>&2 "*** removing ${file} to force reconfigure"
7115 rm -f ${file}
7116 fi
7117 done
5607edfd 7118 fi
3e54529c 7119 extrasub_host="$extrasub_host
5607edfd
PB
7120/^@if $module\$/d
7121/^@endif $module\$/d
7122/^@if $module-$bootstrap_suffix\$/d
7123/^@endif $module-$bootstrap_suffix\$/d"
7124done
3e54529c 7125extrasub_target=
5607edfd
PB
7126for module in ${target_configdirs} ; do
7127 if test -z "${no_recursion}" \
7128 && test -f ${target_subdir}/${module}/Makefile; then
7129 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7130 rm -f ${target_subdir}/${module}/Makefile
7131 fi
00020c16
ILT
7132
7133 # We only bootstrap target libraries listed in bootstrap_target_libs.
7134 case $bootstrap_target_libs in
7135 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7136 *) target_bootstrap_suffix=no-bootstrap ;;
7137 esac
7138
3e54529c 7139 extrasub_target="$extrasub_target
5607edfd
PB
7140/^@if target-$module\$/d
7141/^@endif target-$module\$/d
00020c16
ILT
7142/^@if target-$module-$target_bootstrap_suffix\$/d
7143/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7144done
7145
3e54529c
RW
7146# Do the final fixup along with target modules.
7147extrasub_target="$extrasub_target
60975492 7148/^@if /,/^@endif /d"
671aa708
NN
7149
7150# Create the serialization dependencies. This uses a temporary file.
7151
5213506e
RW
7152# Check whether --enable-serial-configure was given.
7153if test "${enable_serial_configure+set}" = set; then :
7154 enableval=$enable_serial_configure;
7155fi
ade82b16
AO
7156
7157
bf1d3e81
NN
7158case ${enable_serial_configure} in
7159 yes)
7160 enable_serial_build_configure=yes
7161 enable_serial_host_configure=yes
7162 enable_serial_target_configure=yes
7163 ;;
7164esac
7165
671aa708
NN
7166# These force 'configure's to be done one at a time, to avoid problems
7167# with contention over a shared config.cache.
7168rm -f serdep.tmp
ade82b16 7169echo '# serdep.tmp' > serdep.tmp
671aa708 7170olditem=
bf1d3e81 7171test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7172for item in ${build_configdirs} ; do
7173 case ${olditem} in
7174 "") ;;
ade82b16 7175 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7176 esac
7177 olditem=${item}
7178done
7179olditem=
bf1d3e81 7180test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7181for item in ${configdirs} ; do
7182 case ${olditem} in
7183 "") ;;
ade82b16 7184 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7185 esac
7186 olditem=${item}
7187done
7188olditem=
bf1d3e81 7189test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7190for item in ${target_configdirs} ; do
7191 case ${olditem} in
7192 "") ;;
ade82b16 7193 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7194 esac
7195 olditem=${item}
7196done
7197serialization_dependencies=serdep.tmp
7198
7199
ade82b16 7200# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7201# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7202# might not want to pass down to subconfigures. The exception being
7203# --cache-file=/dev/null, which is used to turn off the use of cache
7204# files altogether, and which should be passed on to subconfigures.
7205# Also strip program-prefix, program-suffix, and program-transform-name,
7206# so that we can pass down a consistent program-transform-name.
1c710c3c
DJ
7207baseargs=
7208keep_next=no
7209skip_next=no
7210eval "set -- $ac_configure_args"
44bfc3ac
DJ
7211for ac_arg
7212do
1c710c3c
DJ
7213 if test X"$skip_next" = X"yes"; then
7214 skip_next=no
7215 continue
7216 fi
7217 if test X"$keep_next" = X"yes"; then
7218 case $ac_arg in
7219 *\'*)
7220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7221 esac
7222 baseargs="$baseargs '$ac_arg'"
7223 keep_next=no
7224 continue
7225 fi
7226
7227 # Handle separated arguments. Based on the logic generated by
7228 # autoconf 2.59.
7229 case $ac_arg in
7230 *=* | --config-cache | -C | -disable-* | --disable-* \
7231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7233 | -with-* | --with-* | -without-* | --without-* | --x)
7234 separate_arg=no
7235 ;;
7236 -*)
7237 separate_arg=yes
7238 ;;
7239 *)
7240 separate_arg=no
7241 ;;
7242 esac
7243
7244 case "$ac_arg" in
f1a036e4
NC
7245 --cache-file=/dev/null | \
7246 -cache-file=/dev/null )
7247 # Handled here to avoid the test to skip args below.
7248 baseargs="$baseargs '$ac_arg'"
7249 # Assert: $separate_arg should always be no.
7250 keep_next=$separate_arg
7251 ;;
1c710c3c
DJ
7252 --no*)
7253 continue
7254 ;;
7255 --c* | \
7256 --sr* | \
7257 --ho* | \
7258 --bu* | \
7259 --t* | \
7260 --program-* | \
7261 -cache_file* | \
7262 -srcdir* | \
7263 -host* | \
7264 -build* | \
7265 -target* | \
7266 -program-prefix* | \
7267 -program-suffix* | \
7268 -program-transform-name* )
7269 skip_next=$separate_arg
7270 continue
7271 ;;
7272 -*)
7273 # An option. Add it.
7274 case $ac_arg in
7275 *\'*)
7276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7277 esac
7278 baseargs="$baseargs '$ac_arg'"
7279 keep_next=$separate_arg
7280 ;;
7281 *)
7282 # Either a variable assignment, or a nonopt (triplet). Don't
7283 # pass it down; let the Makefile handle this.
7284 continue
7285 ;;
7286 esac
7287done
7288# Remove the initial space we just introduced and, as these will be
7289# expanded by make, quote '$'.
7290baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7291
43bb47c2
DJ
7292# Add in --program-transform-name, after --program-prefix and
7293# --program-suffix have been applied to it. Autoconf has already
7294# doubled dollar signs and backslashes in program_transform_name; we want
7295# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7296# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7297# Also, because we want to override the logic in subdir configure scripts to
7298# choose program_transform_name, replace any s,x,x, with s,y,y,.
7299sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7300${program_transform_name}
7301EOF_SED
7302gcc_transform_name=`cat conftestsed.out`
7303rm -f conftestsed.out
7304baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7305if test "$silent" = yes; then
7306 baseargs="$baseargs --silent"
7307fi
0115d4a3 7308baseargs="$baseargs --disable-option-checking"
43bb47c2 7309
ffedf511
RW
7310# Record and document user additions to sub configure arguments.
7311
7312
7313
7314
671aa708
NN
7315# For the build-side libraries, we just need to pretend we're native,
7316# and not use the same cache file. Multilibs are neither needed nor
7317# desired.
ffedf511 7318build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7319
7320# For host modules, accept cache file option, or specification as blank.
7321case "${cache_file}" in
7322"") # empty
7323 cache_file_option="" ;;
7324/* | [A-Za-z]:[\\/]* ) # absolute path
7325 cache_file_option="--cache-file=${cache_file}" ;;
7326*) # relative path
7327 cache_file_option="--cache-file=../${cache_file}" ;;
7328esac
7329
09438bde
NN
7330# Host dirs don't like to share a cache file either, horribly enough.
7331# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7332host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7333
ffedf511 7334target_configargs="$target_configargs ${baseargs}"
671aa708
NN
7335
7336# Passing a --with-cross-host argument lets the target libraries know
7337# whether they are being built with a cross-compiler or being built
7338# native. However, it would be better to use other mechanisms to make the
7339# sorts of decisions they want to make on this basis. Please consider
7340# this option to be deprecated. FIXME.
7341if test x${is_cross_compiler} = xyes ; then
1c710c3c 7342 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7343fi
7344
dc683a3f
RW
7345# Default to --enable-multilib.
7346if test x${enable_multilib} = x ; then
671aa708 7347 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7348fi
671aa708
NN
7349
7350# Pass --with-newlib if appropriate. Note that target_configdirs has
7351# changed from the earlier setting of with_newlib.
7352if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7353 target_configargs="--with-newlib ${target_configargs}"
7354fi
7355
6b9eb62c
NN
7356# Different target subdirs use different values of certain variables
7357# (notably CXX). Worse, multilibs use *lots* of different values.
7358# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7359# it doesn't automatically accept command-line overrides of them.
7360# This means it's not safe for target subdirs to share a cache file,
7361# which is disgusting, but there you have it. Hopefully this can be
7362# fixed in future. It's still worthwhile to use a cache file for each
7363# directory. I think.
7364
bebcd931
MS
7365# Pass the appropriate --build, --host, --target and --cache-file arguments.
7366# We need to pass --target, as newer autoconf's requires consistency
7367# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7368target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7369
671aa708
NN
7370FLAGS_FOR_TARGET=
7371case " $target_configdirs " in
7372 *" newlib "*)
7373 case " $target_configargs " in
7374 *" --with-newlib "*)
7375 case "$target" in
5d571eaa
OS
7376 *-cygwin*)
7377 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'
7378 ;;
671aa708
NN
7379 esac
7380
7381 # If we're not building GCC, don't discard standard headers.
7382 if test -d ${srcdir}/gcc; then
7383 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7384
7385 if test "${build}" != "${host}"; then
7386 # On Canadian crosses, CC_FOR_TARGET will have already been set
7387 # by `configure', so we won't have an opportunity to add -Bgcc/
7388 # to it. This is right: we don't want to search that directory
7389 # for binaries, but we want the header files in there, so add
7390 # them explicitly.
0463992b 7391 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7392
7393 # Someone might think of using the pre-installed headers on
7394 # Canadian crosses, in case the installed compiler is not fully
7395 # compatible with the compiler being built. In this case, it
7396 # would be better to flag an error than risking having
7397 # incompatible object files being constructed. We can't
7398 # guarantee that an error will be flagged, but let's hope the
7399 # compiler will do it, when presented with incompatible header
7400 # files.
7401 fi
7402 fi
7403
7404 case "${target}-${is_cross_compiler}" in
f2a0e225 7405 i[3456789]86-*-linux*-no)
671aa708
NN
7406 # Here host == target, so we don't need to build gcc,
7407 # so we don't want to discard standard headers.
7408 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7409 ;;
7410 *)
7411 # If we're building newlib, use its generic headers last, but search
7412 # for any libc-related directories first (so make it the last -B
7413 # switch).
7414 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
7415
7416 # If we're building libgloss, find the startup file, simulator library
7417 # and linker script.
7418 case " $target_configdirs " in
7419 *" libgloss "*)
7420 # Look for startup file, simulator library and maybe linker script.
7421 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7422 # Look for libnosys.a in case the target needs it.
7423 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7424 # Most targets have the linker script in the source directory.
7425 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7426 ;;
7427 esac
671aa708
NN
7428 ;;
7429 esac
7430 ;;
7431 esac
7432 ;;
7433esac
5d571eaa 7434
b91f0a41 7435case "$target" in
5d571eaa
OS
7436 x86_64-*mingw* | *-w64-mingw*)
7437 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7438 # however, use a symlink named 'mingw' in ${prefix} .
7439 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7440 ;;
7441 *-mingw*)
7442 # MinGW can't be handled as Cygwin above since it does not use newlib.
7443 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'
7444 ;;
b91f0a41 7445esac
671aa708 7446
6691a79e
ME
7447# Allow the user to override the flags for
7448# our build compiler if desired.
f019adc1
MF
7449if test x"${build}" = x"${host}" ; then
7450 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7451 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7452 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7453fi
6691a79e 7454
671aa708
NN
7455# On Canadian crosses, we'll be searching the right directories for
7456# the previously-installed cross compiler, so don't bother to add
7457# flags for directories within the install tree of the compiler
7458# being built; programs in there won't even run.
7459if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7460 # Search for pre-installed headers if nothing else fits.
9124bc53 7461 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
7462fi
7463
7464if test "x${use_gnu_ld}" = x &&
7465 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7466 # Arrange for us to find uninstalled linker scripts.
215c351a 7467 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7468fi
7469
e88a2c09
DD
7470# Search for other target-specific linker scripts and such.
7471case "${target}" in
3e19841a
PB
7472 mep*)
7473 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7474 ;;
e88a2c09
DD
7475esac
7476
671aa708 7477# Makefile fragments.
7b61653a
PE
7478for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7479do
7480 eval fragval=\$$frag
7481 if test $fragval != /dev/null; then
7482 eval $frag=${srcdir}/$fragval
7483 fi
7484done
671aa708
NN
7485
7486
7487
7488
7489
7490# Miscellanea: directories, flags, etc.
7491
7492
7493
7494
7495
7496
7497
d89f0ad6 7498
23f6b2f9 7499# Build module lists & subconfigure args.
671aa708
NN
7500
7501
7502
2abefe3d
PB
7503# Host module lists & subconfigure args.
7504
7505
7506
aae29963 7507
2abefe3d
PB
7508# Target module lists & subconfigure args.
7509
7510
7511
7512# Build tools.
7513
7514
7515
0999159b
PB
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
2abefe3d
PB
7530# Generate default definitions for YACC, M4, LEX and other programs that run
7531# on the build machine. These are used if the Makefile can't locate these
7532# programs in objdir.
7533MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7534
7535for ac_prog in 'bison -y' byacc yacc
7536do
1c710c3c 7537 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7538set dummy $ac_prog; ac_word=$2
5213506e
RW
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540$as_echo_n "checking for $ac_word... " >&6; }
7541if test "${ac_cv_prog_YACC+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
2abefe3d
PB
7543else
7544 if test -n "$YACC"; then
7545 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7546else
1c710c3c
DJ
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
5213506e
RW
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7554 ac_cv_prog_YACC="$ac_prog"
5213506e 7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7556 break 2
7557 fi
7558done
5213506e
RW
7559 done
7560IFS=$as_save_IFS
1c710c3c 7561
2abefe3d
PB
7562fi
7563fi
1c710c3c 7564YACC=$ac_cv_prog_YACC
2abefe3d 7565if test -n "$YACC"; then
5213506e
RW
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7567$as_echo "$YACC" >&6; }
2abefe3d 7568else
5213506e
RW
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570$as_echo "no" >&6; }
2abefe3d
PB
7571fi
7572
5213506e 7573
1c710c3c 7574 test -n "$YACC" && break
2abefe3d
PB
7575done
7576test -n "$YACC" || YACC="$MISSING bison -y"
7577
7578case " $build_configdirs " in
7579 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7580 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7581esac
7582
7583for ac_prog in bison
7584do
1c710c3c 7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7586set dummy $ac_prog; ac_word=$2
5213506e
RW
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588$as_echo_n "checking for $ac_word... " >&6; }
7589if test "${ac_cv_prog_BISON+set}" = set; then :
7590 $as_echo_n "(cached) " >&6
2abefe3d
PB
7591else
7592 if test -n "$BISON"; then
7593 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7594else
1c710c3c
DJ
7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
5213506e
RW
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7602 ac_cv_prog_BISON="$ac_prog"
5213506e 7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7604 break 2
7605 fi
7606done
5213506e
RW
7607 done
7608IFS=$as_save_IFS
1c710c3c 7609
2abefe3d
PB
7610fi
7611fi
1c710c3c 7612BISON=$ac_cv_prog_BISON
2abefe3d 7613if test -n "$BISON"; then
5213506e
RW
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7615$as_echo "$BISON" >&6; }
2abefe3d 7616else
5213506e
RW
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
2abefe3d
PB
7619fi
7620
5213506e 7621
1c710c3c 7622 test -n "$BISON" && break
2abefe3d
PB
7623done
7624test -n "$BISON" || BISON="$MISSING bison"
7625
7626case " $build_configdirs " in
7627 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7628esac
7629
7630for ac_prog in gm4 gnum4 m4
7631do
1c710c3c 7632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7633set dummy $ac_prog; ac_word=$2
5213506e
RW
7634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635$as_echo_n "checking for $ac_word... " >&6; }
7636if test "${ac_cv_prog_M4+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
2abefe3d
PB
7638else
7639 if test -n "$M4"; then
7640 ac_cv_prog_M4="$M4" # Let the user override the test.
7641else
1c710c3c
DJ
7642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643for as_dir in $PATH
7644do
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
5213506e
RW
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7649 ac_cv_prog_M4="$ac_prog"
5213506e 7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7651 break 2
7652 fi
7653done
5213506e
RW
7654 done
7655IFS=$as_save_IFS
1c710c3c 7656
2abefe3d
PB
7657fi
7658fi
1c710c3c 7659M4=$ac_cv_prog_M4
2abefe3d 7660if test -n "$M4"; then
5213506e
RW
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7662$as_echo "$M4" >&6; }
2abefe3d 7663else
5213506e
RW
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665$as_echo "no" >&6; }
2abefe3d
PB
7666fi
7667
5213506e 7668
1c710c3c 7669 test -n "$M4" && break
2abefe3d
PB
7670done
7671test -n "$M4" || M4="$MISSING m4"
7672
7673case " $build_configdirs " in
7674 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7675esac
7676
7677for ac_prog in flex lex
7678do
1c710c3c 7679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7680set dummy $ac_prog; ac_word=$2
5213506e
RW
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682$as_echo_n "checking for $ac_word... " >&6; }
7683if test "${ac_cv_prog_LEX+set}" = set; then :
7684 $as_echo_n "(cached) " >&6
2abefe3d
PB
7685else
7686 if test -n "$LEX"; then
7687 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7688else
1c710c3c
DJ
7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
5213506e
RW
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7696 ac_cv_prog_LEX="$ac_prog"
5213506e 7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7698 break 2
7699 fi
7700done
5213506e
RW
7701 done
7702IFS=$as_save_IFS
1c710c3c 7703
2abefe3d
PB
7704fi
7705fi
1c710c3c 7706LEX=$ac_cv_prog_LEX
2abefe3d 7707if test -n "$LEX"; then
5213506e
RW
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7709$as_echo "$LEX" >&6; }
2abefe3d 7710else
5213506e
RW
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712$as_echo "no" >&6; }
2abefe3d
PB
7713fi
7714
5213506e 7715
1c710c3c 7716 test -n "$LEX" && break
2abefe3d
PB
7717done
7718test -n "$LEX" || LEX="$MISSING flex"
7719
7720case " $build_configdirs " in
7721 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7722 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7723esac
7724
7725for ac_prog in flex
7726do
1c710c3c 7727 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7728set dummy $ac_prog; ac_word=$2
5213506e
RW
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730$as_echo_n "checking for $ac_word... " >&6; }
7731if test "${ac_cv_prog_FLEX+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
2abefe3d
PB
7733else
7734 if test -n "$FLEX"; then
7735 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7736else
1c710c3c
DJ
7737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738for as_dir in $PATH
7739do
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
5213506e
RW
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7744 ac_cv_prog_FLEX="$ac_prog"
5213506e 7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7746 break 2
7747 fi
7748done
5213506e
RW
7749 done
7750IFS=$as_save_IFS
1c710c3c 7751
2abefe3d
PB
7752fi
7753fi
1c710c3c 7754FLEX=$ac_cv_prog_FLEX
2abefe3d 7755if test -n "$FLEX"; then
5213506e
RW
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7757$as_echo "$FLEX" >&6; }
2abefe3d 7758else
5213506e
RW
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760$as_echo "no" >&6; }
2abefe3d
PB
7761fi
7762
5213506e 7763
1c710c3c 7764 test -n "$FLEX" && break
2abefe3d
PB
7765done
7766test -n "$FLEX" || FLEX="$MISSING flex"
7767
7768case " $build_configdirs " in
7769 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7770esac
7771
7772for ac_prog in makeinfo
7773do
1c710c3c 7774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7775set dummy $ac_prog; ac_word=$2
5213506e
RW
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777$as_echo_n "checking for $ac_word... " >&6; }
7778if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
2abefe3d
PB
7780else
7781 if test -n "$MAKEINFO"; then
7782 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7783else
1c710c3c
DJ
7784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
5213506e
RW
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7791 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7793 break 2
7794 fi
7795done
5213506e
RW
7796 done
7797IFS=$as_save_IFS
1c710c3c 7798
2abefe3d
PB
7799fi
7800fi
1c710c3c 7801MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7802if test -n "$MAKEINFO"; then
5213506e
RW
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7804$as_echo "$MAKEINFO" >&6; }
2abefe3d 7805else
5213506e
RW
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807$as_echo "no" >&6; }
2abefe3d
PB
7808fi
7809
5213506e 7810
1c710c3c 7811 test -n "$MAKEINFO" && break
2abefe3d
PB
7812done
7813test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7814
7815case " $build_configdirs " in
7816 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7817 *)
7818
d18ff35a 7819 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7820 # higher, else we use the "missing" dummy.
7821 if ${MAKEINFO} --version \
d18ff35a 7822 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7823 :
7824 else
7825 MAKEINFO="$MISSING makeinfo"
7826 fi
7827 ;;
7828
7829esac
671aa708 7830
2abefe3d 7831# FIXME: expect and dejagnu may become build tools?
671aa708 7832
2abefe3d
PB
7833for ac_prog in expect
7834do
1c710c3c 7835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7836set dummy $ac_prog; ac_word=$2
5213506e
RW
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838$as_echo_n "checking for $ac_word... " >&6; }
7839if test "${ac_cv_prog_EXPECT+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
2abefe3d
PB
7841else
7842 if test -n "$EXPECT"; then
7843 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7844else
1c710c3c
DJ
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
5213506e
RW
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7852 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7854 break 2
7855 fi
7856done
5213506e
RW
7857 done
7858IFS=$as_save_IFS
1c710c3c 7859
2abefe3d
PB
7860fi
7861fi
1c710c3c 7862EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7863if test -n "$EXPECT"; then
5213506e
RW
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7865$as_echo "$EXPECT" >&6; }
2abefe3d 7866else
5213506e
RW
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
2abefe3d 7869fi
671aa708 7870
5213506e 7871
1c710c3c 7872 test -n "$EXPECT" && break
2abefe3d
PB
7873done
7874test -n "$EXPECT" || EXPECT="expect"
671aa708 7875
2abefe3d
PB
7876case " $configdirs " in
7877 *" expect "*)
7878 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7879 ;;
7880esac
671aa708 7881
2abefe3d
PB
7882for ac_prog in runtest
7883do
1c710c3c 7884 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7885set dummy $ac_prog; ac_word=$2
5213506e
RW
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887$as_echo_n "checking for $ac_word... " >&6; }
7888if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
2abefe3d
PB
7890else
7891 if test -n "$RUNTEST"; then
7892 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7893else
1c710c3c
DJ
7894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895for as_dir in $PATH
7896do
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
5213506e
RW
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7901 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7903 break 2
7904 fi
7905done
5213506e
RW
7906 done
7907IFS=$as_save_IFS
1c710c3c 7908
2abefe3d
PB
7909fi
7910fi
1c710c3c 7911RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7912if test -n "$RUNTEST"; then
5213506e
RW
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7914$as_echo "$RUNTEST" >&6; }
2abefe3d 7915else
5213506e
RW
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917$as_echo "no" >&6; }
2abefe3d 7918fi
671aa708 7919
5213506e 7920
1c710c3c 7921 test -n "$RUNTEST" && break
2abefe3d
PB
7922done
7923test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7924
2abefe3d
PB
7925case " $configdirs " in
7926 *" dejagnu "*)
c394e891 7927 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7928 ;;
7929esac
671aa708
NN
7930
7931
671aa708 7932# Host tools.
ca9f4b81
AO
7933ncn_tool_prefix=
7934test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7935ncn_target_tool_prefix=
7936test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7937
278a7a38
AO
7938
7939
7940if test -n "$AR"; then
7941 ac_cv_prog_AR=$AR
7942elif test -n "$ac_cv_prog_AR"; then
7943 AR=$ac_cv_prog_AR
7944fi
7945
7946if test -n "$ac_cv_prog_AR"; then
7947 for ncn_progname in ar; do
7948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7949set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951$as_echo_n "checking for $ac_word... " >&6; }
7952if test "${ac_cv_prog_AR+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
278a7a38
AO
7954else
7955 if test -n "$AR"; then
7956 ac_cv_prog_AR="$AR" # Let the user override the test.
7957else
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
5213506e
RW
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7965 ac_cv_prog_AR="${ncn_progname}"
5213506e 7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7967 break 2
7968 fi
7969done
5213506e
RW
7970 done
7971IFS=$as_save_IFS
278a7a38
AO
7972
7973fi
7974fi
7975AR=$ac_cv_prog_AR
7976if test -n "$AR"; then
5213506e
RW
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7978$as_echo "$AR" >&6; }
278a7a38 7979else
5213506e
RW
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
278a7a38
AO
7982fi
7983
5213506e 7984
278a7a38
AO
7985 done
7986fi
7987
7988for ncn_progname in ar; do
2693c0b0
PB
7989 if test -n "$ncn_tool_prefix"; then
7990 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7991set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993$as_echo_n "checking for $ac_word... " >&6; }
7994if test "${ac_cv_prog_AR+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7996else
7997 if test -n "$AR"; then
7998 ac_cv_prog_AR="$AR" # Let the user override the test.
7999else
1c710c3c
DJ
8000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001for as_dir in $PATH
8002do
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
5213506e
RW
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8007 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8009 break 2
8010 fi
8011done
5213506e
RW
8012 done
8013IFS=$as_save_IFS
1c710c3c 8014
ca9f4b81
AO
8015fi
8016fi
1c710c3c 8017AR=$ac_cv_prog_AR
ca9f4b81 8018if test -n "$AR"; then
5213506e
RW
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8020$as_echo "$AR" >&6; }
ca9f4b81 8021else
5213506e
RW
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023$as_echo "no" >&6; }
ca9f4b81
AO
8024fi
8025
5213506e 8026
2693c0b0
PB
8027 fi
8028 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8030set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032$as_echo_n "checking for $ac_word... " >&6; }
8033if test "${ac_cv_prog_AR+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
ca9f4b81 8035else
2693c0b0 8036 if test -n "$AR"; then
af71363e
AS
8037 ac_cv_prog_AR="$AR" # Let the user override the test.
8038else
1c710c3c
DJ
8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040for as_dir in $PATH
8041do
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
5213506e
RW
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8046 ac_cv_prog_AR="${ncn_progname}"
5213506e 8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8048 break 2
8049 fi
8050done
5213506e
RW
8051 done
8052IFS=$as_save_IFS
1c710c3c 8053
ca9f4b81
AO
8054fi
8055fi
1c710c3c 8056AR=$ac_cv_prog_AR
2693c0b0 8057if test -n "$AR"; then
5213506e
RW
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8059$as_echo "$AR" >&6; }
ca9f4b81 8060else
5213506e
RW
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062$as_echo "no" >&6; }
ca9f4b81 8063fi
1c710c3c 8064
5213506e 8065
2693c0b0
PB
8066 fi
8067 test -n "$ac_cv_prog_AR" && break
8068done
8069
8070if test -z "$ac_cv_prog_AR" ; then
8071 set dummy ar
8072 if test $build = $host ; then
8073 AR="$2"
ca9f4b81 8074 else
2693c0b0 8075 AR="${ncn_tool_prefix}$2"
ca9f4b81 8076 fi
ca9f4b81
AO
8077fi
8078
278a7a38
AO
8079
8080
8081if test -n "$AS"; then
8082 ac_cv_prog_AS=$AS
8083elif test -n "$ac_cv_prog_AS"; then
8084 AS=$ac_cv_prog_AS
8085fi
8086
8087if test -n "$ac_cv_prog_AS"; then
8088 for ncn_progname in as; do
8089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8090set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092$as_echo_n "checking for $ac_word... " >&6; }
8093if test "${ac_cv_prog_AS+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
278a7a38
AO
8095else
8096 if test -n "$AS"; then
8097 ac_cv_prog_AS="$AS" # Let the user override the test.
8098else
8099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100for as_dir in $PATH
8101do
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
5213506e
RW
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8106 ac_cv_prog_AS="${ncn_progname}"
5213506e 8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8108 break 2
8109 fi
8110done
5213506e
RW
8111 done
8112IFS=$as_save_IFS
278a7a38
AO
8113
8114fi
8115fi
8116AS=$ac_cv_prog_AS
8117if test -n "$AS"; then
5213506e
RW
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8119$as_echo "$AS" >&6; }
278a7a38 8120else
5213506e
RW
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122$as_echo "no" >&6; }
278a7a38
AO
8123fi
8124
5213506e 8125
278a7a38
AO
8126 done
8127fi
8128
8129for ncn_progname in as; do
2693c0b0
PB
8130 if test -n "$ncn_tool_prefix"; then
8131 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8132set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134$as_echo_n "checking for $ac_word... " >&6; }
8135if test "${ac_cv_prog_AS+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8137else
8138 if test -n "$AS"; then
8139 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8140else
1c710c3c
DJ
8141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142for as_dir in $PATH
8143do
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
5213506e
RW
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8148 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8150 break 2
8151 fi
8152done
5213506e
RW
8153 done
8154IFS=$as_save_IFS
1c710c3c 8155
ca9f4b81
AO
8156fi
8157fi
1c710c3c 8158AS=$ac_cv_prog_AS
ca9f4b81 8159if test -n "$AS"; then
5213506e
RW
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8161$as_echo "$AS" >&6; }
ca9f4b81 8162else
5213506e
RW
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164$as_echo "no" >&6; }
ca9f4b81
AO
8165fi
8166
5213506e 8167
2693c0b0
PB
8168 fi
8169 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8171set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173$as_echo_n "checking for $ac_word... " >&6; }
8174if test "${ac_cv_prog_AS+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
ca9f4b81 8176else
2693c0b0
PB
8177 if test -n "$AS"; then
8178 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8179else
1c710c3c
DJ
8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
5213506e
RW
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8187 ac_cv_prog_AS="${ncn_progname}"
5213506e 8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8189 break 2
8190 fi
8191done
5213506e
RW
8192 done
8193IFS=$as_save_IFS
1c710c3c 8194
ca9f4b81
AO
8195fi
8196fi
1c710c3c 8197AS=$ac_cv_prog_AS
2693c0b0 8198if test -n "$AS"; then
5213506e
RW
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8200$as_echo "$AS" >&6; }
ca9f4b81 8201else
5213506e
RW
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203$as_echo "no" >&6; }
ca9f4b81 8204fi
1c710c3c 8205
5213506e 8206
2693c0b0
PB
8207 fi
8208 test -n "$ac_cv_prog_AS" && break
8209done
8210
8211if test -z "$ac_cv_prog_AS" ; then
8212 set dummy as
8213 if test $build = $host ; then
8214 AS="$2"
ca9f4b81 8215 else
2693c0b0 8216 AS="${ncn_tool_prefix}$2"
ca9f4b81 8217 fi
ca9f4b81
AO
8218fi
8219
278a7a38
AO
8220
8221
8222if test -n "$DLLTOOL"; then
8223 ac_cv_prog_DLLTOOL=$DLLTOOL
8224elif test -n "$ac_cv_prog_DLLTOOL"; then
8225 DLLTOOL=$ac_cv_prog_DLLTOOL
8226fi
8227
8228if test -n "$ac_cv_prog_DLLTOOL"; then
8229 for ncn_progname in dlltool; do
8230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8231set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233$as_echo_n "checking for $ac_word... " >&6; }
8234if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
278a7a38
AO
8236else
8237 if test -n "$DLLTOOL"; then
8238 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8239else
8240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241for as_dir in $PATH
8242do
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
5213506e
RW
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8247 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8249 break 2
8250 fi
8251done
5213506e
RW
8252 done
8253IFS=$as_save_IFS
278a7a38
AO
8254
8255fi
8256fi
8257DLLTOOL=$ac_cv_prog_DLLTOOL
8258if test -n "$DLLTOOL"; then
5213506e
RW
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8260$as_echo "$DLLTOOL" >&6; }
278a7a38 8261else
5213506e
RW
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263$as_echo "no" >&6; }
278a7a38
AO
8264fi
8265
5213506e 8266
278a7a38
AO
8267 done
8268fi
8269
8270for ncn_progname in dlltool; do
2693c0b0
PB
8271 if test -n "$ncn_tool_prefix"; then
8272 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8273set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275$as_echo_n "checking for $ac_word... " >&6; }
8276if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8278else
8279 if test -n "$DLLTOOL"; then
8280 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8281else
1c710c3c
DJ
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
5213506e
RW
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8289 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8291 break 2
8292 fi
8293done
5213506e
RW
8294 done
8295IFS=$as_save_IFS
1c710c3c 8296
ca9f4b81
AO
8297fi
8298fi
1c710c3c 8299DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8300if test -n "$DLLTOOL"; then
5213506e
RW
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8302$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8303else
5213506e
RW
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
ca9f4b81
AO
8306fi
8307
5213506e 8308
2693c0b0
PB
8309 fi
8310 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8312set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314$as_echo_n "checking for $ac_word... " >&6; }
8315if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8316 $as_echo_n "(cached) " >&6
ca9f4b81 8317else
2693c0b0
PB
8318 if test -n "$DLLTOOL"; then
8319 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8320else
1c710c3c
DJ
8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
5213506e
RW
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8328 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8330 break 2
8331 fi
8332done
5213506e
RW
8333 done
8334IFS=$as_save_IFS
1c710c3c 8335
ca9f4b81
AO
8336fi
8337fi
1c710c3c 8338DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8339if test -n "$DLLTOOL"; then
5213506e
RW
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8341$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8342else
5213506e
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344$as_echo "no" >&6; }
ca9f4b81 8345fi
1c710c3c 8346
5213506e 8347
2693c0b0
PB
8348 fi
8349 test -n "$ac_cv_prog_DLLTOOL" && break
8350done
8351
8352if test -z "$ac_cv_prog_DLLTOOL" ; then
8353 set dummy dlltool
8354 if test $build = $host ; then
8355 DLLTOOL="$2"
ca9f4b81 8356 else
2693c0b0 8357 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8358 fi
ca9f4b81
AO
8359fi
8360
278a7a38
AO
8361
8362
8363if test -n "$LD"; then
8364 ac_cv_prog_LD=$LD
8365elif test -n "$ac_cv_prog_LD"; then
8366 LD=$ac_cv_prog_LD
8367fi
8368
8369if test -n "$ac_cv_prog_LD"; then
8370 for ncn_progname in ld; do
8371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8372set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374$as_echo_n "checking for $ac_word... " >&6; }
8375if test "${ac_cv_prog_LD+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
278a7a38
AO
8377else
8378 if test -n "$LD"; then
8379 ac_cv_prog_LD="$LD" # Let the user override the test.
8380else
8381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
5213506e
RW
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8388 ac_cv_prog_LD="${ncn_progname}"
5213506e 8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8390 break 2
8391 fi
8392done
5213506e
RW
8393 done
8394IFS=$as_save_IFS
278a7a38
AO
8395
8396fi
8397fi
8398LD=$ac_cv_prog_LD
8399if test -n "$LD"; then
5213506e
RW
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8401$as_echo "$LD" >&6; }
278a7a38 8402else
5213506e
RW
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404$as_echo "no" >&6; }
278a7a38
AO
8405fi
8406
5213506e 8407
278a7a38
AO
8408 done
8409fi
8410
8411for ncn_progname in ld; do
2693c0b0
PB
8412 if test -n "$ncn_tool_prefix"; then
8413 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8414set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416$as_echo_n "checking for $ac_word... " >&6; }
8417if test "${ac_cv_prog_LD+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8419else
8420 if test -n "$LD"; then
8421 ac_cv_prog_LD="$LD" # Let the user override the test.
8422else
1c710c3c
DJ
8423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424for as_dir in $PATH
8425do
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
5213506e
RW
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8430 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8432 break 2
8433 fi
8434done
5213506e
RW
8435 done
8436IFS=$as_save_IFS
1c710c3c 8437
ca9f4b81
AO
8438fi
8439fi
1c710c3c 8440LD=$ac_cv_prog_LD
ca9f4b81 8441if test -n "$LD"; then
5213506e
RW
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8443$as_echo "$LD" >&6; }
ca9f4b81 8444else
5213506e
RW
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446$as_echo "no" >&6; }
ca9f4b81
AO
8447fi
8448
5213506e 8449
2693c0b0
PB
8450 fi
8451 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8453set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455$as_echo_n "checking for $ac_word... " >&6; }
8456if test "${ac_cv_prog_LD+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
ca9f4b81 8458else
2693c0b0
PB
8459 if test -n "$LD"; then
8460 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8461else
1c710c3c
DJ
8462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463for as_dir in $PATH
8464do
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
5213506e
RW
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8469 ac_cv_prog_LD="${ncn_progname}"
5213506e 8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8471 break 2
8472 fi
8473done
5213506e
RW
8474 done
8475IFS=$as_save_IFS
1c710c3c 8476
ca9f4b81
AO
8477fi
8478fi
1c710c3c 8479LD=$ac_cv_prog_LD
2693c0b0 8480if test -n "$LD"; then
5213506e
RW
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8482$as_echo "$LD" >&6; }
ca9f4b81 8483else
5213506e
RW
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485$as_echo "no" >&6; }
ca9f4b81 8486fi
1c710c3c 8487
5213506e 8488
2693c0b0
PB
8489 fi
8490 test -n "$ac_cv_prog_LD" && break
8491done
8492
8493if test -z "$ac_cv_prog_LD" ; then
8494 set dummy ld
8495 if test $build = $host ; then
8496 LD="$2"
ca9f4b81 8497 else
2693c0b0 8498 LD="${ncn_tool_prefix}$2"
ca9f4b81 8499 fi
ca9f4b81
AO
8500fi
8501
278a7a38
AO
8502
8503
8504if test -n "$LIPO"; then
8505 ac_cv_prog_LIPO=$LIPO
8506elif test -n "$ac_cv_prog_LIPO"; then
8507 LIPO=$ac_cv_prog_LIPO
8508fi
8509
8510if test -n "$ac_cv_prog_LIPO"; then
8511 for ncn_progname in lipo; do
8512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8513set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515$as_echo_n "checking for $ac_word... " >&6; }
8516if test "${ac_cv_prog_LIPO+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
278a7a38
AO
8518else
8519 if test -n "$LIPO"; then
8520 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8521else
8522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523for as_dir in $PATH
8524do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
5213506e
RW
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8529 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8531 break 2
8532 fi
8533done
5213506e
RW
8534 done
8535IFS=$as_save_IFS
278a7a38
AO
8536
8537fi
8538fi
8539LIPO=$ac_cv_prog_LIPO
8540if test -n "$LIPO"; then
5213506e
RW
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8542$as_echo "$LIPO" >&6; }
278a7a38 8543else
5213506e
RW
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545$as_echo "no" >&6; }
278a7a38
AO
8546fi
8547
5213506e 8548
278a7a38
AO
8549 done
8550fi
8551
8552for ncn_progname in lipo; do
2abefe3d
PB
8553 if test -n "$ncn_tool_prefix"; then
8554 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8555set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557$as_echo_n "checking for $ac_word... " >&6; }
8558if test "${ac_cv_prog_LIPO+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
2abefe3d
PB
8560else
8561 if test -n "$LIPO"; then
8562 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8563else
1c710c3c
DJ
8564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565for as_dir in $PATH
8566do
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
5213506e
RW
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8571 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8573 break 2
8574 fi
8575done
5213506e
RW
8576 done
8577IFS=$as_save_IFS
1c710c3c 8578
2abefe3d
PB
8579fi
8580fi
1c710c3c 8581LIPO=$ac_cv_prog_LIPO
2abefe3d 8582if test -n "$LIPO"; then
5213506e
RW
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8584$as_echo "$LIPO" >&6; }
2abefe3d 8585else
5213506e
RW
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587$as_echo "no" >&6; }
2abefe3d
PB
8588fi
8589
5213506e 8590
2abefe3d
PB
8591 fi
8592 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8594set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596$as_echo_n "checking for $ac_word... " >&6; }
8597if test "${ac_cv_prog_LIPO+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
2abefe3d
PB
8599else
8600 if test -n "$LIPO"; then
8601 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8602else
1c710c3c
DJ
8603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604for as_dir in $PATH
8605do
8606 IFS=$as_save_IFS
8607 test -z "$as_dir" && as_dir=.
5213506e
RW
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8610 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8612 break 2
8613 fi
8614done
5213506e
RW
8615 done
8616IFS=$as_save_IFS
1c710c3c 8617
2abefe3d
PB
8618fi
8619fi
1c710c3c 8620LIPO=$ac_cv_prog_LIPO
2abefe3d 8621if test -n "$LIPO"; then
5213506e
RW
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8623$as_echo "$LIPO" >&6; }
2abefe3d 8624else
5213506e
RW
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626$as_echo "no" >&6; }
2abefe3d 8627fi
1c710c3c 8628
5213506e 8629
2abefe3d
PB
8630 fi
8631 test -n "$ac_cv_prog_LIPO" && break
8632done
8633
8634if test -z "$ac_cv_prog_LIPO" ; then
8635 set dummy lipo
8636 if test $build = $host ; then
8637 LIPO="$2"
8638 else
8639 LIPO="${ncn_tool_prefix}$2"
8640 fi
8641fi
8642
278a7a38
AO
8643
8644
8645if test -n "$NM"; then
8646 ac_cv_prog_NM=$NM
8647elif test -n "$ac_cv_prog_NM"; then
8648 NM=$ac_cv_prog_NM
8649fi
8650
8651if test -n "$ac_cv_prog_NM"; then
8652 for ncn_progname in nm; do
8653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8654set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656$as_echo_n "checking for $ac_word... " >&6; }
8657if test "${ac_cv_prog_NM+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8659else
8660 if test -n "$NM"; then
8661 ac_cv_prog_NM="$NM" # Let the user override the test.
8662else
1c710c3c
DJ
8663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664for as_dir in $PATH
8665do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
5213506e
RW
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8670 ac_cv_prog_NM="${ncn_progname}"
5213506e 8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8672 break 2
8673 fi
8674done
5213506e
RW
8675 done
8676IFS=$as_save_IFS
1c710c3c 8677
ca9f4b81
AO
8678fi
8679fi
1c710c3c 8680NM=$ac_cv_prog_NM
ca9f4b81 8681if test -n "$NM"; then
5213506e
RW
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8683$as_echo "$NM" >&6; }
ca9f4b81 8684else
5213506e
RW
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686$as_echo "no" >&6; }
ca9f4b81
AO
8687fi
8688
5213506e 8689
278a7a38
AO
8690 done
8691fi
8692
8693for ncn_progname in nm; do
8694 if test -n "$ncn_tool_prefix"; then
8695 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8696set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698$as_echo_n "checking for $ac_word... " >&6; }
8699if test "${ac_cv_prog_NM+set}" = set; then :
8700 $as_echo_n "(cached) " >&6
ca9f4b81 8701else
2693c0b0
PB
8702 if test -n "$NM"; then
8703 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8704else
1c710c3c
DJ
8705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706for as_dir in $PATH
8707do
8708 IFS=$as_save_IFS
8709 test -z "$as_dir" && as_dir=.
5213506e
RW
8710 for ac_exec_ext in '' $ac_executable_extensions; do
8711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8712 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8714 break 2
8715 fi
8716done
5213506e
RW
8717 done
8718IFS=$as_save_IFS
1c710c3c 8719
ca9f4b81
AO
8720fi
8721fi
1c710c3c 8722NM=$ac_cv_prog_NM
2693c0b0 8723if test -n "$NM"; then
5213506e
RW
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8725$as_echo "$NM" >&6; }
ca9f4b81 8726else
5213506e
RW
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728$as_echo "no" >&6; }
ca9f4b81 8729fi
1c710c3c 8730
5213506e 8731
2693c0b0 8732 fi
278a7a38
AO
8733 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8735set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737$as_echo_n "checking for $ac_word... " >&6; }
8738if test "${ac_cv_prog_NM+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
278a7a38
AO
8740else
8741 if test -n "$NM"; then
8742 ac_cv_prog_NM="$NM" # Let the user override the test.
8743else
8744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745for as_dir in $PATH
8746do
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
5213506e
RW
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8751 ac_cv_prog_NM="${ncn_progname}"
5213506e 8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8753 break 2
8754 fi
8755done
5213506e
RW
8756 done
8757IFS=$as_save_IFS
278a7a38
AO
8758
8759fi
8760fi
8761NM=$ac_cv_prog_NM
8762if test -n "$NM"; then
5213506e
RW
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8764$as_echo "$NM" >&6; }
278a7a38 8765else
5213506e
RW
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767$as_echo "no" >&6; }
278a7a38
AO
8768fi
8769
5213506e 8770
278a7a38
AO
8771 fi
8772 test -n "$ac_cv_prog_NM" && break
8773done
8774
8775if test -z "$ac_cv_prog_NM" ; then
8776 set dummy nm
8777 if test $build = $host ; then
8778 NM="$2"
8779 else
8780 NM="${ncn_tool_prefix}$2"
8781 fi
8782fi
8783
8784
8785
8786if test -n "$RANLIB"; then
8787 ac_cv_prog_RANLIB=$RANLIB
8788elif test -n "$ac_cv_prog_RANLIB"; then
8789 RANLIB=$ac_cv_prog_RANLIB
8790fi
8791
8792if test -n "$ac_cv_prog_RANLIB"; then
8793 for ncn_progname in ranlib; do
8794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8795set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797$as_echo_n "checking for $ac_word... " >&6; }
8798if test "${ac_cv_prog_RANLIB+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
278a7a38
AO
8800else
8801 if test -n "$RANLIB"; then
8802 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8803else
8804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805for as_dir in $PATH
8806do
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
5213506e
RW
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8811 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8813 break 2
8814 fi
8815done
5213506e
RW
8816 done
8817IFS=$as_save_IFS
278a7a38
AO
8818
8819fi
8820fi
8821RANLIB=$ac_cv_prog_RANLIB
8822if test -n "$RANLIB"; then
5213506e
RW
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8824$as_echo "$RANLIB" >&6; }
278a7a38 8825else
5213506e
RW
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827$as_echo "no" >&6; }
278a7a38
AO
8828fi
8829
5213506e 8830
278a7a38
AO
8831 done
8832fi
ca9f4b81 8833
278a7a38 8834for ncn_progname in ranlib; do
2693c0b0
PB
8835 if test -n "$ncn_tool_prefix"; then
8836 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8837set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839$as_echo_n "checking for $ac_word... " >&6; }
8840if test "${ac_cv_prog_RANLIB+set}" = set; then :
8841 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8842else
8843 if test -n "$RANLIB"; then
8844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8845else
1c710c3c
DJ
8846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847for as_dir in $PATH
8848do
8849 IFS=$as_save_IFS
8850 test -z "$as_dir" && as_dir=.
5213506e
RW
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8853 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8855 break 2
8856 fi
8857done
5213506e
RW
8858 done
8859IFS=$as_save_IFS
1c710c3c 8860
ca9f4b81
AO
8861fi
8862fi
1c710c3c 8863RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8864if test -n "$RANLIB"; then
5213506e
RW
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8866$as_echo "$RANLIB" >&6; }
ca9f4b81 8867else
5213506e
RW
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869$as_echo "no" >&6; }
ca9f4b81
AO
8870fi
8871
5213506e 8872
2693c0b0
PB
8873 fi
8874 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8876set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878$as_echo_n "checking for $ac_word... " >&6; }
8879if test "${ac_cv_prog_RANLIB+set}" = set; then :
8880 $as_echo_n "(cached) " >&6
ca9f4b81 8881else
2693c0b0
PB
8882 if test -n "$RANLIB"; then
8883 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8884else
1c710c3c
DJ
8885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886for as_dir in $PATH
8887do
8888 IFS=$as_save_IFS
8889 test -z "$as_dir" && as_dir=.
5213506e
RW
8890 for ac_exec_ext in '' $ac_executable_extensions; do
8891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8892 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8894 break 2
8895 fi
8896done
5213506e
RW
8897 done
8898IFS=$as_save_IFS
1c710c3c 8899
ca9f4b81
AO
8900fi
8901fi
1c710c3c 8902RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8903if test -n "$RANLIB"; then
5213506e
RW
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8905$as_echo "$RANLIB" >&6; }
ca9f4b81 8906else
5213506e
RW
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908$as_echo "no" >&6; }
ca9f4b81 8909fi
1c710c3c 8910
5213506e 8911
ca9f4b81 8912 fi
2693c0b0
PB
8913 test -n "$ac_cv_prog_RANLIB" && break
8914done
8915
8916if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8917 RANLIB="true"
ca9f4b81
AO
8918fi
8919
278a7a38
AO
8920
8921
8922if test -n "$STRIP"; then
8923 ac_cv_prog_STRIP=$STRIP
8924elif test -n "$ac_cv_prog_STRIP"; then
8925 STRIP=$ac_cv_prog_STRIP
8926fi
8927
8928if test -n "$ac_cv_prog_STRIP"; then
8929 for ncn_progname in strip; do
8930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8931set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933$as_echo_n "checking for $ac_word... " >&6; }
8934if test "${ac_cv_prog_STRIP+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
278a7a38
AO
8936else
8937 if test -n "$STRIP"; then
8938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8939else
8940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941for as_dir in $PATH
8942do
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
5213506e
RW
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8947 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8949 break 2
8950 fi
8951done
5213506e
RW
8952 done
8953IFS=$as_save_IFS
278a7a38
AO
8954
8955fi
8956fi
8957STRIP=$ac_cv_prog_STRIP
8958if test -n "$STRIP"; then
5213506e
RW
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8960$as_echo "$STRIP" >&6; }
278a7a38 8961else
5213506e
RW
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963$as_echo "no" >&6; }
278a7a38
AO
8964fi
8965
5213506e 8966
278a7a38
AO
8967 done
8968fi
8969
8970for ncn_progname in strip; do
2abefe3d
PB
8971 if test -n "$ncn_tool_prefix"; then
8972 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8973set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8975$as_echo_n "checking for $ac_word... " >&6; }
8976if test "${ac_cv_prog_STRIP+set}" = set; then :
8977 $as_echo_n "(cached) " >&6
2abefe3d
PB
8978else
8979 if test -n "$STRIP"; then
8980 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8981else
1c710c3c
DJ
8982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983for as_dir in $PATH
8984do
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
5213506e
RW
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8989 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8991 break 2
8992 fi
8993done
5213506e
RW
8994 done
8995IFS=$as_save_IFS
1c710c3c 8996
2abefe3d
PB
8997fi
8998fi
1c710c3c 8999STRIP=$ac_cv_prog_STRIP
2abefe3d 9000if test -n "$STRIP"; then
5213506e
RW
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9002$as_echo "$STRIP" >&6; }
2abefe3d 9003else
5213506e
RW
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005$as_echo "no" >&6; }
2abefe3d
PB
9006fi
9007
5213506e 9008
2abefe3d
PB
9009 fi
9010 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9012set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9014$as_echo_n "checking for $ac_word... " >&6; }
9015if test "${ac_cv_prog_STRIP+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
2abefe3d
PB
9017else
9018 if test -n "$STRIP"; then
9019 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9020else
1c710c3c
DJ
9021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022for as_dir in $PATH
9023do
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
5213506e
RW
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9028 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9030 break 2
9031 fi
9032done
5213506e
RW
9033 done
9034IFS=$as_save_IFS
1c710c3c 9035
2abefe3d
PB
9036fi
9037fi
1c710c3c 9038STRIP=$ac_cv_prog_STRIP
2abefe3d 9039if test -n "$STRIP"; then
5213506e
RW
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9041$as_echo "$STRIP" >&6; }
2abefe3d 9042else
5213506e
RW
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044$as_echo "no" >&6; }
2abefe3d 9045fi
1c710c3c 9046
5213506e 9047
2abefe3d
PB
9048 fi
9049 test -n "$ac_cv_prog_STRIP" && break
9050done
9051
9052if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9053 STRIP="true"
2abefe3d
PB
9054fi
9055
278a7a38
AO
9056
9057
9058if test -n "$WINDRES"; then
9059 ac_cv_prog_WINDRES=$WINDRES
9060elif test -n "$ac_cv_prog_WINDRES"; then
9061 WINDRES=$ac_cv_prog_WINDRES
9062fi
9063
9064if test -n "$ac_cv_prog_WINDRES"; then
9065 for ncn_progname in windres; do
9066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9067set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069$as_echo_n "checking for $ac_word... " >&6; }
9070if test "${ac_cv_prog_WINDRES+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
278a7a38
AO
9072else
9073 if test -n "$WINDRES"; then
9074 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9075else
9076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077for as_dir in $PATH
9078do
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
5213506e
RW
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9083 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9085 break 2
9086 fi
9087done
5213506e
RW
9088 done
9089IFS=$as_save_IFS
278a7a38
AO
9090
9091fi
9092fi
9093WINDRES=$ac_cv_prog_WINDRES
9094if test -n "$WINDRES"; then
5213506e
RW
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9096$as_echo "$WINDRES" >&6; }
278a7a38 9097else
5213506e
RW
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099$as_echo "no" >&6; }
278a7a38
AO
9100fi
9101
5213506e 9102
278a7a38
AO
9103 done
9104fi
9105
9106for ncn_progname in windres; do
2693c0b0
PB
9107 if test -n "$ncn_tool_prefix"; then
9108 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9109set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111$as_echo_n "checking for $ac_word... " >&6; }
9112if test "${ac_cv_prog_WINDRES+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9114else
9115 if test -n "$WINDRES"; then
9116 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9117else
1c710c3c
DJ
9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
5213506e
RW
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9125 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9127 break 2
9128 fi
9129done
5213506e
RW
9130 done
9131IFS=$as_save_IFS
1c710c3c 9132
ca9f4b81
AO
9133fi
9134fi
1c710c3c 9135WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9136if test -n "$WINDRES"; then
5213506e
RW
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9138$as_echo "$WINDRES" >&6; }
ca9f4b81 9139else
5213506e
RW
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141$as_echo "no" >&6; }
ca9f4b81
AO
9142fi
9143
5213506e 9144
2693c0b0
PB
9145 fi
9146 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9148set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150$as_echo_n "checking for $ac_word... " >&6; }
9151if test "${ac_cv_prog_WINDRES+set}" = set; then :
9152 $as_echo_n "(cached) " >&6
ca9f4b81 9153else
2693c0b0
PB
9154 if test -n "$WINDRES"; then
9155 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9156else
1c710c3c
DJ
9157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158for as_dir in $PATH
9159do
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
5213506e
RW
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9164 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9166 break 2
9167 fi
9168done
5213506e
RW
9169 done
9170IFS=$as_save_IFS
1c710c3c 9171
ca9f4b81
AO
9172fi
9173fi
1c710c3c 9174WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9175if test -n "$WINDRES"; then
5213506e
RW
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9177$as_echo "$WINDRES" >&6; }
ca9f4b81 9178else
5213506e
RW
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180$as_echo "no" >&6; }
ca9f4b81 9181fi
1c710c3c 9182
5213506e 9183
2693c0b0
PB
9184 fi
9185 test -n "$ac_cv_prog_WINDRES" && break
9186done
9187
9188if test -z "$ac_cv_prog_WINDRES" ; then
9189 set dummy windres
9190 if test $build = $host ; then
9191 WINDRES="$2"
ca9f4b81 9192 else
2693c0b0 9193 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9194 fi
ca9f4b81
AO
9195fi
9196
278a7a38
AO
9197
9198
901119ae
KT
9199if test -n "$WINDMC"; then
9200 ac_cv_prog_WINDMC=$WINDMC
9201elif test -n "$ac_cv_prog_WINDMC"; then
9202 WINDMC=$ac_cv_prog_WINDMC
9203fi
9204
9205if test -n "$ac_cv_prog_WINDMC"; then
9206 for ncn_progname in windmc; do
9207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9208set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210$as_echo_n "checking for $ac_word... " >&6; }
9211if test "${ac_cv_prog_WINDMC+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
901119ae
KT
9213else
9214 if test -n "$WINDMC"; then
9215 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9216else
9217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218for as_dir in $PATH
9219do
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
5213506e
RW
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9224 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9226 break 2
9227 fi
9228done
5213506e
RW
9229 done
9230IFS=$as_save_IFS
901119ae
KT
9231
9232fi
9233fi
9234WINDMC=$ac_cv_prog_WINDMC
9235if test -n "$WINDMC"; then
5213506e
RW
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9237$as_echo "$WINDMC" >&6; }
901119ae 9238else
5213506e
RW
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240$as_echo "no" >&6; }
901119ae
KT
9241fi
9242
5213506e 9243
901119ae
KT
9244 done
9245fi
9246
9247for ncn_progname in windmc; do
9248 if test -n "$ncn_tool_prefix"; then
9249 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9250set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252$as_echo_n "checking for $ac_word... " >&6; }
9253if test "${ac_cv_prog_WINDMC+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
901119ae
KT
9255else
9256 if test -n "$WINDMC"; then
9257 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9258else
9259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260for as_dir in $PATH
9261do
9262 IFS=$as_save_IFS
9263 test -z "$as_dir" && as_dir=.
5213506e
RW
9264 for ac_exec_ext in '' $ac_executable_extensions; do
9265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9266 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9268 break 2
9269 fi
9270done
5213506e
RW
9271 done
9272IFS=$as_save_IFS
901119ae
KT
9273
9274fi
9275fi
9276WINDMC=$ac_cv_prog_WINDMC
9277if test -n "$WINDMC"; then
5213506e
RW
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9279$as_echo "$WINDMC" >&6; }
901119ae 9280else
5213506e
RW
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282$as_echo "no" >&6; }
901119ae
KT
9283fi
9284
5213506e 9285
901119ae
KT
9286 fi
9287 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9289set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9291$as_echo_n "checking for $ac_word... " >&6; }
9292if test "${ac_cv_prog_WINDMC+set}" = set; then :
9293 $as_echo_n "(cached) " >&6
901119ae
KT
9294else
9295 if test -n "$WINDMC"; then
9296 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9297else
9298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299for as_dir in $PATH
9300do
9301 IFS=$as_save_IFS
9302 test -z "$as_dir" && as_dir=.
5213506e
RW
9303 for ac_exec_ext in '' $ac_executable_extensions; do
9304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9305 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9307 break 2
9308 fi
9309done
5213506e
RW
9310 done
9311IFS=$as_save_IFS
901119ae
KT
9312
9313fi
9314fi
9315WINDMC=$ac_cv_prog_WINDMC
9316if test -n "$WINDMC"; then
5213506e
RW
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9318$as_echo "$WINDMC" >&6; }
901119ae 9319else
5213506e
RW
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321$as_echo "no" >&6; }
901119ae
KT
9322fi
9323
5213506e 9324
901119ae
KT
9325 fi
9326 test -n "$ac_cv_prog_WINDMC" && break
9327done
9328
9329if test -z "$ac_cv_prog_WINDMC" ; then
9330 set dummy windmc
9331 if test $build = $host ; then
9332 WINDMC="$2"
9333 else
9334 WINDMC="${ncn_tool_prefix}$2"
9335 fi
9336fi
9337
9338
9339
278a7a38
AO
9340if test -n "$OBJCOPY"; then
9341 ac_cv_prog_OBJCOPY=$OBJCOPY
9342elif test -n "$ac_cv_prog_OBJCOPY"; then
9343 OBJCOPY=$ac_cv_prog_OBJCOPY
9344fi
9345
9346if test -n "$ac_cv_prog_OBJCOPY"; then
9347 for ncn_progname in objcopy; do
9348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9349set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9351$as_echo_n "checking for $ac_word... " >&6; }
9352if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
278a7a38
AO
9354else
9355 if test -n "$OBJCOPY"; then
9356 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9357else
9358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359for as_dir in $PATH
9360do
9361 IFS=$as_save_IFS
9362 test -z "$as_dir" && as_dir=.
5213506e
RW
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9365 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9367 break 2
9368 fi
9369done
5213506e
RW
9370 done
9371IFS=$as_save_IFS
278a7a38
AO
9372
9373fi
9374fi
9375OBJCOPY=$ac_cv_prog_OBJCOPY
9376if test -n "$OBJCOPY"; then
5213506e
RW
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9378$as_echo "$OBJCOPY" >&6; }
278a7a38 9379else
5213506e
RW
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381$as_echo "no" >&6; }
278a7a38
AO
9382fi
9383
5213506e 9384
278a7a38
AO
9385 done
9386fi
9387
9388for ncn_progname in objcopy; do
2693c0b0
PB
9389 if test -n "$ncn_tool_prefix"; then
9390 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9391set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9393$as_echo_n "checking for $ac_word... " >&6; }
9394if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9395 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9396else
9397 if test -n "$OBJCOPY"; then
9398 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9399else
1c710c3c
DJ
9400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401for as_dir in $PATH
9402do
9403 IFS=$as_save_IFS
9404 test -z "$as_dir" && as_dir=.
5213506e
RW
9405 for ac_exec_ext in '' $ac_executable_extensions; do
9406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9407 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9409 break 2
9410 fi
9411done
5213506e
RW
9412 done
9413IFS=$as_save_IFS
1c710c3c 9414
ca9f4b81
AO
9415fi
9416fi
1c710c3c 9417OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9418if test -n "$OBJCOPY"; then
5213506e
RW
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9420$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9421else
5213506e
RW
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423$as_echo "no" >&6; }
ca9f4b81
AO
9424fi
9425
5213506e 9426
2693c0b0
PB
9427 fi
9428 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9430set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9432$as_echo_n "checking for $ac_word... " >&6; }
9433if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
ca9f4b81 9435else
2693c0b0
PB
9436 if test -n "$OBJCOPY"; then
9437 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9438else
1c710c3c
DJ
9439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9440for as_dir in $PATH
9441do
9442 IFS=$as_save_IFS
9443 test -z "$as_dir" && as_dir=.
5213506e
RW
9444 for ac_exec_ext in '' $ac_executable_extensions; do
9445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9446 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9448 break 2
9449 fi
9450done
5213506e
RW
9451 done
9452IFS=$as_save_IFS
1c710c3c 9453
ca9f4b81
AO
9454fi
9455fi
1c710c3c 9456OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9457if test -n "$OBJCOPY"; then
5213506e
RW
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9459$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9460else
5213506e
RW
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9462$as_echo "no" >&6; }
ca9f4b81 9463fi
1c710c3c 9464
5213506e 9465
2693c0b0
PB
9466 fi
9467 test -n "$ac_cv_prog_OBJCOPY" && break
9468done
9469
9470if test -z "$ac_cv_prog_OBJCOPY" ; then
9471 set dummy objcopy
9472 if test $build = $host ; then
9473 OBJCOPY="$2"
ca9f4b81 9474 else
2693c0b0 9475 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9476 fi
ca9f4b81
AO
9477fi
9478
278a7a38
AO
9479
9480
9481if test -n "$OBJDUMP"; then
9482 ac_cv_prog_OBJDUMP=$OBJDUMP
9483elif test -n "$ac_cv_prog_OBJDUMP"; then
9484 OBJDUMP=$ac_cv_prog_OBJDUMP
9485fi
9486
9487if test -n "$ac_cv_prog_OBJDUMP"; then
9488 for ncn_progname in objdump; do
9489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9490set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492$as_echo_n "checking for $ac_word... " >&6; }
9493if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
278a7a38
AO
9495else
9496 if test -n "$OBJDUMP"; then
9497 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9498else
9499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500for as_dir in $PATH
9501do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
5213506e
RW
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9506 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9508 break 2
9509 fi
9510done
5213506e
RW
9511 done
9512IFS=$as_save_IFS
278a7a38
AO
9513
9514fi
9515fi
9516OBJDUMP=$ac_cv_prog_OBJDUMP
9517if test -n "$OBJDUMP"; then
5213506e
RW
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9519$as_echo "$OBJDUMP" >&6; }
278a7a38 9520else
5213506e
RW
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522$as_echo "no" >&6; }
278a7a38
AO
9523fi
9524
5213506e 9525
278a7a38
AO
9526 done
9527fi
9528
9529for ncn_progname in objdump; do
2693c0b0
PB
9530 if test -n "$ncn_tool_prefix"; then
9531 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9532set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534$as_echo_n "checking for $ac_word... " >&6; }
9535if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9537else
9538 if test -n "$OBJDUMP"; then
9539 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9540else
1c710c3c
DJ
9541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542for as_dir in $PATH
9543do
9544 IFS=$as_save_IFS
9545 test -z "$as_dir" && as_dir=.
5213506e
RW
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9548 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9550 break 2
9551 fi
9552done
5213506e
RW
9553 done
9554IFS=$as_save_IFS
1c710c3c 9555
ca9f4b81
AO
9556fi
9557fi
1c710c3c 9558OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9559if test -n "$OBJDUMP"; then
5213506e
RW
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9561$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9562else
5213506e
RW
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564$as_echo "no" >&6; }
ca9f4b81
AO
9565fi
9566
5213506e 9567
2693c0b0
PB
9568 fi
9569 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9571set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9573$as_echo_n "checking for $ac_word... " >&6; }
9574if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9575 $as_echo_n "(cached) " >&6
ca9f4b81 9576else
2693c0b0
PB
9577 if test -n "$OBJDUMP"; then
9578 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9579else
1c710c3c
DJ
9580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581for as_dir in $PATH
9582do
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
5213506e
RW
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9587 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9589 break 2
9590 fi
9591done
5213506e
RW
9592 done
9593IFS=$as_save_IFS
1c710c3c 9594
ca9f4b81
AO
9595fi
9596fi
1c710c3c 9597OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9598if test -n "$OBJDUMP"; then
5213506e
RW
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9600$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9601else
5213506e
RW
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9603$as_echo "no" >&6; }
ca9f4b81 9604fi
1c710c3c 9605
5213506e 9606
2693c0b0
PB
9607 fi
9608 test -n "$ac_cv_prog_OBJDUMP" && break
9609done
9610
9611if test -z "$ac_cv_prog_OBJDUMP" ; then
9612 set dummy objdump
9613 if test $build = $host ; then
9614 OBJDUMP="$2"
ca9f4b81 9615 else
2693c0b0 9616 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9617 fi
ca9f4b81
AO
9618fi
9619
671aa708
NN
9620
9621
9622
9623
9624
2abefe3d 9625# Target tools.
1c710c3c 9626
5213506e
RW
9627# Check whether --with-build-time-tools was given.
9628if test "${with_build_time_tools+set}" = set; then :
9629 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9630 x/*) ;;
9631 *)
9632 with_build_time_tools=
5213506e
RW
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9634$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9635 ;;
9636 esac
ca9f4b81 9637else
e8b05380 9638 with_build_time_tools=
5213506e
RW
9639fi
9640
ca9f4b81 9641
278a7a38
AO
9642
9643
9644if test -n "$CC_FOR_TARGET"; then
9645 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9646elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9647 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9648fi
9649
9650if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9651 for ncn_progname in cc gcc; do
9652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9653set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655$as_echo_n "checking for $ac_word... " >&6; }
9656if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
278a7a38
AO
9658else
9659 if test -n "$CC_FOR_TARGET"; then
9660 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9661else
9662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663for as_dir in $PATH
9664do
9665 IFS=$as_save_IFS
9666 test -z "$as_dir" && as_dir=.
5213506e
RW
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9669 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9671 break 2
9672 fi
9673done
5213506e
RW
9674 done
9675IFS=$as_save_IFS
278a7a38
AO
9676
9677fi
9678fi
9679CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9680if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9682$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9683else
5213506e
RW
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685$as_echo "no" >&6; }
278a7a38
AO
9686fi
9687
5213506e 9688
278a7a38
AO
9689 done
9690fi
9691
9692if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9693 for ncn_progname in cc gcc; do
5213506e
RW
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9695$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9696 if test -x $with_build_time_tools/${ncn_progname}; then
9697 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9699$as_echo "yes" >&6; }
72a7ab82 9700 break
e8b05380 9701 else
5213506e
RW
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703$as_echo "no" >&6; }
72a7ab82
AP
9704 fi
9705 done
4de997d1
PB
9706fi
9707
e8b05380
PB
9708if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9709 for ncn_progname in cc gcc; do
9710 if test -n "$ncn_target_tool_prefix"; then
9711 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9712set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714$as_echo_n "checking for $ac_word... " >&6; }
9715if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9716 $as_echo_n "(cached) " >&6
4de997d1
PB
9717else
9718 if test -n "$CC_FOR_TARGET"; then
9719 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9720else
1c710c3c
DJ
9721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722for as_dir in $PATH
9723do
9724 IFS=$as_save_IFS
9725 test -z "$as_dir" && as_dir=.
5213506e
RW
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9728 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9730 break 2
9731 fi
9732done
5213506e
RW
9733 done
9734IFS=$as_save_IFS
1c710c3c 9735
4de997d1
PB
9736fi
9737fi
1c710c3c 9738CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9739if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9741$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9742else
5213506e
RW
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744$as_echo "no" >&6; }
4de997d1
PB
9745fi
9746
5213506e 9747
e8b05380
PB
9748 fi
9749 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9751set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753$as_echo_n "checking for $ac_word... " >&6; }
9754if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9755 $as_echo_n "(cached) " >&6
4de997d1 9756else
2693c0b0
PB
9757 if test -n "$CC_FOR_TARGET"; then
9758 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9759else
1c710c3c
DJ
9760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761for as_dir in $PATH
9762do
9763 IFS=$as_save_IFS
9764 test -z "$as_dir" && as_dir=.
5213506e
RW
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9767 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9769 break 2
9770 fi
9771done
5213506e
RW
9772 done
9773IFS=$as_save_IFS
1c710c3c 9774
4de997d1
PB
9775fi
9776fi
1c710c3c 9777CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9778if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9780$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9781else
5213506e
RW
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783$as_echo "no" >&6; }
4de997d1 9784fi
1c710c3c 9785
5213506e 9786
e8b05380
PB
9787 fi
9788 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9789 done
9790fi
1c710c3c 9791
2693c0b0
PB
9792if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9793 set dummy cc gcc
9794 if test $build = $target ; then
9795 CC_FOR_TARGET="$2"
4de997d1 9796 else
2693c0b0 9797 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9798 fi
1c00b503
PB
9799else
9800 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9801fi
9802
278a7a38
AO
9803
9804
9805if test -n "$CXX_FOR_TARGET"; then
9806 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9807elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9808 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9809fi
9810
9811if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9812 for ncn_progname in c++ g++ cxx gxx; do
9813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9814set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816$as_echo_n "checking for $ac_word... " >&6; }
9817if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
278a7a38
AO
9819else
9820 if test -n "$CXX_FOR_TARGET"; then
9821 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9822else
9823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
5213506e
RW
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9830 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9832 break 2
9833 fi
9834done
5213506e
RW
9835 done
9836IFS=$as_save_IFS
278a7a38
AO
9837
9838fi
9839fi
9840CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9841if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9843$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9844else
5213506e
RW
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846$as_echo "no" >&6; }
278a7a38
AO
9847fi
9848
5213506e 9849
278a7a38
AO
9850 done
9851fi
9852
9853if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9854 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9856$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9857 if test -x $with_build_time_tools/${ncn_progname}; then
9858 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9860$as_echo "yes" >&6; }
e8b05380
PB
9861 break
9862 else
5213506e
RW
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864$as_echo "no" >&6; }
e8b05380
PB
9865 fi
9866 done
9867fi
9868
9869if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9870 for ncn_progname in c++ g++ cxx gxx; do
9871 if test -n "$ncn_target_tool_prefix"; then
9872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9873set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9875$as_echo_n "checking for $ac_word... " >&6; }
9876if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
4de997d1
PB
9878else
9879 if test -n "$CXX_FOR_TARGET"; then
9880 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9881else
1c710c3c
DJ
9882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883for as_dir in $PATH
9884do
9885 IFS=$as_save_IFS
9886 test -z "$as_dir" && as_dir=.
5213506e
RW
9887 for ac_exec_ext in '' $ac_executable_extensions; do
9888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9889 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9891 break 2
9892 fi
9893done
5213506e
RW
9894 done
9895IFS=$as_save_IFS
1c710c3c 9896
4de997d1
PB
9897fi
9898fi
1c710c3c 9899CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9900if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9902$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9903else
5213506e
RW
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905$as_echo "no" >&6; }
4de997d1
PB
9906fi
9907
5213506e 9908
e8b05380
PB
9909 fi
9910 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9912set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914$as_echo_n "checking for $ac_word... " >&6; }
9915if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9916 $as_echo_n "(cached) " >&6
4de997d1 9917else
2693c0b0
PB
9918 if test -n "$CXX_FOR_TARGET"; then
9919 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9920else
1c710c3c
DJ
9921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922for as_dir in $PATH
9923do
9924 IFS=$as_save_IFS
9925 test -z "$as_dir" && as_dir=.
5213506e
RW
9926 for ac_exec_ext in '' $ac_executable_extensions; do
9927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9928 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9930 break 2
9931 fi
9932done
5213506e
RW
9933 done
9934IFS=$as_save_IFS
1c710c3c 9935
4de997d1
PB
9936fi
9937fi
1c710c3c 9938CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 9939if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9941$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9942else
5213506e
RW
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944$as_echo "no" >&6; }
4de997d1 9945fi
1c710c3c 9946
5213506e 9947
e8b05380
PB
9948 fi
9949 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9950 done
9951fi
1c710c3c 9952
2693c0b0
PB
9953if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9954 set dummy c++ g++ cxx gxx
9955 if test $build = $target ; then
9956 CXX_FOR_TARGET="$2"
4de997d1 9957 else
2693c0b0 9958 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9959 fi
1c00b503
PB
9960else
9961 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
9962fi
9963
278a7a38
AO
9964
9965
9966if test -n "$GCC_FOR_TARGET"; then
9967 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9968elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9969 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9970fi
9971
9972if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9973 for ncn_progname in gcc; do
9974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9975set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977$as_echo_n "checking for $ac_word... " >&6; }
9978if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9979 $as_echo_n "(cached) " >&6
278a7a38
AO
9980else
9981 if test -n "$GCC_FOR_TARGET"; then
9982 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9983else
9984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985for as_dir in $PATH
9986do
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
5213506e
RW
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9991 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9993 break 2
9994 fi
9995done
5213506e
RW
9996 done
9997IFS=$as_save_IFS
278a7a38
AO
9998
9999fi
10000fi
10001GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10002if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10004$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10005else
5213506e
RW
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007$as_echo "no" >&6; }
278a7a38
AO
10008fi
10009
5213506e 10010
278a7a38
AO
10011 done
10012fi
10013
10014if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10015 for ncn_progname in gcc; do
5213506e
RW
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10017$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10018 if test -x $with_build_time_tools/${ncn_progname}; then
10019 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10021$as_echo "yes" >&6; }
e8b05380
PB
10022 break
10023 else
5213506e
RW
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025$as_echo "no" >&6; }
e8b05380
PB
10026 fi
10027 done
10028fi
10029
10030if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10031 for ncn_progname in gcc; do
10032 if test -n "$ncn_target_tool_prefix"; then
10033 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10034set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10036$as_echo_n "checking for $ac_word... " >&6; }
10037if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10038 $as_echo_n "(cached) " >&6
ca9f4b81 10039else
e8b05380
PB
10040 if test -n "$GCC_FOR_TARGET"; then
10041 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10042else
1c710c3c
DJ
10043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044for as_dir in $PATH
10045do
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
5213506e
RW
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10050 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10052 break 2
10053 fi
10054done
5213506e
RW
10055 done
10056IFS=$as_save_IFS
1c710c3c 10057
ca9f4b81
AO
10058fi
10059fi
1c710c3c 10060GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10061if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10063$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10064else
5213506e
RW
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066$as_echo "no" >&6; }
ca9f4b81
AO
10067fi
10068
5213506e 10069
e8b05380
PB
10070 fi
10071 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10073set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075$as_echo_n "checking for $ac_word... " >&6; }
10076if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
ca9f4b81 10078else
e8b05380
PB
10079 if test -n "$GCC_FOR_TARGET"; then
10080 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10081else
1c710c3c
DJ
10082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083for as_dir in $PATH
10084do
10085 IFS=$as_save_IFS
10086 test -z "$as_dir" && as_dir=.
5213506e
RW
10087 for ac_exec_ext in '' $ac_executable_extensions; do
10088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10089 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10091 break 2
10092 fi
10093done
5213506e
RW
10094 done
10095IFS=$as_save_IFS
1c710c3c 10096
ca9f4b81
AO
10097fi
10098fi
1c710c3c 10099GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10100if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10102$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10103else
5213506e
RW
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105$as_echo "no" >&6; }
ca9f4b81 10106fi
1c710c3c 10107
5213506e 10108
e8b05380
PB
10109 fi
10110 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10111 done
10112fi
1c710c3c 10113
e8b05380
PB
10114if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10115 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10116else
10117 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10118fi
10119
278a7a38
AO
10120
10121
10122if test -n "$GCJ_FOR_TARGET"; then
10123 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10124elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10125 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10126fi
10127
10128if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10129 for ncn_progname in gcj; do
10130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10131set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133$as_echo_n "checking for $ac_word... " >&6; }
10134if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
278a7a38
AO
10136else
10137 if test -n "$GCJ_FOR_TARGET"; then
10138 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10139else
10140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141for as_dir in $PATH
10142do
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
5213506e
RW
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10147 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10149 break 2
10150 fi
10151done
5213506e
RW
10152 done
10153IFS=$as_save_IFS
278a7a38
AO
10154
10155fi
10156fi
10157GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10158if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10160$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10161else
5213506e
RW
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163$as_echo "no" >&6; }
278a7a38
AO
10164fi
10165
5213506e 10166
278a7a38
AO
10167 done
10168fi
10169
10170if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10171 for ncn_progname in gcj; do
5213506e
RW
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10173$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10174 if test -x $with_build_time_tools/${ncn_progname}; then
10175 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10177$as_echo "yes" >&6; }
e8b05380
PB
10178 break
10179 else
5213506e
RW
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181$as_echo "no" >&6; }
e8b05380
PB
10182 fi
10183 done
10184fi
10185
10186if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10187 for ncn_progname in gcj; do
10188 if test -n "$ncn_target_tool_prefix"; then
10189 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10190set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192$as_echo_n "checking for $ac_word... " >&6; }
10193if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
e8b05380 10195else
fb0103e5
RG
10196 if test -n "$GCJ_FOR_TARGET"; then
10197 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10198else
1c710c3c
DJ
10199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200for as_dir in $PATH
10201do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
5213506e
RW
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10206 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10208 break 2
10209 fi
10210done
5213506e
RW
10211 done
10212IFS=$as_save_IFS
1c710c3c 10213
e8b05380
PB
10214fi
10215fi
278a7a38
AO
10216GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10217if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10219$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10220else
5213506e
RW
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222$as_echo "no" >&6; }
278a7a38
AO
10223fi
10224
5213506e 10225
278a7a38
AO
10226 fi
10227 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10229set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231$as_echo_n "checking for $ac_word... " >&6; }
10232if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10233 $as_echo_n "(cached) " >&6
278a7a38
AO
10234else
10235 if test -n "$GCJ_FOR_TARGET"; then
10236 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10237else
10238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239for as_dir in $PATH
10240do
10241 IFS=$as_save_IFS
10242 test -z "$as_dir" && as_dir=.
5213506e
RW
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10245 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10247 break 2
10248 fi
10249done
5213506e
RW
10250 done
10251IFS=$as_save_IFS
278a7a38
AO
10252
10253fi
10254fi
10255GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10256if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10258$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10259else
5213506e
RW
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261$as_echo "no" >&6; }
278a7a38
AO
10262fi
10263
5213506e 10264
278a7a38
AO
10265 fi
10266 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10267 done
10268fi
10269
10270if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10271 set dummy gcj
10272 if test $build = $target ; then
10273 GCJ_FOR_TARGET="$2"
10274 else
10275 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10276 fi
1c00b503
PB
10277else
10278 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10279fi
10280
10281
10282
10283if test -n "$GFORTRAN_FOR_TARGET"; then
10284 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10285elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10286 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10287fi
10288
278a7a38
AO
10289if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10290 for ncn_progname in gfortran; do
10291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10292set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294$as_echo_n "checking for $ac_word... " >&6; }
10295if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10296 $as_echo_n "(cached) " >&6
e8b05380 10297else
278a7a38
AO
10298 if test -n "$GFORTRAN_FOR_TARGET"; then
10299 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10300else
1c710c3c
DJ
10301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302for as_dir in $PATH
10303do
10304 IFS=$as_save_IFS
10305 test -z "$as_dir" && as_dir=.
5213506e
RW
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10308 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10310 break 2
10311 fi
10312done
5213506e
RW
10313 done
10314IFS=$as_save_IFS
1c710c3c 10315
e8b05380
PB
10316fi
10317fi
278a7a38
AO
10318GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10319if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10321$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10322else
5213506e
RW
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324$as_echo "no" >&6; }
e8b05380 10325fi
1c710c3c 10326
5213506e 10327
e8b05380
PB
10328 done
10329fi
1c710c3c 10330
278a7a38 10331if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10332 for ncn_progname in gfortran; do
5213506e
RW
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10334$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10335 if test -x $with_build_time_tools/${ncn_progname}; then
10336 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10338$as_echo "yes" >&6; }
e8b05380
PB
10339 break
10340 else
5213506e
RW
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342$as_echo "no" >&6; }
e8b05380
PB
10343 fi
10344 done
10345fi
10346
10347if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10348 for ncn_progname in gfortran; do
10349 if test -n "$ncn_target_tool_prefix"; then
10350 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10351set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353$as_echo_n "checking for $ac_word... " >&6; }
10354if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
e8b05380
PB
10356else
10357 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10358 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10359else
10360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361for as_dir in $PATH
10362do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
5213506e
RW
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10367 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10369 break 2
10370 fi
10371done
5213506e
RW
10372 done
10373IFS=$as_save_IFS
1c710c3c 10374
e8b05380
PB
10375fi
10376fi
1c710c3c 10377GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10378if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10380$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10381else
5213506e
RW
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383$as_echo "no" >&6; }
e8b05380
PB
10384fi
10385
5213506e 10386
e8b05380
PB
10387 fi
10388 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10390set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392$as_echo_n "checking for $ac_word... " >&6; }
10393if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
e8b05380
PB
10395else
10396 if test -n "$GFORTRAN_FOR_TARGET"; then
10397 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10398else
1c710c3c
DJ
10399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400for as_dir in $PATH
10401do
10402 IFS=$as_save_IFS
10403 test -z "$as_dir" && as_dir=.
5213506e
RW
10404 for ac_exec_ext in '' $ac_executable_extensions; do
10405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10406 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10408 break 2
10409 fi
10410done
5213506e
RW
10411 done
10412IFS=$as_save_IFS
1c710c3c 10413
e8b05380
PB
10414fi
10415fi
1c710c3c 10416GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10417if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10419$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10420else
5213506e
RW
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422$as_echo "no" >&6; }
e8b05380 10423fi
1c710c3c 10424
5213506e 10425
e8b05380
PB
10426 fi
10427 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10428 done
10429fi
1c710c3c 10430
e8b05380
PB
10431if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10432 set dummy gfortran
2693c0b0 10433 if test $build = $target ; then
e8b05380 10434 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10435 else
e8b05380
PB
10436 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10437 fi
1c00b503
PB
10438else
10439 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10440fi
10441
10442
10443
e8b05380
PB
10444cat > conftest.c << \EOF
10445#ifdef __GNUC__
10446 gcc_yay;
10447#endif
10448EOF
10449if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10450 have_gcc_for_target=yes
10451else
10452 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10453 have_gcc_for_target=no
10454fi
10455rm conftest.c
10456
10457
10458
10459
10460if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10461 if test -n "$with_build_time_tools"; then
5213506e
RW
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10463$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10464 if test -x $with_build_time_tools/ar; then
10465 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10466 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10468$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10469 else
5213506e
RW
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471$as_echo "no" >&6; }
d1f8db0c 10472 fi
e8b05380
PB
10473 elif test $build != $host && test $have_gcc_for_target = yes; then
10474 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10475 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10476 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10477 fi
10478fi
3e19841a 10479if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10480 # Extract the first word of "ar", so it can be a program name with args.
10481set dummy ar; ac_word=$2
5213506e
RW
10482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483$as_echo_n "checking for $ac_word... " >&6; }
10484if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
e8b05380 10486else
1c710c3c
DJ
10487 case $AR_FOR_TARGET in
10488 [\\/]* | ?:[\\/]*)
e8b05380
PB
10489 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10490 ;;
e8b05380 10491 *)
1c710c3c
DJ
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493for as_dir in $gcc_cv_tool_dirs
10494do
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
5213506e
RW
10497 for ac_exec_ext in '' $ac_executable_extensions; do
10498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10499 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10501 break 2
10502 fi
10503done
5213506e
RW
10504 done
10505IFS=$as_save_IFS
1c710c3c 10506
e8b05380
PB
10507 ;;
10508esac
10509fi
1c710c3c 10510AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10511if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10513$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10514else
5213506e
RW
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516$as_echo "no" >&6; }
4de997d1
PB
10517fi
10518
5213506e 10519
e8b05380
PB
10520fi
10521if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10522
10523
10524if test -n "$AR_FOR_TARGET"; then
10525 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10526elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10527 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10528fi
10529
10530if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10531 for ncn_progname in ar; do
10532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10533set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10535$as_echo_n "checking for $ac_word... " >&6; }
10536if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10537 $as_echo_n "(cached) " >&6
278a7a38
AO
10538else
10539 if test -n "$AR_FOR_TARGET"; then
10540 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10541else
10542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543for as_dir in $PATH
10544do
10545 IFS=$as_save_IFS
10546 test -z "$as_dir" && as_dir=.
5213506e
RW
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10549 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10551 break 2
10552 fi
10553done
5213506e
RW
10554 done
10555IFS=$as_save_IFS
278a7a38
AO
10556
10557fi
10558fi
10559AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10560if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10562$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10563else
5213506e
RW
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10565$as_echo "no" >&6; }
278a7a38
AO
10566fi
10567
5213506e 10568
278a7a38
AO
10569 done
10570fi
10571
10572if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10573 for ncn_progname in ar; do
5213506e
RW
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10575$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10576 if test -x $with_build_time_tools/${ncn_progname}; then
10577 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10579$as_echo "yes" >&6; }
e8b05380
PB
10580 break
10581 else
5213506e
RW
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583$as_echo "no" >&6; }
e8b05380
PB
10584 fi
10585 done
10586fi
10587
10588if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10589 for ncn_progname in ar; do
10590 if test -n "$ncn_target_tool_prefix"; then
10591 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10592set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10594$as_echo_n "checking for $ac_word... " >&6; }
10595if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10596 $as_echo_n "(cached) " >&6
4de997d1 10597else
e8b05380
PB
10598 if test -n "$AR_FOR_TARGET"; then
10599 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10600else
1c710c3c
DJ
10601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10602for as_dir in $PATH
10603do
10604 IFS=$as_save_IFS
10605 test -z "$as_dir" && as_dir=.
5213506e
RW
10606 for ac_exec_ext in '' $ac_executable_extensions; do
10607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10608 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10610 break 2
10611 fi
10612done
5213506e
RW
10613 done
10614IFS=$as_save_IFS
1c710c3c 10615
4de997d1
PB
10616fi
10617fi
1c710c3c 10618AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10619if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10621$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10622else
5213506e
RW
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624$as_echo "no" >&6; }
4de997d1
PB
10625fi
10626
5213506e 10627
e8b05380
PB
10628 fi
10629 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10631set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633$as_echo_n "checking for $ac_word... " >&6; }
10634if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10635 $as_echo_n "(cached) " >&6
e8b05380
PB
10636else
10637 if test -n "$AR_FOR_TARGET"; then
10638 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10639else
1c710c3c
DJ
10640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641for as_dir in $PATH
10642do
10643 IFS=$as_save_IFS
10644 test -z "$as_dir" && as_dir=.
5213506e
RW
10645 for ac_exec_ext in '' $ac_executable_extensions; do
10646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10647 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10649 break 2
10650 fi
10651done
5213506e
RW
10652 done
10653IFS=$as_save_IFS
1c710c3c 10654
e8b05380
PB
10655fi
10656fi
1c710c3c 10657AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10658if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10660$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10661else
5213506e
RW
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663$as_echo "no" >&6; }
e8b05380 10664fi
1c710c3c 10665
5213506e 10666
e8b05380
PB
10667 fi
10668 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10669 done
10670fi
1c710c3c 10671
e8b05380
PB
10672if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10673 set dummy ar
10674 if test $build = $target ; then
10675 AR_FOR_TARGET="$2"
10676 else
10677 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10678 fi
1c00b503
PB
10679else
10680 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10681fi
10682
d1f8db0c
PB
10683else
10684 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10685fi
10686
10687
10688
10689
10690if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10691 if test -n "$with_build_time_tools"; then
5213506e
RW
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10693$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10694 if test -x $with_build_time_tools/as; then
10695 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10696 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10698$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10699 else
5213506e
RW
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701$as_echo "no" >&6; }
d1f8db0c 10702 fi
e8b05380
PB
10703 elif test $build != $host && test $have_gcc_for_target = yes; then
10704 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10705 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10706 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10707 fi
10708fi
3e19841a 10709if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10710 # Extract the first word of "as", so it can be a program name with args.
10711set dummy as; ac_word=$2
5213506e
RW
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10713$as_echo_n "checking for $ac_word... " >&6; }
10714if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
e8b05380 10716else
1c710c3c
DJ
10717 case $AS_FOR_TARGET in
10718 [\\/]* | ?:[\\/]*)
e8b05380
PB
10719 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10720 ;;
e8b05380 10721 *)
1c710c3c
DJ
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723for as_dir in $gcc_cv_tool_dirs
10724do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
5213506e
RW
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10729 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10731 break 2
10732 fi
10733done
5213506e
RW
10734 done
10735IFS=$as_save_IFS
1c710c3c 10736
e8b05380
PB
10737 ;;
10738esac
10739fi
1c710c3c 10740AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10741if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10743$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10744else
5213506e
RW
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746$as_echo "no" >&6; }
e8b05380
PB
10747fi
10748
5213506e 10749
e8b05380
PB
10750fi
10751if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10752
10753
10754if test -n "$AS_FOR_TARGET"; then
10755 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10756elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10757 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10758fi
10759
10760if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10761 for ncn_progname in as; do
10762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10763set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10765$as_echo_n "checking for $ac_word... " >&6; }
10766if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
278a7a38
AO
10768else
10769 if test -n "$AS_FOR_TARGET"; then
10770 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10771else
10772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773for as_dir in $PATH
10774do
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
5213506e
RW
10777 for ac_exec_ext in '' $ac_executable_extensions; do
10778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10779 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10781 break 2
10782 fi
10783done
5213506e
RW
10784 done
10785IFS=$as_save_IFS
278a7a38
AO
10786
10787fi
10788fi
10789AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10790if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10792$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 10793else
5213506e
RW
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795$as_echo "no" >&6; }
278a7a38
AO
10796fi
10797
5213506e 10798
278a7a38
AO
10799 done
10800fi
10801
10802if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10803 for ncn_progname in as; do
5213506e
RW
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10805$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10806 if test -x $with_build_time_tools/${ncn_progname}; then
10807 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809$as_echo "yes" >&6; }
e8b05380
PB
10810 break
10811 else
5213506e
RW
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813$as_echo "no" >&6; }
e8b05380
PB
10814 fi
10815 done
10816fi
10817
10818if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10819 for ncn_progname in as; do
10820 if test -n "$ncn_target_tool_prefix"; then
10821 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10822set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824$as_echo_n "checking for $ac_word... " >&6; }
10825if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
e8b05380
PB
10827else
10828 if test -n "$AS_FOR_TARGET"; then
10829 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10830else
1c710c3c
DJ
10831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832for as_dir in $PATH
10833do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
5213506e
RW
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10838 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10840 break 2
10841 fi
10842done
5213506e
RW
10843 done
10844IFS=$as_save_IFS
1c710c3c 10845
e8b05380
PB
10846fi
10847fi
1c710c3c 10848AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 10849if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10851$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10852else
5213506e
RW
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854$as_echo "no" >&6; }
e8b05380
PB
10855fi
10856
5213506e 10857
e8b05380
PB
10858 fi
10859 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10861set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863$as_echo_n "checking for $ac_word... " >&6; }
10864if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
4de997d1 10866else
e8b05380
PB
10867 if test -n "$AS_FOR_TARGET"; then
10868 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 10869else
1c710c3c
DJ
10870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871for as_dir in $PATH
10872do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
5213506e
RW
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10877 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10879 break 2
10880 fi
10881done
5213506e
RW
10882 done
10883IFS=$as_save_IFS
1c710c3c 10884
4de997d1
PB
10885fi
10886fi
1c710c3c 10887AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 10888if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10890$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 10891else
5213506e
RW
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893$as_echo "no" >&6; }
4de997d1 10894fi
1c710c3c 10895
5213506e 10896
e8b05380
PB
10897 fi
10898 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10899 done
10900fi
1c710c3c 10901
e8b05380
PB
10902if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10903 set dummy as
10904 if test $build = $target ; then
10905 AS_FOR_TARGET="$2"
10906 else
10907 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10908 fi
1c00b503
PB
10909else
10910 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 10911fi
2693c0b0 10912
d1f8db0c
PB
10913else
10914 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
10915fi
10916
e8b05380
PB
10917
10918
10919
10920if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10921 if test -n "$with_build_time_tools"; then
5213506e
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10923$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10924 if test -x $with_build_time_tools/dlltool; then
10925 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10926 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10928$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 10929 else
5213506e
RW
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931$as_echo "no" >&6; }
d1f8db0c 10932 fi
e8b05380
PB
10933 elif test $build != $host && test $have_gcc_for_target = yes; then
10934 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
10935 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10936 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
10937 fi
10938fi
3e19841a 10939if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10940 # Extract the first word of "dlltool", so it can be a program name with args.
10941set dummy dlltool; ac_word=$2
5213506e
RW
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943$as_echo_n "checking for $ac_word... " >&6; }
10944if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
4de997d1 10946else
1c710c3c
DJ
10947 case $DLLTOOL_FOR_TARGET in
10948 [\\/]* | ?:[\\/]*)
e8b05380
PB
10949 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10950 ;;
e8b05380 10951 *)
1c710c3c
DJ
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $gcc_cv_tool_dirs
10954do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
5213506e
RW
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10959 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10961 break 2
10962 fi
10963done
5213506e
RW
10964 done
10965IFS=$as_save_IFS
1c710c3c 10966
e8b05380
PB
10967 ;;
10968esac
4de997d1 10969fi
1c710c3c 10970DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 10971if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10973$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 10974else
5213506e
RW
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976$as_echo "no" >&6; }
4de997d1
PB
10977fi
10978
5213506e 10979
e8b05380
PB
10980fi
10981if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
10982
10983
10984if test -n "$DLLTOOL_FOR_TARGET"; then
10985 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10986elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10987 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10988fi
10989
10990if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10991 for ncn_progname in dlltool; do
10992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10993set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995$as_echo_n "checking for $ac_word... " >&6; }
10996if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10997 $as_echo_n "(cached) " >&6
278a7a38
AO
10998else
10999 if test -n "$DLLTOOL_FOR_TARGET"; then
11000 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11001else
11002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003for as_dir in $PATH
11004do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
5213506e
RW
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11009 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11011 break 2
11012 fi
11013done
5213506e
RW
11014 done
11015IFS=$as_save_IFS
278a7a38
AO
11016
11017fi
11018fi
11019DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11020if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11022$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11023else
5213506e
RW
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025$as_echo "no" >&6; }
278a7a38
AO
11026fi
11027
5213506e 11028
278a7a38
AO
11029 done
11030fi
11031
11032if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11033 for ncn_progname in dlltool; do
5213506e
RW
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11035$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11036 if test -x $with_build_time_tools/${ncn_progname}; then
11037 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11039$as_echo "yes" >&6; }
e8b05380
PB
11040 break
11041 else
5213506e
RW
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043$as_echo "no" >&6; }
e8b05380
PB
11044 fi
11045 done
11046fi
11047
11048if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11049 for ncn_progname in dlltool; do
11050 if test -n "$ncn_target_tool_prefix"; then
11051 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11052set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11054$as_echo_n "checking for $ac_word... " >&6; }
11055if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
4de997d1 11057else
e8b05380
PB
11058 if test -n "$DLLTOOL_FOR_TARGET"; then
11059 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11060else
1c710c3c
DJ
11061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062for as_dir in $PATH
11063do
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
5213506e
RW
11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11068 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11070 break 2
11071 fi
11072done
5213506e
RW
11073 done
11074IFS=$as_save_IFS
1c710c3c 11075
4de997d1
PB
11076fi
11077fi
1c710c3c 11078DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11079if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11081$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11082else
5213506e
RW
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084$as_echo "no" >&6; }
4de997d1 11085fi
4de997d1 11086
5213506e 11087
e8b05380
PB
11088 fi
11089 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11091set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093$as_echo_n "checking for $ac_word... " >&6; }
11094if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
4de997d1 11096else
e8b05380
PB
11097 if test -n "$DLLTOOL_FOR_TARGET"; then
11098 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11099else
1c710c3c
DJ
11100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101for as_dir in $PATH
11102do
11103 IFS=$as_save_IFS
11104 test -z "$as_dir" && as_dir=.
5213506e
RW
11105 for ac_exec_ext in '' $ac_executable_extensions; do
11106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11107 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11109 break 2
11110 fi
11111done
5213506e
RW
11112 done
11113IFS=$as_save_IFS
1c710c3c 11114
4de997d1
PB
11115fi
11116fi
1c710c3c 11117DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11118if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11120$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11121else
5213506e
RW
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123$as_echo "no" >&6; }
4de997d1 11124fi
1c710c3c 11125
5213506e 11126
e8b05380
PB
11127 fi
11128 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11129 done
11130fi
1c710c3c 11131
e8b05380
PB
11132if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11133 set dummy dlltool
11134 if test $build = $target ; then
11135 DLLTOOL_FOR_TARGET="$2"
11136 else
11137 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11138 fi
1c00b503
PB
11139else
11140 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11141fi
11142
d1f8db0c
PB
11143else
11144 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11145fi
11146
4de997d1 11147
e8b05380
PB
11148
11149
11150if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11151 if test -n "$with_build_time_tools"; then
5213506e
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11153$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11154 if test -x $with_build_time_tools/ld; then
11155 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11156 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11158$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11159 else
5213506e
RW
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161$as_echo "no" >&6; }
d1f8db0c 11162 fi
e8b05380
PB
11163 elif test $build != $host && test $have_gcc_for_target = yes; then
11164 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11165 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11166 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11167 fi
e8b05380 11168fi
3e19841a 11169if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11170 # Extract the first word of "ld", so it can be a program name with args.
11171set dummy ld; ac_word=$2
5213506e
RW
11172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11173$as_echo_n "checking for $ac_word... " >&6; }
11174if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
4de997d1 11176else
1c710c3c
DJ
11177 case $LD_FOR_TARGET in
11178 [\\/]* | ?:[\\/]*)
e8b05380
PB
11179 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11180 ;;
e8b05380 11181 *)
1c710c3c
DJ
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183for as_dir in $gcc_cv_tool_dirs
11184do
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
5213506e
RW
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11189 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11191 break 2
11192 fi
11193done
5213506e
RW
11194 done
11195IFS=$as_save_IFS
1c710c3c 11196
e8b05380
PB
11197 ;;
11198esac
4de997d1 11199fi
1c710c3c 11200LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11201if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11203$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11204else
5213506e
RW
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206$as_echo "no" >&6; }
4de997d1 11207fi
2693c0b0 11208
5213506e 11209
e8b05380
PB
11210fi
11211if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11212
11213
11214if test -n "$LD_FOR_TARGET"; then
11215 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11216elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11217 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11218fi
11219
11220if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11221 for ncn_progname in ld; do
11222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11223set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225$as_echo_n "checking for $ac_word... " >&6; }
11226if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
278a7a38
AO
11228else
11229 if test -n "$LD_FOR_TARGET"; then
11230 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11231else
11232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233for as_dir in $PATH
11234do
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
5213506e
RW
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11239 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11241 break 2
11242 fi
11243done
5213506e
RW
11244 done
11245IFS=$as_save_IFS
278a7a38
AO
11246
11247fi
11248fi
11249LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11250if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11252$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11253else
5213506e
RW
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255$as_echo "no" >&6; }
278a7a38
AO
11256fi
11257
5213506e 11258
278a7a38
AO
11259 done
11260fi
11261
11262if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11263 for ncn_progname in ld; do
5213506e
RW
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11265$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11266 if test -x $with_build_time_tools/${ncn_progname}; then
11267 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11269$as_echo "yes" >&6; }
e8b05380
PB
11270 break
11271 else
5213506e
RW
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273$as_echo "no" >&6; }
e8b05380
PB
11274 fi
11275 done
ca9f4b81
AO
11276fi
11277
e8b05380
PB
11278if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11279 for ncn_progname in ld; do
11280 if test -n "$ncn_target_tool_prefix"; then
11281 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11282set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284$as_echo_n "checking for $ac_word... " >&6; }
11285if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
ca9f4b81 11287else
4de997d1
PB
11288 if test -n "$LD_FOR_TARGET"; then
11289 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11290else
1c710c3c
DJ
11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
5213506e
RW
11296 for ac_exec_ext in '' $ac_executable_extensions; do
11297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11298 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11300 break 2
11301 fi
11302done
5213506e
RW
11303 done
11304IFS=$as_save_IFS
1c710c3c 11305
ca9f4b81
AO
11306fi
11307fi
1c710c3c 11308LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11309if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11311$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11312else
5213506e
RW
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314$as_echo "no" >&6; }
ca9f4b81
AO
11315fi
11316
5213506e 11317
e8b05380
PB
11318 fi
11319 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11321set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323$as_echo_n "checking for $ac_word... " >&6; }
11324if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
ca9f4b81 11326else
2693c0b0
PB
11327 if test -n "$LD_FOR_TARGET"; then
11328 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11329else
1c710c3c
DJ
11330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331for as_dir in $PATH
11332do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
5213506e
RW
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11337 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11339 break 2
11340 fi
11341done
5213506e
RW
11342 done
11343IFS=$as_save_IFS
1c710c3c 11344
ca9f4b81
AO
11345fi
11346fi
1c710c3c 11347LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11348if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11350$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11351else
5213506e
RW
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353$as_echo "no" >&6; }
ca9f4b81 11354fi
1c710c3c 11355
5213506e 11356
e8b05380
PB
11357 fi
11358 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11359 done
11360fi
1c710c3c 11361
2693c0b0
PB
11362if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11363 set dummy ld
11364 if test $build = $target ; then
11365 LD_FOR_TARGET="$2"
ca9f4b81 11366 else
2693c0b0 11367 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11368 fi
1c00b503
PB
11369else
11370 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11371fi
11372
d1f8db0c
PB
11373else
11374 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11375fi
11376
11377
11378
11379
11380if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11381 if test -n "$with_build_time_tools"; then
5213506e
RW
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11383$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11384 if test -x $with_build_time_tools/lipo; then
11385 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11386 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11388$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11389 else
5213506e
RW
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391$as_echo "no" >&6; }
d1f8db0c 11392 fi
e8b05380
PB
11393 elif test $build != $host && test $have_gcc_for_target = yes; then
11394 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11395 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11396 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11397 fi
11398fi
278a7a38
AO
11399if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11400 # Extract the first word of "lipo", so it can be a program name with args.
11401set dummy lipo; ac_word=$2
5213506e
RW
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403$as_echo_n "checking for $ac_word... " >&6; }
11404if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
278a7a38
AO
11406else
11407 case $LIPO_FOR_TARGET in
11408 [\\/]* | ?:[\\/]*)
11409 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11410 ;;
11411 *)
11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413for as_dir in $gcc_cv_tool_dirs
11414do
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
5213506e
RW
11417 for ac_exec_ext in '' $ac_executable_extensions; do
11418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11419 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11421 break 2
11422 fi
11423done
5213506e
RW
11424 done
11425IFS=$as_save_IFS
278a7a38
AO
11426
11427 ;;
11428esac
11429fi
11430LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11431if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11433$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11434else
5213506e
RW
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436$as_echo "no" >&6; }
278a7a38
AO
11437fi
11438
5213506e 11439
278a7a38
AO
11440fi
11441if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11442
11443
11444if test -n "$LIPO_FOR_TARGET"; then
11445 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11446elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11447 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11448fi
11449
11450if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11451 for ncn_progname in lipo; do
11452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11453set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455$as_echo_n "checking for $ac_word... " >&6; }
11456if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
e8b05380 11458else
278a7a38
AO
11459 if test -n "$LIPO_FOR_TARGET"; then
11460 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11461else
11462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463for as_dir in $PATH
1c710c3c
DJ
11464do
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
5213506e
RW
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11469 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11471 break 2
11472 fi
11473done
5213506e
RW
11474 done
11475IFS=$as_save_IFS
1c710c3c 11476
e8b05380 11477fi
278a7a38
AO
11478fi
11479LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11480if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11482$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11483else
5213506e
RW
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485$as_echo "no" >&6; }
e8b05380
PB
11486fi
11487
5213506e 11488
278a7a38 11489 done
e8b05380 11490fi
278a7a38
AO
11491
11492if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11493 for ncn_progname in lipo; do
5213506e
RW
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11495$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11496 if test -x $with_build_time_tools/${ncn_progname}; then
11497 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499$as_echo "yes" >&6; }
e8b05380
PB
11500 break
11501 else
5213506e
RW
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503$as_echo "no" >&6; }
e8b05380
PB
11504 fi
11505 done
11506fi
11507
11508if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11509 for ncn_progname in lipo; do
11510 if test -n "$ncn_target_tool_prefix"; then
11511 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11512set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514$as_echo_n "checking for $ac_word... " >&6; }
11515if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
040b1c5a
GK
11517else
11518 if test -n "$LIPO_FOR_TARGET"; then
11519 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11520else
1c710c3c
DJ
11521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522for as_dir in $PATH
11523do
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
5213506e
RW
11526 for ac_exec_ext in '' $ac_executable_extensions; do
11527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11528 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11530 break 2
11531 fi
11532done
5213506e
RW
11533 done
11534IFS=$as_save_IFS
1c710c3c 11535
040b1c5a
GK
11536fi
11537fi
1c710c3c 11538LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11539if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11541$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11542else
5213506e
RW
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544$as_echo "no" >&6; }
040b1c5a
GK
11545fi
11546
5213506e 11547
e8b05380
PB
11548 fi
11549 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11551set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553$as_echo_n "checking for $ac_word... " >&6; }
11554if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
040b1c5a
GK
11556else
11557 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11558 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11559else
1c710c3c
DJ
11560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561for as_dir in $PATH
11562do
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
5213506e
RW
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11567 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11569 break 2
11570 fi
11571done
5213506e
RW
11572 done
11573IFS=$as_save_IFS
1c710c3c 11574
040b1c5a
GK
11575fi
11576fi
1c710c3c 11577LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11578if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11580$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11581else
5213506e
RW
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583$as_echo "no" >&6; }
040b1c5a 11584fi
1c710c3c 11585
5213506e 11586
e8b05380
PB
11587 fi
11588 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11589 done
11590fi
1c710c3c 11591
040b1c5a
GK
11592if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11593 set dummy lipo
11594 if test $build = $target ; then
11595 LIPO_FOR_TARGET="$2"
11596 else
11597 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11598 fi
1c00b503
PB
11599else
11600 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11601fi
11602
d1f8db0c
PB
11603else
11604 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11605fi
11606
11607
11608
11609
11610if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11611 if test -n "$with_build_time_tools"; then
5213506e
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11613$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11614 if test -x $with_build_time_tools/nm; then
11615 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11616 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11618$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11619 else
5213506e
RW
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621$as_echo "no" >&6; }
d1f8db0c 11622 fi
e8b05380
PB
11623 elif test $build != $host && test $have_gcc_for_target = yes; then
11624 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11625 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11626 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11627 fi
11628fi
3e19841a 11629if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11630 # Extract the first word of "nm", so it can be a program name with args.
11631set dummy nm; ac_word=$2
5213506e
RW
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633$as_echo_n "checking for $ac_word... " >&6; }
11634if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
e8b05380 11636else
1c710c3c
DJ
11637 case $NM_FOR_TARGET in
11638 [\\/]* | ?:[\\/]*)
e8b05380
PB
11639 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11640 ;;
e8b05380 11641 *)
1c710c3c
DJ
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643for as_dir in $gcc_cv_tool_dirs
11644do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
5213506e
RW
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11649 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11651 break 2
11652 fi
11653done
5213506e
RW
11654 done
11655IFS=$as_save_IFS
1c710c3c 11656
e8b05380
PB
11657 ;;
11658esac
11659fi
1c710c3c 11660NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11661if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11663$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11664else
5213506e
RW
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666$as_echo "no" >&6; }
e8b05380
PB
11667fi
11668
5213506e 11669
e8b05380
PB
11670fi
11671if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11672
11673
11674if test -n "$NM_FOR_TARGET"; then
11675 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11676elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11677 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11678fi
11679
11680if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11681 for ncn_progname in nm; do
11682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11683set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685$as_echo_n "checking for $ac_word... " >&6; }
11686if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
278a7a38
AO
11688else
11689 if test -n "$NM_FOR_TARGET"; then
11690 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11691else
11692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
11694do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
5213506e
RW
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11699 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11701 break 2
11702 fi
11703done
5213506e
RW
11704 done
11705IFS=$as_save_IFS
278a7a38
AO
11706
11707fi
11708fi
11709NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11710if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11712$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11713else
5213506e
RW
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715$as_echo "no" >&6; }
278a7a38
AO
11716fi
11717
5213506e 11718
278a7a38
AO
11719 done
11720fi
11721
11722if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11723 for ncn_progname in nm; do
5213506e
RW
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11725$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11726 if test -x $with_build_time_tools/${ncn_progname}; then
11727 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729$as_echo "yes" >&6; }
e8b05380
PB
11730 break
11731 else
5213506e
RW
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
e8b05380
PB
11734 fi
11735 done
11736fi
11737
11738if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11739 for ncn_progname in nm; do
11740 if test -n "$ncn_target_tool_prefix"; then
11741 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11742set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
11745if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11746 $as_echo_n "(cached) " >&6
ca9f4b81 11747else
4de997d1
PB
11748 if test -n "$NM_FOR_TARGET"; then
11749 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11750else
1c710c3c
DJ
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
5213506e
RW
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11758 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11760 break 2
11761 fi
11762done
5213506e
RW
11763 done
11764IFS=$as_save_IFS
1c710c3c 11765
ca9f4b81
AO
11766fi
11767fi
1c710c3c 11768NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11769if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11771$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11772else
5213506e
RW
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
ca9f4b81
AO
11775fi
11776
5213506e 11777
e8b05380
PB
11778 fi
11779 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11781set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783$as_echo_n "checking for $ac_word... " >&6; }
11784if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
ca9f4b81 11786else
2693c0b0
PB
11787 if test -n "$NM_FOR_TARGET"; then
11788 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11789else
1c710c3c
DJ
11790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791for as_dir in $PATH
11792do
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
5213506e
RW
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11797 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11799 break 2
11800 fi
11801done
5213506e
RW
11802 done
11803IFS=$as_save_IFS
1c710c3c 11804
ca9f4b81
AO
11805fi
11806fi
1c710c3c 11807NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 11808if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11810$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11811else
5213506e
RW
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813$as_echo "no" >&6; }
ca9f4b81 11814fi
1c710c3c 11815
5213506e 11816
e8b05380
PB
11817 fi
11818 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11819 done
11820fi
1c710c3c 11821
2693c0b0
PB
11822if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11823 set dummy nm
11824 if test $build = $target ; then
11825 NM_FOR_TARGET="$2"
ca9f4b81 11826 else
2693c0b0 11827 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11828 fi
1c00b503
PB
11829else
11830 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
11831fi
11832
d1f8db0c
PB
11833else
11834 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
11835fi
11836
11837
11838
11839
11840if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11841 if test -n "$with_build_time_tools"; then
5213506e
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11843$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11844 if test -x $with_build_time_tools/objdump; then
11845 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11846 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11848$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 11849 else
5213506e
RW
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851$as_echo "no" >&6; }
d1f8db0c 11852 fi
e8b05380
PB
11853 elif test $build != $host && test $have_gcc_for_target = yes; then
11854 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
11855 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11856 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
11857 fi
11858fi
3e19841a 11859if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11860 # Extract the first word of "objdump", so it can be a program name with args.
11861set dummy objdump; ac_word=$2
5213506e
RW
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863$as_echo_n "checking for $ac_word... " >&6; }
11864if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
e8b05380 11866else
1c710c3c
DJ
11867 case $OBJDUMP_FOR_TARGET in
11868 [\\/]* | ?:[\\/]*)
e8b05380
PB
11869 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11870 ;;
e8b05380 11871 *)
1c710c3c
DJ
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873for as_dir in $gcc_cv_tool_dirs
11874do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
5213506e
RW
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11879 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11881 break 2
11882 fi
11883done
5213506e
RW
11884 done
11885IFS=$as_save_IFS
1c710c3c 11886
e8b05380
PB
11887 ;;
11888esac
11889fi
1c710c3c 11890OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 11891if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11893$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 11894else
5213506e
RW
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
e8b05380
PB
11897fi
11898
5213506e 11899
e8b05380
PB
11900fi
11901if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
11902
11903
11904if test -n "$OBJDUMP_FOR_TARGET"; then
11905 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11906elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11907 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11908fi
11909
11910if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11911 for ncn_progname in objdump; do
11912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11913set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915$as_echo_n "checking for $ac_word... " >&6; }
11916if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11917 $as_echo_n "(cached) " >&6
278a7a38
AO
11918else
11919 if test -n "$OBJDUMP_FOR_TARGET"; then
11920 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11921else
11922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923for as_dir in $PATH
11924do
11925 IFS=$as_save_IFS
11926 test -z "$as_dir" && as_dir=.
5213506e
RW
11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11929 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 11930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11931 break 2
11932 fi
11933done
5213506e
RW
11934 done
11935IFS=$as_save_IFS
278a7a38
AO
11936
11937fi
11938fi
11939OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11940if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11942$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 11943else
5213506e
RW
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945$as_echo "no" >&6; }
278a7a38
AO
11946fi
11947
5213506e 11948
278a7a38
AO
11949 done
11950fi
11951
11952if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11953 for ncn_progname in objdump; do
5213506e
RW
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11955$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11956 if test -x $with_build_time_tools/${ncn_progname}; then
11957 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11959$as_echo "yes" >&6; }
e8b05380
PB
11960 break
11961 else
5213506e
RW
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963$as_echo "no" >&6; }
e8b05380
PB
11964 fi
11965 done
11966fi
11967
11968if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11969 for ncn_progname in objdump; do
11970 if test -n "$ncn_target_tool_prefix"; then
11971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11972set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974$as_echo_n "checking for $ac_word... " >&6; }
11975if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11976 $as_echo_n "(cached) " >&6
d739199a
DJ
11977else
11978 if test -n "$OBJDUMP_FOR_TARGET"; then
11979 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11980else
1c710c3c
DJ
11981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982for as_dir in $PATH
11983do
11984 IFS=$as_save_IFS
11985 test -z "$as_dir" && as_dir=.
5213506e
RW
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11988 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11990 break 2
11991 fi
11992done
5213506e
RW
11993 done
11994IFS=$as_save_IFS
1c710c3c 11995
d739199a
DJ
11996fi
11997fi
1c710c3c 11998OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 11999if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12001$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12002else
5213506e
RW
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004$as_echo "no" >&6; }
d739199a
DJ
12005fi
12006
5213506e 12007
e8b05380
PB
12008 fi
12009 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12011set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013$as_echo_n "checking for $ac_word... " >&6; }
12014if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
d739199a
DJ
12016else
12017 if test -n "$OBJDUMP_FOR_TARGET"; then
12018 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12019else
1c710c3c
DJ
12020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021for as_dir in $PATH
12022do
12023 IFS=$as_save_IFS
12024 test -z "$as_dir" && as_dir=.
5213506e
RW
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12027 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12029 break 2
12030 fi
12031done
5213506e
RW
12032 done
12033IFS=$as_save_IFS
1c710c3c 12034
d739199a
DJ
12035fi
12036fi
1c710c3c 12037OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12038if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12040$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12041else
5213506e
RW
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043$as_echo "no" >&6; }
d739199a 12044fi
1c710c3c 12045
5213506e 12046
e8b05380
PB
12047 fi
12048 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12049 done
12050fi
1c710c3c 12051
d739199a
DJ
12052if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12053 set dummy objdump
12054 if test $build = $target ; then
12055 OBJDUMP_FOR_TARGET="$2"
12056 else
12057 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12058 fi
1c00b503
PB
12059else
12060 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12061fi
12062
d1f8db0c
PB
12063else
12064 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12065fi
12066
12067
12068
12069
12070if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12071 if test -n "$with_build_time_tools"; then
5213506e
RW
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12073$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12074 if test -x $with_build_time_tools/ranlib; then
12075 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12076 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12078$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12079 else
5213506e
RW
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081$as_echo "no" >&6; }
d1f8db0c 12082 fi
e8b05380
PB
12083 elif test $build != $host && test $have_gcc_for_target = yes; then
12084 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12085 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12086 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12087 fi
12088fi
3e19841a 12089if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12090 # Extract the first word of "ranlib", so it can be a program name with args.
12091set dummy ranlib; ac_word=$2
5213506e
RW
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093$as_echo_n "checking for $ac_word... " >&6; }
12094if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
e8b05380 12096else
1c710c3c
DJ
12097 case $RANLIB_FOR_TARGET in
12098 [\\/]* | ?:[\\/]*)
e8b05380
PB
12099 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12100 ;;
e8b05380 12101 *)
1c710c3c
DJ
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103for as_dir in $gcc_cv_tool_dirs
12104do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
5213506e
RW
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12109 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12111 break 2
12112 fi
12113done
5213506e
RW
12114 done
12115IFS=$as_save_IFS
1c710c3c 12116
e8b05380
PB
12117 ;;
12118esac
12119fi
1c710c3c 12120RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12121if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12123$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12124else
5213506e
RW
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126$as_echo "no" >&6; }
e8b05380
PB
12127fi
12128
5213506e 12129
e8b05380
PB
12130fi
12131if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12132
12133
12134if test -n "$RANLIB_FOR_TARGET"; then
12135 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12136elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12137 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12138fi
12139
12140if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12141 for ncn_progname in ranlib; do
12142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12143set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145$as_echo_n "checking for $ac_word... " >&6; }
12146if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12147 $as_echo_n "(cached) " >&6
278a7a38
AO
12148else
12149 if test -n "$RANLIB_FOR_TARGET"; then
12150 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12151else
12152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153for as_dir in $PATH
12154do
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
5213506e
RW
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12159 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12161 break 2
12162 fi
12163done
5213506e
RW
12164 done
12165IFS=$as_save_IFS
278a7a38
AO
12166
12167fi
12168fi
12169RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12170if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12172$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12173else
5213506e
RW
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175$as_echo "no" >&6; }
278a7a38
AO
12176fi
12177
5213506e 12178
278a7a38
AO
12179 done
12180fi
12181
12182if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12183 for ncn_progname in ranlib; do
5213506e
RW
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12185$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12186 if test -x $with_build_time_tools/${ncn_progname}; then
12187 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12189$as_echo "yes" >&6; }
e8b05380
PB
12190 break
12191 else
5213506e
RW
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193$as_echo "no" >&6; }
e8b05380
PB
12194 fi
12195 done
12196fi
12197
12198if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12199 for ncn_progname in ranlib; do
12200 if test -n "$ncn_target_tool_prefix"; then
12201 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12202set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204$as_echo_n "checking for $ac_word... " >&6; }
12205if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
ca9f4b81 12207else
4de997d1
PB
12208 if test -n "$RANLIB_FOR_TARGET"; then
12209 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12210else
1c710c3c
DJ
12211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212for as_dir in $PATH
12213do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
5213506e
RW
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12218 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12220 break 2
12221 fi
12222done
5213506e
RW
12223 done
12224IFS=$as_save_IFS
1c710c3c 12225
ca9f4b81
AO
12226fi
12227fi
1c710c3c 12228RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12229if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12231$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12232else
5213506e
RW
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234$as_echo "no" >&6; }
ca9f4b81
AO
12235fi
12236
5213506e 12237
e8b05380
PB
12238 fi
12239 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12241set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243$as_echo_n "checking for $ac_word... " >&6; }
12244if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
ca9f4b81 12246else
2693c0b0
PB
12247 if test -n "$RANLIB_FOR_TARGET"; then
12248 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12249else
1c710c3c
DJ
12250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251for as_dir in $PATH
12252do
12253 IFS=$as_save_IFS
12254 test -z "$as_dir" && as_dir=.
5213506e
RW
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12257 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12259 break 2
12260 fi
12261done
5213506e
RW
12262 done
12263IFS=$as_save_IFS
1c710c3c 12264
ca9f4b81
AO
12265fi
12266fi
1c710c3c 12267RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12268if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12270$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12271else
5213506e
RW
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273$as_echo "no" >&6; }
ca9f4b81 12274fi
1c710c3c 12275
5213506e 12276
e8b05380
PB
12277 fi
12278 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12279 done
12280fi
1c710c3c 12281
e8b05380
PB
12282if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12283 set dummy ranlib
12284 if test $build = $target ; then
12285 RANLIB_FOR_TARGET="$2"
12286 else
12287 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12288 fi
1c00b503
PB
12289else
12290 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12291fi
2693c0b0 12292
d1f8db0c
PB
12293else
12294 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12295fi
12296
e8b05380
PB
12297
12298
12299
12300if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12301 if test -n "$with_build_time_tools"; then
5213506e
RW
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12303$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12304 if test -x $with_build_time_tools/strip; then
12305 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12306 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12308$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12309 else
5213506e
RW
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
d1f8db0c 12312 fi
e8b05380
PB
12313 elif test $build != $host && test $have_gcc_for_target = yes; then
12314 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12315 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12316 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12317 fi
12318fi
3e19841a 12319if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12320 # Extract the first word of "strip", so it can be a program name with args.
12321set dummy strip; ac_word=$2
5213506e
RW
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323$as_echo_n "checking for $ac_word... " >&6; }
12324if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
e8b05380 12326else
1c710c3c
DJ
12327 case $STRIP_FOR_TARGET in
12328 [\\/]* | ?:[\\/]*)
e8b05380
PB
12329 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12330 ;;
e8b05380 12331 *)
1c710c3c
DJ
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333for as_dir in $gcc_cv_tool_dirs
12334do
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
5213506e
RW
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12339 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12341 break 2
12342 fi
12343done
5213506e
RW
12344 done
12345IFS=$as_save_IFS
1c710c3c 12346
e8b05380
PB
12347 ;;
12348esac
12349fi
1c710c3c 12350STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12351if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12353$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12354else
5213506e
RW
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356$as_echo "no" >&6; }
e8b05380
PB
12357fi
12358
5213506e 12359
e8b05380
PB
12360fi
12361if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12362
12363
12364if test -n "$STRIP_FOR_TARGET"; then
12365 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12366elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12367 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12368fi
12369
12370if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12371 for ncn_progname in strip; do
12372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12373set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375$as_echo_n "checking for $ac_word... " >&6; }
12376if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
278a7a38
AO
12378else
12379 if test -n "$STRIP_FOR_TARGET"; then
12380 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12381else
12382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383for as_dir in $PATH
12384do
12385 IFS=$as_save_IFS
12386 test -z "$as_dir" && as_dir=.
5213506e
RW
12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12389 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12391 break 2
12392 fi
12393done
5213506e
RW
12394 done
12395IFS=$as_save_IFS
278a7a38
AO
12396
12397fi
12398fi
12399STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12400if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12402$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12403else
5213506e
RW
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405$as_echo "no" >&6; }
278a7a38
AO
12406fi
12407
5213506e 12408
278a7a38
AO
12409 done
12410fi
12411
12412if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12413 for ncn_progname in strip; do
5213506e
RW
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12415$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12416 if test -x $with_build_time_tools/${ncn_progname}; then
12417 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12419$as_echo "yes" >&6; }
e8b05380
PB
12420 break
12421 else
5213506e
RW
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
e8b05380
PB
12424 fi
12425 done
12426fi
12427
12428if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12429 for ncn_progname in strip; do
12430 if test -n "$ncn_target_tool_prefix"; then
12431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12432set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434$as_echo_n "checking for $ac_word... " >&6; }
12435if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
af71363e
AS
12437else
12438 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12439 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12440else
12441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442for as_dir in $PATH
12443do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
5213506e
RW
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12448 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12450 break 2
12451 fi
12452done
5213506e
RW
12453 done
12454IFS=$as_save_IFS
1c710c3c 12455
040b1c5a
GK
12456fi
12457fi
1c710c3c 12458STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12459if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12461$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12462else
5213506e
RW
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464$as_echo "no" >&6; }
040b1c5a
GK
12465fi
12466
5213506e 12467
e8b05380
PB
12468 fi
12469 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12471set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473$as_echo_n "checking for $ac_word... " >&6; }
12474if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
040b1c5a
GK
12476else
12477 if test -n "$STRIP_FOR_TARGET"; then
12478 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12479else
1c710c3c
DJ
12480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481for as_dir in $PATH
12482do
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
5213506e
RW
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12487 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12489 break 2
12490 fi
12491done
5213506e
RW
12492 done
12493IFS=$as_save_IFS
1c710c3c 12494
040b1c5a
GK
12495fi
12496fi
1c710c3c 12497STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12498if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12500$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12501else
5213506e
RW
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
040b1c5a 12504fi
1c710c3c 12505
5213506e 12506
e8b05380
PB
12507 fi
12508 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12509 done
12510fi
1c710c3c 12511
040b1c5a
GK
12512if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12513 set dummy strip
12514 if test $build = $target ; then
12515 STRIP_FOR_TARGET="$2"
12516 else
12517 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12518 fi
1c00b503
PB
12519else
12520 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
12521fi
12522
d1f8db0c
PB
12523else
12524 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
12525fi
12526
12527
12528
12529
12530if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12531 if test -n "$with_build_time_tools"; then
5213506e
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12533$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12534 if test -x $with_build_time_tools/windres; then
12535 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12536 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12538$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 12539 else
5213506e
RW
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541$as_echo "no" >&6; }
d1f8db0c 12542 fi
e8b05380
PB
12543 elif test $build != $host && test $have_gcc_for_target = yes; then
12544 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
12545 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12546 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
12547 fi
12548fi
3e19841a 12549if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12550 # Extract the first word of "windres", so it can be a program name with args.
12551set dummy windres; ac_word=$2
5213506e
RW
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553$as_echo_n "checking for $ac_word... " >&6; }
12554if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
e8b05380 12556else
1c710c3c
DJ
12557 case $WINDRES_FOR_TARGET in
12558 [\\/]* | ?:[\\/]*)
e8b05380
PB
12559 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12560 ;;
e8b05380 12561 *)
1c710c3c
DJ
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563for as_dir in $gcc_cv_tool_dirs
12564do
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
5213506e
RW
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12569 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12571 break 2
12572 fi
12573done
5213506e
RW
12574 done
12575IFS=$as_save_IFS
1c710c3c 12576
e8b05380
PB
12577 ;;
12578esac
12579fi
1c710c3c 12580WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 12581if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12583$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 12584else
5213506e
RW
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
e8b05380
PB
12587fi
12588
5213506e 12589
e8b05380
PB
12590fi
12591if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
12592
12593
12594if test -n "$WINDRES_FOR_TARGET"; then
12595 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12596elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12597 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12598fi
12599
12600if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12601 for ncn_progname in windres; do
12602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12603set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605$as_echo_n "checking for $ac_word... " >&6; }
12606if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
278a7a38
AO
12608else
12609 if test -n "$WINDRES_FOR_TARGET"; then
12610 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12611else
12612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613for as_dir in $PATH
12614do
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
5213506e
RW
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12619 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12621 break 2
12622 fi
12623done
5213506e
RW
12624 done
12625IFS=$as_save_IFS
278a7a38
AO
12626
12627fi
12628fi
12629WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12630if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12632$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 12633else
5213506e
RW
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635$as_echo "no" >&6; }
278a7a38
AO
12636fi
12637
5213506e 12638
278a7a38
AO
12639 done
12640fi
12641
12642if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12643 for ncn_progname in windres; do
5213506e
RW
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12645$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12646 if test -x $with_build_time_tools/${ncn_progname}; then
12647 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649$as_echo "yes" >&6; }
e8b05380
PB
12650 break
12651 else
5213506e
RW
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
e8b05380
PB
12654 fi
12655 done
12656fi
12657
12658if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12659 for ncn_progname in windres; do
12660 if test -n "$ncn_target_tool_prefix"; then
12661 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12662set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664$as_echo_n "checking for $ac_word... " >&6; }
12665if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12666 $as_echo_n "(cached) " >&6
ca9f4b81 12667else
4de997d1
PB
12668 if test -n "$WINDRES_FOR_TARGET"; then
12669 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12670else
1c710c3c
DJ
12671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672for as_dir in $PATH
12673do
12674 IFS=$as_save_IFS
12675 test -z "$as_dir" && as_dir=.
5213506e
RW
12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12678 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12680 break 2
12681 fi
12682done
5213506e
RW
12683 done
12684IFS=$as_save_IFS
1c710c3c 12685
ca9f4b81
AO
12686fi
12687fi
1c710c3c 12688WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 12689if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12691$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12692else
5213506e
RW
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694$as_echo "no" >&6; }
ca9f4b81
AO
12695fi
12696
5213506e 12697
e8b05380
PB
12698 fi
12699 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12701set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703$as_echo_n "checking for $ac_word... " >&6; }
12704if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
ca9f4b81 12706else
2693c0b0
PB
12707 if test -n "$WINDRES_FOR_TARGET"; then
12708 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12709else
1c710c3c
DJ
12710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711for as_dir in $PATH
12712do
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
5213506e
RW
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12717 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12719 break 2
12720 fi
12721done
5213506e
RW
12722 done
12723IFS=$as_save_IFS
1c710c3c 12724
ca9f4b81
AO
12725fi
12726fi
1c710c3c 12727WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 12728if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12730$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12731else
5213506e
RW
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733$as_echo "no" >&6; }
ca9f4b81 12734fi
1c710c3c 12735
5213506e 12736
e8b05380
PB
12737 fi
12738 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12739 done
12740fi
1c710c3c 12741
2693c0b0
PB
12742if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12743 set dummy windres
12744 if test $build = $target ; then
12745 WINDRES_FOR_TARGET="$2"
ca9f4b81 12746 else
2693c0b0 12747 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12748 fi
1c00b503
PB
12749else
12750 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
12751fi
12752
d1f8db0c
PB
12753else
12754 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
12755fi
12756
4977bab6 12757
901119ae
KT
12758
12759
12760if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12761 if test -n "$with_build_time_tools"; then
5213506e
RW
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12763$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
12764 if test -x $with_build_time_tools/windmc; then
12765 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12766 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12768$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 12769 else
5213506e
RW
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
901119ae
KT
12772 fi
12773 elif test $build != $host && test $have_gcc_for_target = yes; then
12774 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
12775 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12776 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
12777 fi
12778fi
12779if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12780 # Extract the first word of "windmc", so it can be a program name with args.
12781set dummy windmc; ac_word=$2
5213506e
RW
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783$as_echo_n "checking for $ac_word... " >&6; }
12784if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
901119ae
KT
12786else
12787 case $WINDMC_FOR_TARGET in
12788 [\\/]* | ?:[\\/]*)
12789 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12790 ;;
12791 *)
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793for as_dir in $gcc_cv_tool_dirs
12794do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
5213506e
RW
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12799 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12801 break 2
12802 fi
12803done
5213506e
RW
12804 done
12805IFS=$as_save_IFS
901119ae
KT
12806
12807 ;;
12808esac
12809fi
12810WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 12811if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12813$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12814else
5213506e
RW
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816$as_echo "no" >&6; }
901119ae
KT
12817fi
12818
5213506e 12819
901119ae
KT
12820fi
12821if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12822
12823
12824if test -n "$WINDMC_FOR_TARGET"; then
12825 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12826elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12827 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12828fi
12829
12830if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12831 for ncn_progname in windmc; do
12832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12833set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835$as_echo_n "checking for $ac_word... " >&6; }
12836if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
901119ae
KT
12838else
12839 if test -n "$WINDMC_FOR_TARGET"; then
12840 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12841else
12842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843for as_dir in $PATH
12844do
12845 IFS=$as_save_IFS
12846 test -z "$as_dir" && as_dir=.
5213506e
RW
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12849 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12851 break 2
12852 fi
12853done
5213506e
RW
12854 done
12855IFS=$as_save_IFS
901119ae
KT
12856
12857fi
12858fi
12859WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12860if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12862$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12863else
5213506e
RW
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865$as_echo "no" >&6; }
901119ae
KT
12866fi
12867
5213506e 12868
901119ae
KT
12869 done
12870fi
12871
12872if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12873 for ncn_progname in windmc; do
5213506e
RW
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12875$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
12876 if test -x $with_build_time_tools/${ncn_progname}; then
12877 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12879$as_echo "yes" >&6; }
901119ae
KT
12880 break
12881 else
5213506e
RW
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
901119ae
KT
12884 fi
12885 done
12886fi
12887
12888if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12889 for ncn_progname in windmc; do
12890 if test -n "$ncn_target_tool_prefix"; then
12891 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12892set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12894$as_echo_n "checking for $ac_word... " >&6; }
12895if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
901119ae
KT
12897else
12898 if test -n "$WINDMC_FOR_TARGET"; then
12899 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12900else
12901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902for as_dir in $PATH
12903do
12904 IFS=$as_save_IFS
12905 test -z "$as_dir" && as_dir=.
5213506e
RW
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12908 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12910 break 2
12911 fi
12912done
5213506e
RW
12913 done
12914IFS=$as_save_IFS
901119ae
KT
12915
12916fi
12917fi
12918WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12919if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12921$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12922else
5213506e
RW
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924$as_echo "no" >&6; }
901119ae
KT
12925fi
12926
5213506e 12927
901119ae
KT
12928 fi
12929 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12931set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933$as_echo_n "checking for $ac_word... " >&6; }
12934if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
901119ae
KT
12936else
12937 if test -n "$WINDMC_FOR_TARGET"; then
12938 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12939else
12940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941for as_dir in $PATH
12942do
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
5213506e
RW
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12947 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12949 break 2
12950 fi
12951done
5213506e
RW
12952 done
12953IFS=$as_save_IFS
901119ae
KT
12954
12955fi
12956fi
12957WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12958if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12960$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12961else
5213506e
RW
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963$as_echo "no" >&6; }
901119ae
KT
12964fi
12965
5213506e 12966
901119ae
KT
12967 fi
12968 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12969 done
12970fi
12971
12972if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12973 set dummy windmc
12974 if test $build = $target ; then
12975 WINDMC_FOR_TARGET="$2"
12976 else
12977 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12978 fi
1c00b503
PB
12979else
12980 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
12981fi
12982
12983else
12984 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12985fi
12986
12987
2abefe3d
PB
12988RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12989
5213506e
RW
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12991$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 12992if test "x${build}" != "x${host}" ; then
e8b05380
PB
12993 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12994 # We already found the complete path
172e41aa 12995 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12997$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12998 else
12999 # Canadian cross, just use what we found
5213506e
RW
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13001$as_echo "pre-installed" >&6; }
e8b05380 13002 fi
2abefe3d
PB
13003else
13004 ok=yes
13005 case " ${configdirs} " in
13006 *" binutils "*) ;;
13007 *) ok=no ;;
13008 esac
1c710c3c 13009
2abefe3d
PB
13010 if test $ok = yes; then
13011 # An in-tree tool is available and we can use it
13012 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13014$as_echo "just compiled" >&6; }
e8b05380
PB
13015 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13016 # We already found the complete path
172e41aa 13017 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13019$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13020 elif test "x$target" = "x$host"; then
13021 # We can use an host tool
13022 AR_FOR_TARGET='$(AR)'
5213506e
RW
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13024$as_echo "host tool" >&6; }
2abefe3d
PB
13025 else
13026 # We need a cross tool
5213506e
RW
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13028$as_echo "pre-installed" >&6; }
2abefe3d
PB
13029 fi
13030fi
0b0dc272 13031
5213506e
RW
13032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13033$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13034if test "x${build}" != "x${host}" ; then
e8b05380
PB
13035 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13036 # We already found the complete path
172e41aa 13037 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13039$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13040 else
13041 # Canadian cross, just use what we found
5213506e
RW
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13043$as_echo "pre-installed" >&6; }
e8b05380 13044 fi
2abefe3d
PB
13045else
13046 ok=yes
13047 case " ${configdirs} " in
13048 *" gas "*) ;;
13049 *) ok=no ;;
13050 esac
1c710c3c 13051
2abefe3d
PB
13052 if test $ok = yes; then
13053 # An in-tree tool is available and we can use it
13054 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13056$as_echo "just compiled" >&6; }
e8b05380
PB
13057 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13058 # We already found the complete path
172e41aa 13059 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13061$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13062 elif test "x$target" = "x$host"; then
13063 # We can use an host tool
13064 AS_FOR_TARGET='$(AS)'
5213506e
RW
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13066$as_echo "host tool" >&6; }
2abefe3d
PB
13067 else
13068 # We need a cross tool
5213506e
RW
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13070$as_echo "pre-installed" >&6; }
2abefe3d
PB
13071 fi
13072fi
0b0dc272 13073
5213506e
RW
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13075$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13076if test "x${build}" != "x${host}" ; then
e8b05380
PB
13077 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13078 # We already found the complete path
172e41aa 13079 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13081$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13082 else
13083 # Canadian cross, just use what we found
5213506e
RW
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13085$as_echo "pre-installed" >&6; }
e8b05380 13086 fi
2abefe3d
PB
13087else
13088 ok=yes
13089 case " ${configdirs} " in
13090 *" gcc "*) ;;
13091 *) ok=no ;;
13092 esac
1c710c3c 13093
2abefe3d
PB
13094 if test $ok = yes; then
13095 # An in-tree tool is available and we can use it
13096 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13098$as_echo "just compiled" >&6; }
e8b05380
PB
13099 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13100 # We already found the complete path
172e41aa 13101 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13103$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13104 elif test "x$target" = "x$host"; then
13105 # We can use an host tool
13106 CC_FOR_TARGET='$(CC)'
5213506e
RW
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13108$as_echo "host tool" >&6; }
2abefe3d
PB
13109 else
13110 # We need a cross tool
5213506e
RW
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13112$as_echo "pre-installed" >&6; }
2abefe3d
PB
13113 fi
13114fi
0b0dc272 13115
5213506e
RW
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13117$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13118if test "x${build}" != "x${host}" ; then
e8b05380
PB
13119 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13120 # We already found the complete path
172e41aa 13121 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13123$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13124 else
13125 # Canadian cross, just use what we found
5213506e
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13127$as_echo "pre-installed" >&6; }
e8b05380 13128 fi
2abefe3d
PB
13129else
13130 ok=yes
13131 case " ${configdirs} " in
13132 *" gcc "*) ;;
13133 *) ok=no ;;
13134 esac
13135 case ,${enable_languages}, in
13136 *,c++,*) ;;
13137 *) ok=no ;;
13138 esac
13139 if test $ok = yes; then
13140 # An in-tree tool is available and we can use it
13141 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
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13143$as_echo "just compiled" >&6; }
e8b05380
PB
13144 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13145 # We already found the complete path
172e41aa 13146 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13148$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13149 elif test "x$target" = "x$host"; then
13150 # We can use an host tool
13151 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13153$as_echo "host tool" >&6; }
2abefe3d
PB
13154 else
13155 # We need a cross tool
5213506e
RW
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13157$as_echo "pre-installed" >&6; }
2abefe3d
PB
13158 fi
13159fi
0b0dc272 13160
5213506e
RW
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13162$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13163if test "x${build}" != "x${host}" ; then
e8b05380
PB
13164 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13165 # We already found the complete path
172e41aa 13166 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13168$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13169 else
13170 # Canadian cross, just use what we found
5213506e
RW
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13172$as_echo "pre-installed" >&6; }
e8b05380 13173 fi
2abefe3d
PB
13174else
13175 ok=yes
13176 case " ${configdirs} " in
13177 *" gcc "*) ;;
13178 *) ok=no ;;
13179 esac
13180 case ,${enable_languages}, in
13181 *,c++,*) ;;
13182 *) ok=no ;;
13183 esac
13184 if test $ok = yes; then
13185 # An in-tree tool is available and we can use it
13186 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
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13188$as_echo "just compiled" >&6; }
e8b05380
PB
13189 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13190 # We already found the complete path
172e41aa 13191 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13193$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13194 elif test "x$target" = "x$host"; then
13195 # We can use an host tool
13196 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13198$as_echo "host tool" >&6; }
2abefe3d
PB
13199 else
13200 # We need a cross tool
5213506e
RW
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13202$as_echo "pre-installed" >&6; }
2abefe3d
PB
13203 fi
13204fi
0b0dc272 13205
5213506e
RW
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13207$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13208if test "x${build}" != "x${host}" ; then
e8b05380
PB
13209 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13210 # We already found the complete path
172e41aa 13211 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13213$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13214 else
13215 # Canadian cross, just use what we found
5213506e
RW
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13217$as_echo "pre-installed" >&6; }
e8b05380 13218 fi
2abefe3d
PB
13219else
13220 ok=yes
13221 case " ${configdirs} " in
13222 *" binutils "*) ;;
13223 *) ok=no ;;
13224 esac
1c710c3c 13225
2abefe3d
PB
13226 if test $ok = yes; then
13227 # An in-tree tool is available and we can use it
13228 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13230$as_echo "just compiled" >&6; }
e8b05380
PB
13231 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13232 # We already found the complete path
172e41aa 13233 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13235$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13236 elif test "x$target" = "x$host"; then
13237 # We can use an host tool
13238 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13240$as_echo "host tool" >&6; }
2abefe3d
PB
13241 else
13242 # We need a cross tool
5213506e
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13244$as_echo "pre-installed" >&6; }
2abefe3d
PB
13245 fi
13246fi
0b0dc272 13247
5213506e
RW
13248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13249$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13250if test "x${build}" != "x${host}" ; then
e8b05380
PB
13251 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13252 # We already found the complete path
172e41aa 13253 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13255$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13256 else
13257 # Canadian cross, just use what we found
5213506e
RW
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13259$as_echo "pre-installed" >&6; }
e8b05380 13260 fi
2abefe3d
PB
13261else
13262 ok=yes
13263 case " ${configdirs} " in
13264 *" gcc "*) ;;
13265 *) ok=no ;;
13266 esac
1c710c3c 13267
2abefe3d
PB
13268 if test $ok = yes; then
13269 # An in-tree tool is available and we can use it
13270 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13272$as_echo "just compiled" >&6; }
e8b05380
PB
13273 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13274 # We already found the complete path
172e41aa 13275 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13277$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13278 elif test "x$target" = "x$host"; then
13279 # We can use an host tool
13280 GCC_FOR_TARGET='$()'
5213506e
RW
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13282$as_echo "host tool" >&6; }
2abefe3d
PB
13283 else
13284 # We need a cross tool
5213506e
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13286$as_echo "pre-installed" >&6; }
2abefe3d
PB
13287 fi
13288fi
0b0dc272 13289
5213506e
RW
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13291$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13292if test "x${build}" != "x${host}" ; then
e8b05380
PB
13293 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13294 # We already found the complete path
172e41aa 13295 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13297$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13298 else
13299 # Canadian cross, just use what we found
5213506e
RW
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13301$as_echo "pre-installed" >&6; }
e8b05380 13302 fi
2abefe3d
PB
13303else
13304 ok=yes
13305 case " ${configdirs} " in
13306 *" gcc "*) ;;
13307 *) ok=no ;;
13308 esac
13309 case ,${enable_languages}, in
13310 *,java,*) ;;
13311 *) ok=no ;;
13312 esac
13313 if test $ok = yes; then
13314 # An in-tree tool is available and we can use it
13315 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13317$as_echo "just compiled" >&6; }
e8b05380
PB
13318 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13319 # We already found the complete path
172e41aa 13320 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13322$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13323 elif test "x$target" = "x$host"; then
13324 # We can use an host tool
13325 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13327$as_echo "host tool" >&6; }
2abefe3d
PB
13328 else
13329 # We need a cross tool
5213506e
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13331$as_echo "pre-installed" >&6; }
2abefe3d
PB
13332 fi
13333fi
0b0dc272 13334
5213506e
RW
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13336$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13337if test "x${build}" != "x${host}" ; then
e8b05380
PB
13338 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13339 # We already found the complete path
172e41aa 13340 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13342$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13343 else
13344 # Canadian cross, just use what we found
5213506e
RW
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13346$as_echo "pre-installed" >&6; }
e8b05380 13347 fi
2abefe3d
PB
13348else
13349 ok=yes
13350 case " ${configdirs} " in
13351 *" gcc "*) ;;
13352 *) ok=no ;;
13353 esac
13354 case ,${enable_languages}, in
13355 *,fortran,*) ;;
13356 *) ok=no ;;
13357 esac
13358 if test $ok = yes; then
13359 # An in-tree tool is available and we can use it
13360 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13362$as_echo "just compiled" >&6; }
e8b05380
PB
13363 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13364 # We already found the complete path
172e41aa 13365 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13367$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13368 elif test "x$target" = "x$host"; then
13369 # We can use an host tool
13370 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13372$as_echo "host tool" >&6; }
2abefe3d
PB
13373 else
13374 # We need a cross tool
5213506e
RW
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13376$as_echo "pre-installed" >&6; }
2abefe3d
PB
13377 fi
13378fi
0b0dc272 13379
5213506e
RW
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13381$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13382if test "x${build}" != "x${host}" ; then
e8b05380
PB
13383 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13384 # We already found the complete path
172e41aa 13385 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13387$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13388 else
13389 # Canadian cross, just use what we found
5213506e
RW
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13391$as_echo "pre-installed" >&6; }
e8b05380 13392 fi
2abefe3d
PB
13393else
13394 ok=yes
13395 case " ${configdirs} " in
13396 *" ld "*) ;;
13397 *) ok=no ;;
13398 esac
1c710c3c 13399
2abefe3d
PB
13400 if test $ok = yes; then
13401 # An in-tree tool is available and we can use it
13402 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13404$as_echo "just compiled" >&6; }
e8b05380
PB
13405 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13406 # We already found the complete path
172e41aa 13407 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13409$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13410 elif test "x$target" = "x$host"; then
13411 # We can use an host tool
13412 LD_FOR_TARGET='$(LD)'
5213506e
RW
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13414$as_echo "host tool" >&6; }
2abefe3d
PB
13415 else
13416 # We need a cross tool
5213506e
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13418$as_echo "pre-installed" >&6; }
2abefe3d
PB
13419 fi
13420fi
0b0dc272 13421
5213506e
RW
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13423$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13424if test "x${build}" != "x${host}" ; then
e8b05380
PB
13425 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13426 # We already found the complete path
172e41aa 13427 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13429$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13430 else
13431 # Canadian cross, just use what we found
5213506e
RW
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13433$as_echo "pre-installed" >&6; }
e8b05380 13434 fi
2abefe3d 13435else
e8b05380
PB
13436 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13437 # We already found the complete path
172e41aa 13438 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13440$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 13441 elif test "x$target" = "x$host"; then
2abefe3d
PB
13442 # We can use an host tool
13443 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13445$as_echo "host tool" >&6; }
2abefe3d
PB
13446 else
13447 # We need a cross tool
5213506e
RW
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13449$as_echo "pre-installed" >&6; }
2abefe3d
PB
13450 fi
13451fi
0b0dc272 13452
5213506e
RW
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13454$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13455if test "x${build}" != "x${host}" ; then
e8b05380
PB
13456 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13457 # We already found the complete path
172e41aa 13458 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13460$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13461 else
13462 # Canadian cross, just use what we found
5213506e
RW
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13464$as_echo "pre-installed" >&6; }
e8b05380 13465 fi
2abefe3d
PB
13466else
13467 ok=yes
13468 case " ${configdirs} " in
13469 *" binutils "*) ;;
13470 *) ok=no ;;
13471 esac
1c710c3c 13472
2abefe3d
PB
13473 if test $ok = yes; then
13474 # An in-tree tool is available and we can use it
13475 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13477$as_echo "just compiled" >&6; }
e8b05380
PB
13478 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13479 # We already found the complete path
172e41aa 13480 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13482$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13483 elif test "x$target" = "x$host"; then
13484 # We can use an host tool
13485 NM_FOR_TARGET='$(NM)'
5213506e
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13487$as_echo "host tool" >&6; }
2abefe3d
PB
13488 else
13489 # We need a cross tool
5213506e
RW
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13491$as_echo "pre-installed" >&6; }
2abefe3d
PB
13492 fi
13493fi
0b0dc272 13494
5213506e
RW
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13496$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 13497if test "x${build}" != "x${host}" ; then
e8b05380
PB
13498 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13499 # We already found the complete path
172e41aa 13500 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13502$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13503 else
13504 # Canadian cross, just use what we found
5213506e
RW
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13506$as_echo "pre-installed" >&6; }
e8b05380 13507 fi
2abefe3d
PB
13508else
13509 ok=yes
13510 case " ${configdirs} " in
13511 *" binutils "*) ;;
13512 *) ok=no ;;
13513 esac
1c710c3c 13514
2abefe3d
PB
13515 if test $ok = yes; then
13516 # An in-tree tool is available and we can use it
13517 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13519$as_echo "just compiled" >&6; }
e8b05380
PB
13520 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13521 # We already found the complete path
172e41aa 13522 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13524$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13525 elif test "x$target" = "x$host"; then
13526 # We can use an host tool
13527 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13529$as_echo "host tool" >&6; }
2abefe3d
PB
13530 else
13531 # We need a cross tool
5213506e
RW
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13533$as_echo "pre-installed" >&6; }
2abefe3d
PB
13534 fi
13535fi
0b0dc272 13536
5213506e
RW
13537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13538$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 13539if test "x${build}" != "x${host}" ; then
e8b05380
PB
13540 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13541 # We already found the complete path
172e41aa 13542 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13544$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13545 else
13546 # Canadian cross, just use what we found
5213506e
RW
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13548$as_echo "pre-installed" >&6; }
e8b05380 13549 fi
2abefe3d
PB
13550else
13551 ok=yes
13552 case " ${configdirs} " in
13553 *" binutils "*) ;;
13554 *) ok=no ;;
13555 esac
1c710c3c 13556
2abefe3d
PB
13557 if test $ok = yes; then
13558 # An in-tree tool is available and we can use it
13559 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13561$as_echo "just compiled" >&6; }
e8b05380
PB
13562 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13563 # We already found the complete path
172e41aa 13564 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13566$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13567 elif test "x$target" = "x$host"; then
13568 # We can use an host tool
13569 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13571$as_echo "host tool" >&6; }
2abefe3d
PB
13572 else
13573 # We need a cross tool
5213506e
RW
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13575$as_echo "pre-installed" >&6; }
2abefe3d
PB
13576 fi
13577fi
0b0dc272 13578
5213506e
RW
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13580$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 13581if test "x${build}" != "x${host}" ; then
e8b05380
PB
13582 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13583 # We already found the complete path
172e41aa 13584 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13586$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13587 else
13588 # Canadian cross, just use what we found
5213506e
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13590$as_echo "pre-installed" >&6; }
e8b05380 13591 fi
2abefe3d
PB
13592else
13593 ok=yes
13594 case " ${configdirs} " in
13595 *" binutils "*) ;;
13596 *) ok=no ;;
13597 esac
1c710c3c 13598
2abefe3d
PB
13599 if test $ok = yes; then
13600 # An in-tree tool is available and we can use it
13601 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5213506e
RW
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13603$as_echo "just compiled" >&6; }
e8b05380
PB
13604 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13605 # We already found the complete path
172e41aa 13606 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13608$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13609 elif test "x$target" = "x$host"; then
13610 # We can use an host tool
13611 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13613$as_echo "host tool" >&6; }
2abefe3d
PB
13614 else
13615 # We need a cross tool
5213506e
RW
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13617$as_echo "pre-installed" >&6; }
2abefe3d
PB
13618 fi
13619fi
0b0dc272 13620
5213506e
RW
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13622$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 13623if test "x${build}" != "x${host}" ; then
e8b05380
PB
13624 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13625 # We already found the complete path
172e41aa 13626 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13628$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13629 else
13630 # Canadian cross, just use what we found
5213506e
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13632$as_echo "pre-installed" >&6; }
e8b05380 13633 fi
2abefe3d
PB
13634else
13635 ok=yes
13636 case " ${configdirs} " in
13637 *" binutils "*) ;;
13638 *) ok=no ;;
13639 esac
1c710c3c 13640
2abefe3d
PB
13641 if test $ok = yes; then
13642 # An in-tree tool is available and we can use it
13643 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13645$as_echo "just compiled" >&6; }
e8b05380
PB
13646 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13647 # We already found the complete path
172e41aa 13648 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13650$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13651 elif test "x$target" = "x$host"; then
13652 # We can use an host tool
13653 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13655$as_echo "host tool" >&6; }
2abefe3d
PB
13656 else
13657 # We need a cross tool
5213506e
RW
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13659$as_echo "pre-installed" >&6; }
2abefe3d 13660 fi
671aa708 13661fi
be912515 13662
5213506e
RW
13663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13664$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
13665if test "x${build}" != "x${host}" ; then
13666 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13667 # We already found the complete path
13668 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13670$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13671 else
13672 # Canadian cross, just use what we found
5213506e
RW
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13674$as_echo "pre-installed" >&6; }
901119ae
KT
13675 fi
13676else
13677 ok=yes
13678 case " ${configdirs} " in
13679 *" binutils "*) ;;
13680 *) ok=no ;;
13681 esac
13682
13683 if test $ok = yes; then
13684 # An in-tree tool is available and we can use it
13685 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13687$as_echo "just compiled" >&6; }
901119ae
KT
13688 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13689 # We already found the complete path
13690 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13692$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13693 elif test "x$target" = "x$host"; then
13694 # We can use an host tool
13695 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13697$as_echo "host tool" >&6; }
901119ae
KT
13698 else
13699 # We need a cross tool
5213506e
RW
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13701$as_echo "pre-installed" >&6; }
901119ae
KT
13702 fi
13703fi
13704
be912515
NN
13705
13706
2abefe3d 13707
0b0dc272 13708
671aa708
NN
13709# Certain tools may need extra flags.
13710AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13711RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13712NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13713
2abefe3d
PB
13714# When building target libraries, except in a Canadian cross, we use
13715# the same toolchain as the compiler we just built.
13716COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13717COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13718COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13719if test $host = $build; then
13720 case " $configdirs " in
13721 *" gcc "*)
13722 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13723 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13724 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13725 ;;
13726 esac
13727fi
13728
13729
13730
13731
13732
5213506e
RW
13733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13734$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13735# Check whether --enable-maintainer-mode was given.
13736if test "${enable_maintainer_mode+set}" = set; then :
13737 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
13738else
13739 USE_MAINTAINER_MODE=no
5213506e
RW
13740fi
13741
13742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13743$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
13744
13745
13746if test "$USE_MAINTAINER_MODE" = yes; then
13747 MAINTAINER_MODE_TRUE=
13748 MAINTAINER_MODE_FALSE='#'
13749else
13750 MAINTAINER_MODE_TRUE='#'
13751 MAINTAINER_MODE_FALSE=
1c710c3c 13752fi
ee03dc5e
AO
13753MAINT=$MAINTAINER_MODE_TRUE
13754
2805b53a
NN
13755# ---------------------
13756# GCC bootstrap support
13757# ---------------------
13758
13759# Stage specific cflags for build.
13760stage1_cflags="-g"
13761case $build in
13762 vax-*-*)
13763 case ${GCC} in
13764 yes) stage1_cflags="-g -Wa,-J" ;;
13765 *) stage1_cflags="-g -J" ;;
13766 esac ;;
2805b53a
NN
13767esac
13768
0b50988a 13769# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 13770if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
13771 saved_CFLAGS="$CFLAGS"
13772
13773 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13774 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13776$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
13778/* end confdefs.h. */
13779
9cc1244e
JJ
13780#if (__GNUC__ < 3) \
13781 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13782 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13783#error http://gcc.gnu.org/PR29382
13784#endif
13785
1c710c3c
DJ
13786int
13787main ()
13788{
13789
13790 ;
13791 return 0;
13792}
13793_ACEOF
5213506e
RW
13794if ac_fn_c_try_compile "$LINENO"; then :
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13796$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 13797else
5213506e
RW
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799$as_echo "no" >&6; }
1c710c3c 13800fi
5213506e 13801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
13802
13803 CFLAGS="$saved_CFLAGS"
13804fi
13805
13806
2805b53a 13807
8efea775 13808# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
13809# Check whether --enable-stage1-checking was given.
13810if test "${enable_stage1_checking+set}" = set; then :
13811 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 13812else
e643dc23 13813 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 13814 stage1_checking=--enable-checking=yes,types
8efea775 13815else
e643dc23 13816 stage1_checking=--enable-checking=$enable_checking,types
8efea775 13817fi
5213506e 13818fi
8efea775
PB
13819
13820
2aeb72e9 13821
5213506e
RW
13822# Enable -Werror in bootstrap stage2 and later.
13823# Check whether --enable-werror was given.
13824if test "${enable_werror+set}" = set; then :
13825 enableval=$enable_werror;
2805b53a 13826else
416cfb5e 13827 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 13828 enable_werror=yes
88fceb68
PB
13829else
13830 enable_werror=no
13831fi
5213506e
RW
13832fi
13833
09a9c095
NN
13834case ${enable_werror} in
13835 yes) stage2_werror_flag="--enable-werror-always" ;;
13836 *) stage2_werror_flag="" ;;
2805b53a
NN
13837esac
13838
13839
f2689b09
SE
13840# Specify what files to not compare during bootstrap.
13841
13842compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13843case "$target" in
13844 hppa*64*-*-hpux*) ;;
13845 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13846esac
f61428ed
AO
13847case " $configdirs " in
13848*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13849esac
f2689b09
SE
13850
13851
5213506e
RW
13852ac_config_files="$ac_config_files Makefile"
13853
1c710c3c 13854cat >confcache <<\_ACEOF
671aa708
NN
13855# This file is a shell script that caches the results of configure
13856# tests run on this system so they can be shared between configure
1c710c3c
DJ
13857# scripts and configure runs, see configure's option --config-cache.
13858# It is not useful on other systems. If it contains results you don't
13859# want to keep, you may remove or edit it.
671aa708 13860#
1c710c3c
DJ
13861# config.status only pays attention to the cache file if you give it
13862# the --recheck option to rerun configure.
671aa708 13863#
1c710c3c
DJ
13864# `ac_cv_env_foo' variables (set or unset) will be overridden when
13865# loading this file, other *unset* `ac_cv_foo' will be assigned the
13866# following values.
13867
13868_ACEOF
13869
671aa708
NN
13870# The following way of writing the cache mishandles newlines in values,
13871# but we know of no workaround that is simple, portable, and efficient.
5213506e 13872# So, we kill variables containing newlines.
671aa708
NN
13873# Ultrix sh set writes to stderr and can't be redirected directly,
13874# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
13875(
13876 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13877 eval ac_val=\$$ac_var
13878 case $ac_val in #(
13879 *${as_nl}*)
13880 case $ac_var in #(
13881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13882$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13883 esac
13884 case $ac_var in #(
13885 _ | IFS | as_nl) ;; #(
13886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13887 *) { eval $ac_var=; unset $ac_var;} ;;
13888 esac ;;
13889 esac
13890 done
13891
1c710c3c 13892 (set) 2>&1 |
5213506e
RW
13893 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13894 *${as_nl}ac_space=\ *)
13895 # `set' does not quote correctly, so add quotes: double-quote
13896 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
13897 sed -n \
13898 "s/'/'\\\\''/g;
13899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 13900 ;; #(
1c710c3c
DJ
13901 *)
13902 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 13903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 13904 ;;
5213506e
RW
13905 esac |
13906 sort
13907) |
1c710c3c 13908 sed '
5213506e 13909 /^ac_cv_env_/b end
1c710c3c 13910 t clear
5213506e 13911 :clear
1c710c3c
DJ
13912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13913 t end
5213506e
RW
13914 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13915 :end' >>confcache
13916if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13917 if test -w "$cache_file"; then
13918 test "x$cache_file" != "x/dev/null" &&
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13920$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 13921 cat confcache >$cache_file
671aa708 13922 else
5213506e
RW
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13924$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 13925 fi
4977bab6 13926fi
671aa708 13927rm -f confcache
79c06341 13928
671aa708
NN
13929test "x$prefix" = xNONE && prefix=$ac_default_prefix
13930# Let make expand exec_prefix.
13931test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 13932
671aa708
NN
13933# Transform confdefs.h into DEFS.
13934# Protect against shell expansion while executing Makefile rules.
13935# Protect against Makefile macro expansion.
1c710c3c
DJ
13936#
13937# If the first sed substitution is executed (which looks for macros that
5213506e 13938# take arguments), then branch to the quote section. Otherwise,
1c710c3c 13939# look for a macro that doesn't take arguments.
5213506e
RW
13940ac_script='
13941:mline
13942/\\$/{
13943 N
13944 s,\\\n,,
13945 b mline
13946}
1c710c3c 13947t clear
5213506e
RW
13948:clear
13949s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 13950t quote
5213506e 13951s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 13952t quote
5213506e
RW
13953b any
13954:quote
13955s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13956s/\[/\\&/g
13957s/\]/\\&/g
13958s/\$/$$/g
13959H
13960:any
13961${
13962 g
13963 s/^\n//
13964 s/\n/ /g
13965 p
13966}
13967'
13968DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
13969
13970
13971ac_libobjs=
13972ac_ltlibobjs=
13973for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13974 # 1. Remove the extension, and $U if already installed.
5213506e
RW
13975 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13976 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13977 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13978 # will be set to the directory where LIBOBJS objects are built.
13979 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13980 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
13981done
13982LIBOBJS=$ac_libobjs
fb0103e5 13983
1c710c3c 13984LTLIBOBJS=$ac_ltlibobjs
0b0dc272 13985
af71363e 13986
1c710c3c
DJ
13987
13988: ${CONFIG_STATUS=./config.status}
5213506e 13989ac_write_fail=0
1c710c3c
DJ
13990ac_clean_files_save=$ac_clean_files
13991ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
13992{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13993$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13994as_write_fail=0
13995cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
13996#! $SHELL
13997# Generated by $as_me.
671aa708 13998# Run this file to recreate the current configuration.
671aa708 13999# Compiler output produced by configure, useful for debugging
1c710c3c 14000# configure, is in config.log if it exists.
0b0dc272 14001
1c710c3c
DJ
14002debug=false
14003ac_cs_recheck=false
14004ac_cs_silent=false
1c710c3c 14005
5213506e
RW
14006SHELL=\${CONFIG_SHELL-$SHELL}
14007export SHELL
14008_ASEOF
14009cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14010## -------------------- ##
14011## M4sh Initialization. ##
14012## -------------------- ##
14013
14014# Be more Bourne compatible
14015DUALCASE=1; export DUALCASE # for MKS sh
14016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14017 emulate sh
14018 NULLCMD=:
5213506e 14019 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14020 # is contrary to our usage. Disable this feature.
14021 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14022 setopt NO_GLOB_SUBST
14023else
14024 case `(set -o) 2>/dev/null` in #(
14025 *posix*) :
14026 set -o posix ;; #(
14027 *) :
14028 ;;
14029esac
1c710c3c 14030fi
1c710c3c 14031
5213506e
RW
14032
14033as_nl='
14034'
14035export as_nl
14036# Printing a long string crashes Solaris 7 /usr/bin/printf.
14037as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14038as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14039as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14040# Prefer a ksh shell builtin over an external printf program on Solaris,
14041# but without wasting forks for bash or zsh.
14042if test -z "$BASH_VERSION$ZSH_VERSION" \
14043 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14044 as_echo='print -r --'
14045 as_echo_n='print -rn --'
14046elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14047 as_echo='printf %s\n'
14048 as_echo_n='printf %s'
14049else
14050 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14051 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14052 as_echo_n='/usr/ucb/echo -n'
14053 else
14054 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14055 as_echo_n_body='eval
14056 arg=$1;
14057 case $arg in #(
14058 *"$as_nl"*)
14059 expr "X$arg" : "X\\(.*\\)$as_nl";
14060 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14061 esac;
14062 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14063 '
14064 export as_echo_n_body
14065 as_echo_n='sh -c $as_echo_n_body as_echo'
14066 fi
14067 export as_echo_body
14068 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14069fi
14070
5213506e
RW
14071# The user is always right.
14072if test "${PATH_SEPARATOR+set}" != set; then
14073 PATH_SEPARATOR=:
14074 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14075 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14076 PATH_SEPARATOR=';'
14077 }
14078fi
14079
14080
14081# IFS
14082# We need space, tab and new line, in precisely that order. Quoting is
14083# there to prevent editors from complaining about space-tab.
14084# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14085# splitting by setting IFS to empty value.)
14086IFS=" "" $as_nl"
14087
14088# Find who we are. Look in the path if we contain no directory separator.
14089case $0 in #((
14090 *[\\/]* ) as_myself=$0 ;;
14091 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092for as_dir in $PATH
14093do
14094 IFS=$as_save_IFS
14095 test -z "$as_dir" && as_dir=.
14096 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14097 done
14098IFS=$as_save_IFS
14099
14100 ;;
14101esac
14102# We did not find ourselves, most probably we were run as `sh COMMAND'
14103# in which case we are not to be found in the path.
14104if test "x$as_myself" = x; then
14105 as_myself=$0
14106fi
14107if test ! -f "$as_myself"; then
14108 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14109 exit 1
14110fi
1c710c3c 14111
5213506e
RW
14112# Unset variables that we do not need and which cause bugs (e.g. in
14113# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14114# suppresses any "Segmentation fault" message there. '((' could
14115# trigger a bug in pdksh 5.2.14.
14116for as_var in BASH_ENV ENV MAIL MAILPATH
14117do eval test x\${$as_var+set} = xset \
14118 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14119done
1c710c3c
DJ
14120PS1='$ '
14121PS2='> '
14122PS4='+ '
14123
14124# NLS nuisances.
5213506e
RW
14125LC_ALL=C
14126export LC_ALL
14127LANGUAGE=C
14128export LANGUAGE
14129
14130# CDPATH.
14131(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14132
14133
14134# as_fn_error ERROR [LINENO LOG_FD]
14135# ---------------------------------
14136# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14137# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14138# script with status $?, using 1 if that was 0.
14139as_fn_error ()
14140{
14141 as_status=$?; test $as_status -eq 0 && as_status=1
14142 if test "$3"; then
14143 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14144 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14145 fi
5213506e
RW
14146 $as_echo "$as_me: error: $1" >&2
14147 as_fn_exit $as_status
14148} # as_fn_error
14149
14150
14151# as_fn_set_status STATUS
14152# -----------------------
14153# Set $? to STATUS, without forking.
14154as_fn_set_status ()
14155{
14156 return $1
14157} # as_fn_set_status
14158
14159# as_fn_exit STATUS
14160# -----------------
14161# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14162as_fn_exit ()
14163{
14164 set +e
14165 as_fn_set_status $1
14166 exit $1
14167} # as_fn_exit
14168
14169# as_fn_unset VAR
14170# ---------------
14171# Portably unset VAR.
14172as_fn_unset ()
14173{
14174 { eval $1=; unset $1;}
14175}
14176as_unset=as_fn_unset
14177# as_fn_append VAR VALUE
14178# ----------------------
14179# Append the text in VALUE to the end of the definition contained in VAR. Take
14180# advantage of any shell optimizations that allow amortized linear growth over
14181# repeated appends, instead of the typical quadratic growth present in naive
14182# implementations.
14183if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14184 eval 'as_fn_append ()
14185 {
14186 eval $1+=\$2
14187 }'
14188else
14189 as_fn_append ()
14190 {
14191 eval $1=\$$1\$2
14192 }
14193fi # as_fn_append
14194
14195# as_fn_arith ARG...
14196# ------------------
14197# Perform arithmetic evaluation on the ARGs, and store the result in the
14198# global $as_val. Take advantage of shells that can avoid forks. The arguments
14199# must be portable across $(()) and expr.
14200if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14201 eval 'as_fn_arith ()
14202 {
14203 as_val=$(( $* ))
14204 }'
14205else
14206 as_fn_arith ()
14207 {
14208 as_val=`expr "$@" || test $? -eq 1`
14209 }
14210fi # as_fn_arith
14211
1c710c3c 14212
5213506e
RW
14213if expr a : '\(a\)' >/dev/null 2>&1 &&
14214 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14215 as_expr=expr
14216else
14217 as_expr=false
14218fi
14219
5213506e 14220if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14221 as_basename=basename
14222else
14223 as_basename=false
14224fi
14225
5213506e
RW
14226if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14227 as_dirname=dirname
14228else
14229 as_dirname=false
14230fi
1c710c3c 14231
5213506e 14232as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14233$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14234 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14236$as_echo X/"$0" |
14237 sed '/^.*\/\([^/][^/]*\)\/*$/{
14238 s//\1/
14239 q
14240 }
14241 /^X\/\(\/\/\)$/{
14242 s//\1/
14243 q
14244 }
14245 /^X\/\(\/\).*/{
14246 s//\1/
14247 q
14248 }
14249 s/.*/./; q'`
2aeb72e9 14250
2aeb72e9
DD
14251# Avoid depending upon Character Ranges.
14252as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14253as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14254as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14255as_cr_digits='0123456789'
14256as_cr_alnum=$as_cr_Letters$as_cr_digits
14257
5213506e
RW
14258ECHO_C= ECHO_N= ECHO_T=
14259case `echo -n x` in #(((((
14260-n*)
14261 case `echo 'xy\c'` in
14262 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14263 xy) ECHO_C='\c';;
14264 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14265 ECHO_T=' ';;
14266 esac;;
14267*)
14268 ECHO_N='-n';;
1c710c3c
DJ
14269esac
14270
5213506e
RW
14271rm -f conf$$ conf$$.exe conf$$.file
14272if test -d conf$$.dir; then
14273 rm -f conf$$.dir/conf$$.file
1c710c3c 14274else
5213506e
RW
14275 rm -f conf$$.dir
14276 mkdir conf$$.dir 2>/dev/null
1c710c3c 14277fi
5213506e
RW
14278if (echo >conf$$.file) 2>/dev/null; then
14279 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14280 as_ln_s='ln -s'
5213506e
RW
14281 # ... but there are two gotchas:
14282 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14283 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14284 # In both cases, we have to default to `cp -p'.
14285 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14286 as_ln_s='cp -p'
14287 elif ln conf$$.file conf$$ 2>/dev/null; then
14288 as_ln_s=ln
14289 else
14290 as_ln_s='cp -p'
2aeb72e9 14291 fi
1c710c3c
DJ
14292else
14293 as_ln_s='cp -p'
14294fi
5213506e
RW
14295rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14296rmdir conf$$.dir 2>/dev/null
14297
14298
14299# as_fn_mkdir_p
14300# -------------
14301# Create "$as_dir" as a directory, including parents if necessary.
14302as_fn_mkdir_p ()
14303{
14304
14305 case $as_dir in #(
14306 -*) as_dir=./$as_dir;;
14307 esac
14308 test -d "$as_dir" || eval $as_mkdir_p || {
14309 as_dirs=
14310 while :; do
14311 case $as_dir in #(
14312 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14313 *) as_qdir=$as_dir;;
14314 esac
14315 as_dirs="'$as_qdir' $as_dirs"
14316 as_dir=`$as_dirname -- "$as_dir" ||
14317$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14318 X"$as_dir" : 'X\(//\)[^/]' \| \
14319 X"$as_dir" : 'X\(//\)$' \| \
14320 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14321$as_echo X"$as_dir" |
14322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14323 s//\1/
14324 q
14325 }
14326 /^X\(\/\/\)[^/].*/{
14327 s//\1/
14328 q
14329 }
14330 /^X\(\/\/\)$/{
14331 s//\1/
14332 q
14333 }
14334 /^X\(\/\).*/{
14335 s//\1/
14336 q
14337 }
14338 s/.*/./; q'`
14339 test -d "$as_dir" && break
14340 done
14341 test -z "$as_dirs" || eval "mkdir $as_dirs"
14342 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14343
1c710c3c 14344
5213506e 14345} # as_fn_mkdir_p
1c710c3c 14346if mkdir -p . 2>/dev/null; then
5213506e 14347 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14348else
14349 test -d ./-p && rmdir ./-p
14350 as_mkdir_p=false
14351fi
14352
5213506e
RW
14353if test -x / >/dev/null 2>&1; then
14354 as_test_x='test -x'
14355else
14356 if ls -dL / >/dev/null 2>&1; then
14357 as_ls_L_option=L
14358 else
14359 as_ls_L_option=
14360 fi
14361 as_test_x='
14362 eval sh -c '\''
14363 if test -d "$1"; then
14364 test -d "$1/.";
14365 else
14366 case $1 in #(
14367 -*)set "./$1";;
14368 esac;
14369 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14370 ???[sx]*):;;*)false;;esac;fi
14371 '\'' sh
14372 '
14373fi
14374as_executable_p=$as_test_x
1c710c3c
DJ
14375
14376# Sed expression to map a string onto a valid CPP name.
14377as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14378
14379# Sed expression to map a string onto a valid variable name.
14380as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14381
14382
1c710c3c 14383exec 6>&1
5213506e
RW
14384## ----------------------------------- ##
14385## Main body of $CONFIG_STATUS script. ##
14386## ----------------------------------- ##
14387_ASEOF
14388test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14389
14390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14391# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14392# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14393# values after options handling.
14394ac_log="
1c710c3c 14395This file was extended by $as_me, which was
5213506e 14396generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14397
14398 CONFIG_FILES = $CONFIG_FILES
14399 CONFIG_HEADERS = $CONFIG_HEADERS
14400 CONFIG_LINKS = $CONFIG_LINKS
14401 CONFIG_COMMANDS = $CONFIG_COMMANDS
14402 $ $0 $@
14403
5213506e
RW
14404on `(hostname || uname -n) 2>/dev/null | sed 1q`
14405"
14406
1c710c3c
DJ
14407_ACEOF
14408
5213506e
RW
14409case $ac_config_files in *"
14410"*) set x $ac_config_files; shift; ac_config_files=$*;;
14411esac
1c710c3c 14412
2aeb72e9 14413
2aeb72e9 14414
5213506e
RW
14415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14416# Files that config.status was made for.
14417config_files="$ac_config_files"
1c710c3c 14418
5213506e 14419_ACEOF
2aeb72e9 14420
5213506e 14421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 14422ac_cs_usage="\
5213506e
RW
14423\`$as_me' instantiates files and other configuration actions
14424from templates according to the current configuration. Unless the files
14425and actions are specified as TAGs, all are instantiated by default.
1c710c3c 14426
5213506e 14427Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
14428
14429 -h, --help print this help, then exit
5213506e
RW
14430 -V, --version print version number and configuration settings, then exit
14431 -q, --quiet, --silent
14432 do not print progress messages
1c710c3c
DJ
14433 -d, --debug don't remove temporary files
14434 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
14435 --file=FILE[:TEMPLATE]
14436 instantiate the configuration file FILE
1c710c3c
DJ
14437
14438Configuration files:
14439$config_files
14440
5213506e 14441Report bugs to the package provider."
2aeb72e9 14442
5213506e
RW
14443_ACEOF
14444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
14445ac_cs_version="\\
14446config.status
5213506e
RW
14447configured by $0, generated by GNU Autoconf 2.64,
14448 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 14449
5213506e 14450Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
14451This config.status script is free software; the Free Software Foundation
14452gives unlimited permission to copy, distribute and modify it."
5213506e
RW
14453
14454ac_pwd='$ac_pwd'
14455srcdir='$srcdir'
14456INSTALL='$INSTALL'
87264276 14457AWK='$AWK'
5213506e 14458test -n "\$AWK" || AWK=awk
1c710c3c
DJ
14459_ACEOF
14460
5213506e
RW
14461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14462# The default lists apply if the user does not specify any file.
1c710c3c
DJ
14463ac_need_defaults=:
14464while test $# != 0
a4b9e93e 14465do
1c710c3c
DJ
14466 case $1 in
14467 --*=*)
5213506e
RW
14468 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14469 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
14470 ac_shift=:
14471 ;;
5213506e 14472 *)
1c710c3c
DJ
14473 ac_option=$1
14474 ac_optarg=$2
14475 ac_shift=shift
14476 ;;
1c710c3c
DJ
14477 esac
14478
14479 case $ac_option in
14480 # Handling of the options.
671aa708 14481 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 14482 ac_cs_recheck=: ;;
5213506e
RW
14483 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14484 $as_echo "$ac_cs_version"; exit ;;
14485 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
14486 debug=: ;;
14487 --file | --fil | --fi | --f )
14488 $ac_shift
5213506e
RW
14489 case $ac_optarg in
14490 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14491 esac
14492 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 14493 ac_need_defaults=false;;
5213506e
RW
14494 --he | --h | --help | --hel | -h )
14495 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
14496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14497 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14498 ac_cs_silent=: ;;
14499
14500 # This is an error.
5213506e
RW
14501 -*) as_fn_error "unrecognized option: \`$1'
14502Try \`$0 --help' for more information." ;;
1c710c3c 14503
5213506e
RW
14504 *) as_fn_append ac_config_targets " $1"
14505 ac_need_defaults=false ;;
1c710c3c 14506
0b0dc272 14507 esac
1c710c3c 14508 shift
0b0dc272
AM
14509done
14510
1c710c3c 14511ac_configure_extra_args=
0b0dc272 14512
1c710c3c
DJ
14513if $ac_cs_silent; then
14514 exec 6>/dev/null
14515 ac_configure_extra_args="$ac_configure_extra_args --silent"
14516fi
0b0dc272 14517
1c710c3c 14518_ACEOF
5213506e 14519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 14520if \$ac_cs_recheck; then
5213506e
RW
14521 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14522 shift
14523 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14524 CONFIG_SHELL='$SHELL'
14525 export CONFIG_SHELL
14526 exec "\$@"
1c710c3c
DJ
14527fi
14528
14529_ACEOF
5213506e
RW
14530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14531exec 5>>config.log
14532{
14533 echo
14534 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14535## Running $as_me. ##
14536_ASBOX
14537 $as_echo "$ac_log"
14538} >&5
1c710c3c 14539
5213506e
RW
14540_ACEOF
14541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
14542#
14543# INIT-COMMANDS
14544#
14545extrasub_build="$extrasub_build"
14546 extrasub_host="$extrasub_host"
14547 extrasub_target="$extrasub_target"
14548
5213506e 14549_ACEOF
1c710c3c 14550
5213506e 14551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 14552
5213506e 14553# Handling of arguments.
1c710c3c
DJ
14554for ac_config_target in $ac_config_targets
14555do
5213506e
RW
14556 case $ac_config_target in
14557 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14558
14559 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
14560 esac
14561done
14562
5213506e 14563
1c710c3c
DJ
14564# If the user did not use the arguments to specify the items to instantiate,
14565# then the envvar interface is used. Set only those that are not.
14566# We use the long form for the default assignment because of an extremely
14567# bizarre bug on SunOS 4.1.3.
14568if $ac_need_defaults; then
14569 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14570fi
14571
14572# Have a temporary directory for convenience. Make it in the build tree
5213506e 14573# simply because there is no reason against having it here, and in addition,
1c710c3c 14574# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
14575# Hook for its removal unless debugging.
14576# Note that there is a small window in which the directory will not be cleaned:
14577# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
14578$debug ||
14579{
5213506e
RW
14580 tmp=
14581 trap 'exit_status=$?
14582 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14583' 0
14584 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 14585}
1c710c3c
DJ
14586# Create a (secure) tmp directory for tmp files.
14587
14588{
5213506e 14589 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
14590 test -n "$tmp" && test -d "$tmp"
14591} ||
14592{
5213506e
RW
14593 tmp=./conf$$-$RANDOM
14594 (umask 077 && mkdir "$tmp")
14595} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14596
14597# Set up the scripts for CONFIG_FILES section.
14598# No need to generate them if there are no CONFIG_FILES.
14599# This happens for instance with `./config.status config.h'.
14600if test -n "$CONFIG_FILES"; then
14601
14602if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14603 ac_cs_awk_getline=:
14604 ac_cs_awk_pipe_init=
14605 ac_cs_awk_read_file='
14606 while ((getline aline < (F[key])) > 0)
14607 print(aline)
14608 close(F[key])'
14609 ac_cs_awk_pipe_fini=
14610else
14611 ac_cs_awk_getline=false
14612 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14613 ac_cs_awk_read_file='
14614 print "|#_!!_#|"
14615 print "cat " F[key] " &&"
14616 '$ac_cs_awk_pipe_init
14617 # The final `:' finishes the AND list.
14618 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14619fi
14620ac_cr=`echo X | tr X '\015'`
14621# On cygwin, bash can eat \r inside `` if the user requested igncr.
14622# But we know of no other shell where ac_cr would be empty at this
14623# point, so we can use a bashism as a fallback.
14624if test "x$ac_cr" = x; then
14625 eval ac_cr=\$\'\\r\'
14626fi
14627ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14628if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14629 ac_cs_awk_cr='\r'
14630else
14631 ac_cs_awk_cr=$ac_cr
14632fi
14633
14634echo 'BEGIN {' >"$tmp/subs1.awk" &&
14635_ACEOF
14636
14637# Create commands to substitute file output variables.
1c710c3c 14638{
5213506e
RW
14639 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14640 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14641 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14642 echo "_ACAWK" &&
14643 echo "_ACEOF"
14644} >conf$$files.sh &&
14645. ./conf$$files.sh ||
14646 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14647rm -f conf$$files.sh
1c710c3c 14648
5213506e
RW
14649{
14650 echo "cat >conf$$subs.awk <<_ACEOF" &&
14651 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14652 echo "_ACEOF"
14653} >conf$$subs.sh ||
14654 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14655ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14656ac_delim='%!_!# '
14657for ac_last_try in false false false false false :; do
14658 . ./conf$$subs.sh ||
14659 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14660
14661 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14662 if test $ac_delim_n = $ac_delim_num; then
14663 break
14664 elif $ac_last_try; then
14665 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14666 else
14667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14668 fi
14669done
14670rm -f conf$$subs.sh
14671
14672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14673cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 14674_ACEOF
5213506e
RW
14675sed -n '
14676h
14677s/^/S["/; s/!.*/"]=/
14678p
14679g
14680s/^[^!]*!//
14681:repl
14682t repl
14683s/'"$ac_delim"'$//
14684t delim
14685:nl
14686h
14687s/\(.\{148\}\).*/\1/
14688t more1
14689s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14690p
14691n
14692b repl
14693:more1
14694s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14695p
14696g
14697s/.\{148\}//
14698t nl
14699:delim
14700h
14701s/\(.\{148\}\).*/\1/
14702t more2
14703s/["\\]/\\&/g; s/^/"/; s/$/"/
14704p
14705b
14706:more2
14707s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14708p
14709g
14710s/.\{148\}//
14711t delim
14712' <conf$$subs.awk | sed '
14713/^[^""]/{
14714 N
14715 s/\n//
14716}
14717' >>$CONFIG_STATUS || ac_write_fail=1
14718rm -f conf$$subs.awk
14719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14720_ACAWK
14721cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14722 for (key in S) S_is_set[key] = 1
14723 FS = "\a"
14724 \$ac_cs_awk_pipe_init
14725}
14726{
14727 line = $ 0
14728 nfields = split(line, field, "@")
14729 substed = 0
14730 len = length(field[1])
14731 for (i = 2; i < nfields; i++) {
14732 key = field[i]
14733 keylen = length(key)
14734 if (S_is_set[key]) {
14735 value = S[key]
14736 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14737 len += length(value) + length(field[++i])
14738 substed = 1
14739 } else
14740 len += 1 + keylen
14741 }
14742 if (nfields == 3 && !substed) {
14743 key = field[2]
14744 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14745 \$ac_cs_awk_read_file
14746 next
14747 }
14748 }
14749 print line
14750}
14751\$ac_cs_awk_pipe_fini
14752_ACAWK
14753_ACEOF
14754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14755if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14756 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14757else
14758 cat
14759fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14760 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14761_ACEOF
14762
14763# VPATH may cause trouble with some makes, so we remove $(srcdir),
14764# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14765# trailing colons and then remove the whole line if VPATH becomes empty
14766# (actually we leave an empty line to preserve line numbers).
14767if test "x$srcdir" = x.; then
14768 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14769s/:*\$(srcdir):*/:/
14770s/:*\${srcdir}:*/:/
14771s/:*@srcdir@:*/:/
14772s/^\([^=]*=[ ]*\):*/\1/
14773s/:*$//
14774s/^[^=]*=[ ]*$//
14775}'
14776fi
2aeb72e9 14777
5213506e
RW
14778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14779fi # test -n "$CONFIG_FILES"
2aeb72e9 14780
1c710c3c 14781
5213506e
RW
14782eval set X " :F $CONFIG_FILES "
14783shift
14784for ac_tag
14785do
14786 case $ac_tag in
14787 :[FHLC]) ac_mode=$ac_tag; continue;;
14788 esac
14789 case $ac_mode$ac_tag in
14790 :[FHL]*:*);;
14791 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14792 :[FH]-) ac_tag=-:-;;
14793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14794 esac
14795 ac_save_IFS=$IFS
14796 IFS=:
14797 set x $ac_tag
14798 IFS=$ac_save_IFS
14799 shift
14800 ac_file=$1
14801 shift
79c06341 14802
5213506e
RW
14803 case $ac_mode in
14804 :L) ac_source=$1;;
14805 :[FH])
14806 ac_file_inputs=
14807 for ac_f
14808 do
14809 case $ac_f in
14810 -) ac_f="$tmp/stdin";;
14811 *) # Look for the file first in the build tree, then in the source tree
14812 # (if the path is not absolute). The absolute path cannot be DOS-style,
14813 # because $ac_f cannot contain `:'.
14814 test -f "$ac_f" ||
14815 case $ac_f in
14816 [\\/$]*) false;;
14817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14818 esac ||
14819 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14820 esac
14821 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14822 as_fn_append ac_file_inputs " '$ac_f'"
14823 done
1c710c3c 14824
5213506e
RW
14825 # Let's still pretend it is `configure' which instantiates (i.e., don't
14826 # use $as_me), people would be surprised to read:
14827 # /* config.h. Generated by config.status. */
14828 configure_input='Generated from '`
14829 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14830 `' by configure.'
14831 if test x"$ac_file" != x-; then
14832 configure_input="$ac_file. $configure_input"
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14834$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 14835 fi
5213506e
RW
14836 # Neutralize special characters interpreted by sed in replacement strings.
14837 case $configure_input in #(
14838 *\&* | *\|* | *\\* )
14839 ac_sed_conf_input=`$as_echo "$configure_input" |
14840 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14841 *) ac_sed_conf_input=$configure_input;;
14842 esac
11a67599 14843
5213506e
RW
14844 case $ac_tag in
14845 *:-:* | *:-) cat >"$tmp/stdin" \
14846 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14847 esac
14848 ;;
11a67599
ZW
14849 esac
14850
5213506e 14851 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
14852$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14853 X"$ac_file" : 'X\(//\)[^/]' \| \
14854 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
14855 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14856$as_echo X"$ac_file" |
14857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14858 s//\1/
14859 q
14860 }
14861 /^X\(\/\/\)[^/].*/{
14862 s//\1/
14863 q
14864 }
14865 /^X\(\/\/\)$/{
14866 s//\1/
14867 q
14868 }
14869 /^X\(\/\).*/{
14870 s//\1/
14871 q
14872 }
14873 s/.*/./; q'`
14874 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 14875 ac_builddir=.
0b0dc272 14876
5213506e
RW
14877case "$ac_dir" in
14878.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14879*)
14880 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14881 # A ".." for each directory in $ac_dir_suffix.
14882 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14883 case $ac_top_builddir_sub in
14884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14886 esac ;;
14887esac
14888ac_abs_top_builddir=$ac_pwd
14889ac_abs_builddir=$ac_pwd$ac_dir_suffix
14890# for backward compatibility:
14891ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
14892
14893case $srcdir in
5213506e 14894 .) # We are building in place.
1c710c3c 14895 ac_srcdir=.
5213506e
RW
14896 ac_top_srcdir=$ac_top_builddir_sub
14897 ac_abs_top_srcdir=$ac_pwd ;;
14898 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 14899 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
14900 ac_top_srcdir=$srcdir
14901 ac_abs_top_srcdir=$srcdir ;;
14902 *) # Relative name.
14903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14904 ac_top_srcdir=$ac_top_build_prefix$srcdir
14905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 14906esac
5213506e 14907ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 14908
0b0dc272 14909
5213506e
RW
14910 case $ac_mode in
14911 :F)
14912 #
14913 # CONFIG_FILE
14914 #
1c710c3c
DJ
14915
14916 case $INSTALL in
14917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 14918 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 14919 esac
5213506e 14920_ACEOF
11a67599 14921
5213506e
RW
14922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14923# If the template does not know about datarootdir, expand it.
14924# FIXME: This hack should be removed a few years after 2.60.
14925ac_datarootdir_hack=; ac_datarootdir_seen=
14926ac_sed_dataroot='
14927/datarootdir/ {
14928 p
14929 q
14930}
14931/@datadir@/p
14932/@docdir@/p
14933/@infodir@/p
14934/@localedir@/p
14935/@mandir@/p'
14936case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14937*datarootdir*) ac_datarootdir_seen=yes;;
14938*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14940$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 14941_ACEOF
5213506e
RW
14942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943 ac_datarootdir_hack='
14944 s&@datadir@&$datadir&g
14945 s&@docdir@&$docdir&g
14946 s&@infodir@&$infodir&g
14947 s&@localedir@&$localedir&g
14948 s&@mandir@&$mandir&g
14949 s&\\\${datarootdir}&$datarootdir&g' ;;
14950esac
14951_ACEOF
14952
14953# Neutralize VPATH when `$srcdir' = `.'.
14954# Shell code in configure.ac might set extrasub.
14955# FIXME: do we really want to maintain this feature?
14956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14957ac_sed_extra="$ac_vpsub
1c710c3c
DJ
14958$extrasub
14959_ACEOF
5213506e 14960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
14961:t
14962/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
14963s|@configure_input@|$ac_sed_conf_input|;t t
14964s&@top_builddir@&$ac_top_builddir_sub&;t t
14965s&@top_build_prefix@&$ac_top_build_prefix&;t t
14966s&@srcdir@&$ac_srcdir&;t t
14967s&@abs_srcdir@&$ac_abs_srcdir&;t t
14968s&@top_srcdir@&$ac_top_srcdir&;t t
14969s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14970s&@builddir@&$ac_builddir&;t t
14971s&@abs_builddir@&$ac_abs_builddir&;t t
14972s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14973s&@INSTALL@&$ac_INSTALL&;t t
14974$ac_datarootdir_hack
14975"
14976eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14977if $ac_cs_awk_getline; then
14978 $AWK -f "$tmp/subs.awk"
14979else
14980 $AWK -f "$tmp/subs.awk" | $SHELL
14981fi >$tmp/out \
14982 || as_fn_error "could not create $ac_file" "$LINENO" 5
14983
14984test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14985 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14986 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14988which seems to be undefined. Please make sure it is defined." >&5
14989$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14990which seems to be undefined. Please make sure it is defined." >&2;}
14991
14992 rm -f "$tmp/stdin"
14993 case $ac_file in
14994 -) cat "$tmp/out" && rm -f "$tmp/out";;
14995 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14996 esac \
14997 || as_fn_error "could not create $ac_file" "$LINENO" 5
14998 ;;
11a67599 14999
11a67599 15000
79c06341 15001
5213506e
RW
15002 esac
15003
3e54529c
RW
15004
15005 case $ac_file$ac_mode in
15006 "Makefile":F) sed "$extrasub_build" Makefile |
15007 sed "$extrasub_host" |
15008 sed "$extrasub_target" > mf$$
15009 mv -f mf$$ Makefile ;;
15010
15011 esac
5213506e
RW
15012done # for ac_tag
15013
15014
15015as_fn_exit 0
1c710c3c 15016_ACEOF
1c710c3c
DJ
15017ac_clean_files=$ac_clean_files_save
15018
5213506e
RW
15019test $ac_write_fail = 0 ||
15020 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15021
1c710c3c
DJ
15022
15023# configure is writing to config.log, and then calls config.status.
15024# config.status does its own redirection, appending to config.log.
15025# Unfortunately, on DOS this fails, as config.log is still kept open
15026# by configure, so config.status won't be able to write to it; its
15027# output is simply discarded. So we exec the FD to /dev/null,
15028# effectively closing config.log, so it can be properly (re)opened and
15029# appended to by config.status. When coming back to configure, we
15030# need to make the FD available again.
15031if test "$no_create" != yes; then
15032 ac_cs_success=:
15033 ac_config_status_args=
15034 test "$silent" = yes &&
15035 ac_config_status_args="$ac_config_status_args --quiet"
15036 exec 5>/dev/null
15037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15038 exec 5>>config.log
15039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15040 # would make configure fail if this is the last instruction.
5213506e
RW
15041 $ac_cs_success || as_fn_exit $?
15042fi
15043if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15045$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15046fi
79c06341 15047